/**
 * Cloudflare MANAGED-TRANSFORMS API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service managed-transforms
 */
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 ListManagedTransformsRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/managed_headers" }));
export const ListManagedTransformsResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    managedRequestHeaders: Schema.Array(Schema.Struct({
        id: Schema.String,
        enabled: Schema.Boolean,
        hasConflict: Schema.Boolean,
        conflictsWith: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
    }).pipe(Schema.encodeKeys({
        id: "id",
        enabled: "enabled",
        hasConflict: "has_conflict",
        conflictsWith: "conflicts_with",
    }))),
    managedResponseHeaders: Schema.Array(Schema.Struct({
        id: Schema.String,
        enabled: Schema.Boolean,
        hasConflict: Schema.Boolean,
        conflictsWith: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
    }).pipe(Schema.encodeKeys({
        id: "id",
        enabled: "enabled",
        hasConflict: "has_conflict",
        conflictsWith: "conflicts_with",
    }))),
})
    .pipe(Schema.encodeKeys({
    managedRequestHeaders: "managed_request_headers",
    managedResponseHeaders: "managed_response_headers",
}))
    .pipe(T.ResponsePath("result"));
export const listManagedTransforms = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: ListManagedTransformsRequest,
    output: ListManagedTransformsResponse,
    errors: [],
}));
export const PatchManagedTransformRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
    managedRequestHeaders: Schema.Array(Schema.Struct({
        id: Schema.String,
        enabled: Schema.Boolean,
    })),
    managedResponseHeaders: Schema.Array(Schema.Struct({
        id: Schema.String,
        enabled: Schema.Boolean,
    })),
}).pipe(Schema.encodeKeys({
    managedRequestHeaders: "managed_request_headers",
    managedResponseHeaders: "managed_response_headers",
}), T.Http({ method: "PATCH", path: "/zones/{zone_id}/managed_headers" }));
export const PatchManagedTransformResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    managedRequestHeaders: Schema.Array(Schema.Struct({
        id: Schema.String,
        enabled: Schema.Boolean,
        hasConflict: Schema.Boolean,
        conflictsWith: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
    }).pipe(Schema.encodeKeys({
        id: "id",
        enabled: "enabled",
        hasConflict: "has_conflict",
        conflictsWith: "conflicts_with",
    }))),
    managedResponseHeaders: Schema.Array(Schema.Struct({
        id: Schema.String,
        enabled: Schema.Boolean,
        hasConflict: Schema.Boolean,
        conflictsWith: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
    }).pipe(Schema.encodeKeys({
        id: "id",
        enabled: "enabled",
        hasConflict: "has_conflict",
        conflictsWith: "conflicts_with",
    }))),
})
    .pipe(Schema.encodeKeys({
    managedRequestHeaders: "managed_request_headers",
    managedResponseHeaders: "managed_response_headers",
}))
    .pipe(T.ResponsePath("result"));
export const patchManagedTransform = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: PatchManagedTransformRequest,
    output: PatchManagedTransformResponse,
    errors: [],
}));
export const DeleteManagedTransformRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
}).pipe(T.Http({ method: "DELETE", path: "/zones/{zone_id}/managed_headers" }));
export const DeleteManagedTransformResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
export const deleteManagedTransform = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: DeleteManagedTransformRequest,
    output: DeleteManagedTransformResponse,
    errors: [],
}));
//# sourceMappingURL=managed-transforms.js.map