/*
 * 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 ReplaceUploadMappingsGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const ReplaceUploadMappingsGlobals$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 ReplaceUploadMappingsGlobals$;
(function (ReplaceUploadMappingsGlobals$) {
    /** @deprecated use `ReplaceUploadMappingsGlobals$inboundSchema` instead. */
    ReplaceUploadMappingsGlobals$.inboundSchema = ReplaceUploadMappingsGlobals$inboundSchema;
    /** @deprecated use `ReplaceUploadMappingsGlobals$outboundSchema` instead. */
    ReplaceUploadMappingsGlobals$.outboundSchema = ReplaceUploadMappingsGlobals$outboundSchema;
})(ReplaceUploadMappingsGlobals$ || (ReplaceUploadMappingsGlobals$ = {}));
export function replaceUploadMappingsGlobalsToJSON(replaceUploadMappingsGlobals) {
    return JSON.stringify(ReplaceUploadMappingsGlobals$outboundSchema.parse(replaceUploadMappingsGlobals));
}
export function replaceUploadMappingsGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ReplaceUploadMappingsGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReplaceUploadMappingsGlobals' from JSON`);
}
/** @internal */
export const Mapping$inboundSchema = z.object({
    folder: z.string(),
    template: z.string(),
});
/** @internal */
export const Mapping$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 Mapping$;
(function (Mapping$) {
    /** @deprecated use `Mapping$inboundSchema` instead. */
    Mapping$.inboundSchema = Mapping$inboundSchema;
    /** @deprecated use `Mapping$outboundSchema` instead. */
    Mapping$.outboundSchema = Mapping$outboundSchema;
})(Mapping$ || (Mapping$ = {}));
export function mappingToJSON(mapping) {
    return JSON.stringify(Mapping$outboundSchema.parse(mapping));
}
export function mappingFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Mapping$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Mapping' from JSON`);
}
/** @internal */
export const ReplaceUploadMappingsRequest$inboundSchema = z.object({
    mappings: z.array(z.lazy(() => Mapping$inboundSchema)),
});
/** @internal */
export const ReplaceUploadMappingsRequest$outboundSchema = z.object({
    mappings: z.array(z.lazy(() => Mapping$outboundSchema)),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ReplaceUploadMappingsRequest$;
(function (ReplaceUploadMappingsRequest$) {
    /** @deprecated use `ReplaceUploadMappingsRequest$inboundSchema` instead. */
    ReplaceUploadMappingsRequest$.inboundSchema = ReplaceUploadMappingsRequest$inboundSchema;
    /** @deprecated use `ReplaceUploadMappingsRequest$outboundSchema` instead. */
    ReplaceUploadMappingsRequest$.outboundSchema = ReplaceUploadMappingsRequest$outboundSchema;
})(ReplaceUploadMappingsRequest$ || (ReplaceUploadMappingsRequest$ = {}));
export function replaceUploadMappingsRequestToJSON(replaceUploadMappingsRequest) {
    return JSON.stringify(ReplaceUploadMappingsRequest$outboundSchema.parse(replaceUploadMappingsRequest));
}
export function replaceUploadMappingsRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ReplaceUploadMappingsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReplaceUploadMappingsRequest' from JSON`);
}
/** @internal */
export const ReplaceUploadMappingsResponse$inboundSchema = z.object({
    message: z.string(),
});
/** @internal */
export const ReplaceUploadMappingsResponse$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.
 */
export var ReplaceUploadMappingsResponse$;
(function (ReplaceUploadMappingsResponse$) {
    /** @deprecated use `ReplaceUploadMappingsResponse$inboundSchema` instead. */
    ReplaceUploadMappingsResponse$.inboundSchema = ReplaceUploadMappingsResponse$inboundSchema;
    /** @deprecated use `ReplaceUploadMappingsResponse$outboundSchema` instead. */
    ReplaceUploadMappingsResponse$.outboundSchema = ReplaceUploadMappingsResponse$outboundSchema;
})(ReplaceUploadMappingsResponse$ || (ReplaceUploadMappingsResponse$ = {}));
export function replaceUploadMappingsResponseToJSON(replaceUploadMappingsResponse) {
    return JSON.stringify(ReplaceUploadMappingsResponse$outboundSchema.parse(replaceUploadMappingsResponse));
}
export function replaceUploadMappingsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ReplaceUploadMappingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReplaceUploadMappingsResponse' from JSON`);
}
//# sourceMappingURL=replaceuploadmappings.js.map