UNPKG

2.1 kBTypeScriptView Raw
1import type { 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 tabs?: Tab[];
56 threads_restricted_to?: ThreadsRestrictedTo;
57}
58export interface Canvas {
59 file_id?: string;
60 is_empty?: boolean;
61 quip_thread_id?: string;
62}
63export interface PostingRestrictedTo {
64 type?: string[];
65 user?: string[];
66}
67export interface Tab {
68 id?: string;
69 label?: string;
70 type?: string;
71}
72export interface ThreadsRestrictedTo {
73 type?: string[];
74}
75export interface Purpose {
76 creator?: string;
77 last_set?: number;
78 value?: string;
79}
80export interface ResponseMetadata {
81 next_cursor?: string;
82}
83//# sourceMappingURL=UsersConversationsResponse.d.ts.map
\No newline at end of file