UNPKG

3.25 kBTypeScriptView Raw
1import type { OptionalArgument } from '../helpers';
2import type { AppID, CursorPaginationEnabled, OptionalTeamAssignable, SortDir, TargetTeam, TokenOverridable, TraditionalPagingEnabled } from './common';
3export type TeamAccessLogsArguments = OptionalArgument<TokenOverridable & CursorPaginationEnabled & TraditionalPagingEnabled & OptionalTeamAssignable & {
4 /**
5 * @description End of time range of logs to include in results (inclusive) as a UNIX timestamp in seconds.
6 * Default to now.
7 */
8 before?: number;
9}>;
10export type TeamBillableInfoArguments = OptionalArgument<TokenOverridable & CursorPaginationEnabled & OptionalTeamAssignable & {
11 /** @description A user to retrieve the billable information for. Defaults to all users. */
12 user?: string;
13}>;
14export type TeamBillingInfoArguments = OptionalArgument<TokenOverridable>;
15export type TeamExternalTeamsDisconnectArguments = TokenOverridable & Required<TargetTeam>;
16export type TeamExternalTeamsListArguments = OptionalArgument<TokenOverridable & CursorPaginationEnabled & {
17 /** @description Status of the connected team. */
18 connection_status_filter?: 'CONNECTED' | 'DISCONNECTED' | 'BLOCKED' | 'IN_REVIEW';
19 /** @description Filters connected orgs by Slack Connect pref override(s) */
20 slack_connect_pref_filter?: 'approved_orgs_only' | 'allow_sc_file_uploads' | 'profile_visibility' | 'away_team_sc_invite_permissions' | 'accept_sc_invites' | 'sc_mpdm_to_private' | 'require_sc_channel_for_sc_dm' | 'external_awareness_context_bar';
21 /** @description Direction to sort in asc or desc. */
22 sort_direction?: SortDir['sort_dir'];
23 /** @description Name of the parameter that we are sorting by. Defaults to `team_name`. */
24 sort_field?: 'team_name' | 'last_active_timestamp' | 'connection_status';
25 /** @description Shows connected orgs which are connected on a specified encoded workspace ID. */
26 workspace_filter?: string[];
27}>;
28export type TeamInfoArguments = OptionalArgument<TokenOverridable & {
29 /**
30 * @description Query by domain instead of team (only when `team` is null). This only works for domains in the same
31 * enterprise as the querying team token.
32 * This also expects the domain to belong to a team and not the enterprise itself.
33 */
34 domain?: string;
35 /** @description Team to get info about; if omitted, will return information about the current team. */
36 team?: string;
37}>;
38export type TeamIntegrationLogsArguments = OptionalArgument<Partial<AppID> & TokenOverridable & OptionalTeamAssignable & TraditionalPagingEnabled & {
39 /** @description Filter logs with this change type. Defaults to all logs. */
40 change_type?: 'added' | 'removed' | 'enabled' | 'disabled' | 'updated';
41 /** @description Filter logs to this service. Defaults to all logs. */
42 service_id?: string;
43 /** @description Filter logs generated by this user’s actions. Defaults to all logs. */
44 user?: string;
45}>;
46export type TeamProfileGetArguments = OptionalArgument<TokenOverridable & {
47 /** @description Filter by visibility. */
48 visibility?: 'all' | 'visible' | 'hidden';
49}>;
50export type TeamPreferencesListArguments = OptionalArgument<TokenOverridable>;
51//# sourceMappingURL=team.d.ts.map
\No newline at end of file