@slack/bolt 3.8.0 → 3.8.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/dist/App.d.ts +212 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/App.js +796 -0
- package/dist/App.js.map +1 -0
- package/dist/WorkflowStep.d.ts +106 -0
- package/dist/WorkflowStep.d.ts.map +1 -0
- package/dist/WorkflowStep.js +196 -0
- package/dist/WorkflowStep.js.map +1 -0
- package/dist/conversation-store.d.ts +31 -0
- package/dist/conversation-store.d.ts.map +1 -0
- package/dist/conversation-store.js +72 -0
- package/dist/conversation-store.js.map +1 -0
- package/dist/errors.d.ts +79 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +120 -0
- package/dist/errors.js.map +1 -0
- package/dist/helpers.d.ts +24 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +100 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/dist/middleware/builtin.d.ts +52 -0
- package/dist/middleware/builtin.d.ts.map +1 -0
- package/dist/middleware/builtin.js +311 -0
- package/dist/middleware/builtin.js.map +1 -0
- package/dist/middleware/process.d.ts +5 -0
- package/dist/middleware/process.d.ts.map +1 -0
- package/dist/middleware/process.js +25 -0
- package/dist/middleware/process.js.map +1 -0
- package/dist/receivers/AwsLambdaReceiver.d.ts +53 -0
- package/dist/receivers/AwsLambdaReceiver.d.ts.map +1 -0
- package/dist/receivers/AwsLambdaReceiver.js +188 -0
- package/dist/receivers/AwsLambdaReceiver.js.map +1 -0
- package/dist/receivers/ExpressReceiver.d.ts +77 -0
- package/dist/receivers/ExpressReceiver.d.ts.map +1 -0
- package/dist/receivers/ExpressReceiver.js +445 -0
- package/dist/receivers/ExpressReceiver.js.map +1 -0
- package/dist/receivers/HTTPReceiver.d.ts +109 -0
- package/dist/receivers/HTTPReceiver.d.ts.map +1 -0
- package/dist/receivers/HTTPReceiver.js +501 -0
- package/dist/receivers/HTTPReceiver.js.map +1 -0
- package/dist/receivers/SocketModeReceiver.d.ts +61 -0
- package/dist/receivers/SocketModeReceiver.d.ts.map +1 -0
- package/dist/receivers/SocketModeReceiver.js +175 -0
- package/dist/receivers/SocketModeReceiver.js.map +1 -0
- package/dist/receivers/custom-routes.d.ts +14 -0
- package/dist/receivers/custom-routes.d.ts.map +1 -0
- package/dist/receivers/custom-routes.js +33 -0
- package/dist/receivers/custom-routes.js.map +1 -0
- package/dist/receivers/http-utils.d.ts +5 -0
- package/dist/receivers/http-utils.d.ts.map +1 -0
- package/dist/receivers/http-utils.js +35 -0
- package/dist/receivers/http-utils.js.map +1 -0
- package/dist/receivers/render-html-for-install-path.d.ts +3 -0
- package/dist/receivers/render-html-for-install-path.d.ts.map +1 -0
- package/dist/receivers/render-html-for-install-path.js +25 -0
- package/dist/receivers/render-html-for-install-path.js.map +1 -0
- package/dist/receivers/verify-redirect-opts.d.ts +7 -0
- package/dist/receivers/verify-redirect-opts.d.ts.map +1 -0
- package/dist/receivers/verify-redirect-opts.js +23 -0
- package/dist/receivers/verify-redirect-opts.js.map +1 -0
- package/dist/receivers/verify-request.d.ts +41 -0
- package/dist/receivers/verify-request.d.ts.map +1 -0
- package/dist/receivers/verify-request.js +98 -0
- package/dist/receivers/verify-request.js.map +1 -0
- package/dist/types/actions/block-action.d.ts +231 -0
- package/dist/types/actions/block-action.d.ts.map +1 -0
- package/dist/types/actions/block-action.js +3 -0
- package/dist/types/actions/block-action.js.map +1 -0
- package/dist/types/actions/dialog-action.d.ts +47 -0
- package/dist/types/actions/dialog-action.d.ts.map +1 -0
- package/dist/types/actions/dialog-action.js +3 -0
- package/dist/types/actions/dialog-action.js.map +1 -0
- package/dist/types/actions/index.d.ts +46 -0
- package/dist/types/actions/index.d.ts.map +1 -0
- package/dist/types/actions/index.js +17 -0
- package/dist/types/actions/index.js.map +1 -0
- package/dist/types/actions/interactive-message.d.ts +66 -0
- package/dist/types/actions/interactive-message.d.ts.map +1 -0
- package/dist/types/actions/interactive-message.js +3 -0
- package/dist/types/actions/interactive-message.js.map +1 -0
- package/dist/types/actions/workflow-step-edit.d.ts +49 -0
- package/dist/types/actions/workflow-step-edit.d.ts.map +1 -0
- package/dist/types/actions/workflow-step-edit.js +3 -0
- package/dist/types/actions/workflow-step-edit.js.map +1 -0
- package/dist/types/command/index.d.ts +36 -0
- package/dist/types/command/index.d.ts.map +1 -0
- package/dist/types/command/index.js +3 -0
- package/dist/types/command/index.js.map +1 -0
- package/dist/types/events/base-events.d.ts +699 -0
- package/dist/types/events/base-events.d.ts.map +1 -0
- package/dist/types/events/base-events.js +5 -0
- package/dist/types/events/base-events.js.map +1 -0
- package/dist/types/events/index.d.ts +63 -0
- package/dist/types/events/index.d.ts.map +1 -0
- package/dist/types/events/index.js +14 -0
- package/dist/types/events/index.js.map +1 -0
- package/dist/types/events/message-events.d.ts +312 -0
- package/dist/types/events/message-events.d.ts.map +1 -0
- package/dist/types/events/message-events.js +3 -0
- package/dist/types/events/message-events.js.map +1 -0
- package/dist/types/helpers.d.ts +17 -0
- package/dist/types/helpers.d.ts.map +1 -0
- package/dist/types/helpers.js +3 -0
- package/dist/types/helpers.js.map +1 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +22 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/middleware.d.ts +65 -0
- package/dist/types/middleware.d.ts.map +1 -0
- package/dist/types/middleware.js +14 -0
- package/dist/types/middleware.js.map +1 -0
- package/dist/types/options/index.d.ts +192 -0
- package/dist/types/options/index.d.ts.map +1 -0
- package/dist/types/options/index.js +3 -0
- package/dist/types/options/index.js.map +1 -0
- package/dist/types/receiver.d.ts +16 -0
- package/dist/types/receiver.d.ts.map +1 -0
- package/dist/types/receiver.js +3 -0
- package/dist/types/receiver.js.map +1 -0
- package/dist/types/shortcuts/global-shortcut.d.ts +29 -0
- package/dist/types/shortcuts/global-shortcut.d.ts.map +1 -0
- package/dist/types/shortcuts/global-shortcut.js +3 -0
- package/dist/types/shortcuts/global-shortcut.js.map +1 -0
- package/dist/types/shortcuts/index.d.ts +23 -0
- package/dist/types/shortcuts/index.d.ts.map +1 -0
- package/dist/types/shortcuts/index.js +16 -0
- package/dist/types/shortcuts/index.js.map +1 -0
- package/dist/types/shortcuts/message-shortcut.d.ts +43 -0
- package/dist/types/shortcuts/message-shortcut.d.ts.map +1 -0
- package/dist/types/shortcuts/message-shortcut.js +3 -0
- package/dist/types/shortcuts/message-shortcut.js.map +1 -0
- package/dist/types/utilities.d.ts +23 -0
- package/dist/types/utilities.d.ts.map +1 -0
- package/dist/types/utilities.js +3 -0
- package/dist/types/utilities.js.map +1 -0
- package/dist/types/view/index.d.ts +175 -0
- package/dist/types/view/index.d.ts.map +1 -0
- package/dist/types/view/index.js +3 -0
- package/dist/types/view/index.js.map +1 -0
- package/package.json +1 -1
- package/dist/package.json +0 -88
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
import { View, MessageAttachment, KnownBlock, Block } from '@slack/types';
|
|
2
|
+
import { MessageEvent as AllMessageEvents } from './message-events';
|
|
3
|
+
/**
|
|
4
|
+
* All known event types in Slack's Events API
|
|
5
|
+
*
|
|
6
|
+
* This is a discriminated union. The discriminant is the `type` property.
|
|
7
|
+
*/
|
|
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 EventTypePattern = string | RegExp;
|
|
10
|
+
/**
|
|
11
|
+
* Any event in Slack's Events API
|
|
12
|
+
*
|
|
13
|
+
* This type is used to represent events that aren't known ahead of time. Each of the known event types also implement
|
|
14
|
+
* this interface. That condition isn't enforced, since we're not interested in factoring out common properties from the
|
|
15
|
+
* known event types.
|
|
16
|
+
*/
|
|
17
|
+
export interface BasicSlackEvent<Type extends string = string> {
|
|
18
|
+
type: Type;
|
|
19
|
+
}
|
|
20
|
+
export interface AppRequestedEvent {
|
|
21
|
+
type: 'app_requested';
|
|
22
|
+
app_request: {
|
|
23
|
+
id: string;
|
|
24
|
+
app: {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
description: string;
|
|
28
|
+
help_url: string;
|
|
29
|
+
privacy_policy_url: string;
|
|
30
|
+
app_homepage_url: string;
|
|
31
|
+
app_directory_url: string;
|
|
32
|
+
is_app_directory_approved: boolean;
|
|
33
|
+
is_internal: boolean;
|
|
34
|
+
additional_info: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
previous_resolution: {
|
|
38
|
+
status: 'approved' | 'restricted';
|
|
39
|
+
scopes: {
|
|
40
|
+
name: string;
|
|
41
|
+
description: string;
|
|
42
|
+
is_dangerous: boolean;
|
|
43
|
+
token_type: 'bot' | 'user' | 'app' | null;
|
|
44
|
+
};
|
|
45
|
+
} | null;
|
|
46
|
+
user: {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
email: string;
|
|
50
|
+
};
|
|
51
|
+
team: {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
domain: string;
|
|
55
|
+
};
|
|
56
|
+
scopes: {
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
is_dangerous: boolean;
|
|
60
|
+
token_type: 'bot' | 'user' | 'app' | null;
|
|
61
|
+
};
|
|
62
|
+
message: string;
|
|
63
|
+
date_created: number;
|
|
64
|
+
}
|
|
65
|
+
export interface AppHomeOpenedEvent {
|
|
66
|
+
type: 'app_home_opened';
|
|
67
|
+
user: string;
|
|
68
|
+
channel: string;
|
|
69
|
+
tab?: 'home' | 'messages';
|
|
70
|
+
view?: View;
|
|
71
|
+
event_ts: string;
|
|
72
|
+
}
|
|
73
|
+
export interface AppMentionEvent {
|
|
74
|
+
type: 'app_mention';
|
|
75
|
+
subtype?: string;
|
|
76
|
+
bot_id?: string;
|
|
77
|
+
username: string;
|
|
78
|
+
user?: string;
|
|
79
|
+
text: string;
|
|
80
|
+
attachments?: MessageAttachment[];
|
|
81
|
+
blocks?: (KnownBlock | Block)[];
|
|
82
|
+
edited?: {
|
|
83
|
+
user: string;
|
|
84
|
+
ts: string;
|
|
85
|
+
};
|
|
86
|
+
ts: string;
|
|
87
|
+
channel: string;
|
|
88
|
+
event_ts: string;
|
|
89
|
+
thread_ts: string;
|
|
90
|
+
}
|
|
91
|
+
export interface AppUninstalledEvent {
|
|
92
|
+
type: 'app_uninstalled';
|
|
93
|
+
}
|
|
94
|
+
export interface CallRejectedEvent {
|
|
95
|
+
type: 'call_rejected';
|
|
96
|
+
call_id: string;
|
|
97
|
+
user_id: string;
|
|
98
|
+
channel_id: string;
|
|
99
|
+
external_unique_id: string;
|
|
100
|
+
}
|
|
101
|
+
export interface ChannelArchiveEvent {
|
|
102
|
+
type: 'channel_archive';
|
|
103
|
+
channel: string;
|
|
104
|
+
user: string;
|
|
105
|
+
}
|
|
106
|
+
export interface ChannelCreatedEvent {
|
|
107
|
+
type: 'channel_created';
|
|
108
|
+
channel: {
|
|
109
|
+
id: string;
|
|
110
|
+
name: string;
|
|
111
|
+
created: number;
|
|
112
|
+
creator: string;
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
export interface ChannelDeletedEvent {
|
|
116
|
+
type: 'channel_deleted';
|
|
117
|
+
channel: string;
|
|
118
|
+
}
|
|
119
|
+
export interface ChannelHistoryChangedEvent {
|
|
120
|
+
type: 'channel_history_changed';
|
|
121
|
+
latest: string;
|
|
122
|
+
ts: string;
|
|
123
|
+
event_ts: string;
|
|
124
|
+
}
|
|
125
|
+
export interface ChannelIDChangedEvent {
|
|
126
|
+
type: 'channel_id_changed';
|
|
127
|
+
old_channel_id: string;
|
|
128
|
+
new_channel_id: string;
|
|
129
|
+
event_ts: string;
|
|
130
|
+
}
|
|
131
|
+
export interface ChannelLeftEvent {
|
|
132
|
+
type: 'channel_left';
|
|
133
|
+
channel: string;
|
|
134
|
+
}
|
|
135
|
+
export interface ChannelRenameEvent {
|
|
136
|
+
type: 'channel_rename';
|
|
137
|
+
channel: {
|
|
138
|
+
id: string;
|
|
139
|
+
name: string;
|
|
140
|
+
created: number;
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
export interface ChannelSharedEvent {
|
|
144
|
+
type: 'channel_shared';
|
|
145
|
+
connected_team_id: string;
|
|
146
|
+
channel: string;
|
|
147
|
+
event_ts: string;
|
|
148
|
+
}
|
|
149
|
+
export interface ChannelUnarchiveEvent {
|
|
150
|
+
type: 'channel_unarchive';
|
|
151
|
+
channel: string;
|
|
152
|
+
user: string;
|
|
153
|
+
}
|
|
154
|
+
export interface ChannelUnsharedEvent {
|
|
155
|
+
type: 'channel_unshared';
|
|
156
|
+
previously_connected_team_id: string;
|
|
157
|
+
channel: string;
|
|
158
|
+
is_ext_shared: boolean;
|
|
159
|
+
event_ts: string;
|
|
160
|
+
}
|
|
161
|
+
export interface DNDUpdatedEvent {
|
|
162
|
+
type: 'dnd_updated';
|
|
163
|
+
user: string;
|
|
164
|
+
dnd_status: {
|
|
165
|
+
dnd_enabled: boolean;
|
|
166
|
+
next_dnd_start_ts: number;
|
|
167
|
+
next_dnd_end_ts: number;
|
|
168
|
+
snooze_enabled: boolean;
|
|
169
|
+
snooze_endtime: number;
|
|
170
|
+
snooze_remaining: number;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
export interface DNDUpdatedUserEvent {
|
|
174
|
+
type: 'dnd_updated_user';
|
|
175
|
+
user: string;
|
|
176
|
+
dnd_status: {
|
|
177
|
+
dnd_enabled: boolean;
|
|
178
|
+
next_dnd_start_ts: number;
|
|
179
|
+
next_dnd_end_ts: number;
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
export interface EmailDomainChangedEvent {
|
|
183
|
+
type: 'email_domain_changed';
|
|
184
|
+
email_domain: string;
|
|
185
|
+
event_ts: string;
|
|
186
|
+
}
|
|
187
|
+
export interface EmojiChangedEvent {
|
|
188
|
+
type: 'emoji_changed';
|
|
189
|
+
subtype: 'add' | 'remove';
|
|
190
|
+
names?: string[];
|
|
191
|
+
name?: string;
|
|
192
|
+
value?: string;
|
|
193
|
+
event_ts: string;
|
|
194
|
+
}
|
|
195
|
+
export interface FileChangeEvent {
|
|
196
|
+
type: 'file_change';
|
|
197
|
+
file_id: string;
|
|
198
|
+
file: {
|
|
199
|
+
id: string;
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
export interface FileCommentDeletedEvent {
|
|
203
|
+
type: 'file_comment_deleted';
|
|
204
|
+
comment: string;
|
|
205
|
+
file_id: string;
|
|
206
|
+
file: {
|
|
207
|
+
id: string;
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
export interface FileCreatedEvent {
|
|
211
|
+
type: 'file_created';
|
|
212
|
+
file_id: string;
|
|
213
|
+
file: {
|
|
214
|
+
id: string;
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
export interface FileDeletedEvent {
|
|
218
|
+
type: 'file_deleted';
|
|
219
|
+
file_id: string;
|
|
220
|
+
event_ts: string;
|
|
221
|
+
}
|
|
222
|
+
export interface FilePublicEvent {
|
|
223
|
+
type: 'file_public';
|
|
224
|
+
file_id: string;
|
|
225
|
+
file: {
|
|
226
|
+
id: string;
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
export interface FileSharedEvent {
|
|
230
|
+
type: 'file_shared';
|
|
231
|
+
file_id: string;
|
|
232
|
+
file: {
|
|
233
|
+
id: string;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
export interface FileUnsharedEvent {
|
|
237
|
+
type: 'file_unshared';
|
|
238
|
+
file_id: string;
|
|
239
|
+
file: {
|
|
240
|
+
id: string;
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
export interface GridMigrationFinishedEvent {
|
|
244
|
+
type: 'grid_migration_finished';
|
|
245
|
+
enterprise_id: string;
|
|
246
|
+
}
|
|
247
|
+
export interface GridMigrationStartedEvent {
|
|
248
|
+
type: 'grid_migration_started';
|
|
249
|
+
enterprise_id: string;
|
|
250
|
+
}
|
|
251
|
+
export interface GroupArchiveEvent {
|
|
252
|
+
type: 'group_archive';
|
|
253
|
+
channel: string;
|
|
254
|
+
}
|
|
255
|
+
export interface GroupCloseEvent {
|
|
256
|
+
type: 'group_close';
|
|
257
|
+
user: string;
|
|
258
|
+
channel: string;
|
|
259
|
+
}
|
|
260
|
+
export interface GroupDeletedEvent {
|
|
261
|
+
type: 'group_deleted';
|
|
262
|
+
channel: string;
|
|
263
|
+
}
|
|
264
|
+
export interface GroupHistoryChangedEvent {
|
|
265
|
+
type: 'group_history_changed';
|
|
266
|
+
latest: string;
|
|
267
|
+
ts: string;
|
|
268
|
+
event_ts: string;
|
|
269
|
+
}
|
|
270
|
+
export interface GroupLeftEvent {
|
|
271
|
+
type: 'group_left';
|
|
272
|
+
channel: string;
|
|
273
|
+
}
|
|
274
|
+
export interface GroupOpenEvent {
|
|
275
|
+
type: 'group_open';
|
|
276
|
+
user: string;
|
|
277
|
+
channel: string;
|
|
278
|
+
}
|
|
279
|
+
export interface GroupRenameEvent {
|
|
280
|
+
type: 'group_rename';
|
|
281
|
+
channel: {
|
|
282
|
+
id: string;
|
|
283
|
+
name: string;
|
|
284
|
+
created: number;
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
export interface GroupUnarchiveEvent {
|
|
288
|
+
type: 'group_unarchive';
|
|
289
|
+
channel: string;
|
|
290
|
+
}
|
|
291
|
+
export interface IMCloseEvent {
|
|
292
|
+
type: 'im_close';
|
|
293
|
+
user: string;
|
|
294
|
+
channel: string;
|
|
295
|
+
}
|
|
296
|
+
export interface IMCreatedEvent {
|
|
297
|
+
type: 'im_created';
|
|
298
|
+
user: string;
|
|
299
|
+
channel: {
|
|
300
|
+
id: string;
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
export interface IMHistoryChangedEvent {
|
|
304
|
+
type: 'im_history_changed';
|
|
305
|
+
latest: string;
|
|
306
|
+
ts: string;
|
|
307
|
+
event_ts: string;
|
|
308
|
+
}
|
|
309
|
+
export interface IMOpenEvent {
|
|
310
|
+
type: 'im_open';
|
|
311
|
+
user: string;
|
|
312
|
+
channel: string;
|
|
313
|
+
}
|
|
314
|
+
export interface InviteRequestedEvent {
|
|
315
|
+
type: 'invite_requested';
|
|
316
|
+
invite_request: {
|
|
317
|
+
id: string;
|
|
318
|
+
email: string;
|
|
319
|
+
date_created: number;
|
|
320
|
+
requester_ids: string[];
|
|
321
|
+
channel_ids: string[];
|
|
322
|
+
invite_type: 'restricted' | 'ultra_restricted' | 'full_member';
|
|
323
|
+
real_name: string;
|
|
324
|
+
date_expire: number;
|
|
325
|
+
request_reason: string;
|
|
326
|
+
team: {
|
|
327
|
+
id: string;
|
|
328
|
+
name: string;
|
|
329
|
+
domain: string;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
export interface LinkSharedEvent {
|
|
334
|
+
type: 'link_shared';
|
|
335
|
+
channel: string;
|
|
336
|
+
is_bot_user_member: boolean;
|
|
337
|
+
user: string;
|
|
338
|
+
message_ts: string;
|
|
339
|
+
thread_ts?: string;
|
|
340
|
+
event_ts: string;
|
|
341
|
+
links: {
|
|
342
|
+
domain: string;
|
|
343
|
+
url: string;
|
|
344
|
+
}[];
|
|
345
|
+
}
|
|
346
|
+
export interface MemberJoinedChannelEvent {
|
|
347
|
+
type: 'member_joined_channel';
|
|
348
|
+
user: string;
|
|
349
|
+
channel: string;
|
|
350
|
+
channel_type: string;
|
|
351
|
+
team: string;
|
|
352
|
+
inviter?: string;
|
|
353
|
+
}
|
|
354
|
+
export interface MemberLeftChannelEvent {
|
|
355
|
+
type: 'member_left_channel';
|
|
356
|
+
user: string;
|
|
357
|
+
channel: string;
|
|
358
|
+
channel_type: string;
|
|
359
|
+
team: string;
|
|
360
|
+
}
|
|
361
|
+
export declare type MessageEvent = AllMessageEvents;
|
|
362
|
+
export interface PinAddedEvent {
|
|
363
|
+
type: 'pin_added';
|
|
364
|
+
user: string;
|
|
365
|
+
channel_id: string;
|
|
366
|
+
item: Record<string, unknown>;
|
|
367
|
+
}
|
|
368
|
+
export interface PinRemovedEvent {
|
|
369
|
+
type: 'pin_removed';
|
|
370
|
+
user: string;
|
|
371
|
+
channel_id: string;
|
|
372
|
+
item: Record<string, unknown>;
|
|
373
|
+
has_pins: boolean;
|
|
374
|
+
event_ts: string;
|
|
375
|
+
}
|
|
376
|
+
export interface ReactionMessageItem {
|
|
377
|
+
type: 'message';
|
|
378
|
+
channel: string;
|
|
379
|
+
ts: string;
|
|
380
|
+
}
|
|
381
|
+
export interface ReactionFileItem {
|
|
382
|
+
type: 'file';
|
|
383
|
+
file: string;
|
|
384
|
+
}
|
|
385
|
+
export interface ReactionFileCommentItem {
|
|
386
|
+
type: 'file_comment';
|
|
387
|
+
file_comment: string;
|
|
388
|
+
file: string;
|
|
389
|
+
}
|
|
390
|
+
export interface ReactionAddedEvent {
|
|
391
|
+
type: 'reaction_added';
|
|
392
|
+
user: string;
|
|
393
|
+
reaction: string;
|
|
394
|
+
item_user: string;
|
|
395
|
+
item: ReactionMessageItem | ReactionFileItem | ReactionFileCommentItem;
|
|
396
|
+
event_ts: string;
|
|
397
|
+
}
|
|
398
|
+
export interface ReactionRemovedEvent {
|
|
399
|
+
type: 'reaction_removed';
|
|
400
|
+
user: string;
|
|
401
|
+
reaction: string;
|
|
402
|
+
item_user: string;
|
|
403
|
+
item: ReactionMessageItem | ReactionFileItem | ReactionFileCommentItem;
|
|
404
|
+
event_ts: string;
|
|
405
|
+
}
|
|
406
|
+
export interface SharedChannelTeamItem {
|
|
407
|
+
id: string;
|
|
408
|
+
name: string;
|
|
409
|
+
icon: Record<string, unknown>;
|
|
410
|
+
is_verified: boolean;
|
|
411
|
+
domain: string;
|
|
412
|
+
date_created: number;
|
|
413
|
+
}
|
|
414
|
+
export interface SharedChannelUserItem {
|
|
415
|
+
id: string;
|
|
416
|
+
team_id: string;
|
|
417
|
+
name: string;
|
|
418
|
+
updated: number;
|
|
419
|
+
profile: {
|
|
420
|
+
real_name: string;
|
|
421
|
+
display_name: string;
|
|
422
|
+
real_name_normalized: string;
|
|
423
|
+
display_name_normalized: string;
|
|
424
|
+
team: string;
|
|
425
|
+
avatar_hash: string;
|
|
426
|
+
email: string;
|
|
427
|
+
image_24: string;
|
|
428
|
+
image_32: string;
|
|
429
|
+
image_48: string;
|
|
430
|
+
image_72: string;
|
|
431
|
+
image_192: string;
|
|
432
|
+
image_512: string;
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
export interface SharedChannelInviteItem {
|
|
436
|
+
id: string;
|
|
437
|
+
date_created: number;
|
|
438
|
+
date_invalid: number;
|
|
439
|
+
inviting_team: SharedChannelTeamItem;
|
|
440
|
+
inviting_user: SharedChannelUserItem;
|
|
441
|
+
recipient_email?: string;
|
|
442
|
+
recipient_user_id?: string;
|
|
443
|
+
}
|
|
444
|
+
export interface SharedChannelItem {
|
|
445
|
+
id: string;
|
|
446
|
+
is_private: boolean;
|
|
447
|
+
is_im: boolean;
|
|
448
|
+
name: string;
|
|
449
|
+
}
|
|
450
|
+
export interface SharedChannelInviteAccepted {
|
|
451
|
+
type: 'shared_channel_invite_accepted';
|
|
452
|
+
approval_required: boolean;
|
|
453
|
+
invite: SharedChannelInviteItem;
|
|
454
|
+
channel: SharedChannelItem;
|
|
455
|
+
teams_in_channel: SharedChannelTeamItem[];
|
|
456
|
+
accepting_user: SharedChannelUserItem;
|
|
457
|
+
event_ts: string;
|
|
458
|
+
}
|
|
459
|
+
export interface SharedChannelInviteApproved {
|
|
460
|
+
type: 'shared_channel_invite_approved';
|
|
461
|
+
invite: SharedChannelInviteItem;
|
|
462
|
+
channel: SharedChannelItem;
|
|
463
|
+
approving_team_id: string;
|
|
464
|
+
teams_in_channel: SharedChannelTeamItem[];
|
|
465
|
+
approving_user: SharedChannelUserItem;
|
|
466
|
+
event_ts: string;
|
|
467
|
+
}
|
|
468
|
+
export interface SharedChannelInviteDeclined {
|
|
469
|
+
type: 'shared_channel_invite_declined';
|
|
470
|
+
invite: SharedChannelInviteItem;
|
|
471
|
+
channel: SharedChannelItem;
|
|
472
|
+
declining_team_id: string;
|
|
473
|
+
teams_in_channel: SharedChannelTeamItem[];
|
|
474
|
+
declining_user: SharedChannelUserItem;
|
|
475
|
+
event_ts: string;
|
|
476
|
+
}
|
|
477
|
+
export interface SharedChannelInviteReceived {
|
|
478
|
+
type: 'shared_channel_invite_received';
|
|
479
|
+
invite: SharedChannelInviteItem;
|
|
480
|
+
channel: SharedChannelItem;
|
|
481
|
+
event_ts: string;
|
|
482
|
+
}
|
|
483
|
+
export interface StarAddedEvent {
|
|
484
|
+
type: 'star_added';
|
|
485
|
+
user: string;
|
|
486
|
+
item: Record<string, unknown>;
|
|
487
|
+
event_ts: string;
|
|
488
|
+
}
|
|
489
|
+
export interface StarRemovedEvent {
|
|
490
|
+
type: 'star_removed';
|
|
491
|
+
user: string;
|
|
492
|
+
item: Record<string, unknown>;
|
|
493
|
+
event_ts: string;
|
|
494
|
+
}
|
|
495
|
+
export interface SubteamCreated {
|
|
496
|
+
type: 'subteam_created';
|
|
497
|
+
subteam: {
|
|
498
|
+
id: string;
|
|
499
|
+
created_by: string;
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
export interface SubteamMembersChanged {
|
|
503
|
+
type: 'subteam_members_changed';
|
|
504
|
+
subteam_id: string;
|
|
505
|
+
team_id: string;
|
|
506
|
+
date_previous_update: number;
|
|
507
|
+
date_update: number;
|
|
508
|
+
added_users: string[];
|
|
509
|
+
added_users_count: number;
|
|
510
|
+
removed_users: string[];
|
|
511
|
+
removed_users_count: number;
|
|
512
|
+
}
|
|
513
|
+
export interface SubteamSelfAddedEvent {
|
|
514
|
+
type: 'subteam_self_added';
|
|
515
|
+
subteam_id: string;
|
|
516
|
+
}
|
|
517
|
+
export interface SubteamSelfRemovedEvent {
|
|
518
|
+
type: 'subteam_self_removed';
|
|
519
|
+
subteam_id: string;
|
|
520
|
+
}
|
|
521
|
+
export interface SubteamUpdatedEvent {
|
|
522
|
+
type: 'subteam_updated';
|
|
523
|
+
subteam: {
|
|
524
|
+
id: string;
|
|
525
|
+
created_by: string;
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
export interface TeamDomainChangedEvent {
|
|
529
|
+
type: 'team_domain_changed';
|
|
530
|
+
url: string;
|
|
531
|
+
domain: string;
|
|
532
|
+
}
|
|
533
|
+
export interface TeamJoinEvent {
|
|
534
|
+
type: 'team_join';
|
|
535
|
+
user: {
|
|
536
|
+
id: string;
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
export interface TeamRenameEvent {
|
|
540
|
+
type: 'team_rename';
|
|
541
|
+
name: string;
|
|
542
|
+
}
|
|
543
|
+
export interface TokensRevokedEvent {
|
|
544
|
+
type: 'tokens_revoked';
|
|
545
|
+
tokens: {
|
|
546
|
+
oauth: string[];
|
|
547
|
+
bot: string[];
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
export interface UserChangeEvent {
|
|
551
|
+
type: 'user_change';
|
|
552
|
+
user: {
|
|
553
|
+
id: string;
|
|
554
|
+
team_id: string;
|
|
555
|
+
name: string;
|
|
556
|
+
deleted: boolean;
|
|
557
|
+
color: string;
|
|
558
|
+
real_name: string;
|
|
559
|
+
tz: string;
|
|
560
|
+
tz_label: string;
|
|
561
|
+
tz_offset: number;
|
|
562
|
+
profile: {
|
|
563
|
+
title: string;
|
|
564
|
+
phone: string;
|
|
565
|
+
skype: string;
|
|
566
|
+
real_name: string;
|
|
567
|
+
real_name_normalized: string;
|
|
568
|
+
display_name: string;
|
|
569
|
+
display_name_normalized: string;
|
|
570
|
+
status_text: string;
|
|
571
|
+
status_text_canonical: string;
|
|
572
|
+
status_emoji: string;
|
|
573
|
+
status_expiration: number;
|
|
574
|
+
avatar_hash: string;
|
|
575
|
+
first_name: string;
|
|
576
|
+
last_name: string;
|
|
577
|
+
email: string;
|
|
578
|
+
image_original?: string;
|
|
579
|
+
is_custom_image?: boolean;
|
|
580
|
+
image_24: string;
|
|
581
|
+
image_32: string;
|
|
582
|
+
image_48: string;
|
|
583
|
+
image_72: string;
|
|
584
|
+
image_192: string;
|
|
585
|
+
image_512: string;
|
|
586
|
+
image_1024?: string;
|
|
587
|
+
team: string;
|
|
588
|
+
fields: {
|
|
589
|
+
[key: string]: {
|
|
590
|
+
value: string;
|
|
591
|
+
alt: string;
|
|
592
|
+
};
|
|
593
|
+
} | [] | null;
|
|
594
|
+
};
|
|
595
|
+
is_admin: boolean;
|
|
596
|
+
is_owner: boolean;
|
|
597
|
+
is_primary_owner: boolean;
|
|
598
|
+
is_restricted: boolean;
|
|
599
|
+
is_ultra_restricted: boolean;
|
|
600
|
+
is_bot: boolean;
|
|
601
|
+
is_stranger?: boolean;
|
|
602
|
+
updated: string;
|
|
603
|
+
is_email_confirmed: boolean;
|
|
604
|
+
is_app_user: boolean;
|
|
605
|
+
is_invited_user?: boolean;
|
|
606
|
+
has_2fa?: boolean;
|
|
607
|
+
locale: string;
|
|
608
|
+
enterprise_user?: {
|
|
609
|
+
id: string;
|
|
610
|
+
enterprise_id: string;
|
|
611
|
+
enterprise_name: string;
|
|
612
|
+
is_admin: boolean;
|
|
613
|
+
is_owner: boolean;
|
|
614
|
+
teams: string[];
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
export interface WorkflowDeletedEvent {
|
|
619
|
+
type: 'workflow_deleted';
|
|
620
|
+
workflow_id: string;
|
|
621
|
+
workflow_draft_configuration: {
|
|
622
|
+
version_id: string;
|
|
623
|
+
app_steps: {
|
|
624
|
+
app_id: string;
|
|
625
|
+
workflow_step_id: string;
|
|
626
|
+
callback_id: string;
|
|
627
|
+
}[];
|
|
628
|
+
};
|
|
629
|
+
event_ts: string;
|
|
630
|
+
}
|
|
631
|
+
export interface WorkflowPublishedEvent {
|
|
632
|
+
type: 'workflow_published';
|
|
633
|
+
workflow_id: string;
|
|
634
|
+
workflow_published_configuration: {
|
|
635
|
+
version_id: string;
|
|
636
|
+
app_steps: {
|
|
637
|
+
app_id: string;
|
|
638
|
+
workflow_step_id: string;
|
|
639
|
+
callback_id: string;
|
|
640
|
+
}[];
|
|
641
|
+
};
|
|
642
|
+
event_ts: string;
|
|
643
|
+
}
|
|
644
|
+
export interface WorkflowUnpublishedEvent {
|
|
645
|
+
type: 'workflow_unpublished';
|
|
646
|
+
workflow_id: string;
|
|
647
|
+
workflow_draft_configuration: {
|
|
648
|
+
version_id: string;
|
|
649
|
+
app_steps: {
|
|
650
|
+
app_id: string;
|
|
651
|
+
workflow_step_id: string;
|
|
652
|
+
callback_id: string;
|
|
653
|
+
}[];
|
|
654
|
+
};
|
|
655
|
+
event_ts: string;
|
|
656
|
+
}
|
|
657
|
+
export interface WorkflowStepDeletedEvent {
|
|
658
|
+
type: 'workflow_step_deleted';
|
|
659
|
+
workflow_id: string;
|
|
660
|
+
workflow_draft_configuration: {
|
|
661
|
+
version_id: string;
|
|
662
|
+
app_steps: {
|
|
663
|
+
app_id: string;
|
|
664
|
+
workflow_step_id: string;
|
|
665
|
+
callback_id: string;
|
|
666
|
+
}[];
|
|
667
|
+
};
|
|
668
|
+
workflow_published_configuration?: {
|
|
669
|
+
version_id: string;
|
|
670
|
+
app_steps: {
|
|
671
|
+
app_id: string;
|
|
672
|
+
workflow_step_id: string;
|
|
673
|
+
callback_id: string;
|
|
674
|
+
}[];
|
|
675
|
+
};
|
|
676
|
+
event_ts: string;
|
|
677
|
+
}
|
|
678
|
+
export interface WorkflowStepExecuteEvent {
|
|
679
|
+
type: 'workflow_step_execute';
|
|
680
|
+
callback_id: string;
|
|
681
|
+
workflow_step: {
|
|
682
|
+
workflow_step_execute_id: string;
|
|
683
|
+
workflow_id: string;
|
|
684
|
+
workflow_instance_id: string;
|
|
685
|
+
step_id: string;
|
|
686
|
+
inputs: {
|
|
687
|
+
[key: string]: {
|
|
688
|
+
value: any;
|
|
689
|
+
};
|
|
690
|
+
};
|
|
691
|
+
outputs: {
|
|
692
|
+
name: string;
|
|
693
|
+
type: string;
|
|
694
|
+
label: string;
|
|
695
|
+
}[];
|
|
696
|
+
};
|
|
697
|
+
event_ts: string;
|
|
698
|
+
}
|
|
699
|
+
//# sourceMappingURL=base-events.d.ts.map
|