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