/*
 * 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 CocoAnalysisDataTags$inboundSchema = z.object({});
/** @internal */
export const CocoAnalysisDataTags$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CocoAnalysisDataTags$;
(function (CocoAnalysisDataTags$) {
    /** @deprecated use `CocoAnalysisDataTags$inboundSchema` instead. */
    CocoAnalysisDataTags$.inboundSchema = CocoAnalysisDataTags$inboundSchema;
    /** @deprecated use `CocoAnalysisDataTags$outboundSchema` instead. */
    CocoAnalysisDataTags$.outboundSchema = CocoAnalysisDataTags$outboundSchema;
})(CocoAnalysisDataTags$ || (CocoAnalysisDataTags$ = {}));
export function cocoAnalysisDataTagsToJSON(cocoAnalysisDataTags) {
    return JSON.stringify(CocoAnalysisDataTags$outboundSchema.parse(cocoAnalysisDataTags));
}
export function cocoAnalysisDataTagsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CocoAnalysisDataTags$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CocoAnalysisDataTags' from JSON`);
}
/** @internal */
export const CocoAnalysisData$inboundSchema = z.object({
    tags: z.lazy(() => CocoAnalysisDataTags$inboundSchema),
    model_version: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "model_version": "modelVersion",
    });
});
/** @internal */
export const CocoAnalysisData$outboundSchema = z.object({
    tags: z.lazy(() => CocoAnalysisDataTags$outboundSchema),
    modelVersion: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        modelVersion: "model_version",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CocoAnalysisData$;
(function (CocoAnalysisData$) {
    /** @deprecated use `CocoAnalysisData$inboundSchema` instead. */
    CocoAnalysisData$.inboundSchema = CocoAnalysisData$inboundSchema;
    /** @deprecated use `CocoAnalysisData$outboundSchema` instead. */
    CocoAnalysisData$.outboundSchema = CocoAnalysisData$outboundSchema;
})(CocoAnalysisData$ || (CocoAnalysisData$ = {}));
export function cocoAnalysisDataToJSON(cocoAnalysisData) {
    return JSON.stringify(CocoAnalysisData$outboundSchema.parse(cocoAnalysisData));
}
export function cocoAnalysisDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CocoAnalysisData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CocoAnalysisData' from JSON`);
}
//# sourceMappingURL=cocoanalysisdata.js.map