/*
 * 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 DeleteUploadPresetGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const DeleteUploadPresetGlobals$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 DeleteUploadPresetGlobals$;
(function (DeleteUploadPresetGlobals$) {
    /** @deprecated use `DeleteUploadPresetGlobals$inboundSchema` instead. */
    DeleteUploadPresetGlobals$.inboundSchema = DeleteUploadPresetGlobals$inboundSchema;
    /** @deprecated use `DeleteUploadPresetGlobals$outboundSchema` instead. */
    DeleteUploadPresetGlobals$.outboundSchema = DeleteUploadPresetGlobals$outboundSchema;
})(DeleteUploadPresetGlobals$ || (DeleteUploadPresetGlobals$ = {}));
export function deleteUploadPresetGlobalsToJSON(deleteUploadPresetGlobals) {
    return JSON.stringify(DeleteUploadPresetGlobals$outboundSchema.parse(deleteUploadPresetGlobals));
}
export function deleteUploadPresetGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeleteUploadPresetGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteUploadPresetGlobals' from JSON`);
}
/** @internal */
export const DeleteUploadPresetRequest$inboundSchema = z.object({
    name: z.string(),
});
/** @internal */
export const DeleteUploadPresetRequest$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 DeleteUploadPresetRequest$;
(function (DeleteUploadPresetRequest$) {
    /** @deprecated use `DeleteUploadPresetRequest$inboundSchema` instead. */
    DeleteUploadPresetRequest$.inboundSchema = DeleteUploadPresetRequest$inboundSchema;
    /** @deprecated use `DeleteUploadPresetRequest$outboundSchema` instead. */
    DeleteUploadPresetRequest$.outboundSchema = DeleteUploadPresetRequest$outboundSchema;
})(DeleteUploadPresetRequest$ || (DeleteUploadPresetRequest$ = {}));
export function deleteUploadPresetRequestToJSON(deleteUploadPresetRequest) {
    return JSON.stringify(DeleteUploadPresetRequest$outboundSchema.parse(deleteUploadPresetRequest));
}
export function deleteUploadPresetRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeleteUploadPresetRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteUploadPresetRequest' from JSON`);
}
/** @internal */
export const DeleteUploadPresetResponse$inboundSchema = z.object({
    message: z.string(),
    external_id: z.string(),
}).transform((v) => {
    return remap$(v, {
        "external_id": "externalId",
    });
});
/** @internal */
export const DeleteUploadPresetResponse$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 DeleteUploadPresetResponse$;
(function (DeleteUploadPresetResponse$) {
    /** @deprecated use `DeleteUploadPresetResponse$inboundSchema` instead. */
    DeleteUploadPresetResponse$.inboundSchema = DeleteUploadPresetResponse$inboundSchema;
    /** @deprecated use `DeleteUploadPresetResponse$outboundSchema` instead. */
    DeleteUploadPresetResponse$.outboundSchema = DeleteUploadPresetResponse$outboundSchema;
})(DeleteUploadPresetResponse$ || (DeleteUploadPresetResponse$ = {}));
export function deleteUploadPresetResponseToJSON(deleteUploadPresetResponse) {
    return JSON.stringify(DeleteUploadPresetResponse$outboundSchema.parse(deleteUploadPresetResponse));
}
export function deleteUploadPresetResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeleteUploadPresetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteUploadPresetResponse' from JSON`);
}
//# sourceMappingURL=deleteuploadpreset.js.map