import { APIResource } from "../../../core/resource.js"; import { APIPromise } from "../../../core/api-promise.js"; import { PagePromise, SinglePage } from "../../../core/pagination.js"; import { RequestOptions } from "../../../internal/request-options.js"; export declare class BaseCustomPromptTopics extends APIResource { static readonly _key: readonly ['zeroTrust', 'dlp', 'customPromptTopics']; /** * Creates a DLP custom prompt topic entry. * * @example * ```ts * const customPromptTopic = * await client.zeroTrust.dlp.customPromptTopics.create({ * account_id: 'account_id', * enabled: true, * name: 'name', * topic: 'topic', * }); * ``` */ create(params: CustomPromptTopicCreateParams, options?: RequestOptions): APIPromise; /** * Updates a DLP custom prompt topic entry. * * @example * ```ts * const customPromptTopic = * await client.zeroTrust.dlp.customPromptTopics.update( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { * account_id: 'account_id', * enabled: true, * name: 'name', * topic: 'topic', * }, * ); * ``` */ update(entryID: string, params: CustomPromptTopicUpdateParams, options?: RequestOptions): APIPromise; /** * Lists all DLP custom prompt topic entries in an account. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const customPromptTopic of client.zeroTrust.dlp.customPromptTopics.list( * { account_id: 'account_id' }, * )) { * // ... * } * ``` */ list(params: CustomPromptTopicListParams, options?: RequestOptions): PagePromise; /** * Deletes a DLP custom prompt topic entry. * * @example * ```ts * const customPromptTopic = * await client.zeroTrust.dlp.customPromptTopics.delete( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 'account_id' }, * ); * ``` */ delete(entryID: string, params: CustomPromptTopicDeleteParams, options?: RequestOptions): APIPromise; /** * Fetches a DLP custom prompt topic entry by ID. * * @example * ```ts * const customPromptTopic = * await client.zeroTrust.dlp.customPromptTopics.get( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 'account_id' }, * ); * ``` */ get(entryID: string, params: CustomPromptTopicGetParams, options?: RequestOptions): APIPromise; } export declare class CustomPromptTopics extends BaseCustomPromptTopics { } export type CustomPromptTopicsSinglePage = SinglePage; export interface CustomPromptTopic { id: string; created_at: string; /** * @deprecated */ enabled: boolean; name: string; topic: string; updated_at: string; description?: string | null; /** * @deprecated */ profile_id?: string | null; } export type CustomPromptTopicDeleteResponse = unknown; export interface CustomPromptTopicCreateParams { /** * Path param */ account_id: string; /** * Body param */ enabled: boolean; /** * Body param */ name: string; /** * Body param */ topic: string; /** * Body param */ description?: string | null; /** * Body param */ profile_id?: string; } export interface CustomPromptTopicUpdateParams { /** * Path param */ account_id: string; /** * Body param */ enabled: boolean; /** * Body param */ name: string; /** * Body param */ topic: string; /** * Body param */ description?: string | null; } export interface CustomPromptTopicListParams { account_id: string; } export interface CustomPromptTopicDeleteParams { account_id: string; } export interface CustomPromptTopicGetParams { account_id: string; } export declare namespace CustomPromptTopics { export { type CustomPromptTopic as CustomPromptTopic, type CustomPromptTopicDeleteResponse as CustomPromptTopicDeleteResponse, type CustomPromptTopicsSinglePage as CustomPromptTopicsSinglePage, type CustomPromptTopicCreateParams as CustomPromptTopicCreateParams, type CustomPromptTopicUpdateParams as CustomPromptTopicUpdateParams, type CustomPromptTopicListParams as CustomPromptTopicListParams, type CustomPromptTopicDeleteParams as CustomPromptTopicDeleteParams, type CustomPromptTopicGetParams as CustomPromptTopicGetParams, }; } //# sourceMappingURL=custom-prompt-topics.d.ts.map