/*
 * 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 { HumanAnatomyAnalysisData$inboundSchema, HumanAnatomyAnalysisData$outboundSchema, } from "./humananatomyanalysisdata.js";
import { LimitsObject$inboundSchema, LimitsObject$outboundSchema, } from "./limitsobject.js";
/** @internal */
export const AnalyzeHumanAnatomyResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: HumanAnatomyAnalysisData$inboundSchema.optional(),
});
/** @internal */
export const AnalyzeHumanAnatomyResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: HumanAnatomyAnalysisData$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 AnalyzeHumanAnatomyResponseData$;
(function (AnalyzeHumanAnatomyResponseData$) {
    /** @deprecated use `AnalyzeHumanAnatomyResponseData$inboundSchema` instead. */
    AnalyzeHumanAnatomyResponseData$.inboundSchema = AnalyzeHumanAnatomyResponseData$inboundSchema;
    /** @deprecated use `AnalyzeHumanAnatomyResponseData$outboundSchema` instead. */
    AnalyzeHumanAnatomyResponseData$.outboundSchema = AnalyzeHumanAnatomyResponseData$outboundSchema;
})(AnalyzeHumanAnatomyResponseData$ || (AnalyzeHumanAnatomyResponseData$ = {}));
export function analyzeHumanAnatomyResponseDataToJSON(analyzeHumanAnatomyResponseData) {
    return JSON.stringify(AnalyzeHumanAnatomyResponseData$outboundSchema.parse(analyzeHumanAnatomyResponseData));
}
export function analyzeHumanAnatomyResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeHumanAnatomyResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeHumanAnatomyResponseData' from JSON`);
}
/** @internal */
export const AnalyzeHumanAnatomyResponse$inboundSchema = z.object({
    limits: z.nullable(LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => AnalyzeHumanAnatomyResponseData$inboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AnalyzeHumanAnatomyResponse$outboundSchema = z.object({
    limits: z.nullable(LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => AnalyzeHumanAnatomyResponseData$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 AnalyzeHumanAnatomyResponse$;
(function (AnalyzeHumanAnatomyResponse$) {
    /** @deprecated use `AnalyzeHumanAnatomyResponse$inboundSchema` instead. */
    AnalyzeHumanAnatomyResponse$.inboundSchema = AnalyzeHumanAnatomyResponse$inboundSchema;
    /** @deprecated use `AnalyzeHumanAnatomyResponse$outboundSchema` instead. */
    AnalyzeHumanAnatomyResponse$.outboundSchema = AnalyzeHumanAnatomyResponse$outboundSchema;
})(AnalyzeHumanAnatomyResponse$ || (AnalyzeHumanAnatomyResponse$ = {}));
export function analyzeHumanAnatomyResponseToJSON(analyzeHumanAnatomyResponse) {
    return JSON.stringify(AnalyzeHumanAnatomyResponse$outboundSchema.parse(analyzeHumanAnatomyResponse));
}
export function analyzeHumanAnatomyResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeHumanAnatomyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeHumanAnatomyResponse' from JSON`);
}
//# sourceMappingURL=analyzehumananatomyresponse.js.map