/*
 * 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 DeleteUploadMappingGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const DeleteUploadMappingGlobals$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 DeleteUploadMappingGlobals$;
(function (DeleteUploadMappingGlobals$) {
    /** @deprecated use `DeleteUploadMappingGlobals$inboundSchema` instead. */
    DeleteUploadMappingGlobals$.inboundSchema = DeleteUploadMappingGlobals$inboundSchema;
    /** @deprecated use `DeleteUploadMappingGlobals$outboundSchema` instead. */
    DeleteUploadMappingGlobals$.outboundSchema = DeleteUploadMappingGlobals$outboundSchema;
})(DeleteUploadMappingGlobals$ || (DeleteUploadMappingGlobals$ = {}));
export function deleteUploadMappingGlobalsToJSON(deleteUploadMappingGlobals) {
    return JSON.stringify(DeleteUploadMappingGlobals$outboundSchema.parse(deleteUploadMappingGlobals));
}
export function deleteUploadMappingGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeleteUploadMappingGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteUploadMappingGlobals' from JSON`);
}
/** @internal */
export const DeleteUploadMappingRequest$inboundSchema = z.object({
    folder: z.string(),
});
/** @internal */
export const DeleteUploadMappingRequest$outboundSchema = z.object({
    folder: 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 DeleteUploadMappingRequest$;
(function (DeleteUploadMappingRequest$) {
    /** @deprecated use `DeleteUploadMappingRequest$inboundSchema` instead. */
    DeleteUploadMappingRequest$.inboundSchema = DeleteUploadMappingRequest$inboundSchema;
    /** @deprecated use `DeleteUploadMappingRequest$outboundSchema` instead. */
    DeleteUploadMappingRequest$.outboundSchema = DeleteUploadMappingRequest$outboundSchema;
})(DeleteUploadMappingRequest$ || (DeleteUploadMappingRequest$ = {}));
export function deleteUploadMappingRequestToJSON(deleteUploadMappingRequest) {
    return JSON.stringify(DeleteUploadMappingRequest$outboundSchema.parse(deleteUploadMappingRequest));
}
export function deleteUploadMappingRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeleteUploadMappingRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteUploadMappingRequest' from JSON`);
}
/** @internal */
export const DeleteUploadMappingResponse$inboundSchema = z.object({
    message: z.string(),
    external_id: z.string(),
}).transform((v) => {
    return remap$(v, {
        "external_id": "externalId",
    });
});
/** @internal */
export const DeleteUploadMappingResponse$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 DeleteUploadMappingResponse$;
(function (DeleteUploadMappingResponse$) {
    /** @deprecated use `DeleteUploadMappingResponse$inboundSchema` instead. */
    DeleteUploadMappingResponse$.inboundSchema = DeleteUploadMappingResponse$inboundSchema;
    /** @deprecated use `DeleteUploadMappingResponse$outboundSchema` instead. */
    DeleteUploadMappingResponse$.outboundSchema = DeleteUploadMappingResponse$outboundSchema;
})(DeleteUploadMappingResponse$ || (DeleteUploadMappingResponse$ = {}));
export function deleteUploadMappingResponseToJSON(deleteUploadMappingResponse) {
    return JSON.stringify(DeleteUploadMappingResponse$outboundSchema.parse(deleteUploadMappingResponse));
}
export function deleteUploadMappingResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeleteUploadMappingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteUploadMappingResponse' from JSON`);
}
//# sourceMappingURL=deleteuploadmapping.js.map