UNPKG

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