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