UNPKG

2.6 kBTypeScriptView Raw
1import type { WebAPICallResult } from '../../WebClient';
2export type AdminConversationsSearchResponse = WebAPICallResult & {
3 conversations?: Conversation[];
4 error?: string;
5 needed?: string;
6 next_cursor?: string;
7 ok?: boolean;
8 provided?: string;
9 response_metadata?: ResponseMetadata;
10 total_count?: number;
11};
12export interface Conversation {
13 canvas?: ListsClass;
14 channel_email_addresses?: ChannelEmailAddress[];
15 channel_manager_count?: number;
16 connected_limited_team_ids?: string[];
17 connected_team_ids?: string[];
18 context_team_id?: string;
19 conversation_host_id?: string;
20 created?: number;
21 creator_id?: string;
22 external_user_count?: number;
23 id?: string;
24 internal_team_ids?: string[];
25 internal_team_ids_count?: number;
26 internal_team_ids_sample_team?: string;
27 is_archived?: boolean;
28 is_disconnect_in_progress?: boolean;
29 is_ext_shared?: boolean;
30 is_frozen?: boolean;
31 is_general?: boolean;
32 is_global_shared?: boolean;
33 is_org_default?: boolean;
34 is_org_mandatory?: boolean;
35 is_org_shared?: boolean;
36 is_pending_ext_shared?: boolean;
37 is_private?: boolean;
38 last_activity_ts?: number;
39 lists?: ListsClass;
40 member_count?: number;
41 name?: string;
42 pending_connected_team_ids?: string[];
43 properties?: Properties;
44 purpose?: string;
45}
46export interface ListsClass {
47 ownership_details?: OwnershipDetail[];
48 total_count?: number;
49}
50export interface OwnershipDetail {
51 count?: number;
52 team_id?: string;
53}
54export interface ChannelEmailAddress {
55 address?: string;
56 conversation_id?: string;
57 date_created?: number;
58 icons?: Icons;
59 name?: string;
60 team_id?: string;
61 user_id?: string;
62}
63export interface Icons {
64 image_36?: string;
65 image_48?: string;
66 image_72?: string;
67}
68export interface Properties {
69 at_channel_restricted?: boolean;
70 at_here_restricted?: boolean;
71 canvas?: PropertiesCanvas;
72 huddles_restricted?: boolean;
73 posting_restricted_to?: PostingRestrictedTo;
74 tabs?: Tab[];
75 threads_restricted_to?: ThreadsRestrictedTo;
76}
77export interface PropertiesCanvas {
78 file_id?: string;
79 is_empty?: boolean;
80 quip_thread_id?: string;
81}
82export interface PostingRestrictedTo {
83 type?: string[];
84 user?: string[];
85}
86export interface Tab {
87 id?: string;
88 label?: string;
89 type?: string;
90}
91export interface ThreadsRestrictedTo {
92 type?: string[];
93}
94export interface ResponseMetadata {
95 messages?: string[];
96}
97//# sourceMappingURL=AdminConversationsSearchResponse.d.ts.map
\No newline at end of file