/*
 * 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 { LvisAnalysisData$inboundSchema, LvisAnalysisData$outboundSchema, } from "./lvisanalysisdata.js";
/** @internal */
export const AnalyzeLvisResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: LvisAnalysisData$inboundSchema.optional(),
});
/** @internal */
export const AnalyzeLvisResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: LvisAnalysisData$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 AnalyzeLvisResponseData$;
(function (AnalyzeLvisResponseData$) {
    /** @deprecated use `AnalyzeLvisResponseData$inboundSchema` instead. */
    AnalyzeLvisResponseData$.inboundSchema = AnalyzeLvisResponseData$inboundSchema;
    /** @deprecated use `AnalyzeLvisResponseData$outboundSchema` instead. */
    AnalyzeLvisResponseData$.outboundSchema = AnalyzeLvisResponseData$outboundSchema;
})(AnalyzeLvisResponseData$ || (AnalyzeLvisResponseData$ = {}));
export function analyzeLvisResponseDataToJSON(analyzeLvisResponseData) {
    return JSON.stringify(AnalyzeLvisResponseData$outboundSchema.parse(analyzeLvisResponseData));
}
export function analyzeLvisResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeLvisResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeLvisResponseData' from JSON`);
}
/** @internal */
export const AnalyzeLvisResponse$inboundSchema = z.object({
    limits: z.nullable(LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => AnalyzeLvisResponseData$inboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AnalyzeLvisResponse$outboundSchema = z.object({
    limits: z.nullable(LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => AnalyzeLvisResponseData$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 AnalyzeLvisResponse$;
(function (AnalyzeLvisResponse$) {
    /** @deprecated use `AnalyzeLvisResponse$inboundSchema` instead. */
    AnalyzeLvisResponse$.inboundSchema = AnalyzeLvisResponse$inboundSchema;
    /** @deprecated use `AnalyzeLvisResponse$outboundSchema` instead. */
    AnalyzeLvisResponse$.outboundSchema = AnalyzeLvisResponse$outboundSchema;
})(AnalyzeLvisResponse$ || (AnalyzeLvisResponse$ = {}));
export function analyzeLvisResponseToJSON(analyzeLvisResponse) {
    return JSON.stringify(AnalyzeLvisResponse$outboundSchema.parse(analyzeLvisResponse));
}
export function analyzeLvisResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeLvisResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeLvisResponse' from JSON`);
}
//# sourceMappingURL=analyzelvisresponse.js.map