edge-impulse-api 1.93.25 → 1.93.27
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/build/browser/edge-impulse-api.d.ts +2385 -12
- package/build/browser/edge-impulse-api.js +7228 -803
- package/build/browser/edge-impulse-api.js.map +1 -1
- package/build/library/sdk/api/adminApi.d.ts +297 -0
- package/build/library/sdk/api/adminApi.js +891 -99
- package/build/library/sdk/api/adminApi.js.map +1 -1
- package/build/library/sdk/api/authApi.d.ts +3 -0
- package/build/library/sdk/api/authApi.js +9 -1
- package/build/library/sdk/api/authApi.js.map +1 -1
- package/build/library/sdk/api/cDNApi.d.ts +3 -0
- package/build/library/sdk/api/cDNApi.js +9 -1
- package/build/library/sdk/api/cDNApi.js.map +1 -1
- package/build/library/sdk/api/canaryApi.d.ts +3 -0
- package/build/library/sdk/api/canaryApi.js +9 -1
- package/build/library/sdk/api/canaryApi.js.map +1 -1
- package/build/library/sdk/api/classifyApi.d.ts +30 -0
- package/build/library/sdk/api/classifyApi.js +90 -10
- package/build/library/sdk/api/classifyApi.js.map +1 -1
- package/build/library/sdk/api/dSPApi.d.ts +57 -0
- package/build/library/sdk/api/dSPApi.js +171 -19
- package/build/library/sdk/api/dSPApi.js.map +1 -1
- package/build/library/sdk/api/datasetVersionsApi.d.ts +18 -0
- package/build/library/sdk/api/datasetVersionsApi.js +54 -6
- package/build/library/sdk/api/datasetVersionsApi.js.map +1 -1
- package/build/library/sdk/api/deploymentApi.d.ts +51 -0
- package/build/library/sdk/api/deploymentApi.js +153 -17
- package/build/library/sdk/api/deploymentApi.js.map +1 -1
- package/build/library/sdk/api/devicesApi.d.ts +48 -0
- package/build/library/sdk/api/devicesApi.js +144 -16
- package/build/library/sdk/api/devicesApi.js.map +1 -1
- package/build/library/sdk/api/emailVerificationApi.d.ts +12 -0
- package/build/library/sdk/api/emailVerificationApi.js +36 -4
- package/build/library/sdk/api/emailVerificationApi.js.map +1 -1
- package/build/library/sdk/api/exportApi.d.ts +6 -0
- package/build/library/sdk/api/exportApi.js +18 -2
- package/build/library/sdk/api/exportApi.js.map +1 -1
- package/build/library/sdk/api/featureFlagsApi.d.ts +3 -0
- package/build/library/sdk/api/featureFlagsApi.js +9 -1
- package/build/library/sdk/api/featureFlagsApi.js.map +1 -1
- package/build/library/sdk/api/healthApi.d.ts +6 -0
- package/build/library/sdk/api/healthApi.js +18 -2
- package/build/library/sdk/api/healthApi.js.map +1 -1
- package/build/library/sdk/api/impulseApi.d.ts +54 -0
- package/build/library/sdk/api/impulseApi.js +162 -18
- package/build/library/sdk/api/impulseApi.js.map +1 -1
- package/build/library/sdk/api/integrationsApi.d.ts +6 -0
- package/build/library/sdk/api/integrationsApi.js +18 -2
- package/build/library/sdk/api/integrationsApi.js.map +1 -1
- package/build/library/sdk/api/jobsApi.d.ts +135 -0
- package/build/library/sdk/api/jobsApi.js +409 -45
- package/build/library/sdk/api/jobsApi.js.map +1 -1
- package/build/library/sdk/api/learnApi.d.ts +87 -0
- package/build/library/sdk/api/learnApi.js +261 -29
- package/build/library/sdk/api/learnApi.js.map +1 -1
- package/build/library/sdk/api/loginApi.d.ts +6 -0
- package/build/library/sdk/api/loginApi.js +18 -2
- package/build/library/sdk/api/loginApi.js.map +1 -1
- package/build/library/sdk/api/metricsApi.d.ts +9 -0
- package/build/library/sdk/api/metricsApi.js +27 -3
- package/build/library/sdk/api/metricsApi.js.map +1 -1
- package/build/library/sdk/api/monitoringApi.d.ts +39 -0
- package/build/library/sdk/api/monitoringApi.js +117 -13
- package/build/library/sdk/api/monitoringApi.js.map +1 -1
- package/build/library/sdk/api/optimizationApi.d.ts +51 -0
- package/build/library/sdk/api/optimizationApi.js +153 -17
- package/build/library/sdk/api/optimizationApi.js.map +1 -1
- package/build/library/sdk/api/organizationBlocksApi.d.ts +105 -0
- package/build/library/sdk/api/organizationBlocksApi.js +315 -35
- package/build/library/sdk/api/organizationBlocksApi.js.map +1 -1
- package/build/library/sdk/api/organizationCreateProjectApi.d.ts +45 -0
- package/build/library/sdk/api/organizationCreateProjectApi.js +135 -15
- package/build/library/sdk/api/organizationCreateProjectApi.js.map +1 -1
- package/build/library/sdk/api/organizationDataApi.d.ts +120 -0
- package/build/library/sdk/api/organizationDataApi.js +360 -40
- package/build/library/sdk/api/organizationDataApi.js.map +1 -1
- package/build/library/sdk/api/organizationDataCampaignsApi.d.ts +36 -0
- package/build/library/sdk/api/organizationDataCampaignsApi.js +108 -12
- package/build/library/sdk/api/organizationDataCampaignsApi.js.map +1 -1
- package/build/library/sdk/api/organizationJobsApi.d.ts +24 -0
- package/build/library/sdk/api/organizationJobsApi.js +72 -8
- package/build/library/sdk/api/organizationJobsApi.js.map +1 -1
- package/build/library/sdk/api/organizationPipelinesApi.d.ts +24 -0
- package/build/library/sdk/api/organizationPipelinesApi.js +72 -8
- package/build/library/sdk/api/organizationPipelinesApi.js.map +1 -1
- package/build/library/sdk/api/organizationPortalsApi.d.ts +21 -0
- package/build/library/sdk/api/organizationPortalsApi.js +63 -7
- package/build/library/sdk/api/organizationPortalsApi.js.map +1 -1
- package/build/library/sdk/api/organizationsApi.d.ts +242 -2
- package/build/library/sdk/api/organizationsApi.js +722 -82
- package/build/library/sdk/api/organizationsApi.js.map +1 -1
- package/build/library/sdk/api/performanceCalibrationApi.d.ts +33 -0
- package/build/library/sdk/api/performanceCalibrationApi.js +99 -11
- package/build/library/sdk/api/performanceCalibrationApi.js.map +1 -1
- package/build/library/sdk/api/postProcessingApi.d.ts +15 -0
- package/build/library/sdk/api/postProcessingApi.js +45 -5
- package/build/library/sdk/api/postProcessingApi.js.map +1 -1
- package/build/library/sdk/api/projectsApi.d.ts +282 -1
- package/build/library/sdk/api/projectsApi.js +991 -66
- package/build/library/sdk/api/projectsApi.js.map +1 -1
- package/build/library/sdk/api/rawDataApi.d.ts +207 -0
- package/build/library/sdk/api/rawDataApi.js +621 -69
- package/build/library/sdk/api/rawDataApi.js.map +1 -1
- package/build/library/sdk/api/testApi.d.ts +12 -0
- package/build/library/sdk/api/testApi.js +36 -4
- package/build/library/sdk/api/testApi.js.map +1 -1
- package/build/library/sdk/api/themesApi.d.ts +18 -0
- package/build/library/sdk/api/themesApi.js +54 -6
- package/build/library/sdk/api/themesApi.js.map +1 -1
- package/build/library/sdk/api/thirdPartyAuthApi.d.ts +21 -0
- package/build/library/sdk/api/thirdPartyAuthApi.js +63 -7
- package/build/library/sdk/api/thirdPartyAuthApi.js.map +1 -1
- package/build/library/sdk/api/uploadPortalApi.d.ts +21 -0
- package/build/library/sdk/api/uploadPortalApi.js +63 -7
- package/build/library/sdk/api/uploadPortalApi.js.map +1 -1
- package/build/library/sdk/api/userApi.d.ts +147 -0
- package/build/library/sdk/api/userApi.js +441 -49
- package/build/library/sdk/api/userApi.js.map +1 -1
- package/build/library/sdk/api/vlmApi.d.ts +15 -0
- package/build/library/sdk/api/vlmApi.js +45 -5
- package/build/library/sdk/api/vlmApi.js.map +1 -1
- package/build/library/sdk/api/whitelabelsApi.d.ts +24 -0
- package/build/library/sdk/api/whitelabelsApi.js +72 -8
- package/build/library/sdk/api/whitelabelsApi.js.map +1 -1
- package/build/library/sdk/model/getExtensionSharedStateListResponse.d.ts +14 -0
- package/build/library/sdk/model/getExtensionSharedStateListResponse.js +4 -0
- package/build/library/sdk/model/getExtensionSharedStateListResponse.js.map +1 -0
- package/build/library/sdk/model/models.d.ts +3 -0
- package/build/library/sdk/model/models.js +3 -0
- package/build/library/sdk/model/models.js.map +1 -1
- package/build/library/sdk/model/oAuthScope.d.ts +1 -1
- package/build/library/sdk/model/oAuthScope.js +1 -1
- package/build/library/sdk/model/oAuthScope.js.map +1 -1
- package/build/library/sdk/model/setExtensionSharedStateRequest.d.ts +13 -0
- package/build/library/sdk/model/setExtensionSharedStateRequest.js +4 -0
- package/build/library/sdk/model/setExtensionSharedStateRequest.js.map +1 -0
- package/build/library/sdk/model/setExtensionSharedStateResponse.d.ts +11 -0
- package/build/library/sdk/model/setExtensionSharedStateResponse.js +4 -0
- package/build/library/sdk/model/setExtensionSharedStateResponse.js.map +1 -0
- package/package.json +1 -1
|
@@ -248,7 +248,15 @@ class RawDataApi {
|
|
|
248
248
|
url = authDefault.url;
|
|
249
249
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
250
250
|
const response = await fetch(url, requestOptions);
|
|
251
|
-
|
|
251
|
+
const resp = this.handleResponse(response, 'GenericApiResponse | StartJobResponse');
|
|
252
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
253
|
+
const headerCb = options.responseHeadersCallback;
|
|
254
|
+
// on next tick, so we have time to handle the response
|
|
255
|
+
setTimeout(() => {
|
|
256
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
257
|
+
}, 0);
|
|
258
|
+
}
|
|
259
|
+
return resp;
|
|
252
260
|
}
|
|
253
261
|
/**
|
|
254
262
|
* Batch operation to put multiple samples back into the object detection labeling queue. Depending on the number of affected samples this will either execute immediately or return the ID of a job that will perform this action in batches.
|
|
@@ -400,7 +408,15 @@ class RawDataApi {
|
|
|
400
408
|
url = authDefault.url;
|
|
401
409
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
402
410
|
const response = await fetch(url, requestOptions);
|
|
403
|
-
|
|
411
|
+
const resp = this.handleResponse(response, 'GenericApiResponse | StartJobResponse');
|
|
412
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
413
|
+
const headerCb = options.responseHeadersCallback;
|
|
414
|
+
// on next tick, so we have time to handle the response
|
|
415
|
+
setTimeout(() => {
|
|
416
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
417
|
+
}, 0);
|
|
418
|
+
}
|
|
419
|
+
return resp;
|
|
404
420
|
}
|
|
405
421
|
/**
|
|
406
422
|
* Clears all metadata for multiple samples.
|
|
@@ -546,7 +562,15 @@ class RawDataApi {
|
|
|
546
562
|
url = authDefault.url;
|
|
547
563
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
548
564
|
const response = await fetch(url, requestOptions);
|
|
549
|
-
|
|
565
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
566
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
567
|
+
const headerCb = options.responseHeadersCallback;
|
|
568
|
+
// on next tick, so we have time to handle the response
|
|
569
|
+
setTimeout(() => {
|
|
570
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
571
|
+
}, 0);
|
|
572
|
+
}
|
|
573
|
+
return resp;
|
|
550
574
|
}
|
|
551
575
|
/**
|
|
552
576
|
* Clears a specific metadata field (by key) for multiple samples.
|
|
@@ -698,7 +722,15 @@ class RawDataApi {
|
|
|
698
722
|
url = authDefault.url;
|
|
699
723
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
700
724
|
const response = await fetch(url, requestOptions);
|
|
701
|
-
|
|
725
|
+
const resp = this.handleResponse(response, 'GenericApiResponse | StartJobResponse');
|
|
726
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
727
|
+
const headerCb = options.responseHeadersCallback;
|
|
728
|
+
// on next tick, so we have time to handle the response
|
|
729
|
+
setTimeout(() => {
|
|
730
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
731
|
+
}, 0);
|
|
732
|
+
}
|
|
733
|
+
return resp;
|
|
702
734
|
}
|
|
703
735
|
/**
|
|
704
736
|
* Deletes samples. Note that this does not delete the data from cold storage. Depending on the number of affected samples this will either execute immediately or return the ID of a job that will perform this action in batches.
|
|
@@ -844,7 +876,15 @@ class RawDataApi {
|
|
|
844
876
|
url = authDefault.url;
|
|
845
877
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
846
878
|
const response = await fetch(url, requestOptions);
|
|
847
|
-
|
|
879
|
+
const resp = this.handleResponse(response, 'GenericApiResponse | StartJobResponse');
|
|
880
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
881
|
+
const headerCb = options.responseHeadersCallback;
|
|
882
|
+
// on next tick, so we have time to handle the response
|
|
883
|
+
setTimeout(() => {
|
|
884
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
885
|
+
}, 0);
|
|
886
|
+
}
|
|
887
|
+
return resp;
|
|
848
888
|
}
|
|
849
889
|
/**
|
|
850
890
|
* Disables samples, ensuring that they are excluded from the dataset. Depending on the number of affected samples this will either execute immediately or return the ID of a job that will perform this action in batches.
|
|
@@ -990,7 +1030,15 @@ class RawDataApi {
|
|
|
990
1030
|
url = authDefault.url;
|
|
991
1031
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
992
1032
|
const response = await fetch(url, requestOptions);
|
|
993
|
-
|
|
1033
|
+
const resp = this.handleResponse(response, 'GenericApiResponse | StartJobResponse');
|
|
1034
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1035
|
+
const headerCb = options.responseHeadersCallback;
|
|
1036
|
+
// on next tick, so we have time to handle the response
|
|
1037
|
+
setTimeout(() => {
|
|
1038
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1039
|
+
}, 0);
|
|
1040
|
+
}
|
|
1041
|
+
return resp;
|
|
994
1042
|
}
|
|
995
1043
|
/**
|
|
996
1044
|
* Relabels (or removes) bounding boxes for multiple samples. Depending on the number of affected samples this will either execute immediately or return the ID of a job that will perform this action in batches.
|
|
@@ -1142,7 +1190,15 @@ class RawDataApi {
|
|
|
1142
1190
|
url = authDefault.url;
|
|
1143
1191
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1144
1192
|
const response = await fetch(url, requestOptions);
|
|
1145
|
-
|
|
1193
|
+
const resp = this.handleResponse(response, 'GenericApiResponse | StartJobResponse');
|
|
1194
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1195
|
+
const headerCb = options.responseHeadersCallback;
|
|
1196
|
+
// on next tick, so we have time to handle the response
|
|
1197
|
+
setTimeout(() => {
|
|
1198
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1199
|
+
}, 0);
|
|
1200
|
+
}
|
|
1201
|
+
return resp;
|
|
1146
1202
|
}
|
|
1147
1203
|
/**
|
|
1148
1204
|
* Sets the label (also known as class) of multiple samples. If you want to relabel bounding boxes, use \"batchEditBoundingBoxes\" instead. Depending on the number of affected samples this will either execute immediately or return the ID of a job that will perform this action in batches.
|
|
@@ -1294,7 +1350,15 @@ class RawDataApi {
|
|
|
1294
1350
|
url = authDefault.url;
|
|
1295
1351
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1296
1352
|
const response = await fetch(url, requestOptions);
|
|
1297
|
-
|
|
1353
|
+
const resp = this.handleResponse(response, 'GenericApiResponse | StartJobResponse');
|
|
1354
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1355
|
+
const headerCb = options.responseHeadersCallback;
|
|
1356
|
+
// on next tick, so we have time to handle the response
|
|
1357
|
+
setTimeout(() => {
|
|
1358
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1359
|
+
}, 0);
|
|
1360
|
+
}
|
|
1361
|
+
return resp;
|
|
1298
1362
|
}
|
|
1299
1363
|
/**
|
|
1300
1364
|
* Enables samples, ensuring that they are not excluded from the dataset. Depending on the number of affected samples this will either execute immediately or return the ID of a job that will perform this action in batches.
|
|
@@ -1440,7 +1504,15 @@ class RawDataApi {
|
|
|
1440
1504
|
url = authDefault.url;
|
|
1441
1505
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1442
1506
|
const response = await fetch(url, requestOptions);
|
|
1443
|
-
|
|
1507
|
+
const resp = this.handleResponse(response, 'GenericApiResponse | StartJobResponse');
|
|
1508
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1509
|
+
const headerCb = options.responseHeadersCallback;
|
|
1510
|
+
// on next tick, so we have time to handle the response
|
|
1511
|
+
setTimeout(() => {
|
|
1512
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1513
|
+
}, 0);
|
|
1514
|
+
}
|
|
1515
|
+
return resp;
|
|
1444
1516
|
}
|
|
1445
1517
|
/**
|
|
1446
1518
|
* Move multiple samples to another category (e.g. from test to training). Depending on the number of affected samples this will either execute immediately or return the ID of a job that will perform this action in batches.
|
|
@@ -1592,7 +1664,15 @@ class RawDataApi {
|
|
|
1592
1664
|
url = authDefault.url;
|
|
1593
1665
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1594
1666
|
const response = await fetch(url, requestOptions);
|
|
1595
|
-
|
|
1667
|
+
const resp = this.handleResponse(response, 'GenericApiResponse | StartJobResponse');
|
|
1668
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1669
|
+
const headerCb = options.responseHeadersCallback;
|
|
1670
|
+
// on next tick, so we have time to handle the response
|
|
1671
|
+
setTimeout(() => {
|
|
1672
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1673
|
+
}, 0);
|
|
1674
|
+
}
|
|
1675
|
+
return resp;
|
|
1596
1676
|
}
|
|
1597
1677
|
/**
|
|
1598
1678
|
* Classify an image using another neural network.
|
|
@@ -1666,7 +1746,15 @@ class RawDataApi {
|
|
|
1666
1746
|
url = authDefault.url;
|
|
1667
1747
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1668
1748
|
const response = await fetch(url, requestOptions);
|
|
1669
|
-
|
|
1749
|
+
const resp = this.handleResponse(response, 'ObjectDetectionAutoLabelResponse');
|
|
1750
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1751
|
+
const headerCb = options.responseHeadersCallback;
|
|
1752
|
+
// on next tick, so we have time to handle the response
|
|
1753
|
+
setTimeout(() => {
|
|
1754
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1755
|
+
}, 0);
|
|
1756
|
+
}
|
|
1757
|
+
return resp;
|
|
1670
1758
|
}
|
|
1671
1759
|
/**
|
|
1672
1760
|
* Clears all object detection labels for this dataset, and places all images back in the labeling queue.
|
|
@@ -1728,7 +1816,15 @@ class RawDataApi {
|
|
|
1728
1816
|
url = authDefault.url;
|
|
1729
1817
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1730
1818
|
const response = await fetch(url, requestOptions);
|
|
1731
|
-
|
|
1819
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
1820
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1821
|
+
const headerCb = options.responseHeadersCallback;
|
|
1822
|
+
// on next tick, so we have time to handle the response
|
|
1823
|
+
setTimeout(() => {
|
|
1824
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1825
|
+
}, 0);
|
|
1826
|
+
}
|
|
1827
|
+
return resp;
|
|
1732
1828
|
}
|
|
1733
1829
|
/**
|
|
1734
1830
|
* Remove the current data explorer state
|
|
@@ -1790,7 +1886,15 @@ class RawDataApi {
|
|
|
1790
1886
|
url = authDefault.url;
|
|
1791
1887
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1792
1888
|
const response = await fetch(url, requestOptions);
|
|
1793
|
-
|
|
1889
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
1890
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1891
|
+
const headerCb = options.responseHeadersCallback;
|
|
1892
|
+
// on next tick, so we have time to handle the response
|
|
1893
|
+
setTimeout(() => {
|
|
1894
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1895
|
+
}, 0);
|
|
1896
|
+
}
|
|
1897
|
+
return resp;
|
|
1794
1898
|
}
|
|
1795
1899
|
/**
|
|
1796
1900
|
* Count all raw data by category.
|
|
@@ -1928,7 +2032,15 @@ class RawDataApi {
|
|
|
1928
2032
|
url = authDefault.url;
|
|
1929
2033
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1930
2034
|
const response = await fetch(url, requestOptions);
|
|
1931
|
-
|
|
2035
|
+
const resp = this.handleResponse(response, 'CountSamplesResponse');
|
|
2036
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2037
|
+
const headerCb = options.responseHeadersCallback;
|
|
2038
|
+
// on next tick, so we have time to handle the response
|
|
2039
|
+
setTimeout(() => {
|
|
2040
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2041
|
+
}, 0);
|
|
2042
|
+
}
|
|
2043
|
+
return resp;
|
|
1932
2044
|
}
|
|
1933
2045
|
/**
|
|
1934
2046
|
* Crop a sample to within a new range. cropStart/cropEnd are relative to the selected datastream. If you have multiple datastreams and OptionalDatastreamIndexParameter is not passed in, the first datastream is used.
|
|
@@ -2006,7 +2118,15 @@ class RawDataApi {
|
|
|
2006
2118
|
url = authDefault.url;
|
|
2007
2119
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2008
2120
|
const response = await fetch(url, requestOptions);
|
|
2009
|
-
|
|
2121
|
+
const resp = this.handleResponse(response, 'CropSampleResponse');
|
|
2122
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2123
|
+
const headerCb = options.responseHeadersCallback;
|
|
2124
|
+
// on next tick, so we have time to handle the response
|
|
2125
|
+
setTimeout(() => {
|
|
2126
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2127
|
+
}, 0);
|
|
2128
|
+
}
|
|
2129
|
+
return resp;
|
|
2010
2130
|
}
|
|
2011
2131
|
/**
|
|
2012
2132
|
* Deletes all samples for this project over all categories. This also invalidates all DSP and learn blocks. Note that this does not delete the data from cold storage.
|
|
@@ -2068,7 +2188,15 @@ class RawDataApi {
|
|
|
2068
2188
|
url = authDefault.url;
|
|
2069
2189
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2070
2190
|
const response = await fetch(url, requestOptions);
|
|
2071
|
-
|
|
2191
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2192
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2193
|
+
const headerCb = options.responseHeadersCallback;
|
|
2194
|
+
// on next tick, so we have time to handle the response
|
|
2195
|
+
setTimeout(() => {
|
|
2196
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2197
|
+
}, 0);
|
|
2198
|
+
}
|
|
2199
|
+
return resp;
|
|
2072
2200
|
}
|
|
2073
2201
|
/**
|
|
2074
2202
|
* Deletes all samples for this project over a single category. Note that this does not delete the data from cold storage.
|
|
@@ -2136,7 +2264,15 @@ class RawDataApi {
|
|
|
2136
2264
|
url = authDefault.url;
|
|
2137
2265
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2138
2266
|
const response = await fetch(url, requestOptions);
|
|
2139
|
-
|
|
2267
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2268
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2269
|
+
const headerCb = options.responseHeadersCallback;
|
|
2270
|
+
// on next tick, so we have time to handle the response
|
|
2271
|
+
setTimeout(() => {
|
|
2272
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2273
|
+
}, 0);
|
|
2274
|
+
}
|
|
2275
|
+
return resp;
|
|
2140
2276
|
}
|
|
2141
2277
|
/**
|
|
2142
2278
|
* Deletes the sample. Note that this does not delete the data from cold storage.
|
|
@@ -2204,7 +2340,15 @@ class RawDataApi {
|
|
|
2204
2340
|
url = authDefault.url;
|
|
2205
2341
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2206
2342
|
const response = await fetch(url, requestOptions);
|
|
2207
|
-
|
|
2343
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2344
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2345
|
+
const headerCb = options.responseHeadersCallback;
|
|
2346
|
+
// on next tick, so we have time to handle the response
|
|
2347
|
+
setTimeout(() => {
|
|
2348
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2349
|
+
}, 0);
|
|
2350
|
+
}
|
|
2351
|
+
return resp;
|
|
2208
2352
|
}
|
|
2209
2353
|
/**
|
|
2210
2354
|
* Disable a sample, ensuring that it is excluded from the dataset.
|
|
@@ -2272,7 +2416,15 @@ class RawDataApi {
|
|
|
2272
2416
|
url = authDefault.url;
|
|
2273
2417
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2274
2418
|
const response = await fetch(url, requestOptions);
|
|
2275
|
-
|
|
2419
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2420
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2421
|
+
const headerCb = options.responseHeadersCallback;
|
|
2422
|
+
// on next tick, so we have time to handle the response
|
|
2423
|
+
setTimeout(() => {
|
|
2424
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2425
|
+
}, 0);
|
|
2426
|
+
}
|
|
2427
|
+
return resp;
|
|
2276
2428
|
}
|
|
2277
2429
|
/**
|
|
2278
2430
|
* Sets the label (also known as class) of the sample. Use the same label for similar types of data, as they are used during training.
|
|
@@ -2346,7 +2498,15 @@ class RawDataApi {
|
|
|
2346
2498
|
url = authDefault.url;
|
|
2347
2499
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2348
2500
|
const response = await fetch(url, requestOptions);
|
|
2349
|
-
|
|
2501
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2502
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2503
|
+
const headerCb = options.responseHeadersCallback;
|
|
2504
|
+
// on next tick, so we have time to handle the response
|
|
2505
|
+
setTimeout(() => {
|
|
2506
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2507
|
+
}, 0);
|
|
2508
|
+
}
|
|
2509
|
+
return resp;
|
|
2350
2510
|
}
|
|
2351
2511
|
/**
|
|
2352
2512
|
* Enable a sample, ensuring that it is not excluded from the dataset.
|
|
@@ -2414,7 +2574,15 @@ class RawDataApi {
|
|
|
2414
2574
|
url = authDefault.url;
|
|
2415
2575
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2416
2576
|
const response = await fetch(url, requestOptions);
|
|
2417
|
-
|
|
2577
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2578
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2579
|
+
const headerCb = options.responseHeadersCallback;
|
|
2580
|
+
// on next tick, so we have time to handle the response
|
|
2581
|
+
setTimeout(() => {
|
|
2582
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2583
|
+
}, 0);
|
|
2584
|
+
}
|
|
2585
|
+
return resp;
|
|
2418
2586
|
}
|
|
2419
2587
|
/**
|
|
2420
2588
|
* Find start and end times for all non-noise events in a sample. If you have multiple datastreams and OptionalDatastreamIndexParameter is not passed in, the first datastream is used.
|
|
@@ -2492,7 +2660,15 @@ class RawDataApi {
|
|
|
2492
2660
|
url = authDefault.url;
|
|
2493
2661
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2494
2662
|
const response = await fetch(url, requestOptions);
|
|
2495
|
-
|
|
2663
|
+
const resp = this.handleResponse(response, 'FindSegmentSampleResponse');
|
|
2664
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2665
|
+
const headerCb = options.responseHeadersCallback;
|
|
2666
|
+
// on next tick, so we have time to handle the response
|
|
2667
|
+
setTimeout(() => {
|
|
2668
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2669
|
+
}, 0);
|
|
2670
|
+
}
|
|
2671
|
+
return resp;
|
|
2496
2672
|
}
|
|
2497
2673
|
/**
|
|
2498
2674
|
* Get proposed changes from an AI Actions job.
|
|
@@ -2560,7 +2736,15 @@ class RawDataApi {
|
|
|
2560
2736
|
url = authDefault.url;
|
|
2561
2737
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2562
2738
|
const response = await fetch(url, requestOptions);
|
|
2563
|
-
|
|
2739
|
+
const resp = this.handleResponse(response, 'GetAIActionsProposedChangesResponse');
|
|
2740
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2741
|
+
const headerCb = options.responseHeadersCallback;
|
|
2742
|
+
// on next tick, so we have time to handle the response
|
|
2743
|
+
setTimeout(() => {
|
|
2744
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2745
|
+
}, 0);
|
|
2746
|
+
}
|
|
2747
|
+
return resp;
|
|
2564
2748
|
}
|
|
2565
2749
|
/**
|
|
2566
2750
|
* Lists all data with an \'imported from\' metadata key. Used to check in a data source which items are already in a project.
|
|
@@ -2630,7 +2814,15 @@ class RawDataApi {
|
|
|
2630
2814
|
url = authDefault.url;
|
|
2631
2815
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2632
2816
|
const response = await fetch(url, requestOptions);
|
|
2633
|
-
|
|
2817
|
+
const resp = this.handleResponse(response, 'GetAllImportedFromResponse');
|
|
2818
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2819
|
+
const headerCb = options.responseHeadersCallback;
|
|
2820
|
+
// on next tick, so we have time to handle the response
|
|
2821
|
+
setTimeout(() => {
|
|
2822
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2823
|
+
}, 0);
|
|
2824
|
+
}
|
|
2825
|
+
return resp;
|
|
2634
2826
|
}
|
|
2635
2827
|
/**
|
|
2636
2828
|
* t-SNE2 output of the raw dataset
|
|
@@ -2692,7 +2884,15 @@ class RawDataApi {
|
|
|
2692
2884
|
url = authDefault.url;
|
|
2693
2885
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2694
2886
|
const response = await fetch(url, requestOptions);
|
|
2695
|
-
|
|
2887
|
+
const resp = this.handleResponse(response, 'GetDataExplorerFeaturesResponse');
|
|
2888
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2889
|
+
const headerCb = options.responseHeadersCallback;
|
|
2890
|
+
// on next tick, so we have time to handle the response
|
|
2891
|
+
setTimeout(() => {
|
|
2892
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2893
|
+
}, 0);
|
|
2894
|
+
}
|
|
2895
|
+
return resp;
|
|
2696
2896
|
}
|
|
2697
2897
|
/**
|
|
2698
2898
|
* Predictions for every data explorer point (only available when using current impulse to populate data explorer)
|
|
@@ -2754,7 +2954,15 @@ class RawDataApi {
|
|
|
2754
2954
|
url = authDefault.url;
|
|
2755
2955
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2756
2956
|
const response = await fetch(url, requestOptions);
|
|
2757
|
-
|
|
2957
|
+
const resp = this.handleResponse(response, 'DataExplorerPredictionsResponse');
|
|
2958
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2959
|
+
const headerCb = options.responseHeadersCallback;
|
|
2960
|
+
// on next tick, so we have time to handle the response
|
|
2961
|
+
setTimeout(() => {
|
|
2962
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2963
|
+
}, 0);
|
|
2964
|
+
}
|
|
2965
|
+
return resp;
|
|
2758
2966
|
}
|
|
2759
2967
|
/**
|
|
2760
2968
|
* Get data explorer configuration, like the type of data, and the input / dsp block to use.
|
|
@@ -2816,7 +3024,15 @@ class RawDataApi {
|
|
|
2816
3024
|
url = authDefault.url;
|
|
2817
3025
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2818
3026
|
const response = await fetch(url, requestOptions);
|
|
2819
|
-
|
|
3027
|
+
const resp = this.handleResponse(response, 'GetDataExplorerSettingsResponse');
|
|
3028
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3029
|
+
const headerCb = options.responseHeadersCallback;
|
|
3030
|
+
// on next tick, so we have time to handle the response
|
|
3031
|
+
setTimeout(() => {
|
|
3032
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3033
|
+
}, 0);
|
|
3034
|
+
}
|
|
3035
|
+
return resp;
|
|
2820
3036
|
}
|
|
2821
3037
|
/**
|
|
2822
3038
|
* Retrieve number of samples in train and test set.
|
|
@@ -2878,7 +3094,15 @@ class RawDataApi {
|
|
|
2878
3094
|
url = authDefault.url;
|
|
2879
3095
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2880
3096
|
const response = await fetch(url, requestOptions);
|
|
2881
|
-
|
|
3097
|
+
const resp = this.handleResponse(response, 'GetDatasetRatioResponse');
|
|
3098
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3099
|
+
const headerCb = options.responseHeadersCallback;
|
|
3100
|
+
// on next tick, so we have time to handle the response
|
|
3101
|
+
setTimeout(() => {
|
|
3102
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3103
|
+
}, 0);
|
|
3104
|
+
}
|
|
3105
|
+
return resp;
|
|
2882
3106
|
}
|
|
2883
3107
|
/**
|
|
2884
3108
|
* Obtain metrics that describe the similarity and diversity of a dataset. To calculate these metrics, use the `calculateDataQualityMetrics` endpoint.
|
|
@@ -2940,7 +3164,15 @@ class RawDataApi {
|
|
|
2940
3164
|
url = authDefault.url;
|
|
2941
3165
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2942
3166
|
const response = await fetch(url, requestOptions);
|
|
2943
|
-
|
|
3167
|
+
const resp = this.handleResponse(response, 'GetDiversityDataResponse');
|
|
3168
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3169
|
+
const headerCb = options.responseHeadersCallback;
|
|
3170
|
+
// on next tick, so we have time to handle the response
|
|
3171
|
+
setTimeout(() => {
|
|
3172
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3173
|
+
}, 0);
|
|
3174
|
+
}
|
|
3175
|
+
return resp;
|
|
2944
3176
|
}
|
|
2945
3177
|
/**
|
|
2946
3178
|
* Obtain metrics that describe potential label noise issues in the dataset. To calculate these metrics, use the `calculateDataQualityMetrics` endpoint.
|
|
@@ -3002,7 +3234,15 @@ class RawDataApi {
|
|
|
3002
3234
|
url = authDefault.url;
|
|
3003
3235
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3004
3236
|
const response = await fetch(url, requestOptions);
|
|
3005
|
-
|
|
3237
|
+
const resp = this.handleResponse(response, 'GetLabelNoiseDataResponse');
|
|
3238
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3239
|
+
const headerCb = options.responseHeadersCallback;
|
|
3240
|
+
// on next tick, so we have time to handle the response
|
|
3241
|
+
setTimeout(() => {
|
|
3242
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3243
|
+
}, 0);
|
|
3244
|
+
}
|
|
3245
|
+
return resp;
|
|
3006
3246
|
}
|
|
3007
3247
|
/**
|
|
3008
3248
|
* Get all unlabeled items from the object detection queue.
|
|
@@ -3064,7 +3304,15 @@ class RawDataApi {
|
|
|
3064
3304
|
url = authDefault.url;
|
|
3065
3305
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3066
3306
|
const response = await fetch(url, requestOptions);
|
|
3067
|
-
|
|
3307
|
+
const resp = this.handleResponse(response, 'ObjectDetectionLabelQueueResponse');
|
|
3308
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3309
|
+
const headerCb = options.responseHeadersCallback;
|
|
3310
|
+
// on next tick, so we have time to handle the response
|
|
3311
|
+
setTimeout(() => {
|
|
3312
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3313
|
+
}, 0);
|
|
3314
|
+
}
|
|
3315
|
+
return resp;
|
|
3068
3316
|
}
|
|
3069
3317
|
/**
|
|
3070
3318
|
* Get count for unlabeled items from the object detection queue.
|
|
@@ -3126,7 +3374,15 @@ class RawDataApi {
|
|
|
3126
3374
|
url = authDefault.url;
|
|
3127
3375
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3128
3376
|
const response = await fetch(url, requestOptions);
|
|
3129
|
-
|
|
3377
|
+
const resp = this.handleResponse(response, 'ObjectDetectionLabelQueueCountResponse');
|
|
3378
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3379
|
+
const headerCb = options.responseHeadersCallback;
|
|
3380
|
+
// on next tick, so we have time to handle the response
|
|
3381
|
+
setTimeout(() => {
|
|
3382
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3383
|
+
}, 0);
|
|
3384
|
+
}
|
|
3385
|
+
return resp;
|
|
3130
3386
|
}
|
|
3131
3387
|
/**
|
|
3132
3388
|
* Get co-occurrence counts for two metadata keys in a project category. This is experimental and may change in the future.
|
|
@@ -3228,7 +3484,15 @@ class RawDataApi {
|
|
|
3228
3484
|
url = authDefault.url;
|
|
3229
3485
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3230
3486
|
const response = await fetch(url, requestOptions);
|
|
3231
|
-
|
|
3487
|
+
const resp = this.handleResponse(response, 'GetRawDataMetadataCooccurrenceResponse');
|
|
3488
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3489
|
+
const headerCb = options.responseHeadersCallback;
|
|
3490
|
+
// on next tick, so we have time to handle the response
|
|
3491
|
+
setTimeout(() => {
|
|
3492
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3493
|
+
}, 0);
|
|
3494
|
+
}
|
|
3495
|
+
return resp;
|
|
3232
3496
|
}
|
|
3233
3497
|
/**
|
|
3234
3498
|
* Get metadata value distribution for a specific metadata key in a project category. Numeric values are returned as histogram buckets, non-numeric values as categorical counts. This is experimental and may change in the future.
|
|
@@ -3322,7 +3586,15 @@ class RawDataApi {
|
|
|
3322
3586
|
url = authDefault.url;
|
|
3323
3587
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3324
3588
|
const response = await fetch(url, requestOptions);
|
|
3325
|
-
|
|
3589
|
+
const resp = this.handleResponse(response, 'GetRawDataMetadataDistributionResponse');
|
|
3590
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3591
|
+
const headerCb = options.responseHeadersCallback;
|
|
3592
|
+
// on next tick, so we have time to handle the response
|
|
3593
|
+
setTimeout(() => {
|
|
3594
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3595
|
+
}, 0);
|
|
3596
|
+
}
|
|
3597
|
+
return resp;
|
|
3326
3598
|
}
|
|
3327
3599
|
/**
|
|
3328
3600
|
* Get the raw data metadata for this project
|
|
@@ -3392,7 +3664,15 @@ class RawDataApi {
|
|
|
3392
3664
|
url = authDefault.url;
|
|
3393
3665
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3394
3666
|
const response = await fetch(url, requestOptions);
|
|
3395
|
-
|
|
3667
|
+
const resp = this.handleResponse(response, 'GetRawDataProjectMetadataResponse');
|
|
3668
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3669
|
+
const headerCb = options.responseHeadersCallback;
|
|
3670
|
+
// on next tick, so we have time to handle the response
|
|
3671
|
+
setTimeout(() => {
|
|
3672
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3673
|
+
}, 0);
|
|
3674
|
+
}
|
|
3675
|
+
return resp;
|
|
3396
3676
|
}
|
|
3397
3677
|
/**
|
|
3398
3678
|
* Get a sample.
|
|
@@ -3480,7 +3760,15 @@ class RawDataApi {
|
|
|
3480
3760
|
url = authDefault.url;
|
|
3481
3761
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3482
3762
|
const response = await fetch(url, requestOptions);
|
|
3483
|
-
|
|
3763
|
+
const resp = this.handleResponse(response, 'GetSampleResponse');
|
|
3764
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3765
|
+
const headerCb = options.responseHeadersCallback;
|
|
3766
|
+
// on next tick, so we have time to handle the response
|
|
3767
|
+
setTimeout(() => {
|
|
3768
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3769
|
+
}, 0);
|
|
3770
|
+
}
|
|
3771
|
+
return resp;
|
|
3484
3772
|
}
|
|
3485
3773
|
/**
|
|
3486
3774
|
* Get a sample as a WAV file. This only applies to samples with an audio axis.
|
|
@@ -3568,7 +3856,15 @@ class RawDataApi {
|
|
|
3568
3856
|
url = authDefault.url;
|
|
3569
3857
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3570
3858
|
const response = await fetch(url, requestOptions);
|
|
3571
|
-
|
|
3859
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
3860
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3861
|
+
const headerCb = options.responseHeadersCallback;
|
|
3862
|
+
// on next tick, so we have time to handle the response
|
|
3863
|
+
setTimeout(() => {
|
|
3864
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3865
|
+
}, 0);
|
|
3866
|
+
}
|
|
3867
|
+
return resp;
|
|
3572
3868
|
}
|
|
3573
3869
|
/**
|
|
3574
3870
|
* Get a sample as an image file. This only applies to samples with RGBA data.
|
|
@@ -3652,7 +3948,15 @@ class RawDataApi {
|
|
|
3652
3948
|
url = authDefault.url;
|
|
3653
3949
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3654
3950
|
const response = await fetch(url, requestOptions);
|
|
3655
|
-
|
|
3951
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
3952
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3953
|
+
const headerCb = options.responseHeadersCallback;
|
|
3954
|
+
// on next tick, so we have time to handle the response
|
|
3955
|
+
setTimeout(() => {
|
|
3956
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3957
|
+
}, 0);
|
|
3958
|
+
}
|
|
3959
|
+
return resp;
|
|
3656
3960
|
}
|
|
3657
3961
|
/**
|
|
3658
3962
|
* Download a sample in it\'s original format as uploaded to the ingestion service.
|
|
@@ -3720,7 +4024,15 @@ class RawDataApi {
|
|
|
3720
4024
|
url = authDefault.url;
|
|
3721
4025
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3722
4026
|
const response = await fetch(url, requestOptions);
|
|
3723
|
-
|
|
4027
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
4028
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
4029
|
+
const headerCb = options.responseHeadersCallback;
|
|
4030
|
+
// on next tick, so we have time to handle the response
|
|
4031
|
+
setTimeout(() => {
|
|
4032
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
4033
|
+
}, 0);
|
|
4034
|
+
}
|
|
4035
|
+
return resp;
|
|
3724
4036
|
}
|
|
3725
4037
|
/**
|
|
3726
4038
|
* Get a sample as an video file. This only applies to samples with video data.
|
|
@@ -3804,7 +4116,15 @@ class RawDataApi {
|
|
|
3804
4116
|
url = authDefault.url;
|
|
3805
4117
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3806
4118
|
const response = await fetch(url, requestOptions);
|
|
3807
|
-
|
|
4119
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
4120
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
4121
|
+
const headerCb = options.responseHeadersCallback;
|
|
4122
|
+
// on next tick, so we have time to handle the response
|
|
4123
|
+
setTimeout(() => {
|
|
4124
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
4125
|
+
}, 0);
|
|
4126
|
+
}
|
|
4127
|
+
return resp;
|
|
3808
4128
|
}
|
|
3809
4129
|
/**
|
|
3810
4130
|
* Get metadata for all samples in a project.
|
|
@@ -3874,7 +4194,15 @@ class RawDataApi {
|
|
|
3874
4194
|
url = authDefault.url;
|
|
3875
4195
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3876
4196
|
const response = await fetch(url, requestOptions);
|
|
3877
|
-
|
|
4197
|
+
const resp = this.handleResponse(response, 'GetSampleMetadataResponse');
|
|
4198
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
4199
|
+
const headerCb = options.responseHeadersCallback;
|
|
4200
|
+
// on next tick, so we have time to handle the response
|
|
4201
|
+
setTimeout(() => {
|
|
4202
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
4203
|
+
}, 0);
|
|
4204
|
+
}
|
|
4205
|
+
return resp;
|
|
3878
4206
|
}
|
|
3879
4207
|
/**
|
|
3880
4208
|
* Get a list of unique key value pairs across all samples in a project that can be applied as filters to the /api/{projectId}/raw-data endpoint
|
|
@@ -3952,7 +4280,15 @@ class RawDataApi {
|
|
|
3952
4280
|
url = authDefault.url;
|
|
3953
4281
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3954
4282
|
const response = await fetch(url, requestOptions);
|
|
3955
|
-
|
|
4283
|
+
const resp = this.handleResponse(response, 'GetSampleMetadataFilterOptionsResponse');
|
|
4284
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
4285
|
+
const headerCb = options.responseHeadersCallback;
|
|
4286
|
+
// on next tick, so we have time to handle the response
|
|
4287
|
+
setTimeout(() => {
|
|
4288
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
4289
|
+
}, 0);
|
|
4290
|
+
}
|
|
4291
|
+
return resp;
|
|
3956
4292
|
}
|
|
3957
4293
|
/**
|
|
3958
4294
|
* Get a slice of a sample. If you have multiple datastreams and OptionalDatastreamIndexParameter is not passed in, the first datastream is returned. sliceStart / sliceEnd are relative to the datastream.
|
|
@@ -4044,7 +4380,15 @@ class RawDataApi {
|
|
|
4044
4380
|
url = authDefault.url;
|
|
4045
4381
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4046
4382
|
const response = await fetch(url, requestOptions);
|
|
4047
|
-
|
|
4383
|
+
const resp = this.handleResponse(response, 'GetSampleDspResponse');
|
|
4384
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
4385
|
+
const headerCb = options.responseHeadersCallback;
|
|
4386
|
+
// on next tick, so we have time to handle the response
|
|
4387
|
+
setTimeout(() => {
|
|
4388
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
4389
|
+
}, 0);
|
|
4390
|
+
}
|
|
4391
|
+
return resp;
|
|
4048
4392
|
}
|
|
4049
4393
|
/**
|
|
4050
4394
|
* Returns the results of a previously requested split preview job. This endpoint is used to retrieve the results after a split preview job has been started.
|
|
@@ -4106,7 +4450,15 @@ class RawDataApi {
|
|
|
4106
4450
|
url = authDefault.url;
|
|
4107
4451
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4108
4452
|
const response = await fetch(url, requestOptions);
|
|
4109
|
-
|
|
4453
|
+
const resp = this.handleResponse(response, 'DatasetSplitPreviewResponse');
|
|
4454
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
4455
|
+
const headerCb = options.responseHeadersCallback;
|
|
4456
|
+
// on next tick, so we have time to handle the response
|
|
4457
|
+
setTimeout(() => {
|
|
4458
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
4459
|
+
}, 0);
|
|
4460
|
+
}
|
|
4461
|
+
return resp;
|
|
4110
4462
|
}
|
|
4111
4463
|
/**
|
|
4112
4464
|
* Get the original, uncropped, downsampled data. If you have multiple datastreams and OptionalDatastreamIndexParameter is not passed in, the first datastream is returned. The ZoomStart/ZoomEnd parameters should be relative to the selected datastream.
|
|
@@ -4198,7 +4550,15 @@ class RawDataApi {
|
|
|
4198
4550
|
url = authDefault.url;
|
|
4199
4551
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4200
4552
|
const response = await fetch(url, requestOptions);
|
|
4201
|
-
|
|
4553
|
+
const resp = this.handleResponse(response, 'GetSampleDspResponse');
|
|
4554
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
4555
|
+
const headerCb = options.responseHeadersCallback;
|
|
4556
|
+
// on next tick, so we have time to handle the response
|
|
4557
|
+
setTimeout(() => {
|
|
4558
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
4559
|
+
}, 0);
|
|
4560
|
+
}
|
|
4561
|
+
return resp;
|
|
4202
4562
|
}
|
|
4203
4563
|
/**
|
|
4204
4564
|
* t-SNE2 output of the raw dataset
|
|
@@ -4260,7 +4620,15 @@ class RawDataApi {
|
|
|
4260
4620
|
url = authDefault.url;
|
|
4261
4621
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4262
4622
|
const response = await fetch(url, requestOptions);
|
|
4263
|
-
|
|
4623
|
+
const resp = this.handleResponse(response, 'HasDataExplorerFeaturesResponse');
|
|
4624
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
4625
|
+
const headerCb = options.responseHeadersCallback;
|
|
4626
|
+
// on next tick, so we have time to handle the response
|
|
4627
|
+
setTimeout(() => {
|
|
4628
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
4629
|
+
}, 0);
|
|
4630
|
+
}
|
|
4631
|
+
return resp;
|
|
4264
4632
|
}
|
|
4265
4633
|
/**
|
|
4266
4634
|
* Determine if data diversity metrics have been calculated. To calculate these metrics, use the `calculateDataQualityMetrics` endpoint.
|
|
@@ -4322,7 +4690,15 @@ class RawDataApi {
|
|
|
4322
4690
|
url = authDefault.url;
|
|
4323
4691
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4324
4692
|
const response = await fetch(url, requestOptions);
|
|
4325
|
-
|
|
4693
|
+
const resp = this.handleResponse(response, 'HasDataExplorerFeaturesResponse');
|
|
4694
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
4695
|
+
const headerCb = options.responseHeadersCallback;
|
|
4696
|
+
// on next tick, so we have time to handle the response
|
|
4697
|
+
setTimeout(() => {
|
|
4698
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
4699
|
+
}, 0);
|
|
4700
|
+
}
|
|
4701
|
+
return resp;
|
|
4326
4702
|
}
|
|
4327
4703
|
/**
|
|
4328
4704
|
* Determine if label noise metrics have been calculated. To calculate these metrics, use the `calculateDataQualityMetrics` endpoint.
|
|
@@ -4384,7 +4760,15 @@ class RawDataApi {
|
|
|
4384
4760
|
url = authDefault.url;
|
|
4385
4761
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4386
4762
|
const response = await fetch(url, requestOptions);
|
|
4387
|
-
|
|
4763
|
+
const resp = this.handleResponse(response, 'HasDataExplorerFeaturesResponse');
|
|
4764
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
4765
|
+
const headerCb = options.responseHeadersCallback;
|
|
4766
|
+
// on next tick, so we have time to handle the response
|
|
4767
|
+
setTimeout(() => {
|
|
4768
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
4769
|
+
}, 0);
|
|
4770
|
+
}
|
|
4771
|
+
return resp;
|
|
4388
4772
|
}
|
|
4389
4773
|
/**
|
|
4390
4774
|
* Retrieve all raw data by category.
|
|
@@ -4546,7 +4930,15 @@ class RawDataApi {
|
|
|
4546
4930
|
url = authDefault.url;
|
|
4547
4931
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4548
4932
|
const response = await fetch(url, requestOptions);
|
|
4549
|
-
|
|
4933
|
+
const resp = this.handleResponse(response, 'ListSamplesResponse');
|
|
4934
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
4935
|
+
const headerCb = options.responseHeadersCallback;
|
|
4936
|
+
// on next tick, so we have time to handle the response
|
|
4937
|
+
setTimeout(() => {
|
|
4938
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
4939
|
+
}, 0);
|
|
4940
|
+
}
|
|
4941
|
+
return resp;
|
|
4550
4942
|
}
|
|
4551
4943
|
/**
|
|
4552
4944
|
* Move a sample to another category (e.g. from test to training).
|
|
@@ -4620,7 +5012,15 @@ class RawDataApi {
|
|
|
4620
5012
|
url = authDefault.url;
|
|
4621
5013
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4622
5014
|
const response = await fetch(url, requestOptions);
|
|
4623
|
-
|
|
5015
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
5016
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5017
|
+
const headerCb = options.responseHeadersCallback;
|
|
5018
|
+
// on next tick, so we have time to handle the response
|
|
5019
|
+
setTimeout(() => {
|
|
5020
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5021
|
+
}, 0);
|
|
5022
|
+
}
|
|
5023
|
+
return resp;
|
|
4624
5024
|
}
|
|
4625
5025
|
/**
|
|
4626
5026
|
* Clears the bounding box labels and moves item back to labeling queue
|
|
@@ -4688,7 +5088,15 @@ class RawDataApi {
|
|
|
4688
5088
|
url = authDefault.url;
|
|
4689
5089
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4690
5090
|
const response = await fetch(url, requestOptions);
|
|
4691
|
-
|
|
5091
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
5092
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5093
|
+
const headerCb = options.responseHeadersCallback;
|
|
5094
|
+
// on next tick, so we have time to handle the response
|
|
5095
|
+
setTimeout(() => {
|
|
5096
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5097
|
+
}, 0);
|
|
5098
|
+
}
|
|
5099
|
+
return resp;
|
|
4692
5100
|
}
|
|
4693
5101
|
/**
|
|
4694
5102
|
* This API is deprecated, use rebalanceDatasetV2 instead (`/v1/api/{projectId}/v2/rebalance`). Rebalances the dataset over training / testing categories. This resets the category for all data and splits it 80%/20% between training and testing. This is a deterministic process based on the hash of the name of the data.
|
|
@@ -4750,7 +5158,15 @@ class RawDataApi {
|
|
|
4750
5158
|
url = authDefault.url;
|
|
4751
5159
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4752
5160
|
const response = await fetch(url, requestOptions);
|
|
4753
|
-
|
|
5161
|
+
const resp = this.handleResponse(response, 'RebalanceDatasetResponse');
|
|
5162
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5163
|
+
const headerCb = options.responseHeadersCallback;
|
|
5164
|
+
// on next tick, so we have time to handle the response
|
|
5165
|
+
setTimeout(() => {
|
|
5166
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5167
|
+
}, 0);
|
|
5168
|
+
}
|
|
5169
|
+
return resp;
|
|
4754
5170
|
}
|
|
4755
5171
|
/**
|
|
4756
5172
|
* Rebalances the dataset over training / testing categories. This resets the category for all data and splits it 80%/20% between training and testing. This is a deterministic process based on the hash of the name of the data. Returns immediately on small datasets, or starts a job on larger datasets. To get the dataset ratio (as returned by the v1 endpoint), use getDatasetRatio. For richer, more powerful dataset splitting with configurable ratios, stratification, and grouping, use splitDataset (`/v1/api/{projectId}/split`).
|
|
@@ -4812,7 +5228,15 @@ class RawDataApi {
|
|
|
4812
5228
|
url = authDefault.url;
|
|
4813
5229
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4814
5230
|
const response = await fetch(url, requestOptions);
|
|
4815
|
-
|
|
5231
|
+
const resp = this.handleResponse(response, 'GenericApiResponse | StartJobResponse');
|
|
5232
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5233
|
+
const headerCb = options.responseHeadersCallback;
|
|
5234
|
+
// on next tick, so we have time to handle the response
|
|
5235
|
+
setTimeout(() => {
|
|
5236
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5237
|
+
}, 0);
|
|
5238
|
+
}
|
|
5239
|
+
return resp;
|
|
4816
5240
|
}
|
|
4817
5241
|
/**
|
|
4818
5242
|
* Sets the file name of the sample. This name does not need to be unique, but it\'s highly recommended to do so.
|
|
@@ -4886,7 +5310,15 @@ class RawDataApi {
|
|
|
4886
5310
|
url = authDefault.url;
|
|
4887
5311
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4888
5312
|
const response = await fetch(url, requestOptions);
|
|
4889
|
-
|
|
5313
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
5314
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5315
|
+
const headerCb = options.responseHeadersCallback;
|
|
5316
|
+
// on next tick, so we have time to handle the response
|
|
5317
|
+
setTimeout(() => {
|
|
5318
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5319
|
+
}, 0);
|
|
5320
|
+
}
|
|
5321
|
+
return resp;
|
|
4890
5322
|
}
|
|
4891
5323
|
/**
|
|
4892
5324
|
* If a sample failed processing, retry the processing operation.
|
|
@@ -4954,7 +5386,15 @@ class RawDataApi {
|
|
|
4954
5386
|
url = authDefault.url;
|
|
4955
5387
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
4956
5388
|
const response = await fetch(url, requestOptions);
|
|
4957
|
-
|
|
5389
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
5390
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5391
|
+
const headerCb = options.responseHeadersCallback;
|
|
5392
|
+
// on next tick, so we have time to handle the response
|
|
5393
|
+
setTimeout(() => {
|
|
5394
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5395
|
+
}, 0);
|
|
5396
|
+
}
|
|
5397
|
+
return resp;
|
|
4958
5398
|
}
|
|
4959
5399
|
/**
|
|
4960
5400
|
* Slice a sample into multiple segments. The original file will be marked as deleted, but you can crop any created segment to retrieve the original file.
|
|
@@ -5028,7 +5468,15 @@ class RawDataApi {
|
|
|
5028
5468
|
url = authDefault.url;
|
|
5029
5469
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5030
5470
|
const response = await fetch(url, requestOptions);
|
|
5031
|
-
|
|
5471
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
5472
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5473
|
+
const headerCb = options.responseHeadersCallback;
|
|
5474
|
+
// on next tick, so we have time to handle the response
|
|
5475
|
+
setTimeout(() => {
|
|
5476
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5477
|
+
}, 0);
|
|
5478
|
+
}
|
|
5479
|
+
return resp;
|
|
5032
5480
|
}
|
|
5033
5481
|
/**
|
|
5034
5482
|
* Set data explorer configuration, like the type of data, and the input / dsp block to use.
|
|
@@ -5096,7 +5544,15 @@ class RawDataApi {
|
|
|
5096
5544
|
url = authDefault.url;
|
|
5097
5545
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5098
5546
|
const response = await fetch(url, requestOptions);
|
|
5099
|
-
|
|
5547
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
5548
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5549
|
+
const headerCb = options.responseHeadersCallback;
|
|
5550
|
+
// on next tick, so we have time to handle the response
|
|
5551
|
+
setTimeout(() => {
|
|
5552
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5553
|
+
}, 0);
|
|
5554
|
+
}
|
|
5555
|
+
return resp;
|
|
5100
5556
|
}
|
|
5101
5557
|
/**
|
|
5102
5558
|
* Set the bounding boxes for a sample
|
|
@@ -5170,7 +5626,15 @@ class RawDataApi {
|
|
|
5170
5626
|
url = authDefault.url;
|
|
5171
5627
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5172
5628
|
const response = await fetch(url, requestOptions);
|
|
5173
|
-
|
|
5629
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
5630
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5631
|
+
const headerCb = options.responseHeadersCallback;
|
|
5632
|
+
// on next tick, so we have time to handle the response
|
|
5633
|
+
setTimeout(() => {
|
|
5634
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5635
|
+
}, 0);
|
|
5636
|
+
}
|
|
5637
|
+
return resp;
|
|
5174
5638
|
}
|
|
5175
5639
|
/**
|
|
5176
5640
|
* Update key/value labels for a sample. This is experimental and may change in the future.
|
|
@@ -5244,7 +5708,15 @@ class RawDataApi {
|
|
|
5244
5708
|
url = authDefault.url;
|
|
5245
5709
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5246
5710
|
const response = await fetch(url, requestOptions);
|
|
5247
|
-
|
|
5711
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
5712
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5713
|
+
const headerCb = options.responseHeadersCallback;
|
|
5714
|
+
// on next tick, so we have time to handle the response
|
|
5715
|
+
setTimeout(() => {
|
|
5716
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5717
|
+
}, 0);
|
|
5718
|
+
}
|
|
5719
|
+
return resp;
|
|
5248
5720
|
}
|
|
5249
5721
|
/**
|
|
5250
5722
|
* Adds or updates the metadata associated to a sample.
|
|
@@ -5318,7 +5790,15 @@ class RawDataApi {
|
|
|
5318
5790
|
url = authDefault.url;
|
|
5319
5791
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5320
5792
|
const response = await fetch(url, requestOptions);
|
|
5321
|
-
|
|
5793
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
5794
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5795
|
+
const headerCb = options.responseHeadersCallback;
|
|
5796
|
+
// on next tick, so we have time to handle the response
|
|
5797
|
+
setTimeout(() => {
|
|
5798
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5799
|
+
}, 0);
|
|
5800
|
+
}
|
|
5801
|
+
return resp;
|
|
5322
5802
|
}
|
|
5323
5803
|
/**
|
|
5324
5804
|
* Queue up changes to an object as part of the AI Actions flow. This overwrites any previous proposed changes.
|
|
@@ -5392,7 +5872,15 @@ class RawDataApi {
|
|
|
5392
5872
|
url = authDefault.url;
|
|
5393
5873
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5394
5874
|
const response = await fetch(url, requestOptions);
|
|
5395
|
-
|
|
5875
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
5876
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5877
|
+
const headerCb = options.responseHeadersCallback;
|
|
5878
|
+
// on next tick, so we have time to handle the response
|
|
5879
|
+
setTimeout(() => {
|
|
5880
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5881
|
+
}, 0);
|
|
5882
|
+
}
|
|
5883
|
+
return resp;
|
|
5396
5884
|
}
|
|
5397
5885
|
/**
|
|
5398
5886
|
* Set structured labels for a sample. If a sample has structured labels the `label` column is ignored, and the sample is allowed to have multiple labels. An array of { startIndex, endIndex, label } needs to be passed in with labels for the complete sample (see `valuesCount` to get the upper bound). endIndex is _inclusive_. If you pass in an incorrect array (e.g. missing values) you\'ll get an error back.
|
|
@@ -5466,7 +5954,15 @@ class RawDataApi {
|
|
|
5466
5954
|
url = authDefault.url;
|
|
5467
5955
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5468
5956
|
const response = await fetch(url, requestOptions);
|
|
5469
|
-
|
|
5957
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
5958
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
5959
|
+
const headerCb = options.responseHeadersCallback;
|
|
5960
|
+
// on next tick, so we have time to handle the response
|
|
5961
|
+
setTimeout(() => {
|
|
5962
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
5963
|
+
}, 0);
|
|
5964
|
+
}
|
|
5965
|
+
return resp;
|
|
5470
5966
|
}
|
|
5471
5967
|
/**
|
|
5472
5968
|
* Update the video dimensions for a sample. This is only available for video files that do not have dimensions set yet.
|
|
@@ -5540,7 +6036,15 @@ class RawDataApi {
|
|
|
5540
6036
|
url = authDefault.url;
|
|
5541
6037
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5542
6038
|
const response = await fetch(url, requestOptions);
|
|
5543
|
-
|
|
6039
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
6040
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
6041
|
+
const headerCb = options.responseHeadersCallback;
|
|
6042
|
+
// on next tick, so we have time to handle the response
|
|
6043
|
+
setTimeout(() => {
|
|
6044
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
6045
|
+
}, 0);
|
|
6046
|
+
}
|
|
6047
|
+
return resp;
|
|
5544
6048
|
}
|
|
5545
6049
|
/**
|
|
5546
6050
|
* Performs a deterministic, in-place split of the project\'s dataset into \"training\", \"testing\", and optional \"validation\" sets. Split balancing can use the label, one or more metadata keys, or both as a composite grouping signal. Related samples can also be kept together across splits by metadata key. This is a deterministic process based on the hash of the name of the data. Returns immediately on small datasets, or starts a job on larger datasets. For example: { \"trainingSplitRatio\": 0.8, \"testingSplitRatio\": 0.1, \"validationSplitRatio\": 0.1, \"excludeDisabledSamples\": false, \"stratifyBy\": { \"label\": true, \"metadataKeys\": [\"site\", \"scanner\"] }, \"keepTogetherMetadataKeys\": [\"capture_group\"] } With these options, label/site/scanner are used to balance the split, while samples sharing the same capture_group value stay in the same split bucket.
|
|
@@ -5608,7 +6112,15 @@ class RawDataApi {
|
|
|
5608
6112
|
url = authDefault.url;
|
|
5609
6113
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5610
6114
|
const response = await fetch(url, requestOptions);
|
|
5611
|
-
|
|
6115
|
+
const resp = this.handleResponse(response, 'GenericApiResponse | StartJobResponse');
|
|
6116
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
6117
|
+
const headerCb = options.responseHeadersCallback;
|
|
6118
|
+
// on next tick, so we have time to handle the response
|
|
6119
|
+
setTimeout(() => {
|
|
6120
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
6121
|
+
}, 0);
|
|
6122
|
+
}
|
|
6123
|
+
return resp;
|
|
5612
6124
|
}
|
|
5613
6125
|
/**
|
|
5614
6126
|
* Returns a preview of how the project\'s dataset would be split if the current split options were applied. For each group (composite of label and/or metadata keys, or keep-together group), shows the number and percentage of samples that would be assigned to each split. This does not update the dataset, only provides a summary. Returns immediately on small datasets, or starts a job on larger datasets.
|
|
@@ -5676,7 +6188,15 @@ class RawDataApi {
|
|
|
5676
6188
|
url = authDefault.url;
|
|
5677
6189
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5678
6190
|
const response = await fetch(url, requestOptions);
|
|
5679
|
-
|
|
6191
|
+
const resp = this.handleResponse(response, 'DatasetSplitPreviewResponse | StartJobResponse');
|
|
6192
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
6193
|
+
const headerCb = options.responseHeadersCallback;
|
|
6194
|
+
// on next tick, so we have time to handle the response
|
|
6195
|
+
setTimeout(() => {
|
|
6196
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
6197
|
+
}, 0);
|
|
6198
|
+
}
|
|
6199
|
+
return resp;
|
|
5680
6200
|
}
|
|
5681
6201
|
/**
|
|
5682
6202
|
* Split a video sample into individual frames. Depending on the length of the video sample this will either execute immediately or return the ID of a job that will perform this action.
|
|
@@ -5750,7 +6270,15 @@ class RawDataApi {
|
|
|
5750
6270
|
url = authDefault.url;
|
|
5751
6271
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5752
6272
|
const response = await fetch(url, requestOptions);
|
|
5753
|
-
|
|
6273
|
+
const resp = this.handleResponse(response, 'GenericApiResponse | StartJobResponse');
|
|
6274
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
6275
|
+
const headerCb = options.responseHeadersCallback;
|
|
6276
|
+
// on next tick, so we have time to handle the response
|
|
6277
|
+
setTimeout(() => {
|
|
6278
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
6279
|
+
}, 0);
|
|
6280
|
+
}
|
|
6281
|
+
return resp;
|
|
5754
6282
|
}
|
|
5755
6283
|
/**
|
|
5756
6284
|
* When segmenting a sample into smaller segments, store the segment length to ensure uniform segment lengths.
|
|
@@ -5818,7 +6346,15 @@ class RawDataApi {
|
|
|
5818
6346
|
url = authDefault.url;
|
|
5819
6347
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5820
6348
|
const response = await fetch(url, requestOptions);
|
|
5821
|
-
|
|
6349
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
6350
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
6351
|
+
const headerCb = options.responseHeadersCallback;
|
|
6352
|
+
// on next tick, so we have time to handle the response
|
|
6353
|
+
setTimeout(() => {
|
|
6354
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
6355
|
+
}, 0);
|
|
6356
|
+
}
|
|
6357
|
+
return resp;
|
|
5822
6358
|
}
|
|
5823
6359
|
/**
|
|
5824
6360
|
* Track objects between two samples. Source sample should have bounding boxes set.
|
|
@@ -5886,7 +6422,15 @@ class RawDataApi {
|
|
|
5886
6422
|
url = authDefault.url;
|
|
5887
6423
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5888
6424
|
const response = await fetch(url, requestOptions);
|
|
5889
|
-
|
|
6425
|
+
const resp = this.handleResponse(response, 'TrackObjectsResponse');
|
|
6426
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
6427
|
+
const headerCb = options.responseHeadersCallback;
|
|
6428
|
+
// on next tick, so we have time to handle the response
|
|
6429
|
+
setTimeout(() => {
|
|
6430
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
6431
|
+
}, 0);
|
|
6432
|
+
}
|
|
6433
|
+
return resp;
|
|
5890
6434
|
}
|
|
5891
6435
|
/**
|
|
5892
6436
|
* Used internally (from a data pipeline) to upload a picture of the data explorer
|
|
@@ -5963,7 +6507,15 @@ class RawDataApi {
|
|
|
5963
6507
|
url = authDefault.url;
|
|
5964
6508
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
5965
6509
|
const response = await fetch(url, requestOptions);
|
|
5966
|
-
|
|
6510
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
6511
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
6512
|
+
const headerCb = options.responseHeadersCallback;
|
|
6513
|
+
// on next tick, so we have time to handle the response
|
|
6514
|
+
setTimeout(() => {
|
|
6515
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
6516
|
+
}, 0);
|
|
6517
|
+
}
|
|
6518
|
+
return resp;
|
|
5967
6519
|
}
|
|
5968
6520
|
}
|
|
5969
6521
|
exports.RawDataApi = RawDataApi;
|