/*
 * 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 { ShopClassifierAnalysisData$inboundSchema, ShopClassifierAnalysisData$outboundSchema, } from "./shopclassifieranalysisdata.js";
/** @internal */
export const AnalyzeShopClassifierResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: ShopClassifierAnalysisData$inboundSchema.optional(),
});
/** @internal */
export const AnalyzeShopClassifierResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: ShopClassifierAnalysisData$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 AnalyzeShopClassifierResponseData$;
(function (AnalyzeShopClassifierResponseData$) {
    /** @deprecated use `AnalyzeShopClassifierResponseData$inboundSchema` instead. */
    AnalyzeShopClassifierResponseData$.inboundSchema = AnalyzeShopClassifierResponseData$inboundSchema;
    /** @deprecated use `AnalyzeShopClassifierResponseData$outboundSchema` instead. */
    AnalyzeShopClassifierResponseData$.outboundSchema = AnalyzeShopClassifierResponseData$outboundSchema;
})(AnalyzeShopClassifierResponseData$ || (AnalyzeShopClassifierResponseData$ = {}));
export function analyzeShopClassifierResponseDataToJSON(analyzeShopClassifierResponseData) {
    return JSON.stringify(AnalyzeShopClassifierResponseData$outboundSchema.parse(analyzeShopClassifierResponseData));
}
export function analyzeShopClassifierResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeShopClassifierResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeShopClassifierResponseData' from JSON`);
}
/** @internal */
export const AnalyzeShopClassifierResponse$inboundSchema = z.object({
    limits: z.nullable(LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => AnalyzeShopClassifierResponseData$inboundSchema)
        .optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AnalyzeShopClassifierResponse$outboundSchema = z.object({
    limits: z.nullable(LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => AnalyzeShopClassifierResponseData$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 AnalyzeShopClassifierResponse$;
(function (AnalyzeShopClassifierResponse$) {
    /** @deprecated use `AnalyzeShopClassifierResponse$inboundSchema` instead. */
    AnalyzeShopClassifierResponse$.inboundSchema = AnalyzeShopClassifierResponse$inboundSchema;
    /** @deprecated use `AnalyzeShopClassifierResponse$outboundSchema` instead. */
    AnalyzeShopClassifierResponse$.outboundSchema = AnalyzeShopClassifierResponse$outboundSchema;
})(AnalyzeShopClassifierResponse$ || (AnalyzeShopClassifierResponse$ = {}));
export function analyzeShopClassifierResponseToJSON(analyzeShopClassifierResponse) {
    return JSON.stringify(AnalyzeShopClassifierResponse$outboundSchema.parse(analyzeShopClassifierResponse));
}
export function analyzeShopClassifierResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeShopClassifierResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeShopClassifierResponse' from JSON`);
}
//# sourceMappingURL=analyzeshopclassifierresponse.js.map