hyperspace-sdk-ts 2.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 +117 -0
- package/dist/client.d.ts +50 -0
- package/dist/client.js +241 -0
- package/dist/proto/hyperspace_grpc_pb.js +482 -0
- package/dist/proto/hyperspace_pb.js +7424 -0
- package/package.json +32 -0
|
@@ -0,0 +1,482 @@
|
|
|
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_CreateCollectionRequest(arg) {
|
|
74
|
+
if (!(arg instanceof hyperspace_pb.CreateCollectionRequest)) {
|
|
75
|
+
throw new Error('Expected argument of type hyperspace.CreateCollectionRequest');
|
|
76
|
+
}
|
|
77
|
+
return Buffer.from(arg.serializeBinary());
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function deserialize_hyperspace_CreateCollectionRequest(buffer_arg) {
|
|
81
|
+
return hyperspace_pb.CreateCollectionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function serialize_hyperspace_DeleteCollectionRequest(arg) {
|
|
85
|
+
if (!(arg instanceof hyperspace_pb.DeleteCollectionRequest)) {
|
|
86
|
+
throw new Error('Expected argument of type hyperspace.DeleteCollectionRequest');
|
|
87
|
+
}
|
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function deserialize_hyperspace_DeleteCollectionRequest(buffer_arg) {
|
|
92
|
+
return hyperspace_pb.DeleteCollectionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function serialize_hyperspace_DeleteRequest(arg) {
|
|
96
|
+
if (!(arg instanceof hyperspace_pb.DeleteRequest)) {
|
|
97
|
+
throw new Error('Expected argument of type hyperspace.DeleteRequest');
|
|
98
|
+
}
|
|
99
|
+
return Buffer.from(arg.serializeBinary());
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function deserialize_hyperspace_DeleteRequest(buffer_arg) {
|
|
103
|
+
return hyperspace_pb.DeleteRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function serialize_hyperspace_DeleteResponse(arg) {
|
|
107
|
+
if (!(arg instanceof hyperspace_pb.DeleteResponse)) {
|
|
108
|
+
throw new Error('Expected argument of type hyperspace.DeleteResponse');
|
|
109
|
+
}
|
|
110
|
+
return Buffer.from(arg.serializeBinary());
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function deserialize_hyperspace_DeleteResponse(buffer_arg) {
|
|
114
|
+
return hyperspace_pb.DeleteResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function serialize_hyperspace_DigestRequest(arg) {
|
|
118
|
+
if (!(arg instanceof hyperspace_pb.DigestRequest)) {
|
|
119
|
+
throw new Error('Expected argument of type hyperspace.DigestRequest');
|
|
120
|
+
}
|
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function deserialize_hyperspace_DigestRequest(buffer_arg) {
|
|
125
|
+
return hyperspace_pb.DigestRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function serialize_hyperspace_DigestResponse(arg) {
|
|
129
|
+
if (!(arg instanceof hyperspace_pb.DigestResponse)) {
|
|
130
|
+
throw new Error('Expected argument of type hyperspace.DigestResponse');
|
|
131
|
+
}
|
|
132
|
+
return Buffer.from(arg.serializeBinary());
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function deserialize_hyperspace_DigestResponse(buffer_arg) {
|
|
136
|
+
return hyperspace_pb.DigestResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function serialize_hyperspace_Empty(arg) {
|
|
140
|
+
if (!(arg instanceof hyperspace_pb.Empty)) {
|
|
141
|
+
throw new Error('Expected argument of type hyperspace.Empty');
|
|
142
|
+
}
|
|
143
|
+
return Buffer.from(arg.serializeBinary());
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function deserialize_hyperspace_Empty(buffer_arg) {
|
|
147
|
+
return hyperspace_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function serialize_hyperspace_InsertRequest(arg) {
|
|
151
|
+
if (!(arg instanceof hyperspace_pb.InsertRequest)) {
|
|
152
|
+
throw new Error('Expected argument of type hyperspace.InsertRequest');
|
|
153
|
+
}
|
|
154
|
+
return Buffer.from(arg.serializeBinary());
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function deserialize_hyperspace_InsertRequest(buffer_arg) {
|
|
158
|
+
return hyperspace_pb.InsertRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function serialize_hyperspace_InsertResponse(arg) {
|
|
162
|
+
if (!(arg instanceof hyperspace_pb.InsertResponse)) {
|
|
163
|
+
throw new Error('Expected argument of type hyperspace.InsertResponse');
|
|
164
|
+
}
|
|
165
|
+
return Buffer.from(arg.serializeBinary());
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function deserialize_hyperspace_InsertResponse(buffer_arg) {
|
|
169
|
+
return hyperspace_pb.InsertResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function serialize_hyperspace_InsertTextRequest(arg) {
|
|
173
|
+
if (!(arg instanceof hyperspace_pb.InsertTextRequest)) {
|
|
174
|
+
throw new Error('Expected argument of type hyperspace.InsertTextRequest');
|
|
175
|
+
}
|
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deserialize_hyperspace_InsertTextRequest(buffer_arg) {
|
|
180
|
+
return hyperspace_pb.InsertTextRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function serialize_hyperspace_ListCollectionsResponse(arg) {
|
|
184
|
+
if (!(arg instanceof hyperspace_pb.ListCollectionsResponse)) {
|
|
185
|
+
throw new Error('Expected argument of type hyperspace.ListCollectionsResponse');
|
|
186
|
+
}
|
|
187
|
+
return Buffer.from(arg.serializeBinary());
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function deserialize_hyperspace_ListCollectionsResponse(buffer_arg) {
|
|
191
|
+
return hyperspace_pb.ListCollectionsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function serialize_hyperspace_MonitorRequest(arg) {
|
|
195
|
+
if (!(arg instanceof hyperspace_pb.MonitorRequest)) {
|
|
196
|
+
throw new Error('Expected argument of type hyperspace.MonitorRequest');
|
|
197
|
+
}
|
|
198
|
+
return Buffer.from(arg.serializeBinary());
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function deserialize_hyperspace_MonitorRequest(buffer_arg) {
|
|
202
|
+
return hyperspace_pb.MonitorRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function serialize_hyperspace_RebuildIndexRequest(arg) {
|
|
206
|
+
if (!(arg instanceof hyperspace_pb.RebuildIndexRequest)) {
|
|
207
|
+
throw new Error('Expected argument of type hyperspace.RebuildIndexRequest');
|
|
208
|
+
}
|
|
209
|
+
return Buffer.from(arg.serializeBinary());
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
function deserialize_hyperspace_RebuildIndexRequest(buffer_arg) {
|
|
213
|
+
return hyperspace_pb.RebuildIndexRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function serialize_hyperspace_ReplicationLog(arg) {
|
|
217
|
+
if (!(arg instanceof hyperspace_pb.ReplicationLog)) {
|
|
218
|
+
throw new Error('Expected argument of type hyperspace.ReplicationLog');
|
|
219
|
+
}
|
|
220
|
+
return Buffer.from(arg.serializeBinary());
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function deserialize_hyperspace_ReplicationLog(buffer_arg) {
|
|
224
|
+
return hyperspace_pb.ReplicationLog.deserializeBinary(new Uint8Array(buffer_arg));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function serialize_hyperspace_ReplicationRequest(arg) {
|
|
228
|
+
if (!(arg instanceof hyperspace_pb.ReplicationRequest)) {
|
|
229
|
+
throw new Error('Expected argument of type hyperspace.ReplicationRequest');
|
|
230
|
+
}
|
|
231
|
+
return Buffer.from(arg.serializeBinary());
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function deserialize_hyperspace_ReplicationRequest(buffer_arg) {
|
|
235
|
+
return hyperspace_pb.ReplicationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function serialize_hyperspace_SearchRequest(arg) {
|
|
239
|
+
if (!(arg instanceof hyperspace_pb.SearchRequest)) {
|
|
240
|
+
throw new Error('Expected argument of type hyperspace.SearchRequest');
|
|
241
|
+
}
|
|
242
|
+
return Buffer.from(arg.serializeBinary());
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function deserialize_hyperspace_SearchRequest(buffer_arg) {
|
|
246
|
+
return hyperspace_pb.SearchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function serialize_hyperspace_SearchResponse(arg) {
|
|
250
|
+
if (!(arg instanceof hyperspace_pb.SearchResponse)) {
|
|
251
|
+
throw new Error('Expected argument of type hyperspace.SearchResponse');
|
|
252
|
+
}
|
|
253
|
+
return Buffer.from(arg.serializeBinary());
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function deserialize_hyperspace_SearchResponse(buffer_arg) {
|
|
257
|
+
return hyperspace_pb.SearchResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function serialize_hyperspace_StatusResponse(arg) {
|
|
261
|
+
if (!(arg instanceof hyperspace_pb.StatusResponse)) {
|
|
262
|
+
throw new Error('Expected argument of type hyperspace.StatusResponse');
|
|
263
|
+
}
|
|
264
|
+
return Buffer.from(arg.serializeBinary());
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
function deserialize_hyperspace_StatusResponse(buffer_arg) {
|
|
268
|
+
return hyperspace_pb.StatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
function serialize_hyperspace_SystemStats(arg) {
|
|
272
|
+
if (!(arg instanceof hyperspace_pb.SystemStats)) {
|
|
273
|
+
throw new Error('Expected argument of type hyperspace.SystemStats');
|
|
274
|
+
}
|
|
275
|
+
return Buffer.from(arg.serializeBinary());
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
function deserialize_hyperspace_SystemStats(buffer_arg) {
|
|
279
|
+
return hyperspace_pb.SystemStats.deserializeBinary(new Uint8Array(buffer_arg));
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
var DatabaseService = exports.DatabaseService = {
|
|
284
|
+
// Collection Management
|
|
285
|
+
createCollection: {
|
|
286
|
+
path: '/hyperspace.Database/CreateCollection',
|
|
287
|
+
requestStream: false,
|
|
288
|
+
responseStream: false,
|
|
289
|
+
requestType: hyperspace_pb.CreateCollectionRequest,
|
|
290
|
+
responseType: hyperspace_pb.StatusResponse,
|
|
291
|
+
requestSerialize: serialize_hyperspace_CreateCollectionRequest,
|
|
292
|
+
requestDeserialize: deserialize_hyperspace_CreateCollectionRequest,
|
|
293
|
+
responseSerialize: serialize_hyperspace_StatusResponse,
|
|
294
|
+
responseDeserialize: deserialize_hyperspace_StatusResponse,
|
|
295
|
+
},
|
|
296
|
+
deleteCollection: {
|
|
297
|
+
path: '/hyperspace.Database/DeleteCollection',
|
|
298
|
+
requestStream: false,
|
|
299
|
+
responseStream: false,
|
|
300
|
+
requestType: hyperspace_pb.DeleteCollectionRequest,
|
|
301
|
+
responseType: hyperspace_pb.StatusResponse,
|
|
302
|
+
requestSerialize: serialize_hyperspace_DeleteCollectionRequest,
|
|
303
|
+
requestDeserialize: deserialize_hyperspace_DeleteCollectionRequest,
|
|
304
|
+
responseSerialize: serialize_hyperspace_StatusResponse,
|
|
305
|
+
responseDeserialize: deserialize_hyperspace_StatusResponse,
|
|
306
|
+
},
|
|
307
|
+
listCollections: {
|
|
308
|
+
path: '/hyperspace.Database/ListCollections',
|
|
309
|
+
requestStream: false,
|
|
310
|
+
responseStream: false,
|
|
311
|
+
requestType: hyperspace_pb.Empty,
|
|
312
|
+
responseType: hyperspace_pb.ListCollectionsResponse,
|
|
313
|
+
requestSerialize: serialize_hyperspace_Empty,
|
|
314
|
+
requestDeserialize: deserialize_hyperspace_Empty,
|
|
315
|
+
responseSerialize: serialize_hyperspace_ListCollectionsResponse,
|
|
316
|
+
responseDeserialize: deserialize_hyperspace_ListCollectionsResponse,
|
|
317
|
+
},
|
|
318
|
+
getCollectionStats: {
|
|
319
|
+
path: '/hyperspace.Database/GetCollectionStats',
|
|
320
|
+
requestStream: false,
|
|
321
|
+
responseStream: false,
|
|
322
|
+
requestType: hyperspace_pb.CollectionStatsRequest,
|
|
323
|
+
responseType: hyperspace_pb.CollectionStatsResponse,
|
|
324
|
+
requestSerialize: serialize_hyperspace_CollectionStatsRequest,
|
|
325
|
+
requestDeserialize: deserialize_hyperspace_CollectionStatsRequest,
|
|
326
|
+
responseSerialize: serialize_hyperspace_CollectionStatsResponse,
|
|
327
|
+
responseDeserialize: deserialize_hyperspace_CollectionStatsResponse,
|
|
328
|
+
},
|
|
329
|
+
// Insert vectors
|
|
330
|
+
insert: {
|
|
331
|
+
path: '/hyperspace.Database/Insert',
|
|
332
|
+
requestStream: false,
|
|
333
|
+
responseStream: false,
|
|
334
|
+
requestType: hyperspace_pb.InsertRequest,
|
|
335
|
+
responseType: hyperspace_pb.InsertResponse,
|
|
336
|
+
requestSerialize: serialize_hyperspace_InsertRequest,
|
|
337
|
+
requestDeserialize: deserialize_hyperspace_InsertRequest,
|
|
338
|
+
responseSerialize: serialize_hyperspace_InsertResponse,
|
|
339
|
+
responseDeserialize: deserialize_hyperspace_InsertResponse,
|
|
340
|
+
},
|
|
341
|
+
batchInsert: {
|
|
342
|
+
path: '/hyperspace.Database/BatchInsert',
|
|
343
|
+
requestStream: false,
|
|
344
|
+
responseStream: false,
|
|
345
|
+
requestType: hyperspace_pb.BatchInsertRequest,
|
|
346
|
+
responseType: hyperspace_pb.InsertResponse,
|
|
347
|
+
requestSerialize: serialize_hyperspace_BatchInsertRequest,
|
|
348
|
+
requestDeserialize: deserialize_hyperspace_BatchInsertRequest,
|
|
349
|
+
responseSerialize: serialize_hyperspace_InsertResponse,
|
|
350
|
+
responseDeserialize: deserialize_hyperspace_InsertResponse,
|
|
351
|
+
},
|
|
352
|
+
insertText: {
|
|
353
|
+
path: '/hyperspace.Database/InsertText',
|
|
354
|
+
requestStream: false,
|
|
355
|
+
responseStream: false,
|
|
356
|
+
requestType: hyperspace_pb.InsertTextRequest,
|
|
357
|
+
responseType: hyperspace_pb.InsertResponse,
|
|
358
|
+
requestSerialize: serialize_hyperspace_InsertTextRequest,
|
|
359
|
+
requestDeserialize: deserialize_hyperspace_InsertTextRequest,
|
|
360
|
+
responseSerialize: serialize_hyperspace_InsertResponse,
|
|
361
|
+
responseDeserialize: deserialize_hyperspace_InsertResponse,
|
|
362
|
+
},
|
|
363
|
+
// Delete vectors
|
|
364
|
+
delete: {
|
|
365
|
+
path: '/hyperspace.Database/Delete',
|
|
366
|
+
requestStream: false,
|
|
367
|
+
responseStream: false,
|
|
368
|
+
requestType: hyperspace_pb.DeleteRequest,
|
|
369
|
+
responseType: hyperspace_pb.DeleteResponse,
|
|
370
|
+
requestSerialize: serialize_hyperspace_DeleteRequest,
|
|
371
|
+
requestDeserialize: deserialize_hyperspace_DeleteRequest,
|
|
372
|
+
responseSerialize: serialize_hyperspace_DeleteResponse,
|
|
373
|
+
responseDeserialize: deserialize_hyperspace_DeleteResponse,
|
|
374
|
+
},
|
|
375
|
+
// Search (ANN)
|
|
376
|
+
search: {
|
|
377
|
+
path: '/hyperspace.Database/Search',
|
|
378
|
+
requestStream: false,
|
|
379
|
+
responseStream: false,
|
|
380
|
+
requestType: hyperspace_pb.SearchRequest,
|
|
381
|
+
responseType: hyperspace_pb.SearchResponse,
|
|
382
|
+
requestSerialize: serialize_hyperspace_SearchRequest,
|
|
383
|
+
requestDeserialize: deserialize_hyperspace_SearchRequest,
|
|
384
|
+
responseSerialize: serialize_hyperspace_SearchResponse,
|
|
385
|
+
responseDeserialize: deserialize_hyperspace_SearchResponse,
|
|
386
|
+
},
|
|
387
|
+
// Batch Search (ANN)
|
|
388
|
+
searchBatch: {
|
|
389
|
+
path: '/hyperspace.Database/SearchBatch',
|
|
390
|
+
requestStream: false,
|
|
391
|
+
responseStream: false,
|
|
392
|
+
requestType: hyperspace_pb.BatchSearchRequest,
|
|
393
|
+
responseType: hyperspace_pb.BatchSearchResponse,
|
|
394
|
+
requestSerialize: serialize_hyperspace_BatchSearchRequest,
|
|
395
|
+
requestDeserialize: deserialize_hyperspace_BatchSearchRequest,
|
|
396
|
+
responseSerialize: serialize_hyperspace_BatchSearchResponse,
|
|
397
|
+
responseDeserialize: deserialize_hyperspace_BatchSearchResponse,
|
|
398
|
+
},
|
|
399
|
+
// Stream statistics for TUI (Global or Collection tailored)
|
|
400
|
+
monitor: {
|
|
401
|
+
path: '/hyperspace.Database/Monitor',
|
|
402
|
+
requestStream: false,
|
|
403
|
+
responseStream: true,
|
|
404
|
+
requestType: hyperspace_pb.MonitorRequest,
|
|
405
|
+
responseType: hyperspace_pb.SystemStats,
|
|
406
|
+
requestSerialize: serialize_hyperspace_MonitorRequest,
|
|
407
|
+
requestDeserialize: deserialize_hyperspace_MonitorRequest,
|
|
408
|
+
responseSerialize: serialize_hyperspace_SystemStats,
|
|
409
|
+
responseDeserialize: deserialize_hyperspace_SystemStats,
|
|
410
|
+
},
|
|
411
|
+
// Admin Controls
|
|
412
|
+
triggerSnapshot: {
|
|
413
|
+
path: '/hyperspace.Database/TriggerSnapshot',
|
|
414
|
+
requestStream: false,
|
|
415
|
+
responseStream: false,
|
|
416
|
+
requestType: hyperspace_pb.Empty,
|
|
417
|
+
responseType: hyperspace_pb.StatusResponse,
|
|
418
|
+
requestSerialize: serialize_hyperspace_Empty,
|
|
419
|
+
requestDeserialize: deserialize_hyperspace_Empty,
|
|
420
|
+
responseSerialize: serialize_hyperspace_StatusResponse,
|
|
421
|
+
responseDeserialize: deserialize_hyperspace_StatusResponse,
|
|
422
|
+
},
|
|
423
|
+
triggerVacuum: {
|
|
424
|
+
path: '/hyperspace.Database/TriggerVacuum',
|
|
425
|
+
requestStream: false,
|
|
426
|
+
responseStream: false,
|
|
427
|
+
requestType: hyperspace_pb.Empty,
|
|
428
|
+
responseType: hyperspace_pb.StatusResponse,
|
|
429
|
+
requestSerialize: serialize_hyperspace_Empty,
|
|
430
|
+
requestDeserialize: deserialize_hyperspace_Empty,
|
|
431
|
+
responseSerialize: serialize_hyperspace_StatusResponse,
|
|
432
|
+
responseDeserialize: deserialize_hyperspace_StatusResponse,
|
|
433
|
+
},
|
|
434
|
+
// Dynamic Configuration
|
|
435
|
+
configure: {
|
|
436
|
+
path: '/hyperspace.Database/Configure',
|
|
437
|
+
requestStream: false,
|
|
438
|
+
responseStream: false,
|
|
439
|
+
requestType: hyperspace_pb.ConfigUpdate,
|
|
440
|
+
responseType: hyperspace_pb.StatusResponse,
|
|
441
|
+
requestSerialize: serialize_hyperspace_ConfigUpdate,
|
|
442
|
+
requestDeserialize: deserialize_hyperspace_ConfigUpdate,
|
|
443
|
+
responseSerialize: serialize_hyperspace_StatusResponse,
|
|
444
|
+
responseDeserialize: deserialize_hyperspace_StatusResponse,
|
|
445
|
+
},
|
|
446
|
+
// Replication (Leader -> Follower)
|
|
447
|
+
replicate: {
|
|
448
|
+
path: '/hyperspace.Database/Replicate',
|
|
449
|
+
requestStream: false,
|
|
450
|
+
responseStream: true,
|
|
451
|
+
requestType: hyperspace_pb.ReplicationRequest,
|
|
452
|
+
responseType: hyperspace_pb.ReplicationLog,
|
|
453
|
+
requestSerialize: serialize_hyperspace_ReplicationRequest,
|
|
454
|
+
requestDeserialize: deserialize_hyperspace_ReplicationRequest,
|
|
455
|
+
responseSerialize: serialize_hyperspace_ReplicationLog,
|
|
456
|
+
responseDeserialize: deserialize_hyperspace_ReplicationLog,
|
|
457
|
+
},
|
|
458
|
+
getDigest: {
|
|
459
|
+
path: '/hyperspace.Database/GetDigest',
|
|
460
|
+
requestStream: false,
|
|
461
|
+
responseStream: false,
|
|
462
|
+
requestType: hyperspace_pb.DigestRequest,
|
|
463
|
+
responseType: hyperspace_pb.DigestResponse,
|
|
464
|
+
requestSerialize: serialize_hyperspace_DigestRequest,
|
|
465
|
+
requestDeserialize: deserialize_hyperspace_DigestRequest,
|
|
466
|
+
responseSerialize: serialize_hyperspace_DigestResponse,
|
|
467
|
+
responseDeserialize: deserialize_hyperspace_DigestResponse,
|
|
468
|
+
},
|
|
469
|
+
rebuildIndex: {
|
|
470
|
+
path: '/hyperspace.Database/RebuildIndex',
|
|
471
|
+
requestStream: false,
|
|
472
|
+
responseStream: false,
|
|
473
|
+
requestType: hyperspace_pb.RebuildIndexRequest,
|
|
474
|
+
responseType: hyperspace_pb.StatusResponse,
|
|
475
|
+
requestSerialize: serialize_hyperspace_RebuildIndexRequest,
|
|
476
|
+
requestDeserialize: deserialize_hyperspace_RebuildIndexRequest,
|
|
477
|
+
responseSerialize: serialize_hyperspace_StatusResponse,
|
|
478
|
+
responseDeserialize: deserialize_hyperspace_StatusResponse,
|
|
479
|
+
},
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
exports.DatabaseClient = grpc.makeGenericClientConstructor(DatabaseService, 'Database');
|