"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.DeleteUploadPresetResponse$ = exports.DeleteUploadPresetResponse$outboundSchema = exports.DeleteUploadPresetResponse$inboundSchema = exports.DeleteUploadPresetRequest$ = exports.DeleteUploadPresetRequest$outboundSchema = exports.DeleteUploadPresetRequest$inboundSchema = exports.DeleteUploadPresetGlobals$ = exports.DeleteUploadPresetGlobals$outboundSchema = exports.DeleteUploadPresetGlobals$inboundSchema = void 0;
exports.deleteUploadPresetGlobalsToJSON = deleteUploadPresetGlobalsToJSON;
exports.deleteUploadPresetGlobalsFromJSON = deleteUploadPresetGlobalsFromJSON;
exports.deleteUploadPresetRequestToJSON = deleteUploadPresetRequestToJSON;
exports.deleteUploadPresetRequestFromJSON = deleteUploadPresetRequestFromJSON;
exports.deleteUploadPresetResponseToJSON = deleteUploadPresetResponseToJSON;
exports.deleteUploadPresetResponseFromJSON = deleteUploadPresetResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.DeleteUploadPresetGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.DeleteUploadPresetGlobals$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 DeleteUploadPresetGlobals$;
(function (DeleteUploadPresetGlobals$) {
    /** @deprecated use `DeleteUploadPresetGlobals$inboundSchema` instead. */
    DeleteUploadPresetGlobals$.inboundSchema = exports.DeleteUploadPresetGlobals$inboundSchema;
    /** @deprecated use `DeleteUploadPresetGlobals$outboundSchema` instead. */
    DeleteUploadPresetGlobals$.outboundSchema = exports.DeleteUploadPresetGlobals$outboundSchema;
})(DeleteUploadPresetGlobals$ || (exports.DeleteUploadPresetGlobals$ = DeleteUploadPresetGlobals$ = {}));
function deleteUploadPresetGlobalsToJSON(deleteUploadPresetGlobals) {
    return JSON.stringify(exports.DeleteUploadPresetGlobals$outboundSchema.parse(deleteUploadPresetGlobals));
}
function deleteUploadPresetGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteUploadPresetGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteUploadPresetGlobals' from JSON`);
}
/** @internal */
exports.DeleteUploadPresetRequest$inboundSchema = z.object({
    name: z.string(),
});
/** @internal */
exports.DeleteUploadPresetRequest$outboundSchema = z.object({
    name: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteUploadPresetRequest$;
(function (DeleteUploadPresetRequest$) {
    /** @deprecated use `DeleteUploadPresetRequest$inboundSchema` instead. */
    DeleteUploadPresetRequest$.inboundSchema = exports.DeleteUploadPresetRequest$inboundSchema;
    /** @deprecated use `DeleteUploadPresetRequest$outboundSchema` instead. */
    DeleteUploadPresetRequest$.outboundSchema = exports.DeleteUploadPresetRequest$outboundSchema;
})(DeleteUploadPresetRequest$ || (exports.DeleteUploadPresetRequest$ = DeleteUploadPresetRequest$ = {}));
function deleteUploadPresetRequestToJSON(deleteUploadPresetRequest) {
    return JSON.stringify(exports.DeleteUploadPresetRequest$outboundSchema.parse(deleteUploadPresetRequest));
}
function deleteUploadPresetRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteUploadPresetRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteUploadPresetRequest' from JSON`);
}
/** @internal */
exports.DeleteUploadPresetResponse$inboundSchema = z.object({
    message: z.string(),
    external_id: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "external_id": "externalId",
    });
});
/** @internal */
exports.DeleteUploadPresetResponse$outboundSchema = z.object({
    message: z.string(),
    externalId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        externalId: "external_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteUploadPresetResponse$;
(function (DeleteUploadPresetResponse$) {
    /** @deprecated use `DeleteUploadPresetResponse$inboundSchema` instead. */
    DeleteUploadPresetResponse$.inboundSchema = exports.DeleteUploadPresetResponse$inboundSchema;
    /** @deprecated use `DeleteUploadPresetResponse$outboundSchema` instead. */
    DeleteUploadPresetResponse$.outboundSchema = exports.DeleteUploadPresetResponse$outboundSchema;
})(DeleteUploadPresetResponse$ || (exports.DeleteUploadPresetResponse$ = DeleteUploadPresetResponse$ = {}));
function deleteUploadPresetResponseToJSON(deleteUploadPresetResponse) {
    return JSON.stringify(exports.DeleteUploadPresetResponse$outboundSchema.parse(deleteUploadPresetResponse));
}
function deleteUploadPresetResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteUploadPresetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteUploadPresetResponse' from JSON`);
}
//# sourceMappingURL=deleteuploadpreset.js.map