/**
 * Cloudflare URL-NORMALIZATION API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service url-normalization
 */
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 GetUrlNormalizationRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/url_normalization" }));
export const GetUrlNormalizationResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    scope: Schema.Union([
        Schema.Literals(["incoming", "both", "none"]),
        Schema.String,
    ]),
    type: Schema.Union([
        Schema.Literals(["cloudflare", "rfc3986"]),
        Schema.String,
    ]),
}).pipe(T.ResponsePath("result"));
export const getUrlNormalization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: GetUrlNormalizationRequest,
    output: GetUrlNormalizationResponse,
    errors: [],
}));
export const PutUrlNormalizationRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
    scope: Schema.Union([
        Schema.Literals(["incoming", "both", "none"]),
        Schema.String,
    ]),
    type: Schema.Union([
        Schema.Literals(["cloudflare", "rfc3986"]),
        Schema.String,
    ]),
}).pipe(T.Http({ method: "PUT", path: "/zones/{zone_id}/url_normalization" }));
export const PutUrlNormalizationResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    scope: Schema.Union([
        Schema.Literals(["incoming", "both", "none"]),
        Schema.String,
    ]),
    type: Schema.Union([
        Schema.Literals(["cloudflare", "rfc3986"]),
        Schema.String,
    ]),
}).pipe(T.ResponsePath("result"));
export const putUrlNormalization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: PutUrlNormalizationRequest,
    output: PutUrlNormalizationResponse,
    errors: [],
}));
export const DeleteUrlNormalizationRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
}).pipe(T.Http({ method: "DELETE", path: "/zones/{zone_id}/url_normalization" }));
export const DeleteUrlNormalizationResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
export const deleteUrlNormalization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: DeleteUrlNormalizationRequest,
    output: DeleteUrlNormalizationResponse,
    errors: [],
}));
//# sourceMappingURL=url-normalization.js.map