"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpdateTriggerResponse$ = exports.UpdateTriggerResponse$outboundSchema = exports.UpdateTriggerResponse$inboundSchema = exports.UpdateTriggerRequest$ = exports.UpdateTriggerRequest$outboundSchema = exports.UpdateTriggerRequest$inboundSchema = exports.UpdateTriggerRequestBody$ = exports.UpdateTriggerRequestBody$outboundSchema = exports.UpdateTriggerRequestBody$inboundSchema = exports.UpdateTriggerGlobals$ = exports.UpdateTriggerGlobals$outboundSchema = exports.UpdateTriggerGlobals$inboundSchema = void 0;
exports.updateTriggerGlobalsToJSON = updateTriggerGlobalsToJSON;
exports.updateTriggerGlobalsFromJSON = updateTriggerGlobalsFromJSON;
exports.updateTriggerRequestBodyToJSON = updateTriggerRequestBodyToJSON;
exports.updateTriggerRequestBodyFromJSON = updateTriggerRequestBodyFromJSON;
exports.updateTriggerRequestToJSON = updateTriggerRequestToJSON;
exports.updateTriggerRequestFromJSON = updateTriggerRequestFromJSON;
exports.updateTriggerResponseToJSON = updateTriggerResponseToJSON;
exports.updateTriggerResponseFromJSON = updateTriggerResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.UpdateTriggerGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.UpdateTriggerGlobals$outboundSchema = z.object({
    cloudName: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        cloudName: "cloud_name",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateTriggerGlobals$;
(function (UpdateTriggerGlobals$) {
    /** @deprecated use `UpdateTriggerGlobals$inboundSchema` instead. */
    UpdateTriggerGlobals$.inboundSchema = exports.UpdateTriggerGlobals$inboundSchema;
    /** @deprecated use `UpdateTriggerGlobals$outboundSchema` instead. */
    UpdateTriggerGlobals$.outboundSchema = exports.UpdateTriggerGlobals$outboundSchema;
})(UpdateTriggerGlobals$ || (exports.UpdateTriggerGlobals$ = UpdateTriggerGlobals$ = {}));
function updateTriggerGlobalsToJSON(updateTriggerGlobals) {
    return JSON.stringify(exports.UpdateTriggerGlobals$outboundSchema.parse(updateTriggerGlobals));
}
function updateTriggerGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateTriggerGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateTriggerGlobals' from JSON`);
}
/** @internal */
exports.UpdateTriggerRequestBody$inboundSchema = z.object({
    new_uri: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "new_uri": "newUri",
    });
});
/** @internal */
exports.UpdateTriggerRequestBody$outboundSchema = z.object({
    newUri: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        newUri: "new_uri",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateTriggerRequestBody$;
(function (UpdateTriggerRequestBody$) {
    /** @deprecated use `UpdateTriggerRequestBody$inboundSchema` instead. */
    UpdateTriggerRequestBody$.inboundSchema = exports.UpdateTriggerRequestBody$inboundSchema;
    /** @deprecated use `UpdateTriggerRequestBody$outboundSchema` instead. */
    UpdateTriggerRequestBody$.outboundSchema = exports.UpdateTriggerRequestBody$outboundSchema;
})(UpdateTriggerRequestBody$ || (exports.UpdateTriggerRequestBody$ = UpdateTriggerRequestBody$ = {}));
function updateTriggerRequestBodyToJSON(updateTriggerRequestBody) {
    return JSON.stringify(exports.UpdateTriggerRequestBody$outboundSchema.parse(updateTriggerRequestBody));
}
function updateTriggerRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateTriggerRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateTriggerRequestBody' from JSON`);
}
/** @internal */
exports.UpdateTriggerRequest$inboundSchema = z.object({
    id: z.string(),
    RequestBody: z.lazy(() => exports.UpdateTriggerRequestBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.UpdateTriggerRequest$outboundSchema = z.object({
    id: z.string(),
    requestBody: z.lazy(() => exports.UpdateTriggerRequestBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        requestBody: "RequestBody",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateTriggerRequest$;
(function (UpdateTriggerRequest$) {
    /** @deprecated use `UpdateTriggerRequest$inboundSchema` instead. */
    UpdateTriggerRequest$.inboundSchema = exports.UpdateTriggerRequest$inboundSchema;
    /** @deprecated use `UpdateTriggerRequest$outboundSchema` instead. */
    UpdateTriggerRequest$.outboundSchema = exports.UpdateTriggerRequest$outboundSchema;
})(UpdateTriggerRequest$ || (exports.UpdateTriggerRequest$ = UpdateTriggerRequest$ = {}));
function updateTriggerRequestToJSON(updateTriggerRequest) {
    return JSON.stringify(exports.UpdateTriggerRequest$outboundSchema.parse(updateTriggerRequest));
}
function updateTriggerRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateTriggerRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateTriggerRequest' from JSON`);
}
/** @internal */
exports.UpdateTriggerResponse$inboundSchema = z.object({
    message: z.string(),
});
/** @internal */
exports.UpdateTriggerResponse$outboundSchema = z.object({
    message: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateTriggerResponse$;
(function (UpdateTriggerResponse$) {
    /** @deprecated use `UpdateTriggerResponse$inboundSchema` instead. */
    UpdateTriggerResponse$.inboundSchema = exports.UpdateTriggerResponse$inboundSchema;
    /** @deprecated use `UpdateTriggerResponse$outboundSchema` instead. */
    UpdateTriggerResponse$.outboundSchema = exports.UpdateTriggerResponse$outboundSchema;
})(UpdateTriggerResponse$ || (exports.UpdateTriggerResponse$ = UpdateTriggerResponse$ = {}));
function updateTriggerResponseToJSON(updateTriggerResponse) {
    return JSON.stringify(exports.UpdateTriggerResponse$outboundSchema.parse(updateTriggerResponse));
}
function updateTriggerResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateTriggerResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateTriggerResponse' from JSON`);
}
//# sourceMappingURL=updatetrigger.js.map