/*
 * 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 CldFashionAnalysisDataTags$inboundSchema = z.object({});
/** @internal */
export const CldFashionAnalysisDataTags$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 CldFashionAnalysisDataTags$;
(function (CldFashionAnalysisDataTags$) {
    /** @deprecated use `CldFashionAnalysisDataTags$inboundSchema` instead. */
    CldFashionAnalysisDataTags$.inboundSchema = CldFashionAnalysisDataTags$inboundSchema;
    /** @deprecated use `CldFashionAnalysisDataTags$outboundSchema` instead. */
    CldFashionAnalysisDataTags$.outboundSchema = CldFashionAnalysisDataTags$outboundSchema;
})(CldFashionAnalysisDataTags$ || (CldFashionAnalysisDataTags$ = {}));
export function cldFashionAnalysisDataTagsToJSON(cldFashionAnalysisDataTags) {
    return JSON.stringify(CldFashionAnalysisDataTags$outboundSchema.parse(cldFashionAnalysisDataTags));
}
export function cldFashionAnalysisDataTagsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CldFashionAnalysisDataTags$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CldFashionAnalysisDataTags' from JSON`);
}
/** @internal */
export const CldFashionAnalysisData$inboundSchema = z.object({
    tags: z.lazy(() => CldFashionAnalysisDataTags$inboundSchema),
    model_version: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "model_version": "modelVersion",
    });
});
/** @internal */
export const CldFashionAnalysisData$outboundSchema = z.object({
    tags: z.lazy(() => CldFashionAnalysisDataTags$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 CldFashionAnalysisData$;
(function (CldFashionAnalysisData$) {
    /** @deprecated use `CldFashionAnalysisData$inboundSchema` instead. */
    CldFashionAnalysisData$.inboundSchema = CldFashionAnalysisData$inboundSchema;
    /** @deprecated use `CldFashionAnalysisData$outboundSchema` instead. */
    CldFashionAnalysisData$.outboundSchema = CldFashionAnalysisData$outboundSchema;
})(CldFashionAnalysisData$ || (CldFashionAnalysisData$ = {}));
export function cldFashionAnalysisDataToJSON(cldFashionAnalysisData) {
    return JSON.stringify(CldFashionAnalysisData$outboundSchema.parse(cldFashionAnalysisData));
}
export function cldFashionAnalysisDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CldFashionAnalysisData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CldFashionAnalysisData' from JSON`);
}
//# sourceMappingURL=cldfashionanalysisdata.js.map