/*
 * 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";
import { AIVisionModerationAnalysisData$inboundSchema, AIVisionModerationAnalysisData$outboundSchema, } from "./aivisionmoderationanalysisdata.js";
import { LimitsObject$inboundSchema, LimitsObject$outboundSchema, } from "./limitsobject.js";
/** @internal */
export const AnalyzeAIVisionModerationResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: AIVisionModerationAnalysisData$inboundSchema.optional(),
});
/** @internal */
export const AnalyzeAIVisionModerationResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: AIVisionModerationAnalysisData$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 AnalyzeAIVisionModerationResponseData$;
(function (AnalyzeAIVisionModerationResponseData$) {
    /** @deprecated use `AnalyzeAIVisionModerationResponseData$inboundSchema` instead. */
    AnalyzeAIVisionModerationResponseData$.inboundSchema = AnalyzeAIVisionModerationResponseData$inboundSchema;
    /** @deprecated use `AnalyzeAIVisionModerationResponseData$outboundSchema` instead. */
    AnalyzeAIVisionModerationResponseData$.outboundSchema = AnalyzeAIVisionModerationResponseData$outboundSchema;
})(AnalyzeAIVisionModerationResponseData$ || (AnalyzeAIVisionModerationResponseData$ = {}));
export function analyzeAIVisionModerationResponseDataToJSON(analyzeAIVisionModerationResponseData) {
    return JSON.stringify(AnalyzeAIVisionModerationResponseData$outboundSchema.parse(analyzeAIVisionModerationResponseData));
}
export function analyzeAIVisionModerationResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeAIVisionModerationResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeAIVisionModerationResponseData' from JSON`);
}
/** @internal */
export const AnalyzeAIVisionModerationResponse$inboundSchema = z.object({
    limits: z.nullable(LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => AnalyzeAIVisionModerationResponseData$inboundSchema)
        .optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AnalyzeAIVisionModerationResponse$outboundSchema = z.object({
    limits: z.nullable(LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => AnalyzeAIVisionModerationResponseData$outboundSchema)
        .optional(),
}).transform((v) => {
    return remap$(v, {
        requestId: "request_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeAIVisionModerationResponse$;
(function (AnalyzeAIVisionModerationResponse$) {
    /** @deprecated use `AnalyzeAIVisionModerationResponse$inboundSchema` instead. */
    AnalyzeAIVisionModerationResponse$.inboundSchema = AnalyzeAIVisionModerationResponse$inboundSchema;
    /** @deprecated use `AnalyzeAIVisionModerationResponse$outboundSchema` instead. */
    AnalyzeAIVisionModerationResponse$.outboundSchema = AnalyzeAIVisionModerationResponse$outboundSchema;
})(AnalyzeAIVisionModerationResponse$ || (AnalyzeAIVisionModerationResponse$ = {}));
export function analyzeAIVisionModerationResponseToJSON(analyzeAIVisionModerationResponse) {
    return JSON.stringify(AnalyzeAIVisionModerationResponse$outboundSchema.parse(analyzeAIVisionModerationResponse));
}
export function analyzeAIVisionModerationResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeAIVisionModerationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeAIVisionModerationResponse' from JSON`);
}
//# sourceMappingURL=analyzeaivisionmoderationresponse.js.map