import { APIResource } from "../../../../core/resource.mjs"; import * as LevelsAPI from "./levels/levels.mjs"; import { BaseLevels, LevelCreateParams, LevelCreateResponse, LevelDeleteParams, LevelDeleteResponse, LevelGetParams, LevelGetResponse, LevelListParams, LevelListResponse, LevelListResponsesSinglePage, LevelUpdateParams, LevelUpdateResponse, Levels } from "./levels/levels.mjs"; import { APIPromise } from "../../../../core/api-promise.mjs"; import { PagePromise, SinglePage } from "../../../../core/pagination.mjs"; import { RequestOptions } from "../../../../internal/request-options.mjs"; export declare class BaseSensitivityGroups extends APIResource { static readonly _key: readonly ['zeroTrust', 'dlp', 'sensitivityGroups']; /** * Creates a new sensitivity group. * * @example * ```ts * const sensitivityGroup = * await client.zeroTrust.dlp.sensitivityGroups.create({ * account_id: 'account_id', * name: 'name', * }); * ``` */ create(params: SensitivityGroupCreateParams, options?: RequestOptions): APIPromise; /** * Update the attributes of a single sensitivity group. * * @example * ```ts * const sensitivityGroup = * await client.zeroTrust.dlp.sensitivityGroups.update( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 'account_id' }, * ); * ``` */ update(sensitivityGroupID: string, params: SensitivityGroupUpdateParams, options?: RequestOptions): APIPromise; /** * Retrieve all sensitivity groups in an account * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const sensitivityGroupListResponse of client.zeroTrust.dlp.sensitivityGroups.list( * { account_id: 'account_id' }, * )) { * // ... * } * ``` */ list(params: SensitivityGroupListParams, options?: RequestOptions): PagePromise; /** * Delete a single sensitivity group. * * @example * ```ts * const sensitivityGroup = * await client.zeroTrust.dlp.sensitivityGroups.delete( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 'account_id' }, * ); * ``` */ delete(sensitivityGroupID: string, params: SensitivityGroupDeleteParams, options?: RequestOptions): APIPromise; /** * Retrieve a specific sensitivity group. * * @example * ```ts * const sensitivityGroup = * await client.zeroTrust.dlp.sensitivityGroups.get( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 'account_id' }, * ); * ``` */ get(sensitivityGroupID: string, params: SensitivityGroupGetParams, options?: RequestOptions): APIPromise; } export declare class SensitivityGroups extends BaseSensitivityGroups { levels: LevelsAPI.Levels; } export type SensitivityGroupListResponsesSinglePage = SinglePage; export interface SensitivityGroupCreateResponse { id: string; created_at: string; levels: Array; name: string; updated_at: string; description?: string | null; template_id?: string | null; } export declare namespace SensitivityGroupCreateResponse { interface Level { id: string; created_at: string; name: string; updated_at: string; description?: string | null; } } export interface SensitivityGroupUpdateResponse { id: string; created_at: string; levels: Array; name: string; updated_at: string; description?: string | null; template_id?: string | null; } export declare namespace SensitivityGroupUpdateResponse { interface Level { id: string; created_at: string; name: string; updated_at: string; description?: string | null; } } export interface SensitivityGroupListResponse { id: string; created_at: string; levels: Array; name: string; updated_at: string; description?: string | null; template_id?: string | null; } export declare namespace SensitivityGroupListResponse { interface Level { id: string; created_at: string; name: string; updated_at: string; description?: string | null; } } export type SensitivityGroupDeleteResponse = unknown; export interface SensitivityGroupGetResponse { id: string; created_at: string; levels: Array; name: string; updated_at: string; description?: string | null; template_id?: string | null; } export declare namespace SensitivityGroupGetResponse { interface Level { id: string; created_at: string; name: string; updated_at: string; description?: string | null; } } export interface SensitivityGroupCreateParams { /** * Path param */ account_id: string; /** * Body param */ name: string; /** * Body param */ description?: string | null; /** * Body param: Levels to create with the group. Mutually exclusive with * `template_id`. */ levels?: Array; /** * Body param */ template_id?: string | null; } export declare namespace SensitivityGroupCreateParams { interface Level { name: string; description?: string | null; } } export interface SensitivityGroupUpdateParams { /** * Path param */ account_id: string; /** * Body param */ description?: string | null; /** * Body param: The desired final state of levels. * * - `None` (omitted): no level changes. * - `Some([])`: delete all levels. * - `Some([...])`: desired final set + order. */ levels?: Array | null; /** * Body param */ name?: string | null; } export declare namespace SensitivityGroupUpdateParams { interface Level { /** * If `None` (omitted), a new level will be created. Otherwise, an existing level * will be updated. */ id?: string | null; description?: string | null; name?: string | null; } } export interface SensitivityGroupListParams { account_id: string; } export interface SensitivityGroupDeleteParams { account_id: string; } export interface SensitivityGroupGetParams { account_id: string; } export declare namespace SensitivityGroups { export { type SensitivityGroupCreateResponse as SensitivityGroupCreateResponse, type SensitivityGroupUpdateResponse as SensitivityGroupUpdateResponse, type SensitivityGroupListResponse as SensitivityGroupListResponse, type SensitivityGroupDeleteResponse as SensitivityGroupDeleteResponse, type SensitivityGroupGetResponse as SensitivityGroupGetResponse, type SensitivityGroupListResponsesSinglePage as SensitivityGroupListResponsesSinglePage, type SensitivityGroupCreateParams as SensitivityGroupCreateParams, type SensitivityGroupUpdateParams as SensitivityGroupUpdateParams, type SensitivityGroupListParams as SensitivityGroupListParams, type SensitivityGroupDeleteParams as SensitivityGroupDeleteParams, type SensitivityGroupGetParams as SensitivityGroupGetParams, }; export { Levels as Levels, BaseLevels as BaseLevels, type LevelCreateResponse as LevelCreateResponse, type LevelUpdateResponse as LevelUpdateResponse, type LevelListResponse as LevelListResponse, type LevelDeleteResponse as LevelDeleteResponse, type LevelGetResponse as LevelGetResponse, type LevelListResponsesSinglePage as LevelListResponsesSinglePage, type LevelCreateParams as LevelCreateParams, type LevelUpdateParams as LevelUpdateParams, type LevelListParams as LevelListParams, type LevelDeleteParams as LevelDeleteParams, type LevelGetParams as LevelGetParams, }; } //# sourceMappingURL=sensitivity-groups.d.mts.map