UNPKG

1.29 kBTypeScriptView Raw
1import type { OptionalArgument } from '../../helpers';
2import type { CursorPaginationEnabled, TokenOverridable } from '../common';
3interface BarrierID {
4 /** @description The ID of the barrier. */
5 barrier_id: string;
6}
7export interface AdminBarriersCreateArguments extends TokenOverridable {
8 /** @description A list of {@link https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-Grid-org IDP Groups} IDs ti associate with the barrier. */
9 barriered_from_usergroup_ids: string[];
10 /** @description The ID of the primary {@link https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-Grid-org IDP Group}. */
11 primary_usergroup_id: string;
12 /**
13 * @description What kind of interactions are blocked by this barrier?
14 * Currently you must provide all three: `im`, `mpim`, `call`.
15 */
16 restricted_subjects: ['im', 'mpim', 'call'];
17}
18export interface AdminBarriersDeleteArguments extends BarrierID, TokenOverridable {
19}
20export type AdminBarriersListArguments = OptionalArgument<TokenOverridable & CursorPaginationEnabled>;
21export interface AdminBarriersUpdateArguments extends AdminBarriersCreateArguments, BarrierID {
22}
23export {};
24//# sourceMappingURL=barriers.d.ts.map
\No newline at end of file