/*
 * 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";
/** @internal */
export const ShopClassifierAnalysisDataTags$inboundSchema = z.object({});
/** @internal */
export const ShopClassifierAnalysisDataTags$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ShopClassifierAnalysisDataTags$;
(function (ShopClassifierAnalysisDataTags$) {
    /** @deprecated use `ShopClassifierAnalysisDataTags$inboundSchema` instead. */
    ShopClassifierAnalysisDataTags$.inboundSchema = ShopClassifierAnalysisDataTags$inboundSchema;
    /** @deprecated use `ShopClassifierAnalysisDataTags$outboundSchema` instead. */
    ShopClassifierAnalysisDataTags$.outboundSchema = ShopClassifierAnalysisDataTags$outboundSchema;
})(ShopClassifierAnalysisDataTags$ || (ShopClassifierAnalysisDataTags$ = {}));
export function shopClassifierAnalysisDataTagsToJSON(shopClassifierAnalysisDataTags) {
    return JSON.stringify(ShopClassifierAnalysisDataTags$outboundSchema.parse(shopClassifierAnalysisDataTags));
}
export function shopClassifierAnalysisDataTagsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ShopClassifierAnalysisDataTags$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ShopClassifierAnalysisDataTags' from JSON`);
}
/** @internal */
export const ShopClassifierAnalysisData$inboundSchema = z.object({
    tags: z.lazy(() => ShopClassifierAnalysisDataTags$inboundSchema),
    model_version: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "model_version": "modelVersion",
    });
});
/** @internal */
export const ShopClassifierAnalysisData$outboundSchema = z.object({
    tags: z.lazy(() => ShopClassifierAnalysisDataTags$outboundSchema),
    modelVersion: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        modelVersion: "model_version",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ShopClassifierAnalysisData$;
(function (ShopClassifierAnalysisData$) {
    /** @deprecated use `ShopClassifierAnalysisData$inboundSchema` instead. */
    ShopClassifierAnalysisData$.inboundSchema = ShopClassifierAnalysisData$inboundSchema;
    /** @deprecated use `ShopClassifierAnalysisData$outboundSchema` instead. */
    ShopClassifierAnalysisData$.outboundSchema = ShopClassifierAnalysisData$outboundSchema;
})(ShopClassifierAnalysisData$ || (ShopClassifierAnalysisData$ = {}));
export function shopClassifierAnalysisDataToJSON(shopClassifierAnalysisData) {
    return JSON.stringify(ShopClassifierAnalysisData$outboundSchema.parse(shopClassifierAnalysisData));
}
export function shopClassifierAnalysisDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ShopClassifierAnalysisData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ShopClassifierAnalysisData' from JSON`);
}
//# sourceMappingURL=shopclassifieranalysisdata.js.map