"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.TwentyTwo$outboundSchema = exports.TwentyTwo$inboundSchema = exports.TwentyThree$outboundSchema = exports.TwentyThree$inboundSchema = exports.CreateMemoryStoreModel1 = exports.CreateMemoryStoreModelMemoryStores2 = exports.CreateMemoryStoreModel3 = exports.CreateMemoryStoreModel4 = exports.CreateMemoryStoreModel5 = exports.CreateMemoryStoreModel6 = exports.CreateMemoryStoreModel7 = exports.CreateMemoryStoreModel8 = exports.CreateMemoryStoreModel9 = exports.CreateMemoryStoreModel10 = exports.CreateMemoryStoreModel11 = exports.CreateMemoryStoreModel12 = exports.CreateMemoryStoreModel13 = exports.CreateMemoryStoreModel14 = exports.CreateMemoryStoreModel15 = exports.CreateMemoryStoreModel16 = exports.CreateMemoryStoreModel17 = exports.CreateMemoryStoreModel18 = exports.CreateMemoryStoreModel19 = exports.CreateMemoryStoreModel20 = exports.CreateMemoryStoreModel21 = exports.CreateMemoryStoreModel22 = exports.CreateMemoryStoreModel23 = exports.Model1 = exports.CreateMemoryStoreModel2 = exports.Model3 = exports.Model4 = exports.Model5 = exports.Model6 = exports.Seven = exports.Eight = exports.Nine = exports.Ten = exports.Eleven = exports.Twelve = exports.Thirteen = exports.Fourteen = exports.Fifteen = exports.Sixteen = exports.Seventeen = exports.Eighteen = exports.Nineteen = exports.Twenty = exports.TwentyOne = exports.TwentyTwo = exports.TwentyThree = void 0;
exports.CreateMemoryStoreModel23$outboundSchema = exports.CreateMemoryStoreModel23$inboundSchema = exports.CreateMemoryStoreRequestBody$outboundSchema = exports.CreateMemoryStoreRequestBody$inboundSchema = exports.EmbeddingConfig$outboundSchema = exports.EmbeddingConfig$inboundSchema = exports.CreateMemoryStoreModel$outboundSchema = exports.CreateMemoryStoreModel$inboundSchema = exports.Model1$outboundSchema = exports.Model1$inboundSchema = exports.CreateMemoryStoreModel2$outboundSchema = exports.CreateMemoryStoreModel2$inboundSchema = exports.Model3$outboundSchema = exports.Model3$inboundSchema = exports.Model4$outboundSchema = exports.Model4$inboundSchema = exports.Model5$outboundSchema = exports.Model5$inboundSchema = exports.Model6$outboundSchema = exports.Model6$inboundSchema = exports.Seven$outboundSchema = exports.Seven$inboundSchema = exports.Eight$outboundSchema = exports.Eight$inboundSchema = exports.Nine$outboundSchema = exports.Nine$inboundSchema = exports.Ten$outboundSchema = exports.Ten$inboundSchema = exports.Eleven$outboundSchema = exports.Eleven$inboundSchema = exports.Twelve$outboundSchema = exports.Twelve$inboundSchema = exports.Thirteen$outboundSchema = exports.Thirteen$inboundSchema = exports.Fourteen$outboundSchema = exports.Fourteen$inboundSchema = exports.Fifteen$outboundSchema = exports.Fifteen$inboundSchema = exports.Sixteen$outboundSchema = exports.Sixteen$inboundSchema = exports.Seventeen$outboundSchema = exports.Seventeen$inboundSchema = exports.Eighteen$outboundSchema = exports.Eighteen$inboundSchema = exports.Nineteen$outboundSchema = exports.Nineteen$inboundSchema = exports.Twenty$outboundSchema = exports.Twenty$inboundSchema = exports.TwentyOne$outboundSchema = exports.TwentyOne$inboundSchema = void 0;
exports.CreateMemoryStoreResponseBody$outboundSchema = exports.CreateMemoryStoreResponseBody$inboundSchema = exports.CreateMemoryStoreEmbeddingConfig$outboundSchema = exports.CreateMemoryStoreEmbeddingConfig$inboundSchema = exports.CreateMemoryStoreMemoryStoresModel$outboundSchema = exports.CreateMemoryStoreMemoryStoresModel$inboundSchema = exports.CreateMemoryStoreModel1$outboundSchema = exports.CreateMemoryStoreModel1$inboundSchema = exports.CreateMemoryStoreModelMemoryStores2$outboundSchema = exports.CreateMemoryStoreModelMemoryStores2$inboundSchema = exports.CreateMemoryStoreModel3$outboundSchema = exports.CreateMemoryStoreModel3$inboundSchema = exports.CreateMemoryStoreModel4$outboundSchema = exports.CreateMemoryStoreModel4$inboundSchema = exports.CreateMemoryStoreModel5$outboundSchema = exports.CreateMemoryStoreModel5$inboundSchema = exports.CreateMemoryStoreModel6$outboundSchema = exports.CreateMemoryStoreModel6$inboundSchema = exports.CreateMemoryStoreModel7$outboundSchema = exports.CreateMemoryStoreModel7$inboundSchema = exports.CreateMemoryStoreModel8$outboundSchema = exports.CreateMemoryStoreModel8$inboundSchema = exports.CreateMemoryStoreModel9$outboundSchema = exports.CreateMemoryStoreModel9$inboundSchema = exports.CreateMemoryStoreModel10$outboundSchema = exports.CreateMemoryStoreModel10$inboundSchema = exports.CreateMemoryStoreModel11$outboundSchema = exports.CreateMemoryStoreModel11$inboundSchema = exports.CreateMemoryStoreModel12$outboundSchema = exports.CreateMemoryStoreModel12$inboundSchema = exports.CreateMemoryStoreModel13$outboundSchema = exports.CreateMemoryStoreModel13$inboundSchema = exports.CreateMemoryStoreModel14$outboundSchema = exports.CreateMemoryStoreModel14$inboundSchema = exports.CreateMemoryStoreModel15$outboundSchema = exports.CreateMemoryStoreModel15$inboundSchema = exports.CreateMemoryStoreModel16$outboundSchema = exports.CreateMemoryStoreModel16$inboundSchema = exports.CreateMemoryStoreModel17$outboundSchema = exports.CreateMemoryStoreModel17$inboundSchema = exports.CreateMemoryStoreModel18$outboundSchema = exports.CreateMemoryStoreModel18$inboundSchema = exports.CreateMemoryStoreModel19$outboundSchema = exports.CreateMemoryStoreModel19$inboundSchema = exports.CreateMemoryStoreModel20$outboundSchema = exports.CreateMemoryStoreModel20$inboundSchema = exports.CreateMemoryStoreModel21$outboundSchema = exports.CreateMemoryStoreModel21$inboundSchema = exports.CreateMemoryStoreModel22$outboundSchema = exports.CreateMemoryStoreModel22$inboundSchema = void 0;
exports.createMemoryStoreModelToJSON = createMemoryStoreModelToJSON;
exports.createMemoryStoreModelFromJSON = createMemoryStoreModelFromJSON;
exports.embeddingConfigToJSON = embeddingConfigToJSON;
exports.embeddingConfigFromJSON = embeddingConfigFromJSON;
exports.createMemoryStoreRequestBodyToJSON = createMemoryStoreRequestBodyToJSON;
exports.createMemoryStoreRequestBodyFromJSON = createMemoryStoreRequestBodyFromJSON;
exports.createMemoryStoreMemoryStoresModelToJSON = createMemoryStoreMemoryStoresModelToJSON;
exports.createMemoryStoreMemoryStoresModelFromJSON = createMemoryStoreMemoryStoresModelFromJSON;
exports.createMemoryStoreEmbeddingConfigToJSON = createMemoryStoreEmbeddingConfigToJSON;
exports.createMemoryStoreEmbeddingConfigFromJSON = createMemoryStoreEmbeddingConfigFromJSON;
exports.createMemoryStoreResponseBodyToJSON = createMemoryStoreResponseBodyToJSON;
exports.createMemoryStoreResponseBodyFromJSON = createMemoryStoreResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.TwentyThree = {
    JinaJinaEmbeddingsV3: "jina/jina-embeddings-v3",
};
exports.TwentyTwo = {
    JinaJinaClipV2: "jina/jina-clip-v2",
};
exports.TwentyOne = {
    JinaJinaEmbeddingsV2BaseDe: "jina/jina-embeddings-v2-base-de",
};
exports.Twenty = {
    JinaJinaEmbeddingsV2BaseCode: "jina/jina-embeddings-v2-base-code",
};
exports.Nineteen = {
    JinaJinaEmbeddingsV2BaseZh: "jina/jina-embeddings-v2-base-zh",
};
exports.Eighteen = {
    JinaJinaEmbeddingsV2BaseEn: "jina/jina-embeddings-v2-base-en",
};
exports.Seventeen = {
    JinaJinaEmbeddingsV2BaseEs: "jina/jina-embeddings-v2-base-es",
};
exports.Sixteen = {
    JinaJinaClipV1: "jina/jina-clip-v1",
};
exports.Fifteen = {
    MistralMistralEmbed: "mistral/mistral-embed",
};
exports.Fourteen = {
    GoogleAiTextEmbedding004: "google-ai/text-embedding-004",
};
exports.Thirteen = {
    GoogleMultimodalembeddingAt001: "google/multimodalembedding@001",
};
exports.Twelve = {
    GoogleTextMultilingualEmbedding002: "google/text-multilingual-embedding-002",
};
exports.Eleven = {
    GoogleGeminiEmbedding001: "google/gemini-embedding-001",
};
exports.Ten = {
    OpenaiTextEmbeddingAda002: "openai/text-embedding-ada-002",
};
exports.Nine = {
    OpenaiTextEmbedding3Small: "openai/text-embedding-3-small",
};
exports.Eight = {
    OpenaiTextEmbedding3Large: "openai/text-embedding-3-large",
};
exports.Seven = {
    AzureTextEmbedding3Small: "azure/text-embedding-3-small",
};
exports.Model6 = {
    AzureTextEmbeddingAda002: "azure/text-embedding-ada-002",
};
exports.Model5 = {
    CohereEmbedV40: "cohere/embed-v4.0",
};
exports.Model4 = {
    CohereEmbedEnglishV30: "cohere/embed-english-v3.0",
};
exports.Model3 = {
    CohereEmbedEnglishLightV30: "cohere/embed-english-light-v3.0",
};
exports.CreateMemoryStoreModel2 = {
    CohereEmbedMultilingualLightV30: "cohere/embed-multilingual-light-v3.0",
};
exports.Model1 = {
    CohereEmbedMultilingualV30: "cohere/embed-multilingual-v3.0",
};
exports.CreateMemoryStoreModel23 = {
    JinaJinaEmbeddingsV3: "jina/jina-embeddings-v3",
};
exports.CreateMemoryStoreModel22 = {
    JinaJinaClipV2: "jina/jina-clip-v2",
};
exports.CreateMemoryStoreModel21 = {
    JinaJinaEmbeddingsV2BaseDe: "jina/jina-embeddings-v2-base-de",
};
exports.CreateMemoryStoreModel20 = {
    JinaJinaEmbeddingsV2BaseCode: "jina/jina-embeddings-v2-base-code",
};
exports.CreateMemoryStoreModel19 = {
    JinaJinaEmbeddingsV2BaseZh: "jina/jina-embeddings-v2-base-zh",
};
exports.CreateMemoryStoreModel18 = {
    JinaJinaEmbeddingsV2BaseEn: "jina/jina-embeddings-v2-base-en",
};
exports.CreateMemoryStoreModel17 = {
    JinaJinaEmbeddingsV2BaseEs: "jina/jina-embeddings-v2-base-es",
};
exports.CreateMemoryStoreModel16 = {
    JinaJinaClipV1: "jina/jina-clip-v1",
};
exports.CreateMemoryStoreModel15 = {
    MistralMistralEmbed: "mistral/mistral-embed",
};
exports.CreateMemoryStoreModel14 = {
    GoogleAiTextEmbedding004: "google-ai/text-embedding-004",
};
exports.CreateMemoryStoreModel13 = {
    GoogleMultimodalembeddingAt001: "google/multimodalembedding@001",
};
exports.CreateMemoryStoreModel12 = {
    GoogleTextMultilingualEmbedding002: "google/text-multilingual-embedding-002",
};
exports.CreateMemoryStoreModel11 = {
    GoogleGeminiEmbedding001: "google/gemini-embedding-001",
};
exports.CreateMemoryStoreModel10 = {
    OpenaiTextEmbeddingAda002: "openai/text-embedding-ada-002",
};
exports.CreateMemoryStoreModel9 = {
    OpenaiTextEmbedding3Small: "openai/text-embedding-3-small",
};
exports.CreateMemoryStoreModel8 = {
    OpenaiTextEmbedding3Large: "openai/text-embedding-3-large",
};
exports.CreateMemoryStoreModel7 = {
    AzureTextEmbedding3Small: "azure/text-embedding-3-small",
};
exports.CreateMemoryStoreModel6 = {
    AzureTextEmbeddingAda002: "azure/text-embedding-ada-002",
};
exports.CreateMemoryStoreModel5 = {
    CohereEmbedV40: "cohere/embed-v4.0",
};
exports.CreateMemoryStoreModel4 = {
    CohereEmbedEnglishV30: "cohere/embed-english-v3.0",
};
exports.CreateMemoryStoreModel3 = {
    CohereEmbedEnglishLightV30: "cohere/embed-english-light-v3.0",
};
exports.CreateMemoryStoreModelMemoryStores2 = {
    CohereEmbedMultilingualLightV30: "cohere/embed-multilingual-light-v3.0",
};
exports.CreateMemoryStoreModel1 = {
    CohereEmbedMultilingualV30: "cohere/embed-multilingual-v3.0",
};
/** @internal */
exports.TwentyThree$inboundSchema = z
    .nativeEnum(exports.TwentyThree);
