/*
 * 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 VisualSearchAssetsGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const VisualSearchAssetsGlobals$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 VisualSearchAssetsGlobals$;
(function (VisualSearchAssetsGlobals$) {
    /** @deprecated use `VisualSearchAssetsGlobals$inboundSchema` instead. */
    VisualSearchAssetsGlobals$.inboundSchema = VisualSearchAssetsGlobals$inboundSchema;
    /** @deprecated use `VisualSearchAssetsGlobals$outboundSchema` instead. */
    VisualSearchAssetsGlobals$.outboundSchema = VisualSearchAssetsGlobals$outboundSchema;
})(VisualSearchAssetsGlobals$ || (VisualSearchAssetsGlobals$ = {}));
export function visualSearchAssetsGlobalsToJSON(visualSearchAssetsGlobals) {
    return JSON.stringify(VisualSearchAssetsGlobals$outboundSchema.parse(visualSearchAssetsGlobals));
}
export function visualSearchAssetsGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => VisualSearchAssetsGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisualSearchAssetsGlobals' from JSON`);
}
//# sourceMappingURL=visualsearchassets.js.map