1 | import { WebAPICallResult } from '../../WebClient';
|
2 | export type ConversationsListResponse = WebAPICallResult & {
|
3 | channels?: Channel[];
|
4 | error?: string;
|
5 | needed?: string;
|
6 | ok?: boolean;
|
7 | provided?: string;
|
8 | response_metadata?: ResponseMetadata;
|
9 | };
|
10 | export interface Channel {
|
11 | context_team_id?: string;
|
12 | conversation_host_id?: string;
|
13 | created?: number;
|
14 | creator?: string;
|
15 | id?: string;
|
16 | internal_team_ids?: string[];
|
17 | is_archived?: boolean;
|
18 | is_channel?: boolean;
|
19 | is_ext_shared?: boolean;
|
20 | is_general?: boolean;
|
21 | is_global_shared?: boolean;
|
22 | is_group?: boolean;
|
23 | is_im?: boolean;
|
24 | is_member?: boolean;
|
25 | is_moved?: number;
|
26 | is_mpim?: boolean;
|
27 | is_org_default?: boolean;
|
28 | is_org_mandatory?: boolean;
|
29 | is_org_shared?: boolean;
|
30 | is_pending_ext_shared?: boolean;
|
31 | is_private?: boolean;
|
32 | is_shared?: boolean;
|
33 | is_user_deleted?: boolean;
|
34 | name?: string;
|
35 | name_normalized?: string;
|
36 | num_members?: number;
|
37 | pending_connected_team_ids?: string[];
|
38 | pending_shared?: string[];
|
39 | previous_names?: string[];
|
40 | priority?: number;
|
41 | properties?: Properties;
|
42 | purpose?: Purpose;
|
43 | shared_team_ids?: string[];
|
44 | topic?: Purpose;
|
45 | unlinked?: number;
|
46 | updated?: number;
|
47 | user?: string;
|
48 | }
|
49 | export interface Properties {
|
50 | canvas?: Canvas;
|
51 | posting_restricted_to?: RestrictedTo;
|
52 | threads_restricted_to?: RestrictedTo;
|
53 | }
|
54 | export interface Canvas {
|
55 | file_id?: string;
|
56 | is_empty?: boolean;
|
57 | quip_thread_id?: string;
|
58 | }
|
59 | export interface RestrictedTo {
|
60 | type?: string[];
|
61 | user?: string[];
|
62 | }
|
63 | export interface Purpose {
|
64 | creator?: string;
|
65 | last_set?: number;
|
66 | value?: string;
|
67 | }
|
68 | export interface ResponseMetadata {
|
69 | next_cursor?: string;
|
70 | }
|
71 |
|
\ | No newline at end of file |