UNPKG

1.04 kBTypeScriptView Raw
1import { WebAPICallResult } from '../../WebClient';
2export type GroupsInfoResponse = 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 purpose?: Purpose;
25 topic?: Purpose;
26 unread_count?: number;
27 unread_count_display?: number;
28}
29export interface Latest {
30 subtype?: string;
31 text?: string;
32 ts?: string;
33 type?: string;
34 user?: string;
35}
36export interface Purpose {
37 creator?: string;
38 last_set?: number;
39 value?: string;
40}
41export interface ResponseMetadata {
42 messages?: string[];
43 warnings?: string[];
44}
45//# sourceMappingURL=GroupsInfoResponse.d.ts.map
\No newline at end of file