@slack/bolt 3.9.0 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/App.d.ts +11 -1
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +178 -102
- package/dist/App.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/receivers/AwsLambdaReceiver.d.ts.map +1 -1
- package/dist/receivers/AwsLambdaReceiver.js +2 -1
- package/dist/receivers/AwsLambdaReceiver.js.map +1 -1
- package/dist/receivers/BufferedIncomingMessage.d.ts +6 -0
- package/dist/receivers/BufferedIncomingMessage.d.ts.map +1 -0
- package/dist/receivers/BufferedIncomingMessage.js +3 -0
- package/dist/receivers/BufferedIncomingMessage.js.map +1 -0
- package/dist/receivers/ExpressReceiver.d.ts +20 -6
- package/dist/receivers/ExpressReceiver.d.ts.map +1 -1
- package/dist/receivers/ExpressReceiver.js +68 -84
- package/dist/receivers/ExpressReceiver.js.map +1 -1
- package/dist/receivers/HTTPModuleFunctions.d.ts +47 -0
- package/dist/receivers/HTTPModuleFunctions.d.ts.map +1 -0
- package/dist/receivers/HTTPModuleFunctions.js +197 -0
- package/dist/receivers/HTTPModuleFunctions.js.map +1 -0
- package/dist/receivers/HTTPReceiver.d.ts +14 -32
- package/dist/receivers/HTTPReceiver.d.ts.map +1 -1
- package/dist/receivers/HTTPReceiver.js +44 -179
- package/dist/receivers/HTTPReceiver.js.map +1 -1
- package/dist/receivers/HTTPResponseAck.d.ts +30 -0
- package/dist/receivers/HTTPResponseAck.d.ts.map +1 -0
- package/dist/receivers/HTTPResponseAck.js +64 -0
- package/dist/receivers/HTTPResponseAck.js.map +1 -0
- package/dist/receivers/SocketModeFunctions.d.ts +12 -0
- package/dist/receivers/SocketModeFunctions.d.ts.map +1 -0
- package/dist/receivers/SocketModeFunctions.js +28 -0
- package/dist/receivers/SocketModeFunctions.js.map +1 -0
- package/dist/receivers/SocketModeReceiver.d.ts +10 -3
- package/dist/receivers/SocketModeReceiver.d.ts.map +1 -1
- package/dist/receivers/SocketModeReceiver.js +29 -37
- package/dist/receivers/SocketModeReceiver.js.map +1 -1
- package/dist/receivers/custom-routes.d.ts +1 -1
- package/dist/receivers/custom-routes.d.ts.map +1 -1
- package/dist/receivers/custom-routes.js +3 -3
- package/dist/receivers/custom-routes.js.map +1 -1
- package/dist/receivers/http-utils.d.ts.map +1 -1
- package/dist/receivers/http-utils.js +9 -25
- package/dist/receivers/http-utils.js.map +1 -1
- package/dist/receivers/render-html-for-install-path.d.ts.map +1 -1
- package/dist/receivers/render-html-for-install-path.js +8 -1
- package/dist/receivers/render-html-for-install-path.js.map +1 -1
- package/dist/receivers/verify-request.d.ts +25 -33
- package/dist/receivers/verify-request.d.ts.map +1 -1
- package/dist/receivers/verify-request.js +41 -61
- package/dist/receivers/verify-request.js.map +1 -1
- package/dist/types/events/base-events.d.ts +399 -20
- package/dist/types/events/base-events.d.ts.map +1 -1
- package/dist/types/events/base-events.js.map +1 -1
- package/dist/types/events/index.d.ts +1 -1
- package/dist/types/events/index.d.ts.map +1 -1
- package/package.json +10 -7
- package/CHANGELOG.md +0 -5
|
@@ -2,10 +2,11 @@ import { View, MessageAttachment, KnownBlock, Block } from '@slack/types';
|
|
|
2
2
|
import { MessageEvent as AllMessageEvents } from './message-events';
|
|
3
3
|
/**
|
|
4
4
|
* All known event types in Slack's Events API
|
|
5
|
+
* Please refer to https://api.slack.com/events for more details
|
|
5
6
|
*
|
|
6
7
|
* This is a discriminated union. The discriminant is the `type` property.
|
|
7
8
|
*/
|
|
8
|
-
export declare type SlackEvent = AppRequestedEvent | AppHomeOpenedEvent | AppMentionEvent | AppUninstalledEvent | CallRejectedEvent | ChannelArchiveEvent | ChannelCreatedEvent | ChannelDeletedEvent | ChannelHistoryChangedEvent | ChannelLeftEvent | ChannelRenameEvent | ChannelSharedEvent | ChannelUnarchiveEvent | ChannelUnsharedEvent | DNDUpdatedEvent | DNDUpdatedUserEvent | EmailDomainChangedEvent | EmojiChangedEvent | FileChangeEvent | FileCommentDeletedEvent | FileCreatedEvent | FileDeletedEvent | FilePublicEvent | FileSharedEvent | FileUnsharedEvent | GridMigrationFinishedEvent | GridMigrationStartedEvent | GroupArchiveEvent | GroupCloseEvent | GroupDeletedEvent | GroupHistoryChangedEvent | GroupLeftEvent | GroupOpenEvent | GroupRenameEvent | GroupUnarchiveEvent | IMCloseEvent | IMCreatedEvent | IMHistoryChangedEvent | IMOpenEvent | InviteRequestedEvent | LinkSharedEvent | MemberJoinedChannelEvent | MemberLeftChannelEvent | MessageEvent | PinAddedEvent | PinRemovedEvent | ReactionAddedEvent | ReactionRemovedEvent | SharedChannelInviteReceived | SharedChannelInviteAccepted | SharedChannelInviteApproved | SharedChannelInviteDeclined | StarAddedEvent | StarRemovedEvent | SubteamCreated | SubteamMembersChanged | SubteamSelfAddedEvent | SubteamSelfRemovedEvent | SubteamUpdatedEvent | TeamDomainChangedEvent | TeamJoinEvent | TeamRenameEvent | TokensRevokedEvent | UserChangeEvent | WorkflowDeletedEvent | WorkflowPublishedEvent | WorkflowUnpublishedEvent | WorkflowStepDeletedEvent | WorkflowStepExecuteEvent;
|
|
9
|
+
export declare type SlackEvent = AppRequestedEvent | AppHomeOpenedEvent | AppMentionEvent | AppRateLimitedEvent | AppUninstalledEvent | CallRejectedEvent | ChannelArchiveEvent | ChannelCreatedEvent | ChannelDeletedEvent | ChannelHistoryChangedEvent | ChannelIDChangedEvent | ChannelLeftEvent | ChannelRenameEvent | ChannelSharedEvent | ChannelUnarchiveEvent | ChannelUnsharedEvent | DNDUpdatedEvent | DNDUpdatedUserEvent | EmailDomainChangedEvent | EmojiChangedEvent | FileChangeEvent | FileCommentDeletedEvent | FileCreatedEvent | FileDeletedEvent | FilePublicEvent | FileSharedEvent | FileUnsharedEvent | GridMigrationFinishedEvent | GridMigrationStartedEvent | GroupArchiveEvent | GroupCloseEvent | GroupDeletedEvent | GroupHistoryChangedEvent | GroupLeftEvent | GroupOpenEvent | GroupRenameEvent | GroupUnarchiveEvent | IMCloseEvent | IMCreatedEvent | IMHistoryChangedEvent | IMOpenEvent | InviteRequestedEvent | LinkSharedEvent | MemberJoinedChannelEvent | MemberLeftChannelEvent | MessageEvent | PinAddedEvent | PinRemovedEvent | ReactionAddedEvent | ReactionRemovedEvent | SharedChannelInviteReceived | SharedChannelInviteAccepted | SharedChannelInviteApproved | SharedChannelInviteDeclined | StarAddedEvent | StarRemovedEvent | SubteamCreated | SubteamMembersChanged | SubteamSelfAddedEvent | SubteamSelfRemovedEvent | SubteamUpdatedEvent | TeamAccessGrantedEvent | TeamAccessRevokedEvent | TeamDomainChangedEvent | TeamJoinEvent | TeamRenameEvent | TokensRevokedEvent | UserChangeEvent | UserHuddleChangedEvent | UserProfileChangedEvent | UserStatusChangedEvent | WorkflowDeletedEvent | WorkflowPublishedEvent | WorkflowUnpublishedEvent | WorkflowStepDeletedEvent | WorkflowStepExecuteEvent;
|
|
9
10
|
export declare type EventTypePattern = string | RegExp;
|
|
10
11
|
/**
|
|
11
12
|
* Any event in Slack's Events API
|
|
@@ -17,6 +18,17 @@ export declare type EventTypePattern = string | RegExp;
|
|
|
17
18
|
export interface BasicSlackEvent<Type extends string = string> {
|
|
18
19
|
type: Type;
|
|
19
20
|
}
|
|
21
|
+
interface BotProfile {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
app_id: string;
|
|
25
|
+
team_id: string;
|
|
26
|
+
icons: {
|
|
27
|
+
[size: string]: string;
|
|
28
|
+
};
|
|
29
|
+
updated: number;
|
|
30
|
+
deleted: boolean;
|
|
31
|
+
}
|
|
20
32
|
export interface AppRequestedEvent {
|
|
21
33
|
type: 'app_requested';
|
|
22
34
|
app_request: {
|
|
@@ -32,6 +44,19 @@ export interface AppRequestedEvent {
|
|
|
32
44
|
is_app_directory_approved: boolean;
|
|
33
45
|
is_internal: boolean;
|
|
34
46
|
additional_info: string;
|
|
47
|
+
icons?: {
|
|
48
|
+
image_32?: string;
|
|
49
|
+
image_36?: string;
|
|
50
|
+
image_48?: string;
|
|
51
|
+
image_64?: string;
|
|
52
|
+
image_72?: string;
|
|
53
|
+
image_96?: string;
|
|
54
|
+
image_128?: string;
|
|
55
|
+
image_192?: string;
|
|
56
|
+
image_512?: string;
|
|
57
|
+
image_1024?: string;
|
|
58
|
+
image_original?: string;
|
|
59
|
+
};
|
|
35
60
|
};
|
|
36
61
|
};
|
|
37
62
|
previous_resolution: {
|
|
@@ -43,6 +68,7 @@ export interface AppRequestedEvent {
|
|
|
43
68
|
token_type: 'bot' | 'user' | 'app' | null;
|
|
44
69
|
};
|
|
45
70
|
} | null;
|
|
71
|
+
is_user_app_collaborator: boolean;
|
|
46
72
|
user: {
|
|
47
73
|
id: string;
|
|
48
74
|
name: string;
|
|
@@ -74,7 +100,9 @@ export interface AppMentionEvent {
|
|
|
74
100
|
type: 'app_mention';
|
|
75
101
|
subtype?: string;
|
|
76
102
|
bot_id?: string;
|
|
103
|
+
bot_profile?: BotProfile;
|
|
77
104
|
username: string;
|
|
105
|
+
team?: string;
|
|
78
106
|
user?: string;
|
|
79
107
|
text: string;
|
|
80
108
|
attachments?: MessageAttachment[];
|
|
@@ -86,7 +114,14 @@ export interface AppMentionEvent {
|
|
|
86
114
|
ts: string;
|
|
87
115
|
channel: string;
|
|
88
116
|
event_ts: string;
|
|
89
|
-
thread_ts
|
|
117
|
+
thread_ts?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface AppRateLimitedEvent {
|
|
120
|
+
type: 'app_rate_limited';
|
|
121
|
+
token: string;
|
|
122
|
+
team_id: string;
|
|
123
|
+
minute_rate_limited: number;
|
|
124
|
+
api_app_id: string;
|
|
90
125
|
}
|
|
91
126
|
export interface AppUninstalledEvent {
|
|
92
127
|
type: 'app_uninstalled';
|
|
@@ -102,14 +137,20 @@ export interface ChannelArchiveEvent {
|
|
|
102
137
|
type: 'channel_archive';
|
|
103
138
|
channel: string;
|
|
104
139
|
user: string;
|
|
140
|
+
is_moved?: number;
|
|
141
|
+
event_ts: string;
|
|
105
142
|
}
|
|
106
143
|
export interface ChannelCreatedEvent {
|
|
107
144
|
type: 'channel_created';
|
|
108
145
|
channel: {
|
|
109
146
|
id: string;
|
|
147
|
+
is_channel: boolean;
|
|
110
148
|
name: string;
|
|
149
|
+
name_normalized: string;
|
|
111
150
|
created: number;
|
|
112
151
|
creator: string;
|
|
152
|
+
is_shared: boolean;
|
|
153
|
+
is_org_shared: boolean;
|
|
113
154
|
};
|
|
114
155
|
}
|
|
115
156
|
export interface ChannelDeletedEvent {
|
|
@@ -131,14 +172,20 @@ export interface ChannelIDChangedEvent {
|
|
|
131
172
|
export interface ChannelLeftEvent {
|
|
132
173
|
type: 'channel_left';
|
|
133
174
|
channel: string;
|
|
175
|
+
actor_id: string;
|
|
176
|
+
event_ts: string;
|
|
134
177
|
}
|
|
135
178
|
export interface ChannelRenameEvent {
|
|
136
179
|
type: 'channel_rename';
|
|
137
180
|
channel: {
|
|
138
181
|
id: string;
|
|
139
182
|
name: string;
|
|
183
|
+
name_normalized: string;
|
|
140
184
|
created: number;
|
|
185
|
+
is_channel: boolean;
|
|
186
|
+
is_mpim: boolean;
|
|
141
187
|
};
|
|
188
|
+
event_ts: string;
|
|
142
189
|
}
|
|
143
190
|
export interface ChannelSharedEvent {
|
|
144
191
|
type: 'channel_shared';
|
|
@@ -150,6 +197,7 @@ export interface ChannelUnarchiveEvent {
|
|
|
150
197
|
type: 'channel_unarchive';
|
|
151
198
|
channel: string;
|
|
152
199
|
user: string;
|
|
200
|
+
event_ts: string;
|
|
153
201
|
}
|
|
154
202
|
export interface ChannelUnsharedEvent {
|
|
155
203
|
type: 'channel_unshared';
|
|
@@ -169,6 +217,7 @@ export interface DNDUpdatedEvent {
|
|
|
169
217
|
snooze_endtime: number;
|
|
170
218
|
snooze_remaining: number;
|
|
171
219
|
};
|
|
220
|
+
event_ts: string;
|
|
172
221
|
}
|
|
173
222
|
export interface DNDUpdatedUserEvent {
|
|
174
223
|
type: 'dnd_updated_user';
|
|
@@ -178,6 +227,7 @@ export interface DNDUpdatedUserEvent {
|
|
|
178
227
|
next_dnd_start_ts: number;
|
|
179
228
|
next_dnd_end_ts: number;
|
|
180
229
|
};
|
|
230
|
+
event_ts: string;
|
|
181
231
|
}
|
|
182
232
|
export interface EmailDomainChangedEvent {
|
|
183
233
|
type: 'email_domain_changed';
|
|
@@ -186,10 +236,12 @@ export interface EmailDomainChangedEvent {
|
|
|
186
236
|
}
|
|
187
237
|
export interface EmojiChangedEvent {
|
|
188
238
|
type: 'emoji_changed';
|
|
189
|
-
subtype: 'add' | 'remove';
|
|
239
|
+
subtype: 'add' | 'remove' | 'rename';
|
|
190
240
|
names?: string[];
|
|
191
241
|
name?: string;
|
|
192
242
|
value?: string;
|
|
243
|
+
old_name?: string;
|
|
244
|
+
new_name?: string;
|
|
193
245
|
event_ts: string;
|
|
194
246
|
}
|
|
195
247
|
export interface FileChangeEvent {
|
|
@@ -210,35 +262,46 @@ export interface FileCommentDeletedEvent {
|
|
|
210
262
|
export interface FileCreatedEvent {
|
|
211
263
|
type: 'file_created';
|
|
212
264
|
file_id: string;
|
|
265
|
+
user_id: string;
|
|
213
266
|
file: {
|
|
214
267
|
id: string;
|
|
215
268
|
};
|
|
269
|
+
event_ts: string;
|
|
216
270
|
}
|
|
217
271
|
export interface FileDeletedEvent {
|
|
218
272
|
type: 'file_deleted';
|
|
219
273
|
file_id: string;
|
|
274
|
+
channel_ids?: string[];
|
|
220
275
|
event_ts: string;
|
|
221
276
|
}
|
|
222
277
|
export interface FilePublicEvent {
|
|
223
278
|
type: 'file_public';
|
|
224
279
|
file_id: string;
|
|
280
|
+
user_id: string;
|
|
225
281
|
file: {
|
|
226
282
|
id: string;
|
|
227
283
|
};
|
|
284
|
+
event_ts: string;
|
|
228
285
|
}
|
|
229
286
|
export interface FileSharedEvent {
|
|
230
287
|
type: 'file_shared';
|
|
231
288
|
file_id: string;
|
|
289
|
+
user_id: string;
|
|
232
290
|
file: {
|
|
233
291
|
id: string;
|
|
234
292
|
};
|
|
293
|
+
channel_id: string;
|
|
294
|
+
event_ts: string;
|
|
235
295
|
}
|
|
236
296
|
export interface FileUnsharedEvent {
|
|
237
297
|
type: 'file_unshared';
|
|
238
298
|
file_id: string;
|
|
299
|
+
user_id: string;
|
|
239
300
|
file: {
|
|
240
301
|
id: string;
|
|
241
302
|
};
|
|
303
|
+
channel_id: string;
|
|
304
|
+
event_ts: string;
|
|
242
305
|
}
|
|
243
306
|
export interface GridMigrationFinishedEvent {
|
|
244
307
|
type: 'grid_migration_finished';
|
|
@@ -251,6 +314,9 @@ export interface GridMigrationStartedEvent {
|
|
|
251
314
|
export interface GroupArchiveEvent {
|
|
252
315
|
type: 'group_archive';
|
|
253
316
|
channel: string;
|
|
317
|
+
user: string;
|
|
318
|
+
is_moved: number;
|
|
319
|
+
event_ts: string;
|
|
254
320
|
}
|
|
255
321
|
export interface GroupCloseEvent {
|
|
256
322
|
type: 'group_close';
|
|
@@ -260,6 +326,9 @@ export interface GroupCloseEvent {
|
|
|
260
326
|
export interface GroupDeletedEvent {
|
|
261
327
|
type: 'group_deleted';
|
|
262
328
|
channel: string;
|
|
329
|
+
date_deleted: number;
|
|
330
|
+
actor_id: string;
|
|
331
|
+
event_ts: string;
|
|
263
332
|
}
|
|
264
333
|
export interface GroupHistoryChangedEvent {
|
|
265
334
|
type: 'group_history_changed';
|
|
@@ -270,6 +339,8 @@ export interface GroupHistoryChangedEvent {
|
|
|
270
339
|
export interface GroupLeftEvent {
|
|
271
340
|
type: 'group_left';
|
|
272
341
|
channel: string;
|
|
342
|
+
actor_id: string;
|
|
343
|
+
event_ts: string;
|
|
273
344
|
}
|
|
274
345
|
export interface GroupOpenEvent {
|
|
275
346
|
type: 'group_open';
|
|
@@ -281,17 +352,24 @@ export interface GroupRenameEvent {
|
|
|
281
352
|
channel: {
|
|
282
353
|
id: string;
|
|
283
354
|
name: string;
|
|
355
|
+
name_normalized: string;
|
|
284
356
|
created: number;
|
|
357
|
+
is_channel: boolean;
|
|
358
|
+
is_mpim: boolean;
|
|
285
359
|
};
|
|
360
|
+
event_ts: string;
|
|
286
361
|
}
|
|
287
362
|
export interface GroupUnarchiveEvent {
|
|
288
363
|
type: 'group_unarchive';
|
|
289
364
|
channel: string;
|
|
365
|
+
actor_id: string;
|
|
366
|
+
event_ts: string;
|
|
290
367
|
}
|
|
291
368
|
export interface IMCloseEvent {
|
|
292
369
|
type: 'im_close';
|
|
293
370
|
user: string;
|
|
294
371
|
channel: string;
|
|
372
|
+
event_ts: string;
|
|
295
373
|
}
|
|
296
374
|
export interface IMCreatedEvent {
|
|
297
375
|
type: 'im_created';
|
|
@@ -310,6 +388,7 @@ export interface IMOpenEvent {
|
|
|
310
388
|
type: 'im_open';
|
|
311
389
|
user: string;
|
|
312
390
|
channel: string;
|
|
391
|
+
event_ts: string;
|
|
313
392
|
}
|
|
314
393
|
export interface InviteRequestedEvent {
|
|
315
394
|
type: 'invite_requested';
|
|
@@ -337,11 +416,13 @@ export interface LinkSharedEvent {
|
|
|
337
416
|
user: string;
|
|
338
417
|
message_ts: string;
|
|
339
418
|
thread_ts?: string;
|
|
340
|
-
event_ts: string;
|
|
341
419
|
links: {
|
|
342
420
|
domain: string;
|
|
343
421
|
url: string;
|
|
344
422
|
}[];
|
|
423
|
+
unfurl_id?: string;
|
|
424
|
+
source?: string;
|
|
425
|
+
event_ts: string;
|
|
345
426
|
}
|
|
346
427
|
export interface MemberJoinedChannelEvent {
|
|
347
428
|
type: 'member_joined_channel';
|
|
@@ -350,6 +431,7 @@ export interface MemberJoinedChannelEvent {
|
|
|
350
431
|
channel_type: string;
|
|
351
432
|
team: string;
|
|
352
433
|
inviter?: string;
|
|
434
|
+
event_ts: string;
|
|
353
435
|
}
|
|
354
436
|
export interface MemberLeftChannelEvent {
|
|
355
437
|
type: 'member_left_channel';
|
|
@@ -357,6 +439,7 @@ export interface MemberLeftChannelEvent {
|
|
|
357
439
|
channel: string;
|
|
358
440
|
channel_type: string;
|
|
359
441
|
team: string;
|
|
442
|
+
event_ts: string;
|
|
360
443
|
}
|
|
361
444
|
export declare type MessageEvent = AllMessageEvents;
|
|
362
445
|
export interface PinAddedEvent {
|
|
@@ -364,12 +447,27 @@ export interface PinAddedEvent {
|
|
|
364
447
|
user: string;
|
|
365
448
|
channel_id: string;
|
|
366
449
|
item: Record<string, unknown>;
|
|
450
|
+
item_user: string;
|
|
451
|
+
pin_count: string;
|
|
452
|
+
pinned_info: {
|
|
453
|
+
channel: string;
|
|
454
|
+
pinned_by: string;
|
|
455
|
+
pinned_ts: number;
|
|
456
|
+
};
|
|
457
|
+
event_ts: string;
|
|
367
458
|
}
|
|
368
459
|
export interface PinRemovedEvent {
|
|
369
460
|
type: 'pin_removed';
|
|
370
461
|
user: string;
|
|
371
462
|
channel_id: string;
|
|
372
463
|
item: Record<string, unknown>;
|
|
464
|
+
item_user: string;
|
|
465
|
+
pin_count: string;
|
|
466
|
+
pinned_info: {
|
|
467
|
+
channel: string;
|
|
468
|
+
pinned_by: string;
|
|
469
|
+
pinned_ts: number;
|
|
470
|
+
};
|
|
373
471
|
has_pins: boolean;
|
|
374
472
|
event_ts: string;
|
|
375
473
|
}
|
|
@@ -492,12 +590,34 @@ export interface StarRemovedEvent {
|
|
|
492
590
|
item: Record<string, unknown>;
|
|
493
591
|
event_ts: string;
|
|
494
592
|
}
|
|
593
|
+
interface Subteam {
|
|
594
|
+
id: string;
|
|
595
|
+
team_id?: string;
|
|
596
|
+
is_usergroup: boolean;
|
|
597
|
+
is_subteam: boolean;
|
|
598
|
+
name: string;
|
|
599
|
+
description?: string;
|
|
600
|
+
handle: string;
|
|
601
|
+
is_external: boolean;
|
|
602
|
+
date_create: number;
|
|
603
|
+
date_update?: number;
|
|
604
|
+
date_delete?: number;
|
|
605
|
+
auto_provision: boolean;
|
|
606
|
+
enterprise_subteam_id?: string;
|
|
607
|
+
created_by: string;
|
|
608
|
+
updated_by?: string;
|
|
609
|
+
prefs?: {
|
|
610
|
+
channels?: string[];
|
|
611
|
+
groups?: string[];
|
|
612
|
+
};
|
|
613
|
+
users: string[];
|
|
614
|
+
user_count: number;
|
|
615
|
+
channel_count?: number;
|
|
616
|
+
}
|
|
495
617
|
export interface SubteamCreated {
|
|
496
618
|
type: 'subteam_created';
|
|
497
|
-
subteam:
|
|
498
|
-
|
|
499
|
-
created_by: string;
|
|
500
|
-
};
|
|
619
|
+
subteam: Subteam;
|
|
620
|
+
event_ts: string;
|
|
501
621
|
}
|
|
502
622
|
export interface SubteamMembersChanged {
|
|
503
623
|
type: 'subteam_members_changed';
|
|
@@ -505,25 +625,36 @@ export interface SubteamMembersChanged {
|
|
|
505
625
|
team_id: string;
|
|
506
626
|
date_previous_update: number;
|
|
507
627
|
date_update: number;
|
|
508
|
-
added_users
|
|
509
|
-
added_users_count
|
|
510
|
-
removed_users
|
|
511
|
-
removed_users_count
|
|
628
|
+
added_users?: string[];
|
|
629
|
+
added_users_count?: number;
|
|
630
|
+
removed_users?: string[];
|
|
631
|
+
removed_users_count?: number;
|
|
632
|
+
event_ts: string;
|
|
512
633
|
}
|
|
513
634
|
export interface SubteamSelfAddedEvent {
|
|
514
635
|
type: 'subteam_self_added';
|
|
515
636
|
subteam_id: string;
|
|
637
|
+
event_ts: string;
|
|
516
638
|
}
|
|
517
639
|
export interface SubteamSelfRemovedEvent {
|
|
518
640
|
type: 'subteam_self_removed';
|
|
519
641
|
subteam_id: string;
|
|
642
|
+
event_ts: string;
|
|
520
643
|
}
|
|
521
644
|
export interface SubteamUpdatedEvent {
|
|
522
645
|
type: 'subteam_updated';
|
|
523
|
-
subteam:
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
646
|
+
subteam: Subteam;
|
|
647
|
+
event_ts: string;
|
|
648
|
+
}
|
|
649
|
+
export interface TeamAccessGrantedEvent {
|
|
650
|
+
type: 'team_access_granted';
|
|
651
|
+
team_ids: string[];
|
|
652
|
+
event_ts: string;
|
|
653
|
+
}
|
|
654
|
+
export interface TeamAccessRevokedEvent {
|
|
655
|
+
type: 'team_access_revoked';
|
|
656
|
+
team_ids: string[];
|
|
657
|
+
event_ts: string;
|
|
527
658
|
}
|
|
528
659
|
export interface TeamDomainChangedEvent {
|
|
529
660
|
type: 'team_domain_changed';
|
|
@@ -543,10 +674,15 @@ export interface TeamRenameEvent {
|
|
|
543
674
|
export interface TokensRevokedEvent {
|
|
544
675
|
type: 'tokens_revoked';
|
|
545
676
|
tokens: {
|
|
546
|
-
oauth
|
|
547
|
-
bot
|
|
677
|
+
oauth?: string[];
|
|
678
|
+
bot?: string[];
|
|
548
679
|
};
|
|
549
680
|
}
|
|
681
|
+
export interface StatusEmojiDisplayInfo {
|
|
682
|
+
emoji_name?: string;
|
|
683
|
+
display_alias?: string;
|
|
684
|
+
display_url?: string;
|
|
685
|
+
}
|
|
550
686
|
export interface UserChangeEvent {
|
|
551
687
|
type: 'user_change';
|
|
552
688
|
user: {
|
|
@@ -570,11 +706,14 @@ export interface UserChangeEvent {
|
|
|
570
706
|
status_text: string;
|
|
571
707
|
status_text_canonical: string;
|
|
572
708
|
status_emoji: string;
|
|
709
|
+
status_emoji_display_info: StatusEmojiDisplayInfo[];
|
|
573
710
|
status_expiration: number;
|
|
574
711
|
avatar_hash: string;
|
|
712
|
+
huddle_state?: string;
|
|
713
|
+
huddle_state_expiration_ts?: number;
|
|
575
714
|
first_name: string;
|
|
576
715
|
last_name: string;
|
|
577
|
-
email
|
|
716
|
+
email?: string;
|
|
578
717
|
image_original?: string;
|
|
579
718
|
is_custom_image?: boolean;
|
|
580
719
|
image_24: string;
|
|
@@ -599,12 +738,13 @@ export interface UserChangeEvent {
|
|
|
599
738
|
is_ultra_restricted: boolean;
|
|
600
739
|
is_bot: boolean;
|
|
601
740
|
is_stranger?: boolean;
|
|
602
|
-
updated:
|
|
741
|
+
updated: number;
|
|
603
742
|
is_email_confirmed: boolean;
|
|
604
743
|
is_app_user: boolean;
|
|
605
744
|
is_invited_user?: boolean;
|
|
606
745
|
has_2fa?: boolean;
|
|
607
746
|
locale: string;
|
|
747
|
+
presence?: string;
|
|
608
748
|
enterprise_user?: {
|
|
609
749
|
id: string;
|
|
610
750
|
enterprise_id: string;
|
|
@@ -613,7 +753,245 @@ export interface UserChangeEvent {
|
|
|
613
753
|
is_owner: boolean;
|
|
614
754
|
teams: string[];
|
|
615
755
|
};
|
|
756
|
+
two_factor_type?: string;
|
|
757
|
+
has_files?: boolean;
|
|
758
|
+
is_workflow_bot?: boolean;
|
|
759
|
+
who_can_share_contact_card: string;
|
|
616
760
|
};
|
|
761
|
+
cache_ts: number;
|
|
762
|
+
event_ts: string;
|
|
763
|
+
}
|
|
764
|
+
export interface UserHuddleChangedEvent {
|
|
765
|
+
type: 'user_huddle_changed';
|
|
766
|
+
user: {
|
|
767
|
+
id: string;
|
|
768
|
+
team_id: string;
|
|
769
|
+
name: string;
|
|
770
|
+
deleted: boolean;
|
|
771
|
+
color: string;
|
|
772
|
+
real_name: string;
|
|
773
|
+
tz: string;
|
|
774
|
+
tz_label: string;
|
|
775
|
+
tz_offset: number;
|
|
776
|
+
profile: {
|
|
777
|
+
title: string;
|
|
778
|
+
phone: string;
|
|
779
|
+
skype: string;
|
|
780
|
+
real_name: string;
|
|
781
|
+
real_name_normalized: string;
|
|
782
|
+
display_name: string;
|
|
783
|
+
display_name_normalized: string;
|
|
784
|
+
status_text: string;
|
|
785
|
+
status_text_canonical: string;
|
|
786
|
+
status_emoji: string;
|
|
787
|
+
status_emoji_display_info: StatusEmojiDisplayInfo[];
|
|
788
|
+
status_expiration: number;
|
|
789
|
+
avatar_hash: string;
|
|
790
|
+
huddle_state: string;
|
|
791
|
+
huddle_state_expiration_ts: number;
|
|
792
|
+
first_name: string;
|
|
793
|
+
last_name: string;
|
|
794
|
+
email?: string;
|
|
795
|
+
image_original?: string;
|
|
796
|
+
is_custom_image?: boolean;
|
|
797
|
+
image_24: string;
|
|
798
|
+
image_32: string;
|
|
799
|
+
image_48: string;
|
|
800
|
+
image_72: string;
|
|
801
|
+
image_192: string;
|
|
802
|
+
image_512: string;
|
|
803
|
+
image_1024?: string;
|
|
804
|
+
team: string;
|
|
805
|
+
fields: {
|
|
806
|
+
[key: string]: {
|
|
807
|
+
value: string;
|
|
808
|
+
alt: string;
|
|
809
|
+
};
|
|
810
|
+
} | [] | null;
|
|
811
|
+
};
|
|
812
|
+
is_admin: boolean;
|
|
813
|
+
is_owner: boolean;
|
|
814
|
+
is_primary_owner: boolean;
|
|
815
|
+
is_restricted: boolean;
|
|
816
|
+
is_ultra_restricted: boolean;
|
|
817
|
+
is_bot: boolean;
|
|
818
|
+
is_stranger?: boolean;
|
|
819
|
+
updated: number;
|
|
820
|
+
is_email_confirmed: boolean;
|
|
821
|
+
is_app_user: boolean;
|
|
822
|
+
is_invited_user?: boolean;
|
|
823
|
+
has_2fa?: boolean;
|
|
824
|
+
locale: string;
|
|
825
|
+
presence?: string;
|
|
826
|
+
enterprise_user?: {
|
|
827
|
+
id: string;
|
|
828
|
+
enterprise_id: string;
|
|
829
|
+
enterprise_name: string;
|
|
830
|
+
is_admin: boolean;
|
|
831
|
+
is_owner: boolean;
|
|
832
|
+
teams: string[];
|
|
833
|
+
};
|
|
834
|
+
two_factor_type?: string;
|
|
835
|
+
has_files?: boolean;
|
|
836
|
+
is_workflow_bot?: boolean;
|
|
837
|
+
who_can_share_contact_card: string;
|
|
838
|
+
};
|
|
839
|
+
cache_ts: number;
|
|
840
|
+
event_ts: string;
|
|
841
|
+
}
|
|
842
|
+
export interface UserProfileChangedEvent {
|
|
843
|
+
type: 'user_profile_changed';
|
|
844
|
+
user: {
|
|
845
|
+
id: string;
|
|
846
|
+
team_id: string;
|
|
847
|
+
name: string;
|
|
848
|
+
deleted: boolean;
|
|
849
|
+
color: string;
|
|
850
|
+
real_name: string;
|
|
851
|
+
tz: string;
|
|
852
|
+
tz_label: string;
|
|
853
|
+
tz_offset: number;
|
|
854
|
+
profile: {
|
|
855
|
+
title: string;
|
|
856
|
+
phone: string;
|
|
857
|
+
skype: string;
|
|
858
|
+
real_name: string;
|
|
859
|
+
real_name_normalized: string;
|
|
860
|
+
display_name: string;
|
|
861
|
+
display_name_normalized: string;
|
|
862
|
+
status_text: string;
|
|
863
|
+
status_text_canonical: string;
|
|
864
|
+
status_emoji: string;
|
|
865
|
+
status_emoji_display_info: StatusEmojiDisplayInfo[];
|
|
866
|
+
status_expiration: number;
|
|
867
|
+
avatar_hash: string;
|
|
868
|
+
huddle_state: string;
|
|
869
|
+
huddle_state_expiration_ts: number;
|
|
870
|
+
first_name: string;
|
|
871
|
+
last_name: string;
|
|
872
|
+
email?: string;
|
|
873
|
+
image_original?: string;
|
|
874
|
+
is_custom_image?: boolean;
|
|
875
|
+
image_24: string;
|
|
876
|
+
image_32: string;
|
|
877
|
+
image_48: string;
|
|
878
|
+
image_72: string;
|
|
879
|
+
image_192: string;
|
|
880
|
+
image_512: string;
|
|
881
|
+
image_1024?: string;
|
|
882
|
+
team: string;
|
|
883
|
+
fields: {
|
|
884
|
+
[key: string]: {
|
|
885
|
+
value: string;
|
|
886
|
+
alt: string;
|
|
887
|
+
};
|
|
888
|
+
} | [] | null;
|
|
889
|
+
};
|
|
890
|
+
is_admin: boolean;
|
|
891
|
+
is_owner: boolean;
|
|
892
|
+
is_primary_owner: boolean;
|
|
893
|
+
is_restricted: boolean;
|
|
894
|
+
is_ultra_restricted: boolean;
|
|
895
|
+
is_bot: boolean;
|
|
896
|
+
is_stranger?: boolean;
|
|
897
|
+
updated: number;
|
|
898
|
+
is_email_confirmed: boolean;
|
|
899
|
+
is_app_user: boolean;
|
|
900
|
+
is_invited_user?: boolean;
|
|
901
|
+
has_2fa?: boolean;
|
|
902
|
+
locale: string;
|
|
903
|
+
presence?: string;
|
|
904
|
+
enterprise_user?: {
|
|
905
|
+
id: string;
|
|
906
|
+
enterprise_id: string;
|
|
907
|
+
enterprise_name: string;
|
|
908
|
+
is_admin: boolean;
|
|
909
|
+
is_owner: boolean;
|
|
910
|
+
teams: string[];
|
|
911
|
+
};
|
|
912
|
+
two_factor_type?: string;
|
|
913
|
+
has_files?: boolean;
|
|
914
|
+
is_workflow_bot?: boolean;
|
|
915
|
+
who_can_share_contact_card: string;
|
|
916
|
+
};
|
|
917
|
+
cache_ts: number;
|
|
918
|
+
event_ts: string;
|
|
919
|
+
}
|
|
920
|
+
export interface UserStatusChangedEvent {
|
|
921
|
+
type: 'user_status_changed';
|
|
922
|
+
user: {
|
|
923
|
+
id: string;
|
|
924
|
+
team_id: string;
|
|
925
|
+
name: string;
|
|
926
|
+
deleted: boolean;
|
|
927
|
+
color: string;
|
|
928
|
+
real_name: string;
|
|
929
|
+
tz: string;
|
|
930
|
+
tz_label: string;
|
|
931
|
+
tz_offset: number;
|
|
932
|
+
profile: {
|
|
933
|
+
title: string;
|
|
934
|
+
phone: string;
|
|
935
|
+
skype: string;
|
|
936
|
+
real_name: string;
|
|
937
|
+
real_name_normalized: string;
|
|
938
|
+
display_name: string;
|
|
939
|
+
display_name_normalized: string;
|
|
940
|
+
status_text: string;
|
|
941
|
+
status_text_canonical: string;
|
|
942
|
+
status_emoji: string;
|
|
943
|
+
status_emoji_display_info: StatusEmojiDisplayInfo[];
|
|
944
|
+
status_expiration: number;
|
|
945
|
+
avatar_hash: string;
|
|
946
|
+
first_name: string;
|
|
947
|
+
last_name: string;
|
|
948
|
+
email?: string;
|
|
949
|
+
image_original?: string;
|
|
950
|
+
is_custom_image?: boolean;
|
|
951
|
+
image_24: string;
|
|
952
|
+
image_32: string;
|
|
953
|
+
image_48: string;
|
|
954
|
+
image_72: string;
|
|
955
|
+
image_192: string;
|
|
956
|
+
image_512: string;
|
|
957
|
+
image_1024?: string;
|
|
958
|
+
team: string;
|
|
959
|
+
fields: {
|
|
960
|
+
[key: string]: {
|
|
961
|
+
value: string;
|
|
962
|
+
alt: string;
|
|
963
|
+
};
|
|
964
|
+
} | [] | null;
|
|
965
|
+
};
|
|
966
|
+
is_admin: boolean;
|
|
967
|
+
is_owner: boolean;
|
|
968
|
+
is_primary_owner: boolean;
|
|
969
|
+
is_restricted: boolean;
|
|
970
|
+
is_ultra_restricted: boolean;
|
|
971
|
+
is_bot: boolean;
|
|
972
|
+
is_stranger?: boolean;
|
|
973
|
+
updated: number;
|
|
974
|
+
is_email_confirmed: boolean;
|
|
975
|
+
is_app_user: boolean;
|
|
976
|
+
is_invited_user?: boolean;
|
|
977
|
+
has_2fa?: boolean;
|
|
978
|
+
locale: string;
|
|
979
|
+
presence?: string;
|
|
980
|
+
enterprise_user?: {
|
|
981
|
+
id: string;
|
|
982
|
+
enterprise_id: string;
|
|
983
|
+
enterprise_name: string;
|
|
984
|
+
is_admin: boolean;
|
|
985
|
+
is_owner: boolean;
|
|
986
|
+
teams: string[];
|
|
987
|
+
};
|
|
988
|
+
two_factor_type?: string;
|
|
989
|
+
has_files?: boolean;
|
|
990
|
+
is_workflow_bot?: boolean;
|
|
991
|
+
who_can_share_contact_card: string;
|
|
992
|
+
};
|
|
993
|
+
cache_ts: number;
|
|
994
|
+
event_ts: string;
|
|
617
995
|
}
|
|
618
996
|
export interface WorkflowDeletedEvent {
|
|
619
997
|
type: 'workflow_deleted';
|
|
@@ -696,4 +1074,5 @@ export interface WorkflowStepExecuteEvent {
|
|
|
696
1074
|
};
|
|
697
1075
|
event_ts: string;
|
|
698
1076
|
}
|
|
1077
|
+
export {};
|
|
699
1078
|
//# sourceMappingURL=base-events.d.ts.map
|