"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.VisualSearchParametersUnion$ = exports.VisualSearchParametersUnion$outboundSchema = exports.VisualSearchParametersUnion$inboundSchema = exports.VisualSearchParameters1$ = exports.VisualSearchParameters1$outboundSchema = exports.VisualSearchParameters1$inboundSchema = exports.VisualSearchParameters2$ = exports.VisualSearchParameters2$outboundSchema = exports.VisualSearchParameters2$inboundSchema = exports.VisualSearchParameters3$ = exports.VisualSearchParameters3$outboundSchema = exports.VisualSearchParameters3$inboundSchema = void 0;
exports.visualSearchParameters3ToJSON = visualSearchParameters3ToJSON;
exports.visualSearchParameters3FromJSON = visualSearchParameters3FromJSON;
exports.visualSearchParameters2ToJSON = visualSearchParameters2ToJSON;
exports.visualSearchParameters2FromJSON = visualSearchParameters2FromJSON;
exports.visualSearchParameters1ToJSON = visualSearchParameters1ToJSON;
exports.visualSearchParameters1FromJSON = visualSearchParameters1FromJSON;
exports.visualSearchParametersUnionToJSON = visualSearchParametersUnionToJSON;
exports.visualSearchParametersUnionFromJSON = visualSearchParametersUnionFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.VisualSearchParameters3$inboundSchema = z.object({
    text: z.string(),
    threshold: z.number().optional(),
});
/** @internal */
exports.VisualSearchParameters3$outboundSchema = z.object({
    text: z.string(),
    threshold: z.number().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var VisualSearchParameters3$;
(function (VisualSearchParameters3$) {
    /** @deprecated use `VisualSearchParameters3$inboundSchema` instead. */
    VisualSearchParameters3$.inboundSchema = exports.VisualSearchParameters3$inboundSchema;
    /** @deprecated use `VisualSearchParameters3$outboundSchema` instead. */
    VisualSearchParameters3$.outboundSchema = exports.VisualSearchParameters3$outboundSchema;
})(VisualSearchParameters3$ || (exports.VisualSearchParameters3$ = VisualSearchParameters3$ = {}));
function visualSearchParameters3ToJSON(visualSearchParameters3) {
    return JSON.stringify(exports.VisualSearchParameters3$outboundSchema.parse(visualSearchParameters3));
}
function visualSearchParameters3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VisualSearchParameters3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisualSearchParameters3' from JSON`);
}
/** @internal */
exports.VisualSearchParameters2$inboundSchema = z.object({
    image_asset_id: z.string(),
    threshold: z.number().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "image_asset_id": "imageAssetId",
    });
});
/** @internal */
exports.VisualSearchParameters2$outboundSchema = z.object({
    imageAssetId: z.string(),
    threshold: z.number().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        imageAssetId: "image_asset_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var VisualSearchParameters2$;
(function (VisualSearchParameters2$) {
    /** @deprecated use `VisualSearchParameters2$inboundSchema` instead. */
    VisualSearchParameters2$.inboundSchema = exports.VisualSearchParameters2$inboundSchema;
    /** @deprecated use `VisualSearchParameters2$outboundSchema` instead. */
    VisualSearchParameters2$.outboundSchema = exports.VisualSearchParameters2$outboundSchema;
})(VisualSearchParameters2$ || (exports.VisualSearchParameters2$ = VisualSearchParameters2$ = {}));
function visualSearchParameters2ToJSON(visualSearchParameters2) {
    return JSON.stringify(exports.VisualSearchParameters2$outboundSchema.parse(visualSearchParameters2));
}
function visualSearchParameters2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VisualSearchParameters2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisualSearchParameters2' from JSON`);
}
/** @internal */
exports.VisualSearchParameters1$inboundSchema = z.object({
    image_url: z.string(),
    threshold: z.number().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "image_url": "imageUrl",
    });
});
/** @internal */
exports.VisualSearchParameters1$outboundSchema = z.object({
    imageUrl: z.string(),
    threshold: z.number().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        imageUrl: "image_url",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var VisualSearchParameters1$;
(function (VisualSearchParameters1$) {
    /** @deprecated use `VisualSearchParameters1$inboundSchema` instead. */
    VisualSearchParameters1$.inboundSchema = exports.VisualSearchParameters1$inboundSchema;
    /** @deprecated use `VisualSearchParameters1$outboundSchema` instead. */
    VisualSearchParameters1$.outboundSchema = exports.VisualSearchParameters1$outboundSchema;
})(VisualSearchParameters1$ || (exports.VisualSearchParameters1$ = VisualSearchParameters1$ = {}));
function visualSearchParameters1ToJSON(visualSearchParameters1) {
    return JSON.stringify(exports.VisualSearchParameters1$outboundSchema.parse(visualSearchParameters1));
}
function visualSearchParameters1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VisualSearchParameters1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisualSearchParameters1' from JSON`);
}
/** @internal */
exports.VisualSearchParametersUnion$inboundSchema = z.union([
    z.lazy(() => exports.VisualSearchParameters1$inboundSchema),
    z.lazy(() => exports.VisualSearchParameters2$inboundSchema),
    z.lazy(() => exports.VisualSearchParameters3$inboundSchema),
]);
/** @internal */
exports.VisualSearchParametersUnion$outboundSchema = z.union([
    z.lazy(() => exports.VisualSearchParameters1$outboundSchema),
    z.lazy(() => exports.VisualSearchParameters2$outboundSchema),
    z.lazy(() => exports.VisualSearchParameters3$outboundSchema),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var VisualSearchParametersUnion$;
(function (VisualSearchParametersUnion$) {
    /** @deprecated use `VisualSearchParametersUnion$inboundSchema` instead. */
    VisualSearchParametersUnion$.inboundSchema = exports.VisualSearchParametersUnion$inboundSchema;
    /** @deprecated use `VisualSearchParametersUnion$outboundSchema` instead. */
    VisualSearchParametersUnion$.outboundSchema = exports.VisualSearchParametersUnion$outboundSchema;
})(VisualSearchParametersUnion$ || (exports.VisualSearchParametersUnion$ = VisualSearchParametersUnion$ = {}));
function visualSearchParametersUnionToJSON(visualSearchParametersUnion) {
    return JSON.stringify(exports.VisualSearchParametersUnion$outboundSchema.parse(visualSearchParametersUnion));
}
function visualSearchParametersUnionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VisualSearchParametersUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisualSearchParametersUnion' from JSON`);
}
//# sourceMappingURL=visualsearchparametersunion.js.map