/*
 * 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 LvisAnalysisDataTags$inboundSchema = z.object({});
/** @internal */
export const LvisAnalysisDataTags$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 LvisAnalysisDataTags$;
(function (LvisAnalysisDataTags$) {
    /** @deprecated use `LvisAnalysisDataTags$inboundSchema` instead. */
    LvisAnalysisDataTags$.inboundSchema = LvisAnalysisDataTags$inboundSchema;
    /** @deprecated use `LvisAnalysisDataTags$outboundSchema` instead. */
    LvisAnalysisDataTags$.outboundSchema = LvisAnalysisDataTags$outboundSchema;
})(LvisAnalysisDataTags$ || (LvisAnalysisDataTags$ = {}));
export function lvisAnalysisDataTagsToJSON(lvisAnalysisDataTags) {
    return JSON.stringify(LvisAnalysisDataTags$outboundSchema.parse(lvisAnalysisDataTags));
}
export function lvisAnalysisDataTagsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => LvisAnalysisDataTags$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LvisAnalysisDataTags' from JSON`);
}
/** @internal */
export const LvisAnalysisData$inboundSchema = z.object({
    tags: z.lazy(() => LvisAnalysisDataTags$inboundSchema),
    model_version: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "model_version": "modelVersion",
    });
});
/** @internal */
export const LvisAnalysisData$outboundSchema = z.object({
    tags: z.lazy(() => LvisAnalysisDataTags$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 LvisAnalysisData$;
(function (LvisAnalysisData$) {
    /** @deprecated use `LvisAnalysisData$inboundSchema` instead. */
    LvisAnalysisData$.inboundSchema = LvisAnalysisData$inboundSchema;
    /** @deprecated use `LvisAnalysisData$outboundSchema` instead. */
    LvisAnalysisData$.outboundSchema = LvisAnalysisData$outboundSchema;
})(LvisAnalysisData$ || (LvisAnalysisData$ = {}));
export function lvisAnalysisDataToJSON(lvisAnalysisData) {
    return JSON.stringify(LvisAnalysisData$outboundSchema.parse(lvisAnalysisData));
}
export function lvisAnalysisDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => LvisAnalysisData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LvisAnalysisData' from JSON`);
}
//# sourceMappingURL=lvisanalysisdata.js.map