@relevanceai/sdk 1.148.0 → 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.
Files changed (32) hide show
  1. package/README.md +27 -49
  2. package/package.json +3 -2
  3. package/dist-cjs/generated/DiscoveryApi.js +0 -1378
  4. package/dist-cjs/generated/_DiscoveryApiSchemaTypes.js +0 -3
  5. package/dist-cjs/generated/index.js +0 -17
  6. package/dist-cjs/index.js +0 -18
  7. package/dist-cjs/services/discovery/Dataset.js +0 -126
  8. package/dist-cjs/services/discovery/index.js +0 -159
  9. package/dist-cjs/services/index.js +0 -3
  10. package/dist-cjs/shared/BaseClient.js +0 -35
  11. package/dist-cjs/shared/generate.js +0 -90
  12. package/dist-cjs/shared/serviceConfigs.js +0 -10
  13. package/dist-es/generated/DiscoveryApi.js +0 -2123
  14. package/dist-es/generated/_DiscoveryApiSchemaTypes.js +0 -2
  15. package/dist-es/generated/index.js +0 -1
  16. package/dist-es/index.js +0 -2
  17. package/dist-es/services/discovery/Dataset.js +0 -126
  18. package/dist-es/services/discovery/index.js +0 -159
  19. package/dist-es/services/index.js +0 -3
  20. package/dist-es/shared/BaseClient.js +0 -82
  21. package/dist-es/shared/generate.js +0 -224
  22. package/dist-es/shared/serviceConfigs.js +0 -7
  23. package/dist-types/generated/DiscoveryApi.d.ts +0 -518
  24. package/dist-types/generated/_DiscoveryApiSchemaTypes.d.ts +0 -20001
  25. package/dist-types/generated/index.d.ts +0 -1
  26. package/dist-types/index.d.ts +0 -1
  27. package/dist-types/services/discovery/Dataset.d.ts +0 -0
  28. package/dist-types/services/discovery/index.d.ts +0 -0
  29. package/dist-types/services/index.d.ts +0 -0
  30. package/dist-types/shared/BaseClient.d.ts +0 -28
  31. package/dist-types/shared/generate.d.ts +0 -1
  32. package/dist-types/shared/serviceConfigs.d.ts +0 -8