/** @internal */
exports.TwentyThree$outboundSchema = exports.TwentyThree$inboundSchema;
/** @internal */
exports.TwentyTwo$inboundSchema = z
    .nativeEnum(exports.TwentyTwo);
/** @internal */
exports.TwentyTwo$outboundSchema = exports.TwentyTwo$inboundSchema;
/** @internal */
exports.TwentyOne$inboundSchema = z
    .nativeEnum(exports.TwentyOne);
/** @internal */
exports.TwentyOne$outboundSchema = exports.TwentyOne$inboundSchema;
/** @internal */
exports.Twenty$inboundSchema = z
    .nativeEnum(exports.Twenty);
/** @internal */
exports.Twenty$outboundSchema = exports.Twenty$inboundSchema;
/** @internal */
exports.Nineteen$inboundSchema = z
    .nativeEnum(exports.Nineteen);
/** @internal */
exports.Nineteen$outboundSchema = exports.Nineteen$inboundSchema;
/** @internal */
exports.Eighteen$inboundSchema = z
    .nativeEnum(exports.Eighteen);
/** @internal */
exports.Eighteen$outboundSchema = exports.Eighteen$inboundSchema;
/** @internal */
exports.Seventeen$inboundSchema = z
    .nativeEnum(exports.Seventeen);
