UNPKG

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