@@ -1,1378 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DiscoveryApiClient = void 0;
4
- const BaseClient_1 = require("../shared/BaseClient");
5
- class DiscoveryApiClient extends BaseClient_1._GenericClient {
6
- constructor(config) {
7
- super({ ...config, service_name: 'DiscoveryApi' });
8
- }
9
- async CreateDeployable(input, options) {
10
- return this.SendRequest({
11
- input,
12
- method: 'post',
13
- path: '/deployables/create',
14
- options
15
- });
16
- }
17
- async GetDeployable(input, options) {
18
- return this.SendRequest({
19
- input,
20
- method: 'get',
21
- path: '/deployables/{deployable_id}/get',
22
- options
23
- });
24
- }
25
- async UpdateDeployable(input, options) {
26
- return this.SendRequest({
27
- input,
28
- method: 'post',
29
- path: '/deployables/{deployable_id}/update',
30
- options
31
- });
32
- }
33
- async DeleteDeployable(input, options) {
34
- return this.SendRequest({
35
- input,
36
- method: 'post',
37
- path: '/deployables/delete',
38
- options
39
- });
40
- }
41
- async CreateDeployableKey(input, options) {
42
- return this.SendRequest({
43
- input,
44
- method: 'post',
45
- path: '/deployables/{deployable_id}/share',
46
- options
47
- });
48
- }
49
- async CreateDeployableInvite(input, options) {
50
- return this.SendRequest({
51
- input,
52
- method: 'post',
53
- path: '/deployables/{deployable_id}/invite',
54
- options
55
- });
56
- }
57
- async UpdateUsersDeployablePermissions(input, options) {
58
- return this.SendRequest({
59
- input,
60
- method: 'post',
61
- path: '/deployables/{deployable_id}/users/{user_id}/update',
62
- options
63
- });
64
- }
65
- async DeleteDeployableKey(input, options) {
66
- return this.SendRequest({
67
- input,
68
- method: 'post',
69
- path: '/deployables/{deployable_id}/private',
70
- options
71
- });
72
- }
73
- async ListDeployables(input, options) {
74
- return this.SendRequest({
75
- input,
76
- method: 'get',
77
- path: '/deployables/list',
78
- options
79
- });
80
- }
81
- async DeleteDeployableGroup(input, options) {
82
- return this.SendRequest({
83
- input,
84
- method: 'post',
85
- path: '/deployablegroups/{deployablegroup_id}/delete',
86
- options
87
- });
88
- }
89
- async ListDeployableGroups(input, options) {
90
- return this.SendRequest({
91
- input,
92
- method: 'post',
93
- path: '/deployablegroups/list',
94
- options
95
- });
96
- }
97
- async CreateDeployableGroup(input, options) {
98
- return this.SendRequest({
99
- input,
100
- method: 'post',
101
- path: '/deployablegroups/create',
102
- options
103
- });
104
- }
105
- async GetDeployableGroup(input, options) {
106
- return this.SendRequest({
107
- input,
108
- method: 'get',
109
- path: '/deployablegroups/{deployablegroup_id}/get',
110
- options
111
- });
112
- }
113
- async UpdateDeployableGroup(input, options) {
114
- return this.SendRequest({
115
- input,
116
- method: 'post',
117
- path: '/deployablegroups/{deployablegroup_id}/update',
118
- options
119
- });
120
- }
121
- async CreateDeployableGroupKey(input, options) {
122
- return this.SendRequest({
123
- input,
124
- method: 'post',
125
- path: '/deployablegroups/{deployablegroup_id}/share',
126
- options
127
- });
128
- }
129
- async DeleteDeployableGroupKey(input, options) {
130
- return this.SendRequest({
131
- input,
132
- method: 'post',
133
- path: '/deployablegroups/{deployablegroup_id}/private',
134
- options
135
- });
136
- }
137
- async CreateProject(input, options) {
138
- return this.SendRequest({
139
- input,
140
- method: 'post',
141
- path: '/projects/create',
142
- options
143
- });
144
- }
145
- async UpdateProject(input, options) {
146
- return this.SendRequest({
147
- input,
148
- method: 'post',
149
- path: '/projects/update',
150
- options
151
- });
152
- }
153
- async TransferProjectToOrganization(input, options) {
154
- return this.SendRequest({
155
- input,
156
- method: 'post',
157
- path: '/projects/transfer_to_organization',
158
- options
159
- });
160
- }
161
- async ListProjects(input, options) {
162
- return this.SendRequest({
163
- input,
164
- method: 'get',
165
- path: '/projects/list',
166
- options
167
- });
168
- }
169
- async CreateUser(input, options) {
170
- return this.SendRequest({
171
- input,
172
- method: 'post',
173
- path: '/auth/users/create',
174
- options
175
- });
176
- }
177
- async ListUsers(input, options) {
178
- return this.SendRequest({
179
- input,
180
- method: 'post',
181
- path: '/auth/users/list',
182
- options
183
- });
184
- }
185
- async IsUserAuthorized(input, options) {
186
- return this.SendRequest({
187
- input,
188
- method: 'post',
189
- path: '/auth/is_authorized',
190
- options
191
- });
192
- }
193
- async GetAuthHeaderInfo(input, options) {
194
- return this.SendRequest({
195
- input,
196
- method: 'get',
197
- path: '/auth/info',
198
- options
199
- });
200
- }
201
- async CreateProjectInvite(input, options) {
202
- return this.SendRequest({
203
- input,
204
- method: 'post',
205
- path: '/auth/invite/create',
206
- options
207
- });
208
- }
209
- async ListProjectInvites(input, options) {
210
- return this.SendRequest({
211
- input,
212
- method: 'post',
213
- path: '/auth/invite/list',
214
- options
215
- });
216
- }
217
- async AcceptProjectInvite(input, options) {
218
- return this.SendRequest({
219
- input,
220
- method: 'post',
221
- path: '/auth/invite/accept',
222
- options
223
- });
224
- }
225
- async DeleteProjectInvite(input, options) {
226
- return this.SendRequest({
227
- input,
228
- method: 'post',
229
- path: '/auth/invite/delete',
230
- options
231
- });
232
- }
233
- async ResendProjectInvite(input, options) {
234
- return this.SendRequest({
235
- input,
236
- method: 'post',
237
- path: '/auth/invite/resend',
238
- options
239
- });
240
- }
241
- async GetUser(input, options) {
242
- return this.SendRequest({
243
- input,
244
- method: 'get',
245
- path: '/auth/users/{user_id}',
246
- options
247
- });
248
- }
249
- async UpdateUser(input, options) {
250
- return this.SendRequest({
251
- input,
252
- method: 'post',
253
- path: '/auth/users/{user_id}/update',
254
- options
255
- });
256
- }
257
- async DeleteUser(input, options) {
258
- return this.SendRequest({
259
- input,
260
- method: 'post',
261
- path: '/auth/users/{user_id}/delete',
262
- options
263
- });
264
- }
265
- async CreateUserKey(input, options) {
266
- return this.SendRequest({
267
- input,
268
- method: 'post',
269
- path: '/auth/users/{user_id}/keys/create',
270
- options
271
- });
272
- }
273
- async ListUserKeys(input, options) {
274
- return this.SendRequest({
275
- input,
276
- method: 'post',
277
- path: '/auth/users/{user_id}/keys/list',
278
- options
279
- });
280
- }
281
- async DeleteUserKey(input, options) {
282
- return this.SendRequest({
283
- input,
284
- method: 'post',
285
- path: '/auth/users/{user_id}/keys/delete',
286
- options
287
- });
288
- }
289
- async InsertClusterCentroids(input, options) {
290
- return this.SendRequest({
291
- input,
292
- method: 'post',
293
- path: '/datasets/{dataset_id}/cluster/centroids/insert',
294
- options
295
- });
296
- }
297
- async UpdateClusterCentroids(input, options) {
298
- return this.SendRequest({
299
- input,
300
- method: 'post',
301
- path: '/datasets/{dataset_id}/cluster/centroids/update',
302
- options
303
- });
304
- }
305
- async CompareClusterCentroids(input, options) {
306
- return this.SendRequest({
307
- input,
308
- method: 'post',
309
- path: '/datasets/{dataset_id}/cluster/centroids/compare_centroids',
310
- options
311
- });
312
- }
313
- async Aggregate(input, options) {
314
- return this.SendRequest({
315
- input,
316
- method: 'post',
317
- path: '/datasets/{dataset_id}/aggregate',
318
- options
319
- });
320
- }
321
- async AggregateClusters(input, options) {
322
- return this.SendRequest({
323
- input,
324
- method: 'post',
325
- path: '/datasets/{dataset_id}/cluster/aggregate',
326
- options
327
- });
328
- }
329
- async ListClusterFacets(input, options) {
330
- return this.SendRequest({
331
- input,
332
- method: 'post',
333
- path: '/datasets/{dataset_id}/cluster/facets',
334
- options
335
- });
336
- }
337
- async ListClosestToCentroids(input, options) {
338
- return this.SendRequest({
339
- input,
340
- method: 'post',
341
- path: '/datasets/{dataset_id}/cluster/centroids/list_closest_to_center',
342
- options
343
- });
344
- }
345
- async ListFurthestFromCentroids(input, options) {
346
- return this.SendRequest({
347
- input,
348
- method: 'post',
349
- path: '/datasets/{dataset_id}/cluster/centroids/list_furthest_from_center',
350
- options
351
- });
352
- }
353
- async ListCentroids(input, options) {
354
- return this.SendRequest({
355
- input,
356
- method: 'post',
357
- path: '/datasets/{dataset_id}/cluster/centroids/documents',
358
- options
359
- });
360
- }
361
- async ListCentroidConfigs(input, options) {
362
- return this.SendRequest({
363
- input,
364
- method: 'get',
365
- path: '/datasets/{dataset_id}/cluster/centroids/configs/list',
366
- options
367
- });
368
- }
369
- async DeleteCentroid(input, options) {
370
- return this.SendRequest({
371
- input,
372
- method: 'post',
373
- path: '/datasets/{dataset_id}/cluster/centroids/{centroid_id}/delete',
374
- options
375
- });
376
- }
377
- async RealtimeClustering(input, options) {
378
- return this.SendRequest({
379
- input,
380
- method: 'post',
381
- path: '/datasets/{dataset_id}/cluster/realtime',
382
- options
383
- });
384
- }
385
- async MergeClusters(input, options) {
386
- return this.SendRequest({
387
- input,
388
- method: 'post',
389
- path: '/datasets/{dataset_id}/cluster/merge',
390
- options
391
- });
392
- }
393
- async CreateClusterSummaries(input, options) {
394
- return this.SendRequest({
395
- input,
396
- method: 'post',
397
- path: '/datasets/{dataset_id}/cluster/centroids/summaries/create',
398
- options
399
- });
400
- }
401
- async CreateClusterLabels(input, options) {
402
- return this.SendRequest({
403
- input,
404
- method: 'post',
405
- path: '/datasets/{dataset_id}/cluster/centroids/labels/create',
406
- options
407
- });
408
- }
409
- async ListClusterSummaries(input, options) {
410
- return this.SendRequest({
411
- input,
412
- method: 'post',
413
- path: '/datasets/{dataset_id}/cluster/centroids/summaries/list',
414
- options
415
- });
416
- }
417
- async CreateHierarchicalClusters(input, options) {
418
- return this.SendRequest({
419
- input,
420
- method: 'post',
421
- path: '/datasets/{dataset_id}/cluster/hierarchical/create',
422
- options
423
- });
424
- }
425
- async DeleteClusterSummaries(input, options) {
426
- return this.SendRequest({
427
- input,
428
- method: 'post',
429
- path: '/datasets/{dataset_id}/cluster/centroids/summaries/bulk_delete',
430
- options
431
- });
432
- }
433
- async CreateOrganization(input, options) {
434
- return this.SendRequest({
435
- input,
436
- method: 'post',
437
- path: '/organizations/create',
438
- options
439
- });
440
- }
441
- async UpdateOrganization(input, options) {
442
- return this.SendRequest({
443
- input,
444
- method: 'post',
445
- path: '/organizations/{organization_id}/update',
446
- options
447
- });
448
- }
449
- async UpdateOrganizationAdmin(input, options) {
450
- return this.SendRequest({
451
- input,
452
- method: 'post',
453
- path: '/admin/organizations/{organization_id}/update',
454
- options
455
- });
456
- }
457
- async ListOrganizations(input, options) {
458
- return this.SendRequest({
459
- input,
460
- method: 'get',
461
- path: '/organizations/list',
462
- options
463
- });
464
- }
465
- async DeleteOrganization(input, options) {
466
- return this.SendRequest({
467
- input,
468
- method: 'post',
469
- path: '/organizations/{organization_id}/delete',
470
- options
471
- });
472
- }
473
- async GetOrganization(input, options) {
474
- return this.SendRequest({
475
- input,
476
- method: 'get',
477
- path: '/organizations/{organization_id}/get',
478
- options
479
- });
480
- }
481
- async GetOrganizationUsage(input, options) {
482
- return this.SendRequest({
483
- input,
484
- method: 'get',
485
- path: '/organizations/{organization_id}/usage/get',
486
- options
487
- });
488
- }
489
- async ListUsersInOrganization(input, options) {
490
- return this.SendRequest({
491
- input,
492
- method: 'get',
493
- path: '/organizations/{organization_id}/users/list',
494
- options
495
- });
496
- }
497
- async ListProjectsInOrganization(input, options) {
498
- return this.SendRequest({
499
- input,
500
- method: 'get',
501
- path: '/organizations/{organization_id}/projects/list',
502
- options
503
- });
504
- }
505
- async AggregateOrganizationMetrics(input, options) {
506
- return this.SendRequest({
507
- input,
508
- method: 'post',
509
- path: '/organizations/{organization_id}/metrics/aggregate',
510
- options
511
- });
512
- }
513
- async CreateConnector(input, options) {
514
- return this.SendRequest({
515
- input,
516
- method: 'post',
517
- path: '/connectors/create',
518
- options
519
- });
520
- }
521
- async CheckConnection(input, options) {
522
- return this.SendRequest({
523
- input,
524
- method: 'post',
525
- path: '/connectors/check_connection',
526
- options
527
- });
528
- }
529
- async GetConnector(input, options) {
530
- return this.SendRequest({
531
- input,
532
- method: 'get',
533
- path: '/connectors/{connector_id}/get',
534
- options
535
- });
536
- }
537
- async UpdateConnector(input, options) {
538
- return this.SendRequest({
539
- input,
540
- method: 'post',
541
- path: '/connectors/{connector_id}/update',
542
- options
543
- });
544
- }
545
- async TriggerConnector(input, options) {
546
- return this.SendRequest({
547
- input,
548
- method: 'post',
549
- path: '/connectors/{connector_id}/trigger',
550
- options
551
- });
552
- }
553
- async DeleteConnector(input, options) {
554
- return this.SendRequest({
555
- input,
556
- method: 'post',
557
- path: '/connectors/{connector_id}/delete',
558
- options
559
- });
560
- }
561
- async ListConnectors(input, options) {
562
- return this.SendRequest({
563
- input,
564
- method: 'get',
565
- path: '/connectors/list',
566
- options
567
- });
568
- }
569
- async ListConnectorTypes(input, options) {
570
- return this.SendRequest({
571
- input,
572
- method: 'get',
573
- path: '/connectors/types/list',
574
- options
575
- });
576
- }
577
- async GetConnectorType(input, options) {
578
- return this.SendRequest({
579
- input,
580
- method: 'get',
581
- path: '/connectors/types/{connector_id}/get',
582
- options
583
- });
584
- }
585
- async ListConnectorJobs(input, options) {
586
- return this.SendRequest({
587
- input,
588
- method: 'get',
589
- path: '/connectors/{connector_id}/jobs/list',
590
- options
591
- });
592
- }
593
- async GetConnectorJob(input, options) {
594
- return this.SendRequest({
595
- input,
596
- method: 'get',
597
- path: '/connectors/{connector_id}/jobs/{job_id}/get',
598
- options
599
- });
600
- }
601
- async TriggerWorkflow(input, options) {
602
- return this.SendRequest({
603
- input,
604
- method: 'post',
605
- path: '/workflows/trigger',
606
- options
607
- });
608
- }
609
- async ListWorkflows(input, options) {
610
- return this.SendRequest({
611
- input,
612
- method: 'get',
613
- path: '/workflows/list',
614
- options
615
- });
616
- }
617
- async GetWorkflowStatus(input, options) {
618
- return this.SendRequest({
619
- input,
620
- method: 'post',
621
- path: '/workflows/{workflow_id}/get',
622
- options
623
- });
624
- }
625
- async DeleteWorkflowStatus(input, options) {
626
- return this.SendRequest({
627
- input,
628
- method: 'post',
629
- path: '/workflows/{workflow_id}/delete',
630
- options
631
- });
632
- }
633
- async TerminateWorkflow(input, options) {
634
- return this.SendRequest({
635
- input,
636
- method: 'post',
637
- path: '/workflows/{workflow_id}/terminate',
638
- options
639
- });
640
- }
641
- async UpsertWorkflowMetadata(input, options) {
642
- return this.SendRequest({
643
- input,
644
- method: 'post',
645
- path: '/workflows/{workflow_id}/metadata',
646
- options
647
- });
648
- }
649
- async UpsertWorkflowProgress(input, options) {
650
- return this.SendRequest({
651
- input,
652
- method: 'post',
653
- path: '/workflows/{workflow_id}/progress',
654
- options
655
- });
656
- }
657
- async UpsertWorkflowStatus(input, options) {
658
- return this.SendRequest({
659
- input,
660
- method: 'post',
661
- path: '/workflows/{workflow_id}/status',
662
- options
663
- });
664
- }
665
- async ListWorkflowTypes(input, options) {
666
- return this.SendRequest({
667
- input,
668
- method: 'get',
669
- path: '/workflows/types/list',
670
- options
671
- });
672
- }
673
- async GetWorkflowType(input, options) {
674
- return this.SendRequest({
675
- input,
676
- method: 'get',
677
- path: '/workflows/types/{workflow_id}/get',
678
- options
679
- });
680
- }
681
- async ValidateWorkflowParams(input, options) {
682
- return this.SendRequest({
683
- input,
684
- method: 'post',
685
- path: '/workflows/types/{workflow_id}/validate',
686
- options
687
- });
688
- }
689
- async Insert(input, options) {
690
- return this.SendRequest({
691
- input,
692
- method: 'post',
693
- path: '/datasets/{dataset_id}/documents/insert',
694
- options
695
- });
696
- }
697
- async BulkInsert(input, options) {
698
- return this.SendRequest({
699
- input,
700
- method: 'post',
701
- path: '/datasets/{dataset_id}/documents/bulk_insert',
702
- options
703
- });
704
- }
705
- async GetFileUploadUrlsForDataset(input, options) {
706
- return this.SendRequest({
707
- input,
708
- method: 'post',
709
- path: '/datasets/{dataset_id}/get_file_upload_urls',
710
- options
711
- });
712
- }
713
- async ListFileUploadsForDataset(input, options) {
714
- return this.SendRequest({
715
- input,
716
- method: 'get',
717
- path: '/datasets/{dataset_id}/list_file_uploads',
718
- options
719
- });
720
- }
721
- async ParseBlob(input, options) {
722
- return this.SendRequest({
723
- input,
724
- method: 'post',
725
- path: '/datasets/{dataset_id}/parse_blob',
726
- options
727
- });
728
- }
729
- async CopyForeignDataset(input, options) {
730
- return this.SendRequest({
731
- input,
732
- method: 'post',
733
- path: '/admin/copy_foreign_dataset',
734
- options
735
- });
736
- }
737
- async CreateProjectReadKey(input, options) {
738
- return this.SendRequest({
739
- input,
740
- method: 'post',
741
- path: '/admin/request_read_api_key',
742
- options
743
- });
744
- }
745
- async DeleteDataset(input, options) {
746
- return this.SendRequest({
747
- input,
748
- method: 'post',
749
- path: '/datasets/{dataset_id}/delete',
750
- options
751
- });
752
- }
753
- async CreateDataset(input, options) {
754
- return this.SendRequest({
755
- input,
756
- method: 'post',
757
- path: '/datasets/create',
758
- options
759
- });
760
- }
761
- async GetSchema(input, options) {
762
- return this.SendRequest({
763
- input,
764
- method: 'get',
765
- path: '/datasets/{dataset_id}/schema',
766
- options
767
- });
768
- }
769
- async ListDatasets(input, options) {
770
- return this.SendRequest({
771
- input,
772
- method: 'get',
773
- path: '/datasets/list',
774
- options
775
- });
776
- }
777
- async CombineDatasets(input, options) {
778
- return this.SendRequest({
779
- input,
780
- method: 'post',
781
- path: '/datasets/combine',
782
- options
783
- });
784
- }
785
- async GetCombineJobStatus(input, options) {
786
- return this.SendRequest({
787
- input,
788
- method: 'post',
789
- path: '/datasets/combine/{job_id}/get',
790
- options
791
- });
792
- }
793
- async SearchDatasets(input, options) {
794
- return this.SendRequest({
795
- input,
796
- method: 'get',
797
- path: '/datasets/search',
798
- options
799
- });
800
- }
801
- async GetFieldHealth(input, options) {
802
- return this.SendRequest({
803
- input,
804
- method: 'get',
805
- path: '/datasets/{dataset_id}/monitor/health',
806
- options
807
- });
808
- }
809
- async GetDatasetStats(input, options) {
810
- return this.SendRequest({
811
- input,
812
- method: 'get',
813
- path: '/datasets/{dataset_id}/monitor/stats',
814
- options
815
- });
816
- }
817
- async GetDatasetUsage(input, options) {
818
- return this.SendRequest({
819
- input,
820
- method: 'post',
821
- path: '/datasets/{dataset_id}/monitor/usage',
822
- options
823
- });
824
- }
825
- async GetVectorMappings(input, options) {
826
- return this.SendRequest({
827
- input,
828
- method: 'get',
829
- path: '/datasets/{dataset_id}/vector_mappings',
830
- options
831
- });
832
- }
833
- async GetDatasetDetails(input, options) {
834
- return this.SendRequest({
835
- input,
836
- method: 'post',
837
- path: '/datasets/{dataset_id}/details',
838
- options
839
- });
840
- }
841
- async GetDocument(input, options) {
842
- return this.SendRequest({
843
- input,
844
- method: 'get',
845
- path: '/datasets/{dataset_id}/documents/get',
846
- options
847
- });
848
- }
849
- async DeleteDocument(input, options) {
850
- return this.SendRequest({
851
- input,
852
- method: 'post',
853
- path: '/datasets/{dataset_id}/documents/delete',
854
- options
855
- });
856
- }
857
- async UpsertDatasetSettings(input, options) {
858
- return this.SendRequest({
859
- input,
860
- method: 'post',
861
- path: '/datasets/{dataset_id}/settings',
862
- options
863
- });
864
- }
865
- async GetDatasetSettings(input, options) {
866
- return this.SendRequest({
867
- input,
868
- method: 'get',
869
- path: '/datasets/{dataset_id}/settings',
870
- options
871
- });
872
- }
873
- async UpsertDatasetMetadata(input, options) {
874
- return this.SendRequest({
875
- input,
876
- method: 'post',
877
- path: '/datasets/{dataset_id}/metadata',
878
- options
879
- });
880
- }
881
- async GetDatasetMetadata(input, options) {
882
- return this.SendRequest({
883
- input,
884
- method: 'get',
885
- path: '/datasets/{dataset_id}/metadata',
886
- options
887
- });
888
- }
889
- async Update(input, options) {
890
- return this.SendRequest({
891
- input,
892
- method: 'post',
893
- path: '/datasets/{dataset_id}/documents/update',
894
- options
895
- });
896
- }
897
- async DeleteDocumentFields(input, options) {
898
- return this.SendRequest({
899
- input,
900
- method: 'post',
901
- path: '/datasets/{dataset_id}/documents/delete_fields',
902
- options
903
- });
904
- }
905
- async BulkUpdate(input, options) {
906
- return this.SendRequest({
907
- input,
908
- method: 'post',
909
- path: '/datasets/{dataset_id}/documents/bulk_update',
910
- options
911
- });
912
- }
913
- async UpdateWhere(input, options) {
914
- return this.SendRequest({
915
- input,
916
- method: 'post',
917
- path: '/datasets/{dataset_id}/documents/update_where',
918
- options
919
- });
920
- }
921
- async AppendTags(input, options) {
922
- return this.SendRequest({
923
- input,
924
- method: 'post',
925
- path: '/datasets/{dataset_id}/tags/append',
926
- options
927
- });
928
- }
929
- async DeleteTags(input, options) {
930
- return this.SendRequest({
931
- input,
932
- method: 'post',
933
- path: '/datasets/{dataset_id}/tags/delete',
934
- options
935
- });
936
- }
937
- async MergeTags(input, options) {
938
- return this.SendRequest({
939
- input,
940
- method: 'post',
941
- path: '/datasets/{dataset_id}/tags/merge',
942
- options
943
- });
944
- }
945
- async EditTags(input, options) {
946
- return this.SendRequest({
947
- input,
948
- method: 'post',
949
- path: '/datasets/{dataset_id}/tags/edit',
950
- options
951
- });
952
- }
953
- async ListFacets(input, options) {
954
- return this.SendRequest({
955
- input,
956
- method: 'post',
957
- path: '/datasets/{dataset_id}/facets',
958
- options
959
- });
960
- }
961
- async GetWhere(input, options) {
962
- return this.SendRequest({
963
- input,
964
- method: 'post',
965
- path: '/datasets/{dataset_id}/documents/get_where',
966
- options
967
- });
968
- }
969
- async PaginateDocuments(input, options) {
970
- return this.SendRequest({
971
- input,
972
- method: 'post',
973
- path: '/datasets/{dataset_id}/documents/paginate',
974
- options
975
- });
976
- }
977
- async CreateDatasetSummary(input, options) {
978
- return this.SendRequest({
979
- input,
980
- method: 'post',
981
- path: '/datasets/{dataset_id}/summaries/create',
982
- options
983
- });
984
- }
985
- async ListDatasetSummaryHistory(input, options) {
986
- return this.SendRequest({
987
- input,
988
- method: 'get',
989
- path: '/datasets/{dataset_id}/summaries/history/list',
990
- options
991
- });
992
- }
993
- async BulkGetDocuments(input, options) {
994
- return this.SendRequest({
995
- input,
996
- method: 'post',
997
- path: '/datasets/{dataset_id}/documents/bulk_get',
998
- options
999
- });
1000
- }
1001
- async BulkDeleteDocuments(input, options) {
1002
- return this.SendRequest({
1003
- input,
1004
- method: 'post',
1005
- path: '/datasets/{dataset_id}/documents/bulk_delete',
1006
- options
1007
- });
1008
- }
1009
- async ListDocuments(input, options) {
1010
- return this.SendRequest({
1011
- input,
1012
- method: 'get',
1013
- path: '/datasets/{dataset_id}/documents/list',
1014
- options
1015
- });
1016
- }
1017
- async DeleteWhere(input, options) {
1018
- return this.SendRequest({
1019
- input,
1020
- method: 'post',
1021
- path: '/datasets/{dataset_id}/documents/delete_where',
1022
- options
1023
- });
1024
- }
1025
- async SimpleSearchPost(input, options) {
1026
- return this.SendRequest({
1027
- input,
1028
- method: 'post',
1029
- path: '/datasets/{dataset_id}/simple_search',
1030
- options
1031
- });
1032
- }
1033
- async Search(input, options) {
1034
- return this.SendRequest({
1035
- input,
1036
- method: 'post',
1037
- path: '/datasets/{dataset_id}/search',
1038
- options
1039
- });
1040
- }
1041
- async Recommend(input, options) {
1042
- return this.SendRequest({
1043
- input,
1044
- method: 'post',
1045
- path: '/datasets/{dataset_id}/recommend',
1046
- options
1047
- });
1048
- }
1049
- async CloneDataset(input, options) {
1050
- return this.SendRequest({
1051
- input,
1052
- method: 'post',
1053
- path: '/datasets/{dataset_id}/clone',
1054
- options
1055
- });
1056
- }
1057
- async PredictKNNRegression(input, options) {
1058
- return this.SendRequest({
1059
- input,
1060
- method: 'post',
1061
- path: '/services/prediction/regression/knn',
1062
- options
1063
- });
1064
- }
1065
- async PredictKNNFromResults(input, options) {
1066
- return this.SendRequest({
1067
- input,
1068
- method: 'post',
1069
- path: '/services/prediction/knn_from_results',
1070
- options
1071
- });
1072
- }
1073
- async BiasEvaluation(input, options) {
1074
- return this.SendRequest({
1075
- input,
1076
- method: 'post',
1077
- path: '/services/evaluation/bias',
1078
- options
1079
- });
1080
- }
1081
- async Vectorize(input, options) {
1082
- return this.SendRequest({
1083
- input,
1084
- method: 'post',
1085
- path: '/services/vectorize',
1086
- options
1087
- });
1088
- }
1089
- async VectorizeAndInsert(input, options) {
1090
- return this.SendRequest({
1091
- input,
1092
- method: 'post',
1093
- path: '/services/vectorize/{dataset_id}/vectorize_and_insert',
1094
- options
1095
- });
1096
- }
1097
- async VectorizeField(input, options) {
1098
- return this.SendRequest({
1099
- input,
1100
- method: 'post',
1101
- path: '/services/vectorize/{dataset_id}',
1102
- options
1103
- });
1104
- }
1105
- async CreateImageFromPrompt(input, options) {
1106
- return this.SendRequest({
1107
- input,
1108
- method: 'post',
1109
- path: '/services/prompt_to_image/create',
1110
- options
1111
- });
1112
- }
1113
- async DeleteFieldChildren(input, options) {
1114
- return this.SendRequest({
1115
- input,
1116
- method: 'post',
1117
- path: '/datasets/{dataset_id}/field_children/{fieldchildren_id}/delete',
1118
- options
1119
- });
1120
- }
1121
- async ListFieldChildrens(input, options) {
1122
- return this.SendRequest({
1123
- input,
1124
- method: 'post',
1125
- path: '/datasets/{dataset_id}/field_children/list',
1126
- options
1127
- });
1128
- }
1129
- async UpdateFieldChildren(input, options) {
1130
- return this.SendRequest({
1131
- input,
1132
- method: 'post',
1133
- path: '/datasets/{dataset_id}/field_children/{fieldchildren_id}/update',
1134
- options
1135
- });
1136
- }
1137
- async DeleteFavouriteWorkflow(input, options) {
1138
- return this.SendRequest({
1139
- input,
1140
- method: 'post',
1141
- path: '/workflows/favourites/{favouriteworkflow_id}/delete',
1142
- options
1143
- });
1144
- }
1145
- async ListFavouriteWorkflows(input, options) {
1146
- return this.SendRequest({
1147
- input,
1148
- method: 'post',
1149
- path: '/workflows/favourites/list',
1150
- options
1151
- });
1152
- }
1153
- async UpdateFavouriteWorkflow(input, options) {
1154
- return this.SendRequest({
1155
- input,
1156
- method: 'post',
1157
- path: '/workflows/favourites/{favouriteworkflow_id}/update',
1158
- options
1159
- });
1160
- }
1161
- async DeleteSavedFilter(input, options) {
1162
- return this.SendRequest({
1163
- input,
1164
- method: 'post',
1165
- path: '/savedfilters/{savedfilter_id}/delete',
1166
- options
1167
- });
1168
- }
1169
- async ListSavedFilters(input, options) {
1170
- return this.SendRequest({
1171
- input,
1172
- method: 'post',
1173
- path: '/savedfilters/list',
1174
- options
1175
- });
1176
- }
1177
- async UpdateSavedFilter(input, options) {
1178
- return this.SendRequest({
1179
- input,
1180
- method: 'post',
1181
- path: '/savedfilters/{savedfilter_id}/update',
1182
- options
1183
- });
1184
- }
1185
- async GetSavedFilter(input, options) {
1186
- return this.SendRequest({
1187
- input,
1188
- method: 'get',
1189
- path: '/savedfilters/{savedfilter_id}/get',
1190
- options
1191
- });
1192
- }
1193
- async CreateSavedFilter(input, options) {
1194
- return this.SendRequest({
1195
- input,
1196
- method: 'post',
1197
- path: '/savedfilters/create',
1198
- options
1199
- });
1200
- }
1201
- async DeleteComponent(input, options) {
1202
- return this.SendRequest({
1203
- input,
1204
- method: 'post',
1205
- path: '/components/{component_id}/delete',
1206
- options
1207
- });
1208
- }
1209
- async ListComponents(input, options) {
1210
- return this.SendRequest({
1211
- input,
1212
- method: 'post',
1213
- path: '/components/list',
1214
- options
1215
- });
1216
- }
1217
- async UpdateComponent(input, options) {
1218
- return this.SendRequest({
1219
- input,
1220
- method: 'post',
1221
- path: '/components/{component_id}/update',
1222
- options
1223
- });
1224
- }
1225
- async GetComponent(input, options) {
1226
- return this.SendRequest({
1227
- input,
1228
- method: 'get',
1229
- path: '/components/{component_id}/get',
1230
- options
1231
- });
1232
- }
1233
- async CreateComponent(input, options) {
1234
- return this.SendRequest({
1235
- input,
1236
- method: 'post',
1237
- path: '/components/create',
1238
- options
1239
- });
1240
- }
1241
- async ListDatasetEditorHistorys(input, options) {
1242
- return this.SendRequest({
1243
- input,
1244
- method: 'post',
1245
- path: '/datasets/{dataset_id}/editor/history/list',
1246
- options
1247
- });
1248
- }
1249
- async CreateDatasetEditorHistory(input, options) {
1250
- return this.SendRequest({
1251
- input,
1252
- method: 'post',
1253
- path: '/datasets/{dataset_id}/editor/history/create',
1254
- options
1255
- });
1256
- }
1257
- async ListDatasetEditorConfigurations(input, options) {
1258
- return this.SendRequest({
1259
- input,
1260
- method: 'post',
1261
- path: '/datasets/{dataset_id}/editor/configuration/list',
1262
- options
1263
- });
1264
- }
1265
- async CreateDatasetEditorConfiguration(input, options) {
1266
- return this.SendRequest({
1267
- input,
1268
- method: 'post',
1269
- path: '/datasets/{dataset_id}/editor/configuration/create',
1270
- options
1271
- });
1272
- }
1273
- async UpdateDatasetEditorConfiguration(input, options) {
1274
- return this.SendRequest({
1275
- input,
1276
- method: 'post',
1277
- path: '/datasets/{dataset_id}/editor/configuration/{dataseteditorconfiguration_id}/update',
1278
- options
1279
- });
1280
- }
1281
- async DeleteDatasetEditorConfiguration(input, options) {
1282
- return this.SendRequest({
1283
- input,
1284
- method: 'post',
1285
- path: '/datasets/{dataset_id}/editor/configuration/{dataseteditorconfiguration_id}/delete',
1286
- options
1287
- });
1288
- }
1289
- async GetDatasetEditorConfiguration(input, options) {
1290
- return this.SendRequest({
1291
- input,
1292
- method: 'get',
1293
- path: '/datasets/{dataset_id}/editor/configuration/{dataseteditorconfiguration_id}/get',
1294
- options
1295
- });
1296
- }
1297
- async ListKeyphrases(input, options) {
1298
- return this.SendRequest({
1299
- input,
1300
- method: 'post',
1301
- path: '/datasets/{dataset_id}/fields/{field}/keyphrase/list',
1302
- options
1303
- });
1304
- }
1305
- async UpdateKeyphrase(input, options) {
1306
- return this.SendRequest({
1307
- input,
1308
- method: 'post',
1309
- path: '/datasets/{dataset_id}/fields/{field}/keyphrase/{keyphrase_id}/update',
1310
- options
1311
- });
1312
- }
1313
- async DeleteKeyphrase(input, options) {
1314
- return this.SendRequest({
1315
- input,
1316
- method: 'post',
1317
- path: '/datasets/{dataset_id}/fields/{field}/keyphrase/{keyphrase_id}/delete',
1318
- options
1319
- });
1320
- }
1321
- async GetKeyphrase(input, options) {
1322
- return this.SendRequest({
1323
- input,
1324
- method: 'get',
1325
- path: '/datasets/{dataset_id}/fields/{field}/keyphrase/{keyphrase_id}/get',
1326
- options
1327
- });
1328
- }
1329
- async BulkUpdateKeyphrases(input, options) {
1330
- return this.SendRequest({
1331
- input,
1332
- method: 'post',
1333
- path: '/datasets/{dataset_id}/fields/{field}/keyphrase/bulk_update',
1334
- options
1335
- });
1336
- }
1337
- async ListTaxonomys(input, options) {
1338
- return this.SendRequest({
1339
- input,
1340
- method: 'post',
1341
- path: '/taxonomys/list',
1342
- options
1343
- });
1344
- }
1345
- async UpdateTaxonomy(input, options) {
1346
- return this.SendRequest({
1347
- input,
1348
- method: 'post',
1349
- path: '/taxonomys/{taxonomy_id}/update',
1350
- options
1351
- });
1352
- }
1353
- async DeleteTaxonomy(input, options) {
1354
- return this.SendRequest({
1355
- input,
1356
- method: 'post',
1357
- path: '/taxonomys/{taxonomy_id}/delete',
1358
- options
1359
- });
1360
- }
1361
- async GetTaxonomy(input, options) {
1362
- return this.SendRequest({
1363
- input,
1364
- method: 'get',
1365
- path: '/taxonomys/{taxonomy_id}/get',
1366
- options
1367
- });
1368
- }
1369
- async CreateTaxonomy(input, options) {
1370
- return this.SendRequest({
1371
- input,
1372
- method: 'post',
1373
- path: '/taxonomys/create',
1374
- options
1375
- });
1376
- }
1377
- }
1378
- exports.DiscoveryApiClient = DiscoveryApiClient;