Skip to content

Commit 8a259b4

Browse files
authored
Fix #1311 entity.message is missing in Audit Logs API response (#1312)
1 parent 97144d6 commit 8a259b4

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

json-logs/samples/audit/v1/logs.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@
7575
],
7676
"original_connected_channel_id": ""
7777
},
78+
"message": {
79+
"channel": "",
80+
"team": "",
81+
"timestamp": ""
82+
},
7883
"huddle": {
7984
"id": "",
8085
"date_start": 123,

slack-api-client/src/main/java/com/slack/api/audit/response/LogsResponse.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public static class Entity {
5959
private Enterprise enterprise;
6060
private File file;
6161
private Channel channel;
62+
private Message message;
6263
private Huddle huddle;
6364
private Role role;
6465
private AccountTypeRole accountTypeRole;
@@ -124,6 +125,13 @@ public static class Channel {
124125
private String originalConnectedChannelId;
125126
}
126127

128+
@Data
129+
public static class Message { // action: message_flagged
130+
private String channel;
131+
private String team;
132+
private String timestamp;
133+
}
134+
127135
@Data
128136
public static class Workflow {
129137
private String id;

slack-api-client/src/test/java/test_locally/api/audit/FieldsTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public void logs() throws Exception {
3939
"getFile",
4040
"getUsergroup",
4141
"getChannel",
42+
"getMessage",
4243
"getWorkspace",
4344
"getWorkflow",
4445
"getWorkflowV2",

0 commit comments

Comments
 (0)