/** @internal */
exports.Seventeen$outboundSchema = exports.Seventeen$inboundSchema;
/** @internal */
exports.Sixteen$inboundSchema = z
    .nativeEnum(exports.Sixteen);
/** @internal */
exports.Sixteen$outboundSchema = exports.Sixteen$inboundSchema;
/** @internal */
exports.Fifteen$inboundSchema = z
    .nativeEnum(exports.Fifteen);
/** @internal */
exports.Fifteen$outboundSchema = exports.Fifteen$inboundSchema;
/** @internal */
exports.Fourteen$inboundSchema = z
    .nativeEnum(exports.Fourteen);
/** @internal */
exports.Fourteen$outboundSchema = exports.Fourteen$inboundSchema;
/** @internal */
exports.Thirteen$inboundSchema = z
    .nativeEnum(exports.Thirteen);
/** @internal */
exports.Thirteen$outboundSchema = exports.Thirteen$inboundSchema;
/** @internal */
exports.Twelve$inboundSchema = z
    .nativeEnum(exports.Twelve);
/** @internal */
exports.Twelve$outboundSchema = exports.Twelve$inboundSchema;
/** @internal */
exports.Eleven$inboundSchema = z
    .nativeEnum(exports.Eleven);
/** @internal */
exports.Eleven$outboundSchema = exports.Eleven$inboundSchema;
/** @internal */
exports.Ten$inboundSchema = z.nativeEnum(exports.Ten);
/** @internal */
exports.Ten$outboundSchema = exports.Ten$inboundSchema;
/** @internal */
exports.Nine$inboundSchema = z.nativeEnum(exports.Nine);
/** @internal */
exports.Nine$outboundSchema = exports.Nine$inboundSchema;
/** @internal */
exports.Eight$inboundSchema = z.nativeEnum(exports.Eight);
/** @internal */
exports.Eight$outboundSchema = exports.Eight$inboundSchema;
/** @internal */
exports.Seven$inboundSchema = z.nativeEnum(exports.Seven);
/** @internal */
exports.Seven$outboundSchema = exports.Seven$inboundSchema;
/** @internal */
exports.Model6$inboundSchema = z
    .nativeEnum(exports.Model6);
