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