@relevanceai/sdk 1.9.0 → 1.12.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.
Files changed (33) hide show
  1. package/dist-cjs/generated/DiscoveryApi.js +595 -3
  2. package/dist-cjs/generated/_DiscoveryApiSchemaTypes.js +1 -4
  3. package/dist-cjs/generated/index.js +5 -2
  4. package/dist-cjs/index.js +6 -2
  5. package/dist-cjs/services/discovery/Dataset.js +125 -115
  6. package/dist-cjs/services/discovery/index.js +158 -179
  7. package/dist-cjs/services/index.js +2 -12
  8. package/dist-cjs/shared/generate.js +1 -1
  9. package/dist-cjs/shared/serviceConfigs.js +2 -7
  10. package/dist-es/generated/DiscoveryApi.js +898 -10
  11. package/dist-es/generated/_DiscoveryApiSchemaTypes.js +1 -4
  12. package/dist-es/generated/index.js +0 -1
  13. package/dist-es/index.js +1 -1
  14. package/dist-es/services/discovery/Dataset.js +126 -309
  15. package/dist-es/services/discovery/index.js +159 -233
  16. package/dist-es/services/index.js +3 -1
  17. package/dist-es/shared/BaseClient.js +9 -9
  18. package/dist-es/shared/generate.js +21 -20
  19. package/dist-es/shared/serviceConfigs.js +2 -7
  20. package/dist-types/generated/DiscoveryApi.d.ts +226 -4
  21. package/dist-types/generated/_DiscoveryApiSchemaTypes.d.ts +8663 -1056
  22. package/dist-types/generated/index.d.ts +0 -1
  23. package/dist-types/index.d.ts +0 -1
  24. package/dist-types/services/discovery/Dataset.d.ts +0 -50
  25. package/dist-types/services/discovery/index.d.ts +0 -366
  26. package/dist-types/services/index.d.ts +0 -1
  27. package/package.json +2 -2
  28. package/dist-cjs/generated/VectorApi.js +0 -754
  29. package/dist-cjs/generated/_VectorApiSchemaTypes.js +0 -6
  30. package/dist-es/generated/VectorApi.js +0 -1187
  31. package/dist-es/generated/_VectorApiSchemaTypes.js +0 -5
  32. package/dist-types/generated/VectorApi.d.ts +0 -284
  33. package/dist-types/generated/_VectorApiSchemaTypes.d.ts +0 -5724
