UNPKG

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