UNPKG

12.2 kBTypeScriptView Raw
1import { WebAPICallResult } from '../../WebClient';
2export type ChatScheduleMessageResponse = WebAPICallResult & {
3 channel?: string;
4 error?: string;
5 message?: Message;
6 needed?: string;
7 ok?: boolean;
8 post_at?: number;
9 provided?: string;
10 response_metadata?: ResponseMetadata;
11 scheduled_message_id?: string;
12};
13export interface Message {
14 app_id?: string;
15 blocks?: Block[];
16 bot_id?: string;
17 bot_profile?: BotProfile;
18 metadata?: Metadata;
19 room?: Room;
20 team?: string;
21 text?: string;
22 type?: string;
23 user?: string;
24}
25export interface Block {
26 accessory?: Accessory;
27 alt_text?: string;
28 api_decoration_available?: boolean;
29 app_collaborators?: string[];
30 app_id?: string;
31 author_name?: string;
32 block_id?: string;
33 bot_user_id?: string;
34 button_label?: string;
35 call?: Call;
36 call_id?: string;
37 description?: Description;
38 developer_trace_id?: string;
39 dispatch_action?: boolean;
40 element?: Accessory;
41 elements?: Accessory[];
42 external_id?: string;
43 fallback?: string;
44 fields?: Description[];
45 file?: File;
46 file_id?: string;
47 function_trigger_id?: string;
48 hint?: Description;
49 image_bytes?: number;
50 image_height?: number;
51 image_url?: string;
52 image_width?: number;
53 is_animated?: boolean;
54 is_workflow_app?: boolean;
55 label?: Description;
56 optional?: boolean;
57 owning_team_id?: string;
58 provider_icon_url?: string;
59 provider_name?: string;
60 sales_home_workflow_app_type?: number;
61 share_url?: string;
62 slack_file?: SlackFile;
63 source?: string;
64 text?: Description;
65 thumbnail_url?: string;
66 title?: Description;
67 title_url?: string;
68 trigger_subtype?: string;
69 trigger_type?: string;
70 type?: string;
71 url?: string;
72 video_url?: string;
73 workflow_id?: string;
74}
75export interface Accessory {
76 accessibility_label?: string;
77 action_id?: string;
78 alt_text?: string;
79 border?: number;
80 confirm?: Confirm;
81 default_to_current_conversation?: boolean;
82 elements?: AccessoryElement[];
83 fallback?: string;
84 filter?: Filter;
85 focus_on_load?: boolean;
86 image_bytes?: number;
87 image_height?: number;
88 image_url?: string;
89 image_width?: number;
90 indent?: number;
91 initial_channel?: string;
92 initial_channels?: string[];
93 initial_conversation?: string;
94 initial_conversations?: string[];
95 initial_date?: string;
96 initial_date_time?: number;
97 initial_option?: Option;
98 initial_options?: Option[];
99 initial_time?: string;
100 initial_user?: string;
101 initial_users?: string[];
102 max_selected_items?: number;
103 min_query_length?: number;
104 offset?: number;
105 option_groups?: OptionGroup[];
106 options?: Option[];
107 placeholder?: Description;
108 response_url_enabled?: boolean;
109 slack_file?: SlackFile;
110 style?: string;
111 text?: Description;
112 timezone?: string;
113 type?: string;
114 url?: string;
115 value?: string;
116 workflow?: Workflow;
117}
118export interface Confirm {
119 confirm?: Description;
120 deny?: Description;
121 style?: string;
122 text?: Description;
123 title?: Description;
124}
125export interface Description {
126 emoji?: boolean;
127 text?: string;
128 type?: DescriptionType;
129 verbatim?: boolean;
130}
131export declare enum DescriptionType {
132 Mrkdwn = "mrkdwn",
133 PlainText = "plain_text"
134}
135export interface AccessoryElement {
136 border?: number;
137 elements?: PurpleElement[];
138 indent?: number;
139 offset?: number;
140 style?: string;
141 type?: string;
142}
143export interface PurpleElement {
144 channel_id?: string;
145 name?: string;
146 range?: string;
147 skin_tone?: number;
148 style?: Style;
149 team_id?: string;
150 text?: string;
151 timestamp?: string;
152 type?: ElementType;
153 unicode?: string;
154 url?: string;
155 user_id?: string;
156 usergroup_id?: string;
157 value?: string;
158}
159export interface Style {
160 bold?: boolean;
161 code?: boolean;
162 italic?: boolean;
163 strike?: boolean;
164}
165export declare enum ElementType {
166 Broadcast = "broadcast",
167 Channel = "channel",
168 Color = "color",
169 Date = "date",
170 Emoji = "emoji",
171 Link = "link",
172 Team = "team",
173 Text = "text",
174 User = "user",
175 Usergroup = "usergroup"
176}
177export interface Filter {
178 exclude_bot_users?: boolean;
179 exclude_external_shared_channels?: boolean;
180 include?: any[];
181}
182export interface Option {
183 description?: Description;
184 text?: Description;
185 url?: string;
186 value?: string;
187}
188export interface OptionGroup {
189 label?: Description;
190 options?: Option[];
191}
192export interface SlackFile {
193 id?: string;
194 url?: string;
195}
196export interface Workflow {
197 trigger?: Trigger;
198}
199export interface Trigger {
200 customizable_input_parameters?: CustomizableInputParameter[];
201 url?: string;
202}
203export interface CustomizableInputParameter {
204 name?: string;
205 value?: string;
206}
207export interface Call {
208 media_backend_type?: string;
209 v1?: V1;
210}
211export interface V1 {
212 active_participants?: Participant[];
213 all_participants?: Participant[];
214 app_icon_urls?: AppIconUrls;
215 app_id?: string;
216 channels?: string[];
217 created_by?: string;
218 date_end?: number;
219 date_start?: number;
220 desktop_app_join_url?: string;
221 display_id?: string;
222 has_ended?: boolean;
223 id?: string;
224 is_dm_call?: boolean;
225 join_url?: string;
226 name?: string;
227 was_accepted?: boolean;
228 was_missed?: boolean;
229 was_rejected?: boolean;
230}
231export interface Participant {
232 avatar_url?: string;
233 display_name?: string;
234 external_id?: string;
235 slack_id?: string;
236}
237export interface AppIconUrls {
238 image_1024?: string;
239 image_128?: string;
240 image_192?: string;
241 image_32?: string;
242 image_36?: string;
243 image_48?: string;
244 image_512?: string;
245 image_64?: string;
246 image_72?: string;
247 image_96?: string;
248 image_original?: string;
249}
250export interface File {
251 access?: string;
252 alt_txt?: string;
253 app_id?: string;
254 app_name?: string;
255 attachments?: any[];
256 blocks?: any[];
257 bot_id?: string;
258 canvas_template_mode?: string;
259 cc?: any[];
260 channel_actions_count?: number;
261 channel_actions_ts?: string;
262 channels?: any[];
263 comments_count?: number;
264 converted_pdf?: string;
265 created?: number;
266 deanimate?: string;
267 deanimate_gif?: string;
268 display_as_bot?: boolean;
269 dm_mpdm_users_with_file_access?: any[];
270 duration_ms?: number;
271 edit_link?: string;
272 edit_timestamp?: number;
273 editable?: boolean;
274 editor?: string;
275 editors?: any[];
276 external_id?: string;
277 external_type?: string;
278 external_url?: string;
279 file_access?: string;
280 filetype?: string;
281 from?: any[];
282 groups?: any[];
283 has_more?: boolean;
284 has_more_shares?: boolean;
285 has_rich_preview?: boolean;
286 headers?: Headers;
287 hls?: string;
288 hls_embed?: string;
289 id?: string;
290 image_exif_rotation?: number;
291 ims?: any[];
292 initial_comment?: InitialComment;
293 is_channel_space?: boolean;
294 is_external?: boolean;
295 is_public?: boolean;
296 is_starred?: boolean;
297 last_editor?: string;
298 last_read?: number;
299 lines?: number;
300 lines_more?: number;
301 linked_channel_id?: string;
302 media_display_type?: string;
303 media_progress?: MediaProgress;
304 mimetype?: string;
305 mode?: string;
306 mp4?: string;
307 mp4_low?: string;
308 name?: string;
309 non_owner_editable?: boolean;
310 num_stars?: number;
311 org_or_workspace_access?: string;
312 original_attachment_count?: number;
313 original_h?: string;
314 original_w?: string;
315 permalink?: string;
316 permalink_public?: string;
317 pinned_to?: any[];
318 pjpeg?: string;
319 plain_text?: string;
320 pretty_type?: string;
321 preview?: string;
322 preview_highlight?: string;
323 preview_is_truncated?: boolean;
324 preview_plain_text?: string;
325 private_channels_with_file_access_count?: number;
326 public_url_shared?: boolean;
327 quip_thread_id?: string;
328 reactions?: any[];
329 saved?: Saved;
330 sent_to_self?: boolean;
331 shares?: EventPayload;
332 show_badge?: boolean;
333 simplified_html?: string;
334 size?: number;
335 source_team?: string;
336 subject?: string;
337 subtype?: string;
338 team_pref_version_history_enabled?: boolean;
339 teams_shared_with?: any[];
340 template_conversion_ts?: number;
341 template_description?: string;
342 template_icon?: string;
343 template_name?: string;
344 template_title?: string;
345 thumb_1024?: string;
346 thumb_1024_gif?: string;
347 thumb_1024_h?: string;
348 thumb_1024_w?: string;
349 thumb_160?: string;
350 thumb_160_gif?: string;
351 thumb_160_h?: string;
352 thumb_160_w?: string;
353 thumb_360?: string;
354 thumb_360_gif?: string;
355 thumb_360_h?: string;
356 thumb_360_w?: string;
357 thumb_480?: string;
358 thumb_480_gif?: string;
359 thumb_480_h?: string;
360 thumb_480_w?: string;
361 thumb_64?: string;
362 thumb_64_gif?: string;
363 thumb_64_h?: string;
364 thumb_64_w?: string;
365 thumb_720?: string;
366 thumb_720_gif?: string;
367 thumb_720_h?: string;
368 thumb_720_w?: string;
369 thumb_80?: string;
370 thumb_800?: string;
371 thumb_800_gif?: string;
372 thumb_800_h?: string;
373 thumb_800_w?: string;
374 thumb_80_gif?: string;
375 thumb_80_h?: string;
376 thumb_80_w?: string;
377 thumb_960?: string;
378 thumb_960_gif?: string;
379 thumb_960_h?: string;
380 thumb_960_w?: string;
381 thumb_gif?: string;
382 thumb_pdf?: string;
383 thumb_pdf_h?: string;
384 thumb_pdf_w?: string;
385 thumb_tiny?: string;
386 thumb_video?: string;
387 thumb_video_h?: number;
388 thumb_video_w?: number;
389 timestamp?: number;
390 title?: string;
391 title_blocks?: any[];
392 to?: any[];
393 transcription?: Transcription;
394 update_notification?: number;
395 updated?: number;
396 url_private?: string;
397 url_private_download?: string;
398 url_static_preview?: string;
399 user?: string;
400 user_team?: string;
401 username?: string;
402 vtt?: string;
403}
404export interface Headers {
405 date?: string;
406 in_reply_to?: string;
407 message_id?: string;
408 reply_to?: string;
409}
410export interface InitialComment {
411 channel?: string;
412 comment?: string;
413 created?: number;
414 id?: string;
415 is_intro?: boolean;
416 timestamp?: number;
417 user?: string;
418}
419export interface MediaProgress {
420 duration_ms?: number;
421 max_offset_ms?: number;
422 offset_ms?: number;
423}
424export interface Saved {
425 date_completed?: number;
426 date_due?: number;
427 is_archived?: boolean;
428 state?: string;
429}
430export interface EventPayload {
431}
432export interface Transcription {
433 locale?: string;
434 status?: string;
435}
436export interface BotProfile {
437 app_id?: string;
438 deleted?: boolean;
439 icons?: Icons;
440 id?: string;
441 name?: string;
442 team_id?: string;
443 updated?: number;
444}
445export interface Icons {
446 image_36?: string;
447 image_48?: string;
448 image_72?: string;
449}
450export interface Metadata {
451 event_payload?: EventPayload;
452 event_type?: string;
453}
454export interface Room {
455 app_id?: string;
456 attached_file_ids?: string[];
457 background_id?: string;
458 call_family?: string;
459 canvas_background?: string;
460 canvas_thread_ts?: string;
461 channels?: string[];
462 created_by?: string;
463 date_end?: number;
464 date_start?: number;
465 display_id?: string;
466 external_unique_id?: string;
467 has_ended?: boolean;
468 id?: string;
469 is_dm_call?: boolean;
470 is_prewarmed?: boolean;
471 is_scheduled?: boolean;
472 knocks?: EventPayload;
473 last_invite_status_by_user?: EventPayload;
474 media_backend_type?: string;
475 media_server?: string;
476 name?: string;
477 participant_history?: string[];
478 participants?: string[];
479 participants_camera_off?: string[];
480 participants_camera_on?: string[];
481 participants_screenshare_off?: string[];
482 participants_screenshare_on?: string[];
483 pending_invitees?: EventPayload;
484 thread_root_ts?: string;
485 was_accepted?: boolean;
486 was_missed?: boolean;
487 was_rejected?: boolean;
488}
489export interface ResponseMetadata {
490 messages?: string[];
491}
492//# sourceMappingURL=ChatScheduleMessageResponse.d.ts.map
\No newline at end of file