/*
 * 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 UnidetAnalysisDataTags$inboundSchema = z.object({});
/** @internal */
export const UnidetAnalysisDataTags$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 UnidetAnalysisDataTags$;
(function (UnidetAnalysisDataTags$) {
    /** @deprecated use `UnidetAnalysisDataTags$inboundSchema` instead. */
    UnidetAnalysisDataTags$.inboundSchema = UnidetAnalysisDataTags$inboundSchema;
    /** @deprecated use `UnidetAnalysisDataTags$outboundSchema` instead. */
    UnidetAnalysisDataTags$.outboundSchema = UnidetAnalysisDataTags$outboundSchema;
})(UnidetAnalysisDataTags$ || (UnidetAnalysisDataTags$ = {}));
export function unidetAnalysisDataTagsToJSON(unidetAnalysisDataTags) {
    return JSON.stringify(UnidetAnalysisDataTags$outboundSchema.parse(unidetAnalysisDataTags));
}
export function unidetAnalysisDataTagsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UnidetAnalysisDataTags$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnidetAnalysisDataTags' from JSON`);
}
/** @internal */
export const UnidetAnalysisData$inboundSchema = z.object({
    tags: z.lazy(() => UnidetAnalysisDataTags$inboundSchema),
    model_version: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "model_version": "modelVersion",
    });
});
/** @internal */
export const UnidetAnalysisData$outboundSchema = z.object({
    tags: z.lazy(() => UnidetAnalysisDataTags$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 UnidetAnalysisData$;
(function (UnidetAnalysisData$) {
    /** @deprecated use `UnidetAnalysisData$inboundSchema` instead. */
    UnidetAnalysisData$.inboundSchema = UnidetAnalysisData$inboundSchema;
    /** @deprecated use `UnidetAnalysisData$outboundSchema` instead. */
    UnidetAnalysisData$.outboundSchema = UnidetAnalysisData$outboundSchema;
})(UnidetAnalysisData$ || (UnidetAnalysisData$ = {}));
export function unidetAnalysisDataToJSON(unidetAnalysisData) {
    return JSON.stringify(UnidetAnalysisData$outboundSchema.parse(unidetAnalysisData));
}
export function unidetAnalysisDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UnidetAnalysisData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnidetAnalysisData' from JSON`);
}
//# sourceMappingURL=unidetanalysisdata.js.map