UNPKG

13.4 kBTypeScriptView Raw
1import { WebAPICallResult } from '../../WebClient';
2export type FilesRemoteListResponse = WebAPICallResult & {
3 error?: string;
4 files?: FileElement[];
5 needed?: string;
6 ok?: boolean;
7 provided?: string;
8 response_metadata?: ResponseMetadata;
9};
10export 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}
151export interface Cc {
152 address?: string;
153 name?: string;
154 original?: string;
155}
156export interface DmMpdmUsersWithFileAccess {
157 access?: string;
158 user_id?: string;
159}
160export interface Headers {
161 date?: string;
162 in_reply_to?: string;
163 message_id?: string;
164 reply_to?: string;
165}
166export 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}
175export interface MediaProgress {
176 duration_ms?: number;
177 max_offset_ms?: number;
178 offset_ms?: number;
179}
180export interface Reaction {
181 count?: number;
182 name?: string;
183 url?: string;
184 users?: string[];
185}
186export interface Saved {
187 date_completed?: number;
188 date_due?: number;
189 is_archived?: boolean;
190 state?: string;
191}
192export interface Shares {
193 private?: {
194 [key: string]: Private[];
195 };
196 public?: {
197 [key: string]: Private[];
198 };
199}
200export 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}
211export 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}
252export 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}
294export interface Confirm {
295 confirm?: DescriptionElement;
296 deny?: DescriptionElement;
297 style?: string;
298 text?: DescriptionElement;
299 title?: DescriptionElement;
300}
301export interface DescriptionElement {
302 emoji?: boolean;
303 text?: string;
304 type?: DescriptionType;
305 verbatim?: boolean;
306}
307export declare enum DescriptionType {
308 Empty = "",
309 Mrkdwn = "mrkdwn",
310 PlainText = "plain_text"
311}
312export interface AccessoryElement {
313 border?: number;
314 elements?: PurpleElement[];
315 indent?: number;
316 offset?: number;
317 style?: string;
318 type?: FluffyType;
319}
320export 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}
336export interface Style {
337 bold?: boolean;
338 code?: boolean;
339 italic?: boolean;
340 strike?: boolean;
341}
342export 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}
355export 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}
362export interface Filter {
363 exclude_bot_users?: boolean;
364 exclude_external_shared_channels?: boolean;
365 include?: string[];
366}
367export interface Option {
368 description?: DescriptionElement;
369 text?: DescriptionElement;
370 url?: string;
371 value?: string;
372}
373export interface OptionGroup {
374 label?: DescriptionElement;
375 options?: Option[];
376}
377export interface Workflow {
378 trigger?: Trigger;
379}
380export interface Trigger {
381 customizable_input_parameters?: CustomizableInputParameter[];
382 url?: string;
383}
384export interface CustomizableInputParameter {
385 name?: string;
386 value?: string;
387}
388export interface Call {
389 media_backend_type?: string;
390 v1?: V1;
391}
392export 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}
412export interface Participant {
413 avatar_url?: string;
414 display_name?: string;
415 external_id?: string;
416 slack_id?: string;
417}
418export 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}
431export interface TitleBlockFile {
432 access?: string;
433 bot_id?: string;
434 cc?: Cc[];
435 channel_actions_count?: number;
436 channel_actions_ts?: string;
437 channels?: string[];
438 comments_count?: number;
439 converted_pdf?: string;
440 deanimate?: string;
441 deanimate_gif?: string;
442 display_as_bot?: boolean;
443 dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
444 edit_link?: string;
445 from?: Cc[];
446 groups?: string[];
447 has_more?: boolean;
448 has_more_shares?: boolean;
449 has_rich_preview?: boolean;
450 headers?: Headers;
451 image_exif_rotation?: number;
452 ims?: string[];
453 initial_comment?: InitialComment;
454 is_channel_space?: boolean;
455 is_public?: boolean;
456 is_starred?: boolean;
457 last_read?: number;
458 lines?: number;
459 lines_more?: number;
460 linked_channel_id?: string;
461 media_display_type?: string;
462 media_progress?: MediaProgress;
463 num_stars?: number;
464 org_or_workspace_access?: string;
465 original_h?: string;
466 original_w?: string;
467 permalink?: string;
468 permalink_public?: string;
469 pinned_to?: string[];
470 pjpeg?: string;
471 plain_text?: string;
472 preview?: string;
473 preview_highlight?: string;
474 preview_is_truncated?: boolean;
475 preview_plain_text?: string;
476 private_channels_with_file_access_count?: number;
477 public_url_shared?: boolean;
478 quip_thread_id?: string;
479 reactions?: Reaction[];
480 saved?: Saved;
481 sent_to_self?: boolean;
482 shares?: Shares;
483 simplified_html?: string;
484 teams_shared_with?: any[];
485 thumb_1024_gif?: string;
486 thumb_1024_h?: string;
487 thumb_1024_w?: string;
488 thumb_gif?: string;
489 thumb_pdf?: string;
490 thumb_pdf_h?: string;
491 thumb_pdf_w?: string;
492 thumb_tiny?: string;
493 thumb_video?: string;
494 title_blocks?: FluffyTitleBlock[];
495 to?: Cc[];
496}
497export interface FluffyTitleBlock {
498 accessory?: Accessory;
499 alt_text?: string;
500 app_collaborators?: string[];
501 app_id?: string;
502 author_name?: string;
503 block_id?: string;
504 bot_user_id?: string;
505 button_label?: string;
506 description?: DescriptionElement | string;
507 elements?: Accessory[];
508 fallback?: string;
509 fields?: DescriptionElement[];
510 function_trigger_id?: string;
511 image_bytes?: number;
512 image_height?: number;
513 image_url?: string;
514 image_width?: number;
515 is_workflow_app?: boolean;
516 provider_icon_url?: string;
517 provider_name?: string;
518 text?: DescriptionElement;
519 thumbnail_url?: string;
520 title?: DescriptionElement | string;
521 title_url?: string;
522 type?: string;
523 url?: string;
524 video_url?: string;
525}
526export interface Transcription {
527 locale?: string;
528 status?: string;
529}
530export interface ResponseMetadata {
531 next_cursor?: string;
532}
533//# sourceMappingURL=FilesRemoteListResponse.d.ts.map
\No newline at end of file