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