/** @internal */
exports.Model6$outboundSchema = exports.Model6$inboundSchema;
/** @internal */
exports.Model5$inboundSchema = z
    .nativeEnum(exports.Model5);
/** @internal */
exports.Model5$outboundSchema = exports.Model5$inboundSchema;
/** @internal */
exports.Model4$inboundSchema = z
    .nativeEnum(exports.Model4);
/** @internal */
exports.Model4$outboundSchema = exports.Model4$inboundSchema;
/** @internal */
exports.Model3$inboundSchema = z
    .nativeEnum(exports.Model3);
/** @internal */
exports.Model3$outboundSchema = exports.Model3$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel2$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel2);
/** @internal */
exports.CreateMemoryStoreModel2$outboundSchema = exports.CreateMemoryStoreModel2$inboundSchema;
/** @internal */
exports.Model1$inboundSchema = z
    .nativeEnum(exports.Model1);
/** @internal */
exports.Model1$outboundSchema = exports.Model1$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel$inboundSchema = z.union([
    exports.Model1$inboundSchema,
    exports.CreateMemoryStoreModel2$inboundSchema,
    exports.Model3$inboundSchema,
    exports.Model4$inboundSchema,
    exports.Model5$inboundSchema,
    exports.Model6$inboundSchema,
    exports.Seven$inboundSchema,
    exports.Eight$inboundSchema,
    exports.Nine$inboundSchema,
    exports.Ten$inboundSchema,
    exports.Eleven$inboundSchema,
    exports.Twelve$inboundSchema,
    exports.Thirteen$inboundSchema,
    exports.Fourteen$inboundSchema,
    exports.Fifteen$inboundSchema,
    exports.Sixteen$inboundSchema,
    exports.Seventeen$inboundSchema,
    exports.Eighteen$inboundSchema,
    exports.Nineteen$inboundSchema,
    exports.Twenty$inboundSchema,
    exports.TwentyOne$inboundSchema,
    exports.TwentyTwo$inboundSchema,
    exports.TwentyThree$inboundSchema,
]);
/** @internal */
exports.CreateMemoryStoreModel$outboundSchema = z.union([
    exports.Model1$outboundSchema,
    exports.CreateMemoryStoreModel2$outboundSchema,
    exports.Model3$outboundSchema,
    exports.Model4$outboundSchema,
    exports.Model5$outboundSchema,
    exports.Model6$outboundSchema,
    exports.Seven$outboundSchema,
    exports.Eight$outboundSchema,
    exports.Nine$outboundSchema,
    exports.Ten$outboundSchema,
    exports.Eleven$outboundSchema,
    exports.Twelve$outboundSchema,
    exports.Thirteen$outboundSchema,
    exports.Fourteen$outboundSchema,
    exports.Fifteen$outboundSchema,
    exports.Sixteen$outboundSchema,
    exports.Seventeen$outboundSchema,
    exports.Eighteen$outboundSchema,
    exports.Nineteen$outboundSchema,
    exports.Twenty$outboundSchema,
    exports.TwentyOne$outboundSchema,
    exports.TwentyTwo$outboundSchema,
    exports.TwentyThree$outboundSchema,
]);
function createMemoryStoreModelToJSON(createMemoryStoreModel) {
    return JSON.stringify(exports.CreateMemoryStoreModel$outboundSchema.parse(createMemoryStoreModel));
}
function createMemoryStoreModelFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateMemoryStoreModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateMemoryStoreModel' from JSON`);
}
/** @internal */
exports.EmbeddingConfig$inboundSchema = z.object({
    model: z.union([
        exports.Model1$inboundSchema,
        exports.CreateMemoryStoreModel2$inboundSchema,
        exports.Model3$inboundSchema,
        exports.Model4$inboundSchema,
        exports.Model5$inboundSchema,
        exports.Model6$inboundSchema,
        exports.Seven$inboundSchema,
        exports.Eight$inboundSchema,
        exports.Nine$inboundSchema,
        exports.Ten$inboundSchema,
        exports.Eleven$inboundSchema,
        exports.Twelve$inboundSchema,
        exports.Thirteen$inboundSchema,
        exports.Fourteen$inboundSchema,
        exports.Fifteen$inboundSchema,
        exports.Sixteen$inboundSchema,
        exports.Seventeen$inboundSchema,
        exports.Eighteen$inboundSchema,
        exports.Nineteen$inboundSchema,
        exports.Twenty$inboundSchema,
        exports.TwentyOne$inboundSchema,
        exports.TwentyTwo$inboundSchema,
        exports.TwentyThree$inboundSchema,
    ]),
});
/** @internal */
exports.EmbeddingConfig$outboundSchema = z.object({
    model: z.union([
        exports.Model1$outboundSchema,
        exports.CreateMemoryStoreModel2$outboundSchema,
        exports.Model3$outboundSchema,
        exports.Model4$outboundSchema,
        exports.Model5$outboundSchema,
        exports.Model6$outboundSchema,
        exports.Seven$outboundSchema,
        exports.Eight$outboundSchema,
        exports.Nine$outboundSchema,
        exports.Ten$outboundSchema,
        exports.Eleven$outboundSchema,
        exports.Twelve$outboundSchema,
        exports.Thirteen$outboundSchema,
        exports.Fourteen$outboundSchema,
        exports.Fifteen$outboundSchema,
        exports.Sixteen$outboundSchema,
        exports.Seventeen$outboundSchema,
        exports.Eighteen$outboundSchema,
        exports.Nineteen$outboundSchema,
        exports.Twenty$outboundSchema,
        exports.TwentyOne$outboundSchema,
        exports.TwentyTwo$outboundSchema,
        exports.TwentyThree$outboundSchema,
    ]),
});
function embeddingConfigToJSON(embeddingConfig) {
    return JSON.stringify(exports.EmbeddingConfig$outboundSchema.parse(embeddingConfig));
}
function embeddingConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EmbeddingConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EmbeddingConfig' from JSON`);
}
/** @internal */
exports.CreateMemoryStoreRequestBody$inboundSchema = z.object({
    key: z.string(),
    embedding_config: z.lazy(() => exports.EmbeddingConfig$inboundSchema),
    description: z.string(),
    ttl: z.number().optional(),
    path: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "embedding_config": "embeddingConfig",
    });
});
/** @internal */
exports.CreateMemoryStoreRequestBody$outboundSchema = z.object({
    key: z.string(),
    embeddingConfig: z.lazy(() => exports.EmbeddingConfig$outboundSchema),
    description: z.string(),
    ttl: z.number().optional(),
    path: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        embeddingConfig: "embedding_config",
    });
});
function createMemoryStoreRequestBodyToJSON(createMemoryStoreRequestBody) {
    return JSON.stringify(exports.CreateMemoryStoreRequestBody$outboundSchema.parse(createMemoryStoreRequestBody));
}
function createMemoryStoreRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateMemoryStoreRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateMemoryStoreRequestBody' from JSON`);
}
/** @internal */
exports.CreateMemoryStoreModel23$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel23);
/** @internal */
exports.CreateMemoryStoreModel23$outboundSchema = exports.CreateMemoryStoreModel23$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel22$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel22);
/** @internal */
exports.CreateMemoryStoreModel22$outboundSchema = exports.CreateMemoryStoreModel22$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel21$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel21);
/** @internal */
exports.CreateMemoryStoreModel21$outboundSchema = exports.CreateMemoryStoreModel21$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel20$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel20);
/** @internal */
exports.CreateMemoryStoreModel20$outboundSchema = exports.CreateMemoryStoreModel20$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel19$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel19);
/** @internal */
exports.CreateMemoryStoreModel19$outboundSchema = exports.CreateMemoryStoreModel19$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel18$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel18);
/** @internal */
exports.CreateMemoryStoreModel18$outboundSchema = exports.CreateMemoryStoreModel18$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel17$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel17);
/** @internal */
exports.CreateMemoryStoreModel17$outboundSchema = exports.CreateMemoryStoreModel17$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel16$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel16);
/** @internal */
exports.CreateMemoryStoreModel16$outboundSchema = exports.CreateMemoryStoreModel16$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel15$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel15);
/** @internal */
exports.CreateMemoryStoreModel15$outboundSchema = exports.CreateMemoryStoreModel15$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel14$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel14);
/** @internal */
exports.CreateMemoryStoreModel14$outboundSchema = exports.CreateMemoryStoreModel14$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel13$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel13);
/** @internal */
exports.CreateMemoryStoreModel13$outboundSchema = exports.CreateMemoryStoreModel13$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel12$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel12);
/** @internal */
exports.CreateMemoryStoreModel12$outboundSchema = exports.CreateMemoryStoreModel12$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel11$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel11);
/** @internal */
exports.CreateMemoryStoreModel11$outboundSchema = exports.CreateMemoryStoreModel11$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel10$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel10);
/** @internal */
exports.CreateMemoryStoreModel10$outboundSchema = exports.CreateMemoryStoreModel10$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel9$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel9);
/** @internal */
exports.CreateMemoryStoreModel9$outboundSchema = exports.CreateMemoryStoreModel9$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel8$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel8);
/** @internal */
exports.CreateMemoryStoreModel8$outboundSchema = exports.CreateMemoryStoreModel8$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel7$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel7);
/** @internal */
exports.CreateMemoryStoreModel7$outboundSchema = exports.CreateMemoryStoreModel7$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel6$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel6);
/** @internal */
exports.CreateMemoryStoreModel6$outboundSchema = exports.CreateMemoryStoreModel6$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel5$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel5);
/** @internal */
exports.CreateMemoryStoreModel5$outboundSchema = exports.CreateMemoryStoreModel5$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel4$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel4);
/** @internal */
exports.CreateMemoryStoreModel4$outboundSchema = exports.CreateMemoryStoreModel4$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel3$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel3);
/** @internal */
exports.CreateMemoryStoreModel3$outboundSchema = exports.CreateMemoryStoreModel3$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModelMemoryStores2$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModelMemoryStores2);
/** @internal */
exports.CreateMemoryStoreModelMemoryStores2$outboundSchema = exports.CreateMemoryStoreModelMemoryStores2$inboundSchema;
/** @internal */
exports.CreateMemoryStoreModel1$inboundSchema = z.nativeEnum(exports.CreateMemoryStoreModel1);
/** @internal */
exports.CreateMemoryStoreModel1$outboundSchema = exports.CreateMemoryStoreModel1$inboundSchema;
/** @internal */
exports.CreateMemoryStoreMemoryStoresModel$inboundSchema = z.union([
    exports.CreateMemoryStoreModel1$inboundSchema,
    exports.CreateMemoryStoreModelMemoryStores2$inboundSchema,
    exports.CreateMemoryStoreModel3$inboundSchema,
    exports.CreateMemoryStoreModel4$inboundSchema,
    exports.CreateMemoryStoreModel5$inboundSchema,
    exports.CreateMemoryStoreModel6$inboundSchema,
    exports.CreateMemoryStoreModel7$inboundSchema,
    exports.CreateMemoryStoreModel8$inboundSchema,
    exports.CreateMemoryStoreModel9$inboundSchema,
    exports.CreateMemoryStoreModel10$inboundSchema,
    exports.CreateMemoryStoreModel11$inboundSchema,
    exports.CreateMemoryStoreModel12$inboundSchema,
    exports.CreateMemoryStoreModel13$inboundSchema,
    exports.CreateMemoryStoreModel14$inboundSchema,
    exports.CreateMemoryStoreModel15$inboundSchema,
    exports.CreateMemoryStoreModel16$inboundSchema,
    exports.CreateMemoryStoreModel17$inboundSchema,
    exports.CreateMemoryStoreModel18$inboundSchema,
    exports.CreateMemoryStoreModel19$inboundSchema,
    exports.CreateMemoryStoreModel20$inboundSchema,
    exports.CreateMemoryStoreModel21$inboundSchema,
    exports.CreateMemoryStoreModel22$inboundSchema,
    exports.CreateMemoryStoreModel23$inboundSchema,
]);
/** @internal */
exports.CreateMemoryStoreMemoryStoresModel$outboundSchema = z.union([
    exports.CreateMemoryStoreModel1$outboundSchema,
    exports.CreateMemoryStoreModelMemoryStores2$outboundSchema,
    exports.CreateMemoryStoreModel3$outboundSchema,
    exports.CreateMemoryStoreModel4$outboundSchema,
    exports.CreateMemoryStoreModel5$outboundSchema,
    exports.CreateMemoryStoreModel6$outboundSchema,
    exports.CreateMemoryStoreModel7$outboundSchema,
    exports.CreateMemoryStoreModel8$outboundSchema,
    exports.CreateMemoryStoreModel9$outboundSchema,
    exports.CreateMemoryStoreModel10$outboundSchema,
    exports.CreateMemoryStoreModel11$outboundSchema,
    exports.CreateMemoryStoreModel12$outboundSchema,
    exports.CreateMemoryStoreModel13$outboundSchema,
    exports.CreateMemoryStoreModel14$outboundSchema,
    exports.CreateMemoryStoreModel15$outboundSchema,
    exports.CreateMemoryStoreModel16$outboundSchema,
    exports.CreateMemoryStoreModel17$outboundSchema,
    exports.CreateMemoryStoreModel18$outboundSchema,
    exports.CreateMemoryStoreModel19$outboundSchema,
    exports.CreateMemoryStoreModel20$outboundSchema,
    exports.CreateMemoryStoreModel21$outboundSchema,
    exports.CreateMemoryStoreModel22$outboundSchema,
    exports.CreateMemoryStoreModel23$outboundSchema,
]);
function createMemoryStoreMemoryStoresModelToJSON(createMemoryStoreMemoryStoresModel) {
    return JSON.stringify(exports.CreateMemoryStoreMemoryStoresModel$outboundSchema.parse(createMemoryStoreMemoryStoresModel));
}
function createMemoryStoreMemoryStoresModelFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateMemoryStoreMemoryStoresModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateMemoryStoreMemoryStoresModel' from JSON`);
}
/** @internal */
exports.CreateMemoryStoreEmbeddingConfig$inboundSchema = z.object({
    model: z.union([
        exports.CreateMemoryStoreModel1$inboundSchema,
        exports.CreateMemoryStoreModelMemoryStores2$inboundSchema,
        exports.CreateMemoryStoreModel3$inboundSchema,
        exports.CreateMemoryStoreModel4$inboundSchema,
        exports.CreateMemoryStoreModel5$inboundSchema,
        exports.CreateMemoryStoreModel6$inboundSchema,
        exports.CreateMemoryStoreModel7$inboundSchema,
        exports.CreateMemoryStoreModel8$inboundSchema,
        exports.CreateMemoryStoreModel9$inboundSchema,
        exports.CreateMemoryStoreModel10$inboundSchema,
        exports.CreateMemoryStoreModel11$inboundSchema,
        exports.CreateMemoryStoreModel12$inboundSchema,
        exports.CreateMemoryStoreModel13$inboundSchema,
        exports.CreateMemoryStoreModel14$inboundSchema,
        exports.CreateMemoryStoreModel15$inboundSchema,
        exports.CreateMemoryStoreModel16$inboundSchema,
        exports.CreateMemoryStoreModel17$inboundSchema,
        exports.CreateMemoryStoreModel18$inboundSchema,
        exports.CreateMemoryStoreModel19$inboundSchema,
        exports.CreateMemoryStoreModel20$inboundSchema,
        exports.CreateMemoryStoreModel21$inboundSchema,
        exports.CreateMemoryStoreModel22$inboundSchema,
        exports.CreateMemoryStoreModel23$inboundSchema,
    ]),
});
/** @internal */
exports.CreateMemoryStoreEmbeddingConfig$outboundSchema = z.object({
    model: z.union([
        exports.CreateMemoryStoreModel1$outboundSchema,
        exports.CreateMemoryStoreModelMemoryStores2$outboundSchema,
        exports.CreateMemoryStoreModel3$outboundSchema,
        exports.CreateMemoryStoreModel4$outboundSchema,
        exports.CreateMemoryStoreModel5$outboundSchema,
        exports.CreateMemoryStoreModel6$outboundSchema,
        exports.CreateMemoryStoreModel7$outboundSchema,
        exports.CreateMemoryStoreModel8$outboundSchema,
        exports.CreateMemoryStoreModel9$outboundSchema,
        exports.CreateMemoryStoreModel10$outboundSchema,
        exports.CreateMemoryStoreModel11$outboundSchema,
        exports.CreateMemoryStoreModel12$outboundSchema,
        exports.CreateMemoryStoreModel13$outboundSchema,
        exports.CreateMemoryStoreModel14$outboundSchema,
        exports.CreateMemoryStoreModel15$outboundSchema,
        exports.CreateMemoryStoreModel16$outboundSchema,
        exports.CreateMemoryStoreModel17$outboundSchema,
        exports.CreateMemoryStoreModel18$outboundSchema,
        exports.CreateMemoryStoreModel19$outboundSchema,
        exports.CreateMemoryStoreModel20$outboundSchema,
        exports.CreateMemoryStoreModel21$outboundSchema,
        exports.CreateMemoryStoreModel22$outboundSchema,
        exports.CreateMemoryStoreModel23$outboundSchema,
    ]),
});
function createMemoryStoreEmbeddingConfigToJSON(createMemoryStoreEmbeddingConfig) {
    return JSON.stringify(exports.CreateMemoryStoreEmbeddingConfig$outboundSchema.parse(createMemoryStoreEmbeddingConfig));
}
function createMemoryStoreEmbeddingConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateMemoryStoreEmbeddingConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateMemoryStoreEmbeddingConfig' from JSON`);
}
/** @internal */
exports.CreateMemoryStoreResponseBody$inboundSchema = z.object({
    _id: z.string(),
    key: z.string(),
    description: z.string(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    created: z.string(),
    updated: z.string(),
    ttl: z.number().optional(),
    embedding_config: z.lazy(() => exports.CreateMemoryStoreEmbeddingConfig$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "embedding_config": "embeddingConfig",
    });
});
/** @internal */
exports.CreateMemoryStoreResponseBody$outboundSchema = z.object({
    id: z.string(),
    key: z.string(),
    description: z.string(),
    createdById: z.string().optional(),
    updatedById: z.string().optional(),
    created: z.string(),
    updated: z.string(),
    ttl: z.number().optional(),
    embeddingConfig: z.lazy(() => exports.CreateMemoryStoreEmbeddingConfig$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
        embeddingConfig: "embedding_config",
    });
});
function createMemoryStoreResponseBodyToJSON(createMemoryStoreResponseBody) {
    return JSON.stringify(exports.CreateMemoryStoreResponseBody$outboundSchema.parse(createMemoryStoreResponseBody));
}
function createMemoryStoreResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateMemoryStoreResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateMemoryStoreResponseBody' from JSON`);
}
//# sourceMappingURL=creatememorystore.js.map