1 | import type { OptionalArgument } from '../../helpers';
|
2 | import type { ChannelIDs, CursorPaginationEnabled, OptionalTeamAssignable, TeamID, TokenOverridable, UserID, UserIDs } from '../common';
|
3 | interface IsRestricted {
|
4 |
|
5 | is_restricted?: boolean;
|
6 | }
|
7 | interface IsUltraRestricted {
|
8 |
|
9 | is_ultra_restricted?: boolean;
|
10 | }
|
11 | interface SessionExpirationTarget {
|
12 |
|
13 | mobile_only?: boolean;
|
14 |
|
15 | web_only?: boolean;
|
16 | }
|
17 | export interface TeamIDWithoutDeactivatedWorkspaces extends TeamID {
|
18 | include_deactivated_user_workspaces?: false;
|
19 | }
|
20 | export interface DeactivatedWorkspacesWithoutTeamID {
|
21 | team_id?: never;
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 | include_deactivated_user_workspaces?: true;
|
28 | }
|
29 | type TeamIDOrDeactivatedWorkspaces = TeamIDWithoutDeactivatedWorkspaces | DeactivatedWorkspacesWithoutTeamID;
|
30 | export interface BothTeamAndUserID extends TeamID, UserID {
|
31 | }
|
32 | export interface NeitherTeamNorUserID {
|
33 | team_id?: never;
|
34 | user_id?: never;
|
35 | }
|
36 | type EitherTeamAndUserIDOrNeither = BothTeamAndUserID | NeitherTeamNorUserID;
|
37 | export interface AdminUsersAssignArguments extends TeamID, UserID, Partial<ChannelIDs>, IsRestricted, IsUltraRestricted, TokenOverridable {
|
38 | }
|
39 | export interface AdminUsersInviteArguments extends ChannelIDs, TeamID, IsRestricted, IsUltraRestricted, TokenOverridable {
|
40 |
|
41 | email: string;
|
42 |
|
43 | custom_message?: string;
|
44 | |
45 |
|
46 |
|
47 |
|
48 | email_password_policy_enabled?: boolean;
|
49 | |
50 |
|
51 |
|
52 |
|
53 | guest_expiration_ts?: string;
|
54 |
|
55 | real_name?: string;
|
56 | |
57 |
|
58 |
|
59 |
|
60 | resend?: boolean;
|
61 | }
|
62 | export type AdminUsersListArguments = OptionalArgument<TeamIDOrDeactivatedWorkspaces & TokenOverridable & CursorPaginationEnabled & {
|
63 | |
64 |
|
65 |
|
66 |
|
67 | is_active?: boolean;
|
68 | }>;
|
69 | export interface AdminUsersRemoveArguments extends TeamID, UserID, TokenOverridable {
|
70 | }
|
71 | export interface AdminUsersSessionClearSettingsArguments extends UserIDs, TokenOverridable {
|
72 | }
|
73 | export interface AdminUsersSessionGetSettingsArguments extends UserIDs, TokenOverridable {
|
74 | }
|
75 | export interface AdminUsersSessionInvalidateArguments extends TeamID, TokenOverridable {
|
76 |
|
77 | session_id: string;
|
78 | }
|
79 | export type AdminUsersSessionListArguments = OptionalArgument<EitherTeamAndUserIDOrNeither & TokenOverridable & CursorPaginationEnabled>;
|
80 | export interface AdminUsersSessionResetArguments extends UserID, SessionExpirationTarget, TokenOverridable {
|
81 | }
|
82 | export interface AdminUsersSessionResetBulkArguments extends UserIDs, SessionExpirationTarget, TokenOverridable {
|
83 | }
|
84 | export interface AdminUsersSessionSetSettingsArguments extends UserIDs, TokenOverridable {
|
85 |
|
86 | desktop_app_browser_quit?: boolean;
|
87 | |
88 |
|
89 |
|
90 |
|
91 | duration?: number;
|
92 | }
|
93 | export interface AdminUsersSetAdminArguments extends TeamID, UserID, TokenOverridable {
|
94 | }
|
95 | export interface AdminUsersSetExpirationArguments extends UserID, TokenOverridable, OptionalTeamAssignable {
|
96 |
|
97 | expiration_ts: number;
|
98 | }
|
99 | export interface AdminUsersSetOwnerArguments extends TeamID, UserID, TokenOverridable {
|
100 | }
|
101 | export interface AdminUsersSetRegularArguments extends TeamID, UserID, TokenOverridable {
|
102 | }
|
103 | export interface AdminUsersUnsupportedVersionsExportArguments extends TokenOverridable {
|
104 | |
105 |
|
106 |
|
107 |
|
108 | date_end_of_support?: number;
|
109 | |
110 |
|
111 |
|
112 |
|
113 | date_sessions_started?: number;
|
114 | }
|
115 | export {};
|
116 |
|
\ | No newline at end of file |