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