@mastra/couchbase 0.0.0-working-memory-per-user-20250620163010 → 0.0.0-zod-v4-compat-part-2-20250822105954

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,80 +0,0 @@
1
- import type { Collection } from 'couchbase';
2
- import type { CreateIndexParams } from '@mastra/core/vector';
3
- import type { DeleteIndexParams } from '@mastra/core/vector';
4
- import type { DeleteVectorParams } from '@mastra/core/vector';
5
- import type { DescribeIndexParams } from '@mastra/core/vector';
6
- import type { IndexStats } from '@mastra/core/vector';
7
- import { MastraVector } from '@mastra/core/vector';
8
- import type { QueryResult } from '@mastra/core/vector';
9
- import type { QueryVectorParams } from '@mastra/core/vector';
10
- import type { UpdateVectorParams } from '@mastra/core/vector';
11
- import type { UpsertVectorParams } from '@mastra/core/vector';
12
-
13
- declare type CouchbaseMetric = 'cosine' | 'l2_norm' | 'dot_product';
14
-
15
- declare class CouchbaseVector extends MastraVector {
16
- private clusterPromise;
17
- private cluster;
18
- private bucketName;
19
- private collectionName;
20
- private scopeName;
21
- private collection;
22
- private bucket;
23
- private scope;
24
- private vector_dimension;
25
- constructor({ connectionString, username, password, bucketName, scopeName, collectionName }: CouchbaseVectorParams);
26
- getCollection(): Promise<Collection>;
27
- createIndex({ indexName, dimension, metric }: CreateIndexParams): Promise<void>;
28
- upsert({ vectors, metadata, ids }: UpsertVectorParams): Promise<string[]>;
29
- query({ indexName, queryVector, topK, includeVector }: QueryVectorParams): Promise<QueryResult[]>;
30
- listIndexes(): Promise<string[]>;
31
- /**
32
- * Retrieves statistics about a vector index.
33
- *
34
- * @param {string} indexName - The name of the index to describe
35
- * @returns A promise that resolves to the index statistics including dimension, count and metric
36
- */
37
- describeIndex({ indexName }: DescribeIndexParams): Promise<IndexStats>;
38
- deleteIndex({ indexName }: DeleteIndexParams): Promise<void>;
39
- /**
40
- * Updates a vector by its ID with the provided vector and/or metadata.
41
- * @param indexName - The name of the index containing the vector.
42
- * @param id - The ID of the vector to update.
43
- * @param update - An object containing the vector and/or metadata to update.
44
- * @param update.vector - An optional array of numbers representing the new vector.
45
- * @param update.metadata - An optional record containing the new metadata.
46
- * @returns A promise that resolves when the update is complete.
47
- * @throws Will throw an error if no updates are provided or if the update operation fails.
48
- */
49
- updateVector({ id, update }: UpdateVectorParams): Promise<void>;
50
- /**
51
- * Deletes a vector by its ID.
52
- * @param indexName - The name of the index containing the vector.
53
- * @param id - The ID of the vector to delete.
54
- * @returns A promise that resolves when the deletion is complete.
55
- * @throws Will throw an error if the deletion operation fails.
56
- */
57
- deleteVector({ id }: DeleteVectorParams): Promise<void>;
58
- disconnect(): Promise<void>;
59
- }
60
- export { CouchbaseVector }
61
- export { CouchbaseVector as CouchbaseVector_alias_1 }
62
-
63
- declare type CouchbaseVectorParams = {
64
- connectionString: string;
65
- username: string;
66
- password: string;
67
- bucketName: string;
68
- scopeName: string;
69
- collectionName: string;
70
- };
71
- export { CouchbaseVectorParams }
72
- export { CouchbaseVectorParams as CouchbaseVectorParams_alias_1 }
73
-
74
- declare const DISTANCE_MAPPING: Record<MastraMetric, CouchbaseMetric>;
75
- export { DISTANCE_MAPPING }
76
- export { DISTANCE_MAPPING as DISTANCE_MAPPING_alias_1 }
77
-
78
- declare type MastraMetric = 'cosine' | 'euclidean' | 'dotproduct';
79
-
80
- export { }
package/dist/index.d.cts DELETED
@@ -1,3 +0,0 @@
1
- export { DISTANCE_MAPPING } from './_tsup-dts-rollup.cjs';
2
- export { CouchbaseVectorParams } from './_tsup-dts-rollup.cjs';
3
- export { CouchbaseVector } from './_tsup-dts-rollup.cjs';