@lunora/server 1.0.0-alpha.201 → 1.0.0-alpha.202
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.
- package/dist/types.d.mts +11 -2
- package/dist/types.d.ts +11 -2
- package/package.json +1 -1
package/dist/types.d.mts
CHANGED
|
@@ -2253,8 +2253,17 @@ interface VectorSearchReader<IndexName extends string = string> {
|
|
|
2253
2253
|
* `db.delete` on a vectorized table auto-propagates the matching `deleteByIds`.
|
|
2254
2254
|
*/
|
|
2255
2255
|
interface VectorSearch<IndexName extends string = string> extends VectorSearchReader<IndexName> {
|
|
2256
|
-
deleteByIds
|
|
2257
|
-
|
|
2256
|
+
/** Set when `deleteByIds` honours its `operation` and `afterDelete` arguments. */
|
|
2257
|
+
deferredDelete?: boolean;
|
|
2258
|
+
deleteByIds: (indexName: IndexName, ids: ReadonlyArray<string>, namespace?: string, operation?: object, afterDelete?: () => Promise<void>) => Promise<void>;
|
|
2259
|
+
upsert: (indexName: IndexName, input: VectorUpsertInput, operation?: object) => Promise<void>;
|
|
2260
|
+
/**
|
|
2261
|
+
* Batch form of `upsert` (at most 1000 inputs, one remote call). Optional so
|
|
2262
|
+
* existing implementors keep compiling. The optional `operation` token (on
|
|
2263
|
+
* both `upsert` and `upsertMany`) groups deferred writes: once one fails,
|
|
2264
|
+
* later deferred writes carrying the same token are skipped.
|
|
2265
|
+
*/
|
|
2266
|
+
upsertMany?: (indexName: IndexName, inputs: ReadonlyArray<VectorUpsertInput>, operation?: object) => Promise<void>;
|
|
2258
2267
|
upsertNow: (indexName: IndexName, input: VectorUpsertInput) => Promise<void>;
|
|
2259
2268
|
}
|
|
2260
2269
|
/**
|
package/dist/types.d.ts
CHANGED
|
@@ -2253,8 +2253,17 @@ interface VectorSearchReader<IndexName extends string = string> {
|
|
|
2253
2253
|
* `db.delete` on a vectorized table auto-propagates the matching `deleteByIds`.
|
|
2254
2254
|
*/
|
|
2255
2255
|
interface VectorSearch<IndexName extends string = string> extends VectorSearchReader<IndexName> {
|
|
2256
|
-
deleteByIds
|
|
2257
|
-
|
|
2256
|
+
/** Set when `deleteByIds` honours its `operation` and `afterDelete` arguments. */
|
|
2257
|
+
deferredDelete?: boolean;
|
|
2258
|
+
deleteByIds: (indexName: IndexName, ids: ReadonlyArray<string>, namespace?: string, operation?: object, afterDelete?: () => Promise<void>) => Promise<void>;
|
|
2259
|
+
upsert: (indexName: IndexName, input: VectorUpsertInput, operation?: object) => Promise<void>;
|
|
2260
|
+
/**
|
|
2261
|
+
* Batch form of `upsert` (at most 1000 inputs, one remote call). Optional so
|
|
2262
|
+
* existing implementors keep compiling. The optional `operation` token (on
|
|
2263
|
+
* both `upsert` and `upsertMany`) groups deferred writes: once one fails,
|
|
2264
|
+
* later deferred writes carrying the same token are skipped.
|
|
2265
|
+
*/
|
|
2266
|
+
upsertMany?: (indexName: IndexName, inputs: ReadonlyArray<VectorUpsertInput>, operation?: object) => Promise<void>;
|
|
2258
2267
|
upsertNow: (indexName: IndexName, input: VectorUpsertInput) => Promise<void>;
|
|
2259
2268
|
}
|
|
2260
2269
|
/**
|