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