File tree Expand file tree Collapse file tree 11 files changed +70
-7
lines changed
main/java/com/slack/api/audit
test_locally/api/util/json
test_with_remote_apis/audit Expand file tree Collapse file tree 11 files changed +70
-7
lines changed Original file line number Diff line number Diff line change 323
323
" external_shared_channel_invite_request_approved" ,
324
324
" external_shared_channel_invite_request_denied" ,
325
325
" channel_tab_added" ,
326
- " channel_tab_removed"
326
+ " channel_tab_removed" ,
327
+ " external_shared_channel_host_transferred" ,
328
+ " channel_template_provisioned"
327
329
],
328
330
"app" : [
329
331
" app_installed" ,
502
504
" native_dlp_rule_reactivated" ,
503
505
" native_dlp_rule_edited" ,
504
506
" native_dlp_rule_action_applied"
507
+ ],
508
+ "template" : [
509
+ " template_created" ,
510
+ " template_deleted" ,
511
+ " template_provisioned"
505
512
]
506
513
}
507
514
}
Original file line number Diff line number Diff line change 142
142
"template_id" : " string" ,
143
143
"step_configuration" : " vec\u003c dict\u003c string, mixed\u003e\u003e "
144
144
}
145
+ },
146
+ {
147
+ "type" : " template" ,
148
+ "template" : {
149
+ "id" : " string" ,
150
+ "template_name" : " string"
151
+ }
145
152
}
146
153
]
147
154
}
Original file line number Diff line number Diff line change 59
59
],
60
60
"native_dlp" : [
61
61
" "
62
+ ],
63
+ "template" : [
64
+ " "
62
65
]
63
66
},
64
67
"ok" : false ,
Original file line number Diff line number Diff line change 1
1
{
2
- "ok" : false ,
2
+ "ok" : true ,
3
3
"warning" : " " ,
4
4
"error" : " " ,
5
5
"needed" : " " ,
Original file line number Diff line number Diff line change 84
84
"updated_by" : " " ,
85
85
"step_configuration" : " " ,
86
86
"template_id" : " "
87
+ },
88
+ "template" : {
89
+ "id" : " " ,
90
+ "template_name" : " "
87
91
}
88
92
}
89
93
],
Original file line number Diff line number Diff line change @@ -347,6 +347,8 @@ private Channel() {
347
347
public static final String external_shared_channel_invite_request_denied = "external_shared_channel_invite_request_denied" ;
348
348
public static final String channel_tab_added = "channel_tab_added" ;
349
349
public static final String channel_tab_removed = "channel_tab_removed" ;
350
+ public static final String external_shared_channel_host_transferred = "external_shared_channel_host_transferred" ;
351
+ public static final String channel_template_provisioned = "channel_template_provisioned" ;
350
352
}
351
353
352
354
public static class App {
@@ -591,4 +593,13 @@ private NativeDlp() {
591
593
public static final String native_dlp_rule_edited = "native_dlp_rule_edited" ;
592
594
public static final String native_dlp_rule_action_applied = "native_dlp_rule_action_applied" ;
593
595
}
596
+
597
+ public static class Template {
598
+ private Template () {
599
+ }
600
+
601
+ public static final String template_created = "template_created" ;
602
+ public static final String template_deleted = "template_deleted" ;
603
+ public static final String template_provisioned = "template_provisioned" ;
604
+ }
594
605
}
Original file line number Diff line number Diff line change 12
12
public class ActionsResponse implements AuditApiResponse {
13
13
private transient String rawBody ;
14
14
15
- private boolean ok ;
15
+ @ Deprecated // when an error is returned, it will be an exception instead
16
+ private boolean ok = true ;
17
+ @ Deprecated // when an error is returned, it will be an exception instead
16
18
private String warning ;
19
+ @ Deprecated // when an error is returned, it will be an exception instead
17
20
private String error ;
21
+ @ Deprecated // when an error is returned, it will be an exception instead
18
22
private String needed ;
23
+ @ Deprecated // when an error is returned, it will be an exception instead
19
24
private String provided ;
20
25
21
26
private Actions actions ;
@@ -43,5 +48,6 @@ public static class Actions {
43
48
private List <String > function ;
44
49
private List <String > salesElevate ;
45
50
private List <String > nativeDlp ;
51
+ private List <String > template ;
46
52
}
47
53
}
Original file line number Diff line number Diff line change 14
14
public class LogsResponse implements AuditApiResponse {
15
15
private transient String rawBody ;
16
16
17
- private boolean ok ;
17
+ @ Deprecated // when an error is returned, it will be an exception instead
18
+ private boolean ok = true ;
19
+ @ Deprecated // when an error is returned, it will be an exception instead
18
20
private String warning ;
21
+ @ Deprecated // when an error is returned, it will be an exception instead
19
22
private String error ;
23
+ @ Deprecated // when an error is returned, it will be an exception instead
20
24
private String needed ;
25
+ @ Deprecated // when an error is returned, it will be an exception instead
21
26
private String provided ;
22
27
23
28
private ResponseMetadata responseMetadata ;
Original file line number Diff line number Diff line change 11
11
public class SchemasResponse implements AuditApiResponse {
12
12
private transient String rawBody ;
13
13
14
- private boolean ok ;
14
+ @ Deprecated // when an error is returned, it will be an exception instead
15
+ private boolean ok = true ;
16
+ @ Deprecated // when an error is returned, it will be an exception instead
15
17
private String warning ;
18
+ @ Deprecated // when an error is returned, it will be an exception instead
16
19
private String error ;
20
+ @ Deprecated // when an error is returned, it will be an exception instead
17
21
private String needed ;
22
+ @ Deprecated // when an error is returned, it will be an exception instead
18
23
private String provided ;
19
24
20
25
private List <Schema > schemas ;
@@ -36,6 +41,7 @@ public static class Schema {
36
41
private Barrier barrier ;
37
42
private Canvas canvas ;
38
43
private WorkflowV2 workflowV2 ;
44
+ private Template template ;
39
45
}
40
46
41
47
@ Data
@@ -148,4 +154,10 @@ public static class WorkflowV2 {
148
154
private String stepConfiguration ;
149
155
private String templateId ;
150
156
}
157
+
158
+ @ Data
159
+ public static class Template {
160
+ private String id ;
161
+ private String templateName ;
162
+ }
151
163
}
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ public void serialize_array() {
231
231
List <LogsResponse .Entry > entries = Arrays .asList (entry );
232
232
response .setEntries (entries );
233
233
String json = gson .toJson (response );
234
- assertThat (json , is ("{\" ok\" :false ,\" entries\" :[{\" details\" :{" +
234
+ assertThat (json , is ("{\" ok\" :true ,\" entries\" :[{\" details\" :{" +
235
235
"\" new_value\" :[\" C111\" ,\" C222\" ]," +
236
236
"\" previous_value\" :[\" C111\" ,\" C222\" ]" +
237
237
"}}]}" ));
@@ -254,7 +254,7 @@ public void serialize_object() {
254
254
List <LogsResponse .Entry > entries = Arrays .asList (entry );
255
255
response .setEntries (entries );
256
256
String json = gson .toJson (response );
257
- assertThat (json , is ("{\" ok\" :false ,\" entries\" :[{\" details\" :{" +
257
+ assertThat (json , is ("{\" ok\" :true ,\" entries\" :[{\" details\" :{" +
258
258
"\" new_value\" :{\" type\" :[\" TOPLEVEL_ADMINS_AND_OWNERS_AND_SELECTED\" ]}," +
259
259
"\" previous_value\" :{\" type\" :[\" TOPLEVEL_ADMINS_AND_OWNERS_AND_SELECTED\" ]}" +
260
260
"}}]}" ));
You can’t perform that action at this time.
0 commit comments