/*
 * 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";
export const Value = {
    Yes: "yes",
    No: "no",
    Unknown: "unknown",
};
/** @internal */
export const Value$inboundSchema = z.nativeEnum(Value);
/** @internal */
export const Value$outboundSchema = Value$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var Value$;
(function (Value$) {
    /** @deprecated use `Value$inboundSchema` instead. */
    Value$.inboundSchema = Value$inboundSchema;
    /** @deprecated use `Value$outboundSchema` instead. */
    Value$.outboundSchema = Value$outboundSchema;
})(Value$ || (Value$ = {}));
/** @internal */
export const AIVisionModerationAnalysisDataResponses$inboundSchema = z.object({
    prompt: z.string().optional(),
    value: Value$inboundSchema.optional(),
});
/** @internal */
export const AIVisionModerationAnalysisDataResponses$outboundSchema = z.object({
    prompt: z.string().optional(),
    value: Value$outboundSchema.optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AIVisionModerationAnalysisDataResponses$;
(function (AIVisionModerationAnalysisDataResponses$) {
    /** @deprecated use `AIVisionModerationAnalysisDataResponses$inboundSchema` instead. */
    AIVisionModerationAnalysisDataResponses$.inboundSchema = AIVisionModerationAnalysisDataResponses$inboundSchema;
    /** @deprecated use `AIVisionModerationAnalysisDataResponses$outboundSchema` instead. */
    AIVisionModerationAnalysisDataResponses$.outboundSchema = AIVisionModerationAnalysisDataResponses$outboundSchema;
})(AIVisionModerationAnalysisDataResponses$ || (AIVisionModerationAnalysisDataResponses$ = {}));
export function aiVisionModerationAnalysisDataResponsesToJSON(aiVisionModerationAnalysisDataResponses) {
    return JSON.stringify(AIVisionModerationAnalysisDataResponses$outboundSchema.parse(aiVisionModerationAnalysisDataResponses));
}
export function aiVisionModerationAnalysisDataResponsesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AIVisionModerationAnalysisDataResponses$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AIVisionModerationAnalysisDataResponses' from JSON`);
}
/** @internal */
export const AIVisionModerationAnalysisData$inboundSchema = z.object({
    responses: z.array(z.lazy(() => AIVisionModerationAnalysisDataResponses$inboundSchema)),
    model_version: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "model_version": "modelVersion",
    });
});
/** @internal */
export const AIVisionModerationAnalysisData$outboundSchema = z.object({
    responses: z.array(z.lazy(() => AIVisionModerationAnalysisDataResponses$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 AIVisionModerationAnalysisData$;
(function (AIVisionModerationAnalysisData$) {
    /** @deprecated use `AIVisionModerationAnalysisData$inboundSchema` instead. */
    AIVisionModerationAnalysisData$.inboundSchema = AIVisionModerationAnalysisData$inboundSchema;
    /** @deprecated use `AIVisionModerationAnalysisData$outboundSchema` instead. */
    AIVisionModerationAnalysisData$.outboundSchema = AIVisionModerationAnalysisData$outboundSchema;
})(AIVisionModerationAnalysisData$ || (AIVisionModerationAnalysisData$ = {}));
export function aiVisionModerationAnalysisDataToJSON(aiVisionModerationAnalysisData) {
    return JSON.stringify(AIVisionModerationAnalysisData$outboundSchema.parse(aiVisionModerationAnalysisData));
}
export function aiVisionModerationAnalysisDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AIVisionModerationAnalysisData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AIVisionModerationAnalysisData' from JSON`);
}
//# sourceMappingURL=aivisionmoderationanalysisdata.js.map