import { APIResource } from "../../resource.js"; import * as Core from "../../core.js"; export declare class CustomTopics extends APIResource { /** * Set the AI Security for Apps custom topic categories for a zone. * * A maximum of 20 custom topics can be configured per zone. Each topic label must * be 2–20 characters using only lowercase letters (a–z), digits (0–9), and * hyphens. Each topic description must be 2–50 printable ASCII characters. * * Changes can take up to a minute to propagate to the zone. * * @example * ```ts * const customTopic = * await client.aiSecurity.customTopics.update({ * zone_id: '023e105f4ecef8ad9ca31a8372d0c353', * }); * ``` */ update(params: CustomTopicUpdateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Get the AI Security for Apps custom topic categories for a zone. * * @example * ```ts * const customTopic = * await client.aiSecurity.customTopics.get({ * zone_id: '023e105f4ecef8ad9ca31a8372d0c353', * }); * ``` */ get(params: CustomTopicGetParams, options?: Core.RequestOptions): Core.APIPromise; } export interface CustomTopicUpdateResponse { /** * Custom topic categories for AI Security for Apps content detection. */ topics?: Array; } export declare namespace CustomTopicUpdateResponse { interface Topic { /** * Unique label identifier. Must contain only lowercase letters (a–z), digits * (0–9), and hyphens. */ label: string; /** * Description of the topic category. Must contain only printable ASCII characters. */ topic: string; } } export interface CustomTopicGetResponse { /** * Custom topic categories for AI Security for Apps content detection. */ topics?: Array; } export declare namespace CustomTopicGetResponse { interface Topic { /** * Unique label identifier. Must contain only lowercase letters (a–z), digits * (0–9), and hyphens. */ label: string; /** * Description of the topic category. Must contain only printable ASCII characters. */ topic: string; } } export interface CustomTopicUpdateParams { /** * Path param: Defines the zone. */ zone_id: string; /** * Body param: Custom topic categories for AI Security for Apps content detection. */ topics?: Array; } export declare namespace CustomTopicUpdateParams { interface Topic { /** * Unique label identifier. Must contain only lowercase letters (a–z), digits * (0–9), and hyphens. */ label: string; /** * Description of the topic category. Must contain only printable ASCII characters. */ topic: string; } } export interface CustomTopicGetParams { /** * Defines the zone. */ zone_id: string; } export declare namespace CustomTopics { export { type CustomTopicUpdateResponse as CustomTopicUpdateResponse, type CustomTopicGetResponse as CustomTopicGetResponse, type CustomTopicUpdateParams as CustomTopicUpdateParams, type CustomTopicGetParams as CustomTopicGetParams, }; } //# sourceMappingURL=custom-topics.d.ts.map