UNPKG

1.97 kBTypeScriptView Raw
1import type { OptionalArgument } from '../../helpers';
2import type { ChannelIDs, CursorPaginationEnabled, TeamID, TokenOverridable } from '../common';
3type TeamDiscoverability = 'open' | 'closed' | 'invite_only' | 'unlisted';
4export interface AdminTeamsAdminsListArguments extends TeamID, TokenOverridable, CursorPaginationEnabled {
5}
6export interface AdminTeamsCreateArguments extends TokenOverridable {
7 /** @description Team domain (for example, slacksoftballteam). Domains are limited to 21 characters. */
8 team_domain: string;
9 /** @description Team name (for example, Slack Softball Team). */
10 team_name: string;
11 /** @description Description for the team. */
12 team_description?: string;
13 /** @description Who can join the team. */
14 team_discoverability?: TeamDiscoverability;
15}
16export type AdminTeamsListArguments = OptionalArgument<TokenOverridable & CursorPaginationEnabled>;
17export interface AdminTeamsOwnersListArguments extends TeamID, TokenOverridable, CursorPaginationEnabled {
18}
19export interface AdminTeamsSettingsInfoArguments extends TeamID, TokenOverridable {
20}
21export interface AdminTeamsSettingsSetDefaultChannelsArguments extends ChannelIDs, TeamID, TokenOverridable {
22}
23export interface AdminTeamsSettingsSetDescriptionArguments extends TeamID, TokenOverridable {
24 /** @description The new description for the workspace. */
25 description: string;
26}
27export interface AdminTeamsSettingsSetDiscoverabilityArguments extends TeamID, TokenOverridable {
28 /** @description This workspace's discovery setting. */
29 discoverability: TeamDiscoverability;
30}
31export interface AdminTeamsSettingsSetIconArguments extends TeamID, TokenOverridable {
32 /** @description Image URL for the icon. */
33 image_url: string;
34}
35export interface AdminTeamsSettingsSetNameArguments extends TeamID, TokenOverridable {
36 /** @description The new name of the workspace. */
37 name: string;
38}
39export {};
40//# sourceMappingURL=teams.d.ts.map
\No newline at end of file