1 | import type { WebAPICallResult } from '../../WebClient';
|
2 | export type FilesInfoResponse = WebAPICallResult & {
|
3 | comments?: Comment[];
|
4 | content?: string;
|
5 | content_highlight_css?: string;
|
6 | content_highlight_html?: string;
|
7 | content_highlight_html_truncated?: boolean;
|
8 | error?: string;
|
9 | file?: File;
|
10 | is_truncated?: boolean;
|
11 | needed?: string;
|
12 | ok?: boolean;
|
13 | paging?: Paging;
|
14 | provided?: string;
|
15 | };
|
16 | export interface Comment {
|
17 | channel?: string;
|
18 | comment?: string;
|
19 | created?: number;
|
20 | id?: string;
|
21 | is_intro?: boolean;
|
22 | timestamp?: number;
|
23 | user?: string;
|
24 | }
|
25 | export interface File {
|
26 | access?: string;
|
27 | alt_txt?: string;
|
28 | app_id?: string;
|
29 | app_name?: string;
|
30 | bot_id?: string;
|
31 | can_toggle_canvas_lock?: boolean;
|
32 | canvas_template_mode?: string;
|
33 | cc?: Cc[];
|
34 | channel_actions_count?: number;
|
35 | channel_actions_ts?: string;
|
36 | channels?: string[];
|
37 | comments_count?: number;
|
38 | converted_pdf?: string;
|
39 | created?: number;
|
40 | deanimate?: string;
|
41 | deanimate_gif?: string;
|
42 | display_as_bot?: boolean;
|
43 | dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
|
44 | duration_ms?: number;
|
45 | edit_link?: string;
|
46 | edit_timestamp?: number;
|
47 | editable?: boolean;
|
48 | editor?: string;
|
49 | editors?: string[];
|
50 | external_id?: string;
|
51 | external_type?: string;
|
52 | external_url?: string;
|
53 | favorites?: Favorite[];
|
54 | file_access?: string;
|
55 | filetype?: string;
|
56 | from?: Cc[];
|
57 | groups?: string[];
|
58 | has_more?: boolean;
|
59 | has_more_shares?: boolean;
|
60 | has_rich_preview?: boolean;
|
61 | headers?: Headers;
|
62 | hls?: string;
|
63 | hls_embed?: string;
|
64 | id?: string;
|
65 | image_exif_rotation?: number;
|
66 | ims?: string[];
|
67 | initial_comment?: Comment;
|
68 | is_channel_space?: boolean;
|
69 | is_external?: boolean;
|
70 | is_public?: boolean;
|
71 | is_restricted_sharing_enabled?: boolean;
|
72 | is_starred?: boolean;
|
73 | last_editor?: string;
|
74 | last_read?: number;
|
75 | lines?: number;
|
76 | lines_more?: number;
|
77 | linked_channel_id?: string;
|
78 | list_limits?: ListLimits;
|
79 | list_metadata?: ListMetadata;
|
80 | media_display_type?: string;
|
81 | media_progress?: MediaProgress;
|
82 | mimetype?: string;
|
83 | mode?: string;
|
84 | mp4?: string;
|
85 | mp4_low?: string;
|
86 | name?: string;
|
87 | non_owner_editable?: boolean;
|
88 | num_stars?: number;
|
89 | org_or_workspace_access?: string;
|
90 | original_attachment_count?: number;
|
91 | original_h?: string;
|
92 | original_w?: string;
|
93 | permalink?: string;
|
94 | permalink_public?: string;
|
95 | pinned_to?: string[];
|
96 | pjpeg?: string;
|
97 | plain_text?: string;
|
98 | pretty_type?: string;
|
99 | preview?: string;
|
100 | preview_highlight?: string;
|
101 | preview_is_truncated?: boolean;
|
102 | preview_plain_text?: string;
|
103 | private_channels_with_file_access_count?: number;
|
104 | private_file_with_access_count?: number;
|
105 | public_url_shared?: boolean;
|
106 | quip_thread_id?: string;
|
107 | reactions?: Reaction[];
|
108 | saved?: Saved;
|
109 | sent_to_self?: boolean;
|
110 | shares?: Shares;
|
111 | show_badge?: boolean;
|
112 | simplified_html?: string;
|
113 | size?: number;
|
114 | source_team?: string;
|
115 | subject?: string;
|
116 | subtype?: string;
|
117 | team_pref_version_history_enabled?: boolean;
|
118 | teams_shared_with?: any[];
|
119 | template_conversion_ts?: number;
|
120 | template_description?: string;
|
121 | template_icon?: string;
|
122 | template_name?: string;
|
123 | template_title?: string;
|
124 | thumb_1024?: string;
|
125 | thumb_1024_gif?: string;
|
126 | thumb_1024_h?: string;
|
127 | thumb_1024_w?: string;
|
128 | thumb_160?: string;
|
129 | thumb_160_gif?: string;
|
130 | thumb_160_h?: string;
|
131 | thumb_160_w?: string;
|
132 | thumb_360?: string;
|
133 | thumb_360_gif?: string;
|
134 | thumb_360_h?: string;
|
135 | thumb_360_w?: string;
|
136 | thumb_480?: string;
|
137 | thumb_480_gif?: string;
|
138 | thumb_480_h?: string;
|
139 | thumb_480_w?: string;
|
140 | thumb_64?: string;
|
141 | thumb_64_gif?: string;
|
142 | thumb_64_h?: string;
|
143 | thumb_64_w?: string;
|
144 | thumb_720?: string;
|
145 | thumb_720_gif?: string;
|
146 | thumb_720_h?: string;
|
147 | thumb_720_w?: string;
|
148 | thumb_80?: string;
|
149 | thumb_800?: string;
|
150 | thumb_800_gif?: string;
|
151 | thumb_800_h?: string;
|
152 | thumb_800_w?: string;
|
153 | thumb_80_gif?: string;
|
154 | thumb_80_h?: string;
|
155 | thumb_80_w?: string;
|
156 | thumb_960?: string;
|
157 | thumb_960_gif?: string;
|
158 | thumb_960_h?: string;
|
159 | thumb_960_w?: string;
|
160 | thumb_gif?: string;
|
161 | thumb_pdf?: string;
|
162 | thumb_pdf_h?: string;
|
163 | thumb_pdf_w?: string;
|
164 | thumb_tiny?: string;
|
165 | thumb_video?: string;
|
166 | thumb_video_h?: number;
|
167 | thumb_video_w?: number;
|
168 | timestamp?: number;
|
169 | title?: string;
|
170 | title_blocks?: TitleBlock[];
|
171 | to?: Cc[];
|
172 | transcription?: Transcription;
|
173 | update_notification?: number;
|
174 | updated?: number;
|
175 | url_private?: string;
|
176 | url_private_download?: string;
|
177 | url_static_preview?: string;
|
178 | user?: string;
|
179 | user_team?: string;
|
180 | username?: string;
|
181 | vtt?: string;
|
182 | }
|
183 | export interface Cc {
|
184 | address?: string;
|
185 | name?: string;
|
186 | original?: string;
|
187 | }
|
188 | export interface DmMpdmUsersWithFileAccess {
|
189 | access?: string;
|
190 | user_id?: string;
|
191 | }
|
192 | export interface Favorite {
|
193 | collection_id?: string;
|
194 | collection_name?: string;
|
195 | position?: string;
|
196 | }
|
197 | export interface Headers {
|
198 | date?: string;
|
199 | in_reply_to?: string;
|
200 | message_id?: string;
|
201 | reply_to?: string;
|
202 | }
|
203 | export interface ListLimits {
|
204 | column_count?: number;
|
205 | column_count_limit?: number;
|
206 | over_column_maximum?: boolean;
|
207 | over_row_maximum?: boolean;
|
208 | over_view_maximum?: boolean;
|
209 | row_count?: number;
|
210 | row_count_limit?: number;
|
211 | view_count?: number;
|
212 | view_count_limit?: number;
|
213 | }
|
214 | export interface ListMetadata {
|
215 | creation_source?: CreationSource;
|
216 | description?: string;
|
217 | icon?: string;
|
218 | icon_team_id?: string;
|
219 | icon_url?: string;
|
220 | integrations?: string[];
|
221 | is_trial?: boolean;
|
222 | schema?: Schema[];
|
223 | views?: View[];
|
224 | }
|
225 | export interface CreationSource {
|
226 | reference_id?: string;
|
227 | type?: string;
|
228 | workflow_function_id?: string;
|
229 | }
|
230 | export interface Schema {
|
231 | id?: string;
|
232 | is_primary_column?: boolean;
|
233 | key?: string;
|
234 | name?: string;
|
235 | options?: Options;
|
236 | type?: string;
|
237 | }
|
238 | export interface Options {
|
239 | canvas_id?: string;
|
240 | canvas_placeholder_mapping?: CanvasPlaceholderMapping[];
|
241 | choices?: Choice[];
|
242 | currency?: string;
|
243 | currency_format?: string;
|
244 | date_format?: string;
|
245 | default_value?: string;
|
246 | default_value_typed?: DefaultValueTyped;
|
247 | emoji?: string;
|
248 | emoji_team_id?: string;
|
249 | for_assignment?: boolean;
|
250 | format?: string;
|
251 | linked_to?: string[];
|
252 | mark_as_done_when_checked?: boolean;
|
253 | max?: number;
|
254 | notify_users?: boolean;
|
255 | precision?: number;
|
256 | rounding?: string;
|
257 | show_member_name?: boolean;
|
258 | time_format?: string;
|
259 | }
|
260 | export interface CanvasPlaceholderMapping {
|
261 | column?: string;
|
262 | variable?: string;
|
263 | }
|
264 | export interface Choice {
|
265 | color?: string;
|
266 | label?: string;
|
267 | value?: string;
|
268 | }
|
269 | export interface DefaultValueTyped {
|
270 | select?: string[];
|
271 | }
|
272 | export interface View {
|
273 | columns?: Column[];
|
274 | created_by?: string;
|
275 | date_created?: number;
|
276 | id?: string;
|
277 | is_all_items_view?: boolean;
|
278 | is_locked?: boolean;
|
279 | name?: string;
|
280 | position?: string;
|
281 | stick_column_left?: boolean;
|
282 | type?: string;
|
283 | }
|
284 | export interface Column {
|
285 | id?: string;
|
286 | key?: string;
|
287 | position?: string;
|
288 | visible?: boolean;
|
289 | width?: number;
|
290 | }
|
291 | export interface MediaProgress {
|
292 | duration_ms?: number;
|
293 | max_offset_ms?: number;
|
294 | media_watched?: boolean;
|
295 | offset_ms?: number;
|
296 | }
|
297 | export interface Reaction {
|
298 | count?: number;
|
299 | name?: string;
|
300 | url?: string;
|
301 | users?: string[];
|
302 | }
|
303 | export interface Saved {
|
304 | date_completed?: number;
|
305 | date_due?: number;
|
306 | is_archived?: boolean;
|
307 | state?: string;
|
308 | }
|
309 | export interface Shares {
|
310 | private?: {
|
311 | [key: string]: Private[];
|
312 | };
|
313 | public?: {
|
314 | [key: string]: Private[];
|
315 | };
|
316 | }
|
317 | export interface Private {
|
318 | access?: string;
|
319 | channel_name?: string;
|
320 | date_last_shared?: number;
|
321 | latest_reply?: string;
|
322 | reply_count?: number;
|
323 | reply_users?: string[];
|
324 | reply_users_count?: number;
|
325 | share_user_id?: string;
|
326 | source?: string;
|
327 | team_id?: string;
|
328 | thread_ts?: string;
|
329 | ts?: string;
|
330 | }
|
331 | export interface TitleBlock {
|
332 | accessory?: Accessory;
|
333 | alt_text?: string;
|
334 | app_collaborators?: string[];
|
335 | app_id?: string;
|
336 | author_name?: string;
|
337 | block_id?: string;
|
338 | bot_user_id?: string;
|
339 | button_label?: string;
|
340 | description?: Text | string;
|
341 | developer_trace_id?: string;
|
342 | elements?: Accessory[];
|
343 | fallback?: string;
|
344 | fields?: Text[];
|
345 | function_trigger_id?: string;
|
346 | image_bytes?: number;
|
347 | image_height?: number;
|
348 | image_url?: string;
|
349 | image_width?: number;
|
350 | is_animated?: boolean;
|
351 | is_workflow_app?: boolean;
|
352 | owning_team_id?: string;
|
353 | provider_icon_url?: string;
|
354 | provider_name?: string;
|
355 | sales_home_workflow_app_type?: number;
|
356 | share_url?: string;
|
357 | slack_file?: SlackFile;
|
358 | text?: Text;
|
359 | thumbnail_url?: string;
|
360 | title?: Text | string;
|
361 | title_url?: string;
|
362 | trigger_subtype?: string;
|
363 | trigger_type?: string;
|
364 | type?: string;
|
365 | url?: string;
|
366 | video_url?: string;
|
367 | workflow_id?: string;
|
368 | }
|
369 | export interface Accessory {
|
370 | accessibility_label?: string;
|
371 | action_id?: string;
|
372 | alt_text?: string;
|
373 | border?: number;
|
374 | confirm?: Confirm;
|
375 | default_to_current_conversation?: boolean;
|
376 | elements?: AccessoryElement[];
|
377 | fallback?: string;
|
378 | filter?: Filter;
|
379 | focus_on_load?: boolean;
|
380 | image_bytes?: number;
|
381 | image_height?: number;
|
382 | image_url?: string;
|
383 | image_width?: number;
|
384 | indent?: number;
|
385 | initial_channel?: string;
|
386 | initial_channels?: string[];
|
387 | initial_conversation?: string;
|
388 | initial_conversations?: string[];
|
389 | initial_date?: string;
|
390 | initial_date_time?: number;
|
391 | initial_option?: Option;
|
392 | initial_options?: Option[];
|
393 | initial_time?: string;
|
394 | initial_user?: string;
|
395 | initial_users?: string[];
|
396 | max_selected_items?: number;
|
397 | min_query_length?: number;
|
398 | offset?: number;
|
399 | option_groups?: OptionGroup[];
|
400 | options?: Option[];
|
401 | placeholder?: Text;
|
402 | response_url_enabled?: boolean;
|
403 | slack_file?: SlackFile;
|
404 | style?: string;
|
405 | text?: Text;
|
406 | timezone?: string;
|
407 | type?: string;
|
408 | url?: string;
|
409 | value?: string;
|
410 | workflow?: Workflow;
|
411 | }
|
412 | export interface Confirm {
|
413 | confirm?: Text;
|
414 | deny?: Text;
|
415 | style?: string;
|
416 | text?: Text;
|
417 | title?: Text;
|
418 | }
|
419 | export interface Text {
|
420 | emoji?: boolean;
|
421 | text?: string;
|
422 | type?: TextType;
|
423 | verbatim?: boolean;
|
424 | }
|
425 | export declare enum TextType {
|
426 | Mrkdwn = "mrkdwn",
|
427 | PlainText = "plain_text"
|
428 | }
|
429 | export interface AccessoryElement {
|
430 | border?: number;
|
431 | elements?: PurpleElement[];
|
432 | indent?: number;
|
433 | offset?: number;
|
434 | style?: string;
|
435 | type?: string;
|
436 | }
|
437 | export interface PurpleElement {
|
438 | channel_id?: string;
|
439 | fallback?: string;
|
440 | format?: string;
|
441 | name?: string;
|
442 | range?: string;
|
443 | skin_tone?: number;
|
444 | style?: Style;
|
445 | team_id?: string;
|
446 | text?: string;
|
447 | timestamp?: number;
|
448 | type?: ElementType;
|
449 | unicode?: string;
|
450 | unsafe?: boolean;
|
451 | url?: string;
|
452 | user_id?: string;
|
453 | usergroup_id?: string;
|
454 | value?: string;
|
455 | }
|
456 | export interface Style {
|
457 | bold?: boolean;
|
458 | client_highlight?: boolean;
|
459 | code?: boolean;
|
460 | highlight?: boolean;
|
461 | italic?: boolean;
|
462 | strike?: boolean;
|
463 | unlink?: boolean;
|
464 | }
|
465 | export declare enum ElementType {
|
466 | Broadcast = "broadcast",
|
467 | Channel = "channel",
|
468 | Color = "color",
|
469 | Date = "date",
|
470 | Emoji = "emoji",
|
471 | Link = "link",
|
472 | Team = "team",
|
473 | Text = "text",
|
474 | User = "user",
|
475 | Usergroup = "usergroup"
|
476 | }
|
477 | export interface Filter {
|
478 | exclude_bot_users?: boolean;
|
479 | exclude_external_shared_channels?: boolean;
|
480 | include?: any[];
|
481 | }
|
482 | export interface Option {
|
483 | description?: Text;
|
484 | text?: Text;
|
485 | url?: string;
|
486 | value?: string;
|
487 | }
|
488 | export interface OptionGroup {
|
489 | label?: Text;
|
490 | options?: Option[];
|
491 | }
|
492 | export interface SlackFile {
|
493 | id?: string;
|
494 | url?: string;
|
495 | }
|
496 | export interface Workflow {
|
497 | trigger?: Trigger;
|
498 | }
|
499 | export interface Trigger {
|
500 | customizable_input_parameters?: CustomizableInputParameter[];
|
501 | url?: string;
|
502 | }
|
503 | export interface CustomizableInputParameter {
|
504 | name?: string;
|
505 | value?: string;
|
506 | }
|
507 | export interface Transcription {
|
508 | locale?: string;
|
509 | preview?: Preview;
|
510 | status?: string;
|
511 | }
|
512 | export interface Preview {
|
513 | content?: string;
|
514 | has_more?: boolean;
|
515 | }
|
516 | export interface Paging {
|
517 | count?: number;
|
518 | page?: number;
|
519 | pages?: number;
|
520 | total?: number;
|
521 | }
|
522 |
|
\ | No newline at end of file |