/**
 * Cloudflare RESOURCE-TAGGING API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service resource-tagging
 */
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 GetAccountTagRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    accountId: Schema.String.pipe(T.HttpPath("account_id")),
    resourceId: Schema.String.pipe(T.HttpQuery("resource_id")),
    resourceType: Schema.Union([
        Schema.Literals([
            "access_application",
            "access_group",
            "account",
            "ai_gateway",
            "alerting_policy",
            "alerting_webhook",
            "cloudflared_tunnel",
            "d1_database",
            "durable_object_namespace",
            "gateway_list",
            "gateway_rule",
            "image",
            "kv_namespace",
            "queue",
            "r2_bucket",
            "resource_share",
            "stream_live_input",
            "stream_video",
            "worker",
            "worker_version",
        ]),
        Schema.String,
    ]).pipe(T.HttpQuery("resource_type")),
    workerId: Schema.optional(Schema.String).pipe(T.HttpQuery("worker_id")),
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tags" }));
export const GetAccountTagResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
    Schema.Struct({
        id: Schema.String,
        accessApplicationId: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("access_application_policy"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        accessApplicationId: "access_application_id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("api_gateway_operation"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("custom_certificate"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("custom_hostname"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("dns_record"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("managed_client_certificate"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("worker_version"),
        workerId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        workerId: "worker_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("zone"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("access_application"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("access_group"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("account"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("ai_gateway"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("alerting_policy"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("alerting_webhook"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("cloudflared_tunnel"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("d1_database"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("durable_object_namespace"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("gateway_list"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("gateway_rule"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("image"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("kv_namespace"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("queue"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("r2_bucket"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("resource_share"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("stream_live_input"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("stream_video"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("worker"),
    }),
]).pipe(T.ResponsePath("result"));
export const getAccountTag = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: GetAccountTagRequest,
    output: GetAccountTagResponse,
    errors: [],
}));
export const PutAccountTagRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    accountId: Schema.String.pipe(T.HttpPath("account_id")),
    ifMatch: Schema.optional(Schema.String).pipe(T.HttpHeader("If-Match")),
    resourceId: Schema.String,
    resourceType: Schema.Union([
        Schema.Literals([
            "access_application",
            "access_group",
            "account",
            "ai_gateway",
            "alerting_policy",
            "alerting_webhook",
            "cloudflared_tunnel",
            "d1_database",
            "durable_object_namespace",
            "gateway_list",
            "gateway_rule",
            "image",
            "kv_namespace",
            "queue",
            "r2_bucket",
            "resource_share",
            "stream_live_input",
            "stream_video",
            "worker",
            "worker_version",
        ]),
        Schema.String,
    ]),
    workerId: Schema.optional(Schema.String),
    tags: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
}).pipe(Schema.encodeKeys({
    resourceId: "resource_id",
    resourceType: "resource_type",
    workerId: "worker_id",
    tags: "tags",
}), T.Http({ method: "PUT", path: "/accounts/{account_id}/tags" }));
export const PutAccountTagResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
    Schema.Struct({
        id: Schema.String,
        accessApplicationId: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("access_application_policy"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        accessApplicationId: "access_application_id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("api_gateway_operation"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("custom_certificate"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("custom_hostname"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("dns_record"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("managed_client_certificate"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("worker_version"),
        workerId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        workerId: "worker_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("zone"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("access_application"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("access_group"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("account"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("ai_gateway"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("alerting_policy"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("alerting_webhook"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("cloudflared_tunnel"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("d1_database"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("durable_object_namespace"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("gateway_list"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("gateway_rule"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("image"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("kv_namespace"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("queue"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("r2_bucket"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("resource_share"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("stream_live_input"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("stream_video"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("worker"),
    }),
]).pipe(T.ResponsePath("result"));
export const putAccountTag = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: PutAccountTagRequest,
    output: PutAccountTagResponse,
    errors: [],
}));
export const DeleteAccountTagRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    accountId: Schema.String.pipe(T.HttpPath("account_id")),
    ifMatch: Schema.optional(Schema.String).pipe(T.HttpHeader("If-Match")),
}).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/tags" }));
export const DeleteAccountTagResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
export const deleteAccountTag = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: DeleteAccountTagRequest,
    output: DeleteAccountTagResponse,
    errors: [],
}));
export const ListKeysRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    accountId: Schema.String.pipe(T.HttpPath("account_id")),
    cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tags/keys" }));