@@ -1,1187 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- var __assign = (this && this.__assign) || function () {
17
- __assign = Object.assign || function(t) {
18
- for (var s, i = 1, n = arguments.length; i < n; i++) {
19
- s = arguments[i];
20
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
21
- t[p] = s[p];
22
- }
23
- return t;
24
- };
25
- return __assign.apply(this, arguments);
26
- };
27
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
28
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29
- return new (P || (P = Promise))(function (resolve, reject) {
30
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
31
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
32
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
33
- step((generator = generator.apply(thisArg, _arguments || [])).next());
34
- });
35
- };
36
- var __generator = (this && this.__generator) || function (thisArg, body) {
37
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
38
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
39
- function verb(n) { return function (v) { return step([n, v]); }; }
40
- function step(op) {
41
- if (f) throw new TypeError("Generator is already executing.");
42
- while (_) try {
43
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
44
- if (y = 0, t) op = [op[0] & 2, t.value];
45
- switch (op[0]) {
46
- case 0: case 1: t = op; break;
47
- case 4: _.label++; return { value: op[1], done: false };
48
- case 5: _.label++; y = op[1]; op = [0]; continue;
49
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
50
- default:
51
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
52
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
53
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
54
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
55
- if (t[2]) _.ops.pop();
56
- _.trys.pop(); continue;
57
- }
58
- op = body.call(thisArg, _);
59
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
60
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
61
- }
62
- };
63
- import { _GenericClient } from '../shared/BaseClient';
64
- var VectorApiClient = /** @class */ (function (_super) {
65
- __extends(VectorApiClient, _super);
66
- function VectorApiClient(config) {
67
- return _super.call(this, __assign(__assign({}, config), { service_name: 'VectorApi' })) || this;
68
- }
69
- VectorApiClient.prototype.requestreadapikeyapiadminrequestreadapikeypost = function (input, options) {
70
- return __awaiter(this, void 0, void 0, function () {
71
- return __generator(this, function (_a) {
72
- return [2 /*return*/, this.SendRequest({
73
- input: input,
74
- method: 'post',
75
- path: '/admin/request_read_api_key',
76
- options: options
77
- })];
78
- });
79
- });
80
- };
81
- VectorApiClient.prototype.copyforeigndatasetadmincopyforeigndatasetpost = function (input, options) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- return __generator(this, function (_a) {
84
- return [2 /*return*/, this.SendRequest({
85
- input: input,
86
- method: 'post',
87
- path: '/admin/copy_foreign_dataset',
88
- options: options
89
- })];
90
- });
91
- });
92
- };
93
- VectorApiClient.prototype.createdatasetapidatasetscreatepost = function (input, options) {
94
- return __awaiter(this, void 0, void 0, function () {
95
- return __generator(this, function (_a) {
96
- return [2 /*return*/, this.SendRequest({
97
- input: input,
98
- method: 'post',
99
- path: '/datasets/create',
100
- options: options
101
- })];
102
- });
103
- });
104
- };
105
- VectorApiClient.prototype.inferschemaapidatasetsinferschemapost = function (input, options) {
106
- return __awaiter(this, void 0, void 0, function () {
107
- return __generator(this, function (_a) {
108
- return [2 /*return*/, this.SendRequest({
109
- input: input,
110
- method: 'post',
111
- path: '/datasets/infer_schema',
112
- options: options
113
- })];
114
- });
115
- });
116
- };
117
- VectorApiClient.prototype.schemaapidatasetsdatasetidschemaget = function (input, options) {
118
- return __awaiter(this, void 0, void 0, function () {
119
- return __generator(this, function (_a) {
120
- return [2 /*return*/, this.SendRequest({
121
- input: input,
122
- method: 'get',
123
- path: '/datasets/{dataset_id}/schema',
124
- options: options
125
- })];
126
- });
127
- });
128
- };
129
- VectorApiClient.prototype.deletedatasetapidatasetsdeletepost = function (input, options) {
130
- return __awaiter(this, void 0, void 0, function () {
131
- return __generator(this, function (_a) {
132
- return [2 /*return*/, this.SendRequest({
133
- input: input,
134
- method: 'post',
135
- path: '/datasets/delete',
136
- options: options
137
- })];
138
- });
139
- });
140
- };
141
- VectorApiClient.prototype.listdatasetsapidatasetslistget = function (input, options) {
142
- return __awaiter(this, void 0, void 0, function () {
143
- return __generator(this, function (_a) {
144
- return [2 /*return*/, this.SendRequest({
145
- input: input,
146
- method: 'get',
147
- path: '/datasets/list',
148
- options: options
149
- })];
150
- });
151
- });
152
- };
153
- VectorApiClient.prototype.listcollectionsapidatasetslistpost = function (input, options) {
154
- return __awaiter(this, void 0, void 0, function () {
155
- return __generator(this, function (_a) {
156
- return [2 /*return*/, this.SendRequest({
157
- input: input,
158
- method: 'post',
159
- path: '/datasets/list',
160
- options: options
161
- })];
162
- });
163
- });
164
- };
165
- VectorApiClient.prototype.searchdatasetsapidatasetssearchget = function (input, options) {
166
- return __awaiter(this, void 0, void 0, function () {
167
- return __generator(this, function (_a) {
168
- return [2 /*return*/, this.SendRequest({
169
- input: input,
170
- method: 'get',
171
- path: '/datasets/search',
172
- options: options
173
- })];
174
- });
175
- });
176
- };
177
- VectorApiClient.prototype.facetsapidatasetsdatasetidfacetspost = function (input, options) {
178
- return __awaiter(this, void 0, void 0, function () {
179
- return __generator(this, function (_a) {
180
- return [2 /*return*/, this.SendRequest({
181
- input: input,
182
- method: 'post',
183
- path: '/datasets/{dataset_id}/facets',
184
- options: options
185
- })];
186
- });
187
- });
188
- };
189
- VectorApiClient.prototype.clonedatasetapidatasetsdatasetidclonepost = function (input, options) {
190
- return __awaiter(this, void 0, void 0, function () {
191
- return __generator(this, function (_a) {
192
- return [2 /*return*/, this.SendRequest({
193
- input: input,
194
- method: 'post',
195
- path: '/datasets/{dataset_id}/clone',
196
- options: options
197
- })];
198
- });
199
- });
200
- };
201
- VectorApiClient.prototype.storeencoderspipelineapidatasetsdatasetidstoreencoderspipelinepost = function (input, options) {
202
- return __awaiter(this, void 0, void 0, function () {
203
- return __generator(this, function (_a) {
204
- return [2 /*return*/, this.SendRequest({
205
- input: input,
206
- method: 'post',
207
- path: '/datasets/{dataset_id}/store_encoders_pipeline',
208
- options: options
209
- })];
210
- });
211
- });
212
- };
213
- VectorApiClient.prototype.datasetvectormappingsapidatasetsdatasetidvectormappingsget = function (input, options) {
214
- return __awaiter(this, void 0, void 0, function () {
215
- return __generator(this, function (_a) {
216
- return [2 /*return*/, this.SendRequest({
217
- input: input,
218
- method: 'get',
219
- path: '/datasets/{dataset_id}/vector_mappings',
220
- options: options
221
- })];
222
- });
223
- });
224
- };
225
- VectorApiClient.prototype.datasetvectormappingsapipostdatasetsdatasetidvectormappingspost = function (input, options) {
226
- return __awaiter(this, void 0, void 0, function () {
227
- return __generator(this, function (_a) {
228
- return [2 /*return*/, this.SendRequest({
229
- input: input,
230
- method: 'post',
231
- path: '/datasets/{dataset_id}/vector_mappings',
232
- options: options
233
- })];
234
- });
235
- });
236
- };
237
- VectorApiClient.prototype.insertapidatasetsdatasetiddocumentsinsertpost = function (input, options) {
238
- return __awaiter(this, void 0, void 0, function () {
239
- return __generator(this, function (_a) {
240
- return [2 /*return*/, this.SendRequest({
241
- input: input,
242
- method: 'post',
243
- path: '/datasets/{dataset_id}/documents/insert',
244
- options: options
245
- })];
246
- });
247
- });
248
- };
249
- VectorApiClient.prototype.bulkinsertapidatasetsdatasetiddocumentsbulkinsertpost = function (input, options) {
250
- return __awaiter(this, void 0, void 0, function () {
251
- return __generator(this, function (_a) {
252
- return [2 /*return*/, this.SendRequest({
253
- input: input,
254
- method: 'post',
255
- path: '/datasets/{dataset_id}/documents/bulk_insert',
256
- options: options
257
- })];
258
- });
259
- });
260
- };
261
- VectorApiClient.prototype.idlookupapidatasetsdatasetiddocumentsgetget = function (input, options) {
262
- return __awaiter(this, void 0, void 0, function () {
263
- return __generator(this, function (_a) {
264
- return [2 /*return*/, this.SendRequest({
265
- input: input,
266
- method: 'get',
267
- path: '/datasets/{dataset_id}/documents/get',
268
- options: options
269
- })];
270
- });
271
- });
272
- };
273
- VectorApiClient.prototype.bulkidlookupapidatasetsdatasetiddocumentsbulkgetpost = function (input, options) {
274
- return __awaiter(this, void 0, void 0, function () {
275
- return __generator(this, function (_a) {
276
- return [2 /*return*/, this.SendRequest({
277
- input: input,
278
- method: 'post',
279
- path: '/datasets/{dataset_id}/documents/bulk_get',
280
- options: options
281
- })];
282
- });
283
- });
284
- };
285
- VectorApiClient.prototype.retrievedocumentsapidatasetsdatasetiddocumentslistget = function (input, options) {
286
- return __awaiter(this, void 0, void 0, function () {
287
- return __generator(this, function (_a) {
288
- return [2 /*return*/, this.SendRequest({
289
- input: input,
290
- method: 'get',
291
- path: '/datasets/{dataset_id}/documents/list',
292
- options: options
293
- })];
294
- });
295
- });
296
- };
297
- VectorApiClient.prototype.retrievedocumentswithfiltersapidatasetsdatasetiddocumentsgetwherepost = function (input, options) {
298
- return __awaiter(this, void 0, void 0, function () {
299
- return __generator(this, function (_a) {
300
- return [2 /*return*/, this.SendRequest({
301
- input: input,
302
- method: 'post',
303
- path: '/datasets/{dataset_id}/documents/get_where',
304
- options: options
305
- })];
306
- });
307
- });
308
- };
309
- VectorApiClient.prototype.retrievedocumentswithfiltersapidatasetsdatasetiddocumentspaginatepost = function (input, options) {
310
- return __awaiter(this, void 0, void 0, function () {
311
- return __generator(this, function (_a) {
312
- return [2 /*return*/, this.SendRequest({
313
- input: input,
314
- method: 'post',
315
- path: '/datasets/{dataset_id}/documents/paginate',
316
- options: options
317
- })];
318
- });
319
- });
320
- };
321
- VectorApiClient.prototype.bulkmissingidapidatasetsdatasetiddocumentsgetmissingget = function (input, options) {
322
- return __awaiter(this, void 0, void 0, function () {
323
- return __generator(this, function (_a) {
324
- return [2 /*return*/, this.SendRequest({
325
- input: input,
326
- method: 'get',
327
- path: '/datasets/{dataset_id}/documents/get_missing',
328
- options: options
329
- })];
330
- });
331
- });
332
- };
333
- VectorApiClient.prototype.updatedocumentapidatasetsdatasetiddocumentsupdatepost = function (input, options) {
334
- return __awaiter(this, void 0, void 0, function () {
335
- return __generator(this, function (_a) {
336
- return [2 /*return*/, this.SendRequest({
337
- input: input,
338
- method: 'post',
339
- path: '/datasets/{dataset_id}/documents/update',
340
- options: options
341
- })];
342
- });
343
- });
344
- };
345
- VectorApiClient.prototype.bulkupdatedocumentsapidatasetsdatasetiddocumentsbulkupdatepost = function (input, options) {
346
- return __awaiter(this, void 0, void 0, function () {
347
- return __generator(this, function (_a) {
348
- return [2 /*return*/, this.SendRequest({
349
- input: input,
350
- method: 'post',
351
- path: '/datasets/{dataset_id}/documents/bulk_update',
352
- options: options
353
- })];
354
- });
355
- });
356
- };
357
- VectorApiClient.prototype.deleteapidatasetsdatasetiddocumentsdeletepost = function (input, options) {
358
- return __awaiter(this, void 0, void 0, function () {
359
- return __generator(this, function (_a) {
360
- return [2 /*return*/, this.SendRequest({
361
- input: input,
362
- method: 'post',
363
- path: '/datasets/{dataset_id}/documents/delete',
364
- options: options
365
- })];
366
- });
367
- });
368
- };
369
- VectorApiClient.prototype.bulkdeleteapidatasetsdatasetiddocumentsbulkdeletepost = function (input, options) {
370
- return __awaiter(this, void 0, void 0, function () {
371
- return __generator(this, function (_a) {
372
- return [2 /*return*/, this.SendRequest({
373
- input: input,
374
- method: 'post',
375
- path: '/datasets/{dataset_id}/documents/bulk_delete',
376
- options: options
377
- })];
378
- });
379
- });
380
- };
381
- VectorApiClient.prototype.deletefieldsapidatasetsdatasetiddocumentsdeletefieldspost = function (input, options) {
382
- return __awaiter(this, void 0, void 0, function () {
383
- return __generator(this, function (_a) {
384
- return [2 /*return*/, this.SendRequest({
385
- input: input,
386
- method: 'post',
387
- path: '/datasets/{dataset_id}/documents/delete_fields',
388
- options: options
389
- })];
390
- });
391
- });
392
- };
393
- VectorApiClient.prototype.updatebyfiltersapidatasetsdatasetiddocumentsupdatewherepost = function (input, options) {
394
- return __awaiter(this, void 0, void 0, function () {
395
- return __generator(this, function (_a) {
396
- return [2 /*return*/, this.SendRequest({
397
- input: input,
398
- method: 'post',
399
- path: '/datasets/{dataset_id}/documents/update_where',
400
- options: options
401
- })];
402
- });
403
- });
404
- };
405
- VectorApiClient.prototype.deletebyfiltersapidatasetsdatasetiddocumentsdeletewherepost = function (input, options) {
406
- return __awaiter(this, void 0, void 0, function () {
407
- return __generator(this, function (_a) {
408
- return [2 /*return*/, this.SendRequest({
409
- input: input,
410
- method: 'post',
411
- path: '/datasets/{dataset_id}/documents/delete_where',
412
- options: options
413
- })];
414
- });
415
- });
416
- };
417
- VectorApiClient.prototype.collectionmetadataapidatasetsdatasetidmetadataget = function (input, options) {
418
- return __awaiter(this, void 0, void 0, function () {
419
- return __generator(this, function (_a) {
420
- return [2 /*return*/, this.SendRequest({
421
- input: input,
422
- method: 'get',
423
- path: '/datasets/{dataset_id}/metadata',
424
- options: options
425
- })];
426
- });
427
- });
428
- };
429
- VectorApiClient.prototype.postcollectionmetadataapidatasetsdatasetidmetadatapost = function (input, options) {
430
- return __awaiter(this, void 0, void 0, function () {
431
- return __generator(this, function (_a) {
432
- return [2 /*return*/, this.SendRequest({
433
- input: input,
434
- method: 'post',
435
- path: '/datasets/{dataset_id}/metadata',
436
- options: options
437
- })];
438
- });
439
- });
440
- };
441
- VectorApiClient.prototype.datasetschemastatsapidatasetsdatasetidmonitorstatsget = function (input, options) {
442
- return __awaiter(this, void 0, void 0, function () {
443
- return __generator(this, function (_a) {
444
- return [2 /*return*/, this.SendRequest({
445
- input: input,
446
- method: 'get',
447
- path: '/datasets/{dataset_id}/monitor/stats',
448
- options: options
449
- })];
450
- });
451
- });
452
- };
453
- VectorApiClient.prototype.datasetvectorhealthapidatasetsdatasetidmonitorhealthget = function (input, options) {
454
- return __awaiter(this, void 0, void 0, function () {
455
- return __generator(this, function (_a) {
456
- return [2 /*return*/, this.SendRequest({
457
- input: input,
458
- method: 'get',
459
- path: '/datasets/{dataset_id}/monitor/health',
460
- options: options
461
- })];
462
- });
463
- });
464
- };
465
- VectorApiClient.prototype.aggregatelogsapidatasetsdatasetidmonitorusagepost = function (input, options) {
466
- return __awaiter(this, void 0, void 0, function () {
467
- return __generator(this, function (_a) {
468
- return [2 /*return*/, this.SendRequest({
469
- input: input,
470
- method: 'post',
471
- path: '/datasets/{dataset_id}/monitor/usage',
472
- options: options
473
- })];
474
- });
475
- });
476
- };
477
- VectorApiClient.prototype.tasksapidatasetsdatasetidtaskscreatepost = function (input, options) {
478
- return __awaiter(this, void 0, void 0, function () {
479
- return __generator(this, function (_a) {
480
- return [2 /*return*/, this.SendRequest({
481
- input: input,
482
- method: 'post',
483
- path: '/datasets/{dataset_id}/tasks/create',
484
- options: options
485
- })];
486
- });
487
- });
488
- };
489
- VectorApiClient.prototype.listcollectionjobsapidatasetsdatasetidtaskslistget = function (input, options) {
490
- return __awaiter(this, void 0, void 0, function () {
491
- return __generator(this, function (_a) {
492
- return [2 /*return*/, this.SendRequest({
493
- input: input,
494
- method: 'get',
495
- path: '/datasets/{dataset_id}/tasks/list',
496
- options: options
497
- })];
498
- });
499
- });
500
- };
501
- VectorApiClient.prototype.tasksstatusapidatasetsdatasetidtaskstaskidstatusget = function (input, options) {
502
- return __awaiter(this, void 0, void 0, function () {
503
- return __generator(this, function (_a) {
504
- return [2 /*return*/, this.SendRequest({
505
- input: input,
506
- method: 'get',
507
- path: '/datasets/{dataset_id}/tasks/{task_id}/status',
508
- options: options
509
- })];
510
- });
511
- });
512
- };
513
- VectorApiClient.prototype.encodebymodelapidatasetsdatasetidvectorizepost = function (input, options) {
514
- return __awaiter(this, void 0, void 0, function () {
515
- return __generator(this, function (_a) {
516
- return [2 /*return*/, this.SendRequest({
517
- input: input,
518
- method: 'post',
519
- path: '/datasets/{dataset_id}/vectorize',
520
- options: options
521
- })];
522
- });
523
- });
524
- };
525
- VectorApiClient.prototype.taskstatusbymodelapidatasetsdatasetidtaskstatusget = function (input, options) {
526
- return __awaiter(this, void 0, void 0, function () {
527
- return __generator(this, function (_a) {
528
- return [2 /*return*/, this.SendRequest({
529
- input: input,
530
- method: 'get',
531
- path: '/datasets/{dataset_id}/task_status',
532
- options: options
533
- })];
534
- });
535
- });
536
- };
537
- VectorApiClient.prototype.listtasksapidatasetsdatasetidtasksget = function (input, options) {
538
- return __awaiter(this, void 0, void 0, function () {
539
- return __generator(this, function (_a) {
540
- return [2 /*return*/, this.SendRequest({
541
- input: input,
542
- method: 'get',
543
- path: '/datasets/{dataset_id}/tasks',
544
- options: options
545
- })];
546
- });
547
- });
548
- };
549
- VectorApiClient.prototype.vectorsearchapiservicessearchvectorpost = function (input, options) {
550
- return __awaiter(this, void 0, void 0, function () {
551
- return __generator(this, function (_a) {
552
- return [2 /*return*/, this.SendRequest({
553
- input: input,
554
- method: 'post',
555
- path: '/services/search/vector',
556
- options: options
557
- })];
558
- });
559
- });
560
- };
561
- VectorApiClient.prototype.traditionalsearchapiservicessearchtraditionalpost = function (input, options) {
562
- return __awaiter(this, void 0, void 0, function () {
563
- return __generator(this, function (_a) {
564
- return [2 /*return*/, this.SendRequest({
565
- input: input,
566
- method: 'post',
567
- path: '/services/search/traditional',
568
- options: options
569
- })];
570
- });
571
- });
572
- };
573
- VectorApiClient.prototype.hybridsearchapiservicessearchhybridpost = function (input, options) {
574
- return __awaiter(this, void 0, void 0, function () {
575
- return __generator(this, function (_a) {
576
- return [2 /*return*/, this.SendRequest({
577
- input: input,
578
- method: 'post',
579
- path: '/services/search/hybrid',
580
- options: options
581
- })];
582
- });
583
- });
584
- };
585
- VectorApiClient.prototype.hybridsearchapiservicessearchsemanticpost = function (input, options) {
586
- return __awaiter(this, void 0, void 0, function () {
587
- return __generator(this, function (_a) {
588
- return [2 /*return*/, this.SendRequest({
589
- input: input,
590
- method: 'post',
591
- path: '/services/search/semantic',
592
- options: options
593
- })];
594
- });
595
- });
596
- };
597
- VectorApiClient.prototype.chunksearchapiservicessearchchunkpost = function (input, options) {
598
- return __awaiter(this, void 0, void 0, function () {
599
- return __generator(this, function (_a) {
600
- return [2 /*return*/, this.SendRequest({
601
- input: input,
602
- method: 'post',
603
- path: '/services/search/chunk',
604
- options: options
605
- })];
606
- });
607
- });
608
- };
609
- VectorApiClient.prototype.advancedmultistepchunksearchapiservicessearchmultistepchunkpost = function (input, options) {
610
- return __awaiter(this, void 0, void 0, function () {
611
- return __generator(this, function (_a) {
612
- return [2 /*return*/, this.SendRequest({
613
- input: input,
614
- method: 'post',
615
- path: '/services/search/multistep_chunk',
616
- options: options
617
- })];
618
- });
619
- });
620
- };
621
- VectorApiClient.prototype.advancedchunksearchapiservicessearchadvancedchunkpost = function (input, options) {
622
- return __awaiter(this, void 0, void 0, function () {
623
- return __generator(this, function (_a) {
624
- return [2 /*return*/, this.SendRequest({
625
- input: input,
626
- method: 'post',
627
- path: '/services/search/advanced_chunk',
628
- options: options
629
- })];
630
- });
631
- });
632
- };
633
- VectorApiClient.prototype.advancedmultistepchunksearchapiservicessearchadvancedmultistepchunkpost = function (input, options) {
634
- return __awaiter(this, void 0, void 0, function () {
635
- return __generator(this, function (_a) {
636
- return [2 /*return*/, this.SendRequest({
637
- input: input,
638
- method: 'post',
639
- path: '/services/search/advanced_multistep_chunk',
640
- options: options
641
- })];
642
- });
643
- });
644
- };
645
- VectorApiClient.prototype.vectorsearchapiservicessearchdiversitypost = function (input, options) {
646
- return __awaiter(this, void 0, void 0, function () {
647
- return __generator(this, function (_a) {
648
- return [2 /*return*/, this.SendRequest({
649
- input: input,
650
- method: 'post',
651
- path: '/services/search/diversity',
652
- options: options
653
- })];
654
- });
655
- });
656
- };
657
- VectorApiClient.prototype.vectorrecommendapiservicesrecommendvectorpost = function (input, options) {
658
- return __awaiter(this, void 0, void 0, function () {
659
- return __generator(this, function (_a) {
660
- return [2 /*return*/, this.SendRequest({
661
- input: input,
662
- method: 'post',
663
- path: '/services/recommend/vector',
664
- options: options
665
- })];
666
- });
667
- });
668
- };
669
- VectorApiClient.prototype.vectordiversityrecommendapiservicesrecommenddiversitypost = function (input, options) {
670
- return __awaiter(this, void 0, void 0, function () {
671
- return __generator(this, function (_a) {
672
- return [2 /*return*/, this.SendRequest({
673
- input: input,
674
- method: 'post',
675
- path: '/services/recommend/diversity',
676
- options: options
677
- })];
678
- });
679
- });
680
- };
681
- VectorApiClient.prototype.aggregatev2apiservicesaggregateaggregatepost = function (input, options) {
682
- return __awaiter(this, void 0, void 0, function () {
683
- return __generator(this, function (_a) {
684
- return [2 /*return*/, this.SendRequest({
685
- input: input,
686
- method: 'post',
687
- path: '/services/aggregate/aggregate',
688
- options: options
689
- })];
690
- });
691
- });
692
- };
693
- VectorApiClient.prototype.clustercentroidsapiservicesclustercentroidslistget = function (input, options) {
694
- return __awaiter(this, void 0, void 0, function () {
695
- return __generator(this, function (_a) {
696
- return [2 /*return*/, this.SendRequest({
697
- input: input,
698
- method: 'get',
699
- path: '/services/cluster/centroids/list',
700
- options: options
701
- })];
702
- });
703
- });
704
- };
705
- VectorApiClient.prototype.clustercentroidsapiv2servicesclustercentroidslistpost = function (input, options) {
706
- return __awaiter(this, void 0, void 0, function () {
707
- return __generator(this, function (_a) {
708
- return [2 /*return*/, this.SendRequest({
709
- input: input,
710
- method: 'post',
711
- path: '/services/cluster/centroids/list',
712
- options: options
713
- })];
714
- });
715
- });
716
- };
717
- VectorApiClient.prototype.clustercentroidsgetapiservicesclustercentroidsgetget = function (input, options) {
718
- return __awaiter(this, void 0, void 0, function () {
719
- return __generator(this, function (_a) {
720
- return [2 /*return*/, this.SendRequest({
721
- input: input,
722
- method: 'get',
723
- path: '/services/cluster/centroids/get',
724
- options: options
725
- })];
726
- });
727
- });
728
- };
729
- VectorApiClient.prototype.clustercentroidsgetapiservicesclustercentroidsgetpost = function (input, options) {
730
- return __awaiter(this, void 0, void 0, function () {
731
- return __generator(this, function (_a) {
732
- return [2 /*return*/, this.SendRequest({
733
- input: input,
734
- method: 'post',
735
- path: '/services/cluster/centroids/get',
736
- options: options
737
- })];
738
- });
739
- });
740
- };
741
- VectorApiClient.prototype.insertclustercentroids2apiservicesclustercentroidsinsertpost = function (input, options) {
742
- return __awaiter(this, void 0, void 0, function () {
743
- return __generator(this, function (_a) {
744
- return [2 /*return*/, this.SendRequest({
745
- input: input,
746
- method: 'post',
747
- path: '/services/cluster/centroids/insert',
748
- options: options
749
- })];
750
- });
751
- });
752
- };
753
- VectorApiClient.prototype.updatecentroidsapiv2servicesclustercentroidsupdatepost = function (input, options) {
754
- return __awaiter(this, void 0, void 0, function () {
755
- return __generator(this, function (_a) {
756
- return [2 /*return*/, this.SendRequest({
757
- input: input,
758
- method: 'post',
759
- path: '/services/cluster/centroids/update',
760
- options: options
761
- })];
762
- });
763
- });
764
- };
765
- VectorApiClient.prototype.deletecentroidsapiservicesclustercentroidscentroididdeleteget = function (input, options) {
766
- return __awaiter(this, void 0, void 0, function () {
767
- return __generator(this, function (_a) {
768
- return [2 /*return*/, this.SendRequest({
769
- input: input,
770
- method: 'get',
771
- path: '/services/cluster/centroids/{centroid_id}/delete',
772
- options: options
773
- })];
774
- });
775
- });
776
- };
777
- VectorApiClient.prototype.deletecentroidsapiservicesclustercentroidscentroididdeletepost = function (input, options) {
778
- return __awaiter(this, void 0, void 0, function () {
779
- return __generator(this, function (_a) {
780
- return [2 /*return*/, this.SendRequest({
781
- input: input,
782
- method: 'post',
783
- path: '/services/cluster/centroids/{centroid_id}/delete',
784
- options: options
785
- })];
786
- });
787
- });
788
- };
789
- VectorApiClient.prototype.clustercentroidsdeleteapiservicesclustercentroidsdeletepost = function (input, options) {
790
- return __awaiter(this, void 0, void 0, function () {
791
- return __generator(this, function (_a) {
792
- return [2 /*return*/, this.SendRequest({
793
- input: input,
794
- method: 'post',
795
- path: '/services/cluster/centroids/delete',
796
- options: options
797
- })];
798
- });
799
- });
800
- };
801
- VectorApiClient.prototype.clustercentroidsgetapiservicesclustercentroidsdocumentspost = function (input, options) {
802
- return __awaiter(this, void 0, void 0, function () {
803
- return __generator(this, function (_a) {
804
- return [2 /*return*/, this.SendRequest({
805
- input: input,
806
- method: 'post',
807
- path: '/services/cluster/centroids/documents',
808
- options: options
809
- })];
810
- });
811
- });
812
- };
813
- VectorApiClient.prototype.centroidsmetadatagetapiservicesclustercentroidsmetadataget = function (input, options) {
814
- return __awaiter(this, void 0, void 0, function () {
815
- return __generator(this, function (_a) {
816
- return [2 /*return*/, this.SendRequest({
817
- input: input,
818
- method: 'get',
819
- path: '/services/cluster/centroids/metadata',
820
- options: options
821
- })];
822
- });
823
- });
824
- };
825
- VectorApiClient.prototype.centroidsmetadatapostapiv2servicesclustercentroidsmetadatapost = function (input, options) {
826
- return __awaiter(this, void 0, void 0, function () {
827
- return __generator(this, function (_a) {
828
- return [2 /*return*/, this.SendRequest({
829
- input: input,
830
- method: 'post',
831
- path: '/services/cluster/centroids/metadata',
832
- options: options
833
- })];
834
- });
835
- });
836
- };
837
- VectorApiClient.prototype.centroidslistclosesttocenterv2servicesclustercentroidslistclosesttocenterpost = function (input, options) {
838
- return __awaiter(this, void 0, void 0, function () {
839
- return __generator(this, function (_a) {
840
- return [2 /*return*/, this.SendRequest({
841
- input: input,
842
- method: 'post',
843
- path: '/services/cluster/centroids/list_closest_to_center',
844
- options: options
845
- })];
846
- });
847
- });
848
- };
849
- VectorApiClient.prototype.centroidslistfurthestfromcenterv2servicesclustercentroidslistfurthestfromcenterpost = function (input, options) {
850
- return __awaiter(this, void 0, void 0, function () {
851
- return __generator(this, function (_a) {
852
- return [2 /*return*/, this.SendRequest({
853
- input: input,
854
- method: 'post',
855
- path: '/services/cluster/centroids/list_furthest_from_center',
856
- options: options
857
- })];
858
- });
859
- });
860
- };
861
- VectorApiClient.prototype.clusteraggregateapiv2servicesclusteraggregatepost = function (input, options) {
862
- return __awaiter(this, void 0, void 0, function () {
863
- return __generator(this, function (_a) {
864
- return [2 /*return*/, this.SendRequest({
865
- input: input,
866
- method: 'post',
867
- path: '/services/cluster/aggregate',
868
- options: options
869
- })];
870
- });
871
- });
872
- };
873
- VectorApiClient.prototype.advancedclusterfacetsapiservicesclusterfacetsget = function (input, options) {
874
- return __awaiter(this, void 0, void 0, function () {
875
- return __generator(this, function (_a) {
876
- return [2 /*return*/, this.SendRequest({
877
- input: input,
878
- method: 'get',
879
- path: '/services/cluster/facets',
880
- options: options
881
- })];
882
- });
883
- });
884
- };
885
- VectorApiClient.prototype.clusterlistservicesclusterlistget = function (input, options) {
886
- return __awaiter(this, void 0, void 0, function () {
887
- return __generator(this, function (_a) {
888
- return [2 /*return*/, this.SendRequest({
889
- input: input,
890
- method: 'get',
891
- path: '/services/cluster/list',
892
- options: options
893
- })];
894
- });
895
- });
896
- };
897
- VectorApiClient.prototype.clusterlistmultiservicesclusterlistpost = function (input, options) {
898
- return __awaiter(this, void 0, void 0, function () {
899
- return __generator(this, function (_a) {
900
- return [2 /*return*/, this.SendRequest({
901
- input: input,
902
- method: 'post',
903
- path: '/services/cluster/list',
904
- options: options
905
- })];
906
- });
907
- });
908
- };
909
- VectorApiClient.prototype.tagapiservicestaggertagpost = function (input, options) {
910
- return __awaiter(this, void 0, void 0, function () {
911
- return __generator(this, function (_a) {
912
- return [2 /*return*/, this.SendRequest({
913
- input: input,
914
- method: 'post',
915
- path: '/services/tagger/tag',
916
- options: options
917
- })];
918
- });
919
- });
920
- };
921
- VectorApiClient.prototype.clusterandtagapiservicestaggerdiversitypost = function (input, options) {
922
- return __awaiter(this, void 0, void 0, function () {
923
- return __generator(this, function (_a) {
924
- return [2 /*return*/, this.SendRequest({
925
- input: input,
926
- method: 'post',
927
- path: '/services/tagger/diversity',
928
- options: options
929
- })];
930
- });
931
- });
932
- };
933
- VectorApiClient.prototype.vectorrecommendapiservicesdocumentdiffpost = function (input, options) {
934
- return __awaiter(this, void 0, void 0, function () {
935
- return __generator(this, function (_a) {
936
- return [2 /*return*/, this.SendRequest({
937
- input: input,
938
- method: 'post',
939
- path: '/services/document_diff',
940
- options: options
941
- })];
942
- });
943
- });
944
- };
945
- VectorApiClient.prototype.predictknnregressionapiservicespredictionregressionknnpost = function (input, options) {
946
- return __awaiter(this, void 0, void 0, function () {
947
- return __generator(this, function (_a) {
948
- return [2 /*return*/, this.SendRequest({
949
- input: input,
950
- method: 'post',
951
- path: '/services/prediction/regression/knn',
952
- options: options
953
- })];
954
- });
955
- });
956
- };
957
- VectorApiClient.prototype.predictknnregressionfromsearchresultsapiservicespredictionregressionknnfromresultspost = function (input, options) {
958
- return __awaiter(this, void 0, void 0, function () {
959
- return __generator(this, function (_a) {
960
- return [2 /*return*/, this.SendRequest({
961
- input: input,
962
- method: 'post',
963
- path: '/services/prediction/regression/knn_from_results',
964
- options: options
965
- })];
966
- });
967
- });
968
- };
969
- VectorApiClient.prototype.encodenumericfieldsapiservicesencodersnumericfieldspost = function (input, options) {
970
- return __awaiter(this, void 0, void 0, function () {
971
- return __generator(this, function (_a) {
972
- return [2 /*return*/, this.SendRequest({
973
- input: input,
974
- method: 'post',
975
- path: '/services/encoders/numeric_fields',
976
- options: options
977
- })];
978
- });
979
- });
980
- };
981
- VectorApiClient.prototype.encodecategoriesapiservicesencoderscategoriespost = function (input, options) {
982
- return __awaiter(this, void 0, void 0, function () {
983
- return __generator(this, function (_a) {
984
- return [2 /*return*/, this.SendRequest({
985
- input: input,
986
- method: 'post',
987
- path: '/services/encoders/categories',
988
- options: options
989
- })];
990
- });
991
- });
992
- };
993
- VectorApiClient.prototype.encodedictionaryapiservicesencodersdictionarypost = function (input, options) {
994
- return __awaiter(this, void 0, void 0, function () {
995
- return __generator(this, function (_a) {
996
- return [2 /*return*/, this.SendRequest({
997
- input: input,
998
- method: 'post',
999
- path: '/services/encoders/dictionary',
1000
- options: options
1001
- })];
1002
- });
1003
- });
1004
- };
1005
- VectorApiClient.prototype.encodetextapiservicesencoderstextget = function (input, options) {
1006
- return __awaiter(this, void 0, void 0, function () {
1007
- return __generator(this, function (_a) {
1008
- return [2 /*return*/, this.SendRequest({
1009
- input: input,
1010
- method: 'get',
1011
- path: '/services/encoders/text',
1012
- options: options
1013
- })];
1014
- });
1015
- });
1016
- };
1017
- VectorApiClient.prototype.encodetextapiservicesencodersmultitextget = function (input, options) {
1018
- return __awaiter(this, void 0, void 0, function () {
1019
- return __generator(this, function (_a) {
1020
- return [2 /*return*/, this.SendRequest({
1021
- input: input,
1022
- method: 'get',
1023
- path: '/services/encoders/multi_text',
1024
- options: options
1025
- })];
1026
- });
1027
- });
1028
- };
1029
- VectorApiClient.prototype.encodeimageapiservicesencodersimagepost = function (input, options) {
1030
- return __awaiter(this, void 0, void 0, function () {
1031
- return __generator(this, function (_a) {
1032
- return [2 /*return*/, this.SendRequest({
1033
- input: input,
1034
- method: 'post',
1035
- path: '/services/encoders/image',
1036
- options: options
1037
- })];
1038
- });
1039
- });
1040
- };
1041
- VectorApiClient.prototype.encodetextimageapiservicesencoderstextimageget = function (input, options) {
1042
- return __awaiter(this, void 0, void 0, function () {
1043
- return __generator(this, function (_a) {
1044
- return [2 /*return*/, this.SendRequest({
1045
- input: input,
1046
- method: 'get',
1047
- path: '/services/encoders/textimage',
1048
- options: options
1049
- })];
1050
- });
1051
- });
1052
- };
1053
- VectorApiClient.prototype.encodeimagetextapiservicesencodersimagetextget = function (input, options) {
1054
- return __awaiter(this, void 0, void 0, function () {
1055
- return __generator(this, function (_a) {
1056
- return [2 /*return*/, this.SendRequest({
1057
- input: input,
1058
- method: 'get',
1059
- path: '/services/encoders/imagetext',
1060
- options: options
1061
- })];
1062
- });
1063
- });
1064
- };
1065
- VectorApiClient.prototype.retrievedocumentsapiservicesencodersencodepost = function (input, options) {
1066
- return __awaiter(this, void 0, void 0, function () {
1067
- return __generator(this, function (_a) {
1068
- return [2 /*return*/, this.SendRequest({
1069
- input: input,
1070
- method: 'post',
1071
- path: '/services/encoders/encode',
1072
- options: options
1073
- })];
1074
- });
1075
- });
1076
- };
1077
- VectorApiClient.prototype.retrievedocumentsapiservicesencodersbulkencodepost = function (input, options) {
1078
- return __awaiter(this, void 0, void 0, function () {
1079
- return __generator(this, function (_a) {
1080
- return [2 /*return*/, this.SendRequest({
1081
- input: input,
1082
- method: 'post',
1083
- path: '/services/encoders/bulk_encode',
1084
- options: options
1085
- })];
1086
- });
1087
- });
1088
- };
1089
- VectorApiClient.prototype.wordcloudsapiserviceswordcloudswordcloudspost = function (input, options) {
1090
- return __awaiter(this, void 0, void 0, function () {
1091
- return __generator(this, function (_a) {
1092
- return [2 /*return*/, this.SendRequest({
1093
- input: input,
1094
- method: 'post',
1095
- path: '/services/wordclouds/wordclouds',
1096
- options: options
1097
- })];
1098
- });
1099
- });
1100
- };
1101
- VectorApiClient.prototype.deployablecreateapideployablescreatepost = function (input, options) {
1102
- return __awaiter(this, void 0, void 0, function () {
1103
- return __generator(this, function (_a) {
1104
- return [2 /*return*/, this.SendRequest({
1105
- input: input,
1106
- method: 'post',
1107
- path: '/deployables/create',
1108
- options: options
1109
- })];
1110
- });
1111
- });
1112
- };
1113
- VectorApiClient.prototype.deployableupdateshareableapideployablesdeployableidsharepost = function (input, options) {
1114
- return __awaiter(this, void 0, void 0, function () {
1115
- return __generator(this, function (_a) {
1116
- return [2 /*return*/, this.SendRequest({
1117
- input: input,
1118
- method: 'post',
1119
- path: '/deployables/{deployable_id}/share',
1120
- options: options
1121
- })];
1122
- });
1123
- });
1124
- };
1125
- VectorApiClient.prototype.deployableupdateprivateapideployablesdeployableidprivatepost = function (input, options) {
1126
- return __awaiter(this, void 0, void 0, function () {
1127
- return __generator(this, function (_a) {
1128
- return [2 /*return*/, this.SendRequest({
1129
- input: input,
1130
- method: 'post',
1131
- path: '/deployables/{deployable_id}/private',
1132
- options: options
1133
- })];
1134
- });
1135
- });
1136
- };
1137
- VectorApiClient.prototype.deployableupdateapideployablesdeployableidupdatepost = function (input, options) {
1138
- return __awaiter(this, void 0, void 0, function () {
1139
- return __generator(this, function (_a) {
1140
- return [2 /*return*/, this.SendRequest({
1141
- input: input,
1142
- method: 'post',
1143
- path: '/deployables/{deployable_id}/update',
1144
- options: options
1145
- })];
1146
- });
1147
- });
1148
- };
1149
- VectorApiClient.prototype.deployablegetapideployablesdeployableidgetget = function (input, options) {
1150
- return __awaiter(this, void 0, void 0, function () {
1151
- return __generator(this, function (_a) {
1152
- return [2 /*return*/, this.SendRequest({
1153
- input: input,
1154
- method: 'get',
1155
- path: '/deployables/{deployable_id}/get',
1156
- options: options
1157
- })];
1158
- });
1159
- });
1160
- };
1161
- VectorApiClient.prototype.deployabledeleteapideployablesdeletepost = function (input, options) {
1162
- return __awaiter(this, void 0, void 0, function () {
1163
- return __generator(this, function (_a) {
1164
- return [2 /*return*/, this.SendRequest({
1165
- input: input,
1166
- method: 'post',
1167
- path: '/deployables/delete',
1168
- options: options
1169
- })];
1170
- });
1171
- });
1172
- };
1173
- VectorApiClient.prototype.deployablelistapideployableslistget = function (input, options) {
1174
- return __awaiter(this, void 0, void 0, function () {
1175
- return __generator(this, function (_a) {
1176
- return [2 /*return*/, this.SendRequest({
1177
- input: input,
1178
- method: 'get',
1179
- path: '/deployables/list',
1180
- options: options
1181
- })];
1182
- });
1183
- });
1184
- };
1185
- return VectorApiClient;
1186
- }(_GenericClient));
1187
- export { VectorApiClient };