UNPKG

1.43 kBTypeScriptView Raw
1import { WebAPICallResult } from '../../WebClient';
2export type MpimOpenResponse = WebAPICallResult & {
3 error?: string;
4 group?: Group;
5 needed?: string;
6 ok?: boolean;
7 provided?: string;
8 response_metadata?: ResponseMetadata;
9 warning?: string;
10};
11export interface Group {
12 created?: number;
13 creator?: string;
14 id?: string;
15 is_archived?: boolean;
16 is_group?: boolean;
17 is_mpim?: boolean;
18 is_open?: boolean;
19 last_read?: string;
20 latest?: Latest;
21 members?: string[];
22 name?: string;
23 name_normalized?: string;
24 priority?: number;
25 purpose?: Purpose;
26 topic?: Purpose;
27 unread_count?: number;
28 unread_count_display?: number;
29}
30export interface Latest {
31 bot_id?: string;
32 bot_profile?: BotProfile;
33 parent_user_id?: string;
34 team?: string;
35 text?: string;
36 thread_ts?: string;
37 ts?: string;
38 type?: string;
39 user?: string;
40}
41export interface BotProfile {
42 app_id?: string;
43 deleted?: boolean;
44 icons?: Icons;
45 id?: string;
46 name?: string;
47 team_id?: string;
48 updated?: number;
49}
50export interface Icons {
51 image_36?: string;
52 image_48?: string;
53 image_72?: string;
54}
55export interface Purpose {
56 creator?: string;
57 last_set?: number;
58 value?: string;
59}
60export interface ResponseMetadata {
61 messages?: string[];
62 warnings?: string[];
63}
64//# sourceMappingURL=MpimOpenResponse.d.ts.map
\No newline at end of file