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