/*
 * 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 GetUploadPresetGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const GetUploadPresetGlobals$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 GetUploadPresetGlobals$;
(function (GetUploadPresetGlobals$) {
    /** @deprecated use `GetUploadPresetGlobals$inboundSchema` instead. */
    GetUploadPresetGlobals$.inboundSchema = GetUploadPresetGlobals$inboundSchema;
    /** @deprecated use `GetUploadPresetGlobals$outboundSchema` instead. */
    GetUploadPresetGlobals$.outboundSchema = GetUploadPresetGlobals$outboundSchema;
})(GetUploadPresetGlobals$ || (GetUploadPresetGlobals$ = {}));
export function getUploadPresetGlobalsToJSON(getUploadPresetGlobals) {
    return JSON.stringify(GetUploadPresetGlobals$outboundSchema.parse(getUploadPresetGlobals));
}
export function getUploadPresetGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetUploadPresetGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetUploadPresetGlobals' from JSON`);
}
/** @internal */
export const GetUploadPresetRequest$inboundSchema = z.object({
    name: z.string(),
});
/** @internal */
export const GetUploadPresetRequest$outboundSchema = z.object({
    name: 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 GetUploadPresetRequest$;
(function (GetUploadPresetRequest$) {
    /** @deprecated use `GetUploadPresetRequest$inboundSchema` instead. */
    GetUploadPresetRequest$.inboundSchema = GetUploadPresetRequest$inboundSchema;
    /** @deprecated use `GetUploadPresetRequest$outboundSchema` instead. */
    GetUploadPresetRequest$.outboundSchema = GetUploadPresetRequest$outboundSchema;
})(GetUploadPresetRequest$ || (GetUploadPresetRequest$ = {}));
export function getUploadPresetRequestToJSON(getUploadPresetRequest) {
    return JSON.stringify(GetUploadPresetRequest$outboundSchema.parse(getUploadPresetRequest));
}
export function getUploadPresetRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetUploadPresetRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetUploadPresetRequest' from JSON`);
}
//# sourceMappingURL=getuploadpreset.js.map