1 | import { WebAPICallResult } from '../../WebClient';
|
2 | export type ChatPostMessageResponse = WebAPICallResult & {
|
3 | channel?: string;
|
4 | deprecated_argument?: string;
|
5 | error?: string;
|
6 | errors?: string[];
|
7 | message?: ChatPostMessageResponseMessage;
|
8 | needed?: string;
|
9 | ok?: boolean;
|
10 | provided?: string;
|
11 | response_metadata?: ResponseMetadata;
|
12 | ts?: string;
|
13 | };
|
14 | export interface ChatPostMessageResponseMessage {
|
15 | app_id?: string;
|
16 | attachments?: Attachment[];
|
17 | blocks?: PurpleBlock[];
|
18 | bot_id?: string;
|
19 | bot_profile?: BotProfile;
|
20 | icons?: FluffyIcons;
|
21 | metadata?: FluffyMetadata;
|
22 | parent_user_id?: string;
|
23 | room?: Room;
|
24 | root?: FluffyRoot;
|
25 | subtype?: string;
|
26 | team?: string;
|
27 | text?: string;
|
28 | thread_ts?: string;
|
29 | ts?: string;
|
30 | type?: string;
|
31 | user?: string;
|
32 | username?: string;
|
33 | }
|
34 | export interface Attachment {
|
35 | actions?: Action[];
|
36 | app_id?: string;
|
37 | app_unfurl_url?: string;
|
38 | author_icon?: string;
|
39 | author_id?: string;
|
40 | author_link?: string;
|
41 | author_name?: string;
|
42 | author_subname?: string;
|
43 | blocks?: TitleBlockElement[];
|
44 | bot_id?: string;
|
45 | callback_id?: string;
|
46 | channel_id?: string;
|
47 | channel_name?: string;
|
48 | channel_team?: string;
|
49 | color?: string;
|
50 | fallback?: string;
|
51 | fields?: Field[];
|
52 | filename?: string;
|
53 | files?: FileElement[];
|
54 | footer?: string;
|
55 | footer_icon?: string;
|
56 | from_url?: string;
|
57 | hide_color?: boolean;
|
58 | id?: number;
|
59 | image_bytes?: number;
|
60 | image_height?: number;
|
61 | image_url?: string;
|
62 | image_width?: number;
|
63 | indent?: boolean;
|
64 | is_app_unfurl?: boolean;
|
65 | is_file_attachment?: boolean;
|
66 | is_msg_unfurl?: boolean;
|
67 | is_reply_unfurl?: boolean;
|
68 | is_thread_root_unfurl?: boolean;
|
69 | message_blocks?: MessageBlock[];
|
70 | metadata?: AttachmentMetadata;
|
71 | mimetype?: string;
|
72 | mrkdwn_in?: string[];
|
73 | msg_subtype?: string;
|
74 | original_url?: string;
|
75 | pretext?: string;
|
76 | preview?: Preview;
|
77 | service_icon?: string;
|
78 | service_name?: string;
|
79 | service_url?: string;
|
80 | size?: number;
|
81 | text?: string;
|
82 | thumb_height?: number;
|
83 | thumb_url?: string;
|
84 | thumb_width?: number;
|
85 | title?: string;
|
86 | title_link?: string;
|
87 | ts?: string;
|
88 | url?: string;
|
89 | video_html?: string;
|
90 | video_html_height?: number;
|
91 | video_html_width?: number;
|
92 | video_url?: string;
|
93 | }
|
94 | export interface Action {
|
95 | confirm?: ActionConfirm;
|
96 | data_source?: string;
|
97 | id?: string;
|
98 | min_query_length?: number;
|
99 | name?: string;
|
100 | option_groups?: ActionOptionGroup[];
|
101 | options?: SelectedOptionElement[];
|
102 | selected_options?: SelectedOptionElement[];
|
103 | style?: string;
|
104 | text?: string;
|
105 | type?: string;
|
106 | url?: string;
|
107 | value?: string;
|
108 | }
|
109 | export interface ActionConfirm {
|
110 | dismiss_text?: string;
|
111 | ok_text?: string;
|
112 | text?: string;
|
113 | title?: string;
|
114 | }
|
115 | export interface ActionOptionGroup {
|
116 | options?: SelectedOptionElement[];
|
117 | text?: string;
|
118 | }
|
119 | export interface SelectedOptionElement {
|
120 | text?: string;
|
121 | value?: string;
|
122 | }
|
123 | export interface TitleBlockElement {
|
124 | accessory?: Accessory;
|
125 | alt_text?: string;
|
126 | app_collaborators?: string[];
|
127 | app_id?: string;
|
128 | author_name?: string;
|
129 | block_id?: string;
|
130 | bot_user_id?: string;
|
131 | button_label?: string;
|
132 | description?: DescriptionElement | string;
|
133 | developer_trace_id?: string;
|
134 | elements?: Accessory[];
|
135 | fallback?: string;
|
136 | fields?: DescriptionElement[];
|
137 | function_trigger_id?: string;
|
138 | image_bytes?: number;
|
139 | image_height?: number;
|
140 | image_url?: string;
|
141 | image_width?: number;
|
142 | is_animated?: boolean;
|
143 | is_workflow_app?: boolean;
|
144 | owning_team_id?: string;
|
145 | provider_icon_url?: string;
|
146 | provider_name?: string;
|
147 | sales_home_workflow_app_type?: number;
|
148 | share_url?: string;
|
149 | slack_file?: SlackFile;
|
150 | text?: DescriptionElement;
|
151 | thumbnail_url?: string;
|
152 | title?: DescriptionElement | string;
|
153 | title_url?: string;
|
154 | trigger_subtype?: string;
|
155 | trigger_type?: string;
|
156 | type?: BlockType;
|
157 | url?: string;
|
158 | video_url?: string;
|
159 | workflow_id?: string;
|
160 | }
|
161 | export interface Accessory {
|
162 | accessibility_label?: string;
|
163 | action_id?: string;
|
164 | alt_text?: string;
|
165 | border?: number;
|
166 | confirm?: AccessoryConfirm;
|
167 | default_to_current_conversation?: boolean;
|
168 | elements?: AccessoryElement[];
|
169 | fallback?: string;
|
170 | filter?: Filter;
|
171 | focus_on_load?: boolean;
|
172 | image_bytes?: number;
|
173 | image_height?: number;
|
174 | image_url?: string;
|
175 | image_width?: number;
|
176 | indent?: number;
|
177 | initial_channel?: string;
|
178 | initial_channels?: string[];
|
179 | initial_conversation?: string;
|
180 | initial_conversations?: string[];
|
181 | initial_date?: string;
|
182 | initial_date_time?: number;
|
183 | initial_option?: InitialOptionElement;
|
184 | initial_options?: InitialOptionElement[];
|
185 | initial_time?: string;
|
186 | initial_user?: string;
|
187 | initial_users?: string[];
|
188 | max_selected_items?: number;
|
189 | min_query_length?: number;
|
190 | offset?: number;
|
191 | option_groups?: AccessoryOptionGroup[];
|
192 | options?: InitialOptionElement[];
|
193 | placeholder?: DescriptionElement;
|
194 | response_url_enabled?: boolean;
|
195 | slack_file?: SlackFile;
|
196 | style?: string;
|
197 | text?: DescriptionElement;
|
198 | timezone?: string;
|
199 | type?: string;
|
200 | url?: string;
|
201 | value?: string;
|
202 | workflow?: Workflow;
|
203 | }
|
204 | export interface AccessoryConfirm {
|
205 | confirm?: DescriptionElement;
|
206 | deny?: DescriptionElement;
|
207 | style?: string;
|
208 | text?: DescriptionElement;
|
209 | title?: DescriptionElement;
|
210 | }
|
211 | export interface DescriptionElement {
|
212 | emoji?: boolean;
|
213 | text?: string;
|
214 | type?: DescriptionType;
|
215 | verbatim?: boolean;
|
216 | }
|
217 | export declare enum DescriptionType {
|
218 | Mrkdwn = "mrkdwn",
|
219 | PlainText = "plain_text"
|
220 | }
|
221 | export interface AccessoryElement {
|
222 | border?: number;
|
223 | elements?: PurpleElement[];
|
224 | indent?: number;
|
225 | offset?: number;
|
226 | style?: string;
|
227 | type?: FluffyType;
|
228 | }
|
229 | export interface PurpleElement {
|
230 | channel_id?: string;
|
231 | name?: string;
|
232 | range?: string;
|
233 | skin_tone?: number;
|
234 | style?: Style;
|
235 | team_id?: string;
|
236 | text?: string;
|
237 | timestamp?: string;
|
238 | type?: PurpleType;
|
239 | unicode?: string;
|
240 | url?: string;
|
241 | user_id?: string;
|
242 | usergroup_id?: string;
|
243 | value?: string;
|
244 | }
|
245 | export interface Style {
|
246 | bold?: boolean;
|
247 | code?: boolean;
|
248 | italic?: boolean;
|
249 | strike?: boolean;
|
250 | }
|
251 | export declare enum PurpleType {
|
252 | Broadcast = "broadcast",
|
253 | Channel = "channel",
|
254 | Color = "color",
|
255 | Date = "date",
|
256 | Emoji = "emoji",
|
257 | Link = "link",
|
258 | Team = "team",
|
259 | Text = "text",
|
260 | User = "user",
|
261 | Usergroup = "usergroup"
|
262 | }
|
263 | export declare enum FluffyType {
|
264 | RichTextList = "rich_text_list",
|
265 | RichTextPreformatted = "rich_text_preformatted",
|
266 | RichTextQuote = "rich_text_quote",
|
267 | RichTextSection = "rich_text_section"
|
268 | }
|
269 | export interface Filter {
|
270 | exclude_bot_users?: boolean;
|
271 | exclude_external_shared_channels?: boolean;
|
272 | include?: any[];
|
273 | }
|
274 | export interface InitialOptionElement {
|
275 | description?: DescriptionElement;
|
276 | text?: DescriptionElement;
|
277 | url?: string;
|
278 | value?: string;
|
279 | }
|
280 | export interface AccessoryOptionGroup {
|
281 | label?: DescriptionElement;
|
282 | options?: InitialOptionElement[];
|
283 | }
|
284 | export interface SlackFile {
|
285 | id?: string;
|
286 | url?: string;
|
287 | }
|
288 | export interface Workflow {
|
289 | trigger?: Trigger;
|
290 | }
|
291 | export interface Trigger {
|
292 | customizable_input_parameters?: CustomizableInputParameter[];
|
293 | url?: string;
|
294 | }
|
295 | export interface CustomizableInputParameter {
|
296 | name?: string;
|
297 | value?: string;
|
298 | }
|
299 | export declare enum BlockType {
|
300 | Actions = "actions",
|
301 | Context = "context",
|
302 | Divider = "divider",
|
303 | Image = "image",
|
304 | RichText = "rich_text",
|
305 | Section = "section",
|
306 | ShareShortcut = "share_shortcut",
|
307 | Video = "video"
|
308 | }
|
309 | export interface Field {
|
310 | short?: boolean;
|
311 | title?: string;
|
312 | value?: string;
|
313 | }
|
314 | export interface FileElement {
|
315 | access?: string;
|
316 | alt_txt?: string;
|
317 | app_id?: string;
|
318 | app_name?: string;
|
319 | attachments?: any[];
|
320 | blocks?: TitleBlockElement[];
|
321 | bot_id?: string;
|
322 | canvas_template_mode?: string;
|
323 | cc?: Cc[];
|
324 | channel_actions_count?: number;
|
325 | channel_actions_ts?: string;
|
326 | channels?: string[];
|
327 | comments_count?: number;
|
328 | converted_pdf?: string;
|
329 | created?: number;
|
330 | deanimate?: string;
|
331 | deanimate_gif?: string;
|
332 | display_as_bot?: boolean;
|
333 | dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
|
334 | duration_ms?: number;
|
335 | edit_link?: string;
|
336 | edit_timestamp?: number;
|
337 | editable?: boolean;
|
338 | editor?: string;
|
339 | editors?: string[];
|
340 | external_id?: string;
|
341 | external_type?: string;
|
342 | external_url?: string;
|
343 | file_access?: string;
|
344 | filetype?: string;
|
345 | from?: Cc[];
|
346 | groups?: string[];
|
347 | has_more?: boolean;
|
348 | has_more_shares?: boolean;
|
349 | has_rich_preview?: boolean;
|
350 | headers?: Headers;
|
351 | hls?: string;
|
352 | hls_embed?: string;
|
353 | id?: string;
|
354 | image_exif_rotation?: number;
|
355 | ims?: string[];
|
356 | initial_comment?: InitialComment;
|
357 | is_channel_space?: boolean;
|
358 | is_external?: boolean;
|
359 | is_public?: boolean;
|
360 | is_starred?: boolean;
|
361 | last_editor?: string;
|
362 | last_read?: number;
|
363 | lines?: number;
|
364 | lines_more?: number;
|
365 | linked_channel_id?: string;
|
366 | media_display_type?: string;
|
367 | media_progress?: MediaProgress;
|
368 | mimetype?: string;
|
369 | mode?: string;
|
370 | mp4?: string;
|
371 | mp4_low?: string;
|
372 | name?: string;
|
373 | non_owner_editable?: boolean;
|
374 | num_stars?: number;
|
375 | org_or_workspace_access?: string;
|
376 | original_attachment_count?: number;
|
377 | original_h?: string;
|
378 | original_w?: string;
|
379 | permalink?: string;
|
380 | permalink_public?: string;
|
381 | pinned_to?: string[];
|
382 | pjpeg?: string;
|
383 | plain_text?: string;
|
384 | pretty_type?: string;
|
385 | preview?: string;
|
386 | preview_highlight?: string;
|
387 | preview_is_truncated?: boolean;
|
388 | preview_plain_text?: string;
|
389 | private_channels_with_file_access_count?: number;
|
390 | public_url_shared?: boolean;
|
391 | quip_thread_id?: string;
|
392 | reactions?: Reaction[];
|
393 | saved?: Saved;
|
394 | sent_to_self?: boolean;
|
395 | shares?: Shares;
|
396 | show_badge?: boolean;
|
397 | simplified_html?: string;
|
398 | size?: number;
|
399 | source_team?: string;
|
400 | subject?: string;
|
401 | subtype?: string;
|
402 | team_pref_version_history_enabled?: boolean;
|
403 | teams_shared_with?: any[];
|
404 | template_conversion_ts?: number;
|
405 | template_description?: string;
|
406 | template_icon?: string;
|
407 | template_name?: string;
|
408 | template_title?: string;
|
409 | thumb_1024?: string;
|
410 | thumb_1024_gif?: string;
|
411 | thumb_1024_h?: string;
|
412 | thumb_1024_w?: string;
|
413 | thumb_160?: string;
|
414 | thumb_160_gif?: string;
|
415 | thumb_160_h?: string;
|
416 | thumb_160_w?: string;
|
417 | thumb_360?: string;
|
418 | thumb_360_gif?: string;
|
419 | thumb_360_h?: string;
|
420 | thumb_360_w?: string;
|
421 | thumb_480?: string;
|
422 | thumb_480_gif?: string;
|
423 | thumb_480_h?: string;
|
424 | thumb_480_w?: string;
|
425 | thumb_64?: string;
|
426 | thumb_64_gif?: string;
|
427 | thumb_64_h?: string;
|
428 | thumb_64_w?: string;
|
429 | thumb_720?: string;
|
430 | thumb_720_gif?: string;
|
431 | thumb_720_h?: string;
|
432 | thumb_720_w?: string;
|
433 | thumb_80?: string;
|
434 | thumb_800?: string;
|
435 | thumb_800_gif?: string;
|
436 | thumb_800_h?: string;
|
437 | thumb_800_w?: string;
|
438 | thumb_80_gif?: string;
|
439 | thumb_80_h?: string;
|
440 | thumb_80_w?: string;
|
441 | thumb_960?: string;
|
442 | thumb_960_gif?: string;
|
443 | thumb_960_h?: string;
|
444 | thumb_960_w?: string;
|
445 | thumb_gif?: string;
|
446 | thumb_pdf?: string;
|
447 | thumb_pdf_h?: string;
|
448 | thumb_pdf_w?: string;
|
449 | thumb_tiny?: string;
|
450 | thumb_video?: string;
|
451 | thumb_video_h?: number;
|
452 | thumb_video_w?: number;
|
453 | timestamp?: number;
|
454 | title?: string;
|
455 | title_blocks?: TitleBlockElement[];
|
456 | to?: Cc[];
|
457 | transcription?: Transcription;
|
458 | update_notification?: number;
|
459 | updated?: number;
|
460 | url_private?: string;
|
461 | url_private_download?: string;
|
462 | url_static_preview?: string;
|
463 | user?: string;
|
464 | user_team?: string;
|
465 | username?: string;
|
466 | vtt?: string;
|
467 | }
|
468 | export interface Cc {
|
469 | address?: string;
|
470 | name?: string;
|
471 | original?: string;
|
472 | }
|
473 | export interface DmMpdmUsersWithFileAccess {
|
474 | access?: string;
|
475 | user_id?: string;
|
476 | }
|
477 | export interface Headers {
|
478 | date?: string;
|
479 | in_reply_to?: string;
|
480 | message_id?: string;
|
481 | reply_to?: string;
|
482 | }
|
483 | export interface InitialComment {
|
484 | channel?: string;
|
485 | comment?: string;
|
486 | created?: number;
|
487 | id?: string;
|
488 | is_intro?: boolean;
|
489 | timestamp?: number;
|
490 | user?: string;
|
491 | }
|
492 | export interface MediaProgress {
|
493 | duration_ms?: number;
|
494 | max_offset_ms?: number;
|
495 | offset_ms?: number;
|
496 | }
|
497 | export interface Reaction {
|
498 | count?: number;
|
499 | name?: string;
|
500 | url?: string;
|
501 | users?: string[];
|
502 | }
|
503 | export interface Saved {
|
504 | date_completed?: number;
|
505 | date_due?: number;
|
506 | is_archived?: boolean;
|
507 | state?: string;
|
508 | }
|
509 | export interface Shares {
|
510 | private?: {
|
511 | [key: string]: Private[];
|
512 | };
|
513 | public?: {
|
514 | [key: string]: Private[];
|
515 | };
|
516 | }
|
517 | export interface Private {
|
518 | access?: string;
|
519 | channel_name?: string;
|
520 | date_last_shared?: number;
|
521 | latest_reply?: string;
|
522 | reply_count?: number;
|
523 | reply_users?: string[];
|
524 | reply_users_count?: number;
|
525 | share_user_id?: string;
|
526 | source?: string;
|
527 | team_id?: string;
|
528 | thread_ts?: string;
|
529 | ts?: string;
|
530 | }
|
531 | export interface Transcription {
|
532 | locale?: string;
|
533 | status?: string;
|
534 | }
|
535 | export interface MessageBlock {
|
536 | channel?: string;
|
537 | message?: MessageBlockMessage;
|
538 | team?: string;
|
539 | ts?: string;
|
540 | }
|
541 | export interface MessageBlockMessage {
|
542 | app_id?: string;
|
543 | attachments?: any[];
|
544 | blocks?: TitleBlockElement[];
|
545 | bot_id?: string;
|
546 | bot_link?: string;
|
547 | bot_profile?: BotProfile;
|
548 | channel?: string;
|
549 | client_msg_id?: string;
|
550 | comment?: Comment;
|
551 | display_as_bot?: boolean;
|
552 | edited?: Edited;
|
553 | file?: MessageFile;
|
554 | files?: any[];
|
555 | hidden?: boolean;
|
556 | icons?: PurpleIcons;
|
557 | inviter?: string;
|
558 | is_intro?: boolean;
|
559 | is_locked?: boolean;
|
560 | is_starred?: boolean;
|
561 | is_thread_broadcast?: boolean;
|
562 | item?: Comment;
|
563 | item_type?: string;
|
564 | last_read?: string;
|
565 | latest_reply?: string;
|
566 | metadata?: PurpleMetadata;
|
567 | no_notifications?: boolean;
|
568 | parent_user_id?: string;
|
569 | pinned_to?: any[];
|
570 | purpose?: string;
|
571 | reactions?: any[];
|
572 | replies?: any[];
|
573 | reply_count?: number;
|
574 | reply_users?: any[];
|
575 | reply_users_count?: number;
|
576 | room?: Room;
|
577 | root?: PurpleRoot;
|
578 | subscribed?: boolean;
|
579 | subtype?: string;
|
580 | team?: string;
|
581 | text?: string;
|
582 | thread_ts?: string;
|
583 | topic?: string;
|
584 | ts?: string;
|
585 | type?: string;
|
586 | unfurl_links?: boolean;
|
587 | unfurl_media?: boolean;
|
588 | upload?: boolean;
|
589 | user?: string;
|
590 | username?: string;
|
591 | wibblr?: boolean;
|
592 | x_files?: any[];
|
593 | }
|
594 | export interface BotProfile {
|
595 | app_id?: string;
|
596 | deleted?: boolean;
|
597 | icons?: BotProfileIcons;
|
598 | id?: string;
|
599 | name?: string;
|
600 | team_id?: string;
|
601 | updated?: number;
|
602 | }
|
603 | export interface BotProfileIcons {
|
604 | image_36?: string;
|
605 | image_48?: string;
|
606 | image_72?: string;
|
607 | }
|
608 | export interface Comment {
|
609 | comment?: string;
|
610 | created?: string;
|
611 | display_as_bot?: boolean;
|
612 | edit_link?: string;
|
613 | editable?: boolean;
|
614 | external_type?: string;
|
615 | filetype?: string;
|
616 | has_rich_preview?: boolean;
|
617 | id?: string;
|
618 | is_external?: boolean;
|
619 | is_intro?: boolean;
|
620 | is_public?: boolean;
|
621 | is_starred?: boolean;
|
622 | lines?: number;
|
623 | lines_more?: number;
|
624 | media_display_type?: string;
|
625 | mimetype?: string;
|
626 | mode?: string;
|
627 | name?: string;
|
628 | permalink?: string;
|
629 | permalink_public?: boolean;
|
630 | pretty_type?: string;
|
631 | preview?: string;
|
632 | preview_highlight?: string;
|
633 | preview_is_truncated?: boolean;
|
634 | public_url_shared?: boolean;
|
635 | size?: number;
|
636 | timestamp?: string;
|
637 | title?: string;
|
638 | url_private?: string;
|
639 | url_private_download?: boolean;
|
640 | user?: string;
|
641 | username?: string;
|
642 | }
|
643 | export interface Edited {
|
644 | ts?: string;
|
645 | user?: string;
|
646 | }
|
647 | export interface MessageFile {
|
648 | access?: string;
|
649 | alt_txt?: string;
|
650 | app_id?: string;
|
651 | app_name?: string;
|
652 | attachments?: any[];
|
653 | blocks?: any[];
|
654 | bot_id?: string;
|
655 | canvas_template_mode?: string;
|
656 | cc?: any[];
|
657 | channel_actions_count?: number;
|
658 | channel_actions_ts?: string;
|
659 | channels?: any[];
|
660 | comments_count?: number;
|
661 | converted_pdf?: string;
|
662 | created?: number;
|
663 | deanimate?: string;
|
664 | deanimate_gif?: string;
|
665 | display_as_bot?: boolean;
|
666 | dm_mpdm_users_with_file_access?: any[];
|
667 | duration_ms?: number;
|
668 | edit_link?: string;
|
669 | edit_timestamp?: number;
|
670 | editable?: boolean;
|
671 | editor?: string;
|
672 | editors?: any[];
|
673 | external_id?: string;
|
674 | external_type?: string;
|
675 | external_url?: string;
|
676 | file_access?: string;
|
677 | filetype?: string;
|
678 | from?: any[];
|
679 | groups?: any[];
|
680 | has_more?: boolean;
|
681 | has_more_shares?: boolean;
|
682 | has_rich_preview?: boolean;
|
683 | headers?: Headers;
|
684 | hls?: string;
|
685 | hls_embed?: string;
|
686 | id?: string;
|
687 | image_exif_rotation?: number;
|
688 | ims?: any[];
|
689 | initial_comment?: InitialComment;
|
690 | is_channel_space?: boolean;
|
691 | is_external?: boolean;
|
692 | is_public?: boolean;
|
693 | is_starred?: boolean;
|
694 | last_editor?: string;
|
695 | last_read?: number;
|
696 | lines?: number;
|
697 | lines_more?: number;
|
698 | linked_channel_id?: string;
|
699 | media_display_type?: string;
|
700 | media_progress?: MediaProgress;
|
701 | mimetype?: string;
|
702 | mode?: string;
|
703 | mp4?: string;
|
704 | mp4_low?: string;
|
705 | name?: string;
|
706 | non_owner_editable?: boolean;
|
707 | num_stars?: number;
|
708 | org_or_workspace_access?: string;
|
709 | original_attachment_count?: number;
|
710 | original_h?: string;
|
711 | original_w?: string;
|
712 | permalink?: string;
|
713 | permalink_public?: string;
|
714 | pinned_to?: any[];
|
715 | pjpeg?: string;
|
716 | plain_text?: string;
|
717 | pretty_type?: string;
|
718 | preview?: string;
|
719 | preview_highlight?: string;
|
720 | preview_is_truncated?: boolean;
|
721 | preview_plain_text?: string;
|
722 | private_channels_with_file_access_count?: number;
|
723 | public_url_shared?: boolean;
|
724 | quip_thread_id?: string;
|
725 | reactions?: any[];
|
726 | saved?: Saved;
|
727 | sent_to_self?: boolean;
|
728 | shares?: EventPayload;
|
729 | show_badge?: boolean;
|
730 | simplified_html?: string;
|
731 | size?: number;
|
732 | source_team?: string;
|
733 | subject?: string;
|
734 | subtype?: string;
|
735 | team_pref_version_history_enabled?: boolean;
|
736 | teams_shared_with?: any[];
|
737 | template_conversion_ts?: number;
|
738 | template_description?: string;
|
739 | template_icon?: string;
|
740 | template_name?: string;
|
741 | template_title?: string;
|
742 | thumb_1024?: string;
|
743 | thumb_1024_gif?: string;
|
744 | thumb_1024_h?: string;
|
745 | thumb_1024_w?: string;
|
746 | thumb_160?: string;
|
747 | thumb_160_gif?: string;
|
748 | thumb_160_h?: string;
|
749 | thumb_160_w?: string;
|
750 | thumb_360?: string;
|
751 | thumb_360_gif?: string;
|
752 | thumb_360_h?: string;
|
753 | thumb_360_w?: string;
|
754 | thumb_480?: string;
|
755 | thumb_480_gif?: string;
|
756 | thumb_480_h?: string;
|
757 | thumb_480_w?: string;
|
758 | thumb_64?: string;
|
759 | thumb_64_gif?: string;
|
760 | thumb_64_h?: string;
|
761 | thumb_64_w?: string;
|
762 | thumb_720?: string;
|
763 | thumb_720_gif?: string;
|
764 | thumb_720_h?: string;
|
765 | thumb_720_w?: string;
|
766 | thumb_80?: string;
|
767 | thumb_800?: string;
|
768 | thumb_800_gif?: string;
|
769 | thumb_800_h?: string;
|
770 | thumb_800_w?: string;
|
771 | thumb_80_gif?: string;
|
772 | thumb_80_h?: string;
|
773 | thumb_80_w?: string;
|
774 | thumb_960?: string;
|
775 | thumb_960_gif?: string;
|
776 | thumb_960_h?: string;
|
777 | thumb_960_w?: string;
|
778 | thumb_gif?: string;
|
779 | thumb_pdf?: string;
|
780 | thumb_pdf_h?: string;
|
781 | thumb_pdf_w?: string;
|
782 | thumb_tiny?: string;
|
783 | thumb_video?: string;
|
784 | thumb_video_h?: number;
|
785 | thumb_video_w?: number;
|
786 | timestamp?: number;
|
787 | title?: string;
|
788 | title_blocks?: any[];
|
789 | to?: any[];
|
790 | transcription?: Transcription;
|
791 | update_notification?: number;
|
792 | updated?: number;
|
793 | url_private?: string;
|
794 | url_private_download?: string;
|
795 | url_static_preview?: string;
|
796 | user?: string;
|
797 | user_team?: string;
|
798 | username?: string;
|
799 | vtt?: string;
|
800 | }
|
801 | export interface EventPayload {
|
802 | }
|
803 | export interface PurpleIcons {
|
804 | emoji?: string;
|
805 | image_36?: string;
|
806 | image_48?: string;
|
807 | image_64?: string;
|
808 | image_72?: string;
|
809 | }
|
810 | export interface PurpleMetadata {
|
811 | event_type?: string;
|
812 | }
|
813 | export interface Room {
|
814 | app_id?: string;
|
815 | attached_file_ids?: string[];
|
816 | background_id?: string;
|
817 | call_family?: string;
|
818 | canvas_background?: string;
|
819 | canvas_thread_ts?: string;
|
820 | channels?: string[];
|
821 | created_by?: string;
|
822 | date_end?: number;
|
823 | date_start?: number;
|
824 | display_id?: string;
|
825 | external_unique_id?: string;
|
826 | has_ended?: boolean;
|
827 | id?: string;
|
828 | is_dm_call?: boolean;
|
829 | is_prewarmed?: boolean;
|
830 | is_scheduled?: boolean;
|
831 | knocks?: EventPayload;
|
832 | last_invite_status_by_user?: EventPayload;
|
833 | media_backend_type?: string;
|
834 | media_server?: string;
|
835 | name?: string;
|
836 | participant_history?: string[];
|
837 | participants?: string[];
|
838 | participants_camera_off?: string[];
|
839 | participants_camera_on?: string[];
|
840 | participants_screenshare_off?: string[];
|
841 | participants_screenshare_on?: string[];
|
842 | pending_invitees?: EventPayload;
|
843 | thread_root_ts?: string;
|
844 | was_accepted?: boolean;
|
845 | was_missed?: boolean;
|
846 | was_rejected?: boolean;
|
847 | }
|
848 | export interface PurpleRoot {
|
849 | bot_id?: string;
|
850 | bot_profile?: BotProfile;
|
851 | edited?: Edited;
|
852 | icons?: PurpleIcons;
|
853 | last_read?: string;
|
854 | latest_reply?: string;
|
855 | mrkdwn?: boolean;
|
856 | no_notifications?: boolean;
|
857 | parent_user_id?: string;
|
858 | replies?: any[];
|
859 | reply_count?: number;
|
860 | reply_users?: any[];
|
861 | reply_users_count?: number;
|
862 | room?: Room;
|
863 | subscribed?: boolean;
|
864 | subtype?: string;
|
865 | team?: string;
|
866 | text?: string;
|
867 | thread_ts?: string;
|
868 | ts?: string;
|
869 | type?: string;
|
870 | unread_count?: number;
|
871 | user?: string;
|
872 | username?: string;
|
873 | }
|
874 | export interface AttachmentMetadata {
|
875 | extension?: string;
|
876 | format?: string;
|
877 | original_h?: number;
|
878 | original_w?: number;
|
879 | rotation?: number;
|
880 | thumb_160?: boolean;
|
881 | thumb_360_h?: number;
|
882 | thumb_360_w?: number;
|
883 | thumb_64?: boolean;
|
884 | thumb_80?: boolean;
|
885 | thumb_tiny?: string;
|
886 | }
|
887 | export interface Preview {
|
888 | can_remove?: boolean;
|
889 | icon_url?: string;
|
890 | subtitle?: DescriptionElement;
|
891 | title?: DescriptionElement;
|
892 | type?: string;
|
893 | }
|
894 | export interface PurpleBlock {
|
895 | accessory?: Accessory;
|
896 | alt_text?: string;
|
897 | api_decoration_available?: boolean;
|
898 | app_collaborators?: string[];
|
899 | app_id?: string;
|
900 | author_name?: string;
|
901 | block_id?: string;
|
902 | bot_user_id?: string;
|
903 | button_label?: string;
|
904 | call?: Call;
|
905 | call_id?: string;
|
906 | description?: DescriptionElement;
|
907 | developer_trace_id?: string;
|
908 | dispatch_action?: boolean;
|
909 | element?: Accessory;
|
910 | elements?: Accessory[];
|
911 | external_id?: string;
|
912 | fallback?: string;
|
913 | fields?: DescriptionElement[];
|
914 | file?: MessageFile;
|
915 | file_id?: string;
|
916 | function_trigger_id?: string;
|
917 | hint?: DescriptionElement;
|
918 | image_bytes?: number;
|
919 | image_height?: number;
|
920 | image_url?: string;
|
921 | image_width?: number;
|
922 | is_animated?: boolean;
|
923 | is_workflow_app?: boolean;
|
924 | label?: DescriptionElement;
|
925 | optional?: boolean;
|
926 | owning_team_id?: string;
|
927 | provider_icon_url?: string;
|
928 | provider_name?: string;
|
929 | sales_home_workflow_app_type?: number;
|
930 | share_url?: string;
|
931 | slack_file?: SlackFile;
|
932 | source?: string;
|
933 | text?: DescriptionElement;
|
934 | thumbnail_url?: string;
|
935 | title?: DescriptionElement;
|
936 | title_url?: string;
|
937 | trigger_subtype?: string;
|
938 | trigger_type?: string;
|
939 | type?: BlockType;
|
940 | url?: string;
|
941 | video_url?: string;
|
942 | workflow_id?: string;
|
943 | }
|
944 | export interface Call {
|
945 | media_backend_type?: string;
|
946 | v1?: V1;
|
947 | }
|
948 | export interface V1 {
|
949 | active_participants?: Participant[];
|
950 | all_participants?: Participant[];
|
951 | app_icon_urls?: AppIconUrls;
|
952 | app_id?: string;
|
953 | channels?: string[];
|
954 | created_by?: string;
|
955 | date_end?: number;
|
956 | date_start?: number;
|
957 | desktop_app_join_url?: string;
|
958 | display_id?: string;
|
959 | has_ended?: boolean;
|
960 | id?: string;
|
961 | is_dm_call?: boolean;
|
962 | join_url?: string;
|
963 | name?: string;
|
964 | was_accepted?: boolean;
|
965 | was_missed?: boolean;
|
966 | was_rejected?: boolean;
|
967 | }
|
968 | export interface Participant {
|
969 | avatar_url?: string;
|
970 | display_name?: string;
|
971 | external_id?: string;
|
972 | slack_id?: string;
|
973 | }
|
974 | export interface AppIconUrls {
|
975 | image_1024?: string;
|
976 | image_128?: string;
|
977 | image_192?: string;
|
978 | image_32?: string;
|
979 | image_36?: string;
|
980 | image_48?: string;
|
981 | image_512?: string;
|
982 | image_64?: string;
|
983 | image_72?: string;
|
984 | image_96?: string;
|
985 | image_original?: string;
|
986 | }
|
987 | export interface FluffyIcons {
|
988 | emoji?: string;
|
989 | image_64?: string;
|
990 | }
|
991 | export interface FluffyMetadata {
|
992 | event_payload?: EventPayload;
|
993 | event_type?: string;
|
994 | }
|
995 | export interface FluffyRoot {
|
996 | bot_id?: string;
|
997 | icons?: FluffyIcons;
|
998 | latest_reply?: string;
|
999 | parent_user_id?: string;
|
1000 | reply_count?: number;
|
1001 | reply_users?: string[];
|
1002 | reply_users_count?: number;
|
1003 | subscribed?: boolean;
|
1004 | subtype?: string;
|
1005 | text?: string;
|
1006 | thread_ts?: string;
|
1007 | ts?: string;
|
1008 | type?: string;
|
1009 | username?: string;
|
1010 | }
|
1011 | export interface ResponseMetadata {
|
1012 | messages?: string[];
|
1013 | }
|
1014 |
|
\ | No newline at end of file |