/*
 * 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 AnalyzeAiVisionGeneralResponse$inboundSchema = z.union([
    components.AnalyzeAIVisionGeneralResponse$inboundSchema,
    components.AsyncOperationAcceptedResponse$inboundSchema,
]);
/** @internal */
export const AnalyzeAiVisionGeneralResponse$outboundSchema = z.union([
    components.AnalyzeAIVisionGeneralResponse$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 AnalyzeAiVisionGeneralResponse$;
(function (AnalyzeAiVisionGeneralResponse$) {
    /** @deprecated use `AnalyzeAiVisionGeneralResponse$inboundSchema` instead. */
    AnalyzeAiVisionGeneralResponse$.inboundSchema = AnalyzeAiVisionGeneralResponse$inboundSchema;
    /** @deprecated use `AnalyzeAiVisionGeneralResponse$outboundSchema` instead. */
    AnalyzeAiVisionGeneralResponse$.outboundSchema = AnalyzeAiVisionGeneralResponse$outboundSchema;
})(AnalyzeAiVisionGeneralResponse$ || (AnalyzeAiVisionGeneralResponse$ = {}));
export function analyzeAiVisionGeneralResponseToJSON(analyzeAiVisionGeneralResponse) {
    return JSON.stringify(AnalyzeAiVisionGeneralResponse$outboundSchema.parse(analyzeAiVisionGeneralResponse));
}
export function analyzeAiVisionGeneralResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeAiVisionGeneralResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeAiVisionGeneralResponse' from JSON`);
}
//# sourceMappingURL=analyzeaivisiongeneral.js.map