UNPKG

1.29 kBTypeScriptView Raw
1import type { OptionalArgument } from '../../helpers';
2import type { CursorPaginationEnabled, SortDir, TokenOverridable, UserIDs } from '../common';
3export interface EntityIDs {
4 /**
5 * @description List of the entity IDs for which roles will be assigned/listed/removed.
6 * These can be Org IDs (E12345), Team IDs (T12345) or Channel IDs (C12345).
7 */
8 entity_ids: [string, ...string[]];
9}
10interface RoleID {
11 /**
12 * @description ID of the role to which users will be assigned/removed.
13 * @see {@link https://api.slack.com/methods/admin.roles.addAssignments#markdown Admin Roles under Usage info}.
14 */
15 role_id: string;
16}
17export interface AdminRolesAddAssignmentsArguments extends EntityIDs, RoleID, UserIDs, TokenOverridable {
18}
19export type AdminRolesListAssignmentsArguments = OptionalArgument<Partial<EntityIDs> & TokenOverridable & CursorPaginationEnabled & SortDir & {
20 /**
21 * @description Collection of role ids to scope results by.
22 * @see {@link https://api.slack.com/methods/admin.roles.addAssignments#markdown Admin Roles under Usage info}.
23 */
24 role_ids?: string[];
25}>;
26export interface AdminRolesRemoveAssignmentsArguments extends EntityIDs, RoleID, UserIDs, TokenOverridable {
27}
28export {};
29//# sourceMappingURL=roles.d.ts.map
\No newline at end of file