/*
 * 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 Tags$inboundSchema = z
    .object({
    name: z.string().optional(),
});
/** @internal */
export const Tags$outboundSchema = z.object({
    name: z.string().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var Tags$;
(function (Tags$) {
    /** @deprecated use `Tags$inboundSchema` instead. */
    Tags$.inboundSchema = Tags$inboundSchema;
    /** @deprecated use `Tags$outboundSchema` instead. */
    Tags$.outboundSchema = Tags$outboundSchema;
})(Tags$ || (Tags$ = {}));
export function tagsToJSON(tags) {
    return JSON.stringify(Tags$outboundSchema.parse(tags));
}
export function tagsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Tags$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Tags' from JSON`);
}
/** @internal */
export const AIVisionTaggingAnalysisData$inboundSchema = z.object({
    tags: z.array(z.lazy(() => Tags$inboundSchema)),
    model_version: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "model_version": "modelVersion",
    });
});
/** @internal */
export const AIVisionTaggingAnalysisData$outboundSchema = z.object({
    tags: z.array(z.lazy(() => Tags$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 AIVisionTaggingAnalysisData$;
(function (AIVisionTaggingAnalysisData$) {
    /** @deprecated use `AIVisionTaggingAnalysisData$inboundSchema` instead. */
    AIVisionTaggingAnalysisData$.inboundSchema = AIVisionTaggingAnalysisData$inboundSchema;
    /** @deprecated use `AIVisionTaggingAnalysisData$outboundSchema` instead. */
    AIVisionTaggingAnalysisData$.outboundSchema = AIVisionTaggingAnalysisData$outboundSchema;
})(AIVisionTaggingAnalysisData$ || (AIVisionTaggingAnalysisData$ = {}));
export function aiVisionTaggingAnalysisDataToJSON(aiVisionTaggingAnalysisData) {
    return JSON.stringify(AIVisionTaggingAnalysisData$outboundSchema.parse(aiVisionTaggingAnalysisData));
}
export function aiVisionTaggingAnalysisDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AIVisionTaggingAnalysisData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AIVisionTaggingAnalysisData' from JSON`);
}
//# sourceMappingURL=aivisiontagginganalysisdata.js.map