UNPKG

7.54 kBTypeScriptView Raw
1import { WebAPICallResult } from '../../WebClient';
2export type ChannelsHistoryResponse = WebAPICallResult & {
3 channel_actions_count?: number;
4 channel_actions_ts?: number;
5 error?: string;
6 has_more?: boolean;
7 latest?: string;
8 messages?: Message[];
9 needed?: string;
10 ok?: boolean;
11 provided?: string;
12 response_metadata?: ResponseMetadata;
13 warning?: string;
14};
15export interface Message {
16 attachments?: Attachment[];
17 blocks?: Block[];
18 bot_id?: string;
19 bot_profile?: BotProfile;
20 client_msg_id?: string;
21 display_as_bot?: boolean;
22 edited?: Edited;
23 files?: File[];
24 icons?: MessageIcons;
25 inviter?: string;
26 latest_reply?: string;
27 parent_user_id?: string;
28 reactions?: Reaction[];
29 reply_count?: number;
30 reply_users?: string[];
31 reply_users_count?: number;
32 root?: Root;
33 subscribed?: boolean;
34 subtype?: string;
35 team?: string;
36 text?: string;
37 thread_ts?: string;
38 ts?: string;
39 type?: string;
40 upload?: boolean;
41 user?: string;
42 username?: string;
43 x_files?: string[];
44}
45export interface Attachment {
46 actions?: Action[];
47 app_unfurl_url?: string;
48 author_icon?: string;
49 author_id?: string;
50 author_link?: string;
51 author_name?: string;
52 author_subname?: string;
53 bot_id?: string;
54 callback_id?: string;
55 channel_id?: string;
56 channel_name?: string;
57 color?: string;
58 fallback?: string;
59 fields?: Field[];
60 filename?: string;
61 footer?: string;
62 footer_icon?: string;
63 from_url?: string;
64 id?: number;
65 image_bytes?: number;
66 image_height?: number;
67 image_url?: string;
68 image_width?: number;
69 indent?: boolean;
70 is_app_unfurl?: boolean;
71 is_msg_unfurl?: boolean;
72 is_reply_unfurl?: boolean;
73 is_thread_root_unfurl?: boolean;
74 metadata?: Metadata;
75 mimetype?: string;
76 mrkdwn_in?: string[];
77 msg_subtype?: string;
78 original_url?: string;
79 pretext?: string;
80 service_icon?: string;
81 service_name?: string;
82 service_url?: string;
83 size?: number;
84 text?: string;
85 thumb_height?: number;
86 thumb_url?: string;
87 thumb_width?: number;
88 title?: string;
89 title_link?: string;
90 ts?: string;
91 url?: string;
92 video_html?: string;
93 video_html_height?: number;
94 video_html_width?: number;
95}
96export interface Action {
97 confirm?: ActionConfirm;
98 data_source?: string;
99 id?: string;
100 min_query_length?: number;
101 name?: string;
102 option_groups?: OptionGroup[];
103 options?: Option[];
104 selected_options?: Option[];
105 style?: string;
106 text?: string;
107 type?: string;
108 url?: string;
109 value?: string;
110}
111export interface ActionConfirm {
112 dismiss_text?: string;
113 ok_text?: string;
114 text?: string;
115 title?: string;
116}
117export interface OptionGroup {
118 text?: string;
119}
120export interface Option {
121 text?: string;
122 value?: string;
123}
124export interface Field {
125 short?: boolean;
126 title?: string;
127 value?: string;
128}
129export interface Metadata {
130 extension?: string;
131 format?: string;
132 original_h?: number;
133 original_w?: number;
134 rotation?: number;
135 thumb_160?: boolean;
136 thumb_360_h?: number;
137 thumb_360_w?: number;
138 thumb_64?: boolean;
139 thumb_80?: boolean;
140 thumb_tiny?: string;
141}
142export interface Block {
143 accessory?: Accessory;
144 alt_text?: string;
145 block_id?: string;
146 elements?: Element[];
147 fallback?: string;
148 fields?: Text[];
149 image_bytes?: number;
150 image_height?: number;
151 image_url?: string;
152 image_width?: number;
153 text?: Text;
154 title?: Text;
155 type?: string;
156}
157export interface Accessory {
158 alt_text?: string;
159 fallback?: string;
160 image_bytes?: number;
161 image_height?: number;
162 image_url?: string;
163 image_width?: number;
164 type?: string;
165}
166export interface Element {
167 action_id?: string;
168 alt_text?: string;
169 confirm?: ElementConfirm;
170 default_to_current_conversation?: boolean;
171 fallback?: string;
172 filter?: Filter;
173 image_bytes?: number;
174 image_height?: number;
175 image_url?: string;
176 image_width?: number;
177 initial_channel?: string;
178 initial_conversation?: string;
179 initial_date?: string;
180 initial_option?: InitialOption;
181 initial_user?: string;
182 min_query_length?: number;
183 placeholder?: Text;
184 response_url_enabled?: boolean;
185 style?: string;
186 text?: Text;
187 type?: string;
188 url?: string;
189 value?: string;
190}
191export interface ElementConfirm {
192 confirm?: Text;
193 deny?: Text;
194 style?: string;
195 text?: Text;
196 title?: Text;
197}
198export interface Text {
199 emoji?: boolean;
200 text?: string;
201 type?: string;
202 verbatim?: boolean;
203}
204export interface Filter {
205 exclude_bot_users?: boolean;
206 exclude_external_shared_channels?: boolean;
207}
208export interface InitialOption {
209 description?: Text;
210 text?: Text;
211 url?: string;
212 value?: string;
213}
214export interface BotProfile {
215 app_id?: string;
216 deleted?: boolean;
217 icons?: BotProfileIcons;
218 id?: string;
219 name?: string;
220 team_id?: string;
221 updated?: number;
222}
223export interface BotProfileIcons {
224 image_36?: string;
225 image_48?: string;
226 image_72?: string;
227}
228export interface Edited {
229 ts?: string;
230 user?: string;
231}
232export interface File {
233 created?: number;
234 display_as_bot?: boolean;
235 edit_link?: string;
236 editable?: boolean;
237 external_id?: string;
238 external_type?: string;
239 external_url?: string;
240 filetype?: string;
241 has_rich_preview?: boolean;
242 id?: string;
243 image_exif_rotation?: number;
244 is_external?: boolean;
245 is_public?: boolean;
246 is_starred?: boolean;
247 lines?: number;
248 lines_more?: number;
249 mimetype?: string;
250 mode?: string;
251 name?: string;
252 original_h?: number;
253 original_w?: number;
254 permalink?: string;
255 permalink_public?: string;
256 pretty_type?: string;
257 preview?: string;
258 preview_highlight?: string;
259 preview_is_truncated?: boolean;
260 public_url_shared?: boolean;
261 size?: number;
262 thumb_1024?: string;
263 thumb_1024_h?: number;
264 thumb_1024_w?: number;
265 thumb_160?: string;
266 thumb_360?: string;
267 thumb_360_h?: number;
268 thumb_360_w?: number;
269 thumb_480?: string;
270 thumb_480_h?: number;
271 thumb_480_w?: number;
272 thumb_64?: string;
273 thumb_720?: string;
274 thumb_720_h?: number;
275 thumb_720_w?: number;
276 thumb_80?: string;
277 thumb_800?: string;
278 thumb_800_h?: number;
279 thumb_800_w?: number;
280 thumb_960?: string;
281 thumb_960_h?: number;
282 thumb_960_w?: number;
283 thumb_tiny?: string;
284 timestamp?: number;
285 title?: string;
286 url_private?: string;
287 url_private_download?: string;
288 user?: string;
289 username?: string;
290}
291export interface MessageIcons {
292 emoji?: string;
293 image_64?: string;
294}
295export interface Reaction {
296 count?: number;
297 name?: string;
298 users?: string[];
299}
300export interface Root {
301 bot_id?: string;
302 bot_profile?: BotProfile;
303 edited?: Edited;
304 icons?: MessageIcons;
305 latest_reply?: string;
306 parent_user_id?: string;
307 reply_count?: number;
308 reply_users?: string[];
309 reply_users_count?: number;
310 subscribed?: boolean;
311 subtype?: string;
312 team?: string;
313 text?: string;
314 thread_ts?: string;
315 ts?: string;
316 type?: string;
317 user?: string;
318 username?: string;
319}
320export interface ResponseMetadata {
321 messages?: string[];
322 warnings?: string[];
323}
324//# sourceMappingURL=ChannelsHistoryResponse.d.ts.map
\No newline at end of file