/*
 * 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";
import * as components from "../components/index.js";
/** @internal */
export const UpdateUploadPresetGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const UpdateUploadPresetGlobals$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 UpdateUploadPresetGlobals$;
(function (UpdateUploadPresetGlobals$) {
    /** @deprecated use `UpdateUploadPresetGlobals$inboundSchema` instead. */
    UpdateUploadPresetGlobals$.inboundSchema = UpdateUploadPresetGlobals$inboundSchema;
    /** @deprecated use `UpdateUploadPresetGlobals$outboundSchema` instead. */
    UpdateUploadPresetGlobals$.outboundSchema = UpdateUploadPresetGlobals$outboundSchema;
})(UpdateUploadPresetGlobals$ || (UpdateUploadPresetGlobals$ = {}));
export function updateUploadPresetGlobalsToJSON(updateUploadPresetGlobals) {
    return JSON.stringify(UpdateUploadPresetGlobals$outboundSchema.parse(updateUploadPresetGlobals));
}
export function updateUploadPresetGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateUploadPresetGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateUploadPresetGlobals' from JSON`);
}
/** @internal */
export const UpdateUploadPresetRequest$inboundSchema = z.object({
    name: z.string(),
    upload_preset: components.UploadPreset$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "upload_preset": "uploadPreset",
    });
});
/** @internal */
export const UpdateUploadPresetRequest$outboundSchema = z.object({
    name: z.string(),
    uploadPreset: components.UploadPreset$outboundSchema,
}).transform((v) => {
    return remap$(v, {
        uploadPreset: "upload_preset",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateUploadPresetRequest$;
(function (UpdateUploadPresetRequest$) {
    /** @deprecated use `UpdateUploadPresetRequest$inboundSchema` instead. */
    UpdateUploadPresetRequest$.inboundSchema = UpdateUploadPresetRequest$inboundSchema;
    /** @deprecated use `UpdateUploadPresetRequest$outboundSchema` instead. */
    UpdateUploadPresetRequest$.outboundSchema = UpdateUploadPresetRequest$outboundSchema;
})(UpdateUploadPresetRequest$ || (UpdateUploadPresetRequest$ = {}));
export function updateUploadPresetRequestToJSON(updateUploadPresetRequest) {
    return JSON.stringify(UpdateUploadPresetRequest$outboundSchema.parse(updateUploadPresetRequest));
}
export function updateUploadPresetRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateUploadPresetRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateUploadPresetRequest' from JSON`);
}
/** @internal */
export const UpdateUploadPresetResponse$inboundSchema = z.object({
    message: z.string(),
    external_id: z.string(),
}).transform((v) => {
    return remap$(v, {
        "external_id": "externalId",
    });
});
/** @internal */
export const UpdateUploadPresetResponse$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 UpdateUploadPresetResponse$;
(function (UpdateUploadPresetResponse$) {
    /** @deprecated use `UpdateUploadPresetResponse$inboundSchema` instead. */
    UpdateUploadPresetResponse$.inboundSchema = UpdateUploadPresetResponse$inboundSchema;
    /** @deprecated use `UpdateUploadPresetResponse$outboundSchema` instead. */
    UpdateUploadPresetResponse$.outboundSchema = UpdateUploadPresetResponse$outboundSchema;
})(UpdateUploadPresetResponse$ || (UpdateUploadPresetResponse$ = {}));
export function updateUploadPresetResponseToJSON(updateUploadPresetResponse) {
    return JSON.stringify(UpdateUploadPresetResponse$outboundSchema.parse(updateUploadPresetResponse));
}
export function updateUploadPresetResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateUploadPresetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateUploadPresetResponse' from JSON`);
}
//# sourceMappingURL=updateuploadpreset.js.map