/**
 * Cloudflare AI-SECURITY API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service ai-security
 */
import * as Schema from "effect/Schema";
import * as API from "../client/api.js";
import * as T from "../traits.js";
import {} from "../errors.js";
export const GetAiSecurityRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/ai-security/settings" }));
export const GetAiSecurityResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
}).pipe(T.ResponsePath("result"));
export const getAiSecurity = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: GetAiSecurityRequest,
    output: GetAiSecurityResponse,
    errors: [],
}));
export const PutAiSecurityRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
    enabled: Schema.optional(Schema.Boolean),
}).pipe(T.Http({ method: "PUT", path: "/zones/{zone_id}/ai-security/settings" }));
export const PutAiSecurityResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
}).pipe(T.ResponsePath("result"));
export const putAiSecurity = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: PutAiSecurityRequest,
    output: PutAiSecurityResponse,
    errors: [],
}));
export const GetCustomTopicRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/ai-security/custom-topics" }));
export const GetCustomTopicResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    topics: Schema.optional(Schema.Union([
        Schema.Array(Schema.Struct({
            label: Schema.String,
            topic: Schema.String,
        })),
        Schema.Null,
    ])),
}).pipe(T.ResponsePath("result"));
export const getCustomTopic = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: GetCustomTopicRequest,
    output: GetCustomTopicResponse,
    errors: [],
}));
export const PutCustomTopicRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
    topics: Schema.optional(Schema.Array(Schema.Struct({
        label: Schema.String,
        topic: Schema.String,
    }))),
}).pipe(T.Http({ method: "PUT", path: "/zones/{zone_id}/ai-security/custom-topics" }));
export const PutCustomTopicResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    topics: Schema.optional(Schema.Union([
        Schema.Array(Schema.Struct({
            label: Schema.String,
            topic: Schema.String,
        })),
        Schema.Null,
    ])),
}).pipe(T.ResponsePath("result"));
export const putCustomTopic = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: PutCustomTopicRequest,
    output: PutCustomTopicResponse,
    errors: [],
}));
//# sourceMappingURL=ai-security.js.map