1 | import type { OptionalArgument } from '../helpers';
|
2 | import type { ChannelID, CursorPaginationEnabled, LocaleAware, OptionalTeamAssignable, TargetTeam, TimelinePaginationEnabled, TokenOverridable } from './common';
|
3 | export interface Channel {
|
4 |
|
5 | channel: string;
|
6 | }
|
7 | export interface Emails {
|
8 |
|
9 | emails: string[];
|
10 | user_ids?: never;
|
11 | }
|
12 | interface IncludeAllMetadata {
|
13 |
|
14 | include_all_metadata?: boolean;
|
15 | }
|
16 | export interface InviteID {
|
17 |
|
18 | invite_id: string;
|
19 | }
|
20 | export interface IsPrivate {
|
21 |
|
22 | is_private?: boolean;
|
23 | }
|
24 | interface MessageSpecifier extends Channel {
|
25 |
|
26 | ts: string;
|
27 | }
|
28 | interface Message {
|
29 |
|
30 | message?: string;
|
31 | }
|
32 | export interface UserIDs {
|
33 |
|
34 | user_ids: string[];
|
35 | emails?: never;
|
36 | }
|
37 | export interface Users {
|
38 |
|
39 | users: string;
|
40 | }
|
41 | export type ConversationsAcceptSharedInviteArguments = TokenOverridable & OptionalTeamAssignable & (ChannelID | InviteID) & IsPrivate & {
|
42 | |
43 |
|
44 |
|
45 |
|
46 | channel_name: string;
|
47 |
|
48 | free_trial_accepted?: boolean;
|
49 | };
|
50 | export interface ConversationsApproveSharedInviteArguments extends InviteID, TargetTeam, TokenOverridable {
|
51 | }
|
52 | export interface ConversationsArchiveArguments extends Channel, TokenOverridable {
|
53 | }
|
54 | export interface ConversationsCloseArguments extends Channel, TokenOverridable {
|
55 | }
|
56 | export interface ConversationsCreateArguments extends IsPrivate, TokenOverridable, OptionalTeamAssignable {
|
57 |
|
58 | name: string;
|
59 | }
|
60 | export interface ConversationsDeclineSharedInviteArguments extends InviteID, TargetTeam, TokenOverridable {
|
61 | }
|
62 | export interface ConversationsExternalInvitePermissionsSetArguments extends Channel, Required<TargetTeam>, TokenOverridable {
|
63 |
|
64 | action: 'downgrade' | 'upgrade';
|
65 | }
|
66 | export interface ConversationsHistoryArguments extends Channel, IncludeAllMetadata, TokenOverridable, CursorPaginationEnabled, TimelinePaginationEnabled {
|
67 | }
|
68 | export interface ConversationsInfoArguments extends Channel, TokenOverridable, LocaleAware {
|
69 | |
70 |
|
71 |
|
72 | include_num_members?: boolean;
|
73 | }
|
74 | export interface ConversationsInviteArguments extends Channel, Users, TokenOverridable {
|
75 | |
76 |
|
77 |
|
78 |
|
79 | force?: boolean;
|
80 | }
|
81 | export type ConversationsInviteSharedArguments = Channel & TokenOverridable & (Emails | UserIDs) & {
|
82 |
|
83 | external_limited?: boolean;
|
84 | };
|
85 | export interface ConversationsJoinArguments extends Channel, TokenOverridable {
|
86 | }
|
87 | export interface ConversationsKickArguments extends Channel, TokenOverridable {
|
88 | user: string;
|
89 | }
|
90 | export interface ConversationsLeaveArguments extends Channel, TokenOverridable {
|
91 | }
|
92 | export type ConversationsListArguments = OptionalArgument<TokenOverridable & CursorPaginationEnabled & OptionalTeamAssignable & {
|
93 |
|
94 | exclude_archived?: boolean;
|
95 | |
96 |
|
97 |
|
98 |
|
99 | types?: string;
|
100 | }>;
|
101 | export type ConversationsListConnectInvitesArguments = OptionalArgument<TokenOverridable & OptionalTeamAssignable & {
|
102 |
|
103 | count?: number;
|
104 |
|
105 | cursor?: string;
|
106 | }>;
|
107 | export interface ConversationsMarkArguments extends MessageSpecifier, TokenOverridable {
|
108 | }
|
109 | export interface ConversationsMembersArguments extends Channel, TokenOverridable, CursorPaginationEnabled {
|
110 | }
|
111 | export type ConversationsOpenArguments = (Channel | Users) & TokenOverridable & {
|
112 | |
113 |
|
114 |
|
115 |
|
116 | prevent_creation?: boolean;
|
117 |
|
118 | return_im?: boolean;
|
119 | };
|
120 | export interface ConversationsRenameArguments extends Channel, TokenOverridable {
|
121 |
|
122 | name: string;
|
123 | }
|
124 | export interface ConversationsRepliesArguments extends MessageSpecifier, IncludeAllMetadata, TokenOverridable, CursorPaginationEnabled, TimelinePaginationEnabled {
|
125 | }
|
126 | export interface ConversationsRequestSharedInviteApproveArguments extends InviteID, Partial<ChannelID>, TokenOverridable {
|
127 | |
128 |
|
129 |
|
130 |
|
131 | is_external_limited?: boolean;
|
132 |
|
133 | message?: {
|
134 | |
135 |
|
136 |
|
137 |
|
138 | is_override: boolean;
|
139 |
|
140 | text: string;
|
141 | };
|
142 | }
|
143 | export interface ConversationsRequestSharedInviteDenyArguments extends InviteID, Message, TokenOverridable {
|
144 | }
|
145 | export type ConversationsRequestSharedInviteListArguments = OptionalArgument<CursorPaginationEnabled & TokenOverridable & {
|
146 |
|
147 | include_approved?: boolean;
|
148 |
|
149 | include_denied?: boolean;
|
150 |
|
151 | include_expired?: boolean;
|
152 |
|
153 | invite_ids?: string[];
|
154 |
|
155 | user_id?: string;
|
156 | }>;
|
157 | export interface ConversationsSetPurposeArguments extends Channel, TokenOverridable {
|
158 |
|
159 | purpose: string;
|
160 | }
|
161 | export interface ConversationsSetTopicArguments extends Channel, TokenOverridable {
|
162 |
|
163 | topic: string;
|
164 | }
|
165 | export interface ConversationsUnarchiveArguments extends Channel, TokenOverridable {
|
166 | }
|
167 | export {};
|
168 |
|
\ | No newline at end of file |