'use strict';

var chunkZYXDUS6Q_cjs = require('./chunk-ZYXDUS6Q.cjs');
var z = require('zod');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var z__default = /*#__PURE__*/_interopDefault(z);

var vectorNamePathParams = z__default.default.object({
  vectorName: z__default.default.string().describe("Name of the vector store")
});
var vectorIndexPathParams = vectorNamePathParams.extend({
  indexName: z__default.default.string().describe("Name of the index")
});
var indexBodyBaseSchema = z__default.default.object({
  indexName: z__default.default.string()
});
var upsertVectorsBodySchema = indexBodyBaseSchema.extend({
  vectors: z__default.default.array(z__default.default.array(z__default.default.number())),
  metadata: z__default.default.array(z__default.default.record(z__default.default.string(), z__default.default.any())).optional(),
  ids: z__default.default.array(z__default.default.string()).optional()
});
var createIndexBodySchema = indexBodyBaseSchema.extend({
  dimension: z__default.default.number(),
  metric: z__default.default.enum(["cosine", "euclidean", "dotproduct"]).optional()
});
var queryVectorsBodySchema = indexBodyBaseSchema.extend({
  queryVector: z__default.default.array(z__default.default.number()),
  topK: z__default.default.number().optional(),
  filter: z__default.default.record(z__default.default.string(), z__default.default.any()).optional(),
  includeVector: z__default.default.boolean().optional()
});
var upsertVectorsResponseSchema = z__default.default.object({
  ids: z__default.default.array(z__default.default.string())
});
var createIndexResponseSchema = chunkZYXDUS6Q_cjs.successResponseSchema;
var queryVectorsResponseSchema = z__default.default.array(z__default.default.unknown());
var listIndexesResponseSchema = z__default.default.array(z__default.default.string());
var describeIndexResponseSchema = z__default.default.object({
  dimension: z__default.default.number(),
  count: z__default.default.number(),
  metric: z__default.default.string().optional()
});
var deleteIndexResponseSchema = chunkZYXDUS6Q_cjs.successResponseSchema;
var listVectorsResponseSchema = z__default.default.object({
  vectors: z__default.default.array(
    z__default.default.object({
      id: z__default.default.string(),
      name: z__default.default.string(),
      type: z__default.default.string(),
      description: z__default.default.string().optional()
    })
  )
});
var listEmbeddersResponseSchema = z__default.default.object({
  embedders: z__default.default.array(
    z__default.default.object({
      id: z__default.default.string(),
      provider: z__default.default.string(),
      name: z__default.default.string(),
      description: z__default.default.string(),
      dimensions: z__default.default.number(),
      maxInputTokens: z__default.default.number()
    })
  )
});

exports.createIndexBodySchema = createIndexBodySchema;
exports.createIndexResponseSchema = createIndexResponseSchema;
exports.deleteIndexResponseSchema = deleteIndexResponseSchema;
exports.describeIndexResponseSchema = describeIndexResponseSchema;
exports.listEmbeddersResponseSchema = listEmbeddersResponseSchema;
exports.listIndexesResponseSchema = listIndexesResponseSchema;
exports.listVectorsResponseSchema = listVectorsResponseSchema;
exports.queryVectorsBodySchema = queryVectorsBodySchema;
exports.queryVectorsResponseSchema = queryVectorsResponseSchema;
exports.upsertVectorsBodySchema = upsertVectorsBodySchema;
exports.upsertVectorsResponseSchema = upsertVectorsResponseSchema;
exports.vectorIndexPathParams = vectorIndexPathParams;
exports.vectorNamePathParams = vectorNamePathParams;
//# sourceMappingURL=chunk-LCP4G5CT.cjs.map
//# sourceMappingURL=chunk-LCP4G5CT.cjs.map