UNPKG

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