UNPKG

9.67 kBTypeScriptView Raw
1import { WebAPICallResult } from '../../WebClient';
2export type FilesRemoteShareResponse = WebAPICallResult & {
3 error?: string;
4 file?: File;
5 needed?: string;
6 ok?: boolean;
7 provided?: string;
8};
9export interface File {
10 access?: string;
11 alt_txt?: string;
12 app_id?: string;
13 app_name?: string;
14 bot_id?: string;
15 canvas_template_mode?: string;
16 cc?: Cc[];
17 channel_actions_count?: number;
18 channel_actions_ts?: string;
19 channels?: string[];
20 comments_count?: number;
21 converted_pdf?: string;
22 created?: number;
23 deanimate?: string;
24 deanimate_gif?: string;
25 display_as_bot?: boolean;
26 dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
27 duration_ms?: number;
28 edit_link?: string;
29 edit_timestamp?: number;
30 editable?: boolean;
31 editor?: string;
32 editors?: string[];
33 external_id?: string;
34 external_type?: string;
35 external_url?: string;
36 file_access?: string;
37 filetype?: string;
38 from?: Cc[];
39 groups?: string[];
40 has_more?: boolean;
41 has_more_shares?: boolean;
42 has_rich_preview?: boolean;
43 headers?: Headers;
44 hls?: string;
45 hls_embed?: string;
46 id?: string;
47 image_exif_rotation?: number;
48 ims?: string[];
49 initial_comment?: InitialComment;
50 is_channel_space?: boolean;
51 is_external?: boolean;
52 is_public?: boolean;
53 is_starred?: boolean;
54 last_editor?: string;
55 last_read?: number;
56 lines?: number;
57 lines_more?: number;
58 linked_channel_id?: string;
59 media_display_type?: string;
60 media_progress?: MediaProgress;
61 mimetype?: string;
62 mode?: string;
63 mp4?: string;
64 mp4_low?: string;
65 name?: string;
66 non_owner_editable?: boolean;
67 num_stars?: number;
68 org_or_workspace_access?: string;
69 original_attachment_count?: number;
70 original_h?: string;
71 original_w?: string;
72 permalink?: string;
73 permalink_public?: string;
74 pinned_to?: string[];
75 pjpeg?: string;
76 plain_text?: string;
77 pretty_type?: string;
78 preview?: string;
79 preview_highlight?: string;
80 preview_is_truncated?: boolean;
81 preview_plain_text?: string;
82 private_channels_with_file_access_count?: number;
83 public_url_shared?: boolean;
84 quip_thread_id?: string;
85 reactions?: Reaction[];
86 saved?: Saved;
87 sent_to_self?: boolean;
88 shares?: Shares;
89 show_badge?: boolean;
90 simplified_html?: string;
91 size?: number;
92 source_team?: string;
93 subject?: string;
94 subtype?: string;
95 team_pref_version_history_enabled?: boolean;
96 teams_shared_with?: any[];
97 template_conversion_ts?: number;
98 template_description?: string;
99 template_icon?: string;
100 template_name?: string;
101 template_title?: string;
102 thumb_1024?: string;
103 thumb_1024_gif?: string;
104 thumb_1024_h?: string;
105 thumb_1024_w?: string;
106 thumb_160?: string;
107 thumb_160_gif?: string;
108 thumb_160_h?: string;
109 thumb_160_w?: string;
110 thumb_360?: string;
111 thumb_360_gif?: string;
112 thumb_360_h?: string;
113 thumb_360_w?: string;
114 thumb_480?: string;
115 thumb_480_gif?: string;
116 thumb_480_h?: string;
117 thumb_480_w?: string;
118 thumb_64?: string;
119 thumb_64_gif?: string;
120 thumb_64_h?: string;
121 thumb_64_w?: string;
122 thumb_720?: string;
123 thumb_720_gif?: string;
124 thumb_720_h?: string;
125 thumb_720_w?: string;
126 thumb_80?: string;
127 thumb_800?: string;
128 thumb_800_gif?: string;
129 thumb_800_h?: string;
130 thumb_800_w?: string;
131 thumb_80_gif?: string;
132 thumb_80_h?: string;
133 thumb_80_w?: string;
134 thumb_960?: string;
135 thumb_960_gif?: string;
136 thumb_960_h?: string;
137 thumb_960_w?: string;
138 thumb_gif?: string;
139 thumb_pdf?: string;
140 thumb_pdf_h?: string;
141 thumb_pdf_w?: string;
142 thumb_tiny?: string;
143 thumb_video?: string;
144 thumb_video_h?: number;
145 thumb_video_w?: number;
146 timestamp?: number;
147 title?: string;
148 title_blocks?: TitleBlock[];
149 to?: Cc[];
150 transcription?: Transcription;
151 update_notification?: number;
152 updated?: number;
153 url_private?: string;
154 url_private_download?: string;
155 url_static_preview?: string;
156 user?: string;
157 user_team?: string;
158 username?: string;
159 vtt?: string;
160}
161export interface Cc {
162 address?: string;
163 name?: string;
164 original?: string;
165}
166export interface DmMpdmUsersWithFileAccess {
167 access?: string;
168 user_id?: string;
169}
170export interface Headers {
171 date?: string;
172 in_reply_to?: string;
173 message_id?: string;
174 reply_to?: string;
175}
176export interface InitialComment {
177 channel?: string;
178 comment?: string;
179 created?: number;
180 id?: string;
181 is_intro?: boolean;
182 timestamp?: number;
183 user?: string;
184}
185export interface MediaProgress {
186 duration_ms?: number;
187 max_offset_ms?: number;
188 offset_ms?: number;
189}
190export interface Reaction {
191 count?: number;
192 name?: string;
193 url?: string;
194 users?: string[];
195}
196export interface Saved {
197 date_completed?: number;
198 date_due?: number;
199 is_archived?: boolean;
200 state?: string;
201}
202export interface Shares {
203 private?: {
204 [key: string]: Private[];
205 };
206 public?: {
207 [key: string]: Private[];
208 };
209}
210export interface Private {
211 access?: string;
212 channel_name?: string;
213 date_last_shared?: number;
214 latest_reply?: string;
215 reply_count?: number;
216 reply_users?: string[];
217 reply_users_count?: number;
218 share_user_id?: string;
219 source?: string;
220 team_id?: string;
221 thread_ts?: string;
222 ts?: string;
223}
224export interface TitleBlock {
225 accessory?: Accessory;
226 alt_text?: string;
227 app_collaborators?: string[];
228 app_id?: string;
229 author_name?: string;
230 block_id?: string;
231 bot_user_id?: string;
232 button_label?: string;
233 description?: Text | string;
234 developer_trace_id?: string;
235 elements?: Accessory[];
236 fallback?: string;
237 fields?: Text[];
238 function_trigger_id?: string;
239 image_bytes?: number;
240 image_height?: number;
241 image_url?: string;
242 image_width?: number;
243 is_animated?: boolean;
244 is_workflow_app?: boolean;
245 owning_team_id?: string;
246 provider_icon_url?: string;
247 provider_name?: string;
248 sales_home_workflow_app_type?: number;
249 share_url?: string;
250 slack_file?: SlackFile;
251 text?: Text;
252 thumbnail_url?: string;
253 title?: Text | string;
254 title_url?: string;
255 trigger_subtype?: string;
256 trigger_type?: string;
257 type?: string;
258 url?: string;
259 video_url?: string;
260 workflow_id?: string;
261}
262export interface Accessory {
263 accessibility_label?: string;
264 action_id?: string;
265 alt_text?: string;
266 border?: number;
267 confirm?: Confirm;
268 default_to_current_conversation?: boolean;
269 elements?: AccessoryElement[];
270 fallback?: string;
271 filter?: Filter;
272 focus_on_load?: boolean;
273 image_bytes?: number;
274 image_height?: number;
275 image_url?: string;
276 image_width?: number;
277 indent?: number;
278 initial_channel?: string;
279 initial_channels?: string[];
280 initial_conversation?: string;
281 initial_conversations?: string[];
282 initial_date?: string;
283 initial_date_time?: number;
284 initial_option?: Option;
285 initial_options?: Option[];
286 initial_time?: string;
287 initial_user?: string;
288 initial_users?: string[];
289 max_selected_items?: number;
290 min_query_length?: number;
291 offset?: number;
292 option_groups?: OptionGroup[];
293 options?: Option[];
294 placeholder?: Text;
295 response_url_enabled?: boolean;
296 slack_file?: SlackFile;
297 style?: string;
298 text?: Text;
299 timezone?: string;
300 type?: string;
301 url?: string;
302 value?: string;
303 workflow?: Workflow;
304}
305export interface Confirm {
306 confirm?: Text;
307 deny?: Text;
308 style?: string;
309 text?: Text;
310 title?: Text;
311}
312export interface Text {
313 emoji?: boolean;
314 text?: string;
315 type?: TextType;
316 verbatim?: boolean;
317}
318export declare enum TextType {
319 Mrkdwn = "mrkdwn",
320 PlainText = "plain_text"
321}
322export interface AccessoryElement {
323 border?: number;
324 elements?: PurpleElement[];
325 indent?: number;
326 offset?: number;
327 style?: string;
328 type?: string;
329}
330export interface PurpleElement {
331 channel_id?: string;
332 name?: string;
333 range?: string;
334 skin_tone?: number;
335 style?: Style;
336 team_id?: string;
337 text?: string;
338 timestamp?: string;
339 type?: ElementType;
340 unicode?: string;
341 url?: string;
342 user_id?: string;
343 usergroup_id?: string;
344 value?: string;
345}
346export interface Style {
347 bold?: boolean;
348 code?: boolean;
349 italic?: boolean;
350 strike?: boolean;
351}
352export declare enum ElementType {
353 Broadcast = "broadcast",
354 Channel = "channel",
355 Color = "color",
356 Date = "date",
357 Emoji = "emoji",
358 Link = "link",
359 Team = "team",
360 Text = "text",
361 User = "user",
362 Usergroup = "usergroup"
363}
364export interface Filter {
365 exclude_bot_users?: boolean;
366 exclude_external_shared_channels?: boolean;
367 include?: any[];
368}
369export interface Option {
370 description?: Text;
371 text?: Text;
372 url?: string;
373 value?: string;
374}
375export interface OptionGroup {
376 label?: Text;
377 options?: Option[];
378}
379export interface SlackFile {
380 id?: string;
381 url?: string;
382}
383export interface Workflow {
384 trigger?: Trigger;
385}
386export interface Trigger {
387 customizable_input_parameters?: CustomizableInputParameter[];
388 url?: string;
389}
390export interface CustomizableInputParameter {
391 name?: string;
392 value?: string;
393}
394export interface Transcription {
395 locale?: string;
396 status?: string;
397}
398//# sourceMappingURL=FilesRemoteShareResponse.d.ts.map
\No newline at end of file