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