/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { CocoAnalysisData$inboundSchema, CocoAnalysisData$outboundSchema, } from "./cocoanalysisdata.js";
import { LimitsObject$inboundSchema, LimitsObject$outboundSchema, } from "./limitsobject.js";
/** @internal */
export const AnalyzeCocoResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: CocoAnalysisData$inboundSchema.optional(),
});
/** @internal */
export const AnalyzeCocoResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: CocoAnalysisData$outboundSchema.optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeCocoResponseData$;
(function (AnalyzeCocoResponseData$) {
    /** @deprecated use `AnalyzeCocoResponseData$inboundSchema` instead. */
    AnalyzeCocoResponseData$.inboundSchema = AnalyzeCocoResponseData$inboundSchema;
    /** @deprecated use `AnalyzeCocoResponseData$outboundSchema` instead. */
    AnalyzeCocoResponseData$.outboundSchema = AnalyzeCocoResponseData$outboundSchema;
})(AnalyzeCocoResponseData$ || (AnalyzeCocoResponseData$ = {}));
export function analyzeCocoResponseDataToJSON(analyzeCocoResponseData) {
    return JSON.stringify(AnalyzeCocoResponseData$outboundSchema.parse(analyzeCocoResponseData));
}
export function analyzeCocoResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeCocoResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeCocoResponseData' from JSON`);
}
/** @internal */
export const AnalyzeCocoResponse$inboundSchema = z.object({
    limits: z.nullable(LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => AnalyzeCocoResponseData$inboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AnalyzeCocoResponse$outboundSchema = z.object({
    limits: z.nullable(LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => AnalyzeCocoResponseData$outboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        requestId: "request_id",
    });
});
/**
 * @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=analyzecocoresponse.js.map