/*
 * 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 AnalyzeAiVisionTaggingResponse$inboundSchema = z.union([
    components.AsyncOperationAcceptedResponse$inboundSchema,
    components.AnalyzeAIVisionTaggingResponse$inboundSchema,
]);
/** @internal */
export const AnalyzeAiVisionTaggingResponse$outboundSchema = z.union([
    components.AsyncOperationAcceptedResponse$outboundSchema,
    components.AnalyzeAIVisionTaggingResponse$outboundSchema,
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeAiVisionTaggingResponse$;
(function (AnalyzeAiVisionTaggingResponse$) {
    /** @deprecated use `AnalyzeAiVisionTaggingResponse$inboundSchema` instead. */
    AnalyzeAiVisionTaggingResponse$.inboundSchema = AnalyzeAiVisionTaggingResponse$inboundSchema;
    /** @deprecated use `AnalyzeAiVisionTaggingResponse$outboundSchema` instead. */
    AnalyzeAiVisionTaggingResponse$.outboundSchema = AnalyzeAiVisionTaggingResponse$outboundSchema;
})(AnalyzeAiVisionTaggingResponse$ || (AnalyzeAiVisionTaggingResponse$ = {}));
export function analyzeAiVisionTaggingResponseToJSON(analyzeAiVisionTaggingResponse) {
    return JSON.stringify(AnalyzeAiVisionTaggingResponse$outboundSchema.parse(analyzeAiVisionTaggingResponse));
}
export function analyzeAiVisionTaggingResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeAiVisionTaggingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeAiVisionTaggingResponse' from JSON`);
}
//# sourceMappingURL=analyzeaivisiontagging.js.map