hyperspace-sdk-ts 3.1.6 → 3.1.7

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.
@@ -0,0 +1,1107 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var hyperspace_pb = require('./hyperspace_pb.js');
6
+
7
+ function serialize_hyperspace_BatchInsertRequest(arg) {
8
+ if (!(arg instanceof hyperspace_pb.BatchInsertRequest)) {
9
+ throw new Error('Expected argument of type hyperspace.BatchInsertRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_hyperspace_BatchInsertRequest(buffer_arg) {
15
+ return hyperspace_pb.BatchInsertRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_hyperspace_BatchSearchRequest(arg) {
19
+ if (!(arg instanceof hyperspace_pb.BatchSearchRequest)) {
20
+ throw new Error('Expected argument of type hyperspace.BatchSearchRequest');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_hyperspace_BatchSearchRequest(buffer_arg) {
26
+ return hyperspace_pb.BatchSearchRequest.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+ function serialize_hyperspace_BatchSearchResponse(arg) {
30
+ if (!(arg instanceof hyperspace_pb.BatchSearchResponse)) {
31
+ throw new Error('Expected argument of type hyperspace.BatchSearchResponse');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_hyperspace_BatchSearchResponse(buffer_arg) {
37
+ return hyperspace_pb.BatchSearchResponse.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_hyperspace_CollectionStatsRequest(arg) {
41
+ if (!(arg instanceof hyperspace_pb.CollectionStatsRequest)) {
42
+ throw new Error('Expected argument of type hyperspace.CollectionStatsRequest');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_hyperspace_CollectionStatsRequest(buffer_arg) {
48
+ return hyperspace_pb.CollectionStatsRequest.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
51
+ function serialize_hyperspace_CollectionStatsResponse(arg) {
52
+ if (!(arg instanceof hyperspace_pb.CollectionStatsResponse)) {
53
+ throw new Error('Expected argument of type hyperspace.CollectionStatsResponse');
54
+ }
55
+ return Buffer.from(arg.serializeBinary());
56
+ }
57
+
58
+ function deserialize_hyperspace_CollectionStatsResponse(buffer_arg) {
59
+ return hyperspace_pb.CollectionStatsResponse.deserializeBinary(new Uint8Array(buffer_arg));
60
+ }
61
+
62
+ function serialize_hyperspace_ConfigUpdate(arg) {
63
+ if (!(arg instanceof hyperspace_pb.ConfigUpdate)) {
64
+ throw new Error('Expected argument of type hyperspace.ConfigUpdate');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_hyperspace_ConfigUpdate(buffer_arg) {
70
+ return hyperspace_pb.ConfigUpdate.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
73
+ function serialize_hyperspace_CountRequest(arg) {
74
+ if (!(arg instanceof hyperspace_pb.CountRequest)) {
75
+ throw new Error('Expected argument of type hyperspace.CountRequest');
76
+ }
77
+ return Buffer.from(arg.serializeBinary());
78
+ }
79
+
80
+ function deserialize_hyperspace_CountRequest(buffer_arg) {
81
+ return hyperspace_pb.CountRequest.deserializeBinary(new Uint8Array(buffer_arg));
82
+ }
83
+
84
+ function serialize_hyperspace_CountResponse(arg) {
85
+ if (!(arg instanceof hyperspace_pb.CountResponse)) {
86
+ throw new Error('Expected argument of type hyperspace.CountResponse');
87
+ }
88
+ return Buffer.from(arg.serializeBinary());
89
+ }
90
+
91
+ function deserialize_hyperspace_CountResponse(buffer_arg) {
92
+ return hyperspace_pb.CountResponse.deserializeBinary(new Uint8Array(buffer_arg));
93
+ }
94
+
95
+ function serialize_hyperspace_CreateCollectionRequest(arg) {
96
+ if (!(arg instanceof hyperspace_pb.CreateCollectionRequest)) {
97
+ throw new Error('Expected argument of type hyperspace.CreateCollectionRequest');
98
+ }
99
+ return Buffer.from(arg.serializeBinary());
100
+ }
101
+
102
+ function deserialize_hyperspace_CreateCollectionRequest(buffer_arg) {
103
+ return hyperspace_pb.CreateCollectionRequest.deserializeBinary(new Uint8Array(buffer_arg));
104
+ }
105
+
106
+ function serialize_hyperspace_DeleteCollectionRequest(arg) {
107
+ if (!(arg instanceof hyperspace_pb.DeleteCollectionRequest)) {
108
+ throw new Error('Expected argument of type hyperspace.DeleteCollectionRequest');
109
+ }
110
+ return Buffer.from(arg.serializeBinary());
111
+ }
112
+
113
+ function deserialize_hyperspace_DeleteCollectionRequest(buffer_arg) {
114
+ return hyperspace_pb.DeleteCollectionRequest.deserializeBinary(new Uint8Array(buffer_arg));
115
+ }
116
+
117
+ function serialize_hyperspace_DeleteRequest(arg) {
118
+ if (!(arg instanceof hyperspace_pb.DeleteRequest)) {
119
+ throw new Error('Expected argument of type hyperspace.DeleteRequest');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_hyperspace_DeleteRequest(buffer_arg) {
125
+ return hyperspace_pb.DeleteRequest.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
128
+ function serialize_hyperspace_DeleteResponse(arg) {
129
+ if (!(arg instanceof hyperspace_pb.DeleteResponse)) {
130
+ throw new Error('Expected argument of type hyperspace.DeleteResponse');
131
+ }
132
+ return Buffer.from(arg.serializeBinary());
133
+ }
134
+
135
+ function deserialize_hyperspace_DeleteResponse(buffer_arg) {
136
+ return hyperspace_pb.DeleteResponse.deserializeBinary(new Uint8Array(buffer_arg));
137
+ }
138
+
139
+ function serialize_hyperspace_DigestRequest(arg) {
140
+ if (!(arg instanceof hyperspace_pb.DigestRequest)) {
141
+ throw new Error('Expected argument of type hyperspace.DigestRequest');
142
+ }
143
+ return Buffer.from(arg.serializeBinary());
144
+ }
145
+
146
+ function deserialize_hyperspace_DigestRequest(buffer_arg) {
147
+ return hyperspace_pb.DigestRequest.deserializeBinary(new Uint8Array(buffer_arg));
148
+ }
149
+
150
+ function serialize_hyperspace_DigestResponse(arg) {
151
+ if (!(arg instanceof hyperspace_pb.DigestResponse)) {
152
+ throw new Error('Expected argument of type hyperspace.DigestResponse');
153
+ }
154
+ return Buffer.from(arg.serializeBinary());
155
+ }
156
+
157
+ function deserialize_hyperspace_DigestResponse(buffer_arg) {
158
+ return hyperspace_pb.DigestResponse.deserializeBinary(new Uint8Array(buffer_arg));
159
+ }
160
+
161
+ function serialize_hyperspace_Empty(arg) {
162
+ if (!(arg instanceof hyperspace_pb.Empty)) {
163
+ throw new Error('Expected argument of type hyperspace.Empty');
164
+ }
165
+ return Buffer.from(arg.serializeBinary());
166
+ }
167
+
168
+ function deserialize_hyperspace_Empty(buffer_arg) {
169
+ return hyperspace_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg));
170
+ }
171
+
172
+ function serialize_hyperspace_EventMessage(arg) {
173
+ if (!(arg instanceof hyperspace_pb.EventMessage)) {
174
+ throw new Error('Expected argument of type hyperspace.EventMessage');
175
+ }
176
+ return Buffer.from(arg.serializeBinary());
177
+ }
178
+
179
+ function deserialize_hyperspace_EventMessage(buffer_arg) {
180
+ return hyperspace_pb.EventMessage.deserializeBinary(new Uint8Array(buffer_arg));
181
+ }
182
+
183
+ function serialize_hyperspace_EventSubscriptionRequest(arg) {
184
+ if (!(arg instanceof hyperspace_pb.EventSubscriptionRequest)) {
185
+ throw new Error('Expected argument of type hyperspace.EventSubscriptionRequest');
186
+ }
187
+ return Buffer.from(arg.serializeBinary());
188
+ }
189
+
190
+ function deserialize_hyperspace_EventSubscriptionRequest(buffer_arg) {
191
+ return hyperspace_pb.EventSubscriptionRequest.deserializeBinary(new Uint8Array(buffer_arg));
192
+ }
193
+
194
+ function serialize_hyperspace_FindSemanticClustersRequest(arg) {
195
+ if (!(arg instanceof hyperspace_pb.FindSemanticClustersRequest)) {
196
+ throw new Error('Expected argument of type hyperspace.FindSemanticClustersRequest');
197
+ }
198
+ return Buffer.from(arg.serializeBinary());
199
+ }
200
+
201
+ function deserialize_hyperspace_FindSemanticClustersRequest(buffer_arg) {
202
+ return hyperspace_pb.FindSemanticClustersRequest.deserializeBinary(new Uint8Array(buffer_arg));
203
+ }
204
+
205
+ function serialize_hyperspace_FindSemanticClustersResponse(arg) {
206
+ if (!(arg instanceof hyperspace_pb.FindSemanticClustersResponse)) {
207
+ throw new Error('Expected argument of type hyperspace.FindSemanticClustersResponse');
208
+ }
209
+ return Buffer.from(arg.serializeBinary());
210
+ }
211
+
212
+ function deserialize_hyperspace_FindSemanticClustersResponse(buffer_arg) {
213
+ return hyperspace_pb.FindSemanticClustersResponse.deserializeBinary(new Uint8Array(buffer_arg));
214
+ }
215
+
216
+ function serialize_hyperspace_FreezeCollectionRequest(arg) {
217
+ if (!(arg instanceof hyperspace_pb.FreezeCollectionRequest)) {
218
+ throw new Error('Expected argument of type hyperspace.FreezeCollectionRequest');
219
+ }
220
+ return Buffer.from(arg.serializeBinary());
221
+ }
222
+
223
+ function deserialize_hyperspace_FreezeCollectionRequest(buffer_arg) {
224
+ return hyperspace_pb.FreezeCollectionRequest.deserializeBinary(new Uint8Array(buffer_arg));
225
+ }
226
+
227
+ function serialize_hyperspace_GetConceptParentsRequest(arg) {
228
+ if (!(arg instanceof hyperspace_pb.GetConceptParentsRequest)) {
229
+ throw new Error('Expected argument of type hyperspace.GetConceptParentsRequest');
230
+ }
231
+ return Buffer.from(arg.serializeBinary());
232
+ }
233
+
234
+ function deserialize_hyperspace_GetConceptParentsRequest(buffer_arg) {
235
+ return hyperspace_pb.GetConceptParentsRequest.deserializeBinary(new Uint8Array(buffer_arg));
236
+ }
237
+
238
+ function serialize_hyperspace_GetConceptParentsResponse(arg) {
239
+ if (!(arg instanceof hyperspace_pb.GetConceptParentsResponse)) {
240
+ throw new Error('Expected argument of type hyperspace.GetConceptParentsResponse');
241
+ }
242
+ return Buffer.from(arg.serializeBinary());
243
+ }
244
+
245
+ function deserialize_hyperspace_GetConceptParentsResponse(buffer_arg) {
246
+ return hyperspace_pb.GetConceptParentsResponse.deserializeBinary(new Uint8Array(buffer_arg));
247
+ }
248
+
249
+ function serialize_hyperspace_GetNeighborsRequest(arg) {
250
+ if (!(arg instanceof hyperspace_pb.GetNeighborsRequest)) {
251
+ throw new Error('Expected argument of type hyperspace.GetNeighborsRequest');
252
+ }
253
+ return Buffer.from(arg.serializeBinary());
254
+ }
255
+
256
+ function deserialize_hyperspace_GetNeighborsRequest(buffer_arg) {
257
+ return hyperspace_pb.GetNeighborsRequest.deserializeBinary(new Uint8Array(buffer_arg));
258
+ }
259
+
260
+ function serialize_hyperspace_GetNeighborsResponse(arg) {
261
+ if (!(arg instanceof hyperspace_pb.GetNeighborsResponse)) {
262
+ throw new Error('Expected argument of type hyperspace.GetNeighborsResponse');
263
+ }
264
+ return Buffer.from(arg.serializeBinary());
265
+ }
266
+
267
+ function deserialize_hyperspace_GetNeighborsResponse(buffer_arg) {
268
+ return hyperspace_pb.GetNeighborsResponse.deserializeBinary(new Uint8Array(buffer_arg));
269
+ }
270
+
271
+ function serialize_hyperspace_GetNodeRequest(arg) {
272
+ if (!(arg instanceof hyperspace_pb.GetNodeRequest)) {
273
+ throw new Error('Expected argument of type hyperspace.GetNodeRequest');
274
+ }
275
+ return Buffer.from(arg.serializeBinary());
276
+ }
277
+
278
+ function deserialize_hyperspace_GetNodeRequest(buffer_arg) {
279
+ return hyperspace_pb.GetNodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
280
+ }
281
+
282
+ function serialize_hyperspace_GetPointsRequest(arg) {
283
+ if (!(arg instanceof hyperspace_pb.GetPointsRequest)) {
284
+ throw new Error('Expected argument of type hyperspace.GetPointsRequest');
285
+ }
286
+ return Buffer.from(arg.serializeBinary());
287
+ }
288
+
289
+ function deserialize_hyperspace_GetPointsRequest(buffer_arg) {
290
+ return hyperspace_pb.GetPointsRequest.deserializeBinary(new Uint8Array(buffer_arg));
291
+ }
292
+
293
+ function serialize_hyperspace_GetPointsResponse(arg) {
294
+ if (!(arg instanceof hyperspace_pb.GetPointsResponse)) {
295
+ throw new Error('Expected argument of type hyperspace.GetPointsResponse');
296
+ }
297
+ return Buffer.from(arg.serializeBinary());
298
+ }
299
+
300
+ function deserialize_hyperspace_GetPointsResponse(buffer_arg) {
301
+ return hyperspace_pb.GetPointsResponse.deserializeBinary(new Uint8Array(buffer_arg));
302
+ }
303
+
304
+ function serialize_hyperspace_GetSubsumptionTreeRequest(arg) {
305
+ if (!(arg instanceof hyperspace_pb.GetSubsumptionTreeRequest)) {
306
+ throw new Error('Expected argument of type hyperspace.GetSubsumptionTreeRequest');
307
+ }
308
+ return Buffer.from(arg.serializeBinary());
309
+ }
310
+
311
+ function deserialize_hyperspace_GetSubsumptionTreeRequest(buffer_arg) {
312
+ return hyperspace_pb.GetSubsumptionTreeRequest.deserializeBinary(new Uint8Array(buffer_arg));
313
+ }
314
+
315
+ function serialize_hyperspace_GetSubsumptionTreeResponse(arg) {
316
+ if (!(arg instanceof hyperspace_pb.GetSubsumptionTreeResponse)) {
317
+ throw new Error('Expected argument of type hyperspace.GetSubsumptionTreeResponse');
318
+ }
319
+ return Buffer.from(arg.serializeBinary());
320
+ }
321
+
322
+ function deserialize_hyperspace_GetSubsumptionTreeResponse(buffer_arg) {
323
+ return hyperspace_pb.GetSubsumptionTreeResponse.deserializeBinary(new Uint8Array(buffer_arg));
324
+ }
325
+
326
+ function serialize_hyperspace_GraphNode(arg) {
327
+ if (!(arg instanceof hyperspace_pb.GraphNode)) {
328
+ throw new Error('Expected argument of type hyperspace.GraphNode');
329
+ }
330
+ return Buffer.from(arg.serializeBinary());
331
+ }
332
+
333
+ function deserialize_hyperspace_GraphNode(buffer_arg) {
334
+ return hyperspace_pb.GraphNode.deserializeBinary(new Uint8Array(buffer_arg));
335
+ }
336
+
337
+ function serialize_hyperspace_HealthCheckResponse(arg) {
338
+ if (!(arg instanceof hyperspace_pb.HealthCheckResponse)) {
339
+ throw new Error('Expected argument of type hyperspace.HealthCheckResponse');
340
+ }
341
+ return Buffer.from(arg.serializeBinary());
342
+ }
343
+
344
+ function deserialize_hyperspace_HealthCheckResponse(buffer_arg) {
345
+ return hyperspace_pb.HealthCheckResponse.deserializeBinary(new Uint8Array(buffer_arg));
346
+ }
347
+
348
+ function serialize_hyperspace_InsertRequest(arg) {
349
+ if (!(arg instanceof hyperspace_pb.InsertRequest)) {
350
+ throw new Error('Expected argument of type hyperspace.InsertRequest');
351
+ }
352
+ return Buffer.from(arg.serializeBinary());
353
+ }
354
+
355
+ function deserialize_hyperspace_InsertRequest(buffer_arg) {
356
+ return hyperspace_pb.InsertRequest.deserializeBinary(new Uint8Array(buffer_arg));
357
+ }
358
+
359
+ function serialize_hyperspace_InsertResponse(arg) {
360
+ if (!(arg instanceof hyperspace_pb.InsertResponse)) {
361
+ throw new Error('Expected argument of type hyperspace.InsertResponse');
362
+ }
363
+ return Buffer.from(arg.serializeBinary());
364
+ }
365
+
366
+ function deserialize_hyperspace_InsertResponse(buffer_arg) {
367
+ return hyperspace_pb.InsertResponse.deserializeBinary(new Uint8Array(buffer_arg));
368
+ }
369
+
370
+ function serialize_hyperspace_InsertTextRequest(arg) {
371
+ if (!(arg instanceof hyperspace_pb.InsertTextRequest)) {
372
+ throw new Error('Expected argument of type hyperspace.InsertTextRequest');
373
+ }
374
+ return Buffer.from(arg.serializeBinary());
375
+ }
376
+
377
+ function deserialize_hyperspace_InsertTextRequest(buffer_arg) {
378
+ return hyperspace_pb.InsertTextRequest.deserializeBinary(new Uint8Array(buffer_arg));
379
+ }
380
+
381
+ function serialize_hyperspace_ListCollectionsResponse(arg) {
382
+ if (!(arg instanceof hyperspace_pb.ListCollectionsResponse)) {
383
+ throw new Error('Expected argument of type hyperspace.ListCollectionsResponse');
384
+ }
385
+ return Buffer.from(arg.serializeBinary());
386
+ }
387
+
388
+ function deserialize_hyperspace_ListCollectionsResponse(buffer_arg) {
389
+ return hyperspace_pb.ListCollectionsResponse.deserializeBinary(new Uint8Array(buffer_arg));
390
+ }
391
+
392
+ function serialize_hyperspace_MonitorRequest(arg) {
393
+ if (!(arg instanceof hyperspace_pb.MonitorRequest)) {
394
+ throw new Error('Expected argument of type hyperspace.MonitorRequest');
395
+ }
396
+ return Buffer.from(arg.serializeBinary());
397
+ }
398
+
399
+ function deserialize_hyperspace_MonitorRequest(buffer_arg) {
400
+ return hyperspace_pb.MonitorRequest.deserializeBinary(new Uint8Array(buffer_arg));
401
+ }
402
+
403
+ function serialize_hyperspace_RebuildIndexRequest(arg) {
404
+ if (!(arg instanceof hyperspace_pb.RebuildIndexRequest)) {
405
+ throw new Error('Expected argument of type hyperspace.RebuildIndexRequest');
406
+ }
407
+ return Buffer.from(arg.serializeBinary());
408
+ }
409
+
410
+ function deserialize_hyperspace_RebuildIndexRequest(buffer_arg) {
411
+ return hyperspace_pb.RebuildIndexRequest.deserializeBinary(new Uint8Array(buffer_arg));
412
+ }
413
+
414
+ function serialize_hyperspace_ReconsolidationRequest(arg) {
415
+ if (!(arg instanceof hyperspace_pb.ReconsolidationRequest)) {
416
+ throw new Error('Expected argument of type hyperspace.ReconsolidationRequest');
417
+ }
418
+ return Buffer.from(arg.serializeBinary());
419
+ }
420
+
421
+ function deserialize_hyperspace_ReconsolidationRequest(buffer_arg) {
422
+ return hyperspace_pb.ReconsolidationRequest.deserializeBinary(new Uint8Array(buffer_arg));
423
+ }
424
+
425
+ function serialize_hyperspace_ReplicationLog(arg) {
426
+ if (!(arg instanceof hyperspace_pb.ReplicationLog)) {
427
+ throw new Error('Expected argument of type hyperspace.ReplicationLog');
428
+ }
429
+ return Buffer.from(arg.serializeBinary());
430
+ }
431
+
432
+ function deserialize_hyperspace_ReplicationLog(buffer_arg) {
433
+ return hyperspace_pb.ReplicationLog.deserializeBinary(new Uint8Array(buffer_arg));
434
+ }
435
+
436
+ function serialize_hyperspace_ReplicationRequest(arg) {
437
+ if (!(arg instanceof hyperspace_pb.ReplicationRequest)) {
438
+ throw new Error('Expected argument of type hyperspace.ReplicationRequest');
439
+ }
440
+ return Buffer.from(arg.serializeBinary());
441
+ }
442
+
443
+ function deserialize_hyperspace_ReplicationRequest(buffer_arg) {
444
+ return hyperspace_pb.ReplicationRequest.deserializeBinary(new Uint8Array(buffer_arg));
445
+ }
446
+
447
+ function serialize_hyperspace_ScrollRequest(arg) {
448
+ if (!(arg instanceof hyperspace_pb.ScrollRequest)) {
449
+ throw new Error('Expected argument of type hyperspace.ScrollRequest');
450
+ }
451
+ return Buffer.from(arg.serializeBinary());
452
+ }
453
+
454
+ function deserialize_hyperspace_ScrollRequest(buffer_arg) {
455
+ return hyperspace_pb.ScrollRequest.deserializeBinary(new Uint8Array(buffer_arg));
456
+ }
457
+
458
+ function serialize_hyperspace_ScrollResponse(arg) {
459
+ if (!(arg instanceof hyperspace_pb.ScrollResponse)) {
460
+ throw new Error('Expected argument of type hyperspace.ScrollResponse');
461
+ }
462
+ return Buffer.from(arg.serializeBinary());
463
+ }
464
+
465
+ function deserialize_hyperspace_ScrollResponse(buffer_arg) {
466
+ return hyperspace_pb.ScrollResponse.deserializeBinary(new Uint8Array(buffer_arg));
467
+ }
468
+
469
+ function serialize_hyperspace_SearchMultiCollectionRequest(arg) {
470
+ if (!(arg instanceof hyperspace_pb.SearchMultiCollectionRequest)) {
471
+ throw new Error('Expected argument of type hyperspace.SearchMultiCollectionRequest');
472
+ }
473
+ return Buffer.from(arg.serializeBinary());
474
+ }
475
+
476
+ function deserialize_hyperspace_SearchMultiCollectionRequest(buffer_arg) {
477
+ return hyperspace_pb.SearchMultiCollectionRequest.deserializeBinary(new Uint8Array(buffer_arg));
478
+ }
479
+
480
+ function serialize_hyperspace_SearchMultiCollectionResponse(arg) {
481
+ if (!(arg instanceof hyperspace_pb.SearchMultiCollectionResponse)) {
482
+ throw new Error('Expected argument of type hyperspace.SearchMultiCollectionResponse');
483
+ }
484
+ return Buffer.from(arg.serializeBinary());
485
+ }
486
+
487
+ function deserialize_hyperspace_SearchMultiCollectionResponse(buffer_arg) {
488
+ return hyperspace_pb.SearchMultiCollectionResponse.deserializeBinary(new Uint8Array(buffer_arg));
489
+ }
490
+
491
+ function serialize_hyperspace_SearchRequest(arg) {
492
+ if (!(arg instanceof hyperspace_pb.SearchRequest)) {
493
+ throw new Error('Expected argument of type hyperspace.SearchRequest');
494
+ }
495
+ return Buffer.from(arg.serializeBinary());
496
+ }
497
+
498
+ function deserialize_hyperspace_SearchRequest(buffer_arg) {
499
+ return hyperspace_pb.SearchRequest.deserializeBinary(new Uint8Array(buffer_arg));
500
+ }
501
+
502
+ function serialize_hyperspace_SearchResponse(arg) {
503
+ if (!(arg instanceof hyperspace_pb.SearchResponse)) {
504
+ throw new Error('Expected argument of type hyperspace.SearchResponse');
505
+ }
506
+ return Buffer.from(arg.serializeBinary());
507
+ }
508
+
509
+ function deserialize_hyperspace_SearchResponse(buffer_arg) {
510
+ return hyperspace_pb.SearchResponse.deserializeBinary(new Uint8Array(buffer_arg));
511
+ }
512
+
513
+ function serialize_hyperspace_SearchTextRequest(arg) {
514
+ if (!(arg instanceof hyperspace_pb.SearchTextRequest)) {
515
+ throw new Error('Expected argument of type hyperspace.SearchTextRequest');
516
+ }
517
+ return Buffer.from(arg.serializeBinary());
518
+ }
519
+
520
+ function deserialize_hyperspace_SearchTextRequest(buffer_arg) {
521
+ return hyperspace_pb.SearchTextRequest.deserializeBinary(new Uint8Array(buffer_arg));
522
+ }
523
+
524
+ function serialize_hyperspace_StatusResponse(arg) {
525
+ if (!(arg instanceof hyperspace_pb.StatusResponse)) {
526
+ throw new Error('Expected argument of type hyperspace.StatusResponse');
527
+ }
528
+ return Buffer.from(arg.serializeBinary());
529
+ }
530
+
531
+ function deserialize_hyperspace_StatusResponse(buffer_arg) {
532
+ return hyperspace_pb.StatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
533
+ }
534
+
535
+ function serialize_hyperspace_SyncHandshakeRequest(arg) {
536
+ if (!(arg instanceof hyperspace_pb.SyncHandshakeRequest)) {
537
+ throw new Error('Expected argument of type hyperspace.SyncHandshakeRequest');
538
+ }
539
+ return Buffer.from(arg.serializeBinary());
540
+ }
541
+
542
+ function deserialize_hyperspace_SyncHandshakeRequest(buffer_arg) {
543
+ return hyperspace_pb.SyncHandshakeRequest.deserializeBinary(new Uint8Array(buffer_arg));
544
+ }
545
+
546
+ function serialize_hyperspace_SyncHandshakeResponse(arg) {
547
+ if (!(arg instanceof hyperspace_pb.SyncHandshakeResponse)) {
548
+ throw new Error('Expected argument of type hyperspace.SyncHandshakeResponse');
549
+ }
550
+ return Buffer.from(arg.serializeBinary());
551
+ }
552
+
553
+ function deserialize_hyperspace_SyncHandshakeResponse(buffer_arg) {
554
+ return hyperspace_pb.SyncHandshakeResponse.deserializeBinary(new Uint8Array(buffer_arg));
555
+ }
556
+
557
+ function serialize_hyperspace_SyncPullRequest(arg) {
558
+ if (!(arg instanceof hyperspace_pb.SyncPullRequest)) {
559
+ throw new Error('Expected argument of type hyperspace.SyncPullRequest');
560
+ }
561
+ return Buffer.from(arg.serializeBinary());
562
+ }
563
+
564
+ function deserialize_hyperspace_SyncPullRequest(buffer_arg) {
565
+ return hyperspace_pb.SyncPullRequest.deserializeBinary(new Uint8Array(buffer_arg));
566
+ }
567
+
568
+ function serialize_hyperspace_SyncPushResponse(arg) {
569
+ if (!(arg instanceof hyperspace_pb.SyncPushResponse)) {
570
+ throw new Error('Expected argument of type hyperspace.SyncPushResponse');
571
+ }
572
+ return Buffer.from(arg.serializeBinary());
573
+ }
574
+
575
+ function deserialize_hyperspace_SyncPushResponse(buffer_arg) {
576
+ return hyperspace_pb.SyncPushResponse.deserializeBinary(new Uint8Array(buffer_arg));
577
+ }
578
+
579
+ function serialize_hyperspace_SyncVectorData(arg) {
580
+ if (!(arg instanceof hyperspace_pb.SyncVectorData)) {
581
+ throw new Error('Expected argument of type hyperspace.SyncVectorData');
582
+ }
583
+ return Buffer.from(arg.serializeBinary());
584
+ }
585
+
586
+ function deserialize_hyperspace_SyncVectorData(buffer_arg) {
587
+ return hyperspace_pb.SyncVectorData.deserializeBinary(new Uint8Array(buffer_arg));
588
+ }
589
+
590
+ function serialize_hyperspace_SystemStats(arg) {
591
+ if (!(arg instanceof hyperspace_pb.SystemStats)) {
592
+ throw new Error('Expected argument of type hyperspace.SystemStats');
593
+ }
594
+ return Buffer.from(arg.serializeBinary());
595
+ }
596
+
597
+ function deserialize_hyperspace_SystemStats(buffer_arg) {
598
+ return hyperspace_pb.SystemStats.deserializeBinary(new Uint8Array(buffer_arg));
599
+ }
600
+
601
+ function serialize_hyperspace_TraverseRequest(arg) {
602
+ if (!(arg instanceof hyperspace_pb.TraverseRequest)) {
603
+ throw new Error('Expected argument of type hyperspace.TraverseRequest');
604
+ }
605
+ return Buffer.from(arg.serializeBinary());
606
+ }
607
+
608
+ function deserialize_hyperspace_TraverseRequest(buffer_arg) {
609
+ return hyperspace_pb.TraverseRequest.deserializeBinary(new Uint8Array(buffer_arg));
610
+ }
611
+
612
+ function serialize_hyperspace_TraverseResponse(arg) {
613
+ if (!(arg instanceof hyperspace_pb.TraverseResponse)) {
614
+ throw new Error('Expected argument of type hyperspace.TraverseResponse');
615
+ }
616
+ return Buffer.from(arg.serializeBinary());
617
+ }
618
+
619
+ function deserialize_hyperspace_TraverseResponse(buffer_arg) {
620
+ return hyperspace_pb.TraverseResponse.deserializeBinary(new Uint8Array(buffer_arg));
621
+ }
622
+
623
+ function serialize_hyperspace_UnfreezeCollectionRequest(arg) {
624
+ if (!(arg instanceof hyperspace_pb.UnfreezeCollectionRequest)) {
625
+ throw new Error('Expected argument of type hyperspace.UnfreezeCollectionRequest');
626
+ }
627
+ return Buffer.from(arg.serializeBinary());
628
+ }
629
+
630
+ function deserialize_hyperspace_UnfreezeCollectionRequest(buffer_arg) {
631
+ return hyperspace_pb.UnfreezeCollectionRequest.deserializeBinary(new Uint8Array(buffer_arg));
632
+ }
633
+
634
+ function serialize_hyperspace_UpdatePayloadRequest(arg) {
635
+ if (!(arg instanceof hyperspace_pb.UpdatePayloadRequest)) {
636
+ throw new Error('Expected argument of type hyperspace.UpdatePayloadRequest');
637
+ }
638
+ return Buffer.from(arg.serializeBinary());
639
+ }
640
+
641
+ function deserialize_hyperspace_UpdatePayloadRequest(buffer_arg) {
642
+ return hyperspace_pb.UpdatePayloadRequest.deserializeBinary(new Uint8Array(buffer_arg));
643
+ }
644
+
645
+ function serialize_hyperspace_VectorizeRequest(arg) {
646
+ if (!(arg instanceof hyperspace_pb.VectorizeRequest)) {
647
+ throw new Error('Expected argument of type hyperspace.VectorizeRequest');
648
+ }
649
+ return Buffer.from(arg.serializeBinary());
650
+ }
651
+
652
+ function deserialize_hyperspace_VectorizeRequest(buffer_arg) {
653
+ return hyperspace_pb.VectorizeRequest.deserializeBinary(new Uint8Array(buffer_arg));
654
+ }
655
+
656
+ function serialize_hyperspace_VectorizeResponse(arg) {
657
+ if (!(arg instanceof hyperspace_pb.VectorizeResponse)) {
658
+ throw new Error('Expected argument of type hyperspace.VectorizeResponse');
659
+ }
660
+ return Buffer.from(arg.serializeBinary());
661
+ }
662
+
663
+ function deserialize_hyperspace_VectorizeResponse(buffer_arg) {
664
+ return hyperspace_pb.VectorizeResponse.deserializeBinary(new Uint8Array(buffer_arg));
665
+ }
666
+
667
+
668
+ var DatabaseService = exports.DatabaseService = {
669
+ // Collection Management
670
+ createCollection: {
671
+ path: '/hyperspace.Database/CreateCollection',
672
+ requestStream: false,
673
+ responseStream: false,
674
+ requestType: hyperspace_pb.CreateCollectionRequest,
675
+ responseType: hyperspace_pb.StatusResponse,
676
+ requestSerialize: serialize_hyperspace_CreateCollectionRequest,
677
+ requestDeserialize: deserialize_hyperspace_CreateCollectionRequest,
678
+ responseSerialize: serialize_hyperspace_StatusResponse,
679
+ responseDeserialize: deserialize_hyperspace_StatusResponse,
680
+ },
681
+ deleteCollection: {
682
+ path: '/hyperspace.Database/DeleteCollection',
683
+ requestStream: false,
684
+ responseStream: false,
685
+ requestType: hyperspace_pb.DeleteCollectionRequest,
686
+ responseType: hyperspace_pb.StatusResponse,
687
+ requestSerialize: serialize_hyperspace_DeleteCollectionRequest,
688
+ requestDeserialize: deserialize_hyperspace_DeleteCollectionRequest,
689
+ responseSerialize: serialize_hyperspace_StatusResponse,
690
+ responseDeserialize: deserialize_hyperspace_StatusResponse,
691
+ },
692
+ listCollections: {
693
+ path: '/hyperspace.Database/ListCollections',
694
+ requestStream: false,
695
+ responseStream: false,
696
+ requestType: hyperspace_pb.Empty,
697
+ responseType: hyperspace_pb.ListCollectionsResponse,
698
+ requestSerialize: serialize_hyperspace_Empty,
699
+ requestDeserialize: deserialize_hyperspace_Empty,
700
+ responseSerialize: serialize_hyperspace_ListCollectionsResponse,
701
+ responseDeserialize: deserialize_hyperspace_ListCollectionsResponse,
702
+ },
703
+ getCollectionStats: {
704
+ path: '/hyperspace.Database/GetCollectionStats',
705
+ requestStream: false,
706
+ responseStream: false,
707
+ requestType: hyperspace_pb.CollectionStatsRequest,
708
+ responseType: hyperspace_pb.CollectionStatsResponse,
709
+ requestSerialize: serialize_hyperspace_CollectionStatsRequest,
710
+ requestDeserialize: deserialize_hyperspace_CollectionStatsRequest,
711
+ responseSerialize: serialize_hyperspace_CollectionStatsResponse,
712
+ responseDeserialize: deserialize_hyperspace_CollectionStatsResponse,
713
+ },
714
+ freezeCollection: {
715
+ path: '/hyperspace.Database/FreezeCollection',
716
+ requestStream: false,
717
+ responseStream: false,
718
+ requestType: hyperspace_pb.FreezeCollectionRequest,
719
+ responseType: hyperspace_pb.StatusResponse,
720
+ requestSerialize: serialize_hyperspace_FreezeCollectionRequest,
721
+ requestDeserialize: deserialize_hyperspace_FreezeCollectionRequest,
722
+ responseSerialize: serialize_hyperspace_StatusResponse,
723
+ responseDeserialize: deserialize_hyperspace_StatusResponse,
724
+ },
725
+ unfreezeCollection: {
726
+ path: '/hyperspace.Database/UnfreezeCollection',
727
+ requestStream: false,
728
+ responseStream: false,
729
+ requestType: hyperspace_pb.UnfreezeCollectionRequest,
730
+ responseType: hyperspace_pb.StatusResponse,
731
+ requestSerialize: serialize_hyperspace_UnfreezeCollectionRequest,
732
+ requestDeserialize: deserialize_hyperspace_UnfreezeCollectionRequest,
733
+ responseSerialize: serialize_hyperspace_StatusResponse,
734
+ responseDeserialize: deserialize_hyperspace_StatusResponse,
735
+ },
736
+ // Insert vectors
737
+ insert: {
738
+ path: '/hyperspace.Database/Insert',
739
+ requestStream: false,
740
+ responseStream: false,
741
+ requestType: hyperspace_pb.InsertRequest,
742
+ responseType: hyperspace_pb.InsertResponse,
743
+ requestSerialize: serialize_hyperspace_InsertRequest,
744
+ requestDeserialize: deserialize_hyperspace_InsertRequest,
745
+ responseSerialize: serialize_hyperspace_InsertResponse,
746
+ responseDeserialize: deserialize_hyperspace_InsertResponse,
747
+ },
748
+ batchInsert: {
749
+ path: '/hyperspace.Database/BatchInsert',
750
+ requestStream: false,
751
+ responseStream: false,
752
+ requestType: hyperspace_pb.BatchInsertRequest,
753
+ responseType: hyperspace_pb.InsertResponse,
754
+ requestSerialize: serialize_hyperspace_BatchInsertRequest,
755
+ requestDeserialize: deserialize_hyperspace_BatchInsertRequest,
756
+ responseSerialize: serialize_hyperspace_InsertResponse,
757
+ responseDeserialize: deserialize_hyperspace_InsertResponse,
758
+ },
759
+ insertText: {
760
+ path: '/hyperspace.Database/InsertText',
761
+ requestStream: false,
762
+ responseStream: false,
763
+ requestType: hyperspace_pb.InsertTextRequest,
764
+ responseType: hyperspace_pb.InsertResponse,
765
+ requestSerialize: serialize_hyperspace_InsertTextRequest,
766
+ requestDeserialize: deserialize_hyperspace_InsertTextRequest,
767
+ responseSerialize: serialize_hyperspace_InsertResponse,
768
+ responseDeserialize: deserialize_hyperspace_InsertResponse,
769
+ },
770
+ vectorize: {
771
+ path: '/hyperspace.Database/Vectorize',
772
+ requestStream: false,
773
+ responseStream: false,
774
+ requestType: hyperspace_pb.VectorizeRequest,
775
+ responseType: hyperspace_pb.VectorizeResponse,
776
+ requestSerialize: serialize_hyperspace_VectorizeRequest,
777
+ requestDeserialize: deserialize_hyperspace_VectorizeRequest,
778
+ responseSerialize: serialize_hyperspace_VectorizeResponse,
779
+ responseDeserialize: deserialize_hyperspace_VectorizeResponse,
780
+ },
781
+ searchText: {
782
+ path: '/hyperspace.Database/SearchText',
783
+ requestStream: false,
784
+ responseStream: false,
785
+ requestType: hyperspace_pb.SearchTextRequest,
786
+ responseType: hyperspace_pb.SearchResponse,
787
+ requestSerialize: serialize_hyperspace_SearchTextRequest,
788
+ requestDeserialize: deserialize_hyperspace_SearchTextRequest,
789
+ responseSerialize: serialize_hyperspace_SearchResponse,
790
+ responseDeserialize: deserialize_hyperspace_SearchResponse,
791
+ },
792
+ // Delete vectors
793
+ delete: {
794
+ path: '/hyperspace.Database/Delete',
795
+ requestStream: false,
796
+ responseStream: false,
797
+ requestType: hyperspace_pb.DeleteRequest,
798
+ responseType: hyperspace_pb.DeleteResponse,
799
+ requestSerialize: serialize_hyperspace_DeleteRequest,
800
+ requestDeserialize: deserialize_hyperspace_DeleteRequest,
801
+ responseSerialize: serialize_hyperspace_DeleteResponse,
802
+ responseDeserialize: deserialize_hyperspace_DeleteResponse,
803
+ },
804
+ // Extended Data Ops
805
+ getPoints: {
806
+ path: '/hyperspace.Database/GetPoints',
807
+ requestStream: false,
808
+ responseStream: false,
809
+ requestType: hyperspace_pb.GetPointsRequest,
810
+ responseType: hyperspace_pb.GetPointsResponse,
811
+ requestSerialize: serialize_hyperspace_GetPointsRequest,
812
+ requestDeserialize: deserialize_hyperspace_GetPointsRequest,
813
+ responseSerialize: serialize_hyperspace_GetPointsResponse,
814
+ responseDeserialize: deserialize_hyperspace_GetPointsResponse,
815
+ },
816
+ updatePayload: {
817
+ path: '/hyperspace.Database/UpdatePayload',
818
+ requestStream: false,
819
+ responseStream: false,
820
+ requestType: hyperspace_pb.UpdatePayloadRequest,
821
+ responseType: hyperspace_pb.StatusResponse,
822
+ requestSerialize: serialize_hyperspace_UpdatePayloadRequest,
823
+ requestDeserialize: deserialize_hyperspace_UpdatePayloadRequest,
824
+ responseSerialize: serialize_hyperspace_StatusResponse,
825
+ responseDeserialize: deserialize_hyperspace_StatusResponse,
826
+ },
827
+ scroll: {
828
+ path: '/hyperspace.Database/Scroll',
829
+ requestStream: false,
830
+ responseStream: false,
831
+ requestType: hyperspace_pb.ScrollRequest,
832
+ responseType: hyperspace_pb.ScrollResponse,
833
+ requestSerialize: serialize_hyperspace_ScrollRequest,
834
+ requestDeserialize: deserialize_hyperspace_ScrollRequest,
835
+ responseSerialize: serialize_hyperspace_ScrollResponse,
836
+ responseDeserialize: deserialize_hyperspace_ScrollResponse,
837
+ },
838
+ count: {
839
+ path: '/hyperspace.Database/Count',
840
+ requestStream: false,
841
+ responseStream: false,
842
+ requestType: hyperspace_pb.CountRequest,
843
+ responseType: hyperspace_pb.CountResponse,
844
+ requestSerialize: serialize_hyperspace_CountRequest,
845
+ requestDeserialize: deserialize_hyperspace_CountRequest,
846
+ responseSerialize: serialize_hyperspace_CountResponse,
847
+ responseDeserialize: deserialize_hyperspace_CountResponse,
848
+ },
849
+ // Search (ANN)
850
+ search: {
851
+ path: '/hyperspace.Database/Search',
852
+ requestStream: false,
853
+ responseStream: false,
854
+ requestType: hyperspace_pb.SearchRequest,
855
+ responseType: hyperspace_pb.SearchResponse,
856
+ requestSerialize: serialize_hyperspace_SearchRequest,
857
+ requestDeserialize: deserialize_hyperspace_SearchRequest,
858
+ responseSerialize: serialize_hyperspace_SearchResponse,
859
+ responseDeserialize: deserialize_hyperspace_SearchResponse,
860
+ },
861
+ // Batch Search (ANN)
862
+ searchBatch: {
863
+ path: '/hyperspace.Database/SearchBatch',
864
+ requestStream: false,
865
+ responseStream: false,
866
+ requestType: hyperspace_pb.BatchSearchRequest,
867
+ responseType: hyperspace_pb.BatchSearchResponse,
868
+ requestSerialize: serialize_hyperspace_BatchSearchRequest,
869
+ requestDeserialize: deserialize_hyperspace_BatchSearchRequest,
870
+ responseSerialize: serialize_hyperspace_BatchSearchResponse,
871
+ responseDeserialize: deserialize_hyperspace_BatchSearchResponse,
872
+ },
873
+ // Multi-Geometry Search (v3.0)
874
+ searchMultiCollection: {
875
+ path: '/hyperspace.Database/SearchMultiCollection',
876
+ requestStream: false,
877
+ responseStream: false,
878
+ requestType: hyperspace_pb.SearchMultiCollectionRequest,
879
+ responseType: hyperspace_pb.SearchMultiCollectionResponse,
880
+ requestSerialize: serialize_hyperspace_SearchMultiCollectionRequest,
881
+ requestDeserialize: deserialize_hyperspace_SearchMultiCollectionRequest,
882
+ responseSerialize: serialize_hyperspace_SearchMultiCollectionResponse,
883
+ responseDeserialize: deserialize_hyperspace_SearchMultiCollectionResponse,
884
+ },
885
+ // Graph Traversal API (v2.3)
886
+ getNode: {
887
+ path: '/hyperspace.Database/GetNode',
888
+ requestStream: false,
889
+ responseStream: false,
890
+ requestType: hyperspace_pb.GetNodeRequest,
891
+ responseType: hyperspace_pb.GraphNode,
892
+ requestSerialize: serialize_hyperspace_GetNodeRequest,
893
+ requestDeserialize: deserialize_hyperspace_GetNodeRequest,
894
+ responseSerialize: serialize_hyperspace_GraphNode,
895
+ responseDeserialize: deserialize_hyperspace_GraphNode,
896
+ },
897
+ getNeighbors: {
898
+ path: '/hyperspace.Database/GetNeighbors',
899
+ requestStream: false,
900
+ responseStream: false,
901
+ requestType: hyperspace_pb.GetNeighborsRequest,
902
+ responseType: hyperspace_pb.GetNeighborsResponse,
903
+ requestSerialize: serialize_hyperspace_GetNeighborsRequest,
904
+ requestDeserialize: deserialize_hyperspace_GetNeighborsRequest,
905
+ responseSerialize: serialize_hyperspace_GetNeighborsResponse,
906
+ responseDeserialize: deserialize_hyperspace_GetNeighborsResponse,
907
+ },
908
+ getConceptParents: {
909
+ path: '/hyperspace.Database/GetConceptParents',
910
+ requestStream: false,
911
+ responseStream: false,
912
+ requestType: hyperspace_pb.GetConceptParentsRequest,
913
+ responseType: hyperspace_pb.GetConceptParentsResponse,
914
+ requestSerialize: serialize_hyperspace_GetConceptParentsRequest,
915
+ requestDeserialize: deserialize_hyperspace_GetConceptParentsRequest,
916
+ responseSerialize: serialize_hyperspace_GetConceptParentsResponse,
917
+ responseDeserialize: deserialize_hyperspace_GetConceptParentsResponse,
918
+ },
919
+ traverse: {
920
+ path: '/hyperspace.Database/Traverse',
921
+ requestStream: false,
922
+ responseStream: false,
923
+ requestType: hyperspace_pb.TraverseRequest,
924
+ responseType: hyperspace_pb.TraverseResponse,
925
+ requestSerialize: serialize_hyperspace_TraverseRequest,
926
+ requestDeserialize: deserialize_hyperspace_TraverseRequest,
927
+ responseSerialize: serialize_hyperspace_TraverseResponse,
928
+ responseDeserialize: deserialize_hyperspace_TraverseResponse,
929
+ },
930
+ findSemanticClusters: {
931
+ path: '/hyperspace.Database/FindSemanticClusters',
932
+ requestStream: false,
933
+ responseStream: false,
934
+ requestType: hyperspace_pb.FindSemanticClustersRequest,
935
+ responseType: hyperspace_pb.FindSemanticClustersResponse,
936
+ requestSerialize: serialize_hyperspace_FindSemanticClustersRequest,
937
+ requestDeserialize: deserialize_hyperspace_FindSemanticClustersRequest,
938
+ responseSerialize: serialize_hyperspace_FindSemanticClustersResponse,
939
+ responseDeserialize: deserialize_hyperspace_FindSemanticClustersResponse,
940
+ },
941
+ getSubsumptionTree: {
942
+ path: '/hyperspace.Database/GetSubsumptionTree',
943
+ requestStream: false,
944
+ responseStream: false,
945
+ requestType: hyperspace_pb.GetSubsumptionTreeRequest,
946
+ responseType: hyperspace_pb.GetSubsumptionTreeResponse,
947
+ requestSerialize: serialize_hyperspace_GetSubsumptionTreeRequest,
948
+ requestDeserialize: deserialize_hyperspace_GetSubsumptionTreeRequest,
949
+ responseSerialize: serialize_hyperspace_GetSubsumptionTreeResponse,
950
+ responseDeserialize: deserialize_hyperspace_GetSubsumptionTreeResponse,
951
+ },
952
+ // Stream statistics for TUI (Global or Collection tailored)
953
+ monitor: {
954
+ path: '/hyperspace.Database/Monitor',
955
+ requestStream: false,
956
+ responseStream: true,
957
+ requestType: hyperspace_pb.MonitorRequest,
958
+ responseType: hyperspace_pb.SystemStats,
959
+ requestSerialize: serialize_hyperspace_MonitorRequest,
960
+ requestDeserialize: deserialize_hyperspace_MonitorRequest,
961
+ responseSerialize: serialize_hyperspace_SystemStats,
962
+ responseDeserialize: deserialize_hyperspace_SystemStats,
963
+ },
964
+ // Admin Controls
965
+ triggerSnapshot: {
966
+ path: '/hyperspace.Database/TriggerSnapshot',
967
+ requestStream: false,
968
+ responseStream: false,
969
+ requestType: hyperspace_pb.Empty,
970
+ responseType: hyperspace_pb.StatusResponse,
971
+ requestSerialize: serialize_hyperspace_Empty,
972
+ requestDeserialize: deserialize_hyperspace_Empty,
973
+ responseSerialize: serialize_hyperspace_StatusResponse,
974
+ responseDeserialize: deserialize_hyperspace_StatusResponse,
975
+ },
976
+ triggerVacuum: {
977
+ path: '/hyperspace.Database/TriggerVacuum',
978
+ requestStream: false,
979
+ responseStream: false,
980
+ requestType: hyperspace_pb.Empty,
981
+ responseType: hyperspace_pb.StatusResponse,
982
+ requestSerialize: serialize_hyperspace_Empty,
983
+ requestDeserialize: deserialize_hyperspace_Empty,
984
+ responseSerialize: serialize_hyperspace_StatusResponse,
985
+ responseDeserialize: deserialize_hyperspace_StatusResponse,
986
+ },
987
+ triggerReconsolidation: {
988
+ path: '/hyperspace.Database/TriggerReconsolidation',
989
+ requestStream: false,
990
+ responseStream: false,
991
+ requestType: hyperspace_pb.ReconsolidationRequest,
992
+ responseType: hyperspace_pb.StatusResponse,
993
+ requestSerialize: serialize_hyperspace_ReconsolidationRequest,
994
+ requestDeserialize: deserialize_hyperspace_ReconsolidationRequest,
995
+ responseSerialize: serialize_hyperspace_StatusResponse,
996
+ responseDeserialize: deserialize_hyperspace_StatusResponse,
997
+ },
998
+ // Dynamic Configuration
999
+ configure: {
1000
+ path: '/hyperspace.Database/Configure',
1001
+ requestStream: false,
1002
+ responseStream: false,
1003
+ requestType: hyperspace_pb.ConfigUpdate,
1004
+ responseType: hyperspace_pb.StatusResponse,
1005
+ requestSerialize: serialize_hyperspace_ConfigUpdate,
1006
+ requestDeserialize: deserialize_hyperspace_ConfigUpdate,
1007
+ responseSerialize: serialize_hyperspace_StatusResponse,
1008
+ responseDeserialize: deserialize_hyperspace_StatusResponse,
1009
+ },
1010
+ // Replication (Leader -> Follower)
1011
+ replicate: {
1012
+ path: '/hyperspace.Database/Replicate',
1013
+ requestStream: false,
1014
+ responseStream: true,
1015
+ requestType: hyperspace_pb.ReplicationRequest,
1016
+ responseType: hyperspace_pb.ReplicationLog,
1017
+ requestSerialize: serialize_hyperspace_ReplicationRequest,
1018
+ requestDeserialize: deserialize_hyperspace_ReplicationRequest,
1019
+ responseSerialize: serialize_hyperspace_ReplicationLog,
1020
+ responseDeserialize: deserialize_hyperspace_ReplicationLog,
1021
+ },
1022
+ // CDC/Event Stream (External subscribers)
1023
+ subscribeToEvents: {
1024
+ path: '/hyperspace.Database/SubscribeToEvents',
1025
+ requestStream: false,
1026
+ responseStream: true,
1027
+ requestType: hyperspace_pb.EventSubscriptionRequest,
1028
+ responseType: hyperspace_pb.EventMessage,
1029
+ requestSerialize: serialize_hyperspace_EventSubscriptionRequest,
1030
+ requestDeserialize: deserialize_hyperspace_EventSubscriptionRequest,
1031
+ responseSerialize: serialize_hyperspace_EventMessage,
1032
+ responseDeserialize: deserialize_hyperspace_EventMessage,
1033
+ },
1034
+ getDigest: {
1035
+ path: '/hyperspace.Database/GetDigest',
1036
+ requestStream: false,
1037
+ responseStream: false,
1038
+ requestType: hyperspace_pb.DigestRequest,
1039
+ responseType: hyperspace_pb.DigestResponse,
1040
+ requestSerialize: serialize_hyperspace_DigestRequest,
1041
+ requestDeserialize: deserialize_hyperspace_DigestRequest,
1042
+ responseSerialize: serialize_hyperspace_DigestResponse,
1043
+ responseDeserialize: deserialize_hyperspace_DigestResponse,
1044
+ },
1045
+ rebuildIndex: {
1046
+ path: '/hyperspace.Database/RebuildIndex',
1047
+ requestStream: false,
1048
+ responseStream: false,
1049
+ requestType: hyperspace_pb.RebuildIndexRequest,
1050
+ responseType: hyperspace_pb.StatusResponse,
1051
+ requestSerialize: serialize_hyperspace_RebuildIndexRequest,
1052
+ requestDeserialize: deserialize_hyperspace_RebuildIndexRequest,
1053
+ responseSerialize: serialize_hyperspace_StatusResponse,
1054
+ responseDeserialize: deserialize_hyperspace_StatusResponse,
1055
+ },
1056
+ // Delta Sync (Merkle Tree — Task 2.1)
1057
+ // Step 1: Client sends its digest, server returns which buckets differ.
1058
+ syncHandshake: {
1059
+ path: '/hyperspace.Database/SyncHandshake',
1060
+ requestStream: false,
1061
+ responseStream: false,
1062
+ requestType: hyperspace_pb.SyncHandshakeRequest,
1063
+ responseType: hyperspace_pb.SyncHandshakeResponse,
1064
+ requestSerialize: serialize_hyperspace_SyncHandshakeRequest,
1065
+ requestDeserialize: deserialize_hyperspace_SyncHandshakeRequest,
1066
+ responseSerialize: serialize_hyperspace_SyncHandshakeResponse,
1067
+ responseDeserialize: deserialize_hyperspace_SyncHandshakeResponse,
1068
+ },
1069
+ // Step 2: Client requests vectors from specific buckets, server streams them.
1070
+ syncPull: {
1071
+ path: '/hyperspace.Database/SyncPull',
1072
+ requestStream: false,
1073
+ responseStream: true,
1074
+ requestType: hyperspace_pb.SyncPullRequest,
1075
+ responseType: hyperspace_pb.SyncVectorData,
1076
+ requestSerialize: serialize_hyperspace_SyncPullRequest,
1077
+ requestDeserialize: deserialize_hyperspace_SyncPullRequest,
1078
+ responseSerialize: serialize_hyperspace_SyncVectorData,
1079
+ responseDeserialize: deserialize_hyperspace_SyncVectorData,
1080
+ },
1081
+ // Step 3 (optional): Client pushes its unique vectors to the server.
1082
+ syncPush: {
1083
+ path: '/hyperspace.Database/SyncPush',
1084
+ requestStream: true,
1085
+ responseStream: false,
1086
+ requestType: hyperspace_pb.SyncVectorData,
1087
+ responseType: hyperspace_pb.SyncPushResponse,
1088
+ requestSerialize: serialize_hyperspace_SyncVectorData,
1089
+ requestDeserialize: deserialize_hyperspace_SyncVectorData,
1090
+ responseSerialize: serialize_hyperspace_SyncPushResponse,
1091
+ responseDeserialize: deserialize_hyperspace_SyncPushResponse,
1092
+ },
1093
+ // Health Status
1094
+ healthCheck: {
1095
+ path: '/hyperspace.Database/HealthCheck',
1096
+ requestStream: false,
1097
+ responseStream: false,
1098
+ requestType: hyperspace_pb.Empty,
1099
+ responseType: hyperspace_pb.HealthCheckResponse,
1100
+ requestSerialize: serialize_hyperspace_Empty,
1101
+ requestDeserialize: deserialize_hyperspace_Empty,
1102
+ responseSerialize: serialize_hyperspace_HealthCheckResponse,
1103
+ responseDeserialize: deserialize_hyperspace_HealthCheckResponse,
1104
+ },
1105
+ };
1106
+
1107
+ exports.DatabaseClient = grpc.makeGenericClientConstructor(DatabaseService, 'Database');