@slack/bolt 3.21.3 → 3.21.4
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/package.json +7 -7
- package/dist/types/events/base-events.d.ts +0 -1336
- package/dist/types/events/base-events.d.ts.map +0 -1
- package/dist/types/events/base-events.js +0 -5
- package/dist/types/events/base-events.js.map +0 -1
- package/dist/types/events/message-events.d.ts +0 -348
- package/dist/types/events/message-events.d.ts.map +0 -1
- package/dist/types/events/message-events.js +0 -3
- package/dist/types/events/message-events.js.map +0 -1
|
@@ -1,1336 +0,0 @@
|
|
|
1
|
-
import { View, MessageAttachment, KnownBlock, Block } from '@slack/types';
|
|
2
|
-
import { MessageEvent as AllMessageEvents, MessageMetadataEvent as AllMessageMetadataEvents } from './message-events';
|
|
3
|
-
/**
|
|
4
|
-
* All known event types in Slack's Events API
|
|
5
|
-
* Please refer to https://api.slack.com/events for more details
|
|
6
|
-
*
|
|
7
|
-
* This is a discriminated union. The discriminant is the `type` property.
|
|
8
|
-
*/
|
|
9
|
-
export declare type SlackEvent = AppRequestedEvent | AppInstalledEvent | AppDeletedEvent | AppUninstalledTeamEvent | 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 | FunctionExecutedEvent | GridMigrationFinishedEvent | GridMigrationStartedEvent | GroupArchiveEvent | GroupCloseEvent | GroupDeletedEvent | GroupHistoryChangedEvent | GroupLeftEvent | GroupOpenEvent | GroupRenameEvent | GroupUnarchiveEvent | IMCloseEvent | IMCreatedEvent | IMHistoryChangedEvent | IMOpenEvent | InviteRequestedEvent | LinkSharedEvent | MemberJoinedChannelEvent | MemberLeftChannelEvent | MessageEvent | MessageMetadataEvent | PinAddedEvent | PinRemovedEvent | ReactionAddedEvent | ReactionRemovedEvent | SharedChannelInviteReceivedEvent | SharedChannelInviteAcceptedEvent | SharedChannelInviteApprovedEvent | SharedChannelInviteDeclinedEvent | SharedChannelInviteRequestedEvent | StarAddedEvent | StarRemovedEvent | SubteamCreatedEvent | SubteamMembersChangedEvent | SubteamSelfAddedEvent | SubteamSelfRemovedEvent | SubteamUpdatedEvent | TeamAccessGrantedEvent | TeamAccessRevokedEvent | TeamDomainChangedEvent | TeamJoinEvent | TeamRenameEvent | TokensRevokedEvent | UserChangeEvent | UserHuddleChangedEvent | UserProfileChangedEvent | UserStatusChangedEvent | WorkflowDeletedEvent | WorkflowPublishedEvent | WorkflowUnpublishedEvent | WorkflowStepDeletedEvent | WorkflowStepExecuteEvent;
|
|
10
|
-
export declare type EventTypePattern = string | RegExp;
|
|
11
|
-
/**
|
|
12
|
-
* Any event in Slack's Events API
|
|
13
|
-
*
|
|
14
|
-
* This type is used to represent events that aren't known ahead of time. Each of the known event types also implement
|
|
15
|
-
* this interface. That condition isn't enforced, since we're not interested in factoring out common properties from the
|
|
16
|
-
* known event types.
|
|
17
|
-
*/
|
|
18
|
-
export interface BasicSlackEvent<Type extends string = string> {
|
|
19
|
-
type: Type;
|
|
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
|
-
}
|
|
32
|
-
export interface AppRequestedEvent {
|
|
33
|
-
type: 'app_requested';
|
|
34
|
-
app_request: {
|
|
35
|
-
id: string;
|
|
36
|
-
app: {
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
|
-
description: string;
|
|
40
|
-
help_url: string;
|
|
41
|
-
privacy_policy_url: string;
|
|
42
|
-
app_homepage_url: string;
|
|
43
|
-
app_directory_url: string;
|
|
44
|
-
is_app_directory_approved: boolean;
|
|
45
|
-
is_internal: boolean;
|
|
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
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
previous_resolution: {
|
|
63
|
-
status: 'approved' | 'restricted';
|
|
64
|
-
scopes: {
|
|
65
|
-
name: string;
|
|
66
|
-
description: string;
|
|
67
|
-
is_dangerous: boolean;
|
|
68
|
-
token_type: 'bot' | 'user' | 'app' | null;
|
|
69
|
-
};
|
|
70
|
-
} | null;
|
|
71
|
-
is_user_app_collaborator: boolean;
|
|
72
|
-
user: {
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
email: string;
|
|
76
|
-
};
|
|
77
|
-
team: {
|
|
78
|
-
id: string;
|
|
79
|
-
name: string;
|
|
80
|
-
domain: string;
|
|
81
|
-
};
|
|
82
|
-
scopes: {
|
|
83
|
-
name: string;
|
|
84
|
-
description: string;
|
|
85
|
-
is_dangerous: boolean;
|
|
86
|
-
token_type: 'bot' | 'user' | 'app' | null;
|
|
87
|
-
};
|
|
88
|
-
message: string;
|
|
89
|
-
date_created: number;
|
|
90
|
-
}
|
|
91
|
-
export interface AppHomeOpenedEvent {
|
|
92
|
-
type: 'app_home_opened';
|
|
93
|
-
user: string;
|
|
94
|
-
channel: string;
|
|
95
|
-
tab?: 'home' | 'messages';
|
|
96
|
-
view?: View;
|
|
97
|
-
event_ts: string;
|
|
98
|
-
}
|
|
99
|
-
export interface AppInstalledEvent {
|
|
100
|
-
type: 'app_installed';
|
|
101
|
-
app_id: string;
|
|
102
|
-
app_name: string;
|
|
103
|
-
app_owner_id: string;
|
|
104
|
-
user_id: string;
|
|
105
|
-
team_id: string;
|
|
106
|
-
team_domain: string;
|
|
107
|
-
event_ts: string;
|
|
108
|
-
}
|
|
109
|
-
export interface AppDeletedEvent {
|
|
110
|
-
type: 'app_deleted';
|
|
111
|
-
app_id: string;
|
|
112
|
-
app_name: string;
|
|
113
|
-
app_owner_id: string;
|
|
114
|
-
team_id: string;
|
|
115
|
-
team_domain: string;
|
|
116
|
-
event_ts: string;
|
|
117
|
-
}
|
|
118
|
-
export interface AppUninstalledTeamEvent {
|
|
119
|
-
type: 'app_uninstalled_team';
|
|
120
|
-
app_id: string;
|
|
121
|
-
app_name: string;
|
|
122
|
-
app_owner_id: string;
|
|
123
|
-
team_id: string;
|
|
124
|
-
team_domain: string;
|
|
125
|
-
user_id: string;
|
|
126
|
-
event_ts: string;
|
|
127
|
-
}
|
|
128
|
-
export interface AppMentionEvent {
|
|
129
|
-
type: 'app_mention';
|
|
130
|
-
subtype?: string;
|
|
131
|
-
bot_id?: string;
|
|
132
|
-
bot_profile?: BotProfile;
|
|
133
|
-
username?: string;
|
|
134
|
-
team?: string;
|
|
135
|
-
user_team?: string;
|
|
136
|
-
source_team?: string;
|
|
137
|
-
user_profile?: {
|
|
138
|
-
name: string;
|
|
139
|
-
first_name: string;
|
|
140
|
-
real_name: string;
|
|
141
|
-
display_name: string;
|
|
142
|
-
team: string;
|
|
143
|
-
is_restricted?: boolean;
|
|
144
|
-
is_ultra_restricted?: boolean;
|
|
145
|
-
avatar_hash?: string;
|
|
146
|
-
image_72?: string;
|
|
147
|
-
};
|
|
148
|
-
user?: string;
|
|
149
|
-
text: string;
|
|
150
|
-
attachments?: MessageAttachment[];
|
|
151
|
-
blocks?: (KnownBlock | Block)[];
|
|
152
|
-
files?: {
|
|
153
|
-
id: string;
|
|
154
|
-
}[];
|
|
155
|
-
upload?: boolean;
|
|
156
|
-
display_as_bot?: boolean;
|
|
157
|
-
edited?: {
|
|
158
|
-
user: string;
|
|
159
|
-
ts: string;
|
|
160
|
-
};
|
|
161
|
-
ts: string;
|
|
162
|
-
channel: string;
|
|
163
|
-
event_ts: string;
|
|
164
|
-
thread_ts?: string;
|
|
165
|
-
client_msg_id?: string;
|
|
166
|
-
}
|
|
167
|
-
export interface AppRateLimitedEvent {
|
|
168
|
-
type: 'app_rate_limited';
|
|
169
|
-
token: string;
|
|
170
|
-
team_id: string;
|
|
171
|
-
minute_rate_limited: number;
|
|
172
|
-
api_app_id: string;
|
|
173
|
-
}
|
|
174
|
-
export interface AppUninstalledEvent {
|
|
175
|
-
type: 'app_uninstalled';
|
|
176
|
-
}
|
|
177
|
-
export interface CallRejectedEvent {
|
|
178
|
-
type: 'call_rejected';
|
|
179
|
-
call_id: string;
|
|
180
|
-
user_id: string;
|
|
181
|
-
channel_id: string;
|
|
182
|
-
external_unique_id: string;
|
|
183
|
-
}
|
|
184
|
-
export interface ChannelArchiveEvent {
|
|
185
|
-
type: 'channel_archive';
|
|
186
|
-
channel: string;
|
|
187
|
-
user: string;
|
|
188
|
-
is_moved?: number;
|
|
189
|
-
event_ts: string;
|
|
190
|
-
}
|
|
191
|
-
export interface ChannelCreatedEvent {
|
|
192
|
-
type: 'channel_created';
|
|
193
|
-
event_ts: string;
|
|
194
|
-
channel: {
|
|
195
|
-
id: string;
|
|
196
|
-
is_channel: boolean;
|
|
197
|
-
name: string;
|
|
198
|
-
name_normalized: string;
|
|
199
|
-
created: number;
|
|
200
|
-
creator: string;
|
|
201
|
-
is_shared: boolean;
|
|
202
|
-
is_org_shared: boolean;
|
|
203
|
-
context_team_id: string;
|
|
204
|
-
is_archived: boolean;
|
|
205
|
-
is_frozen: boolean;
|
|
206
|
-
is_general: boolean;
|
|
207
|
-
is_group: boolean;
|
|
208
|
-
is_private: boolean;
|
|
209
|
-
is_ext_shared: boolean;
|
|
210
|
-
is_im: boolean;
|
|
211
|
-
is_mpim: boolean;
|
|
212
|
-
is_pending_ext_shared: boolean;
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
export interface ChannelDeletedEvent {
|
|
216
|
-
type: 'channel_deleted';
|
|
217
|
-
channel: string;
|
|
218
|
-
}
|
|
219
|
-
export interface ChannelHistoryChangedEvent {
|
|
220
|
-
type: 'channel_history_changed';
|
|
221
|
-
latest: string;
|
|
222
|
-
ts: string;
|
|
223
|
-
event_ts: string;
|
|
224
|
-
}
|
|
225
|
-
export interface ChannelIDChangedEvent {
|
|
226
|
-
type: 'channel_id_changed';
|
|
227
|
-
old_channel_id: string;
|
|
228
|
-
new_channel_id: string;
|
|
229
|
-
event_ts: string;
|
|
230
|
-
}
|
|
231
|
-
export interface ChannelLeftEvent {
|
|
232
|
-
type: 'channel_left';
|
|
233
|
-
channel: string;
|
|
234
|
-
actor_id: string;
|
|
235
|
-
event_ts: string;
|
|
236
|
-
}
|
|
237
|
-
export interface ChannelRenameEvent {
|
|
238
|
-
type: 'channel_rename';
|
|
239
|
-
channel: {
|
|
240
|
-
id: string;
|
|
241
|
-
name: string;
|
|
242
|
-
name_normalized: string;
|
|
243
|
-
created: number;
|
|
244
|
-
is_channel: boolean;
|
|
245
|
-
is_mpim: boolean;
|
|
246
|
-
};
|
|
247
|
-
event_ts: string;
|
|
248
|
-
}
|
|
249
|
-
export interface ChannelSharedEvent {
|
|
250
|
-
type: 'channel_shared';
|
|
251
|
-
connected_team_id: string;
|
|
252
|
-
channel: string;
|
|
253
|
-
event_ts: string;
|
|
254
|
-
}
|
|
255
|
-
export interface ChannelUnarchiveEvent {
|
|
256
|
-
type: 'channel_unarchive';
|
|
257
|
-
channel: string;
|
|
258
|
-
user: string;
|
|
259
|
-
event_ts: string;
|
|
260
|
-
}
|
|
261
|
-
export interface ChannelUnsharedEvent {
|
|
262
|
-
type: 'channel_unshared';
|
|
263
|
-
previously_connected_team_id: string;
|
|
264
|
-
channel: string;
|
|
265
|
-
is_ext_shared: boolean;
|
|
266
|
-
event_ts: string;
|
|
267
|
-
}
|
|
268
|
-
export interface DNDUpdatedEvent {
|
|
269
|
-
type: 'dnd_updated';
|
|
270
|
-
user: string;
|
|
271
|
-
dnd_status: {
|
|
272
|
-
dnd_enabled: boolean;
|
|
273
|
-
next_dnd_start_ts: number;
|
|
274
|
-
next_dnd_end_ts: number;
|
|
275
|
-
snooze_enabled: boolean;
|
|
276
|
-
snooze_endtime: number;
|
|
277
|
-
snooze_remaining: number;
|
|
278
|
-
};
|
|
279
|
-
event_ts: string;
|
|
280
|
-
}
|
|
281
|
-
export interface DNDUpdatedUserEvent {
|
|
282
|
-
type: 'dnd_updated_user';
|
|
283
|
-
user: string;
|
|
284
|
-
dnd_status: {
|
|
285
|
-
dnd_enabled: boolean;
|
|
286
|
-
next_dnd_start_ts: number;
|
|
287
|
-
next_dnd_end_ts: number;
|
|
288
|
-
};
|
|
289
|
-
event_ts: string;
|
|
290
|
-
}
|
|
291
|
-
export interface EmailDomainChangedEvent {
|
|
292
|
-
type: 'email_domain_changed';
|
|
293
|
-
email_domain: string;
|
|
294
|
-
event_ts: string;
|
|
295
|
-
}
|
|
296
|
-
export interface EmojiChangedEvent {
|
|
297
|
-
type: 'emoji_changed';
|
|
298
|
-
subtype: 'add' | 'remove' | 'rename';
|
|
299
|
-
names?: string[];
|
|
300
|
-
name?: string;
|
|
301
|
-
value?: string;
|
|
302
|
-
old_name?: string;
|
|
303
|
-
new_name?: string;
|
|
304
|
-
event_ts: string;
|
|
305
|
-
}
|
|
306
|
-
export interface FileChangeEvent {
|
|
307
|
-
type: 'file_change';
|
|
308
|
-
file_id: string;
|
|
309
|
-
file: {
|
|
310
|
-
id: string;
|
|
311
|
-
};
|
|
312
|
-
}
|
|
313
|
-
export interface FileCommentDeletedEvent {
|
|
314
|
-
type: 'file_comment_deleted';
|
|
315
|
-
comment: string;
|
|
316
|
-
file_id: string;
|
|
317
|
-
file: {
|
|
318
|
-
id: string;
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
export interface FileCreatedEvent {
|
|
322
|
-
type: 'file_created';
|
|
323
|
-
file_id: string;
|
|
324
|
-
user_id: string;
|
|
325
|
-
file: {
|
|
326
|
-
id: string;
|
|
327
|
-
};
|
|
328
|
-
event_ts: string;
|
|
329
|
-
}
|
|
330
|
-
export interface FileDeletedEvent {
|
|
331
|
-
type: 'file_deleted';
|
|
332
|
-
file_id: string;
|
|
333
|
-
channel_ids?: string[];
|
|
334
|
-
event_ts: string;
|
|
335
|
-
}
|
|
336
|
-
export interface FilePublicEvent {
|
|
337
|
-
type: 'file_public';
|
|
338
|
-
file_id: string;
|
|
339
|
-
user_id: string;
|
|
340
|
-
file: {
|
|
341
|
-
id: string;
|
|
342
|
-
};
|
|
343
|
-
event_ts: string;
|
|
344
|
-
}
|
|
345
|
-
export interface FileSharedEvent {
|
|
346
|
-
type: 'file_shared';
|
|
347
|
-
file_id: string;
|
|
348
|
-
user_id: string;
|
|
349
|
-
file: {
|
|
350
|
-
id: string;
|
|
351
|
-
};
|
|
352
|
-
channel_id: string;
|
|
353
|
-
event_ts: string;
|
|
354
|
-
}
|
|
355
|
-
export interface FileUnsharedEvent {
|
|
356
|
-
type: 'file_unshared';
|
|
357
|
-
file_id: string;
|
|
358
|
-
user_id: string;
|
|
359
|
-
file: {
|
|
360
|
-
id: string;
|
|
361
|
-
};
|
|
362
|
-
channel_id: string;
|
|
363
|
-
event_ts: string;
|
|
364
|
-
}
|
|
365
|
-
export interface FunctionParams {
|
|
366
|
-
type: string;
|
|
367
|
-
name: string;
|
|
368
|
-
description?: string;
|
|
369
|
-
title?: string;
|
|
370
|
-
is_required: boolean;
|
|
371
|
-
}
|
|
372
|
-
export interface FunctionInputs {
|
|
373
|
-
[key: string]: unknown;
|
|
374
|
-
}
|
|
375
|
-
export declare type FunctionOutputValues = FunctionInputs;
|
|
376
|
-
export interface FunctionExecutedEvent {
|
|
377
|
-
type: 'function_executed';
|
|
378
|
-
function: {
|
|
379
|
-
id: string;
|
|
380
|
-
callback_id: string;
|
|
381
|
-
title: string;
|
|
382
|
-
description?: string;
|
|
383
|
-
type: string;
|
|
384
|
-
input_parameters: FunctionParams[];
|
|
385
|
-
output_parameters: FunctionParams[];
|
|
386
|
-
app_id: string;
|
|
387
|
-
date_created: number;
|
|
388
|
-
date_updated: number;
|
|
389
|
-
date_deleted: number;
|
|
390
|
-
};
|
|
391
|
-
inputs: FunctionInputs;
|
|
392
|
-
function_execution_id: string;
|
|
393
|
-
workflow_execution_id: string;
|
|
394
|
-
event_ts: string;
|
|
395
|
-
bot_access_token: string;
|
|
396
|
-
}
|
|
397
|
-
export interface GridMigrationFinishedEvent {
|
|
398
|
-
type: 'grid_migration_finished';
|
|
399
|
-
enterprise_id: string;
|
|
400
|
-
}
|
|
401
|
-
export interface GridMigrationStartedEvent {
|
|
402
|
-
type: 'grid_migration_started';
|
|
403
|
-
enterprise_id: string;
|
|
404
|
-
}
|
|
405
|
-
export interface GroupArchiveEvent {
|
|
406
|
-
type: 'group_archive';
|
|
407
|
-
channel: string;
|
|
408
|
-
user: string;
|
|
409
|
-
is_moved: number;
|
|
410
|
-
event_ts: string;
|
|
411
|
-
}
|
|
412
|
-
export interface GroupCloseEvent {
|
|
413
|
-
type: 'group_close';
|
|
414
|
-
user: string;
|
|
415
|
-
channel: string;
|
|
416
|
-
}
|
|
417
|
-
export interface GroupDeletedEvent {
|
|
418
|
-
type: 'group_deleted';
|
|
419
|
-
channel: string;
|
|
420
|
-
date_deleted: number;
|
|
421
|
-
actor_id: string;
|
|
422
|
-
event_ts: string;
|
|
423
|
-
}
|
|
424
|
-
export interface GroupHistoryChangedEvent {
|
|
425
|
-
type: 'group_history_changed';
|
|
426
|
-
latest: string;
|
|
427
|
-
ts: string;
|
|
428
|
-
event_ts: string;
|
|
429
|
-
}
|
|
430
|
-
export interface GroupLeftEvent {
|
|
431
|
-
type: 'group_left';
|
|
432
|
-
channel: string;
|
|
433
|
-
actor_id: string;
|
|
434
|
-
event_ts: string;
|
|
435
|
-
}
|
|
436
|
-
export interface GroupOpenEvent {
|
|
437
|
-
type: 'group_open';
|
|
438
|
-
user: string;
|
|
439
|
-
channel: string;
|
|
440
|
-
}
|
|
441
|
-
export interface GroupRenameEvent {
|
|
442
|
-
type: 'group_rename';
|
|
443
|
-
channel: {
|
|
444
|
-
id: string;
|
|
445
|
-
name: string;
|
|
446
|
-
name_normalized: string;
|
|
447
|
-
created: number;
|
|
448
|
-
is_channel: boolean;
|
|
449
|
-
is_mpim: boolean;
|
|
450
|
-
};
|
|
451
|
-
event_ts: string;
|
|
452
|
-
}
|
|
453
|
-
export interface GroupUnarchiveEvent {
|
|
454
|
-
type: 'group_unarchive';
|
|
455
|
-
channel: string;
|
|
456
|
-
actor_id: string;
|
|
457
|
-
event_ts: string;
|
|
458
|
-
}
|
|
459
|
-
export interface IMCloseEvent {
|
|
460
|
-
type: 'im_close';
|
|
461
|
-
user: string;
|
|
462
|
-
channel: string;
|
|
463
|
-
event_ts: string;
|
|
464
|
-
}
|
|
465
|
-
export interface IMCreatedEvent {
|
|
466
|
-
type: 'im_created';
|
|
467
|
-
user: string;
|
|
468
|
-
channel: {
|
|
469
|
-
id: string;
|
|
470
|
-
};
|
|
471
|
-
}
|
|
472
|
-
export interface IMHistoryChangedEvent {
|
|
473
|
-
type: 'im_history_changed';
|
|
474
|
-
latest: string;
|
|
475
|
-
ts: string;
|
|
476
|
-
event_ts: string;
|
|
477
|
-
}
|
|
478
|
-
export interface IMOpenEvent {
|
|
479
|
-
type: 'im_open';
|
|
480
|
-
user: string;
|
|
481
|
-
channel: string;
|
|
482
|
-
event_ts: string;
|
|
483
|
-
}
|
|
484
|
-
export interface InviteRequestedEvent {
|
|
485
|
-
type: 'invite_requested';
|
|
486
|
-
invite_request: {
|
|
487
|
-
id: string;
|
|
488
|
-
email: string;
|
|
489
|
-
date_created: number;
|
|
490
|
-
requester_ids: string[];
|
|
491
|
-
channel_ids: string[];
|
|
492
|
-
invite_type: 'restricted' | 'ultra_restricted' | 'full_member';
|
|
493
|
-
real_name: string;
|
|
494
|
-
date_expire: number;
|
|
495
|
-
request_reason: string;
|
|
496
|
-
team: {
|
|
497
|
-
id: string;
|
|
498
|
-
name: string;
|
|
499
|
-
domain: string;
|
|
500
|
-
};
|
|
501
|
-
};
|
|
502
|
-
}
|
|
503
|
-
export interface LinkSharedEvent {
|
|
504
|
-
type: 'link_shared';
|
|
505
|
-
channel: string;
|
|
506
|
-
is_bot_user_member: boolean;
|
|
507
|
-
user: string;
|
|
508
|
-
message_ts: string;
|
|
509
|
-
thread_ts?: string;
|
|
510
|
-
links: {
|
|
511
|
-
domain: string;
|
|
512
|
-
url: string;
|
|
513
|
-
}[];
|
|
514
|
-
unfurl_id?: string;
|
|
515
|
-
source?: string;
|
|
516
|
-
event_ts: string;
|
|
517
|
-
}
|
|
518
|
-
export interface MemberJoinedChannelEvent {
|
|
519
|
-
type: 'member_joined_channel';
|
|
520
|
-
user: string;
|
|
521
|
-
channel: string;
|
|
522
|
-
channel_type: string;
|
|
523
|
-
team: string;
|
|
524
|
-
inviter?: string;
|
|
525
|
-
event_ts: string;
|
|
526
|
-
}
|
|
527
|
-
export interface MemberLeftChannelEvent {
|
|
528
|
-
type: 'member_left_channel';
|
|
529
|
-
user: string;
|
|
530
|
-
channel: string;
|
|
531
|
-
channel_type: string;
|
|
532
|
-
team: string;
|
|
533
|
-
event_ts: string;
|
|
534
|
-
}
|
|
535
|
-
export declare type MessageEvent = AllMessageEvents;
|
|
536
|
-
export declare type MessageMetadataEvent = AllMessageMetadataEvents;
|
|
537
|
-
export interface PinnedMessageItem {
|
|
538
|
-
client_msg_id?: string;
|
|
539
|
-
type: string;
|
|
540
|
-
app_id?: string;
|
|
541
|
-
team?: string;
|
|
542
|
-
user: string;
|
|
543
|
-
bot_id?: string;
|
|
544
|
-
bot_profile?: BotProfile;
|
|
545
|
-
text?: string;
|
|
546
|
-
attachments?: MessageAttachment[];
|
|
547
|
-
blocks?: (KnownBlock | Block)[];
|
|
548
|
-
pinned_to?: string[];
|
|
549
|
-
permalink: string;
|
|
550
|
-
ts: string;
|
|
551
|
-
}
|
|
552
|
-
export interface PinnedFileItem {
|
|
553
|
-
id: string;
|
|
554
|
-
}
|
|
555
|
-
export interface PinnedItem {
|
|
556
|
-
type: string;
|
|
557
|
-
channel: string;
|
|
558
|
-
created_by: string;
|
|
559
|
-
created: number;
|
|
560
|
-
message?: PinnedMessageItem;
|
|
561
|
-
file?: PinnedFileItem;
|
|
562
|
-
}
|
|
563
|
-
export interface PinAddedEvent {
|
|
564
|
-
type: 'pin_added';
|
|
565
|
-
user: string;
|
|
566
|
-
channel_id: string;
|
|
567
|
-
item: PinnedItem;
|
|
568
|
-
item_user: string;
|
|
569
|
-
pin_count: string;
|
|
570
|
-
pinned_info: {
|
|
571
|
-
channel: string;
|
|
572
|
-
pinned_by: string;
|
|
573
|
-
pinned_ts: number;
|
|
574
|
-
};
|
|
575
|
-
event_ts: string;
|
|
576
|
-
}
|
|
577
|
-
export interface PinRemovedEvent {
|
|
578
|
-
type: 'pin_removed';
|
|
579
|
-
user: string;
|
|
580
|
-
channel_id: string;
|
|
581
|
-
item: PinnedItem;
|
|
582
|
-
item_user: string;
|
|
583
|
-
pin_count: string;
|
|
584
|
-
pinned_info: {
|
|
585
|
-
channel: string;
|
|
586
|
-
pinned_by: string;
|
|
587
|
-
pinned_ts: number;
|
|
588
|
-
};
|
|
589
|
-
has_pins: boolean;
|
|
590
|
-
event_ts: string;
|
|
591
|
-
}
|
|
592
|
-
export interface ReactionMessageItem {
|
|
593
|
-
type: 'message';
|
|
594
|
-
channel: string;
|
|
595
|
-
ts: string;
|
|
596
|
-
}
|
|
597
|
-
/**
|
|
598
|
-
* @deprecated Slack applications no longer receive reaction events for files and file comments.
|
|
599
|
-
*/
|
|
600
|
-
export interface ReactionFileItem {
|
|
601
|
-
type: 'file';
|
|
602
|
-
channel: string;
|
|
603
|
-
file: string;
|
|
604
|
-
}
|
|
605
|
-
export interface ReactionFileCommentItem {
|
|
606
|
-
type: 'file_comment';
|
|
607
|
-
channel: string;
|
|
608
|
-
file_comment: string;
|
|
609
|
-
file: string;
|
|
610
|
-
}
|
|
611
|
-
export interface ReactionAddedEvent {
|
|
612
|
-
type: 'reaction_added';
|
|
613
|
-
user: string;
|
|
614
|
-
reaction: string;
|
|
615
|
-
item_user: string;
|
|
616
|
-
item: ReactionMessageItem;
|
|
617
|
-
event_ts: string;
|
|
618
|
-
}
|
|
619
|
-
export interface ReactionRemovedEvent {
|
|
620
|
-
type: 'reaction_removed';
|
|
621
|
-
user: string;
|
|
622
|
-
reaction: string;
|
|
623
|
-
item_user: string;
|
|
624
|
-
item: ReactionMessageItem;
|
|
625
|
-
event_ts: string;
|
|
626
|
-
}
|
|
627
|
-
export interface SharedChannelTeamItem {
|
|
628
|
-
id: string;
|
|
629
|
-
name: string;
|
|
630
|
-
icon: Record<string, unknown>;
|
|
631
|
-
is_verified: boolean;
|
|
632
|
-
domain: string;
|
|
633
|
-
date_created: number;
|
|
634
|
-
}
|
|
635
|
-
export interface SharedChannelUserItem {
|
|
636
|
-
id: string;
|
|
637
|
-
team_id: string;
|
|
638
|
-
name: string;
|
|
639
|
-
updated: number;
|
|
640
|
-
profile: {
|
|
641
|
-
real_name: string;
|
|
642
|
-
display_name: string;
|
|
643
|
-
real_name_normalized: string;
|
|
644
|
-
display_name_normalized: string;
|
|
645
|
-
team: string;
|
|
646
|
-
avatar_hash: string;
|
|
647
|
-
email: string;
|
|
648
|
-
image_24: string;
|
|
649
|
-
image_32: string;
|
|
650
|
-
image_48: string;
|
|
651
|
-
image_72: string;
|
|
652
|
-
image_192: string;
|
|
653
|
-
image_512: string;
|
|
654
|
-
};
|
|
655
|
-
}
|
|
656
|
-
export interface SharedChannelInviteItem {
|
|
657
|
-
id: string;
|
|
658
|
-
date_created: number;
|
|
659
|
-
date_invalid: number;
|
|
660
|
-
inviting_team: SharedChannelTeamItem;
|
|
661
|
-
inviting_user: SharedChannelUserItem;
|
|
662
|
-
recipient_email?: string;
|
|
663
|
-
recipient_user_id?: string;
|
|
664
|
-
}
|
|
665
|
-
export interface SharedChannelItem {
|
|
666
|
-
id: string;
|
|
667
|
-
is_private: boolean;
|
|
668
|
-
is_im: boolean;
|
|
669
|
-
name: string;
|
|
670
|
-
}
|
|
671
|
-
export interface SharedChannelInviteAcceptedEvent {
|
|
672
|
-
type: 'shared_channel_invite_accepted';
|
|
673
|
-
approval_required: boolean;
|
|
674
|
-
invite: SharedChannelInviteItem;
|
|
675
|
-
channel: SharedChannelItem;
|
|
676
|
-
teams_in_channel: SharedChannelTeamItem[];
|
|
677
|
-
accepting_user: SharedChannelUserItem;
|
|
678
|
-
event_ts: string;
|
|
679
|
-
}
|
|
680
|
-
/**
|
|
681
|
-
* @deprecated Will be removed in next major version. Use the `SharedChannelInviteAcceptedEvent` interface instead.
|
|
682
|
-
*/
|
|
683
|
-
export declare type SharedChannelInviteAccepted = SharedChannelInviteAcceptedEvent;
|
|
684
|
-
export interface SharedChannelInviteApprovedEvent {
|
|
685
|
-
type: 'shared_channel_invite_approved';
|
|
686
|
-
invite: SharedChannelInviteItem;
|
|
687
|
-
channel: SharedChannelItem;
|
|
688
|
-
approving_team_id: string;
|
|
689
|
-
teams_in_channel: SharedChannelTeamItem[];
|
|
690
|
-
approving_user: SharedChannelUserItem;
|
|
691
|
-
event_ts: string;
|
|
692
|
-
}
|
|
693
|
-
/**
|
|
694
|
-
* @deprecated Will be removed in next major version. Use the `SharedChannelInviteApprovedEvent` interface instead.
|
|
695
|
-
*/
|
|
696
|
-
export declare type SharedChannelInviteApproved = SharedChannelInviteApprovedEvent;
|
|
697
|
-
export interface SharedChannelInviteDeclinedEvent {
|
|
698
|
-
type: 'shared_channel_invite_declined';
|
|
699
|
-
invite: SharedChannelInviteItem;
|
|
700
|
-
channel: SharedChannelItem;
|
|
701
|
-
declining_team_id: string;
|
|
702
|
-
teams_in_channel: SharedChannelTeamItem[];
|
|
703
|
-
declining_user: SharedChannelUserItem;
|
|
704
|
-
event_ts: string;
|
|
705
|
-
}
|
|
706
|
-
/**
|
|
707
|
-
* @deprecated Will be removed in next major version. Use the `SharedChannelInviteDeclinedEvent` interface instead.
|
|
708
|
-
*/
|
|
709
|
-
export declare type SharedChannelInviteDeclined = SharedChannelInviteDeclinedEvent;
|
|
710
|
-
export interface SharedChannelInviteReceivedEvent {
|
|
711
|
-
type: 'shared_channel_invite_received';
|
|
712
|
-
invite: SharedChannelInviteItem;
|
|
713
|
-
channel: SharedChannelItem;
|
|
714
|
-
event_ts: string;
|
|
715
|
-
}
|
|
716
|
-
/**
|
|
717
|
-
* @deprecated Will be removed in next major version. Use the `SharedChannelInviteReceivedEvent` interface instead.
|
|
718
|
-
*/
|
|
719
|
-
export declare type SharedChannelInviteReceived = SharedChannelInviteReceivedEvent;
|
|
720
|
-
export interface SharedChannelInviteRequestedEvent {
|
|
721
|
-
type: 'shared_channel_invite_requested';
|
|
722
|
-
actor: {
|
|
723
|
-
id: string;
|
|
724
|
-
name: string;
|
|
725
|
-
is_bot: boolean;
|
|
726
|
-
team_id: string;
|
|
727
|
-
timezone: string;
|
|
728
|
-
real_name: string;
|
|
729
|
-
display_name: string;
|
|
730
|
-
};
|
|
731
|
-
channel_id: string;
|
|
732
|
-
event_type: 'slack#/events/shared_channel_invite_requested';
|
|
733
|
-
channel_name: string;
|
|
734
|
-
channel_type: 'public' | 'private';
|
|
735
|
-
target_users: [{
|
|
736
|
-
email: string;
|
|
737
|
-
invite_id: string;
|
|
738
|
-
}];
|
|
739
|
-
teams_in_channel: [
|
|
740
|
-
{
|
|
741
|
-
id: string;
|
|
742
|
-
icon: {
|
|
743
|
-
image_34: string;
|
|
744
|
-
image_default: boolean;
|
|
745
|
-
};
|
|
746
|
-
name: string;
|
|
747
|
-
domain: string;
|
|
748
|
-
is_verified: boolean;
|
|
749
|
-
date_created: number;
|
|
750
|
-
avatar_base_url: string;
|
|
751
|
-
requires_sponsorship: boolean;
|
|
752
|
-
}
|
|
753
|
-
];
|
|
754
|
-
is_external_limited: boolean;
|
|
755
|
-
channel_date_created: number;
|
|
756
|
-
channel_message_latest_counted_timestamp: number;
|
|
757
|
-
event_ts: string;
|
|
758
|
-
}
|
|
759
|
-
export interface StarAddedEvent {
|
|
760
|
-
type: 'star_added';
|
|
761
|
-
user: string;
|
|
762
|
-
item: Record<string, unknown>;
|
|
763
|
-
event_ts: string;
|
|
764
|
-
}
|
|
765
|
-
export interface StarRemovedEvent {
|
|
766
|
-
type: 'star_removed';
|
|
767
|
-
user: string;
|
|
768
|
-
item: Record<string, unknown>;
|
|
769
|
-
event_ts: string;
|
|
770
|
-
}
|
|
771
|
-
interface Subteam {
|
|
772
|
-
id: string;
|
|
773
|
-
team_id?: string;
|
|
774
|
-
is_usergroup: boolean;
|
|
775
|
-
is_subteam: boolean;
|
|
776
|
-
name: string;
|
|
777
|
-
description?: string;
|
|
778
|
-
handle: string;
|
|
779
|
-
is_external: boolean;
|
|
780
|
-
date_create: number;
|
|
781
|
-
date_update?: number;
|
|
782
|
-
date_delete?: number;
|
|
783
|
-
auto_provision: boolean;
|
|
784
|
-
enterprise_subteam_id?: string;
|
|
785
|
-
created_by: string;
|
|
786
|
-
updated_by?: string;
|
|
787
|
-
prefs?: {
|
|
788
|
-
channels?: string[];
|
|
789
|
-
groups?: string[];
|
|
790
|
-
};
|
|
791
|
-
users: string[];
|
|
792
|
-
user_count: number;
|
|
793
|
-
channel_count?: number;
|
|
794
|
-
}
|
|
795
|
-
export interface SubteamCreatedEvent {
|
|
796
|
-
type: 'subteam_created';
|
|
797
|
-
subteam: Subteam;
|
|
798
|
-
event_ts: string;
|
|
799
|
-
}
|
|
800
|
-
/**
|
|
801
|
-
* @deprecated Will be removed in next major version. Use the `SubteamCreatedEvent` interface instead.
|
|
802
|
-
*/
|
|
803
|
-
export declare type SubteamCreated = SubteamCreatedEvent;
|
|
804
|
-
export interface SubteamMembersChangedEvent {
|
|
805
|
-
type: 'subteam_members_changed';
|
|
806
|
-
subteam_id: string;
|
|
807
|
-
team_id: string;
|
|
808
|
-
date_previous_update: number;
|
|
809
|
-
date_update: number;
|
|
810
|
-
added_users?: string[];
|
|
811
|
-
added_users_count?: number;
|
|
812
|
-
removed_users?: string[];
|
|
813
|
-
removed_users_count?: number;
|
|
814
|
-
event_ts: string;
|
|
815
|
-
}
|
|
816
|
-
/**
|
|
817
|
-
* @deprecated Will be removed in next major version. Use the `SubteamMembersChangedEvent` interface instead.
|
|
818
|
-
*/
|
|
819
|
-
export declare type SubteamMembersChanged = SubteamMembersChangedEvent;
|
|
820
|
-
export interface SubteamSelfAddedEvent {
|
|
821
|
-
type: 'subteam_self_added';
|
|
822
|
-
subteam_id: string;
|
|
823
|
-
event_ts: string;
|
|
824
|
-
}
|
|
825
|
-
export interface SubteamSelfRemovedEvent {
|
|
826
|
-
type: 'subteam_self_removed';
|
|
827
|
-
subteam_id: string;
|
|
828
|
-
event_ts: string;
|
|
829
|
-
}
|
|
830
|
-
export interface SubteamUpdatedEvent {
|
|
831
|
-
type: 'subteam_updated';
|
|
832
|
-
subteam: Subteam;
|
|
833
|
-
event_ts: string;
|
|
834
|
-
}
|
|
835
|
-
export interface TeamAccessGrantedEvent {
|
|
836
|
-
type: 'team_access_granted';
|
|
837
|
-
team_ids: string[];
|
|
838
|
-
event_ts: string;
|
|
839
|
-
}
|
|
840
|
-
export interface TeamAccessRevokedEvent {
|
|
841
|
-
type: 'team_access_revoked';
|
|
842
|
-
team_ids: string[];
|
|
843
|
-
event_ts: string;
|
|
844
|
-
}
|
|
845
|
-
export interface TeamDomainChangedEvent {
|
|
846
|
-
type: 'team_domain_changed';
|
|
847
|
-
url: string;
|
|
848
|
-
domain: string;
|
|
849
|
-
}
|
|
850
|
-
export interface TeamJoinEvent {
|
|
851
|
-
type: 'team_join';
|
|
852
|
-
user: {
|
|
853
|
-
id: string;
|
|
854
|
-
team_id: string;
|
|
855
|
-
name: string;
|
|
856
|
-
deleted: boolean;
|
|
857
|
-
color: string;
|
|
858
|
-
real_name: string;
|
|
859
|
-
tz: string;
|
|
860
|
-
tz_label: string;
|
|
861
|
-
tz_offset: number;
|
|
862
|
-
profile: {
|
|
863
|
-
title: string;
|
|
864
|
-
phone: string;
|
|
865
|
-
skype: string;
|
|
866
|
-
real_name: string;
|
|
867
|
-
real_name_normalized: string;
|
|
868
|
-
display_name: string;
|
|
869
|
-
display_name_normalized: string;
|
|
870
|
-
status_text: string;
|
|
871
|
-
status_text_canonical: string;
|
|
872
|
-
status_emoji: string;
|
|
873
|
-
status_emoji_display_info: StatusEmojiDisplayInfo[];
|
|
874
|
-
status_expiration: number;
|
|
875
|
-
avatar_hash: string;
|
|
876
|
-
huddle_state?: string;
|
|
877
|
-
huddle_state_expiration_ts?: number;
|
|
878
|
-
first_name: string;
|
|
879
|
-
last_name: string;
|
|
880
|
-
email?: string;
|
|
881
|
-
image_original?: string;
|
|
882
|
-
is_custom_image?: boolean;
|
|
883
|
-
image_24: string;
|
|
884
|
-
image_32: string;
|
|
885
|
-
image_48: string;
|
|
886
|
-
image_72: string;
|
|
887
|
-
image_192: string;
|
|
888
|
-
image_512: string;
|
|
889
|
-
image_1024?: string;
|
|
890
|
-
team: string;
|
|
891
|
-
fields: {
|
|
892
|
-
[key: string]: {
|
|
893
|
-
value: string;
|
|
894
|
-
alt: string;
|
|
895
|
-
};
|
|
896
|
-
} | [] | null;
|
|
897
|
-
};
|
|
898
|
-
is_admin: boolean;
|
|
899
|
-
is_owner: boolean;
|
|
900
|
-
is_primary_owner: boolean;
|
|
901
|
-
is_restricted: boolean;
|
|
902
|
-
is_ultra_restricted: boolean;
|
|
903
|
-
is_bot: boolean;
|
|
904
|
-
is_stranger?: boolean;
|
|
905
|
-
updated: number;
|
|
906
|
-
is_email_confirmed: boolean;
|
|
907
|
-
is_app_user: boolean;
|
|
908
|
-
is_invited_user?: boolean;
|
|
909
|
-
has_2fa?: boolean;
|
|
910
|
-
locale: string;
|
|
911
|
-
presence?: string;
|
|
912
|
-
enterprise_user?: {
|
|
913
|
-
id: string;
|
|
914
|
-
enterprise_id: string;
|
|
915
|
-
enterprise_name: string;
|
|
916
|
-
is_admin: boolean;
|
|
917
|
-
is_owner: boolean;
|
|
918
|
-
teams: string[];
|
|
919
|
-
};
|
|
920
|
-
two_factor_type?: string;
|
|
921
|
-
has_files?: boolean;
|
|
922
|
-
is_workflow_bot?: boolean;
|
|
923
|
-
who_can_share_contact_card: string;
|
|
924
|
-
};
|
|
925
|
-
cache_ts: number;
|
|
926
|
-
event_ts: string;
|
|
927
|
-
}
|
|
928
|
-
export interface TeamRenameEvent {
|
|
929
|
-
type: 'team_rename';
|
|
930
|
-
name: string;
|
|
931
|
-
}
|
|
932
|
-
export interface TokensRevokedEvent {
|
|
933
|
-
type: 'tokens_revoked';
|
|
934
|
-
tokens: {
|
|
935
|
-
oauth?: string[];
|
|
936
|
-
bot?: string[];
|
|
937
|
-
};
|
|
938
|
-
}
|
|
939
|
-
export interface StatusEmojiDisplayInfo {
|
|
940
|
-
emoji_name?: string;
|
|
941
|
-
display_alias?: string;
|
|
942
|
-
display_url?: string;
|
|
943
|
-
}
|
|
944
|
-
export interface UserChangeEvent {
|
|
945
|
-
type: 'user_change';
|
|
946
|
-
user: {
|
|
947
|
-
id: string;
|
|
948
|
-
team_id: string;
|
|
949
|
-
name: string;
|
|
950
|
-
deleted: boolean;
|
|
951
|
-
color: string;
|
|
952
|
-
real_name: string;
|
|
953
|
-
tz: string;
|
|
954
|
-
tz_label: string;
|
|
955
|
-
tz_offset: number;
|
|
956
|
-
profile: {
|
|
957
|
-
title: string;
|
|
958
|
-
phone: string;
|
|
959
|
-
skype: string;
|
|
960
|
-
real_name: string;
|
|
961
|
-
real_name_normalized: string;
|
|
962
|
-
display_name: string;
|
|
963
|
-
display_name_normalized: string;
|
|
964
|
-
status_text: string;
|
|
965
|
-
status_text_canonical: string;
|
|
966
|
-
status_emoji: string;
|
|
967
|
-
status_emoji_display_info: StatusEmojiDisplayInfo[];
|
|
968
|
-
status_expiration: number;
|
|
969
|
-
avatar_hash: string;
|
|
970
|
-
huddle_state?: string;
|
|
971
|
-
huddle_state_expiration_ts?: number;
|
|
972
|
-
first_name: string;
|
|
973
|
-
last_name: string;
|
|
974
|
-
email?: string;
|
|
975
|
-
image_original?: string;
|
|
976
|
-
is_custom_image?: boolean;
|
|
977
|
-
image_24: string;
|
|
978
|
-
image_32: string;
|
|
979
|
-
image_48: string;
|
|
980
|
-
image_72: string;
|
|
981
|
-
image_192: string;
|
|
982
|
-
image_512: string;
|
|
983
|
-
image_1024?: string;
|
|
984
|
-
team: string;
|
|
985
|
-
fields: {
|
|
986
|
-
[key: string]: {
|
|
987
|
-
value: string;
|
|
988
|
-
alt: string;
|
|
989
|
-
};
|
|
990
|
-
} | [] | null;
|
|
991
|
-
};
|
|
992
|
-
is_admin: boolean;
|
|
993
|
-
is_owner: boolean;
|
|
994
|
-
is_primary_owner: boolean;
|
|
995
|
-
is_restricted: boolean;
|
|
996
|
-
is_ultra_restricted: boolean;
|
|
997
|
-
is_bot: boolean;
|
|
998
|
-
is_stranger?: boolean;
|
|
999
|
-
updated: number;
|
|
1000
|
-
is_email_confirmed: boolean;
|
|
1001
|
-
is_app_user: boolean;
|
|
1002
|
-
is_invited_user?: boolean;
|
|
1003
|
-
has_2fa?: boolean;
|
|
1004
|
-
locale: string;
|
|
1005
|
-
presence?: string;
|
|
1006
|
-
enterprise_user?: {
|
|
1007
|
-
id: string;
|
|
1008
|
-
enterprise_id: string;
|
|
1009
|
-
enterprise_name: string;
|
|
1010
|
-
is_admin: boolean;
|
|
1011
|
-
is_owner: boolean;
|
|
1012
|
-
teams: string[];
|
|
1013
|
-
};
|
|
1014
|
-
two_factor_type?: string;
|
|
1015
|
-
has_files?: boolean;
|
|
1016
|
-
is_workflow_bot?: boolean;
|
|
1017
|
-
who_can_share_contact_card: string;
|
|
1018
|
-
};
|
|
1019
|
-
cache_ts: number;
|
|
1020
|
-
event_ts: string;
|
|
1021
|
-
}
|
|
1022
|
-
export interface UserHuddleChangedEvent {
|
|
1023
|
-
type: 'user_huddle_changed';
|
|
1024
|
-
user: {
|
|
1025
|
-
id: string;
|
|
1026
|
-
team_id: string;
|
|
1027
|
-
name: string;
|
|
1028
|
-
deleted: boolean;
|
|
1029
|
-
color: string;
|
|
1030
|
-
real_name: string;
|
|
1031
|
-
tz: string;
|
|
1032
|
-
tz_label: string;
|
|
1033
|
-
tz_offset: number;
|
|
1034
|
-
profile: {
|
|
1035
|
-
title: string;
|
|
1036
|
-
phone: string;
|
|
1037
|
-
skype: string;
|
|
1038
|
-
real_name: string;
|
|
1039
|
-
real_name_normalized: string;
|
|
1040
|
-
display_name: string;
|
|
1041
|
-
display_name_normalized: string;
|
|
1042
|
-
status_text: string;
|
|
1043
|
-
status_text_canonical: string;
|
|
1044
|
-
status_emoji: string;
|
|
1045
|
-
status_emoji_display_info: StatusEmojiDisplayInfo[];
|
|
1046
|
-
status_expiration: number;
|
|
1047
|
-
avatar_hash: string;
|
|
1048
|
-
huddle_state: string;
|
|
1049
|
-
huddle_state_expiration_ts: number;
|
|
1050
|
-
first_name: string;
|
|
1051
|
-
last_name: string;
|
|
1052
|
-
email?: string;
|
|
1053
|
-
image_original?: string;
|
|
1054
|
-
is_custom_image?: boolean;
|
|
1055
|
-
image_24: string;
|
|
1056
|
-
image_32: string;
|
|
1057
|
-
image_48: string;
|
|
1058
|
-
image_72: string;
|
|
1059
|
-
image_192: string;
|
|
1060
|
-
image_512: string;
|
|
1061
|
-
image_1024?: string;
|
|
1062
|
-
team: string;
|
|
1063
|
-
fields: {
|
|
1064
|
-
[key: string]: {
|
|
1065
|
-
value: string;
|
|
1066
|
-
alt: string;
|
|
1067
|
-
};
|
|
1068
|
-
} | [] | null;
|
|
1069
|
-
};
|
|
1070
|
-
is_admin: boolean;
|
|
1071
|
-
is_owner: boolean;
|
|
1072
|
-
is_primary_owner: boolean;
|
|
1073
|
-
is_restricted: boolean;
|
|
1074
|
-
is_ultra_restricted: boolean;
|
|
1075
|
-
is_bot: boolean;
|
|
1076
|
-
is_stranger?: boolean;
|
|
1077
|
-
updated: number;
|
|
1078
|
-
is_email_confirmed: boolean;
|
|
1079
|
-
is_app_user: boolean;
|
|
1080
|
-
is_invited_user?: boolean;
|
|
1081
|
-
has_2fa?: boolean;
|
|
1082
|
-
locale: string;
|
|
1083
|
-
presence?: string;
|
|
1084
|
-
enterprise_user?: {
|
|
1085
|
-
id: string;
|
|
1086
|
-
enterprise_id: string;
|
|
1087
|
-
enterprise_name: string;
|
|
1088
|
-
is_admin: boolean;
|
|
1089
|
-
is_owner: boolean;
|
|
1090
|
-
teams: string[];
|
|
1091
|
-
};
|
|
1092
|
-
two_factor_type?: string;
|
|
1093
|
-
has_files?: boolean;
|
|
1094
|
-
is_workflow_bot?: boolean;
|
|
1095
|
-
who_can_share_contact_card: string;
|
|
1096
|
-
};
|
|
1097
|
-
cache_ts: number;
|
|
1098
|
-
event_ts: string;
|
|
1099
|
-
}
|
|
1100
|
-
export interface UserProfileChangedEvent {
|
|
1101
|
-
type: 'user_profile_changed';
|
|
1102
|
-
user: {
|
|
1103
|
-
id: string;
|
|
1104
|
-
team_id: string;
|
|
1105
|
-
name: string;
|
|
1106
|
-
deleted: boolean;
|
|
1107
|
-
color: string;
|
|
1108
|
-
real_name: string;
|
|
1109
|
-
tz: string;
|
|
1110
|
-
tz_label: string;
|
|
1111
|
-
tz_offset: number;
|
|
1112
|
-
profile: {
|
|
1113
|
-
title: string;
|
|
1114
|
-
phone: string;
|
|
1115
|
-
skype: string;
|
|
1116
|
-
real_name: string;
|
|
1117
|
-
real_name_normalized: string;
|
|
1118
|
-
display_name: string;
|
|
1119
|
-
display_name_normalized: string;
|
|
1120
|
-
status_text: string;
|
|
1121
|
-
status_text_canonical: string;
|
|
1122
|
-
status_emoji: string;
|
|
1123
|
-
status_emoji_display_info: StatusEmojiDisplayInfo[];
|
|
1124
|
-
status_expiration: number;
|
|
1125
|
-
avatar_hash: string;
|
|
1126
|
-
huddle_state: string;
|
|
1127
|
-
huddle_state_expiration_ts: number;
|
|
1128
|
-
first_name: string;
|
|
1129
|
-
last_name: string;
|
|
1130
|
-
email?: string;
|
|
1131
|
-
image_original?: string;
|
|
1132
|
-
is_custom_image?: boolean;
|
|
1133
|
-
image_24: string;
|
|
1134
|
-
image_32: string;
|
|
1135
|
-
image_48: string;
|
|
1136
|
-
image_72: string;
|
|
1137
|
-
image_192: string;
|
|
1138
|
-
image_512: string;
|
|
1139
|
-
image_1024?: string;
|
|
1140
|
-
team: string;
|
|
1141
|
-
fields: {
|
|
1142
|
-
[key: string]: {
|
|
1143
|
-
value: string;
|
|
1144
|
-
alt: string;
|
|
1145
|
-
};
|
|
1146
|
-
} | [] | null;
|
|
1147
|
-
};
|
|
1148
|
-
is_admin: boolean;
|
|
1149
|
-
is_owner: boolean;
|
|
1150
|
-
is_primary_owner: boolean;
|
|
1151
|
-
is_restricted: boolean;
|
|
1152
|
-
is_ultra_restricted: boolean;
|
|
1153
|
-
is_bot: boolean;
|
|
1154
|
-
is_stranger?: boolean;
|
|
1155
|
-
updated: number;
|
|
1156
|
-
is_email_confirmed: boolean;
|
|
1157
|
-
is_app_user: boolean;
|
|
1158
|
-
is_invited_user?: boolean;
|
|
1159
|
-
has_2fa?: boolean;
|
|
1160
|
-
locale: string;
|
|
1161
|
-
presence?: string;
|
|
1162
|
-
enterprise_user?: {
|
|
1163
|
-
id: string;
|
|
1164
|
-
enterprise_id: string;
|
|
1165
|
-
enterprise_name: string;
|
|
1166
|
-
is_admin: boolean;
|
|
1167
|
-
is_owner: boolean;
|
|
1168
|
-
teams: string[];
|
|
1169
|
-
};
|
|
1170
|
-
two_factor_type?: string;
|
|
1171
|
-
has_files?: boolean;
|
|
1172
|
-
is_workflow_bot?: boolean;
|
|
1173
|
-
who_can_share_contact_card: string;
|
|
1174
|
-
};
|
|
1175
|
-
cache_ts: number;
|
|
1176
|
-
event_ts: string;
|
|
1177
|
-
}
|
|
1178
|
-
export interface UserStatusChangedEvent {
|
|
1179
|
-
type: 'user_status_changed';
|
|
1180
|
-
user: {
|
|
1181
|
-
id: string;
|
|
1182
|
-
team_id: string;
|
|
1183
|
-
name: string;
|
|
1184
|
-
deleted: boolean;
|
|
1185
|
-
color: string;
|
|
1186
|
-
real_name: string;
|
|
1187
|
-
tz: string;
|
|
1188
|
-
tz_label: string;
|
|
1189
|
-
tz_offset: number;
|
|
1190
|
-
profile: {
|
|
1191
|
-
title: string;
|
|
1192
|
-
phone: string;
|
|
1193
|
-
skype: string;
|
|
1194
|
-
real_name: string;
|
|
1195
|
-
real_name_normalized: string;
|
|
1196
|
-
display_name: string;
|
|
1197
|
-
display_name_normalized: string;
|
|
1198
|
-
status_text: string;
|
|
1199
|
-
status_text_canonical: string;
|
|
1200
|
-
status_emoji: string;
|
|
1201
|
-
status_emoji_display_info: StatusEmojiDisplayInfo[];
|
|
1202
|
-
status_expiration: number;
|
|
1203
|
-
avatar_hash: string;
|
|
1204
|
-
first_name: string;
|
|
1205
|
-
last_name: string;
|
|
1206
|
-
email?: string;
|
|
1207
|
-
image_original?: string;
|
|
1208
|
-
is_custom_image?: boolean;
|
|
1209
|
-
image_24: string;
|
|
1210
|
-
image_32: string;
|
|
1211
|
-
image_48: string;
|
|
1212
|
-
image_72: string;
|
|
1213
|
-
image_192: string;
|
|
1214
|
-
image_512: string;
|
|
1215
|
-
image_1024?: string;
|
|
1216
|
-
team: string;
|
|
1217
|
-
fields: {
|
|
1218
|
-
[key: string]: {
|
|
1219
|
-
value: string;
|
|
1220
|
-
alt: string;
|
|
1221
|
-
};
|
|
1222
|
-
} | [] | null;
|
|
1223
|
-
};
|
|
1224
|
-
is_admin: boolean;
|
|
1225
|
-
is_owner: boolean;
|
|
1226
|
-
is_primary_owner: boolean;
|
|
1227
|
-
is_restricted: boolean;
|
|
1228
|
-
is_ultra_restricted: boolean;
|
|
1229
|
-
is_bot: boolean;
|
|
1230
|
-
is_stranger?: boolean;
|
|
1231
|
-
updated: number;
|
|
1232
|
-
is_email_confirmed: boolean;
|
|
1233
|
-
is_app_user: boolean;
|
|
1234
|
-
is_invited_user?: boolean;
|
|
1235
|
-
has_2fa?: boolean;
|
|
1236
|
-
locale: string;
|
|
1237
|
-
presence?: string;
|
|
1238
|
-
enterprise_user?: {
|
|
1239
|
-
id: string;
|
|
1240
|
-
enterprise_id: string;
|
|
1241
|
-
enterprise_name: string;
|
|
1242
|
-
is_admin: boolean;
|
|
1243
|
-
is_owner: boolean;
|
|
1244
|
-
teams: string[];
|
|
1245
|
-
};
|
|
1246
|
-
two_factor_type?: string;
|
|
1247
|
-
has_files?: boolean;
|
|
1248
|
-
is_workflow_bot?: boolean;
|
|
1249
|
-
who_can_share_contact_card: string;
|
|
1250
|
-
};
|
|
1251
|
-
cache_ts: number;
|
|
1252
|
-
event_ts: string;
|
|
1253
|
-
}
|
|
1254
|
-
export interface WorkflowDeletedEvent {
|
|
1255
|
-
type: 'workflow_deleted';
|
|
1256
|
-
workflow_id: string;
|
|
1257
|
-
workflow_draft_configuration: {
|
|
1258
|
-
version_id: string;
|
|
1259
|
-
app_steps: {
|
|
1260
|
-
app_id: string;
|
|
1261
|
-
workflow_step_id: string;
|
|
1262
|
-
callback_id: string;
|
|
1263
|
-
}[];
|
|
1264
|
-
};
|
|
1265
|
-
event_ts: string;
|
|
1266
|
-
}
|
|
1267
|
-
export interface WorkflowPublishedEvent {
|
|
1268
|
-
type: 'workflow_published';
|
|
1269
|
-
workflow_id: string;
|
|
1270
|
-
workflow_published_configuration: {
|
|
1271
|
-
version_id: string;
|
|
1272
|
-
app_steps: {
|
|
1273
|
-
app_id: string;
|
|
1274
|
-
workflow_step_id: string;
|
|
1275
|
-
callback_id: string;
|
|
1276
|
-
}[];
|
|
1277
|
-
};
|
|
1278
|
-
event_ts: string;
|
|
1279
|
-
}
|
|
1280
|
-
export interface WorkflowUnpublishedEvent {
|
|
1281
|
-
type: 'workflow_unpublished';
|
|
1282
|
-
workflow_id: string;
|
|
1283
|
-
workflow_draft_configuration: {
|
|
1284
|
-
version_id: string;
|
|
1285
|
-
app_steps: {
|
|
1286
|
-
app_id: string;
|
|
1287
|
-
workflow_step_id: string;
|
|
1288
|
-
callback_id: string;
|
|
1289
|
-
}[];
|
|
1290
|
-
};
|
|
1291
|
-
event_ts: string;
|
|
1292
|
-
}
|
|
1293
|
-
export interface WorkflowStepDeletedEvent {
|
|
1294
|
-
type: 'workflow_step_deleted';
|
|
1295
|
-
workflow_id: string;
|
|
1296
|
-
workflow_draft_configuration: {
|
|
1297
|
-
version_id: string;
|
|
1298
|
-
app_steps: {
|
|
1299
|
-
app_id: string;
|
|
1300
|
-
workflow_step_id: string;
|
|
1301
|
-
callback_id: string;
|
|
1302
|
-
}[];
|
|
1303
|
-
};
|
|
1304
|
-
workflow_published_configuration?: {
|
|
1305
|
-
version_id: string;
|
|
1306
|
-
app_steps: {
|
|
1307
|
-
app_id: string;
|
|
1308
|
-
workflow_step_id: string;
|
|
1309
|
-
callback_id: string;
|
|
1310
|
-
}[];
|
|
1311
|
-
};
|
|
1312
|
-
event_ts: string;
|
|
1313
|
-
}
|
|
1314
|
-
export interface WorkflowStepExecuteEvent {
|
|
1315
|
-
type: 'workflow_step_execute';
|
|
1316
|
-
callback_id: string;
|
|
1317
|
-
workflow_step: {
|
|
1318
|
-
workflow_step_execute_id: string;
|
|
1319
|
-
workflow_id: string;
|
|
1320
|
-
workflow_instance_id: string;
|
|
1321
|
-
step_id: string;
|
|
1322
|
-
inputs: {
|
|
1323
|
-
[key: string]: {
|
|
1324
|
-
value: any;
|
|
1325
|
-
};
|
|
1326
|
-
};
|
|
1327
|
-
outputs: {
|
|
1328
|
-
name: string;
|
|
1329
|
-
type: string;
|
|
1330
|
-
label: string;
|
|
1331
|
-
}[];
|
|
1332
|
-
};
|
|
1333
|
-
event_ts: string;
|
|
1334
|
-
}
|
|
1335
|
-
export {};
|
|
1336
|
-
//# sourceMappingURL=base-events.d.ts.map
|