/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const UpdateUploadMappingGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const UpdateUploadMappingGlobals$outboundSchema = z.object({
    cloudName: z.string().optional(),
}).transform((v) => {
    return 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.
 */
export var UpdateUploadMappingGlobals$;
(function (UpdateUploadMappingGlobals$) {
    /** @deprecated use `UpdateUploadMappingGlobals$inboundSchema` instead. */
    UpdateUploadMappingGlobals$.inboundSchema = UpdateUploadMappingGlobals$inboundSchema;
    /** @deprecated use `UpdateUploadMappingGlobals$outboundSchema` instead. */
    UpdateUploadMappingGlobals$.outboundSchema = UpdateUploadMappingGlobals$outboundSchema;
})(UpdateUploadMappingGlobals$ || (UpdateUploadMappingGlobals$ = {}));
export function updateUploadMappingGlobalsToJSON(updateUploadMappingGlobals) {
    return JSON.stringify(UpdateUploadMappingGlobals$outboundSchema.parse(updateUploadMappingGlobals));
}
export function updateUploadMappingGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateUploadMappingGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateUploadMappingGlobals' from JSON`);
}
/** @internal */
export const UpdateUploadMappingRequest$inboundSchema = z.object({
    folder: z.string(),
    template: z.string(),
});
/** @internal */
export const 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.
 */
export var UpdateUploadMappingRequest$;
(function (UpdateUploadMappingRequest$) {
    /** @deprecated use `UpdateUploadMappingRequest$inboundSchema` instead. */
    UpdateUploadMappingRequest$.inboundSchema = UpdateUploadMappingRequest$inboundSchema;
    /** @deprecated use `UpdateUploadMappingRequest$outboundSchema` instead. */
    UpdateUploadMappingRequest$.outboundSchema = UpdateUploadMappingRequest$outboundSchema;
})(UpdateUploadMappingRequest$ || (UpdateUploadMappingRequest$ = {}));
export function updateUploadMappingRequestToJSON(updateUploadMappingRequest) {
    return JSON.stringify(UpdateUploadMappingRequest$outboundSchema.parse(updateUploadMappingRequest));
}
export function updateUploadMappingRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateUploadMappingRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateUploadMappingRequest' from JSON`);
}
/** @internal */
export const UpdateUploadMappingResponse$inboundSchema = z.object({
    message: z.string(),
    external_id: z.string(),
}).transform((v) => {
    return remap$(v, {
        "external_id": "externalId",
    });
});
/** @internal */
export const UpdateUploadMappingResponse$outboundSchema = z.object({
    message: z.string(),
    externalId: z.string(),
}).transform((v) => {
    return 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.
 */
export var UpdateUploadMappingResponse$;
(function (UpdateUploadMappingResponse$) {
    /** @deprecated use `UpdateUploadMappingResponse$inboundSchema` instead. */
    UpdateUploadMappingResponse$.inboundSchema = UpdateUploadMappingResponse$inboundSchema;
    /** @deprecated use `UpdateUploadMappingResponse$outboundSchema` instead. */
    UpdateUploadMappingResponse$.outboundSchema = UpdateUploadMappingResponse$outboundSchema;
})(UpdateUploadMappingResponse$ || (UpdateUploadMappingResponse$ = {}));
export function updateUploadMappingResponseToJSON(updateUploadMappingResponse) {
    return JSON.stringify(UpdateUploadMappingResponse$outboundSchema.parse(updateUploadMappingResponse));
}
export function updateUploadMappingResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateUploadMappingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateUploadMappingResponse' from JSON`);
}
//# sourceMappingURL=updateuploadmapping.js.map