1 | import { WebAPICallResult } from '../../WebClient';
|
2 | export type FilesListResponse = WebAPICallResult & {
|
3 | error?: string;
|
4 | files?: FileElement[];
|
5 | needed?: string;
|
6 | ok?: boolean;
|
7 | paging?: Paging;
|
8 | provided?: string;
|
9 | };
|
10 | export interface FileElement {
|
11 | access?: string;
|
12 | alt_txt?: string;
|
13 | app_id?: string;
|
14 | app_name?: string;
|
15 | bot_id?: string;
|
16 | cc?: Cc[];
|
17 | channel_actions_count?: number;
|
18 | channel_actions_ts?: string;
|
19 | channels?: string[];
|
20 | comments_count?: number;
|
21 | converted_pdf?: string;
|
22 | created?: number;
|
23 | deanimate?: string;
|
24 | deanimate_gif?: string;
|
25 | display_as_bot?: boolean;
|
26 | dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
|
27 | duration_ms?: number;
|
28 | edit_link?: string;
|
29 | editable?: boolean;
|
30 | editor?: string;
|
31 | external_id?: string;
|
32 | external_type?: string;
|
33 | external_url?: string;
|
34 | file_access?: string;
|
35 | filetype?: string;
|
36 | from?: Cc[];
|
37 | groups?: string[];
|
38 | has_more?: boolean;
|
39 | has_more_shares?: boolean;
|
40 | has_rich_preview?: boolean;
|
41 | headers?: Headers;
|
42 | hls?: string;
|
43 | hls_embed?: string;
|
44 | id?: string;
|
45 | image_exif_rotation?: number;
|
46 | ims?: string[];
|
47 | initial_comment?: InitialComment;
|
48 | is_channel_space?: boolean;
|
49 | is_external?: boolean;
|
50 | is_public?: boolean;
|
51 | is_starred?: boolean;
|
52 | last_editor?: string;
|
53 | last_read?: number;
|
54 | lines?: number;
|
55 | lines_more?: number;
|
56 | linked_channel_id?: string;
|
57 | media_display_type?: string;
|
58 | media_progress?: MediaProgress;
|
59 | mimetype?: string;
|
60 | mode?: string;
|
61 | mp4?: string;
|
62 | mp4_low?: string;
|
63 | name?: string;
|
64 | non_owner_editable?: boolean;
|
65 | num_stars?: number;
|
66 | org_or_workspace_access?: string;
|
67 | original_attachment_count?: number;
|
68 | original_h?: number;
|
69 | original_w?: number;
|
70 | permalink?: string;
|
71 | permalink_public?: string;
|
72 | pinned_to?: string[];
|
73 | pjpeg?: string;
|
74 | plain_text?: string;
|
75 | pretty_type?: string;
|
76 | preview?: string;
|
77 | preview_highlight?: string;
|
78 | preview_is_truncated?: boolean;
|
79 | preview_plain_text?: string;
|
80 | private_channels_with_file_access_count?: number;
|
81 | public_url_shared?: boolean;
|
82 | quip_thread_id?: string;
|
83 | reactions?: Reaction[];
|
84 | saved?: Saved;
|
85 | sent_to_self?: boolean;
|
86 | shares?: Shares;
|
87 | simplified_html?: string;
|
88 | size?: number;
|
89 | source_team?: string;
|
90 | subject?: string;
|
91 | subtype?: string;
|
92 | teams_shared_with?: string[];
|
93 | thumb_1024?: string;
|
94 | thumb_1024_gif?: string;
|
95 | thumb_1024_h?: number;
|
96 | thumb_1024_w?: number;
|
97 | thumb_160?: string;
|
98 | thumb_160_gif?: string;
|
99 | thumb_160_h?: string;
|
100 | thumb_160_w?: string;
|
101 | thumb_360?: string;
|
102 | thumb_360_gif?: string;
|
103 | thumb_360_h?: number;
|
104 | thumb_360_w?: number;
|
105 | thumb_480?: string;
|
106 | thumb_480_gif?: string;
|
107 | thumb_480_h?: number;
|
108 | thumb_480_w?: number;
|
109 | thumb_64?: string;
|
110 | thumb_64_gif?: string;
|
111 | thumb_64_h?: string;
|
112 | thumb_64_w?: string;
|
113 | thumb_720?: string;
|
114 | thumb_720_gif?: string;
|
115 | thumb_720_h?: number;
|
116 | thumb_720_w?: number;
|
117 | thumb_80?: string;
|
118 | thumb_800?: string;
|
119 | thumb_800_gif?: string;
|
120 | thumb_800_h?: number;
|
121 | thumb_800_w?: number;
|
122 | thumb_80_gif?: string;
|
123 | thumb_80_h?: string;
|
124 | thumb_80_w?: string;
|
125 | thumb_960?: string;
|
126 | thumb_960_gif?: string;
|
127 | thumb_960_h?: number;
|
128 | thumb_960_w?: number;
|
129 | thumb_gif?: string;
|
130 | thumb_pdf?: string;
|
131 | thumb_pdf_h?: string;
|
132 | thumb_pdf_w?: string;
|
133 | thumb_tiny?: string;
|
134 | thumb_video?: string;
|
135 | thumb_video_h?: number;
|
136 | thumb_video_w?: number;
|
137 | timestamp?: number;
|
138 | title?: string;
|
139 | title_blocks?: PurpleTitleBlock[];
|
140 | to?: Cc[];
|
141 | transcription?: Transcription;
|
142 | updated?: number;
|
143 | url_private?: string;
|
144 | url_private_download?: string;
|
145 | url_static_preview?: string;
|
146 | user?: string;
|
147 | user_team?: string;
|
148 | username?: string;
|
149 | vtt?: string;
|
150 | }
|
151 | export interface Cc {
|
152 | address?: string;
|
153 | name?: string;
|
154 | original?: string;
|
155 | }
|
156 | export interface DmMpdmUsersWithFileAccess {
|
157 | access?: string;
|
158 | user_id?: string;
|
159 | }
|
160 | export interface Headers {
|
161 | date?: string;
|
162 | in_reply_to?: string;
|
163 | message_id?: string;
|
164 | reply_to?: string;
|
165 | }
|
166 | export interface InitialComment {
|
167 | channel?: string;
|
168 | comment?: string;
|
169 | created?: number;
|
170 | id?: string;
|
171 | is_intro?: boolean;
|
172 | timestamp?: number;
|
173 | user?: string;
|
174 | }
|
175 | export interface MediaProgress {
|
176 | duration_ms?: number;
|
177 | max_offset_ms?: number;
|
178 | offset_ms?: number;
|
179 | }
|
180 | export interface Reaction {
|
181 | count?: number;
|
182 | name?: string;
|
183 | url?: string;
|
184 | users?: string[];
|
185 | }
|
186 | export interface Saved {
|
187 | date_completed?: number;
|
188 | date_due?: number;
|
189 | is_archived?: boolean;
|
190 | state?: string;
|
191 | }
|
192 | export interface Shares {
|
193 | private?: {
|
194 | [key: string]: Private[];
|
195 | };
|
196 | public?: {
|
197 | [key: string]: Private[];
|
198 | };
|
199 | }
|
200 | export interface Private {
|
201 | channel_name?: string;
|
202 | latest_reply?: string;
|
203 | reply_count?: number;
|
204 | reply_users?: string[];
|
205 | reply_users_count?: number;
|
206 | share_user_id?: string;
|
207 | team_id?: string;
|
208 | thread_ts?: string;
|
209 | ts?: string;
|
210 | }
|
211 | export interface PurpleTitleBlock {
|
212 | accessory?: Accessory;
|
213 | alt_text?: string;
|
214 | api_decoration_available?: boolean;
|
215 | app_collaborators?: string[];
|
216 | app_id?: string;
|
217 | author_name?: string;
|
218 | block_id?: string;
|
219 | bot_user_id?: string;
|
220 | button_label?: string;
|
221 | call?: Call;
|
222 | call_id?: string;
|
223 | description?: DescriptionElement;
|
224 | dispatch_action?: boolean;
|
225 | element?: Accessory;
|
226 | elements?: Accessory[];
|
227 | external_id?: string;
|
228 | fallback?: string;
|
229 | fields?: DescriptionElement[];
|
230 | file?: TitleBlockFile;
|
231 | file_id?: string;
|
232 | function_trigger_id?: string;
|
233 | hint?: DescriptionElement;
|
234 | image_bytes?: number;
|
235 | image_height?: number;
|
236 | image_url?: string;
|
237 | image_width?: number;
|
238 | is_workflow_app?: boolean;
|
239 | label?: DescriptionElement;
|
240 | optional?: boolean;
|
241 | provider_icon_url?: string;
|
242 | provider_name?: string;
|
243 | source?: string;
|
244 | text?: DescriptionElement;
|
245 | thumbnail_url?: string;
|
246 | title?: DescriptionElement;
|
247 | title_url?: string;
|
248 | type?: string;
|
249 | url?: string;
|
250 | video_url?: string;
|
251 | }
|
252 | export interface Accessory {
|
253 | accessibility_label?: string;
|
254 | action_id?: string;
|
255 | alt_text?: string;
|
256 | border?: number;
|
257 | confirm?: Confirm;
|
258 | default_to_current_conversation?: boolean;
|
259 | elements?: AccessoryElement[];
|
260 | fallback?: string;
|
261 | filter?: Filter;
|
262 | focus_on_load?: boolean;
|
263 | image_bytes?: number;
|
264 | image_height?: number;
|
265 | image_url?: string;
|
266 | image_width?: number;
|
267 | indent?: number;
|
268 | initial_channel?: string;
|
269 | initial_channels?: string[];
|
270 | initial_conversation?: string;
|
271 | initial_conversations?: string[];
|
272 | initial_date?: string;
|
273 | initial_date_time?: number;
|
274 | initial_option?: Option;
|
275 | initial_options?: Option[];
|
276 | initial_time?: string;
|
277 | initial_user?: string;
|
278 | initial_users?: string[];
|
279 | max_selected_items?: number;
|
280 | min_query_length?: number;
|
281 | offset?: number;
|
282 | option_groups?: OptionGroup[];
|
283 | options?: Option[];
|
284 | placeholder?: DescriptionElement;
|
285 | response_url_enabled?: boolean;
|
286 | style?: string;
|
287 | text?: DescriptionElement;
|
288 | timezone?: string;
|
289 | type?: string;
|
290 | url?: string;
|
291 | value?: string;
|
292 | workflow?: Workflow;
|
293 | }
|
294 | export interface Confirm {
|
295 | confirm?: DescriptionElement;
|
296 | deny?: DescriptionElement;
|
297 | style?: string;
|
298 | text?: DescriptionElement;
|
299 | title?: DescriptionElement;
|
300 | }
|
301 | export interface DescriptionElement {
|
302 | emoji?: boolean;
|
303 | text?: string;
|
304 | type?: DescriptionType;
|
305 | verbatim?: boolean;
|
306 | }
|
307 | export declare enum DescriptionType {
|
308 | Empty = "",
|
309 | Mrkdwn = "mrkdwn",
|
310 | PlainText = "plain_text"
|
311 | }
|
312 | export interface AccessoryElement {
|
313 | border?: number;
|
314 | elements?: PurpleElement[];
|
315 | indent?: number;
|
316 | offset?: number;
|
317 | style?: string;
|
318 | type?: FluffyType;
|
319 | }
|
320 | export interface PurpleElement {
|
321 | channel_id?: string;
|
322 | name?: string;
|
323 | range?: string;
|
324 | skin_tone?: number;
|
325 | style?: Style;
|
326 | team_id?: string;
|
327 | text?: string;
|
328 | timestamp?: string;
|
329 | type?: PurpleType;
|
330 | unicode?: string;
|
331 | url?: string;
|
332 | user_id?: string;
|
333 | usergroup_id?: string;
|
334 | value?: string;
|
335 | }
|
336 | export interface Style {
|
337 | bold?: boolean;
|
338 | code?: boolean;
|
339 | italic?: boolean;
|
340 | strike?: boolean;
|
341 | }
|
342 | export declare enum PurpleType {
|
343 | Broadcast = "broadcast",
|
344 | Channel = "channel",
|
345 | Color = "color",
|
346 | Date = "date",
|
347 | Emoji = "emoji",
|
348 | Empty = "",
|
349 | Link = "link",
|
350 | Team = "team",
|
351 | Text = "text",
|
352 | User = "user",
|
353 | Usergroup = "usergroup"
|
354 | }
|
355 | export declare enum FluffyType {
|
356 | Empty = "",
|
357 | RichTextList = "rich_text_list",
|
358 | RichTextPreformatted = "rich_text_preformatted",
|
359 | RichTextQuote = "rich_text_quote",
|
360 | RichTextSection = "rich_text_section"
|
361 | }
|
362 | export interface Filter {
|
363 | exclude_bot_users?: boolean;
|
364 | exclude_external_shared_channels?: boolean;
|
365 | include?: string[];
|
366 | }
|
367 | export interface Option {
|
368 | description?: DescriptionElement;
|
369 | text?: DescriptionElement;
|
370 | url?: string;
|
371 | value?: string;
|
372 | }
|
373 | export interface OptionGroup {
|
374 | label?: DescriptionElement;
|
375 | options?: Option[];
|
376 | }
|
377 | export interface Workflow {
|
378 | trigger?: Trigger;
|
379 | }
|
380 | export interface Trigger {
|
381 | customizable_input_parameters?: CustomizableInputParameter[];
|
382 | url?: string;
|
383 | }
|
384 | export interface CustomizableInputParameter {
|
385 | name?: string;
|
386 | value?: string;
|
387 | }
|
388 | export interface Call {
|
389 | media_backend_type?: string;
|
390 | v1?: V1;
|
391 | }
|
392 | export interface V1 {
|
393 | active_participants?: Participant[];
|
394 | all_participants?: Participant[];
|
395 | app_icon_urls?: AppIconUrls;
|
396 | app_id?: string;
|
397 | channels?: string[];
|
398 | created_by?: string;
|
399 | date_end?: number;
|
400 | date_start?: number;
|
401 | desktop_app_join_url?: string;
|
402 | display_id?: string;
|
403 | has_ended?: boolean;
|
404 | id?: string;
|
405 | is_dm_call?: boolean;
|
406 | join_url?: string;
|
407 | name?: string;
|
408 | was_accepted?: boolean;
|
409 | was_missed?: boolean;
|
410 | was_rejected?: boolean;
|
411 | }
|
412 | export interface Participant {
|
413 | avatar_url?: string;
|
414 | display_name?: string;
|
415 | external_id?: string;
|
416 | slack_id?: string;
|
417 | }
|
418 | export interface AppIconUrls {
|
419 | image_1024?: string;
|
420 | image_128?: string;
|
421 | image_192?: string;
|
422 | image_32?: string;
|
423 | image_36?: string;
|
424 | image_48?: string;
|
425 | image_512?: string;
|
426 | image_64?: string;
|
427 | image_72?: string;
|
428 | image_96?: string;
|
429 | image_original?: string;
|
430 | }
|
431 | export interface TitleBlockFile {
|
432 | access?: string;
|
433 | alt_txt?: string;
|
434 | app_id?: string;
|
435 | app_name?: string;
|
436 | bot_id?: string;
|
437 | cc?: Cc[];
|
438 | channel_actions_count?: number;
|
439 | channel_actions_ts?: string;
|
440 | channels?: string[];
|
441 | comments_count?: number;
|
442 | converted_pdf?: string;
|
443 | created?: number;
|
444 | deanimate?: string;
|
445 | deanimate_gif?: string;
|
446 | display_as_bot?: boolean;
|
447 | dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
|
448 | duration_ms?: number;
|
449 | edit_link?: string;
|
450 | editable?: boolean;
|
451 | editor?: string;
|
452 | external_id?: string;
|
453 | external_type?: string;
|
454 | external_url?: string;
|
455 | file_access?: string;
|
456 | filetype?: string;
|
457 | from?: Cc[];
|
458 | groups?: string[];
|
459 | has_more?: boolean;
|
460 | has_more_shares?: boolean;
|
461 | has_rich_preview?: boolean;
|
462 | headers?: Headers;
|
463 | hls?: string;
|
464 | hls_embed?: string;
|
465 | id?: string;
|
466 | image_exif_rotation?: number;
|
467 | ims?: string[];
|
468 | initial_comment?: InitialComment;
|
469 | is_channel_space?: boolean;
|
470 | is_external?: boolean;
|
471 | is_public?: boolean;
|
472 | is_starred?: boolean;
|
473 | last_editor?: string;
|
474 | last_read?: number;
|
475 | lines?: number;
|
476 | lines_more?: number;
|
477 | linked_channel_id?: string;
|
478 | media_display_type?: string;
|
479 | media_progress?: MediaProgress;
|
480 | mimetype?: string;
|
481 | mode?: string;
|
482 | mp4?: string;
|
483 | mp4_low?: string;
|
484 | name?: string;
|
485 | non_owner_editable?: boolean;
|
486 | num_stars?: number;
|
487 | org_or_workspace_access?: string;
|
488 | original_attachment_count?: number;
|
489 | original_h?: string;
|
490 | original_w?: string;
|
491 | permalink?: string;
|
492 | permalink_public?: string;
|
493 | pinned_to?: string[];
|
494 | pjpeg?: string;
|
495 | plain_text?: string;
|
496 | pretty_type?: string;
|
497 | preview?: string;
|
498 | preview_highlight?: string;
|
499 | preview_is_truncated?: boolean;
|
500 | preview_plain_text?: string;
|
501 | private_channels_with_file_access_count?: number;
|
502 | public_url_shared?: boolean;
|
503 | quip_thread_id?: string;
|
504 | reactions?: Reaction[];
|
505 | saved?: Saved;
|
506 | sent_to_self?: boolean;
|
507 | shares?: Shares;
|
508 | simplified_html?: string;
|
509 | size?: number;
|
510 | source_team?: string;
|
511 | subject?: string;
|
512 | subtype?: string;
|
513 | teams_shared_with?: any[];
|
514 | thumb_1024?: string;
|
515 | thumb_1024_gif?: string;
|
516 | thumb_1024_h?: string;
|
517 | thumb_1024_w?: string;
|
518 | thumb_160?: string;
|
519 | thumb_160_gif?: string;
|
520 | thumb_160_h?: string;
|
521 | thumb_160_w?: string;
|
522 | thumb_360?: string;
|
523 | thumb_360_gif?: string;
|
524 | thumb_360_h?: string;
|
525 | thumb_360_w?: string;
|
526 | thumb_480?: string;
|
527 | thumb_480_gif?: string;
|
528 | thumb_480_h?: string;
|
529 | thumb_480_w?: string;
|
530 | thumb_64?: string;
|
531 | thumb_64_gif?: string;
|
532 | thumb_64_h?: string;
|
533 | thumb_64_w?: string;
|
534 | thumb_720?: string;
|
535 | thumb_720_gif?: string;
|
536 | thumb_720_h?: string;
|
537 | thumb_720_w?: string;
|
538 | thumb_80?: string;
|
539 | thumb_800?: string;
|
540 | thumb_800_gif?: string;
|
541 | thumb_800_h?: string;
|
542 | thumb_800_w?: string;
|
543 | thumb_80_gif?: string;
|
544 | thumb_80_h?: string;
|
545 | thumb_80_w?: string;
|
546 | thumb_960?: string;
|
547 | thumb_960_gif?: string;
|
548 | thumb_960_h?: string;
|
549 | thumb_960_w?: string;
|
550 | thumb_gif?: string;
|
551 | thumb_pdf?: string;
|
552 | thumb_pdf_h?: string;
|
553 | thumb_pdf_w?: string;
|
554 | thumb_tiny?: string;
|
555 | thumb_video?: string;
|
556 | thumb_video_h?: number;
|
557 | thumb_video_w?: number;
|
558 | timestamp?: number;
|
559 | title?: string;
|
560 | title_blocks?: FluffyTitleBlock[];
|
561 | to?: Cc[];
|
562 | transcription?: Transcription;
|
563 | updated?: number;
|
564 | url_private?: string;
|
565 | url_private_download?: string;
|
566 | url_static_preview?: string;
|
567 | user?: string;
|
568 | user_team?: string;
|
569 | username?: string;
|
570 | vtt?: string;
|
571 | }
|
572 | export interface FluffyTitleBlock {
|
573 | accessory?: Accessory;
|
574 | alt_text?: string;
|
575 | app_collaborators?: string[];
|
576 | app_id?: string;
|
577 | author_name?: string;
|
578 | block_id?: string;
|
579 | bot_user_id?: string;
|
580 | button_label?: string;
|
581 | description?: DescriptionElement | string;
|
582 | elements?: Accessory[];
|
583 | fallback?: string;
|
584 | fields?: DescriptionElement[];
|
585 | function_trigger_id?: string;
|
586 | image_bytes?: number;
|
587 | image_height?: number;
|
588 | image_url?: string;
|
589 | image_width?: number;
|
590 | is_workflow_app?: boolean;
|
591 | provider_icon_url?: string;
|
592 | provider_name?: string;
|
593 | text?: DescriptionElement;
|
594 | thumbnail_url?: string;
|
595 | title?: DescriptionElement | string;
|
596 | title_url?: string;
|
597 | type?: string;
|
598 | url?: string;
|
599 | video_url?: string;
|
600 | }
|
601 | export interface Transcription {
|
602 | locale?: string;
|
603 | status?: string;
|
604 | }
|
605 | export interface Paging {
|
606 | count?: number;
|
607 | page?: number;
|
608 | pages?: number;
|
609 | total?: number;
|
610 | }
|
611 |
|
\ | No newline at end of file |