"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.UpdateUploadMappingResponse$ = exports.UpdateUploadMappingResponse$outboundSchema = exports.UpdateUploadMappingResponse$inboundSchema = exports.UpdateUploadMappingRequest$ = exports.UpdateUploadMappingRequest$outboundSchema = exports.UpdateUploadMappingRequest$inboundSchema = exports.UpdateUploadMappingGlobals$ = exports.UpdateUploadMappingGlobals$outboundSchema = exports.UpdateUploadMappingGlobals$inboundSchema = void 0;
exports.updateUploadMappingGlobalsToJSON = updateUploadMappingGlobalsToJSON;
exports.updateUploadMappingGlobalsFromJSON = updateUploadMappingGlobalsFromJSON;
exports.updateUploadMappingRequestToJSON = updateUploadMappingRequestToJSON;
exports.updateUploadMappingRequestFromJSON = updateUploadMappingRequestFromJSON;
exports.updateUploadMappingResponseToJSON = updateUploadMappingResponseToJSON;
exports.updateUploadMappingResponseFromJSON = updateUploadMappingResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.UpdateUploadMappingGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.UpdateUploadMappingGlobals$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 UpdateUploadMappingGlobals$;
(function (UpdateUploadMappingGlobals$) {
    /** @deprecated use `UpdateUploadMappingGlobals$inboundSchema` instead. */
    UpdateUploadMappingGlobals$.inboundSchema = exports.UpdateUploadMappingGlobals$inboundSchema;
    /** @deprecated use `UpdateUploadMappingGlobals$outboundSchema` instead. */
    UpdateUploadMappingGlobals$.outboundSchema = exports.UpdateUploadMappingGlobals$outboundSchema;
})(UpdateUploadMappingGlobals$ || (exports.UpdateUploadMappingGlobals$ = UpdateUploadMappingGlobals$ = {}));
function updateUploadMappingGlobalsToJSON(updateUploadMappingGlobals) {
    return JSON.stringify(exports.UpdateUploadMappingGlobals$outboundSchema.parse(updateUploadMappingGlobals));
}
function updateUploadMappingGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateUploadMappingGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateUploadMappingGlobals' from JSON`);
}
/** @internal */
exports.UpdateUploadMappingRequest$inboundSchema = z.object({
    folder: z.string(),
    template: z.string(),
});
/** @internal */
exports.UpdateUploadMappingRequest$outboundSchema = z.object({
    folder: z.string(),
    template: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateUploadMappingRequest$;
(function (UpdateUploadMappingRequest$) {
    /** @deprecated use `UpdateUploadMappingRequest$inboundSchema` instead. */
    UpdateUploadMappingRequest$.inboundSchema = exports.UpdateUploadMappingRequest$inboundSchema;
    /** @deprecated use `UpdateUploadMappingRequest$outboundSchema` instead. */
    UpdateUploadMappingRequest$.outboundSchema = exports.UpdateUploadMappingRequest$outboundSchema;
})(UpdateUploadMappingRequest$ || (exports.UpdateUploadMappingRequest$ = UpdateUploadMappingRequest$ = {}));
function updateUploadMappingRequestToJSON(updateUploadMappingRequest) {
    return JSON.stringify(exports.UpdateUploadMappingRequest$outboundSchema.parse(updateUploadMappingRequest));
}
function updateUploadMappingRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateUploadMappingRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateUploadMappingRequest' from JSON`);
}
/** @internal */
exports.UpdateUploadMappingResponse$inboundSchema = z.object({
    message: z.string(),
    external_id: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "external_id": "externalId",
    });
});
/** @internal */
exports.UpdateUploadMappingResponse$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 UpdateUploadMappingResponse$;
(function (UpdateUploadMappingResponse$) {
    /** @deprecated use `UpdateUploadMappingResponse$inboundSchema` instead. */
    UpdateUploadMappingResponse$.inboundSchema = exports.UpdateUploadMappingResponse$inboundSchema;
    /** @deprecated use `UpdateUploadMappingResponse$outboundSchema` instead. */
    UpdateUploadMappingResponse$.outboundSchema = exports.UpdateUploadMappingResponse$outboundSchema;
})(UpdateUploadMappingResponse$ || (exports.UpdateUploadMappingResponse$ = UpdateUploadMappingResponse$ = {}));
function updateUploadMappingResponseToJSON(updateUploadMappingResponse) {
    return JSON.stringify(exports.UpdateUploadMappingResponse$outboundSchema.parse(updateUploadMappingResponse));
}
function updateUploadMappingResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateUploadMappingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateUploadMappingResponse' from JSON`);
}
//# sourceMappingURL=updateuploadmapping.js.map