forked from slackapi/java-slack-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathLogsResponse.java
More file actions
187 lines (162 loc) · 4.29 KB
/
LogsResponse.java
File metadata and controls
187 lines (162 loc) · 4.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
package com.slack.api.audit.response;
import com.google.gson.annotations.SerializedName;
import com.slack.api.audit.AuditApiResponse;
import com.slack.api.model.ResponseMetadata;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
@Data
@EqualsAndHashCode(callSuper = false)
public class LogsResponse implements AuditApiResponse {
private boolean ok;
private String warning;
private String error;
private String needed;
private String provided;
private ResponseMetadata responseMetadata;
private List<Entry> entries;
@Data
public static class Entry {
private String id;
private Integer dateCreate;
private String action;
private Actor actor;
private Entity entity;
private Context context;
private Details details;
}
@Data
public static class Actor {
private String type;
private User user;
}
@Data
public static class User {
private String id;
private String name;
private String email;
private String team;
}
@Data
public static class Entity {
private String type;
private App app;
private User user;
private Usergroup usergroup;
private Workspace workspace;
private Enterprise enterprise;
private File file;
private Channel channel;
}
@Data
public static class App {
private String id;
private String name;
@SerializedName("is_distributed")
private Boolean distributed;
@SerializedName("is_directory_approved")
private Boolean directoryApproved;
private List<String> scopes;
}
@Data
public static class Usergroup {
private String id;
private String name;
}
@Data
public static class Workspace {
private String id;
private String name;
private String domain;
}
@Data
public static class Enterprise {
private String id;
private String name;
private String domain;
}
@Data
public static class File {
private String id;
private String name;
private String filetype;
private String title;
}
@Data
public static class Channel {
private String id;
private String name;
private String privacy;
@SerializedName("is_shared")
private Boolean shared;
@SerializedName("is_org_shared")
private Boolean orgShared;
private List<String> teamsSharedWith;
}
@Data
public static class Context {
private Location location;
private String ua;
private String ipAddress;
}
@Data
public static class Location {
private String type;
private String id;
private String name;
private String domain;
}
@Data
public static class Details {
@SerializedName("is_internal_integration")
private Boolean internalIntegration;
private String appOwnerId;
private List<String> newScopes;
private List<String> previousScopes;
private String type;
private Inviter inviter;
private String newValue;
private String previousValue;
private Kicker kicker;
private String installerUserId;
private Boolean appPreviouslyApproved;
private List<String> oldScopes;
private String name;
private String botId;
private List<Permission> permissions;
}
@Data
public static class Inviter {
private String type;
private User user;
private String id;
private String name;
private String email;
}
@Data
public static class Kicker {
private String id;
private String name;
private String email;
}
@Data
public static class Permission {
private Resource resource;
private List<String> scopes;
}
@Data
public static class Resource {
private String type;
private Grant grant;
}
@Data
public static class Grant {
private String type;
private String resourceId;
private WildCard wildcard;
}
@Data
public static class WildCard {
private String type;
}
}