1 | import type { OptionalArgument } from '../../helpers';
|
2 | import type { ChannelID, ChannelIDs, CursorPaginationEnabled, SortDir, TeamIDs, TokenOverridable, UserIDs } from '../common';
|
3 | type ChannelType = 'private' | 'private_exclude' | 'archived' | 'exclude_archived' | 'private_exclude_archived' | 'multi_workspace' | 'org_wide' | 'external_shared_exclude' | 'external_shared' | 'external_shared_private' | 'external_shared_archived' | 'exclude_org_shared';
|
4 | interface GroupID {
|
5 |
|
6 | group_id: string;
|
7 | }
|
8 | interface RestrictAccessTeamID {
|
9 | |
10 |
|
11 |
|
12 |
|
13 | team_id?: string;
|
14 | }
|
15 | export interface AdminConversationsArchiveArguments extends ChannelID, TokenOverridable {
|
16 | }
|
17 | export interface AdminConversationsBulkArchiveArguments extends ChannelIDs, TokenOverridable {
|
18 | }
|
19 | export interface AdminConversationsBulkDeleteArguments extends ChannelIDs, TokenOverridable {
|
20 | }
|
21 | export interface AdminConversationsBulkMoveArguments extends ChannelIDs, TokenOverridable {
|
22 |
|
23 | target_team_id: string;
|
24 | }
|
25 | export interface AdminConversationsConvertToPrivateArguments extends ChannelID, TokenOverridable {
|
26 |
|
27 | name?: string;
|
28 | }
|
29 | export interface AdminConversationsConvertToPublicArguments extends ChannelID, TokenOverridable {
|
30 | }
|
31 | export interface OrgWide {
|
32 |
|
33 | org_wide: true;
|
34 | team_id?: never;
|
35 | }
|
36 | export interface SpecificTeam {
|
37 | |
38 |
|
39 |
|
40 |
|
41 | org_wide?: false;
|
42 | |
43 |
|
44 |
|
45 | team_id: string;
|
46 | }
|
47 | type WorkspaceAccess = OrgWide | SpecificTeam;
|
48 | export type AdminConversationsCreateArguments = TokenOverridable & WorkspaceAccess & {
|
49 |
|
50 | is_private: boolean;
|
51 |
|
52 | name: string;
|
53 |
|
54 | description?: string;
|
55 | };
|
56 | export interface AdminConversationsDeleteArguments extends ChannelID, TokenOverridable {
|
57 | }
|
58 | export interface AdminConversationsDisconnectSharedArguments extends ChannelID, TokenOverridable {
|
59 |
|
60 | leaving_team_ids?: string[];
|
61 | }
|
62 | export type AdminConversationsEKMListOriginalConnectedChannelInfoArguments = OptionalArgument<Partial<TeamIDs> & TokenOverridable & CursorPaginationEnabled & Partial<ChannelIDs>>;
|
63 | export interface AdminConversationsGetConversationPrefsArguments extends ChannelID, TokenOverridable {
|
64 | }
|
65 | export interface AdminConversationsGetCustomRetentionArguments extends ChannelID, TokenOverridable {
|
66 | }
|
67 | export interface AdminConversationsGetTeamsArguments extends ChannelID, TokenOverridable, CursorPaginationEnabled {
|
68 | }
|
69 | export interface AdminConversationsInviteArguments extends ChannelID, UserIDs, TokenOverridable {
|
70 | }
|
71 | export interface AdminConversationsLookupArguments extends TeamIDs, TokenOverridable, CursorPaginationEnabled {
|
72 | |
73 |
|
74 |
|
75 |
|
76 | last_message_activity_before: number;
|
77 |
|
78 | max_member_count?: number;
|
79 | }
|
80 | export interface AdminConversationsRemoveCustomRetentionArguments extends ChannelID, TokenOverridable {
|
81 | }
|
82 | export interface AdminConversationsRenameArguments extends ChannelID, TokenOverridable {
|
83 |
|
84 | name: string;
|
85 | }
|
86 | export interface AdminConversationsRestrictAccessAddGroupArguments extends ChannelID, GroupID, RestrictAccessTeamID, TokenOverridable {
|
87 | }
|
88 | export interface AdminConversationsRestrictAccessListGroupsArguments extends ChannelID, RestrictAccessTeamID, TokenOverridable {
|
89 | }
|
90 | export interface AdminConversationsRestrictAccessRemoveGroupArguments extends ChannelID, GroupID, RestrictAccessTeamID, TokenOverridable {
|
91 | }
|
92 | export type AdminConversationsSearchArguments = OptionalArgument<SortDir & Partial<TeamIDs> & TokenOverridable & CursorPaginationEnabled & {
|
93 |
|
94 | connected_team_ids?: string[];
|
95 |
|
96 | query?: string;
|
97 | |
98 |
|
99 |
|
100 |
|
101 |
|
102 | search_channel_types?: ChannelType[];
|
103 | |
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 |
|
112 | sort?: 'relevant' | 'name' | 'member_count' | 'created';
|
113 | |
114 |
|
115 |
|
116 |
|
117 | total_count_only?: boolean;
|
118 | }>;
|
119 | export interface AdminConversationsSetConversationPrefsArguments extends ChannelID, TokenOverridable {
|
120 |
|
121 | prefs: Record<string, unknown>;
|
122 | }
|
123 | export interface AdminConversationsSetCustomRetentionArguments extends ChannelID, TokenOverridable {
|
124 |
|
125 | duration_days: number;
|
126 | }
|
127 | export interface AdminConversationsSetTeamsArguments extends ChannelID, TokenOverridable {
|
128 |
|
129 | org_channel?: boolean;
|
130 | |
131 |
|
132 |
|
133 |
|
134 | target_team_ids?: string[];
|
135 | |
136 |
|
137 |
|
138 |
|
139 | team_id?: string;
|
140 | }
|
141 | export interface AdminConversationsUnarchiveArguments extends ChannelID, TokenOverridable {
|
142 | }
|
143 | export {};
|
144 |
|
\ | No newline at end of file |