1 | import { WebAPICallResult } from '../../WebClient';
|
2 | export type StarsListResponse = WebAPICallResult & {
|
3 | error?: string;
|
4 | items?: Item[];
|
5 | needed?: string;
|
6 | ok?: boolean;
|
7 | paging?: Paging;
|
8 | provided?: string;
|
9 | };
|
10 | export interface Item {
|
11 | channel?: string;
|
12 | comment?: Comment;
|
13 | date_create?: number;
|
14 | file?: ItemFile;
|
15 | message?: Message;
|
16 | type?: string;
|
17 | }
|
18 | export interface Comment {
|
19 | channel?: string;
|
20 | comment?: string;
|
21 | created?: number;
|
22 | id?: string;
|
23 | is_intro?: boolean;
|
24 | is_starred?: boolean;
|
25 | num_stars?: number;
|
26 | timestamp?: number;
|
27 | user?: string;
|
28 | }
|
29 | export interface ItemFile {
|
30 | alt_txt?: string;
|
31 | app_id?: string;
|
32 | app_name?: string;
|
33 | bot_id?: string;
|
34 | cc?: Cc[];
|
35 | channel_actions_count?: number;
|
36 | channel_actions_ts?: string;
|
37 | channels?: string[];
|
38 | comments_count?: number;
|
39 | converted_pdf?: string;
|
40 | created?: number;
|
41 | deanimate?: string;
|
42 | deanimate_gif?: string;
|
43 | display_as_bot?: boolean;
|
44 | duration_ms?: number;
|
45 | edit_link?: string;
|
46 | editable?: boolean;
|
47 | editor?: string;
|
48 | external_id?: string;
|
49 | external_type?: string;
|
50 | external_url?: string;
|
51 | file_access?: string;
|
52 | filetype?: string;
|
53 | from?: Cc[];
|
54 | groups?: string[];
|
55 | has_more?: boolean;
|
56 | has_more_shares?: boolean;
|
57 | has_rich_preview?: boolean;
|
58 | headers?: Headers;
|
59 | hls?: string;
|
60 | hls_embed?: string;
|
61 | id?: string;
|
62 | image_exif_rotation?: number;
|
63 | ims?: string[];
|
64 | initial_comment?: Comment;
|
65 | is_external?: boolean;
|
66 | is_public?: boolean;
|
67 | is_starred?: boolean;
|
68 | last_editor?: string;
|
69 | lines?: number;
|
70 | lines_more?: number;
|
71 | media_display_type?: string;
|
72 | media_progress?: MediaProgress;
|
73 | mimetype?: string;
|
74 | mode?: string;
|
75 | mp4?: string;
|
76 | mp4_low?: string;
|
77 | name?: string;
|
78 | non_owner_editable?: boolean;
|
79 | num_stars?: number;
|
80 | original_attachment_count?: number;
|
81 | original_h?: string;
|
82 | original_w?: string;
|
83 | permalink?: string;
|
84 | permalink_public?: string;
|
85 | pinned_to?: string[];
|
86 | pjpeg?: string;
|
87 | plain_text?: string;
|
88 | pretty_type?: string;
|
89 | preview?: string;
|
90 | preview_highlight?: string;
|
91 | preview_is_truncated?: boolean;
|
92 | preview_plain_text?: string;
|
93 | public_url_shared?: boolean;
|
94 | reactions?: Reaction[];
|
95 | saved?: Saved;
|
96 | sent_to_self?: boolean;
|
97 | shares?: Shares;
|
98 | simplified_html?: string;
|
99 | size?: number;
|
100 | source_team?: string;
|
101 | subject?: string;
|
102 | subtype?: string;
|
103 | thumb_1024?: string;
|
104 | thumb_1024_gif?: string;
|
105 | thumb_1024_h?: string;
|
106 | thumb_1024_w?: string;
|
107 | thumb_160?: string;
|
108 | thumb_160_gif?: string;
|
109 | thumb_160_h?: string;
|
110 | thumb_160_w?: string;
|
111 | thumb_360?: string;
|
112 | thumb_360_gif?: string;
|
113 | thumb_360_h?: string;
|
114 | thumb_360_w?: string;
|
115 | thumb_480?: string;
|
116 | thumb_480_gif?: string;
|
117 | thumb_480_h?: string;
|
118 | thumb_480_w?: string;
|
119 | thumb_64?: string;
|
120 | thumb_64_gif?: string;
|
121 | thumb_64_h?: string;
|
122 | thumb_64_w?: string;
|
123 | thumb_720?: string;
|
124 | thumb_720_gif?: string;
|
125 | thumb_720_h?: string;
|
126 | thumb_720_w?: string;
|
127 | thumb_80?: string;
|
128 | thumb_800?: string;
|
129 | thumb_800_gif?: string;
|
130 | thumb_800_h?: string;
|
131 | thumb_800_w?: string;
|
132 | thumb_80_gif?: string;
|
133 | thumb_80_h?: string;
|
134 | thumb_80_w?: string;
|
135 | thumb_960?: string;
|
136 | thumb_960_gif?: string;
|
137 | thumb_960_h?: string;
|
138 | thumb_960_w?: string;
|
139 | thumb_gif?: string;
|
140 | thumb_pdf?: string;
|
141 | thumb_pdf_h?: string;
|
142 | thumb_pdf_w?: string;
|
143 | thumb_tiny?: string;
|
144 | thumb_video?: string;
|
145 | thumb_video_h?: number;
|
146 | thumb_video_w?: number;
|
147 | timestamp?: number;
|
148 | title?: string;
|
149 | to?: Cc[];
|
150 | transcription?: Transcription;
|
151 | updated?: number;
|
152 | url_private?: string;
|
153 | url_private_download?: string;
|
154 | user?: string;
|
155 | user_team?: string;
|
156 | username?: string;
|
157 | vtt?: string;
|
158 | }
|
159 | export interface Cc {
|
160 | address?: string;
|
161 | name?: string;
|
162 | original?: string;
|
163 | }
|
164 | export interface Headers {
|
165 | date?: string;
|
166 | in_reply_to?: string;
|
167 | message_id?: string;
|
168 | reply_to?: string;
|
169 | }
|
170 | export interface MediaProgress {
|
171 | duration_ms?: number;
|
172 | max_offset_ms?: number;
|
173 | offset_ms?: number;
|
174 | }
|
175 | export interface Reaction {
|
176 | count?: number;
|
177 | name?: string;
|
178 | url?: string;
|
179 | users?: string[];
|
180 | }
|
181 | export interface Saved {
|
182 | date_completed?: number;
|
183 | date_due?: number;
|
184 | is_archived?: boolean;
|
185 | state?: string;
|
186 | }
|
187 | export interface Shares {
|
188 | private?: {
|
189 | [key: string]: Private[];
|
190 | };
|
191 | public?: {
|
192 | [key: string]: Private[];
|
193 | };
|
194 | }
|
195 | export interface Private {
|
196 | channel_name?: string;
|
197 | latest_reply?: string;
|
198 | reply_count?: number;
|
199 | reply_users?: string[];
|
200 | reply_users_count?: number;
|
201 | share_user_id?: string;
|
202 | team_id?: string;
|
203 | thread_ts?: string;
|
204 | ts?: string;
|
205 | }
|
206 | export interface Transcription {
|
207 | locale?: string;
|
208 | status?: string;
|
209 | }
|
210 | export interface Message {
|
211 | attachments?: Attachment[];
|
212 | blocks?: Block[];
|
213 | bot_id?: string;
|
214 | bot_profile?: BotProfile;
|
215 | client_msg_id?: string;
|
216 | display_as_bot?: boolean;
|
217 | edited?: Edited;
|
218 | files?: FileElement[];
|
219 | inviter?: string;
|
220 | is_locked?: boolean;
|
221 | is_starred?: boolean;
|
222 | last_read?: string;
|
223 | latest_reply?: string;
|
224 | permalink?: string;
|
225 | reactions?: Reaction[];
|
226 | reply_count?: number;
|
227 | reply_users?: string[];
|
228 | reply_users_count?: number;
|
229 | subscribed?: boolean;
|
230 | subtype?: string;
|
231 | team?: string;
|
232 | text?: string;
|
233 | thread_ts?: string;
|
234 | ts?: string;
|
235 | type?: string;
|
236 | upload?: boolean;
|
237 | user?: string;
|
238 | username?: string;
|
239 | }
|
240 | export interface Attachment {
|
241 | actions?: Action[];
|
242 | app_id?: string;
|
243 | app_unfurl_url?: string;
|
244 | author_icon?: string;
|
245 | author_id?: string;
|
246 | author_link?: string;
|
247 | author_name?: string;
|
248 | author_subname?: string;
|
249 | blocks?: Block[];
|
250 | bot_id?: string;
|
251 | callback_id?: string;
|
252 | channel_id?: string;
|
253 | channel_name?: string;
|
254 | channel_team?: string;
|
255 | color?: string;
|
256 | fallback?: string;
|
257 | fields?: Field[];
|
258 | filename?: string;
|
259 | files?: FileElement[];
|
260 | footer?: string;
|
261 | footer_icon?: string;
|
262 | from_url?: string;
|
263 | id?: number;
|
264 | image_bytes?: number;
|
265 | image_height?: number;
|
266 | image_url?: string;
|
267 | image_width?: number;
|
268 | indent?: boolean;
|
269 | is_app_unfurl?: boolean;
|
270 | is_msg_unfurl?: boolean;
|
271 | is_reply_unfurl?: boolean;
|
272 | is_thread_root_unfurl?: boolean;
|
273 | metadata?: Metadata;
|
274 | mimetype?: string;
|
275 | mrkdwn_in?: string[];
|
276 | msg_subtype?: string;
|
277 | original_url?: string;
|
278 | pretext?: string;
|
279 | preview?: Preview;
|
280 | service_icon?: string;
|
281 | service_name?: string;
|
282 | service_url?: string;
|
283 | size?: number;
|
284 | text?: string;
|
285 | thumb_height?: number;
|
286 | thumb_url?: string;
|
287 | thumb_width?: number;
|
288 | title?: string;
|
289 | title_link?: string;
|
290 | ts?: string;
|
291 | url?: string;
|
292 | video_html?: string;
|
293 | video_html_height?: number;
|
294 | video_html_width?: number;
|
295 | video_url?: string;
|
296 | }
|
297 | export interface Action {
|
298 | confirm?: ActionConfirm;
|
299 | data_source?: string;
|
300 | id?: string;
|
301 | min_query_length?: number;
|
302 | name?: string;
|
303 | option_groups?: ActionOptionGroup[];
|
304 | options?: SelectedOptionElement[];
|
305 | selected_options?: SelectedOptionElement[];
|
306 | style?: string;
|
307 | text?: string;
|
308 | type?: string;
|
309 | url?: string;
|
310 | value?: string;
|
311 | }
|
312 | export interface ActionConfirm {
|
313 | dismiss_text?: string;
|
314 | ok_text?: string;
|
315 | text?: string;
|
316 | title?: string;
|
317 | }
|
318 | export interface ActionOptionGroup {
|
319 | options?: SelectedOptionElement[];
|
320 | text?: string;
|
321 | }
|
322 | export interface SelectedOptionElement {
|
323 | text?: string;
|
324 | value?: string;
|
325 | }
|
326 | export interface Block {
|
327 | accessory?: Accessory;
|
328 | alt_text?: string;
|
329 | api_decoration_available?: boolean;
|
330 | app_collaborators?: string[];
|
331 | app_id?: string;
|
332 | author_name?: string;
|
333 | block_id?: string;
|
334 | bot_user_id?: string;
|
335 | button_label?: string;
|
336 | call?: Call;
|
337 | call_id?: string;
|
338 | description?: Description;
|
339 | dispatch_action?: boolean;
|
340 | element?: Accessory;
|
341 | elements?: Accessory[];
|
342 | external_id?: string;
|
343 | fallback?: string;
|
344 | fields?: Description[];
|
345 | file?: ItemFile;
|
346 | file_id?: string;
|
347 | function_trigger_id?: string;
|
348 | hint?: Description;
|
349 | image_bytes?: number;
|
350 | image_height?: number;
|
351 | image_url?: string;
|
352 | image_width?: number;
|
353 | is_workflow_app?: boolean;
|
354 | label?: Description;
|
355 | optional?: boolean;
|
356 | provider_icon_url?: string;
|
357 | provider_name?: string;
|
358 | source?: string;
|
359 | text?: Description;
|
360 | thumbnail_url?: string;
|
361 | title?: Description;
|
362 | title_url?: string;
|
363 | type?: string;
|
364 | url?: string;
|
365 | video_url?: string;
|
366 | }
|
367 | export interface Accessory {
|
368 | accessibility_label?: string;
|
369 | action_id?: string;
|
370 | alt_text?: string;
|
371 | border?: number;
|
372 | confirm?: AccessoryConfirm;
|
373 | default_to_current_conversation?: boolean;
|
374 | elements?: AccessoryElement[];
|
375 | fallback?: string;
|
376 | filter?: Filter;
|
377 | focus_on_load?: boolean;
|
378 | image_bytes?: number;
|
379 | image_height?: number;
|
380 | image_url?: string;
|
381 | image_width?: number;
|
382 | indent?: number;
|
383 | initial_channel?: string;
|
384 | initial_channels?: string[];
|
385 | initial_conversation?: string;
|
386 | initial_conversations?: string[];
|
387 | initial_date?: string;
|
388 | initial_date_time?: number;
|
389 | initial_option?: InitialOptionElement;
|
390 | initial_options?: InitialOptionElement[];
|
391 | initial_time?: string;
|
392 | initial_user?: string;
|
393 | initial_users?: string[];
|
394 | max_selected_items?: number;
|
395 | min_query_length?: number;
|
396 | offset?: number;
|
397 | option_groups?: AccessoryOptionGroup[];
|
398 | options?: InitialOptionElement[];
|
399 | placeholder?: Description;
|
400 | response_url_enabled?: boolean;
|
401 | style?: string;
|
402 | text?: Description;
|
403 | timezone?: string;
|
404 | type?: string;
|
405 | url?: string;
|
406 | value?: string;
|
407 | }
|
408 | export interface AccessoryConfirm {
|
409 | confirm?: Description;
|
410 | deny?: Description;
|
411 | style?: string;
|
412 | text?: Description;
|
413 | title?: Description;
|
414 | }
|
415 | export interface Description {
|
416 | emoji?: boolean;
|
417 | text?: string;
|
418 | type?: string;
|
419 | verbatim?: boolean;
|
420 | }
|
421 | export interface AccessoryElement {
|
422 | border?: number;
|
423 | elements?: PurpleElement[];
|
424 | indent?: number;
|
425 | offset?: number;
|
426 | style?: string;
|
427 | type?: string;
|
428 | }
|
429 | export interface PurpleElement {
|
430 | channel_id?: string;
|
431 | name?: string;
|
432 | range?: string;
|
433 | skin_tone?: number;
|
434 | style?: Style;
|
435 | team_id?: string;
|
436 | text?: string;
|
437 | timestamp?: string;
|
438 | type?: string;
|
439 | unicode?: string;
|
440 | url?: string;
|
441 | user_id?: string;
|
442 | usergroup_id?: string;
|
443 | value?: string;
|
444 | }
|
445 | export interface Style {
|
446 | bold?: boolean;
|
447 | code?: boolean;
|
448 | italic?: boolean;
|
449 | strike?: boolean;
|
450 | }
|
451 | export interface Filter {
|
452 | exclude_bot_users?: boolean;
|
453 | exclude_external_shared_channels?: boolean;
|
454 | include?: string[];
|
455 | }
|
456 | export interface InitialOptionElement {
|
457 | description?: Description;
|
458 | text?: Description;
|
459 | url?: string;
|
460 | value?: string;
|
461 | }
|
462 | export interface AccessoryOptionGroup {
|
463 | label?: Description;
|
464 | options?: InitialOptionElement[];
|
465 | }
|
466 | export interface Call {
|
467 | media_backend_type?: string;
|
468 | v1?: V1;
|
469 | }
|
470 | export interface V1 {
|
471 | active_participants?: Participant[];
|
472 | all_participants?: Participant[];
|
473 | app_icon_urls?: AppIconUrls;
|
474 | app_id?: string;
|
475 | channels?: string[];
|
476 | created_by?: string;
|
477 | date_end?: number;
|
478 | date_start?: number;
|
479 | desktop_app_join_url?: string;
|
480 | display_id?: string;
|
481 | has_ended?: boolean;
|
482 | id?: string;
|
483 | is_dm_call?: boolean;
|
484 | join_url?: string;
|
485 | name?: string;
|
486 | was_accepted?: boolean;
|
487 | was_missed?: boolean;
|
488 | was_rejected?: boolean;
|
489 | }
|
490 | export interface Participant {
|
491 | avatar_url?: string;
|
492 | display_name?: string;
|
493 | external_id?: string;
|
494 | slack_id?: string;
|
495 | }
|
496 | export interface AppIconUrls {
|
497 | image_1024?: string;
|
498 | image_128?: string;
|
499 | image_192?: string;
|
500 | image_32?: string;
|
501 | image_36?: string;
|
502 | image_48?: string;
|
503 | image_512?: string;
|
504 | image_64?: string;
|
505 | image_72?: string;
|
506 | image_96?: string;
|
507 | image_original?: string;
|
508 | }
|
509 | export interface Field {
|
510 | short?: boolean;
|
511 | title?: string;
|
512 | value?: string;
|
513 | }
|
514 | export interface FileElement {
|
515 | alt_txt?: string;
|
516 | app_id?: string;
|
517 | app_name?: string;
|
518 | bot_id?: string;
|
519 | cc?: Cc[];
|
520 | channel_actions_count?: number;
|
521 | channel_actions_ts?: string;
|
522 | channels?: string[];
|
523 | comments_count?: number;
|
524 | converted_pdf?: string;
|
525 | created?: number;
|
526 | deanimate?: string;
|
527 | deanimate_gif?: string;
|
528 | display_as_bot?: boolean;
|
529 | duration_ms?: number;
|
530 | edit_link?: string;
|
531 | editable?: boolean;
|
532 | editor?: string;
|
533 | external_id?: string;
|
534 | external_type?: string;
|
535 | external_url?: string;
|
536 | file_access?: string;
|
537 | filetype?: string;
|
538 | from?: Cc[];
|
539 | groups?: string[];
|
540 | has_more?: boolean;
|
541 | has_more_shares?: boolean;
|
542 | has_rich_preview?: boolean;
|
543 | headers?: Headers;
|
544 | hls?: string;
|
545 | hls_embed?: string;
|
546 | id?: string;
|
547 | image_exif_rotation?: number;
|
548 | ims?: string[];
|
549 | initial_comment?: Comment;
|
550 | is_external?: boolean;
|
551 | is_public?: boolean;
|
552 | is_starred?: boolean;
|
553 | last_editor?: string;
|
554 | lines?: number;
|
555 | lines_more?: number;
|
556 | media_display_type?: string;
|
557 | media_progress?: MediaProgress;
|
558 | mimetype?: string;
|
559 | mode?: string;
|
560 | mp4?: string;
|
561 | mp4_low?: string;
|
562 | name?: string;
|
563 | non_owner_editable?: boolean;
|
564 | num_stars?: number;
|
565 | original_attachment_count?: number;
|
566 | original_h?: string;
|
567 | original_w?: string;
|
568 | permalink?: string;
|
569 | permalink_public?: string;
|
570 | pinned_to?: string[];
|
571 | pjpeg?: string;
|
572 | plain_text?: string;
|
573 | pretty_type?: string;
|
574 | preview?: string;
|
575 | preview_highlight?: string;
|
576 | preview_is_truncated?: boolean;
|
577 | preview_plain_text?: string;
|
578 | public_url_shared?: boolean;
|
579 | reactions?: Reaction[];
|
580 | saved?: Saved;
|
581 | sent_to_self?: boolean;
|
582 | shares?: Shares;
|
583 | simplified_html?: string;
|
584 | size?: number;
|
585 | source_team?: string;
|
586 | subject?: string;
|
587 | subtype?: string;
|
588 | thumb_1024?: string;
|
589 | thumb_1024_gif?: string;
|
590 | thumb_1024_h?: string;
|
591 | thumb_1024_w?: string;
|
592 | thumb_160?: string;
|
593 | thumb_160_gif?: string;
|
594 | thumb_160_h?: string;
|
595 | thumb_160_w?: string;
|
596 | thumb_360?: string;
|
597 | thumb_360_gif?: string;
|
598 | thumb_360_h?: string;
|
599 | thumb_360_w?: string;
|
600 | thumb_480?: string;
|
601 | thumb_480_gif?: string;
|
602 | thumb_480_h?: string;
|
603 | thumb_480_w?: string;
|
604 | thumb_64?: string;
|
605 | thumb_64_gif?: string;
|
606 | thumb_64_h?: string;
|
607 | thumb_64_w?: string;
|
608 | thumb_720?: string;
|
609 | thumb_720_gif?: string;
|
610 | thumb_720_h?: string;
|
611 | thumb_720_w?: string;
|
612 | thumb_80?: string;
|
613 | thumb_800?: string;
|
614 | thumb_800_gif?: string;
|
615 | thumb_800_h?: string;
|
616 | thumb_800_w?: string;
|
617 | thumb_80_gif?: string;
|
618 | thumb_80_h?: string;
|
619 | thumb_80_w?: string;
|
620 | thumb_960?: string;
|
621 | thumb_960_gif?: string;
|
622 | thumb_960_h?: string;
|
623 | thumb_960_w?: string;
|
624 | thumb_gif?: string;
|
625 | thumb_pdf?: string;
|
626 | thumb_pdf_h?: string;
|
627 | thumb_pdf_w?: string;
|
628 | thumb_tiny?: string;
|
629 | thumb_video?: string;
|
630 | thumb_video_h?: number;
|
631 | thumb_video_w?: number;
|
632 | timestamp?: number;
|
633 | title?: string;
|
634 | to?: Cc[];
|
635 | transcription?: Transcription;
|
636 | updated?: number;
|
637 | url_private?: string;
|
638 | url_private_download?: string;
|
639 | user?: string;
|
640 | user_team?: string;
|
641 | username?: string;
|
642 | vtt?: string;
|
643 | }
|
644 | export interface Metadata {
|
645 | extension?: string;
|
646 | format?: string;
|
647 | original_h?: number;
|
648 | original_w?: number;
|
649 | rotation?: number;
|
650 | thumb_160?: boolean;
|
651 | thumb_360_h?: number;
|
652 | thumb_360_w?: number;
|
653 | thumb_64?: boolean;
|
654 | thumb_80?: boolean;
|
655 | thumb_tiny?: string;
|
656 | }
|
657 | export interface Preview {
|
658 | can_remove?: boolean;
|
659 | icon_url?: string;
|
660 | subtitle?: Description;
|
661 | title?: Description;
|
662 | type?: string;
|
663 | }
|
664 | export interface BotProfile {
|
665 | app_id?: string;
|
666 | deleted?: boolean;
|
667 | icons?: Icons;
|
668 | id?: string;
|
669 | name?: string;
|
670 | team_id?: string;
|
671 | updated?: number;
|
672 | }
|
673 | export interface Icons {
|
674 | image_36?: string;
|
675 | image_48?: string;
|
676 | image_72?: string;
|
677 | }
|
678 | export interface Edited {
|
679 | ts?: string;
|
680 | user?: string;
|
681 | }
|
682 | export interface Paging {
|
683 | page?: number;
|
684 | pages?: number;
|
685 | per_page?: number;
|
686 | spill?: number;
|
687 | total?: number;
|
688 | }
|
689 |
|
\ | No newline at end of file |