/*
 * 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 Responses$inboundSchema = z.object({
    value: z.string().optional(),
});
/** @internal */
export const Responses$outboundSchema = z.object({
    value: 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 Responses$;
(function (Responses$) {
    /** @deprecated use `Responses$inboundSchema` instead. */
    Responses$.inboundSchema = Responses$inboundSchema;
    /** @deprecated use `Responses$outboundSchema` instead. */
    Responses$.outboundSchema = Responses$outboundSchema;
})(Responses$ || (Responses$ = {}));
export function responsesToJSON(responses) {
    return JSON.stringify(Responses$outboundSchema.parse(responses));
}
export function responsesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Responses$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Responses' from JSON`);
}
/** @internal */
export const AIVisionGeneralAnalysisData$inboundSchema = z.object({
    responses: z.array(z.lazy(() => Responses$inboundSchema)),
    model_version: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "model_version": "modelVersion",
    });
});
/** @internal */
export const AIVisionGeneralAnalysisData$outboundSchema = z.object({
    responses: z.array(z.lazy(() => Responses$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 AIVisionGeneralAnalysisData$;
(function (AIVisionGeneralAnalysisData$) {
    /** @deprecated use `AIVisionGeneralAnalysisData$inboundSchema` instead. */
    AIVisionGeneralAnalysisData$.inboundSchema = AIVisionGeneralAnalysisData$inboundSchema;
    /** @deprecated use `AIVisionGeneralAnalysisData$outboundSchema` instead. */
    AIVisionGeneralAnalysisData$.outboundSchema = AIVisionGeneralAnalysisData$outboundSchema;
})(AIVisionGeneralAnalysisData$ || (AIVisionGeneralAnalysisData$ = {}));
export function aiVisionGeneralAnalysisDataToJSON(aiVisionGeneralAnalysisData) {
    return JSON.stringify(AIVisionGeneralAnalysisData$outboundSchema.parse(aiVisionGeneralAnalysisData));
}
export function aiVisionGeneralAnalysisDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AIVisionGeneralAnalysisData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AIVisionGeneralAnalysisData' from JSON`);
}
//# sourceMappingURL=aivisiongeneralanalysisdata.js.map