/*
 * 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 CreateUploadMappingGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const CreateUploadMappingGlobals$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 CreateUploadMappingGlobals$;
(function (CreateUploadMappingGlobals$) {
    /** @deprecated use `CreateUploadMappingGlobals$inboundSchema` instead. */
    CreateUploadMappingGlobals$.inboundSchema = CreateUploadMappingGlobals$inboundSchema;
    /** @deprecated use `CreateUploadMappingGlobals$outboundSchema` instead. */
    CreateUploadMappingGlobals$.outboundSchema = CreateUploadMappingGlobals$outboundSchema;
})(CreateUploadMappingGlobals$ || (CreateUploadMappingGlobals$ = {}));
export function createUploadMappingGlobalsToJSON(createUploadMappingGlobals) {
    return JSON.stringify(CreateUploadMappingGlobals$outboundSchema.parse(createUploadMappingGlobals));
}
export function createUploadMappingGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateUploadMappingGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateUploadMappingGlobals' from JSON`);
}
/** @internal */
export const CreateUploadMappingRequest$inboundSchema = z.object({
    folder: z.string(),
    template: z.string(),
});
/** @internal */
export const CreateUploadMappingRequest$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 CreateUploadMappingRequest$;
(function (CreateUploadMappingRequest$) {
    /** @deprecated use `CreateUploadMappingRequest$inboundSchema` instead. */
    CreateUploadMappingRequest$.inboundSchema = CreateUploadMappingRequest$inboundSchema;
    /** @deprecated use `CreateUploadMappingRequest$outboundSchema` instead. */
    CreateUploadMappingRequest$.outboundSchema = CreateUploadMappingRequest$outboundSchema;
})(CreateUploadMappingRequest$ || (CreateUploadMappingRequest$ = {}));
export function createUploadMappingRequestToJSON(createUploadMappingRequest) {
    return JSON.stringify(CreateUploadMappingRequest$outboundSchema.parse(createUploadMappingRequest));
}
export function createUploadMappingRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateUploadMappingRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateUploadMappingRequest' from JSON`);
}
/** @internal */
export const CreateUploadMappingResponse$inboundSchema = z.object({
    message: z.string(),
    folder: z.string(),
    external_id: z.string(),
}).transform((v) => {
    return remap$(v, {
        "external_id": "externalId",
    });
});
/** @internal */
export const CreateUploadMappingResponse$outboundSchema = z.object({
    message: z.string(),
    folder: 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 CreateUploadMappingResponse$;
(function (CreateUploadMappingResponse$) {
    /** @deprecated use `CreateUploadMappingResponse$inboundSchema` instead. */
    CreateUploadMappingResponse$.inboundSchema = CreateUploadMappingResponse$inboundSchema;
    /** @deprecated use `CreateUploadMappingResponse$outboundSchema` instead. */
    CreateUploadMappingResponse$.outboundSchema = CreateUploadMappingResponse$outboundSchema;
})(CreateUploadMappingResponse$ || (CreateUploadMappingResponse$ = {}));
export function createUploadMappingResponseToJSON(createUploadMappingResponse) {
    return JSON.stringify(CreateUploadMappingResponse$outboundSchema.parse(createUploadMappingResponse));
}
export function createUploadMappingResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateUploadMappingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateUploadMappingResponse' from JSON`);
}
//# sourceMappingURL=createuploadmapping.js.map