UNPKG

35.2 kBTypeScriptView Raw
1import type { WebAPICallResult } from '../../WebClient';
2export type SearchAllResponse = WebAPICallResult & {
3 error?: string;
4 files?: Files;
5 messages?: Messages;
6 needed?: string;
7 ok?: boolean;
8 posts?: Posts;
9 provided?: string;
10 query?: string;
11};
12export interface Files {
13 matches?: FilesMatch[];
14 pagination?: Pagination;
15 paging?: Paging;
16 total?: number;
17}
18export interface FilesMatch {
19 access?: string;
20 attachments?: Attachment[];
21 bot_id?: string;
22 cc?: Cc[];
23 channels?: string[];
24 comments_count?: number;
25 converted_pdf?: string;
26 created?: number;
27 deanimate?: string;
28 deanimate_gif?: string;
29 display_as_bot?: boolean;
30 dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
31 edit_link?: string;
32 editable?: boolean;
33 editors?: string[];
34 editors_count?: number;
35 external_id?: string;
36 external_type?: string;
37 external_url?: string;
38 file_access?: string;
39 filetype?: string;
40 from?: Cc[];
41 groups?: string[];
42 has_more?: boolean;
43 has_more_shares?: boolean;
44 has_rich_preview?: boolean;
45 headers?: MatchHeaders;
46 id?: string;
47 image_exif_rotation?: number;
48 ims?: string[];
49 is_channel_space?: boolean;
50 is_external?: boolean;
51 is_public?: boolean;
52 is_starred?: boolean;
53 last_editor?: LastEditor;
54 lines?: number;
55 lines_more?: number;
56 linked_channel_id?: string;
57 media_display_type?: string;
58 mimetype?: string;
59 mode?: string;
60 name?: string;
61 non_owner_editable?: boolean;
62 org_or_workspace_access?: string;
63 original_attachment_count?: number;
64 original_h?: number;
65 original_w?: number;
66 permalink?: string;
67 permalink_public?: string;
68 plain_text?: string;
69 pretty_type?: string;
70 preview?: string;
71 preview_highlight?: string;
72 preview_is_truncated?: boolean;
73 preview_plain_text?: string;
74 private_channels_with_file_access_count?: number;
75 private_file_with_access_count?: number;
76 public_url_shared?: boolean;
77 quip_thread_id?: string;
78 sent_to_self?: boolean;
79 shares?: MatchShares;
80 size?: number;
81 subject?: string;
82 team_pref_version_history_enabled?: boolean;
83 teams_shared_with?: string[];
84 thumb_1024?: string;
85 thumb_1024_h?: number;
86 thumb_1024_w?: number;
87 thumb_160?: string;
88 thumb_360?: string;
89 thumb_360_gif?: string;
90 thumb_360_h?: number;
91 thumb_360_w?: number;
92 thumb_480?: string;
93 thumb_480_gif?: string;
94 thumb_480_h?: number;
95 thumb_480_w?: number;
96 thumb_64?: string;
97 thumb_720?: string;
98 thumb_720_h?: number;
99 thumb_720_w?: number;
100 thumb_80?: string;
101 thumb_800?: string;
102 thumb_800_h?: number;
103 thumb_800_w?: number;
104 thumb_960?: string;
105 thumb_960_h?: number;
106 thumb_960_w?: number;
107 thumb_pdf?: string;
108 thumb_pdf_h?: number;
109 thumb_pdf_w?: number;
110 thumb_tiny?: string;
111 thumb_video?: string;
112 timestamp?: number;
113 title?: string;
114 title_blocks?: MatchTitleBlock[];
115 to?: Cc[];
116 update_notification?: number;
117 updated?: number;
118 url_private?: string;
119 url_private_download?: string;
120 url_static_preview?: string;
121 user?: LastEditor;
122 user_team?: UserTeam;
123 username?: string;
124}
125export interface Attachment {
126 actions?: Action[];
127 app_id?: string;
128 app_unfurl_url?: string;
129 author_icon?: string;
130 author_id?: string;
131 author_link?: string;
132 author_name?: string;
133 author_subname?: string;
134 blocks?: AttachmentBlock[];
135 bot_id?: string;
136 callback_id?: string;
137 channel_id?: string;
138 channel_name?: string;
139 channel_team?: string;
140 color?: string;
141 fallback?: string;
142 fields?: AttachmentField[];
143 file_id?: string;
144 filename?: string;
145 files?: FileElement[];
146 footer?: string;
147 footer_icon?: string;
148 from_url?: string;
149 hide_border?: boolean;
150 hide_color?: boolean;
151 id?: number;
152 image_bytes?: number;
153 image_height?: number;
154 image_url?: string;
155 image_width?: number;
156 indent?: boolean;
157 is_app_unfurl?: boolean;
158 is_file_attachment?: boolean;
159 is_msg_unfurl?: boolean;
160 is_reply_unfurl?: boolean;
161 is_thread_root_unfurl?: boolean;
162 list?: List;
163 list_record?: PurpleListRecord;
164 list_record_id?: string;
165 list_records?: ListRecordElement[];
166 list_schema?: Schema[];
167 list_view?: View;
168 list_view_id?: string;
169 message_blocks?: MessageBlock[];
170 metadata?: AttachmentMetadata;
171 mimetype?: string;
172 mrkdwn_in?: string[];
173 msg_subtype?: string;
174 original_url?: string;
175 pretext?: string;
176 preview?: AttachmentPreview;
177 service_icon?: string;
178 service_name?: string;
179 service_url?: string;
180 size?: number;
181 text?: string;
182 thumb_height?: number;
183 thumb_url?: string;
184 thumb_width?: number;
185 title?: string;
186 title_link?: string;
187 ts?: string;
188 url?: string;
189 video_html?: string;
190 video_html_height?: number;
191 video_html_width?: number;
192 video_url?: string;
193}
194export interface Action {
195 confirm?: ActionConfirm;
196 data_source?: string;
197 id?: string;
198 min_query_length?: number;
199 name?: string;
200 option_groups?: ActionOptionGroup[];
201 options?: SelectedOptionElement[];
202 selected_options?: SelectedOptionElement[];
203 style?: string;
204 text?: string;
205 type?: ActionType;
206 url?: string;
207 value?: string;
208}
209export interface ActionConfirm {
210 dismiss_text?: string;
211 ok_text?: string;
212 text?: string;
213 title?: string;
214}
215export interface ActionOptionGroup {
216 options?: SelectedOptionElement[];
217 text?: string;
218}
219export interface SelectedOptionElement {
220 text?: string;
221 value?: string;
222}
223export declare enum ActionType {
224 Button = "button",
225 ChannelsSelect = "channels_select",
226 Checkboxes = "checkboxes",
227 ConversationsSelect = "conversations_select",
228 Datepicker = "datepicker",
229 Datetimepicker = "datetimepicker",
230 ExternalSelect = "external_select",
231 Image = "image",
232 MultiChannelsSelect = "multi_channels_select",
233 MultiConversationsSelect = "multi_conversations_select",
234 MultiExternalSelect = "multi_external_select",
235 MultiStaticSelect = "multi_static_select",
236 MultiUsersSelect = "multi_users_select",
237 Overflow = "overflow",
238 RadioButtons = "radio_buttons",
239 RichTextList = "rich_text_list",
240 RichTextPreformatted = "rich_text_preformatted",
241 RichTextQuote = "rich_text_quote",
242 RichTextSection = "rich_text_section",
243 StaticSelect = "static_select",
244 Timepicker = "timepicker",
245 UsersSelect = "users_select",
246 WorkflowButton = "workflow_button"
247}
248export interface AttachmentBlock {
249 accessory?: Accessory;
250 alt_text?: string;
251 app_collaborators?: string[];
252 app_id?: string;
253 author_name?: string;
254 block_id?: string;
255 bot_user_id?: string;
256 button_label?: string;
257 description?: DescriptionElement | string;
258 developer_trace_id?: string;
259 elements?: Accessory[];
260 fallback?: string;
261 fields?: DescriptionElement[];
262 function_trigger_id?: string;
263 image_bytes?: number;
264 image_height?: number;
265 image_url?: string;
266 image_width?: number;
267 is_animated?: boolean;
268 is_workflow_app?: boolean;
269 owning_team_id?: string;
270 provider_icon_url?: string;
271 provider_name?: string;
272 sales_home_workflow_app_type?: number;
273 share_url?: string;
274 slack_file?: SlackFile;
275 text?: DescriptionElement;
276 thumbnail_url?: string;
277 title?: DescriptionElement | string;
278 title_url?: string;
279 trigger_subtype?: string;
280 trigger_type?: string;
281 type?: BlockType;
282 url?: string;
283 video_url?: string;
284 workflow_id?: string;
285}
286export interface Accessory {
287 accessibility_label?: string;
288 action_id?: string;
289 alt_text?: string;
290 border?: number;
291 confirm?: AccessoryConfirm;
292 default_to_current_conversation?: boolean;
293 elements?: AccessoryElement[];
294 fallback?: string;
295 filter?: Filter;
296 focus_on_load?: boolean;
297 image_bytes?: number;
298 image_height?: number;
299 image_url?: string;
300 image_width?: number;
301 indent?: number;
302 initial_channel?: string;
303 initial_channels?: string[];
304 initial_conversation?: string;
305 initial_conversations?: string[];
306 initial_date?: string;
307 initial_date_time?: number;
308 initial_option?: InitialOptionElement;
309 initial_options?: InitialOptionElement[];
310 initial_time?: string;
311 initial_user?: string;
312 initial_users?: string[];
313 max_selected_items?: number;
314 min_query_length?: number;
315 offset?: number;
316 option_groups?: AccessoryOptionGroup[];
317 options?: InitialOptionElement[];
318 placeholder?: DescriptionElement;
319 response_url_enabled?: boolean;
320 slack_file?: SlackFile;
321 style?: string;
322 text?: DescriptionElement;
323 timezone?: string;
324 type?: ActionType;
325 url?: string;
326 value?: string;
327 workflow?: Workflow;
328}
329export interface AccessoryConfirm {
330 confirm?: DescriptionElement;
331 deny?: DescriptionElement;
332 style?: string;
333 text?: DescriptionElement;
334 title?: DescriptionElement;
335}
336export interface DescriptionElement {
337 emoji?: boolean;
338 text?: string;
339 type?: DescriptionType;
340 verbatim?: boolean;
341}
342export declare enum DescriptionType {
343 Mrkdwn = "mrkdwn",
344 PlainText = "plain_text"
345}
346export interface AccessoryElement {
347 border?: number;
348 elements?: PurpleElement[];
349 indent?: number;
350 offset?: number;
351 style?: string;
352 type?: ActionType;
353}
354export interface PurpleElement {
355 channel_id?: string;
356 fallback?: string;
357 format?: string;
358 name?: string;
359 range?: string;
360 skin_tone?: number;
361 style?: Style;
362 team_id?: string;
363 text?: string;
364 timestamp?: number;
365 type?: PurpleType;
366 unicode?: string;
367 unsafe?: boolean;
368 url?: string;
369 user_id?: string;
370 usergroup_id?: string;
371 value?: string;
372}
373export interface Style {
374 bold?: boolean;
375 client_highlight?: boolean;
376 code?: boolean;
377 highlight?: boolean;
378 italic?: boolean;
379 strike?: boolean;
380 unlink?: boolean;
381}
382export declare enum PurpleType {
383 Broadcast = "broadcast",
384 Channel = "channel",
385 Color = "color",
386 Date = "date",
387 Emoji = "emoji",
388 Link = "link",
389 Team = "team",
390 Text = "text",
391 User = "user",
392 Usergroup = "usergroup"
393}
394export interface Filter {
395 exclude_bot_users?: boolean;
396 exclude_external_shared_channels?: boolean;
397 include?: any[];
398}
399export interface InitialOptionElement {
400 description?: DescriptionElement;
401 text?: DescriptionElement;
402 url?: string;
403 value?: string;
404}
405export interface AccessoryOptionGroup {
406 label?: DescriptionElement;
407 options?: InitialOptionElement[];
408}
409export interface SlackFile {
410 id?: string;
411 url?: string;
412}
413export interface Workflow {
414 trigger?: Trigger;
415}
416export interface Trigger {
417 customizable_input_parameters?: CustomizableInputParameter[];
418 url?: string;
419}
420export interface CustomizableInputParameter {
421 name?: string;
422 value?: string;
423}
424export declare enum BlockType {
425 Actions = "actions",
426 Context = "context",
427 Divider = "divider",
428 Image = "image",
429 RichText = "rich_text",
430 Section = "section",
431 ShareShortcut = "share_shortcut",
432 Video = "video"
433}
434export interface AttachmentField {
435 short?: boolean;
436 title?: string;
437 value?: string;
438}
439export interface FileElement {
440 access?: string;
441 alt_txt?: string;
442 app_id?: string;
443 app_name?: string;
444 attachments?: any[];
445 blocks?: AttachmentBlock[];
446 bot_id?: string;
447 can_toggle_canvas_lock?: boolean;
448 canvas_template_mode?: string;
449 cc?: Cc[];
450 channel_actions_count?: number;
451 channel_actions_ts?: string;
452 channels?: string[];
453 comments_count?: number;
454 converted_pdf?: string;
455 created?: number;
456 deanimate?: string;
457 deanimate_gif?: string;
458 display_as_bot?: boolean;
459 dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
460 duration_ms?: number;
461 edit_link?: string;
462 edit_timestamp?: number;
463 editable?: boolean;
464 editor?: string;
465 editors?: string[];
466 external_id?: string;
467 external_type?: string;
468 external_url?: string;
469 favorites?: Favorite[];
470 file_access?: string;
471 filetype?: string;
472 from?: Cc[];
473 groups?: string[];
474 has_more?: boolean;
475 has_more_shares?: boolean;
476 has_rich_preview?: boolean;
477 headers?: FileHeaders;
478 hls?: string;
479 hls_embed?: string;
480 id?: string;
481 image_exif_rotation?: number;
482 ims?: string[];
483 initial_comment?: InitialComment;
484 is_channel_space?: boolean;
485 is_external?: boolean;
486 is_public?: boolean;
487 is_restricted_sharing_enabled?: boolean;
488 is_starred?: boolean;
489 last_editor?: string;
490 last_read?: number;
491 lines?: number;
492 lines_more?: number;
493 linked_channel_id?: string;
494 list_limits?: ListLimits;
495 list_metadata?: ListMetadata;
496 media_display_type?: string;
497 media_progress?: MediaProgress;
498 mimetype?: string;
499 mode?: string;
500 mp4?: string;
501 mp4_low?: string;
502 name?: string;
503 non_owner_editable?: boolean;
504 num_stars?: number;
505 org_or_workspace_access?: string;
506 original_attachment_count?: number;
507 original_h?: string;
508 original_w?: string;
509 permalink?: string;
510 permalink_public?: string;
511 pinned_to?: string[];
512 pjpeg?: string;
513 plain_text?: string;
514 pretty_type?: string;
515 preview?: string;
516 preview_highlight?: string;
517 preview_is_truncated?: boolean;
518 preview_plain_text?: string;
519 private_channels_with_file_access_count?: number;
520 private_file_with_access_count?: number;
521 public_url_shared?: boolean;
522 quip_thread_id?: string;
523 reactions?: Reaction[];
524 saved?: Saved;
525 sent_to_self?: boolean;
526 shares?: PurpleShares;
527 show_badge?: boolean;
528 simplified_html?: string;
529 size?: number;
530 source_team?: string;
531 subject?: string;
532 subtype?: string;
533 team_pref_version_history_enabled?: boolean;
534 teams_shared_with?: any[];
535 template_conversion_ts?: number;
536 template_description?: string;
537 template_icon?: string;
538 template_name?: string;
539 template_title?: string;
540 thumb_1024?: string;
541 thumb_1024_gif?: string;
542 thumb_1024_h?: string;
543 thumb_1024_w?: string;
544 thumb_160?: string;
545 thumb_160_gif?: string;
546 thumb_160_h?: string;
547 thumb_160_w?: string;
548 thumb_360?: string;
549 thumb_360_gif?: string;
550 thumb_360_h?: string;
551 thumb_360_w?: string;
552 thumb_480?: string;
553 thumb_480_gif?: string;
554 thumb_480_h?: string;
555 thumb_480_w?: string;
556 thumb_64?: string;
557 thumb_64_gif?: string;
558 thumb_64_h?: string;
559 thumb_64_w?: string;
560 thumb_720?: string;
561 thumb_720_gif?: string;
562 thumb_720_h?: string;
563 thumb_720_w?: string;
564 thumb_80?: string;
565 thumb_800?: string;
566 thumb_800_gif?: string;
567 thumb_800_h?: string;
568 thumb_800_w?: string;
569 thumb_80_gif?: string;
570 thumb_80_h?: string;
571 thumb_80_w?: string;
572 thumb_960?: string;
573 thumb_960_gif?: string;
574 thumb_960_h?: string;
575 thumb_960_w?: string;
576 thumb_gif?: string;
577 thumb_pdf?: string;
578 thumb_pdf_h?: string;
579 thumb_pdf_w?: string;
580 thumb_tiny?: string;
581 thumb_video?: string;
582 thumb_video_h?: number;
583 thumb_video_w?: number;
584 timestamp?: number;
585 title?: string;
586 title_blocks?: AttachmentBlock[];
587 to?: Cc[];
588 transcription?: Transcription;
589 update_notification?: number;
590 updated?: number;
591 url_private?: string;
592 url_private_download?: string;
593 url_static_preview?: string;
594 user?: string;
595 user_team?: string;
596 username?: string;
597 vtt?: string;
598}
599export interface Cc {
600 address?: string;
601 name?: string;
602 original?: string;
603}
604export interface DmMpdmUsersWithFileAccess {
605 access?: string;
606 user_id?: LastEditor;
607}
608export declare enum LastEditor {
609 Empty = "",
610 U00000000 = "U00000000"
611}
612export interface Favorite {
613 collection_id?: string;
614 collection_name?: string;
615 position?: string;
616}
617export interface FileHeaders {
618 date?: string;
619 in_reply_to?: string;
620 message_id?: string;
621 reply_to?: string;
622}
623export interface InitialComment {
624 channel?: string;
625 comment?: string;
626 created?: number;
627 id?: string;
628 is_intro?: boolean;
629 timestamp?: number;
630 user?: string;
631}
632export interface ListLimits {
633 column_count?: number;
634 column_count_limit?: number;
635 over_column_maximum?: boolean;
636 over_row_maximum?: boolean;
637 over_view_maximum?: boolean;
638 row_count?: number;
639 row_count_limit?: number;
640 view_count?: number;
641 view_count_limit?: number;
642}
643export interface ListMetadata {
644 creation_source?: CreationSource;
645 description?: string;
646 icon?: string;
647 icon_team_id?: string;
648 icon_url?: string;
649 integrations?: string[];
650 is_trial?: boolean;
651 schema?: Schema[];
652 views?: View[];
653}
654export interface CreationSource {
655 reference_id?: string;
656 type?: string;
657 workflow_function_id?: string;
658}
659export interface Schema {
660 id?: string;
661 is_primary_column?: boolean;
662 key?: string;
663 name?: string;
664 options?: Options;
665 type?: string;
666}
667export interface Options {
668 canvas_id?: string;
669 canvas_placeholder_mapping?: CanvasPlaceholderMapping[];
670 choices?: Choice[];
671 currency?: string;
672 currency_format?: string;
673 date_format?: string;
674 default_value?: string;
675 default_value_typed?: DefaultValueTyped;
676 emoji?: string;
677 emoji_team_id?: string;
678 for_assignment?: boolean;
679 format?: string;
680 linked_to?: string[];
681 mark_as_done_when_checked?: boolean;
682 max?: number;
683 notify_users?: boolean;
684 precision?: number;
685 rounding?: string;
686 show_member_name?: boolean;
687 time_format?: string;
688}
689export interface CanvasPlaceholderMapping {
690 column?: string;
691 variable?: string;
692}
693export interface Choice {
694 color?: string;
695 label?: string;
696 value?: string;
697}
698export interface DefaultValueTyped {
699 select?: string[];
700}
701export interface View {
702 columns?: Column[];
703 created_by?: string;
704 date_created?: number;
705 id?: string;
706 is_all_items_view?: boolean;
707 is_locked?: boolean;
708 name?: string;
709 position?: string;
710 stick_column_left?: boolean;
711 type?: string;
712}
713export interface Column {
714 id?: string;
715 key?: string;
716 position?: string;
717 visible?: boolean;
718 width?: number;
719}
720export interface MediaProgress {
721 duration_ms?: number;
722 max_offset_ms?: number;
723 media_watched?: boolean;
724 offset_ms?: number;
725}
726export interface Reaction {
727 count?: number;
728 name?: string;
729 url?: string;
730 users?: string[];
731}
732export interface Saved {
733 date_completed?: number;
734 date_due?: number;
735 is_archived?: boolean;
736 state?: string;
737}
738export interface PurpleShares {
739 private?: {
740 [key: string]: Public[];
741 };
742 public?: {
743 [key: string]: Public[];
744 };
745}
746export interface Public {
747 access?: string;
748 channel_name?: string;
749 date_last_shared?: number;
750 latest_reply?: string;
751 reply_count?: number;
752 reply_users?: string[];
753 reply_users_count?: number;
754 share_user_id?: LastEditor;
755 source?: string;
756 team_id?: UserTeam;
757 thread_ts?: string;
758 ts?: Ts;
759}
760export declare enum UserTeam {
761 Empty = "",
762 T00000000 = "T00000000"
763}
764export declare enum Ts {
765 Empty = "",
766 The0000000000000000 = "0000000000.000000"
767}
768export interface Transcription {
769 locale?: string;
770 preview?: TranscriptionPreview;
771 status?: string;
772}
773export interface TranscriptionPreview {
774 content?: string;
775 has_more?: boolean;
776}
777export interface List {
778 channels?: string[];
779 comments_count?: number;
780 created?: number;
781 display_as_bot?: boolean;
782 dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
783 editable?: boolean;
784 external_type?: string;
785 file_access?: string;
786 filetype?: string;
787 groups?: string[];
788 has_more_shares?: boolean;
789 has_rich_preview?: boolean;
790 id?: string;
791 ims?: string[];
792 is_external?: boolean;
793 is_public?: boolean;
794 last_editor?: string;
795 list_limits?: ListLimits;
796 list_metadata?: ListMetadata;
797 mimetype?: string;
798 mode?: string;
799 name?: string;
800 permalink?: string;
801 permalink_public?: string;
802 pretty_type?: string;
803 private_channels_with_file_access_count?: number;
804 private_file_with_access_count?: number;
805 public_url_shared?: boolean;
806 shares?: ListShares;
807 size?: number;
808 timestamp?: number;
809 title?: string;
810 updated?: number;
811 url_private?: string;
812 url_private_download?: string;
813 user?: string;
814 user_team?: string;
815 username?: string;
816}
817export type ListShares = {};
818export interface PurpleListRecord {
819 record?: Record;
820 schema?: Schema[];
821}
822export interface Record {
823 fields?: RecordField[];
824 record_id?: string;
825}
826export interface RecordField {
827 attachment?: any[];
828 channel?: any[];
829 checkbox?: boolean;
830 column_id?: string;
831 date?: any[];
832 email?: any[];
833 key?: string;
834 message?: Message;
835 number?: any[];
836 phone?: any[];
837 rating?: any[];
838 rich_text?: any[];
839 select?: any[];
840 text?: string;
841 timestamp?: any[];
842 user?: any[];
843 value?: string;
844}
845export interface Message {
846 app_id?: string;
847 assistant_app_thread?: AssistantAppThread;
848 attachments?: any[];
849 blocks?: AttachmentBlock[];
850 bot_id?: string;
851 bot_link?: string;
852 bot_profile?: BotProfile;
853 channel?: string;
854 client_msg_id?: string;
855 comment?: Comment;
856 display_as_bot?: boolean;
857 edited?: Edited;
858 file?: MessageFile;
859 files?: any[];
860 hidden?: boolean;
861 icons?: MessageIcons;
862 inviter?: string;
863 is_intro?: boolean;
864 is_locked?: boolean;
865 is_starred?: boolean;
866 is_thread_broadcast?: boolean;
867 item?: Comment;
868 item_type?: string;
869 last_read?: string;
870 latest_reply?: string;
871 metadata?: MessageMetadata;
872 no_notifications?: boolean;
873 parent_user_id?: string;
874 pinned_to?: any[];
875 purpose?: string;
876 reactions?: any[];
877 replies?: any[];
878 reply_count?: number;
879 reply_users?: any[];
880 reply_users_count?: number;
881 room?: Room;
882 root?: Root;
883 subscribed?: boolean;
884 subtype?: string;
885 team?: string;
886 text?: string;
887 thread_ts?: string;
888 topic?: string;
889 ts?: string;
890 type?: string;
891 unfurl_links?: boolean;
892 unfurl_media?: boolean;
893 upload?: boolean;
894 user?: string;
895 username?: string;
896 wibblr?: boolean;
897 x_files?: any[];
898}
899export interface AssistantAppThread {
900 first_user_thread_reply?: string;
901 title?: string;
902 title_blocks?: any[];
903}
904export interface BotProfile {
905 app_id?: string;
906 deleted?: boolean;
907 icons?: BotProfileIcons;
908 id?: string;
909 name?: string;
910 team_id?: string;
911 updated?: number;
912}
913export interface BotProfileIcons {
914 image_36?: string;
915 image_48?: string;
916 image_72?: string;
917}
918export interface Comment {
919 comment?: string;
920 created?: string;
921 display_as_bot?: boolean;
922 edit_link?: string;
923 editable?: boolean;
924 external_type?: string;
925 filetype?: string;
926 has_rich_preview?: boolean;
927 id?: string;
928 is_external?: boolean;
929 is_intro?: boolean;
930 is_public?: boolean;
931 is_starred?: boolean;
932 lines?: number;
933 lines_more?: number;
934 media_display_type?: string;
935 mimetype?: string;
936 mode?: string;
937 name?: string;
938 permalink?: string;
939 permalink_public?: boolean;
940 pretty_type?: string;
941 preview?: string;
942 preview_highlight?: string;
943 preview_is_truncated?: boolean;
944 public_url_shared?: boolean;
945 size?: number;
946 timestamp?: string;
947 title?: string;
948 url_private?: string;
949 url_private_download?: boolean;
950 user?: string;
951 username?: string;
952}
953export interface Edited {
954 ts?: string;
955 user?: string;
956}
957export interface MessageFile {
958 access?: string;
959 alt_txt?: string;
960 app_id?: string;
961 app_name?: string;
962 attachments?: any[];
963 blocks?: any[];
964 bot_id?: string;
965 can_toggle_canvas_lock?: boolean;
966 canvas_template_mode?: string;
967 cc?: any[];
968 channel_actions_count?: number;
969 channel_actions_ts?: string;
970 channels?: any[];
971 comments_count?: number;
972 converted_pdf?: string;
973 created?: number;
974 deanimate?: string;
975 deanimate_gif?: string;
976 display_as_bot?: boolean;
977 dm_mpdm_users_with_file_access?: any[];
978 duration_ms?: number;
979 edit_link?: string;
980 edit_timestamp?: number;
981 editable?: boolean;
982 editor?: string;
983 editors?: any[];
984 external_id?: string;
985 external_type?: string;
986 external_url?: string;
987 favorites?: any[];
988 file_access?: string;
989 filetype?: string;
990 from?: any[];
991 groups?: any[];
992 has_more?: boolean;
993 has_more_shares?: boolean;
994 has_rich_preview?: boolean;
995 headers?: FileHeaders;
996 hls?: string;
997 hls_embed?: string;
998 id?: string;
999 image_exif_rotation?: number;
1000 ims?: any[];
1001 initial_comment?: InitialComment;
1002 is_channel_space?: boolean;
1003 is_external?: boolean;
1004 is_public?: boolean;
1005 is_restricted_sharing_enabled?: boolean;
1006 is_starred?: boolean;
1007 last_editor?: string;
1008 last_read?: number;
1009 lines?: number;
1010 lines_more?: number;
1011 linked_channel_id?: string;
1012 list_limits?: ListLimits;
1013 list_metadata?: ListMetadata;
1014 media_display_type?: string;
1015 media_progress?: MediaProgress;
1016 mimetype?: string;
1017 mode?: string;
1018 mp4?: string;
1019 mp4_low?: string;
1020 name?: string;
1021 non_owner_editable?: boolean;
1022 num_stars?: number;
1023 org_or_workspace_access?: string;
1024 original_attachment_count?: number;
1025 original_h?: string;
1026 original_w?: string;
1027 permalink?: string;
1028 permalink_public?: string;
1029 pinned_to?: any[];
1030 pjpeg?: string;
1031 plain_text?: string;
1032 pretty_type?: string;
1033 preview?: string;
1034 preview_highlight?: string;
1035 preview_is_truncated?: boolean;
1036 preview_plain_text?: string;
1037 private_channels_with_file_access_count?: number;
1038 private_file_with_access_count?: number;
1039 public_url_shared?: boolean;
1040 quip_thread_id?: string;
1041 reactions?: any[];
1042 saved?: Saved;
1043 sent_to_self?: boolean;
1044 shares?: ListShares;
1045 show_badge?: boolean;
1046 simplified_html?: string;
1047 size?: number;
1048 source_team?: string;
1049 subject?: string;
1050 subtype?: string;
1051 team_pref_version_history_enabled?: boolean;
1052 teams_shared_with?: any[];
1053 template_conversion_ts?: number;
1054 template_description?: string;
1055 template_icon?: string;
1056 template_name?: string;
1057 template_title?: string;
1058 thumb_1024?: string;
1059 thumb_1024_gif?: string;
1060 thumb_1024_h?: string;
1061 thumb_1024_w?: string;
1062 thumb_160?: string;
1063 thumb_160_gif?: string;
1064 thumb_160_h?: string;
1065 thumb_160_w?: string;
1066 thumb_360?: string;
1067 thumb_360_gif?: string;
1068 thumb_360_h?: string;
1069 thumb_360_w?: string;
1070 thumb_480?: string;
1071 thumb_480_gif?: string;
1072 thumb_480_h?: string;
1073 thumb_480_w?: string;
1074 thumb_64?: string;
1075 thumb_64_gif?: string;
1076 thumb_64_h?: string;
1077 thumb_64_w?: string;
1078 thumb_720?: string;
1079 thumb_720_gif?: string;
1080 thumb_720_h?: string;
1081 thumb_720_w?: string;
1082 thumb_80?: string;
1083 thumb_800?: string;
1084 thumb_800_gif?: string;
1085 thumb_800_h?: string;
1086 thumb_800_w?: string;
1087 thumb_80_gif?: string;
1088 thumb_80_h?: string;
1089 thumb_80_w?: string;
1090 thumb_960?: string;
1091 thumb_960_gif?: string;
1092 thumb_960_h?: string;
1093 thumb_960_w?: string;
1094 thumb_gif?: string;
1095 thumb_pdf?: string;
1096 thumb_pdf_h?: string;
1097 thumb_pdf_w?: string;
1098 thumb_tiny?: string;
1099 thumb_video?: string;
1100 thumb_video_h?: number;
1101 thumb_video_w?: number;
1102 timestamp?: number;
1103 title?: string;
1104 title_blocks?: any[];
1105 to?: any[];
1106 transcription?: Transcription;
1107 update_notification?: number;
1108 updated?: number;
1109 url_private?: string;
1110 url_private_download?: string;
1111 url_static_preview?: string;
1112 user?: string;
1113 user_team?: string;
1114 username?: string;
1115 vtt?: string;
1116}
1117export interface MessageIcons {
1118 emoji?: string;
1119 image_36?: string;
1120 image_48?: string;
1121 image_64?: string;
1122 image_72?: string;
1123}
1124export interface MessageMetadata {
1125 event_type?: string;
1126}
1127export interface Room {
1128 app_id?: string;
1129 attached_file_ids?: any[];
1130 background_id?: string;
1131 call_family?: string;
1132 canvas_background?: string;
1133 canvas_thread_ts?: string;
1134 channels?: any[];
1135 created_by?: string;
1136 date_end?: number;
1137 date_start?: number;
1138 display_id?: string;
1139 external_unique_id?: string;
1140 has_ended?: boolean;
1141 id?: string;
1142 is_dm_call?: boolean;
1143 is_prewarmed?: boolean;
1144 is_scheduled?: boolean;
1145 media_backend_type?: string;
1146 media_server?: string;
1147 name?: string;
1148 participant_history?: any[];
1149 participants?: any[];
1150 participants_camera_off?: any[];
1151 participants_camera_on?: any[];
1152 participants_screenshare_off?: any[];
1153 participants_screenshare_on?: any[];
1154 thread_root_ts?: string;
1155 was_accepted?: boolean;
1156 was_missed?: boolean;
1157 was_rejected?: boolean;
1158}
1159export interface Root {
1160 bot_id?: string;
1161 bot_profile?: BotProfile;
1162 edited?: Edited;
1163 icons?: MessageIcons;
1164 last_read?: string;
1165 latest_reply?: string;
1166 mrkdwn?: boolean;
1167 no_notifications?: boolean;
1168 parent_user_id?: string;
1169 replies?: any[];
1170 reply_count?: number;
1171 reply_users?: any[];
1172 reply_users_count?: number;
1173 room?: Room;
1174 subscribed?: boolean;
1175 subtype?: string;
1176 team?: string;
1177 text?: string;
1178 thread_ts?: string;
1179 ts?: string;
1180 type?: string;
1181 unread_count?: number;
1182 user?: string;
1183 username?: string;
1184}
1185export interface ListRecordElement {
1186 created_by?: string;
1187 date_created?: number;
1188 fields?: RecordField[];
1189 id?: string;
1190 is_subscribed?: boolean;
1191 list_id?: string;
1192 platform_refs?: PlatformRefs;
1193 position?: string;
1194 saved?: Saved;
1195 thread_ts?: string;
1196 updated_by?: string;
1197 updated_timestamp?: string;
1198}
1199export interface PlatformRefs {
1200 bot_created_by?: string;
1201 bot_deleted_by?: string;
1202 bot_updated_by?: string;
1203}
1204export interface MessageBlock {
1205 channel?: string;
1206 message?: Message;
1207 team?: string;
1208 ts?: string;
1209}
1210export interface AttachmentMetadata {
1211 extension?: string;
1212 format?: string;
1213 original_h?: number;
1214 original_w?: number;
1215 rotation?: number;
1216 thumb_160?: boolean;
1217 thumb_360_h?: number;
1218 thumb_360_w?: number;
1219 thumb_64?: boolean;
1220 thumb_80?: boolean;
1221 thumb_tiny?: string;
1222}
1223export interface AttachmentPreview {
1224 can_remove?: boolean;
1225 icon_url?: string;
1226 subtitle?: DescriptionElement;
1227 title?: DescriptionElement;
1228 type?: string;
1229}
1230export interface MatchHeaders {
1231 date?: string;
1232}
1233export interface MatchShares {
1234 public?: {
1235 [key: string]: Public[];
1236 };
1237}
1238export interface MatchTitleBlock {
1239 accessory?: Accessory;
1240 alt_text?: string;
1241 api_decoration_available?: boolean;
1242 app_collaborators?: string[];
1243 app_id?: string;
1244 author_name?: string;
1245 block_id?: string;
1246 bot_user_id?: string;
1247 button_label?: string;
1248 call?: Call;
1249 call_id?: string;
1250 description?: DescriptionElement;
1251 developer_trace_id?: string;
1252 dispatch_action?: boolean;
1253 element?: Accessory;
1254 elements?: Accessory[];
1255 external_id?: string;
1256 fallback?: string;
1257 fields?: DescriptionElement[];
1258 file?: FileElement;
1259 file_id?: string;
1260 function_trigger_id?: string;
1261 hint?: DescriptionElement;
1262 image_bytes?: number;
1263 image_height?: number;
1264 image_url?: string;
1265 image_width?: number;
1266 is_animated?: boolean;
1267 is_workflow_app?: boolean;
1268 label?: DescriptionElement;
1269 optional?: boolean;
1270 owning_team_id?: string;
1271 provider_icon_url?: string;
1272 provider_name?: string;
1273 sales_home_workflow_app_type?: number;
1274 share_url?: string;
1275 slack_file?: SlackFile;
1276 source?: string;
1277 text?: DescriptionElement;
1278 thumbnail_url?: string;
1279 title?: DescriptionElement;
1280 title_url?: string;
1281 trigger_subtype?: string;
1282 trigger_type?: string;
1283 type?: BlockType;
1284 url?: string;
1285 video_url?: string;
1286 workflow_id?: string;
1287}
1288export interface Call {
1289 media_backend_type?: string;
1290 v1?: V1;
1291}
1292export interface V1 {
1293 active_participants?: Participant[];
1294 all_participants?: Participant[];
1295 app_icon_urls?: AppIconUrls;
1296 app_id?: string;
1297 channels?: string[];
1298 created_by?: string;
1299 date_end?: number;
1300 date_start?: number;
1301 desktop_app_join_url?: string;
1302 display_id?: string;
1303 has_ended?: boolean;
1304 id?: string;
1305 is_dm_call?: boolean;
1306 join_url?: string;
1307 name?: string;
1308 was_accepted?: boolean;
1309 was_missed?: boolean;
1310 was_rejected?: boolean;
1311}
1312export interface Participant {
1313 avatar_url?: string;
1314 display_name?: string;
1315 external_id?: string;
1316 slack_id?: string;
1317}
1318export interface AppIconUrls {
1319 image_1024?: string;
1320 image_128?: string;
1321 image_192?: string;
1322 image_32?: string;
1323 image_36?: string;
1324 image_48?: string;
1325 image_512?: string;
1326 image_64?: string;
1327 image_72?: string;
1328 image_96?: string;
1329 image_original?: string;
1330}
1331export interface Pagination {
1332 first?: number;
1333 last?: number;
1334 page?: number;
1335 page_count?: number;
1336 per_page?: number;
1337 total_count?: number;
1338}
1339export interface Paging {
1340 count?: number;
1341 page?: number;
1342 pages?: number;
1343 total?: number;
1344}
1345export interface Messages {
1346 matches?: MessagesMatch[];
1347 pagination?: Pagination;
1348 paging?: Paging;
1349 total?: number;
1350}
1351export interface MessagesMatch {
1352 attachments?: Attachment[];
1353 blocks?: MatchTitleBlock[];
1354 channel?: Channel;
1355 files?: FileElement[];
1356 iid?: string;
1357 is_mpim?: boolean;
1358 no_reactions?: boolean;
1359 permalink?: string;
1360 previous?: Previous;
1361 previous_2?: Previous;
1362 score?: number;
1363 team?: UserTeam;
1364 text?: string;
1365 ts?: Ts;
1366 type?: string;
1367 user?: LastEditor;
1368 username?: string;
1369}
1370export interface Channel {
1371 id?: string;
1372 is_channel?: boolean;
1373 is_ext_shared?: boolean;
1374 is_file?: boolean;
1375 is_group?: boolean;
1376 is_im?: boolean;
1377 is_mpim?: boolean;
1378 is_org_shared?: boolean;
1379 is_pending_ext_shared?: boolean;
1380 is_private?: boolean;
1381 is_shared?: boolean;
1382 name?: string;
1383 name_normalized?: string;
1384 pending_shared?: string[];
1385 user?: LastEditor;
1386}
1387export interface Previous {
1388 attachments?: Attachment[];
1389 blocks?: MatchTitleBlock[];
1390 iid?: string;
1391 permalink?: string;
1392 text?: string;
1393 ts?: Ts;
1394 type?: string;
1395 user?: LastEditor;
1396 username?: string;
1397}
1398export interface Posts {
1399 matches?: string[];
1400 total?: number;
1401}
1402//# sourceMappingURL=SearchAllResponse.d.ts.map
\No newline at end of file