/*
 * 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 { LimitsObject$inboundSchema, LimitsObject$outboundSchema, } from "./limitsobject.js";
import { UnidetAnalysisData$inboundSchema, UnidetAnalysisData$outboundSchema, } from "./unidetanalysisdata.js";
/** @internal */
export const AnalyzeUnidetResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: UnidetAnalysisData$inboundSchema.optional(),
});
/** @internal */
export const AnalyzeUnidetResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: UnidetAnalysisData$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 AnalyzeUnidetResponseData$;
(function (AnalyzeUnidetResponseData$) {
    /** @deprecated use `AnalyzeUnidetResponseData$inboundSchema` instead. */
    AnalyzeUnidetResponseData$.inboundSchema = AnalyzeUnidetResponseData$inboundSchema;
    /** @deprecated use `AnalyzeUnidetResponseData$outboundSchema` instead. */
    AnalyzeUnidetResponseData$.outboundSchema = AnalyzeUnidetResponseData$outboundSchema;
})(AnalyzeUnidetResponseData$ || (AnalyzeUnidetResponseData$ = {}));
export function analyzeUnidetResponseDataToJSON(analyzeUnidetResponseData) {
    return JSON.stringify(AnalyzeUnidetResponseData$outboundSchema.parse(analyzeUnidetResponseData));
}
export function analyzeUnidetResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeUnidetResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeUnidetResponseData' from JSON`);
}
/** @internal */
export const AnalyzeUnidetResponse$inboundSchema = z.object({
    limits: z.nullable(LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => AnalyzeUnidetResponseData$inboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AnalyzeUnidetResponse$outboundSchema = z.object({
    limits: z.nullable(LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => AnalyzeUnidetResponseData$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 AnalyzeUnidetResponse$;
(function (AnalyzeUnidetResponse$) {
    /** @deprecated use `AnalyzeUnidetResponse$inboundSchema` instead. */
    AnalyzeUnidetResponse$.inboundSchema = AnalyzeUnidetResponse$inboundSchema;
    /** @deprecated use `AnalyzeUnidetResponse$outboundSchema` instead. */
    AnalyzeUnidetResponse$.outboundSchema = AnalyzeUnidetResponse$outboundSchema;
})(AnalyzeUnidetResponse$ || (AnalyzeUnidetResponse$ = {}));
export function analyzeUnidetResponseToJSON(analyzeUnidetResponse) {
    return JSON.stringify(AnalyzeUnidetResponse$outboundSchema.parse(analyzeUnidetResponse));
}
export function analyzeUnidetResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeUnidetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeUnidetResponse' from JSON`);
}
//# sourceMappingURL=analyzeunidetresponse.js.map