export const ListKeysResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    result: Schema.Array(Schema.String),
    resultInfo: Schema.optional(Schema.Union([
        Schema.Struct({
            cursors: Schema.optional(Schema.Union([
                Schema.Struct({
                    after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                }),
                Schema.Null,
            ])),
        }),
        Schema.Null,
    ])),
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
export const listKeys = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
    input: ListKeysRequest,
    output: ListKeysResponse,
    errors: [],
    pagination: {
        mode: "cursor",
        inputToken: "cursor",
        outputToken: "resultInfo.cursors.after",
        items: "result",
    },
}));
export const ListResourceTaggingsRequest = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    accountId: Schema.String.pipe(T.HttpPath("account_id")),
    cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
    tag: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("tag")),
    type: Schema.optional(Schema.Array(Schema.Union([
        Schema.Literals([
            "access_application",
            "access_application_policy",
            "access_group",
            "account",
            "ai_gateway",
            "alerting_policy",
            "alerting_webhook",
            "api_gateway_operation",
            "cloudflared_tunnel",
            "custom_certificate",
            "custom_hostname",
            "d1_database",
            "dns_record",
            "durable_object_namespace",
            "gateway_list",
            "gateway_rule",
            "image",
            "kv_namespace",
            "managed_client_certificate",
            "queue",
            "r2_bucket",
            "resource_share",
            "stream_live_input",
            "stream_video",
            "worker",
            "worker_version",
            "zone",
        ]),
        Schema.String,
    ]))).pipe(T.HttpQuery("type")),
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tags/resources" }));
export const ListResourceTaggingsResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    result: Schema.Array(Schema.Union([
        Schema.Struct({
            id: Schema.String,
            accessApplicationId: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("access_application_policy"),
            zoneId: Schema.String,
        }).pipe(Schema.encodeKeys({
            id: "id",
            accessApplicationId: "access_application_id",
            etag: "etag",
            name: "name",
            tags: "tags",
            type: "type",
            zoneId: "zone_id",
        })),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("api_gateway_operation"),
            zoneId: Schema.String,
        }).pipe(Schema.encodeKeys({
            id: "id",
            etag: "etag",
            name: "name",
            tags: "tags",
            type: "type",
            zoneId: "zone_id",
        })),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("custom_certificate"),
            zoneId: Schema.String,
        }).pipe(Schema.encodeKeys({
            id: "id",
            etag: "etag",
            name: "name",
            tags: "tags",
            type: "type",
            zoneId: "zone_id",
        })),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("custom_hostname"),
            zoneId: Schema.String,
        }).pipe(Schema.encodeKeys({
            id: "id",
            etag: "etag",
            name: "name",
            tags: "tags",
            type: "type",
            zoneId: "zone_id",
        })),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("dns_record"),
            zoneId: Schema.String,
        }).pipe(Schema.encodeKeys({
            id: "id",
            etag: "etag",
            name: "name",
            tags: "tags",
            type: "type",
            zoneId: "zone_id",
        })),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("managed_client_certificate"),
            zoneId: Schema.String,
        }).pipe(Schema.encodeKeys({
            id: "id",
            etag: "etag",
            name: "name",
            tags: "tags",
            type: "type",
            zoneId: "zone_id",
        })),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("worker_version"),
            workerId: Schema.String,
        }).pipe(Schema.encodeKeys({
            id: "id",
            etag: "etag",
            name: "name",
            tags: "tags",
            type: "type",
            workerId: "worker_id",
        })),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("zone"),
            zoneId: Schema.String,
        }).pipe(Schema.encodeKeys({
            id: "id",
            etag: "etag",
            name: "name",
            tags: "tags",
            type: "type",
            zoneId: "zone_id",
        })),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("access_application"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("access_group"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("account"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("ai_gateway"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("alerting_policy"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("alerting_webhook"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("cloudflared_tunnel"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("d1_database"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("durable_object_namespace"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("gateway_list"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("gateway_rule"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("image"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("kv_namespace"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("queue"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("r2_bucket"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("resource_share"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("stream_live_input"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("stream_video"),
        }),
        Schema.Struct({
            id: Schema.String,
            etag: Schema.String,
            name: Schema.String,
            tags: Schema.Record(Schema.String, Schema.Unknown),
            type: Schema.Literal("worker"),
        }),
    ])),
    resultInfo: Schema.optional(Schema.Union([
        Schema.Struct({
            cursors: Schema.optional(Schema.Union([
                Schema.Struct({
                    after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                }),
                Schema.Null,
            ])),
        }),
        Schema.Null,
    ])),
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
export const listResourceTaggings = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
    input: ListResourceTaggingsRequest,
    output: ListResourceTaggingsResponse,
    errors: [],
    pagination: {
        mode: "cursor",
        inputToken: "cursor",
        outputToken: "resultInfo.cursors.after",
        items: "result",
    },
}));
export const ListValuesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    tagKey: Schema.String.pipe(T.HttpPath("tagKey")),
    accountId: Schema.String.pipe(T.HttpPath("account_id")),
    cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
    type: Schema.optional(Schema.Union([
        Schema.Literals([
            "access_application",
            "access_application_policy",
            "access_group",
            "account",
            "ai_gateway",
            "alerting_policy",
            "alerting_webhook",
            "api_gateway_operation",
            "cloudflared_tunnel",
            "custom_certificate",
            "custom_hostname",
            "d1_database",
            "dns_record",
            "durable_object_namespace",
            "gateway_list",
            "gateway_rule",
            "image",
            "kv_namespace",
            "managed_client_certificate",
            "queue",
            "r2_bucket",
            "resource_share",
            "stream_live_input",
            "stream_video",
            "worker",
            "worker_version",
            "zone",
        ]),
        Schema.String,
    ])).pipe(T.HttpQuery("type")),
}).pipe(T.Http({
    method: "GET",
    path: "/accounts/{account_id}/tags/values/{tagKey}",
}));
export const ListValuesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    result: Schema.Array(Schema.String),
    resultInfo: Schema.optional(Schema.Union([
        Schema.Struct({
            cursors: Schema.optional(Schema.Union([
                Schema.Struct({
                    after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
                }),
                Schema.Null,
            ])),
        }),
        Schema.Null,
    ])),
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
export const listValues = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
    input: ListValuesRequest,
    output: ListValuesResponse,
    errors: [],
    pagination: {
        mode: "cursor",
        inputToken: "cursor",
        outputToken: "resultInfo.cursors.after",
        items: "result",
    },
}));
export const GetZoneTagRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
    resourceId: Schema.String.pipe(T.HttpQuery("resource_id")),
    resourceType: Schema.Union([
        Schema.Literals([
            "access_application_policy",
            "api_gateway_operation",
            "custom_certificate",
            "custom_hostname",
            "dns_record",
            "managed_client_certificate",
            "zone",
        ]),
        Schema.String,
    ]).pipe(T.HttpQuery("resource_type")),
    accessApplicationId: Schema.optional(Schema.String).pipe(T.HttpQuery("access_application_id")),
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/tags" }));
export const GetZoneTagResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
    Schema.Struct({
        id: Schema.String,
        accessApplicationId: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("access_application_policy"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        accessApplicationId: "access_application_id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("api_gateway_operation"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("custom_certificate"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("custom_hostname"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("dns_record"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("managed_client_certificate"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("worker_version"),
        workerId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        workerId: "worker_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("zone"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("access_application"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("access_group"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("account"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("ai_gateway"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("alerting_policy"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("alerting_webhook"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("cloudflared_tunnel"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("d1_database"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("durable_object_namespace"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("gateway_list"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("gateway_rule"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("image"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("kv_namespace"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("queue"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("r2_bucket"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("resource_share"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("stream_live_input"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("stream_video"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("worker"),
    }),
]).pipe(T.ResponsePath("result"));
export const getZoneTag = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: GetZoneTagRequest,
    output: GetZoneTagResponse,
    errors: [],
}));
export const PutZoneTagRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
    ifMatch: Schema.optional(Schema.String).pipe(T.HttpHeader("If-Match")),
    resourceId: Schema.String,
    resourceType: Schema.Union([
        Schema.Literals([
            "api_gateway_operation",
            "custom_certificate",
            "custom_hostname",
            "dns_record",
            "managed_client_certificate",
            "zone",
            "access_application_policy",
        ]),
        Schema.String,
    ]),
    tags: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
    accessApplicationId: Schema.optional(Schema.String),
}).pipe(Schema.encodeKeys({
    resourceId: "resource_id",
    resourceType: "resource_type",
    tags: "tags",
    accessApplicationId: "access_application_id",
}), T.Http({ method: "PUT", path: "/zones/{zone_id}/tags" }));
export const PutZoneTagResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
    Schema.Struct({
        id: Schema.String,
        accessApplicationId: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("access_application_policy"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        accessApplicationId: "access_application_id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("api_gateway_operation"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("custom_certificate"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("custom_hostname"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("dns_record"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("managed_client_certificate"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("worker_version"),
        workerId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        workerId: "worker_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("zone"),
        zoneId: Schema.String,
    }).pipe(Schema.encodeKeys({
        id: "id",
        etag: "etag",
        name: "name",
        tags: "tags",
        type: "type",
        zoneId: "zone_id",
    })),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("access_application"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("access_group"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("account"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("ai_gateway"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("alerting_policy"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("alerting_webhook"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("cloudflared_tunnel"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("d1_database"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("durable_object_namespace"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("gateway_list"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("gateway_rule"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("image"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("kv_namespace"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("queue"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("r2_bucket"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("resource_share"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("stream_live_input"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("stream_video"),
    }),
    Schema.Struct({
        id: Schema.String,
        etag: Schema.String,
        name: Schema.String,
        tags: Schema.Record(Schema.String, Schema.Unknown),
        type: Schema.Literal("worker"),
    }),
]).pipe(T.ResponsePath("result"));
export const putZoneTag = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: PutZoneTagRequest,
    output: PutZoneTagResponse,
    errors: [],
}));
export const DeleteZoneTagRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
    ifMatch: Schema.optional(Schema.String).pipe(T.HttpHeader("If-Match")),
}).pipe(T.Http({ method: "DELETE", path: "/zones/{zone_id}/tags" }));
export const DeleteZoneTagResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
export const deleteZoneTag = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: DeleteZoneTagRequest,
    output: DeleteZoneTagResponse,
    errors: [],
}));
//# sourceMappingURL=resource-tagging.js.map