UNPKG

18.5 kBTypeScriptView Raw
1import { WebAPICallResult } from '../../WebClient';
2export type ChatUpdateResponse = WebAPICallResult & {
3 channel?: string;
4 error?: string;
5 message?: Message;
6 needed?: string;
7 ok?: boolean;
8 provided?: string;
9 response_metadata?: ResponseMetadata;
10 text?: string;
11 ts?: string;
12};
13export interface Message {
14 app_id?: string;
15 blocks?: Block[];
16 bot_id?: string;
17 bot_profile?: BotProfile;
18 display_as_bot?: boolean;
19 edited?: Edited;
20 files?: FileElement[];
21 metadata?: Metadata;
22 room?: Room;
23 team?: string;
24 text?: string;
25 type?: string;
26 upload?: boolean;
27 user?: string;
28 x_files?: string[];
29}
30export interface Block {
31 accessory?: Accessory;
32 alt_text?: string;
33 api_decoration_available?: boolean;
34 app_collaborators?: string[];
35 app_id?: string;
36 author_name?: string;
37 block_id?: string;
38 bot_user_id?: string;
39 button_label?: string;
40 call?: Call;
41 call_id?: string;
42 description?: DescriptionElement;
43 developer_trace_id?: string;
44 dispatch_action?: boolean;
45 element?: Accessory;
46 elements?: Accessory[];
47 external_id?: string;
48 fallback?: string;
49 fields?: DescriptionElement[];
50 file?: BlockFile;
51 file_id?: string;
52 function_trigger_id?: string;
53 hint?: DescriptionElement;
54 image_bytes?: number;
55 image_height?: number;
56 image_url?: string;
57 image_width?: number;
58 is_animated?: boolean;
59 is_workflow_app?: boolean;
60 label?: DescriptionElement;
61 optional?: boolean;
62 owning_team_id?: string;
63 provider_icon_url?: string;
64 provider_name?: string;
65 sales_home_workflow_app_type?: number;
66 share_url?: string;
67 slack_file?: SlackFile;
68 source?: string;
69 text?: DescriptionElement;
70 thumbnail_url?: string;
71 title?: DescriptionElement;
72 title_url?: string;
73 trigger_subtype?: string;
74 trigger_type?: string;
75 type?: string;
76 url?: string;
77 video_url?: string;
78 workflow_id?: string;
79}
80export interface Accessory {
81 accessibility_label?: string;
82 action_id?: string;
83 alt_text?: string;
84 border?: number;
85 confirm?: Confirm;
86 default_to_current_conversation?: boolean;
87 elements?: AccessoryElement[];
88 fallback?: string;
89 filter?: Filter;
90 focus_on_load?: boolean;
91 image_bytes?: number;
92 image_height?: number;
93 image_url?: string;
94 image_width?: number;
95 indent?: number;
96 initial_channel?: string;
97 initial_channels?: string[];
98 initial_conversation?: string;
99 initial_conversations?: string[];
100 initial_date?: string;
101 initial_date_time?: number;
102 initial_option?: Option;
103 initial_options?: Option[];
104 initial_time?: string;
105 initial_user?: string;
106 initial_users?: string[];
107 max_selected_items?: number;
108 min_query_length?: number;
109 offset?: number;
110 option_groups?: OptionGroup[];
111 options?: Option[];
112 placeholder?: DescriptionElement;
113 response_url_enabled?: boolean;
114 slack_file?: SlackFile;
115 style?: string;
116 text?: DescriptionElement;
117 timezone?: string;
118 type?: string;
119 url?: string;
120 value?: string;
121 workflow?: Workflow;
122}
123export interface Confirm {
124 confirm?: DescriptionElement;
125 deny?: DescriptionElement;
126 style?: string;
127 text?: DescriptionElement;
128 title?: DescriptionElement;
129}
130export interface DescriptionElement {
131 emoji?: boolean;
132 text?: string;
133 type?: DescriptionType;
134 verbatim?: boolean;
135}
136export declare enum DescriptionType {
137 Mrkdwn = "mrkdwn",
138 PlainText = "plain_text"
139}
140export interface AccessoryElement {
141 border?: number;
142 elements?: PurpleElement[];
143 indent?: number;
144 offset?: number;
145 style?: string;
146 type?: FluffyType;
147}
148export interface PurpleElement {
149 channel_id?: string;
150 name?: string;
151 range?: string;
152 skin_tone?: number;
153 style?: Style;
154 team_id?: string;
155 text?: string;
156 timestamp?: string;
157 type?: PurpleType;
158 unicode?: string;
159 url?: string;
160 user_id?: string;
161 usergroup_id?: string;
162 value?: string;
163}
164export interface Style {
165 bold?: boolean;
166 code?: boolean;
167 italic?: boolean;
168 strike?: boolean;
169}
170export declare enum PurpleType {
171 Broadcast = "broadcast",
172 Channel = "channel",
173 Color = "color",
174 Date = "date",
175 Emoji = "emoji",
176 Link = "link",
177 Team = "team",
178 Text = "text",
179 User = "user",
180 Usergroup = "usergroup"
181}
182export declare enum FluffyType {
183 RichTextList = "rich_text_list",
184 RichTextPreformatted = "rich_text_preformatted",
185 RichTextQuote = "rich_text_quote",
186 RichTextSection = "rich_text_section"
187}
188export interface Filter {
189 exclude_bot_users?: boolean;
190 exclude_external_shared_channels?: boolean;
191 include?: any[];
192}
193export interface Option {
194 description?: DescriptionElement;
195 text?: DescriptionElement;
196 url?: string;
197 value?: string;
198}
199export interface OptionGroup {
200 label?: DescriptionElement;
201 options?: Option[];
202}
203export interface SlackFile {
204 id?: string;
205 url?: string;
206}
207export interface Workflow {
208 trigger?: Trigger;
209}
210export interface Trigger {
211 customizable_input_parameters?: CustomizableInputParameter[];
212 url?: string;
213}
214export interface CustomizableInputParameter {
215 name?: string;
216 value?: string;
217}
218export interface Call {
219 media_backend_type?: string;
220 v1?: V1;
221}
222export interface V1 {
223 active_participants?: Participant[];
224 all_participants?: Participant[];
225 app_icon_urls?: AppIconUrls;
226 app_id?: string;
227 channels?: string[];
228 created_by?: string;
229 date_end?: number;
230 date_start?: number;
231 desktop_app_join_url?: string;
232 display_id?: string;
233 has_ended?: boolean;
234 id?: string;
235 is_dm_call?: boolean;
236 join_url?: string;
237 name?: string;
238 was_accepted?: boolean;
239 was_missed?: boolean;
240 was_rejected?: boolean;
241}
242export interface Participant {
243 avatar_url?: string;
244 display_name?: string;
245 external_id?: string;
246 slack_id?: string;
247}
248export interface AppIconUrls {
249 image_1024?: string;
250 image_128?: string;
251 image_192?: string;
252 image_32?: string;
253 image_36?: string;
254 image_48?: string;
255 image_512?: string;
256 image_64?: string;
257 image_72?: string;
258 image_96?: string;
259 image_original?: string;
260}
261export interface BlockFile {
262 access?: string;
263 alt_txt?: string;
264 app_id?: string;
265 app_name?: string;
266 attachments?: any[];
267 blocks?: any[];
268 bot_id?: string;
269 canvas_template_mode?: string;
270 cc?: any[];
271 channel_actions_count?: number;
272 channel_actions_ts?: string;
273 channels?: any[];
274 comments_count?: number;
275 converted_pdf?: string;
276 created?: number;
277 deanimate?: string;
278 deanimate_gif?: string;
279 display_as_bot?: boolean;
280 dm_mpdm_users_with_file_access?: any[];
281 duration_ms?: number;
282 edit_link?: string;
283 edit_timestamp?: number;
284 editable?: boolean;
285 editor?: string;
286 editors?: any[];
287 external_id?: string;
288 external_type?: string;
289 external_url?: string;
290 file_access?: string;
291 filetype?: string;
292 from?: any[];
293 groups?: any[];
294 has_more?: boolean;
295 has_more_shares?: boolean;
296 has_rich_preview?: boolean;
297 headers?: Headers;
298 hls?: string;
299 hls_embed?: string;
300 id?: string;
301 image_exif_rotation?: number;
302 ims?: any[];
303 initial_comment?: InitialComment;
304 is_channel_space?: boolean;
305 is_external?: boolean;
306 is_public?: boolean;
307 is_starred?: boolean;
308 last_editor?: string;
309 last_read?: number;
310 lines?: number;
311 lines_more?: number;
312 linked_channel_id?: string;
313 media_display_type?: string;
314 media_progress?: MediaProgress;
315 mimetype?: string;
316 mode?: string;
317 mp4?: string;
318 mp4_low?: string;
319 name?: string;
320 non_owner_editable?: boolean;
321 num_stars?: number;
322 org_or_workspace_access?: string;
323 original_attachment_count?: number;
324 original_h?: string;
325 original_w?: string;
326 permalink?: string;
327 permalink_public?: string;
328 pinned_to?: any[];
329 pjpeg?: string;
330 plain_text?: string;
331 pretty_type?: string;
332 preview?: string;
333 preview_highlight?: string;
334 preview_is_truncated?: boolean;
335 preview_plain_text?: string;
336 private_channels_with_file_access_count?: number;
337 public_url_shared?: boolean;
338 quip_thread_id?: string;
339 reactions?: any[];
340 saved?: Saved;
341 sent_to_self?: boolean;
342 shares?: EventPayload;
343 show_badge?: boolean;
344 simplified_html?: string;
345 size?: number;
346 source_team?: string;
347 subject?: string;
348 subtype?: string;
349 team_pref_version_history_enabled?: boolean;
350 teams_shared_with?: any[];
351 template_conversion_ts?: number;
352 template_description?: string;
353 template_icon?: string;
354 template_name?: string;
355 template_title?: string;
356 thumb_1024?: string;
357 thumb_1024_gif?: string;
358 thumb_1024_h?: string;
359 thumb_1024_w?: string;
360 thumb_160?: string;
361 thumb_160_gif?: string;
362 thumb_160_h?: string;
363 thumb_160_w?: string;
364 thumb_360?: string;
365 thumb_360_gif?: string;
366 thumb_360_h?: string;
367 thumb_360_w?: string;
368 thumb_480?: string;
369 thumb_480_gif?: string;
370 thumb_480_h?: string;
371 thumb_480_w?: string;
372 thumb_64?: string;
373 thumb_64_gif?: string;
374 thumb_64_h?: string;
375 thumb_64_w?: string;
376 thumb_720?: string;
377 thumb_720_gif?: string;
378 thumb_720_h?: string;
379 thumb_720_w?: string;
380 thumb_80?: string;
381 thumb_800?: string;
382 thumb_800_gif?: string;
383 thumb_800_h?: string;
384 thumb_800_w?: string;
385 thumb_80_gif?: string;
386 thumb_80_h?: string;
387 thumb_80_w?: string;
388 thumb_960?: string;
389 thumb_960_gif?: string;
390 thumb_960_h?: string;
391 thumb_960_w?: string;
392 thumb_gif?: string;
393 thumb_pdf?: string;
394 thumb_pdf_h?: string;
395 thumb_pdf_w?: string;
396 thumb_tiny?: string;
397 thumb_video?: string;
398 thumb_video_h?: number;
399 thumb_video_w?: number;
400 timestamp?: number;
401 title?: string;
402 title_blocks?: any[];
403 to?: any[];
404 transcription?: Transcription;
405 update_notification?: number;
406 updated?: number;
407 url_private?: string;
408 url_private_download?: string;
409 url_static_preview?: string;
410 user?: string;
411 user_team?: string;
412 username?: string;
413 vtt?: string;
414}
415export interface Headers {
416 date?: string;
417 in_reply_to?: string;
418 message_id?: string;
419 reply_to?: string;
420}
421export interface InitialComment {
422 channel?: string;
423 comment?: string;
424 created?: number;
425 id?: string;
426 is_intro?: boolean;
427 timestamp?: number;
428 user?: string;
429}
430export interface MediaProgress {
431 duration_ms?: number;
432 max_offset_ms?: number;
433 offset_ms?: number;
434}
435export interface Saved {
436 date_completed?: number;
437 date_due?: number;
438 is_archived?: boolean;
439 state?: string;
440}
441export interface EventPayload {
442}
443export interface Transcription {
444 locale?: string;
445 status?: string;
446}
447export interface BotProfile {
448 app_id?: string;
449 deleted?: boolean;
450 icons?: Icons;
451 id?: string;
452 name?: string;
453 team_id?: string;
454 updated?: number;
455}
456export interface Icons {
457 image_36?: string;
458 image_48?: string;
459 image_72?: string;
460}
461export interface Edited {
462 ts?: string;
463 user?: string;
464}
465export interface FileElement {
466 access?: string;
467 alt_txt?: string;
468 app_id?: string;
469 app_name?: string;
470 bot_id?: string;
471 canvas_template_mode?: string;
472 cc?: Cc[];
473 channel_actions_count?: number;
474 channel_actions_ts?: string;
475 channels?: string[];
476 comments_count?: number;
477 converted_pdf?: string;
478 created?: number;
479 deanimate?: string;
480 deanimate_gif?: string;
481 display_as_bot?: boolean;
482 dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
483 duration_ms?: number;
484 edit_link?: string;
485 edit_timestamp?: number;
486 editable?: boolean;
487 editor?: string;
488 editors?: string[];
489 external_id?: string;
490 external_type?: string;
491 external_url?: string;
492 file_access?: string;
493 filetype?: string;
494 from?: Cc[];
495 groups?: string[];
496 has_more?: boolean;
497 has_more_shares?: boolean;
498 has_rich_preview?: boolean;
499 headers?: Headers;
500 hls?: string;
501 hls_embed?: string;
502 id?: string;
503 image_exif_rotation?: number;
504 ims?: string[];
505 initial_comment?: InitialComment;
506 is_channel_space?: boolean;
507 is_external?: boolean;
508 is_public?: boolean;
509 is_starred?: boolean;
510 last_editor?: string;
511 last_read?: number;
512 lines?: number;
513 lines_more?: number;
514 linked_channel_id?: string;
515 media_display_type?: string;
516 media_progress?: MediaProgress;
517 mimetype?: string;
518 mode?: string;
519 mp4?: string;
520 mp4_low?: string;
521 name?: string;
522 non_owner_editable?: boolean;
523 num_stars?: number;
524 org_or_workspace_access?: string;
525 original_attachment_count?: number;
526 original_h?: string;
527 original_w?: string;
528 permalink?: string;
529 permalink_public?: string;
530 pinned_to?: string[];
531 pjpeg?: string;
532 plain_text?: string;
533 pretty_type?: string;
534 preview?: string;
535 preview_highlight?: string;
536 preview_is_truncated?: boolean;
537 preview_plain_text?: string;
538 private_channels_with_file_access_count?: number;
539 public_url_shared?: boolean;
540 quip_thread_id?: string;
541 reactions?: Reaction[];
542 saved?: Saved;
543 sent_to_self?: boolean;
544 shares?: Shares;
545 show_badge?: boolean;
546 simplified_html?: string;
547 size?: number;
548 source_team?: string;
549 subject?: string;
550 subtype?: string;
551 team_pref_version_history_enabled?: boolean;
552 teams_shared_with?: any[];
553 template_conversion_ts?: number;
554 template_description?: string;
555 template_icon?: string;
556 template_name?: string;
557 template_title?: string;
558 thumb_1024?: string;
559 thumb_1024_gif?: string;
560 thumb_1024_h?: string;
561 thumb_1024_w?: string;
562 thumb_160?: string;
563 thumb_160_gif?: string;
564 thumb_160_h?: string;
565 thumb_160_w?: string;
566 thumb_360?: string;
567 thumb_360_gif?: string;
568 thumb_360_h?: string;
569 thumb_360_w?: string;
570 thumb_480?: string;
571 thumb_480_gif?: string;
572 thumb_480_h?: string;
573 thumb_480_w?: string;
574 thumb_64?: string;
575 thumb_64_gif?: string;
576 thumb_64_h?: string;
577 thumb_64_w?: string;
578 thumb_720?: string;
579 thumb_720_gif?: string;
580 thumb_720_h?: string;
581 thumb_720_w?: string;
582 thumb_80?: string;
583 thumb_800?: string;
584 thumb_800_gif?: string;
585 thumb_800_h?: string;
586 thumb_800_w?: string;
587 thumb_80_gif?: string;
588 thumb_80_h?: string;
589 thumb_80_w?: string;
590 thumb_960?: string;
591 thumb_960_gif?: string;
592 thumb_960_h?: string;
593 thumb_960_w?: string;
594 thumb_gif?: string;
595 thumb_pdf?: string;
596 thumb_pdf_h?: string;
597 thumb_pdf_w?: string;
598 thumb_tiny?: string;
599 thumb_video?: string;
600 thumb_video_h?: number;
601 thumb_video_w?: number;
602 timestamp?: number;
603 title?: string;
604 title_blocks?: TitleBlock[];
605 to?: Cc[];
606 transcription?: Transcription;
607 update_notification?: number;
608 updated?: number;
609 url_private?: string;
610 url_private_download?: string;
611 url_static_preview?: string;
612 user?: string;
613 user_team?: string;
614 username?: string;
615 vtt?: string;
616}
617export interface Cc {
618 address?: string;
619 name?: string;
620 original?: string;
621}
622export interface DmMpdmUsersWithFileAccess {
623 access?: string;
624 user_id?: string;
625}
626export interface Reaction {
627 count?: number;
628 name?: string;
629 url?: string;
630 users?: string[];
631}
632export interface Shares {
633 private?: {
634 [key: string]: Private[];
635 };
636 public?: {
637 [key: string]: Private[];
638 };
639}
640export interface Private {
641 access?: string;
642 channel_name?: string;
643 date_last_shared?: number;
644 latest_reply?: string;
645 reply_count?: number;
646 reply_users?: string[];
647 reply_users_count?: number;
648 share_user_id?: string;
649 source?: string;
650 team_id?: string;
651 thread_ts?: string;
652 ts?: string;
653}
654export interface TitleBlock {
655 accessory?: Accessory;
656 alt_text?: string;
657 app_collaborators?: string[];
658 app_id?: string;
659 author_name?: string;
660 block_id?: string;
661 bot_user_id?: string;
662 button_label?: string;
663 description?: DescriptionElement | string;
664 developer_trace_id?: string;
665 elements?: Accessory[];
666 fallback?: string;
667 fields?: DescriptionElement[];
668 function_trigger_id?: string;
669 image_bytes?: number;
670 image_height?: number;
671 image_url?: string;
672 image_width?: number;
673 is_animated?: boolean;
674 is_workflow_app?: boolean;
675 owning_team_id?: string;
676 provider_icon_url?: string;
677 provider_name?: string;
678 sales_home_workflow_app_type?: number;
679 share_url?: string;
680 slack_file?: SlackFile;
681 text?: DescriptionElement;
682 thumbnail_url?: string;
683 title?: DescriptionElement | string;
684 title_url?: string;
685 trigger_subtype?: string;
686 trigger_type?: string;
687 type?: string;
688 url?: string;
689 video_url?: string;
690 workflow_id?: string;
691}
692export interface Metadata {
693 event_payload?: EventPayload;
694 event_type?: string;
695}
696export interface Room {
697 app_id?: string;
698 attached_file_ids?: string[];
699 background_id?: string;
700 call_family?: string;
701 canvas_background?: string;
702 canvas_thread_ts?: string;
703 channels?: string[];
704 created_by?: string;
705 date_end?: number;
706 date_start?: number;
707 display_id?: string;
708 external_unique_id?: string;
709 has_ended?: boolean;
710 id?: string;
711 is_dm_call?: boolean;
712 is_prewarmed?: boolean;
713 is_scheduled?: boolean;
714 knocks?: EventPayload;
715 last_invite_status_by_user?: EventPayload;
716 media_backend_type?: string;
717 media_server?: string;
718 name?: string;
719 participant_history?: string[];
720 participants?: string[];
721 participants_camera_off?: string[];
722 participants_camera_on?: string[];
723 participants_screenshare_off?: string[];
724 participants_screenshare_on?: string[];
725 pending_invitees?: EventPayload;
726 thread_root_ts?: string;
727 was_accepted?: boolean;
728 was_missed?: boolean;
729 was_rejected?: boolean;
730}
731export interface ResponseMetadata {
732 messages?: string[];
733}
734//# sourceMappingURL=ChatUpdateResponse.d.ts.map
\No newline at end of file