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