hyperspace-sdk-ts 2.2.0 → 3.0.0
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/README.md +163 -10
- package/dist/agents.d.ts +16 -0
- package/dist/agents.js +64 -0
- package/dist/client.d.ts +50 -1
- package/dist/client.js +362 -16
- package/dist/math.d.ts +44 -0
- package/dist/math.js +234 -0
- package/dist/proto/hyperspace_grpc_pb.js +403 -0
- package/dist/proto/hyperspace_pb.js +9920 -2559
- package/package.json +1 -1
|
@@ -147,6 +147,116 @@ function deserialize_hyperspace_Empty(buffer_arg) {
|
|
|
147
147
|
return hyperspace_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg));
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
function serialize_hyperspace_EventMessage(arg) {
|
|
151
|
+
if (!(arg instanceof hyperspace_pb.EventMessage)) {
|
|
152
|
+
throw new Error('Expected argument of type hyperspace.EventMessage');
|
|
153
|
+
}
|
|
154
|
+
return Buffer.from(arg.serializeBinary());
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function deserialize_hyperspace_EventMessage(buffer_arg) {
|
|
158
|
+
return hyperspace_pb.EventMessage.deserializeBinary(new Uint8Array(buffer_arg));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function serialize_hyperspace_EventSubscriptionRequest(arg) {
|
|
162
|
+
if (!(arg instanceof hyperspace_pb.EventSubscriptionRequest)) {
|
|
163
|
+
throw new Error('Expected argument of type hyperspace.EventSubscriptionRequest');
|
|
164
|
+
}
|
|
165
|
+
return Buffer.from(arg.serializeBinary());
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function deserialize_hyperspace_EventSubscriptionRequest(buffer_arg) {
|
|
169
|
+
return hyperspace_pb.EventSubscriptionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function serialize_hyperspace_FindSemanticClustersRequest(arg) {
|
|
173
|
+
if (!(arg instanceof hyperspace_pb.FindSemanticClustersRequest)) {
|
|
174
|
+
throw new Error('Expected argument of type hyperspace.FindSemanticClustersRequest');
|
|
175
|
+
}
|
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deserialize_hyperspace_FindSemanticClustersRequest(buffer_arg) {
|
|
180
|
+
return hyperspace_pb.FindSemanticClustersRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function serialize_hyperspace_FindSemanticClustersResponse(arg) {
|
|
184
|
+
if (!(arg instanceof hyperspace_pb.FindSemanticClustersResponse)) {
|
|
185
|
+
throw new Error('Expected argument of type hyperspace.FindSemanticClustersResponse');
|
|
186
|
+
}
|
|
187
|
+
return Buffer.from(arg.serializeBinary());
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function deserialize_hyperspace_FindSemanticClustersResponse(buffer_arg) {
|
|
191
|
+
return hyperspace_pb.FindSemanticClustersResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function serialize_hyperspace_GetConceptParentsRequest(arg) {
|
|
195
|
+
if (!(arg instanceof hyperspace_pb.GetConceptParentsRequest)) {
|
|
196
|
+
throw new Error('Expected argument of type hyperspace.GetConceptParentsRequest');
|
|
197
|
+
}
|
|
198
|
+
return Buffer.from(arg.serializeBinary());
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function deserialize_hyperspace_GetConceptParentsRequest(buffer_arg) {
|
|
202
|
+
return hyperspace_pb.GetConceptParentsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function serialize_hyperspace_GetConceptParentsResponse(arg) {
|
|
206
|
+
if (!(arg instanceof hyperspace_pb.GetConceptParentsResponse)) {
|
|
207
|
+
throw new Error('Expected argument of type hyperspace.GetConceptParentsResponse');
|
|
208
|
+
}
|
|
209
|
+
return Buffer.from(arg.serializeBinary());
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
function deserialize_hyperspace_GetConceptParentsResponse(buffer_arg) {
|
|
213
|
+
return hyperspace_pb.GetConceptParentsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function serialize_hyperspace_GetNeighborsRequest(arg) {
|
|
217
|
+
if (!(arg instanceof hyperspace_pb.GetNeighborsRequest)) {
|
|
218
|
+
throw new Error('Expected argument of type hyperspace.GetNeighborsRequest');
|
|
219
|
+
}
|
|
220
|
+
return Buffer.from(arg.serializeBinary());
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function deserialize_hyperspace_GetNeighborsRequest(buffer_arg) {
|
|
224
|
+
return hyperspace_pb.GetNeighborsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function serialize_hyperspace_GetNeighborsResponse(arg) {
|
|
228
|
+
if (!(arg instanceof hyperspace_pb.GetNeighborsResponse)) {
|
|
229
|
+
throw new Error('Expected argument of type hyperspace.GetNeighborsResponse');
|
|
230
|
+
}
|
|
231
|
+
return Buffer.from(arg.serializeBinary());
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function deserialize_hyperspace_GetNeighborsResponse(buffer_arg) {
|
|
235
|
+
return hyperspace_pb.GetNeighborsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function serialize_hyperspace_GetNodeRequest(arg) {
|
|
239
|
+
if (!(arg instanceof hyperspace_pb.GetNodeRequest)) {
|
|
240
|
+
throw new Error('Expected argument of type hyperspace.GetNodeRequest');
|
|
241
|
+
}
|
|
242
|
+
return Buffer.from(arg.serializeBinary());
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function deserialize_hyperspace_GetNodeRequest(buffer_arg) {
|
|
246
|
+
return hyperspace_pb.GetNodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function serialize_hyperspace_GraphNode(arg) {
|
|
250
|
+
if (!(arg instanceof hyperspace_pb.GraphNode)) {
|
|
251
|
+
throw new Error('Expected argument of type hyperspace.GraphNode');
|
|
252
|
+
}
|
|
253
|
+
return Buffer.from(arg.serializeBinary());
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function deserialize_hyperspace_GraphNode(buffer_arg) {
|
|
257
|
+
return hyperspace_pb.GraphNode.deserializeBinary(new Uint8Array(buffer_arg));
|
|
258
|
+
}
|
|
259
|
+
|
|
150
260
|
function serialize_hyperspace_InsertRequest(arg) {
|
|
151
261
|
if (!(arg instanceof hyperspace_pb.InsertRequest)) {
|
|
152
262
|
throw new Error('Expected argument of type hyperspace.InsertRequest');
|
|
@@ -213,6 +323,17 @@ function deserialize_hyperspace_RebuildIndexRequest(buffer_arg) {
|
|
|
213
323
|
return hyperspace_pb.RebuildIndexRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
214
324
|
}
|
|
215
325
|
|
|
326
|
+
function serialize_hyperspace_ReconsolidationRequest(arg) {
|
|
327
|
+
if (!(arg instanceof hyperspace_pb.ReconsolidationRequest)) {
|
|
328
|
+
throw new Error('Expected argument of type hyperspace.ReconsolidationRequest');
|
|
329
|
+
}
|
|
330
|
+
return Buffer.from(arg.serializeBinary());
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
function deserialize_hyperspace_ReconsolidationRequest(buffer_arg) {
|
|
334
|
+
return hyperspace_pb.ReconsolidationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
335
|
+
}
|
|
336
|
+
|
|
216
337
|
function serialize_hyperspace_ReplicationLog(arg) {
|
|
217
338
|
if (!(arg instanceof hyperspace_pb.ReplicationLog)) {
|
|
218
339
|
throw new Error('Expected argument of type hyperspace.ReplicationLog');
|
|
@@ -235,6 +356,28 @@ function deserialize_hyperspace_ReplicationRequest(buffer_arg) {
|
|
|
235
356
|
return hyperspace_pb.ReplicationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
236
357
|
}
|
|
237
358
|
|
|
359
|
+
function serialize_hyperspace_SearchMultiCollectionRequest(arg) {
|
|
360
|
+
if (!(arg instanceof hyperspace_pb.SearchMultiCollectionRequest)) {
|
|
361
|
+
throw new Error('Expected argument of type hyperspace.SearchMultiCollectionRequest');
|
|
362
|
+
}
|
|
363
|
+
return Buffer.from(arg.serializeBinary());
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
function deserialize_hyperspace_SearchMultiCollectionRequest(buffer_arg) {
|
|
367
|
+
return hyperspace_pb.SearchMultiCollectionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
function serialize_hyperspace_SearchMultiCollectionResponse(arg) {
|
|
371
|
+
if (!(arg instanceof hyperspace_pb.SearchMultiCollectionResponse)) {
|
|
372
|
+
throw new Error('Expected argument of type hyperspace.SearchMultiCollectionResponse');
|
|
373
|
+
}
|
|
374
|
+
return Buffer.from(arg.serializeBinary());
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
function deserialize_hyperspace_SearchMultiCollectionResponse(buffer_arg) {
|
|
378
|
+
return hyperspace_pb.SearchMultiCollectionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
379
|
+
}
|
|
380
|
+
|
|
238
381
|
function serialize_hyperspace_SearchRequest(arg) {
|
|
239
382
|
if (!(arg instanceof hyperspace_pb.SearchRequest)) {
|
|
240
383
|
throw new Error('Expected argument of type hyperspace.SearchRequest');
|
|
@@ -257,6 +400,17 @@ function deserialize_hyperspace_SearchResponse(buffer_arg) {
|
|
|
257
400
|
return hyperspace_pb.SearchResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
258
401
|
}
|
|
259
402
|
|
|
403
|
+
function serialize_hyperspace_SearchTextRequest(arg) {
|
|
404
|
+
if (!(arg instanceof hyperspace_pb.SearchTextRequest)) {
|
|
405
|
+
throw new Error('Expected argument of type hyperspace.SearchTextRequest');
|
|
406
|
+
}
|
|
407
|
+
return Buffer.from(arg.serializeBinary());
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
function deserialize_hyperspace_SearchTextRequest(buffer_arg) {
|
|
411
|
+
return hyperspace_pb.SearchTextRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
412
|
+
}
|
|
413
|
+
|
|
260
414
|
function serialize_hyperspace_StatusResponse(arg) {
|
|
261
415
|
if (!(arg instanceof hyperspace_pb.StatusResponse)) {
|
|
262
416
|
throw new Error('Expected argument of type hyperspace.StatusResponse');
|
|
@@ -268,6 +422,61 @@ function deserialize_hyperspace_StatusResponse(buffer_arg) {
|
|
|
268
422
|
return hyperspace_pb.StatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
269
423
|
}
|
|
270
424
|
|
|
425
|
+
function serialize_hyperspace_SyncHandshakeRequest(arg) {
|
|
426
|
+
if (!(arg instanceof hyperspace_pb.SyncHandshakeRequest)) {
|
|
427
|
+
throw new Error('Expected argument of type hyperspace.SyncHandshakeRequest');
|
|
428
|
+
}
|
|
429
|
+
return Buffer.from(arg.serializeBinary());
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
function deserialize_hyperspace_SyncHandshakeRequest(buffer_arg) {
|
|
433
|
+
return hyperspace_pb.SyncHandshakeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
function serialize_hyperspace_SyncHandshakeResponse(arg) {
|
|
437
|
+
if (!(arg instanceof hyperspace_pb.SyncHandshakeResponse)) {
|
|
438
|
+
throw new Error('Expected argument of type hyperspace.SyncHandshakeResponse');
|
|
439
|
+
}
|
|
440
|
+
return Buffer.from(arg.serializeBinary());
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
function deserialize_hyperspace_SyncHandshakeResponse(buffer_arg) {
|
|
444
|
+
return hyperspace_pb.SyncHandshakeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
function serialize_hyperspace_SyncPullRequest(arg) {
|
|
448
|
+
if (!(arg instanceof hyperspace_pb.SyncPullRequest)) {
|
|
449
|
+
throw new Error('Expected argument of type hyperspace.SyncPullRequest');
|
|
450
|
+
}
|
|
451
|
+
return Buffer.from(arg.serializeBinary());
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
function deserialize_hyperspace_SyncPullRequest(buffer_arg) {
|
|
455
|
+
return hyperspace_pb.SyncPullRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
function serialize_hyperspace_SyncPushResponse(arg) {
|
|
459
|
+
if (!(arg instanceof hyperspace_pb.SyncPushResponse)) {
|
|
460
|
+
throw new Error('Expected argument of type hyperspace.SyncPushResponse');
|
|
461
|
+
}
|
|
462
|
+
return Buffer.from(arg.serializeBinary());
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
function deserialize_hyperspace_SyncPushResponse(buffer_arg) {
|
|
466
|
+
return hyperspace_pb.SyncPushResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
function serialize_hyperspace_SyncVectorData(arg) {
|
|
470
|
+
if (!(arg instanceof hyperspace_pb.SyncVectorData)) {
|
|
471
|
+
throw new Error('Expected argument of type hyperspace.SyncVectorData');
|
|
472
|
+
}
|
|
473
|
+
return Buffer.from(arg.serializeBinary());
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
function deserialize_hyperspace_SyncVectorData(buffer_arg) {
|
|
477
|
+
return hyperspace_pb.SyncVectorData.deserializeBinary(new Uint8Array(buffer_arg));
|
|
478
|
+
}
|
|
479
|
+
|
|
271
480
|
function serialize_hyperspace_SystemStats(arg) {
|
|
272
481
|
if (!(arg instanceof hyperspace_pb.SystemStats)) {
|
|
273
482
|
throw new Error('Expected argument of type hyperspace.SystemStats');
|
|
@@ -279,6 +488,50 @@ function deserialize_hyperspace_SystemStats(buffer_arg) {
|
|
|
279
488
|
return hyperspace_pb.SystemStats.deserializeBinary(new Uint8Array(buffer_arg));
|
|
280
489
|
}
|
|
281
490
|
|
|
491
|
+
function serialize_hyperspace_TraverseRequest(arg) {
|
|
492
|
+
if (!(arg instanceof hyperspace_pb.TraverseRequest)) {
|
|
493
|
+
throw new Error('Expected argument of type hyperspace.TraverseRequest');
|
|
494
|
+
}
|
|
495
|
+
return Buffer.from(arg.serializeBinary());
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
function deserialize_hyperspace_TraverseRequest(buffer_arg) {
|
|
499
|
+
return hyperspace_pb.TraverseRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
function serialize_hyperspace_TraverseResponse(arg) {
|
|
503
|
+
if (!(arg instanceof hyperspace_pb.TraverseResponse)) {
|
|
504
|
+
throw new Error('Expected argument of type hyperspace.TraverseResponse');
|
|
505
|
+
}
|
|
506
|
+
return Buffer.from(arg.serializeBinary());
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
function deserialize_hyperspace_TraverseResponse(buffer_arg) {
|
|
510
|
+
return hyperspace_pb.TraverseResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
function serialize_hyperspace_VectorizeRequest(arg) {
|
|
514
|
+
if (!(arg instanceof hyperspace_pb.VectorizeRequest)) {
|
|
515
|
+
throw new Error('Expected argument of type hyperspace.VectorizeRequest');
|
|
516
|
+
}
|
|
517
|
+
return Buffer.from(arg.serializeBinary());
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
function deserialize_hyperspace_VectorizeRequest(buffer_arg) {
|
|
521
|
+
return hyperspace_pb.VectorizeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
function serialize_hyperspace_VectorizeResponse(arg) {
|
|
525
|
+
if (!(arg instanceof hyperspace_pb.VectorizeResponse)) {
|
|
526
|
+
throw new Error('Expected argument of type hyperspace.VectorizeResponse');
|
|
527
|
+
}
|
|
528
|
+
return Buffer.from(arg.serializeBinary());
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
function deserialize_hyperspace_VectorizeResponse(buffer_arg) {
|
|
532
|
+
return hyperspace_pb.VectorizeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
533
|
+
}
|
|
534
|
+
|
|
282
535
|
|
|
283
536
|
var DatabaseService = exports.DatabaseService = {
|
|
284
537
|
// Collection Management
|
|
@@ -360,6 +613,28 @@ insert: {
|
|
|
360
613
|
responseSerialize: serialize_hyperspace_InsertResponse,
|
|
361
614
|
responseDeserialize: deserialize_hyperspace_InsertResponse,
|
|
362
615
|
},
|
|
616
|
+
vectorize: {
|
|
617
|
+
path: '/hyperspace.Database/Vectorize',
|
|
618
|
+
requestStream: false,
|
|
619
|
+
responseStream: false,
|
|
620
|
+
requestType: hyperspace_pb.VectorizeRequest,
|
|
621
|
+
responseType: hyperspace_pb.VectorizeResponse,
|
|
622
|
+
requestSerialize: serialize_hyperspace_VectorizeRequest,
|
|
623
|
+
requestDeserialize: deserialize_hyperspace_VectorizeRequest,
|
|
624
|
+
responseSerialize: serialize_hyperspace_VectorizeResponse,
|
|
625
|
+
responseDeserialize: deserialize_hyperspace_VectorizeResponse,
|
|
626
|
+
},
|
|
627
|
+
searchText: {
|
|
628
|
+
path: '/hyperspace.Database/SearchText',
|
|
629
|
+
requestStream: false,
|
|
630
|
+
responseStream: false,
|
|
631
|
+
requestType: hyperspace_pb.SearchTextRequest,
|
|
632
|
+
responseType: hyperspace_pb.SearchResponse,
|
|
633
|
+
requestSerialize: serialize_hyperspace_SearchTextRequest,
|
|
634
|
+
requestDeserialize: deserialize_hyperspace_SearchTextRequest,
|
|
635
|
+
responseSerialize: serialize_hyperspace_SearchResponse,
|
|
636
|
+
responseDeserialize: deserialize_hyperspace_SearchResponse,
|
|
637
|
+
},
|
|
363
638
|
// Delete vectors
|
|
364
639
|
delete: {
|
|
365
640
|
path: '/hyperspace.Database/Delete',
|
|
@@ -396,6 +671,74 @@ searchBatch: {
|
|
|
396
671
|
responseSerialize: serialize_hyperspace_BatchSearchResponse,
|
|
397
672
|
responseDeserialize: deserialize_hyperspace_BatchSearchResponse,
|
|
398
673
|
},
|
|
674
|
+
// Multi-Geometry Search (v3.0)
|
|
675
|
+
searchMultiCollection: {
|
|
676
|
+
path: '/hyperspace.Database/SearchMultiCollection',
|
|
677
|
+
requestStream: false,
|
|
678
|
+
responseStream: false,
|
|
679
|
+
requestType: hyperspace_pb.SearchMultiCollectionRequest,
|
|
680
|
+
responseType: hyperspace_pb.SearchMultiCollectionResponse,
|
|
681
|
+
requestSerialize: serialize_hyperspace_SearchMultiCollectionRequest,
|
|
682
|
+
requestDeserialize: deserialize_hyperspace_SearchMultiCollectionRequest,
|
|
683
|
+
responseSerialize: serialize_hyperspace_SearchMultiCollectionResponse,
|
|
684
|
+
responseDeserialize: deserialize_hyperspace_SearchMultiCollectionResponse,
|
|
685
|
+
},
|
|
686
|
+
// Graph Traversal API (v2.3)
|
|
687
|
+
getNode: {
|
|
688
|
+
path: '/hyperspace.Database/GetNode',
|
|
689
|
+
requestStream: false,
|
|
690
|
+
responseStream: false,
|
|
691
|
+
requestType: hyperspace_pb.GetNodeRequest,
|
|
692
|
+
responseType: hyperspace_pb.GraphNode,
|
|
693
|
+
requestSerialize: serialize_hyperspace_GetNodeRequest,
|
|
694
|
+
requestDeserialize: deserialize_hyperspace_GetNodeRequest,
|
|
695
|
+
responseSerialize: serialize_hyperspace_GraphNode,
|
|
696
|
+
responseDeserialize: deserialize_hyperspace_GraphNode,
|
|
697
|
+
},
|
|
698
|
+
getNeighbors: {
|
|
699
|
+
path: '/hyperspace.Database/GetNeighbors',
|
|
700
|
+
requestStream: false,
|
|
701
|
+
responseStream: false,
|
|
702
|
+
requestType: hyperspace_pb.GetNeighborsRequest,
|
|
703
|
+
responseType: hyperspace_pb.GetNeighborsResponse,
|
|
704
|
+
requestSerialize: serialize_hyperspace_GetNeighborsRequest,
|
|
705
|
+
requestDeserialize: deserialize_hyperspace_GetNeighborsRequest,
|
|
706
|
+
responseSerialize: serialize_hyperspace_GetNeighborsResponse,
|
|
707
|
+
responseDeserialize: deserialize_hyperspace_GetNeighborsResponse,
|
|
708
|
+
},
|
|
709
|
+
getConceptParents: {
|
|
710
|
+
path: '/hyperspace.Database/GetConceptParents',
|
|
711
|
+
requestStream: false,
|
|
712
|
+
responseStream: false,
|
|
713
|
+
requestType: hyperspace_pb.GetConceptParentsRequest,
|
|
714
|
+
responseType: hyperspace_pb.GetConceptParentsResponse,
|
|
715
|
+
requestSerialize: serialize_hyperspace_GetConceptParentsRequest,
|
|
716
|
+
requestDeserialize: deserialize_hyperspace_GetConceptParentsRequest,
|
|
717
|
+
responseSerialize: serialize_hyperspace_GetConceptParentsResponse,
|
|
718
|
+
responseDeserialize: deserialize_hyperspace_GetConceptParentsResponse,
|
|
719
|
+
},
|
|
720
|
+
traverse: {
|
|
721
|
+
path: '/hyperspace.Database/Traverse',
|
|
722
|
+
requestStream: false,
|
|
723
|
+
responseStream: false,
|
|
724
|
+
requestType: hyperspace_pb.TraverseRequest,
|
|
725
|
+
responseType: hyperspace_pb.TraverseResponse,
|
|
726
|
+
requestSerialize: serialize_hyperspace_TraverseRequest,
|
|
727
|
+
requestDeserialize: deserialize_hyperspace_TraverseRequest,
|
|
728
|
+
responseSerialize: serialize_hyperspace_TraverseResponse,
|
|
729
|
+
responseDeserialize: deserialize_hyperspace_TraverseResponse,
|
|
730
|
+
},
|
|
731
|
+
findSemanticClusters: {
|
|
732
|
+
path: '/hyperspace.Database/FindSemanticClusters',
|
|
733
|
+
requestStream: false,
|
|
734
|
+
responseStream: false,
|
|
735
|
+
requestType: hyperspace_pb.FindSemanticClustersRequest,
|
|
736
|
+
responseType: hyperspace_pb.FindSemanticClustersResponse,
|
|
737
|
+
requestSerialize: serialize_hyperspace_FindSemanticClustersRequest,
|
|
738
|
+
requestDeserialize: deserialize_hyperspace_FindSemanticClustersRequest,
|
|
739
|
+
responseSerialize: serialize_hyperspace_FindSemanticClustersResponse,
|
|
740
|
+
responseDeserialize: deserialize_hyperspace_FindSemanticClustersResponse,
|
|
741
|
+
},
|
|
399
742
|
// Stream statistics for TUI (Global or Collection tailored)
|
|
400
743
|
monitor: {
|
|
401
744
|
path: '/hyperspace.Database/Monitor',
|
|
@@ -431,6 +774,17 @@ triggerSnapshot: {
|
|
|
431
774
|
responseSerialize: serialize_hyperspace_StatusResponse,
|
|
432
775
|
responseDeserialize: deserialize_hyperspace_StatusResponse,
|
|
433
776
|
},
|
|
777
|
+
triggerReconsolidation: {
|
|
778
|
+
path: '/hyperspace.Database/TriggerReconsolidation',
|
|
779
|
+
requestStream: false,
|
|
780
|
+
responseStream: false,
|
|
781
|
+
requestType: hyperspace_pb.ReconsolidationRequest,
|
|
782
|
+
responseType: hyperspace_pb.StatusResponse,
|
|
783
|
+
requestSerialize: serialize_hyperspace_ReconsolidationRequest,
|
|
784
|
+
requestDeserialize: deserialize_hyperspace_ReconsolidationRequest,
|
|
785
|
+
responseSerialize: serialize_hyperspace_StatusResponse,
|
|
786
|
+
responseDeserialize: deserialize_hyperspace_StatusResponse,
|
|
787
|
+
},
|
|
434
788
|
// Dynamic Configuration
|
|
435
789
|
configure: {
|
|
436
790
|
path: '/hyperspace.Database/Configure',
|
|
@@ -455,6 +809,18 @@ replicate: {
|
|
|
455
809
|
responseSerialize: serialize_hyperspace_ReplicationLog,
|
|
456
810
|
responseDeserialize: deserialize_hyperspace_ReplicationLog,
|
|
457
811
|
},
|
|
812
|
+
// CDC/Event Stream (External subscribers)
|
|
813
|
+
subscribeToEvents: {
|
|
814
|
+
path: '/hyperspace.Database/SubscribeToEvents',
|
|
815
|
+
requestStream: false,
|
|
816
|
+
responseStream: true,
|
|
817
|
+
requestType: hyperspace_pb.EventSubscriptionRequest,
|
|
818
|
+
responseType: hyperspace_pb.EventMessage,
|
|
819
|
+
requestSerialize: serialize_hyperspace_EventSubscriptionRequest,
|
|
820
|
+
requestDeserialize: deserialize_hyperspace_EventSubscriptionRequest,
|
|
821
|
+
responseSerialize: serialize_hyperspace_EventMessage,
|
|
822
|
+
responseDeserialize: deserialize_hyperspace_EventMessage,
|
|
823
|
+
},
|
|
458
824
|
getDigest: {
|
|
459
825
|
path: '/hyperspace.Database/GetDigest',
|
|
460
826
|
requestStream: false,
|
|
@@ -477,6 +843,43 @@ replicate: {
|
|
|
477
843
|
responseSerialize: serialize_hyperspace_StatusResponse,
|
|
478
844
|
responseDeserialize: deserialize_hyperspace_StatusResponse,
|
|
479
845
|
},
|
|
846
|
+
// Delta Sync (Merkle Tree — Task 2.1)
|
|
847
|
+
// Step 1: Client sends its digest, server returns which buckets differ.
|
|
848
|
+
syncHandshake: {
|
|
849
|
+
path: '/hyperspace.Database/SyncHandshake',
|
|
850
|
+
requestStream: false,
|
|
851
|
+
responseStream: false,
|
|
852
|
+
requestType: hyperspace_pb.SyncHandshakeRequest,
|
|
853
|
+
responseType: hyperspace_pb.SyncHandshakeResponse,
|
|
854
|
+
requestSerialize: serialize_hyperspace_SyncHandshakeRequest,
|
|
855
|
+
requestDeserialize: deserialize_hyperspace_SyncHandshakeRequest,
|
|
856
|
+
responseSerialize: serialize_hyperspace_SyncHandshakeResponse,
|
|
857
|
+
responseDeserialize: deserialize_hyperspace_SyncHandshakeResponse,
|
|
858
|
+
},
|
|
859
|
+
// Step 2: Client requests vectors from specific buckets, server streams them.
|
|
860
|
+
syncPull: {
|
|
861
|
+
path: '/hyperspace.Database/SyncPull',
|
|
862
|
+
requestStream: false,
|
|
863
|
+
responseStream: true,
|
|
864
|
+
requestType: hyperspace_pb.SyncPullRequest,
|
|
865
|
+
responseType: hyperspace_pb.SyncVectorData,
|
|
866
|
+
requestSerialize: serialize_hyperspace_SyncPullRequest,
|
|
867
|
+
requestDeserialize: deserialize_hyperspace_SyncPullRequest,
|
|
868
|
+
responseSerialize: serialize_hyperspace_SyncVectorData,
|
|
869
|
+
responseDeserialize: deserialize_hyperspace_SyncVectorData,
|
|
870
|
+
},
|
|
871
|
+
// Step 3 (optional): Client pushes its unique vectors to the server.
|
|
872
|
+
syncPush: {
|
|
873
|
+
path: '/hyperspace.Database/SyncPush',
|
|
874
|
+
requestStream: true,
|
|
875
|
+
responseStream: false,
|
|
876
|
+
requestType: hyperspace_pb.SyncVectorData,
|
|
877
|
+
responseType: hyperspace_pb.SyncPushResponse,
|
|
878
|
+
requestSerialize: serialize_hyperspace_SyncVectorData,
|
|
879
|
+
requestDeserialize: deserialize_hyperspace_SyncVectorData,
|
|
880
|
+
responseSerialize: serialize_hyperspace_SyncPushResponse,
|
|
881
|
+
responseDeserialize: deserialize_hyperspace_SyncPushResponse,
|
|
882
|
+
},
|
|
480
883
|
};
|
|
481
884
|
|
|
482
885
|
exports.DatabaseClient = grpc.makeGenericClientConstructor(DatabaseService, 'Database');
|