/*
 * 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 CldTextAnalysisDataTags$inboundSchema = z.object({});
/** @internal */
export const CldTextAnalysisDataTags$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 CldTextAnalysisDataTags$;
(function (CldTextAnalysisDataTags$) {
    /** @deprecated use `CldTextAnalysisDataTags$inboundSchema` instead. */
    CldTextAnalysisDataTags$.inboundSchema = CldTextAnalysisDataTags$inboundSchema;
    /** @deprecated use `CldTextAnalysisDataTags$outboundSchema` instead. */
    CldTextAnalysisDataTags$.outboundSchema = CldTextAnalysisDataTags$outboundSchema;
})(CldTextAnalysisDataTags$ || (CldTextAnalysisDataTags$ = {}));
export function cldTextAnalysisDataTagsToJSON(cldTextAnalysisDataTags) {
    return JSON.stringify(CldTextAnalysisDataTags$outboundSchema.parse(cldTextAnalysisDataTags));
}
export function cldTextAnalysisDataTagsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CldTextAnalysisDataTags$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CldTextAnalysisDataTags' from JSON`);
}
/** @internal */
export const CldTextAnalysisData$inboundSchema = z.object({
    tags: z.lazy(() => CldTextAnalysisDataTags$inboundSchema),
    model_version: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "model_version": "modelVersion",
    });
});
/** @internal */
export const CldTextAnalysisData$outboundSchema = z.object({
    tags: z.lazy(() => CldTextAnalysisDataTags$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 CldTextAnalysisData$;
(function (CldTextAnalysisData$) {
    /** @deprecated use `CldTextAnalysisData$inboundSchema` instead. */
    CldTextAnalysisData$.inboundSchema = CldTextAnalysisData$inboundSchema;
    /** @deprecated use `CldTextAnalysisData$outboundSchema` instead. */
    CldTextAnalysisData$.outboundSchema = CldTextAnalysisData$outboundSchema;
})(CldTextAnalysisData$ || (CldTextAnalysisData$ = {}));
export function cldTextAnalysisDataToJSON(cldTextAnalysisData) {
    return JSON.stringify(CldTextAnalysisData$outboundSchema.parse(cldTextAnalysisData));
}
export function cldTextAnalysisDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CldTextAnalysisData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CldTextAnalysisData' from JSON`);
}
//# sourceMappingURL=cldtextanalysisdata.js.map