"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.DeleteTriggerResponse$ = exports.DeleteTriggerResponse$outboundSchema = exports.DeleteTriggerResponse$inboundSchema = exports.DeleteTriggerRequest$ = exports.DeleteTriggerRequest$outboundSchema = exports.DeleteTriggerRequest$inboundSchema = exports.DeleteTriggerGlobals$ = exports.DeleteTriggerGlobals$outboundSchema = exports.DeleteTriggerGlobals$inboundSchema = void 0;
exports.deleteTriggerGlobalsToJSON = deleteTriggerGlobalsToJSON;
exports.deleteTriggerGlobalsFromJSON = deleteTriggerGlobalsFromJSON;
exports.deleteTriggerRequestToJSON = deleteTriggerRequestToJSON;
exports.deleteTriggerRequestFromJSON = deleteTriggerRequestFromJSON;
exports.deleteTriggerResponseToJSON = deleteTriggerResponseToJSON;
exports.deleteTriggerResponseFromJSON = deleteTriggerResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.DeleteTriggerGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.DeleteTriggerGlobals$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 DeleteTriggerGlobals$;
(function (DeleteTriggerGlobals$) {
    /** @deprecated use `DeleteTriggerGlobals$inboundSchema` instead. */
    DeleteTriggerGlobals$.inboundSchema = exports.DeleteTriggerGlobals$inboundSchema;
    /** @deprecated use `DeleteTriggerGlobals$outboundSchema` instead. */
    DeleteTriggerGlobals$.outboundSchema = exports.DeleteTriggerGlobals$outboundSchema;
})(DeleteTriggerGlobals$ || (exports.DeleteTriggerGlobals$ = DeleteTriggerGlobals$ = {}));
function deleteTriggerGlobalsToJSON(deleteTriggerGlobals) {
    return JSON.stringify(exports.DeleteTriggerGlobals$outboundSchema.parse(deleteTriggerGlobals));
}
function deleteTriggerGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteTriggerGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteTriggerGlobals' from JSON`);
}
/** @internal */
exports.DeleteTriggerRequest$inboundSchema = z.object({
    id: z.string(),
});
/** @internal */
exports.DeleteTriggerRequest$outboundSchema = z.object({
    id: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteTriggerRequest$;
(function (DeleteTriggerRequest$) {
    /** @deprecated use `DeleteTriggerRequest$inboundSchema` instead. */
    DeleteTriggerRequest$.inboundSchema = exports.DeleteTriggerRequest$inboundSchema;
    /** @deprecated use `DeleteTriggerRequest$outboundSchema` instead. */
    DeleteTriggerRequest$.outboundSchema = exports.DeleteTriggerRequest$outboundSchema;
})(DeleteTriggerRequest$ || (exports.DeleteTriggerRequest$ = DeleteTriggerRequest$ = {}));
function deleteTriggerRequestToJSON(deleteTriggerRequest) {
    return JSON.stringify(exports.DeleteTriggerRequest$outboundSchema.parse(deleteTriggerRequest));
}
function deleteTriggerRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteTriggerRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteTriggerRequest' from JSON`);
}
/** @internal */
exports.DeleteTriggerResponse$inboundSchema = z.object({
    message: z.string(),
});
/** @internal */
exports.DeleteTriggerResponse$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 DeleteTriggerResponse$;
(function (DeleteTriggerResponse$) {
    /** @deprecated use `DeleteTriggerResponse$inboundSchema` instead. */
    DeleteTriggerResponse$.inboundSchema = exports.DeleteTriggerResponse$inboundSchema;
    /** @deprecated use `DeleteTriggerResponse$outboundSchema` instead. */
    DeleteTriggerResponse$.outboundSchema = exports.DeleteTriggerResponse$outboundSchema;
})(DeleteTriggerResponse$ || (exports.DeleteTriggerResponse$ = DeleteTriggerResponse$ = {}));
function deleteTriggerResponseToJSON(deleteTriggerResponse) {
    return JSON.stringify(exports.DeleteTriggerResponse$outboundSchema.parse(deleteTriggerResponse));
}
function deleteTriggerResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteTriggerResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteTriggerResponse' from JSON`);
}
//# sourceMappingURL=deletetrigger.js.map