/*
 * 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 CreateUploadPresetGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const CreateUploadPresetGlobals$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 CreateUploadPresetGlobals$;
(function (CreateUploadPresetGlobals$) {
    /** @deprecated use `CreateUploadPresetGlobals$inboundSchema` instead. */
    CreateUploadPresetGlobals$.inboundSchema = CreateUploadPresetGlobals$inboundSchema;
    /** @deprecated use `CreateUploadPresetGlobals$outboundSchema` instead. */
    CreateUploadPresetGlobals$.outboundSchema = CreateUploadPresetGlobals$outboundSchema;
})(CreateUploadPresetGlobals$ || (CreateUploadPresetGlobals$ = {}));
export function createUploadPresetGlobalsToJSON(createUploadPresetGlobals) {
    return JSON.stringify(CreateUploadPresetGlobals$outboundSchema.parse(createUploadPresetGlobals));
}
export function createUploadPresetGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateUploadPresetGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateUploadPresetGlobals' from JSON`);
}
/** @internal */
export const CreateUploadPresetResponse$inboundSchema = z.object({
    name: z.string(),
    message: z.string(),
    external_id: z.string(),
}).transform((v) => {
    return remap$(v, {
        "external_id": "externalId",
    });
});
/** @internal */
export const CreateUploadPresetResponse$outboundSchema = z.object({
    name: z.string(),
    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 CreateUploadPresetResponse$;
(function (CreateUploadPresetResponse$) {
    /** @deprecated use `CreateUploadPresetResponse$inboundSchema` instead. */
    CreateUploadPresetResponse$.inboundSchema = CreateUploadPresetResponse$inboundSchema;
    /** @deprecated use `CreateUploadPresetResponse$outboundSchema` instead. */
    CreateUploadPresetResponse$.outboundSchema = CreateUploadPresetResponse$outboundSchema;
})(CreateUploadPresetResponse$ || (CreateUploadPresetResponse$ = {}));
export function createUploadPresetResponseToJSON(createUploadPresetResponse) {
    return JSON.stringify(CreateUploadPresetResponse$outboundSchema.parse(createUploadPresetResponse));
}
export function createUploadPresetResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateUploadPresetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateUploadPresetResponse' from JSON`);
}
//# sourceMappingURL=createuploadpreset.js.map