1 | import { 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 | blocks?: Block[];
|
30 | bot_id?: string;
|
31 | bot_profile?: BotProfile;
|
32 | client_msg_id?: string;
|
33 | subtype?: string;
|
34 | team?: string;
|
35 | text?: string;
|
36 | ts?: string;
|
37 | type?: string;
|
38 | user?: string;
|
39 | }
|
40 | export interface Block {
|
41 | accessory?: Accessory;
|
42 | alt_text?: string;
|
43 | api_decoration_available?: boolean;
|
44 | app_collaborators?: string[];
|
45 | app_id?: string;
|
46 | author_name?: string;
|
47 | block_id?: string;
|
48 | bot_user_id?: string;
|
49 | button_label?: string;
|
50 | call?: Call;
|
51 | call_id?: string;
|
52 | description?: Description;
|
53 | developer_trace_id?: string;
|
54 | dispatch_action?: boolean;
|
55 | element?: Accessory;
|
56 | elements?: Accessory[];
|
57 | external_id?: string;
|
58 | fallback?: string;
|
59 | fields?: Description[];
|
60 | file?: File;
|
61 | file_id?: string;
|
62 | function_trigger_id?: string;
|
63 | hint?: Description;
|
64 | image_bytes?: number;
|
65 | image_height?: number;
|
66 | image_url?: string;
|
67 | image_width?: number;
|
68 | is_animated?: boolean;
|
69 | is_workflow_app?: boolean;
|
70 | label?: Description;
|
71 | optional?: boolean;
|
72 | owning_team_id?: string;
|
73 | provider_icon_url?: string;
|
74 | provider_name?: string;
|
75 | sales_home_workflow_app_type?: number;
|
76 | share_url?: string;
|
77 | slack_file?: SlackFile;
|
78 | source?: string;
|
79 | text?: Description;
|
80 | thumbnail_url?: string;
|
81 | title?: Description;
|
82 | title_url?: string;
|
83 | trigger_subtype?: string;
|
84 | trigger_type?: string;
|
85 | type?: string;
|
86 | url?: string;
|
87 | video_url?: string;
|
88 | workflow_id?: string;
|
89 | }
|
90 | export interface Accessory {
|
91 | accessibility_label?: string;
|
92 | action_id?: string;
|
93 | alt_text?: string;
|
94 | border?: number;
|
95 | confirm?: Confirm;
|
96 | default_to_current_conversation?: boolean;
|
97 | elements?: AccessoryElement[];
|
98 | fallback?: string;
|
99 | filter?: Filter;
|
100 | focus_on_load?: boolean;
|
101 | image_bytes?: number;
|
102 | image_height?: number;
|
103 | image_url?: string;
|
104 | image_width?: number;
|
105 | indent?: number;
|
106 | initial_channel?: string;
|
107 | initial_channels?: string[];
|
108 | initial_conversation?: string;
|
109 | initial_conversations?: string[];
|
110 | initial_date?: string;
|
111 | initial_date_time?: number;
|
112 | initial_option?: Option;
|
113 | initial_options?: Option[];
|
114 | initial_time?: string;
|
115 | initial_user?: string;
|
116 | initial_users?: string[];
|
117 | max_selected_items?: number;
|
118 | min_query_length?: number;
|
119 | offset?: number;
|
120 | option_groups?: OptionGroup[];
|
121 | options?: Option[];
|
122 | placeholder?: Description;
|
123 | response_url_enabled?: boolean;
|
124 | slack_file?: SlackFile;
|
125 | style?: string;
|
126 | text?: Description;
|
127 | timezone?: string;
|
128 | type?: string;
|
129 | url?: string;
|
130 | value?: string;
|
131 | workflow?: Workflow;
|
132 | }
|
133 | export interface Confirm {
|
134 | confirm?: Description;
|
135 | deny?: Description;
|
136 | style?: string;
|
137 | text?: Description;
|
138 | title?: Description;
|
139 | }
|
140 | export interface Description {
|
141 | emoji?: boolean;
|
142 | text?: string;
|
143 | type?: DescriptionType;
|
144 | verbatim?: boolean;
|
145 | }
|
146 | export declare enum DescriptionType {
|
147 | Mrkdwn = "mrkdwn",
|
148 | PlainText = "plain_text"
|
149 | }
|
150 | export interface AccessoryElement {
|
151 | border?: number;
|
152 | elements?: PurpleElement[];
|
153 | indent?: number;
|
154 | offset?: number;
|
155 | style?: string;
|
156 | type?: string;
|
157 | }
|
158 | export interface PurpleElement {
|
159 | channel_id?: string;
|
160 | name?: string;
|
161 | range?: string;
|
162 | skin_tone?: number;
|
163 | style?: Style;
|
164 | team_id?: string;
|
165 | text?: string;
|
166 | timestamp?: string;
|
167 | type?: ElementType;
|
168 | unicode?: string;
|
169 | url?: string;
|
170 | user_id?: string;
|
171 | usergroup_id?: string;
|
172 | value?: string;
|
173 | }
|
174 | export interface Style {
|
175 | bold?: boolean;
|
176 | code?: boolean;
|
177 | italic?: boolean;
|
178 | strike?: boolean;
|
179 | }
|
180 | export declare enum ElementType {
|
181 | Broadcast = "broadcast",
|
182 | Channel = "channel",
|
183 | Color = "color",
|
184 | Date = "date",
|
185 | Emoji = "emoji",
|
186 | Link = "link",
|
187 | Team = "team",
|
188 | Text = "text",
|
189 | User = "user",
|
190 | Usergroup = "usergroup"
|
191 | }
|
192 | export interface Filter {
|
193 | exclude_bot_users?: boolean;
|
194 | exclude_external_shared_channels?: boolean;
|
195 | include?: any[];
|
196 | }
|
197 | export interface Option {
|
198 | description?: Description;
|
199 | text?: Description;
|
200 | url?: string;
|
201 | value?: string;
|
202 | }
|
203 | export interface OptionGroup {
|
204 | label?: Description;
|
205 | options?: Option[];
|
206 | }
|
207 | export interface SlackFile {
|
208 | id?: string;
|
209 | url?: string;
|
210 | }
|
211 | export interface Workflow {
|
212 | trigger?: Trigger;
|
213 | }
|
214 | export interface Trigger {
|
215 | customizable_input_parameters?: CustomizableInputParameter[];
|
216 | url?: string;
|
217 | }
|
218 | export interface CustomizableInputParameter {
|
219 | name?: string;
|
220 | value?: string;
|
221 | }
|
222 | export interface Call {
|
223 | media_backend_type?: string;
|
224 | v1?: V1;
|
225 | }
|
226 | export interface V1 {
|
227 | active_participants?: Participant[];
|
228 | all_participants?: Participant[];
|
229 | app_icon_urls?: AppIconUrls;
|
230 | app_id?: string;
|
231 | channels?: string[];
|
232 | created_by?: string;
|
233 | date_end?: number;
|
234 | date_start?: number;
|
235 | desktop_app_join_url?: string;
|
236 | display_id?: string;
|
237 | has_ended?: boolean;
|
238 | id?: string;
|
239 | is_dm_call?: boolean;
|
240 | join_url?: string;
|
241 | name?: string;
|
242 | was_accepted?: boolean;
|
243 | was_missed?: boolean;
|
244 | was_rejected?: boolean;
|
245 | }
|
246 | export interface Participant {
|
247 | avatar_url?: string;
|
248 | display_name?: string;
|
249 | external_id?: string;
|
250 | slack_id?: string;
|
251 | }
|
252 | export interface AppIconUrls {
|
253 | image_1024?: string;
|
254 | image_128?: string;
|
255 | image_192?: string;
|
256 | image_32?: string;
|
257 | image_36?: string;
|
258 | image_48?: string;
|
259 | image_512?: string;
|
260 | image_64?: string;
|
261 | image_72?: string;
|
262 | image_96?: string;
|
263 | image_original?: string;
|
264 | }
|
265 | export interface File {
|
266 | access?: string;
|
267 | alt_txt?: string;
|
268 | app_id?: string;
|
269 | app_name?: string;
|
270 | attachments?: any[];
|
271 | blocks?: any[];
|
272 | bot_id?: string;
|
273 | canvas_template_mode?: string;
|
274 | cc?: any[];
|
275 | channel_actions_count?: number;
|
276 | channel_actions_ts?: string;
|
277 | channels?: any[];
|
278 | comments_count?: number;
|
279 | converted_pdf?: string;
|
280 | created?: number;
|
281 | deanimate?: string;
|
282 | deanimate_gif?: string;
|
283 | display_as_bot?: boolean;
|
284 | dm_mpdm_users_with_file_access?: any[];
|
285 | duration_ms?: number;
|
286 | edit_link?: string;
|
287 | edit_timestamp?: number;
|
288 | editable?: boolean;
|
289 | editor?: string;
|
290 | editors?: any[];
|
291 | external_id?: string;
|
292 | external_type?: string;
|
293 | external_url?: string;
|
294 | file_access?: string;
|
295 | filetype?: string;
|
296 | from?: any[];
|
297 | groups?: any[];
|
298 | has_more?: boolean;
|
299 | has_more_shares?: boolean;
|
300 | has_rich_preview?: boolean;
|
301 | headers?: Headers;
|
302 | hls?: string;
|
303 | hls_embed?: string;
|
304 | id?: string;
|
305 | image_exif_rotation?: number;
|
306 | ims?: any[];
|
307 | initial_comment?: InitialComment;
|
308 | is_channel_space?: boolean;
|
309 | is_external?: boolean;
|
310 | is_public?: boolean;
|
311 | is_starred?: boolean;
|
312 | last_editor?: string;
|
313 | last_read?: number;
|
314 | lines?: number;
|
315 | lines_more?: number;
|
316 | linked_channel_id?: string;
|
317 | media_display_type?: string;
|
318 | media_progress?: MediaProgress;
|
319 | mimetype?: string;
|
320 | mode?: string;
|
321 | mp4?: string;
|
322 | mp4_low?: string;
|
323 | name?: string;
|
324 | non_owner_editable?: boolean;
|
325 | num_stars?: number;
|
326 | org_or_workspace_access?: string;
|
327 | original_attachment_count?: number;
|
328 | original_h?: string;
|
329 | original_w?: string;
|
330 | permalink?: string;
|
331 | permalink_public?: string;
|
332 | pinned_to?: any[];
|
333 | pjpeg?: string;
|
334 | plain_text?: string;
|
335 | pretty_type?: string;
|
336 | preview?: string;
|
337 | preview_highlight?: string;
|
338 | preview_is_truncated?: boolean;
|
339 | preview_plain_text?: string;
|
340 | private_channels_with_file_access_count?: number;
|
341 | public_url_shared?: boolean;
|
342 | quip_thread_id?: string;
|
343 | reactions?: any[];
|
344 | saved?: Saved;
|
345 | sent_to_self?: boolean;
|
346 | shares?: Shares;
|
347 | show_badge?: boolean;
|
348 | simplified_html?: string;
|
349 | size?: number;
|
350 | source_team?: string;
|
351 | subject?: string;
|
352 | subtype?: string;
|
353 | team_pref_version_history_enabled?: boolean;
|
354 | teams_shared_with?: any[];
|
355 | template_conversion_ts?: number;
|
356 | template_description?: string;
|
357 | template_icon?: string;
|
358 | template_name?: string;
|
359 | template_title?: string;
|
360 | thumb_1024?: string;
|
361 | thumb_1024_gif?: string;
|
362 | thumb_1024_h?: string;
|
363 | thumb_1024_w?: string;
|
364 | thumb_160?: string;
|
365 | thumb_160_gif?: string;
|
366 | thumb_160_h?: string;
|
367 | thumb_160_w?: string;
|
368 | thumb_360?: string;
|
369 | thumb_360_gif?: string;
|
370 | thumb_360_h?: string;
|
371 | thumb_360_w?: string;
|
372 | thumb_480?: string;
|
373 | thumb_480_gif?: string;
|
374 | thumb_480_h?: string;
|
375 | thumb_480_w?: string;
|
376 | thumb_64?: string;
|
377 | thumb_64_gif?: string;
|
378 | thumb_64_h?: string;
|
379 | thumb_64_w?: string;
|
380 | thumb_720?: string;
|
381 | thumb_720_gif?: string;
|
382 | thumb_720_h?: string;
|
383 | thumb_720_w?: string;
|
384 | thumb_80?: string;
|
385 | thumb_800?: string;
|
386 | thumb_800_gif?: string;
|
387 | thumb_800_h?: string;
|
388 | thumb_800_w?: string;
|
389 | thumb_80_gif?: string;
|
390 | thumb_80_h?: string;
|
391 | thumb_80_w?: string;
|
392 | thumb_960?: string;
|
393 | thumb_960_gif?: string;
|
394 | thumb_960_h?: string;
|
395 | thumb_960_w?: string;
|
396 | thumb_gif?: string;
|
397 | thumb_pdf?: string;
|
398 | thumb_pdf_h?: string;
|
399 | thumb_pdf_w?: string;
|
400 | thumb_tiny?: string;
|
401 | thumb_video?: string;
|
402 | thumb_video_h?: number;
|
403 | thumb_video_w?: number;
|
404 | timestamp?: number;
|
405 | title?: string;
|
406 | title_blocks?: any[];
|
407 | to?: any[];
|
408 | transcription?: Transcription;
|
409 | update_notification?: number;
|
410 | updated?: number;
|
411 | url_private?: string;
|
412 | url_private_download?: string;
|
413 | url_static_preview?: string;
|
414 | user?: string;
|
415 | user_team?: string;
|
416 | username?: string;
|
417 | vtt?: string;
|
418 | }
|
419 | export interface Headers {
|
420 | date?: string;
|
421 | in_reply_to?: string;
|
422 | message_id?: string;
|
423 | reply_to?: string;
|
424 | }
|
425 | export interface InitialComment {
|
426 | channel?: string;
|
427 | comment?: string;
|
428 | created?: number;
|
429 | id?: string;
|
430 | is_intro?: boolean;
|
431 | timestamp?: number;
|
432 | user?: string;
|
433 | }
|
434 | export interface MediaProgress {
|
435 | duration_ms?: number;
|
436 | max_offset_ms?: number;
|
437 | offset_ms?: number;
|
438 | }
|
439 | export interface Saved {
|
440 | date_completed?: number;
|
441 | date_due?: number;
|
442 | is_archived?: boolean;
|
443 | state?: string;
|
444 | }
|
445 | export interface Shares {
|
446 | }
|
447 | export interface Transcription {
|
448 | locale?: string;
|
449 | status?: string;
|
450 | }
|
451 | export interface BotProfile {
|
452 | app_id?: string;
|
453 | deleted?: boolean;
|
454 | icons?: Icons;
|
455 | id?: string;
|
456 | name?: string;
|
457 | team_id?: string;
|
458 | updated?: number;
|
459 | }
|
460 | export interface Icons {
|
461 | image_36?: string;
|
462 | image_48?: string;
|
463 | image_72?: string;
|
464 | }
|
465 |
|
\ | No newline at end of file |