/**
 * Cloudflare GOOGLE-TAG-GATEWAY API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service google-tag-gateway
 */
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 GetConfigRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
}).pipe(T.Http({
    method: "GET",
    path: "/zones/{zone_id}/settings/google-tag-gateway/config",
}));
export const GetConfigResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    enabled: Schema.Boolean,
    endpoint: Schema.String,
    hideOriginalIp: Schema.Boolean,
    measurementId: Schema.String,
    setUpTag: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
}).pipe(T.ResponsePath("result"));
export const getConfig = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: GetConfigRequest,
    output: GetConfigResponse,
    errors: [],
}));
export const PutConfigRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
    enabled: Schema.Boolean,
    endpoint: Schema.String,
    hideOriginalIp: Schema.Boolean,
    measurementId: Schema.String,
    setUpTag: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
}).pipe(T.Http({
    method: "PUT",
    path: "/zones/{zone_id}/settings/google-tag-gateway/config",
}));
export const PutConfigResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    enabled: Schema.Boolean,
    endpoint: Schema.String,
    hideOriginalIp: Schema.Boolean,
    measurementId: Schema.String,
    setUpTag: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
}).pipe(T.ResponsePath("result"));
export const putConfig = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: PutConfigRequest,
    output: PutConfigResponse,
    errors: [],
}));
//# sourceMappingURL=google-tag-gateway.js.map