/*
 * 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 { CldFashionAnalysisData$inboundSchema, CldFashionAnalysisData$outboundSchema, } from "./cldfashionanalysisdata.js";
import { LimitsObject$inboundSchema, LimitsObject$outboundSchema, } from "./limitsobject.js";
/** @internal */
export const AnalyzeCldFashionResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: CldFashionAnalysisData$inboundSchema.optional(),
});
/** @internal */
export const AnalyzeCldFashionResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: CldFashionAnalysisData$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 AnalyzeCldFashionResponseData$;
(function (AnalyzeCldFashionResponseData$) {
    /** @deprecated use `AnalyzeCldFashionResponseData$inboundSchema` instead. */
    AnalyzeCldFashionResponseData$.inboundSchema = AnalyzeCldFashionResponseData$inboundSchema;
    /** @deprecated use `AnalyzeCldFashionResponseData$outboundSchema` instead. */
    AnalyzeCldFashionResponseData$.outboundSchema = AnalyzeCldFashionResponseData$outboundSchema;
})(AnalyzeCldFashionResponseData$ || (AnalyzeCldFashionResponseData$ = {}));
export function analyzeCldFashionResponseDataToJSON(analyzeCldFashionResponseData) {
    return JSON.stringify(AnalyzeCldFashionResponseData$outboundSchema.parse(analyzeCldFashionResponseData));
}
export function analyzeCldFashionResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeCldFashionResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeCldFashionResponseData' from JSON`);
}
/** @internal */
export const AnalyzeCldFashionResponse$inboundSchema = z.object({
    limits: z.nullable(LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => AnalyzeCldFashionResponseData$inboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AnalyzeCldFashionResponse$outboundSchema = z.object({
    limits: z.nullable(LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => AnalyzeCldFashionResponseData$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 AnalyzeCldFashionResponse$;
(function (AnalyzeCldFashionResponse$) {
    /** @deprecated use `AnalyzeCldFashionResponse$inboundSchema` instead. */
    AnalyzeCldFashionResponse$.inboundSchema = AnalyzeCldFashionResponse$inboundSchema;
    /** @deprecated use `AnalyzeCldFashionResponse$outboundSchema` instead. */
    AnalyzeCldFashionResponse$.outboundSchema = AnalyzeCldFashionResponse$outboundSchema;
})(AnalyzeCldFashionResponse$ || (AnalyzeCldFashionResponse$ = {}));
export function analyzeCldFashionResponseToJSON(analyzeCldFashionResponse) {
    return JSON.stringify(AnalyzeCldFashionResponse$outboundSchema.parse(analyzeCldFashionResponse));
}
export function analyzeCldFashionResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeCldFashionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeCldFashionResponse' from JSON`);
}
//# sourceMappingURL=analyzecldfashionresponse.js.map