/**
 * Cloudflare ORIGIN-POST-QUANTUM-ENCRYPTION API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service origin-post-quantum-encryption
 */
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 GetOriginPostQuantumEncryptionRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
}).pipe(T.Http({
    method: "GET",
    path: "/zones/{zone_id}/cache/origin_post_quantum_encryption",
}));
export const GetOriginPostQuantumEncryptionResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.Literal("origin_pqe"),
    editable: Schema.Boolean,
    value: Schema.Literals(["preferred", "supported", "off"]),
    modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
})
    .pipe(Schema.encodeKeys({
    id: "id",
    editable: "editable",
    value: "value",
    modifiedOn: "modified_on",
}))
    .pipe(T.ResponsePath("result"));
export const getOriginPostQuantumEncryption = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: GetOriginPostQuantumEncryptionRequest,
    output: GetOriginPostQuantumEncryptionResponse,
    errors: [],
}));
export const PutOriginPostQuantumEncryptionRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
    value: Schema.Literals(["preferred", "supported", "off"]),
}).pipe(T.Http({
    method: "PUT",
    path: "/zones/{zone_id}/cache/origin_post_quantum_encryption",
}));
export const PutOriginPostQuantumEncryptionResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.Literal("origin_pqe"),
    editable: Schema.Boolean,
    value: Schema.Literals(["preferred", "supported", "off"]),
    modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
})
    .pipe(Schema.encodeKeys({
    id: "id",
    editable: "editable",
    value: "value",
    modifiedOn: "modified_on",
}))
    .pipe(T.ResponsePath("result"));
export const putOriginPostQuantumEncryption = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: PutOriginPostQuantumEncryptionRequest,
    output: PutOriginPostQuantumEncryptionResponse,
    errors: [],
}));
//# sourceMappingURL=origin-post-quantum-encryption.js.map