@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.
- package/dist-cjs/generated/DiscoveryApi.js +595 -3
- package/dist-cjs/generated/_DiscoveryApiSchemaTypes.js +1 -4
- package/dist-cjs/generated/index.js +5 -2
- package/dist-cjs/index.js +6 -2
- package/dist-cjs/services/discovery/Dataset.js +125 -115
- package/dist-cjs/services/discovery/index.js +158 -179
- package/dist-cjs/services/index.js +2 -12
- package/dist-cjs/shared/generate.js +1 -1
- package/dist-cjs/shared/serviceConfigs.js +2 -7
- package/dist-es/generated/DiscoveryApi.js +898 -10
- package/dist-es/generated/_DiscoveryApiSchemaTypes.js +1 -4
- package/dist-es/generated/index.js +0 -1
- package/dist-es/index.js +1 -1
- package/dist-es/services/discovery/Dataset.js +126 -309
- package/dist-es/services/discovery/index.js +159 -233
- package/dist-es/services/index.js +3 -1
- package/dist-es/shared/BaseClient.js +9 -9
- package/dist-es/shared/generate.js +21 -20
- package/dist-es/shared/serviceConfigs.js +2 -7
- package/dist-types/generated/DiscoveryApi.d.ts +226 -4
- package/dist-types/generated/_DiscoveryApiSchemaTypes.d.ts +8663 -1056
- package/dist-types/generated/index.d.ts +0 -1
- package/dist-types/index.d.ts +0 -1
- package/dist-types/services/discovery/Dataset.d.ts +0 -50
- package/dist-types/services/discovery/index.d.ts +0 -366
- package/dist-types/services/index.d.ts +0 -1
- package/package.json +2 -2
- package/dist-cjs/generated/VectorApi.js +0 -754
- package/dist-cjs/generated/_VectorApiSchemaTypes.js +0 -6
- package/dist-es/generated/VectorApi.js +0 -1187
- package/dist-es/generated/_VectorApiSchemaTypes.js +0 -5
- package/dist-types/generated/VectorApi.d.ts +0 -284
- package/dist-types/generated/_VectorApiSchemaTypes.d.ts +0 -5724
|
@@ -66,49 +66,661 @@ var DiscoveryApiClient = /** @class */ (function (_super) {
|
|
|
66
66
|
function DiscoveryApiClient(config) {
|
|
67
67
|
return _super.call(this, __assign(__assign({}, config), { service_name: 'DiscoveryApi' })) || this;
|
|
68
68
|
}
|
|
69
|
+
DiscoveryApiClient.prototype.CreateDeployable = 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: '/deployables/create',
|
|
76
|
+
options: options
|
|
77
|
+
})];
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
DiscoveryApiClient.prototype.GetDeployable = 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: 'get',
|
|
87
|
+
path: '/deployables/{deployable_id}/get',
|
|
88
|
+
options: options
|
|
89
|
+
})];
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
DiscoveryApiClient.prototype.UpdateDeployable = 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: '/deployables/{deployable_id}/update',
|
|
100
|
+
options: options
|
|
101
|
+
})];
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
DiscoveryApiClient.prototype.DeleteDeployable = 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: '/deployables/delete',
|
|
112
|
+
options: options
|
|
113
|
+
})];
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
DiscoveryApiClient.prototype.CreateDeployableKey = 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: 'post',
|
|
123
|
+
path: '/deployables/{deployable_id}/share',
|
|
124
|
+
options: options
|
|
125
|
+
})];
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
DiscoveryApiClient.prototype.DeleteDeployableKey = 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: '/deployables/{deployable_id}/private',
|
|
136
|
+
options: options
|
|
137
|
+
})];
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
DiscoveryApiClient.prototype.ListDeployables = 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: '/deployables/list',
|
|
148
|
+
options: options
|
|
149
|
+
})];
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
DiscoveryApiClient.prototype.UpdateProject = 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: '/projects/update',
|
|
160
|
+
options: options
|
|
161
|
+
})];
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
DiscoveryApiClient.prototype.ListProjects = 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: '/projects/list',
|
|
172
|
+
options: options
|
|
173
|
+
})];
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
DiscoveryApiClient.prototype.CreateUser = 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: '/auth/users/create',
|
|
184
|
+
options: options
|
|
185
|
+
})];
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
DiscoveryApiClient.prototype.ListUsers = 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: '/auth/users/list',
|
|
196
|
+
options: options
|
|
197
|
+
})];
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
DiscoveryApiClient.prototype.IsUserAuthorized = 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: '/auth/is_authorized',
|
|
208
|
+
options: options
|
|
209
|
+
})];
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
};
|
|
213
|
+
DiscoveryApiClient.prototype.GetAuthHeaderInfo = 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: '/auth/info',
|
|
220
|
+
options: options
|
|
221
|
+
})];
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
DiscoveryApiClient.prototype.CreateProjectInvite = 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: '/auth/invite/create',
|
|
232
|
+
options: options
|
|
233
|
+
})];
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
DiscoveryApiClient.prototype.ListProjectInvites = 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: '/auth/invite/list',
|
|
244
|
+
options: options
|
|
245
|
+
})];
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
};
|
|
249
|
+
DiscoveryApiClient.prototype.AcceptProjectInvite = 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: '/auth/invite/accept',
|
|
256
|
+
options: options
|
|
257
|
+
})];
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
};
|
|
261
|
+
DiscoveryApiClient.prototype.GetUser = 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: '/auth/users/{user_id}',
|
|
268
|
+
options: options
|
|
269
|
+
})];
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
};
|
|
273
|
+
DiscoveryApiClient.prototype.UpdateUser = 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: '/auth/users/{user_id}/update',
|
|
280
|
+
options: options
|
|
281
|
+
})];
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
};
|
|
285
|
+
DiscoveryApiClient.prototype.DeleteUser = 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: 'post',
|
|
291
|
+
path: '/auth/users/{user_id}/delete',
|
|
292
|
+
options: options
|
|
293
|
+
})];
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
};
|
|
297
|
+
DiscoveryApiClient.prototype.CreateUserKey = 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: '/auth/users/{user_id}/keys/create',
|
|
304
|
+
options: options
|
|
305
|
+
})];
|
|
306
|
+
});
|
|
307
|
+
});
|
|
308
|
+
};
|
|
309
|
+
DiscoveryApiClient.prototype.ListUserKeys = 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: '/auth/users/{user_id}/keys/list',
|
|
316
|
+
options: options
|
|
317
|
+
})];
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
};
|
|
321
|
+
DiscoveryApiClient.prototype.DeleteUserKey = 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: 'post',
|
|
327
|
+
path: '/auth/users/{user_id}/keys/delete',
|
|
328
|
+
options: options
|
|
329
|
+
})];
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
DiscoveryApiClient.prototype.InsertClusterCentroids = 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}/cluster/centroids/insert',
|
|
340
|
+
options: options
|
|
341
|
+
})];
|
|
342
|
+
});
|
|
343
|
+
});
|
|
344
|
+
};
|
|
345
|
+
DiscoveryApiClient.prototype.UpdateClusterCentroids = 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}/cluster/centroids/update',
|
|
352
|
+
options: options
|
|
353
|
+
})];
|
|
354
|
+
});
|
|
355
|
+
});
|
|
356
|
+
};
|
|
357
|
+
DiscoveryApiClient.prototype.CompareClusterCentroids = 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}/cluster/centroids/compare_centroids',
|
|
364
|
+
options: options
|
|
365
|
+
})];
|
|
366
|
+
});
|
|
367
|
+
});
|
|
368
|
+
};
|
|
369
|
+
DiscoveryApiClient.prototype.Aggregate = 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}/aggregate',
|
|
376
|
+
options: options
|
|
377
|
+
})];
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
};
|
|
381
|
+
DiscoveryApiClient.prototype.AggregateClusters = 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}/cluster/aggregate',
|
|
388
|
+
options: options
|
|
389
|
+
})];
|
|
390
|
+
});
|
|
391
|
+
});
|
|
392
|
+
};
|
|
393
|
+
DiscoveryApiClient.prototype.ListClusterFacets = 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}/cluster/facets',
|
|
400
|
+
options: options
|
|
401
|
+
})];
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
};
|
|
405
|
+
DiscoveryApiClient.prototype.ListClosestToCentroids = 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}/cluster/centroids/list_closest_to_center',
|
|
412
|
+
options: options
|
|
413
|
+
})];
|
|
414
|
+
});
|
|
415
|
+
});
|
|
416
|
+
};
|
|
417
|
+
DiscoveryApiClient.prototype.ListFurthestFromCentroids = 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: 'post',
|
|
423
|
+
path: '/datasets/{dataset_id}/cluster/centroids/list_furthest_from_center',
|
|
424
|
+
options: options
|
|
425
|
+
})];
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
};
|
|
429
|
+
DiscoveryApiClient.prototype.ListCentroids = 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}/cluster/centroids/documents',
|
|
436
|
+
options: options
|
|
437
|
+
})];
|
|
438
|
+
});
|
|
439
|
+
});
|
|
440
|
+
};
|
|
441
|
+
DiscoveryApiClient.prototype.DeleteCentroid = 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: 'post',
|
|
447
|
+
path: '/datasets/{dataset_id}/cluster/centroids/{centroid_id}/delete',
|
|
448
|
+
options: options
|
|
449
|
+
})];
|
|
450
|
+
});
|
|
451
|
+
});
|
|
452
|
+
};
|
|
453
|
+
DiscoveryApiClient.prototype.RealtimeClustering = 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: 'post',
|
|
459
|
+
path: '/datasets/{dataset_id}/cluster/realtime',
|
|
460
|
+
options: options
|
|
461
|
+
})];
|
|
462
|
+
});
|
|
463
|
+
});
|
|
464
|
+
};
|
|
465
|
+
DiscoveryApiClient.prototype.MergeClusters = 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}/cluster/merge',
|
|
472
|
+
options: options
|
|
473
|
+
})];
|
|
474
|
+
});
|
|
475
|
+
});
|
|
476
|
+
};
|
|
477
|
+
DiscoveryApiClient.prototype.CreateClusterSummaries = 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}/cluster/centroids/summaries/create',
|
|
484
|
+
options: options
|
|
485
|
+
})];
|
|
486
|
+
});
|
|
487
|
+
});
|
|
488
|
+
};
|
|
489
|
+
DiscoveryApiClient.prototype.ListClusterSummaries = 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: 'post',
|
|
495
|
+
path: '/datasets/{dataset_id}/cluster/centroids/summaries/list',
|
|
496
|
+
options: options
|
|
497
|
+
})];
|
|
498
|
+
});
|
|
499
|
+
});
|
|
500
|
+
};
|
|
501
|
+
DiscoveryApiClient.prototype.DeleteClusterSummaries = 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: 'post',
|
|
507
|
+
path: '/datasets/{dataset_id}/cluster/centroids/summaries/bulk_delete',
|
|
508
|
+
options: options
|
|
509
|
+
})];
|
|
510
|
+
});
|
|
511
|
+
});
|
|
512
|
+
};
|
|
69
513
|
DiscoveryApiClient.prototype.Insert = function (input, options) {
|
|
70
514
|
return __awaiter(this, void 0, void 0, function () {
|
|
71
515
|
return __generator(this, function (_a) {
|
|
72
516
|
return [2 /*return*/, this.SendRequest({
|
|
73
517
|
input: input,
|
|
74
|
-
method: 'post',
|
|
75
|
-
path: '/datasets/{dataset_id}/documents/insert',
|
|
518
|
+
method: 'post',
|
|
519
|
+
path: '/datasets/{dataset_id}/documents/insert',
|
|
520
|
+
options: options
|
|
521
|
+
})];
|
|
522
|
+
});
|
|
523
|
+
});
|
|
524
|
+
};
|
|
525
|
+
DiscoveryApiClient.prototype.BulkInsert = 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: 'post',
|
|
531
|
+
path: '/datasets/{dataset_id}/documents/bulk_insert',
|
|
532
|
+
options: options
|
|
533
|
+
})];
|
|
534
|
+
});
|
|
535
|
+
});
|
|
536
|
+
};
|
|
537
|
+
DiscoveryApiClient.prototype.GetFileUploadUrlsForDataset = 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: 'post',
|
|
543
|
+
path: '/datasets/{dataset_id}/get_file_upload_urls',
|
|
544
|
+
options: options
|
|
545
|
+
})];
|
|
546
|
+
});
|
|
547
|
+
});
|
|
548
|
+
};
|
|
549
|
+
DiscoveryApiClient.prototype.ParseBlob = 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: '/datasets/{dataset_id}/parse_blob',
|
|
556
|
+
options: options
|
|
557
|
+
})];
|
|
558
|
+
});
|
|
559
|
+
});
|
|
560
|
+
};
|
|
561
|
+
DiscoveryApiClient.prototype.CopyForeignDataset = 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: '/admin/copy_foreign_dataset',
|
|
568
|
+
options: options
|
|
569
|
+
})];
|
|
570
|
+
});
|
|
571
|
+
});
|
|
572
|
+
};
|
|
573
|
+
DiscoveryApiClient.prototype.CreateProjectReadKey = 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: '/admin/request_read_api_key',
|
|
580
|
+
options: options
|
|
581
|
+
})];
|
|
582
|
+
});
|
|
583
|
+
});
|
|
584
|
+
};
|
|
585
|
+
DiscoveryApiClient.prototype.DeleteDataset = 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: '/datasets/{dataset_id}/delete',
|
|
592
|
+
options: options
|
|
593
|
+
})];
|
|
594
|
+
});
|
|
595
|
+
});
|
|
596
|
+
};
|
|
597
|
+
DiscoveryApiClient.prototype.CreateDataset = 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: '/datasets/create',
|
|
604
|
+
options: options
|
|
605
|
+
})];
|
|
606
|
+
});
|
|
607
|
+
});
|
|
608
|
+
};
|
|
609
|
+
DiscoveryApiClient.prototype.GetSchema = 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: 'get',
|
|
615
|
+
path: '/datasets/{dataset_id}/schema',
|
|
616
|
+
options: options
|
|
617
|
+
})];
|
|
618
|
+
});
|
|
619
|
+
});
|
|
620
|
+
};
|
|
621
|
+
DiscoveryApiClient.prototype.ListDatasets = 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: 'get',
|
|
627
|
+
path: '/datasets/list',
|
|
628
|
+
options: options
|
|
629
|
+
})];
|
|
630
|
+
});
|
|
631
|
+
});
|
|
632
|
+
};
|
|
633
|
+
DiscoveryApiClient.prototype.CombineDatasets = 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: '/datasets/combine',
|
|
640
|
+
options: options
|
|
641
|
+
})];
|
|
642
|
+
});
|
|
643
|
+
});
|
|
644
|
+
};
|
|
645
|
+
DiscoveryApiClient.prototype.GetCombineJobStatus = 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: '/datasets/combine/{job_id}/get',
|
|
652
|
+
options: options
|
|
653
|
+
})];
|
|
654
|
+
});
|
|
655
|
+
});
|
|
656
|
+
};
|
|
657
|
+
DiscoveryApiClient.prototype.SearchDatasets = 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: 'get',
|
|
663
|
+
path: '/datasets/search',
|
|
76
664
|
options: options
|
|
77
665
|
})];
|
|
78
666
|
});
|
|
79
667
|
});
|
|
80
668
|
};
|
|
81
|
-
DiscoveryApiClient.prototype.
|
|
669
|
+
DiscoveryApiClient.prototype.GetFieldHealth = function (input, options) {
|
|
82
670
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
671
|
return __generator(this, function (_a) {
|
|
84
672
|
return [2 /*return*/, this.SendRequest({
|
|
85
673
|
input: input,
|
|
86
|
-
method: '
|
|
87
|
-
path: '/datasets/{dataset_id}/
|
|
674
|
+
method: 'get',
|
|
675
|
+
path: '/datasets/{dataset_id}/monitor/health',
|
|
676
|
+
options: options
|
|
677
|
+
})];
|
|
678
|
+
});
|
|
679
|
+
});
|
|
680
|
+
};
|
|
681
|
+
DiscoveryApiClient.prototype.GetDatasetStats = 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: 'get',
|
|
687
|
+
path: '/datasets/{dataset_id}/monitor/stats',
|
|
88
688
|
options: options
|
|
89
689
|
})];
|
|
90
690
|
});
|
|
91
691
|
});
|
|
92
692
|
};
|
|
93
|
-
DiscoveryApiClient.prototype.
|
|
693
|
+
DiscoveryApiClient.prototype.GetDatasetUsage = function (input, options) {
|
|
94
694
|
return __awaiter(this, void 0, void 0, function () {
|
|
95
695
|
return __generator(this, function (_a) {
|
|
96
696
|
return [2 /*return*/, this.SendRequest({
|
|
97
697
|
input: input,
|
|
98
698
|
method: 'post',
|
|
99
|
-
path: '/datasets/{dataset_id}/
|
|
699
|
+
path: '/datasets/{dataset_id}/monitor/usage',
|
|
100
700
|
options: options
|
|
101
701
|
})];
|
|
102
702
|
});
|
|
103
703
|
});
|
|
104
704
|
};
|
|
105
|
-
DiscoveryApiClient.prototype.
|
|
705
|
+
DiscoveryApiClient.prototype.GetVectorMappings = 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: 'get',
|
|
711
|
+
path: '/datasets/{dataset_id}/vector_mappings',
|
|
712
|
+
options: options
|
|
713
|
+
})];
|
|
714
|
+
});
|
|
715
|
+
});
|
|
716
|
+
};
|
|
717
|
+
DiscoveryApiClient.prototype.GetDatasetDetails = function (input, options) {
|
|
106
718
|
return __awaiter(this, void 0, void 0, function () {
|
|
107
719
|
return __generator(this, function (_a) {
|
|
108
720
|
return [2 /*return*/, this.SendRequest({
|
|
109
721
|
input: input,
|
|
110
722
|
method: 'post',
|
|
111
|
-
path: '/datasets/{dataset_id}/
|
|
723
|
+
path: '/datasets/{dataset_id}/details',
|
|
112
724
|
options: options
|
|
113
725
|
})];
|
|
114
726
|
});
|
|
@@ -119,7 +731,7 @@ var DiscoveryApiClient = /** @class */ (function (_super) {
|
|
|
119
731
|
return __generator(this, function (_a) {
|
|
120
732
|
return [2 /*return*/, this.SendRequest({
|
|
121
733
|
input: input,
|
|
122
|
-
method: '
|
|
734
|
+
method: 'get',
|
|
123
735
|
path: '/datasets/{dataset_id}/documents/get',
|
|
124
736
|
options: options
|
|
125
737
|
})];
|
|
@@ -138,6 +750,54 @@ var DiscoveryApiClient = /** @class */ (function (_super) {
|
|
|
138
750
|
});
|
|
139
751
|
});
|
|
140
752
|
};
|
|
753
|
+
DiscoveryApiClient.prototype.UpsertDatasetSettings = 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: '/datasets/{dataset_id}/settings',
|
|
760
|
+
options: options
|
|
761
|
+
})];
|
|
762
|
+
});
|
|
763
|
+
});
|
|
764
|
+
};
|
|
765
|
+
DiscoveryApiClient.prototype.GetDatasetSettings = 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: '/datasets/{dataset_id}/settings',
|
|
772
|
+
options: options
|
|
773
|
+
})];
|
|
774
|
+
});
|
|
775
|
+
});
|
|
776
|
+
};
|
|
777
|
+
DiscoveryApiClient.prototype.UpsertDatasetMetadata = 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: '/datasets/{dataset_id}/metadata',
|
|
784
|
+
options: options
|
|
785
|
+
})];
|
|
786
|
+
});
|
|
787
|
+
});
|
|
788
|
+
};
|
|
789
|
+
DiscoveryApiClient.prototype.GetDatasetMetadata = 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: 'get',
|
|
795
|
+
path: '/datasets/{dataset_id}/metadata',
|
|
796
|
+
options: options
|
|
797
|
+
})];
|
|
798
|
+
});
|
|
799
|
+
});
|
|
800
|
+
};
|
|
141
801
|
DiscoveryApiClient.prototype.Update = function (input, options) {
|
|
142
802
|
return __awaiter(this, void 0, void 0, function () {
|
|
143
803
|
return __generator(this, function (_a) {
|
|
@@ -150,6 +810,18 @@ var DiscoveryApiClient = /** @class */ (function (_super) {
|
|
|
150
810
|
});
|
|
151
811
|
});
|
|
152
812
|
};
|
|
813
|
+
DiscoveryApiClient.prototype.DeleteDocumentFields = 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: 'post',
|
|
819
|
+
path: '/datasets/{dataset_id}/documents/delete_fields',
|
|
820
|
+
options: options
|
|
821
|
+
})];
|
|
822
|
+
});
|
|
823
|
+
});
|
|
824
|
+
};
|
|
153
825
|
DiscoveryApiClient.prototype.BulkUpdate = function (input, options) {
|
|
154
826
|
return __awaiter(this, void 0, void 0, function () {
|
|
155
827
|
return __generator(this, function (_a) {
|
|
@@ -174,6 +846,78 @@ var DiscoveryApiClient = /** @class */ (function (_super) {
|
|
|
174
846
|
});
|
|
175
847
|
});
|
|
176
848
|
};
|
|
849
|
+
DiscoveryApiClient.prototype.ListFacets = 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: '/datasets/{dataset_id}/facets',
|
|
856
|
+
options: options
|
|
857
|
+
})];
|
|
858
|
+
});
|
|
859
|
+
});
|
|
860
|
+
};
|
|
861
|
+
DiscoveryApiClient.prototype.GetWhere = 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: '/datasets/{dataset_id}/documents/get_where',
|
|
868
|
+
options: options
|
|
869
|
+
})];
|
|
870
|
+
});
|
|
871
|
+
});
|
|
872
|
+
};
|
|
873
|
+
DiscoveryApiClient.prototype.PaginateDocuments = 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: 'post',
|
|
879
|
+
path: '/datasets/{dataset_id}/documents/paginate',
|
|
880
|
+
options: options
|
|
881
|
+
})];
|
|
882
|
+
});
|
|
883
|
+
});
|
|
884
|
+
};
|
|
885
|
+
DiscoveryApiClient.prototype.BulkGetDocuments = 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: 'post',
|
|
891
|
+
path: '/datasets/{dataset_id}/documents/bulk_get',
|
|
892
|
+
options: options
|
|
893
|
+
})];
|
|
894
|
+
});
|
|
895
|
+
});
|
|
896
|
+
};
|
|
897
|
+
DiscoveryApiClient.prototype.BulkDeleteDocuments = 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: '/datasets/{dataset_id}/documents/bulk_delete',
|
|
904
|
+
options: options
|
|
905
|
+
})];
|
|
906
|
+
});
|
|
907
|
+
});
|
|
908
|
+
};
|
|
909
|
+
DiscoveryApiClient.prototype.ListDocuments = 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: 'get',
|
|
915
|
+
path: '/datasets/{dataset_id}/documents/list',
|
|
916
|
+
options: options
|
|
917
|
+
})];
|
|
918
|
+
});
|
|
919
|
+
});
|
|
920
|
+
};
|
|
177
921
|
DiscoveryApiClient.prototype.DeleteWhere = function (input, options) {
|
|
178
922
|
return __awaiter(this, void 0, void 0, function () {
|
|
179
923
|
return __generator(this, function (_a) {
|
|
@@ -210,6 +954,150 @@ var DiscoveryApiClient = /** @class */ (function (_super) {
|
|
|
210
954
|
});
|
|
211
955
|
});
|
|
212
956
|
};
|
|
957
|
+
DiscoveryApiClient.prototype.Recommend = 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: '/datasets/{dataset_id}/recommend',
|
|
964
|
+
options: options
|
|
965
|
+
})];
|
|
966
|
+
});
|
|
967
|
+
});
|
|
968
|
+
};
|
|
969
|
+
DiscoveryApiClient.prototype.CloneDataset = 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: '/datasets/{dataset_id}/clone',
|
|
976
|
+
options: options
|
|
977
|
+
})];
|
|
978
|
+
});
|
|
979
|
+
});
|
|
980
|
+
};
|
|
981
|
+
DiscoveryApiClient.prototype.PredictKNNRegression = 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/prediction/regression/knn',
|
|
988
|
+
options: options
|
|
989
|
+
})];
|
|
990
|
+
});
|
|
991
|
+
});
|
|
992
|
+
};
|
|
993
|
+
DiscoveryApiClient.prototype.PredictKNNFromResults = 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/prediction/knn_from_results',
|
|
1000
|
+
options: options
|
|
1001
|
+
})];
|
|
1002
|
+
});
|
|
1003
|
+
});
|
|
1004
|
+
};
|
|
1005
|
+
DiscoveryApiClient.prototype.BiasEvaluation = 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: 'post',
|
|
1011
|
+
path: '/services/evaluation/bias',
|
|
1012
|
+
options: options
|
|
1013
|
+
})];
|
|
1014
|
+
});
|
|
1015
|
+
});
|
|
1016
|
+
};
|
|
1017
|
+
DiscoveryApiClient.prototype.Vectorize = 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: 'post',
|
|
1023
|
+
path: '/services/vectorize',
|
|
1024
|
+
options: options
|
|
1025
|
+
})];
|
|
1026
|
+
});
|
|
1027
|
+
});
|
|
1028
|
+
};
|
|
1029
|
+
DiscoveryApiClient.prototype.VectorizeAndInsert = 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/vectorize/{dataset_id}/vectorize_and_insert',
|
|
1036
|
+
options: options
|
|
1037
|
+
})];
|
|
1038
|
+
});
|
|
1039
|
+
});
|
|
1040
|
+
};
|
|
1041
|
+
DiscoveryApiClient.prototype.VectorizeField = 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: 'post',
|
|
1047
|
+
path: '/services/vectorize/{dataset_id}',
|
|
1048
|
+
options: options
|
|
1049
|
+
})];
|
|
1050
|
+
});
|
|
1051
|
+
});
|
|
1052
|
+
};
|
|
1053
|
+
DiscoveryApiClient.prototype.TriggerWorkflow = 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: 'post',
|
|
1059
|
+
path: '/workflows/trigger',
|
|
1060
|
+
options: options
|
|
1061
|
+
})];
|
|
1062
|
+
});
|
|
1063
|
+
});
|
|
1064
|
+
};
|
|
1065
|
+
DiscoveryApiClient.prototype.ListWorkflows = 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: 'get',
|
|
1071
|
+
path: '/workflows/list',
|
|
1072
|
+
options: options
|
|
1073
|
+
})];
|
|
1074
|
+
});
|
|
1075
|
+
});
|
|
1076
|
+
};
|
|
1077
|
+
DiscoveryApiClient.prototype.GetWorkflowStatus = 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: '/workflows/{workflow_id}/get',
|
|
1084
|
+
options: options
|
|
1085
|
+
})];
|
|
1086
|
+
});
|
|
1087
|
+
});
|
|
1088
|
+
};
|
|
1089
|
+
DiscoveryApiClient.prototype.UpsertWorkflowMetadata = 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: '/workflows/{workflow_id}/metadata',
|
|
1096
|
+
options: options
|
|
1097
|
+
})];
|
|
1098
|
+
});
|
|
1099
|
+
});
|
|
1100
|
+
};
|
|
213
1101
|
return DiscoveryApiClient;
|
|
214
1102
|
}(_GenericClient));
|
|
215
1103
|
export { DiscoveryApiClient };
|