UNPKG

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