/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/** @internal */
export const AnalyzeAiVisionModerationResponse$inboundSchema = z.union([
    components.AnalyzeAIVisionModerationResponse$inboundSchema,
    components.AsyncOperationAcceptedResponse$inboundSchema,
]);
/** @internal */
export const AnalyzeAiVisionModerationResponse$outboundSchema = z.union([
    components.AnalyzeAIVisionModerationResponse$outboundSchema,
    components.AsyncOperationAcceptedResponse$outboundSchema,
]);
/**
 * @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=analyzeaivisionmoderation.js.map