1 | import type { WebAPICallResult } from '../../WebClient';
|
2 | export type ChannelsInfoResponse = WebAPICallResult & {
|
3 | channel?: Channel;
|
4 | error?: string;
|
5 | needed?: string;
|
6 | ok?: boolean;
|
7 | provided?: string;
|
8 | };
|
9 | export interface Channel {
|
10 | created?: number;
|
11 | creator?: string;
|
12 | id?: string;
|
13 | is_archived?: boolean;
|
14 | is_channel?: boolean;
|
15 | is_general?: boolean;
|
16 | is_member?: boolean;
|
17 | is_mpim?: boolean;
|
18 | is_org_shared?: boolean;
|
19 | is_private?: boolean;
|
20 | is_shared?: boolean;
|
21 | last_read?: string;
|
22 | latest?: Latest;
|
23 | members?: string[];
|
24 | name?: string;
|
25 | name_normalized?: string;
|
26 | previous_names?: string[];
|
27 | purpose?: Purpose;
|
28 | topic?: Purpose;
|
29 | unlinked?: number;
|
30 | unread_count?: number;
|
31 | unread_count_display?: number;
|
32 | }
|
33 | export interface Latest {
|
34 | attachments?: Attachment[];
|
35 | blocks?: Block[];
|
36 | bot_id?: string;
|
37 | display_as_bot?: boolean;
|
38 | edited?: Edited;
|
39 | files?: File[];
|
40 | subtype?: string;
|
41 | text?: string;
|
42 | ts?: string;
|
43 | type?: string;
|
44 | upload?: boolean;
|
45 | user?: string;
|
46 | username?: string;
|
47 | x_files?: string[];
|
48 | }
|
49 | export interface Attachment {
|
50 | actions?: Action[];
|
51 | app_unfurl_url?: string;
|
52 | author_icon?: string;
|
53 | author_link?: string;
|
54 | author_name?: string;
|
55 | author_subname?: string;
|
56 | bot_id?: string;
|
57 | callback_id?: string;
|
58 | channel_id?: string;
|
59 | channel_name?: string;
|
60 | color?: string;
|
61 | fallback?: string;
|
62 | fields?: Field[];
|
63 | filename?: string;
|
64 | footer?: string;
|
65 | footer_icon?: string;
|
66 | from_url?: string;
|
67 | id?: number;
|
68 | image_bytes?: number;
|
69 | image_height?: number;
|
70 | image_url?: string;
|
71 | image_width?: number;
|
72 | indent?: boolean;
|
73 | is_app_unfurl?: boolean;
|
74 | is_msg_unfurl?: boolean;
|
75 | is_reply_unfurl?: boolean;
|
76 | is_thread_root_unfurl?: boolean;
|
77 | metadata?: Metadata;
|
78 | mimetype?: string;
|
79 | mrkdwn_in?: string[];
|
80 | msg_subtype?: string;
|
81 | original_url?: string;
|
82 | pretext?: string;
|
83 | service_icon?: string;
|
84 | service_name?: string;
|
85 | service_url?: string;
|
86 | size?: number;
|
87 | text?: string;
|
88 | thumb_height?: number;
|
89 | thumb_url?: string;
|
90 | thumb_width?: number;
|
91 | title?: string;
|
92 | title_link?: string;
|
93 | ts?: string;
|
94 | url?: string;
|
95 | video_html?: string;
|
96 | video_html_height?: number;
|
97 | video_html_width?: number;
|
98 | }
|
99 | export interface Action {
|
100 | confirm?: ActionConfirm;
|
101 | data_source?: string;
|
102 | id?: string;
|
103 | min_query_length?: number;
|
104 | name?: string;
|
105 | option_groups?: OptionGroup[];
|
106 | options?: Option[];
|
107 | selected_options?: Option[];
|
108 | style?: string;
|
109 | text?: string;
|
110 | type?: string;
|
111 | url?: string;
|
112 | value?: string;
|
113 | }
|
114 | export interface ActionConfirm {
|
115 | dismiss_text?: string;
|
116 | ok_text?: string;
|
117 | text?: string;
|
118 | title?: string;
|
119 | }
|
120 | export interface OptionGroup {
|
121 | text?: string;
|
122 | }
|
123 | export interface Option {
|
124 | text?: string;
|
125 | value?: string;
|
126 | }
|
127 | export interface Field {
|
128 | short?: boolean;
|
129 | title?: string;
|
130 | value?: string;
|
131 | }
|
132 | export interface Metadata {
|
133 | extension?: string;
|
134 | format?: string;
|
135 | original_h?: number;
|
136 | original_w?: number;
|
137 | rotation?: number;
|
138 | thumb_160?: boolean;
|
139 | thumb_360_h?: number;
|
140 | thumb_360_w?: number;
|
141 | thumb_64?: boolean;
|
142 | thumb_80?: boolean;
|
143 | thumb_tiny?: string;
|
144 | }
|
145 | export interface Block {
|
146 | accessory?: Accessory;
|
147 | alt_text?: string;
|
148 | block_id?: string;
|
149 | elements?: Element[];
|
150 | fallback?: string;
|
151 | fields?: Text[];
|
152 | image_bytes?: number;
|
153 | image_height?: number;
|
154 | image_url?: string;
|
155 | image_width?: number;
|
156 | text?: Text;
|
157 | title?: Text;
|
158 | type?: string;
|
159 | }
|
160 | export interface Accessory {
|
161 | alt_text?: string;
|
162 | fallback?: string;
|
163 | image_bytes?: number;
|
164 | image_height?: number;
|
165 | image_url?: string;
|
166 | image_width?: number;
|
167 | type?: string;
|
168 | }
|
169 | export interface Element {
|
170 | action_id?: string;
|
171 | alt_text?: string;
|
172 | confirm?: ElementConfirm;
|
173 | fallback?: string;
|
174 | image_bytes?: number;
|
175 | image_height?: number;
|
176 | image_url?: string;
|
177 | image_width?: number;
|
178 | initial_channel?: string;
|
179 | initial_conversation?: string;
|
180 | initial_date?: string;
|
181 | initial_option?: InitialOption;
|
182 | initial_user?: string;
|
183 | min_query_length?: number;
|
184 | placeholder?: Text;
|
185 | style?: string;
|
186 | text?: Text;
|
187 | type?: string;
|
188 | url?: string;
|
189 | value?: string;
|
190 | }
|
191 | export interface ElementConfirm {
|
192 | confirm?: Text;
|
193 | deny?: Text;
|
194 | text?: Text;
|
195 | title?: Text;
|
196 | }
|
197 | export interface Text {
|
198 | emoji?: boolean;
|
199 | text?: string;
|
200 | type?: string;
|
201 | verbatim?: boolean;
|
202 | }
|
203 | export interface InitialOption {
|
204 | description?: Text;
|
205 | text?: Text;
|
206 | url?: string;
|
207 | value?: string;
|
208 | }
|
209 | export interface Edited {
|
210 | ts?: string;
|
211 | user?: string;
|
212 | }
|
213 | export interface File {
|
214 | created?: number;
|
215 | display_as_bot?: boolean;
|
216 | edit_link?: string;
|
217 | editable?: boolean;
|
218 | external_type?: string;
|
219 | filetype?: string;
|
220 | has_rich_preview?: boolean;
|
221 | id?: string;
|
222 | is_external?: boolean;
|
223 | is_public?: boolean;
|
224 | is_starred?: boolean;
|
225 | lines?: number;
|
226 | lines_more?: number;
|
227 | mimetype?: string;
|
228 | mode?: string;
|
229 | name?: string;
|
230 | permalink?: string;
|
231 | permalink_public?: string;
|
232 | pretty_type?: string;
|
233 | preview?: string;
|
234 | preview_highlight?: string;
|
235 | preview_is_truncated?: boolean;
|
236 | public_url_shared?: boolean;
|
237 | size?: number;
|
238 | timestamp?: number;
|
239 | title?: string;
|
240 | url_private?: string;
|
241 | url_private_download?: string;
|
242 | user?: string;
|
243 | username?: string;
|
244 | }
|
245 | export interface Purpose {
|
246 | creator?: string;
|
247 | last_set?: number;
|
248 | value?: string;
|
249 | }
|
250 |
|
\ | No newline at end of file |