"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.AnalyzeShopClassifierResponse$ = exports.AnalyzeShopClassifierResponse$outboundSchema = exports.AnalyzeShopClassifierResponse$inboundSchema = exports.AnalyzeShopClassifierResponseData$ = exports.AnalyzeShopClassifierResponseData$outboundSchema = exports.AnalyzeShopClassifierResponseData$inboundSchema = void 0;
exports.analyzeShopClassifierResponseDataToJSON = analyzeShopClassifierResponseDataToJSON;
exports.analyzeShopClassifierResponseDataFromJSON = analyzeShopClassifierResponseDataFromJSON;
exports.analyzeShopClassifierResponseToJSON = analyzeShopClassifierResponseToJSON;
exports.analyzeShopClassifierResponseFromJSON = analyzeShopClassifierResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const limitsobject_js_1 = require("./limitsobject.js");
const shopclassifieranalysisdata_js_1 = require("./shopclassifieranalysisdata.js");
/** @internal */
exports.AnalyzeShopClassifierResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: shopclassifieranalysisdata_js_1.ShopClassifierAnalysisData$inboundSchema.optional(),
});
/** @internal */
exports.AnalyzeShopClassifierResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: shopclassifieranalysisdata_js_1.ShopClassifierAnalysisData$outboundSchema.optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AnalyzeShopClassifierResponseData$;
(function (AnalyzeShopClassifierResponseData$) {
    /** @deprecated use `AnalyzeShopClassifierResponseData$inboundSchema` instead. */
    AnalyzeShopClassifierResponseData$.inboundSchema = exports.AnalyzeShopClassifierResponseData$inboundSchema;
    /** @deprecated use `AnalyzeShopClassifierResponseData$outboundSchema` instead. */
    AnalyzeShopClassifierResponseData$.outboundSchema = exports.AnalyzeShopClassifierResponseData$outboundSchema;
})(AnalyzeShopClassifierResponseData$ || (exports.AnalyzeShopClassifierResponseData$ = AnalyzeShopClassifierResponseData$ = {}));
function analyzeShopClassifierResponseDataToJSON(analyzeShopClassifierResponseData) {
    return JSON.stringify(exports.AnalyzeShopClassifierResponseData$outboundSchema.parse(analyzeShopClassifierResponseData));
}
function analyzeShopClassifierResponseDataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AnalyzeShopClassifierResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeShopClassifierResponseData' from JSON`);
}
/** @internal */
exports.AnalyzeShopClassifierResponse$inboundSchema = z.object({
    limits: z.nullable(limitsobject_js_1.LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => exports.AnalyzeShopClassifierResponseData$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "request_id": "requestId",
    });
});
/** @internal */
exports.AnalyzeShopClassifierResponse$outboundSchema = z.object({
    limits: z.nullable(limitsobject_js_1.LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => exports.AnalyzeShopClassifierResponseData$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.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.
 */
var AnalyzeShopClassifierResponse$;
(function (AnalyzeShopClassifierResponse$) {
    /** @deprecated use `AnalyzeShopClassifierResponse$inboundSchema` instead. */
    AnalyzeShopClassifierResponse$.inboundSchema = exports.AnalyzeShopClassifierResponse$inboundSchema;
    /** @deprecated use `AnalyzeShopClassifierResponse$outboundSchema` instead. */
    AnalyzeShopClassifierResponse$.outboundSchema = exports.AnalyzeShopClassifierResponse$outboundSchema;
})(AnalyzeShopClassifierResponse$ || (exports.AnalyzeShopClassifierResponse$ = AnalyzeShopClassifierResponse$ = {}));
function analyzeShopClassifierResponseToJSON(analyzeShopClassifierResponse) {
    return JSON.stringify(exports.AnalyzeShopClassifierResponse$outboundSchema.parse(analyzeShopClassifierResponse));
}
function analyzeShopClassifierResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AnalyzeShopClassifierResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeShopClassifierResponse' from JSON`);
}
//# sourceMappingURL=analyzeshopclassifierresponse.js.map