edge-impulse-api 1.93.26 → 1.93.28
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 +2448 -7
- package/build/browser/edge-impulse-api.js +7286 -785
- 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 +119 -0
- package/build/library/sdk/api/organizationBlocksApi.js +391 -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/addOrganizationTransferLearningBlockRequest.d.ts +4 -0
- 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/organizationTransferLearningBlock.d.ts +4 -0
- package/build/library/sdk/model/projectDataSummary.d.ts +3 -0
- package/build/library/sdk/model/projectInfoResponse.d.ts +42 -3
- package/build/library/sdk/model/projectInfoResponse.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/build/library/sdk/model/transferLearningModel.d.ts +4 -0
- package/package.json +1 -1
|
@@ -164,7 +164,15 @@ class OrganizationDataApi {
|
|
|
164
164
|
url = authDefault.url;
|
|
165
165
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
166
166
|
const response = await fetch(url, requestOptions);
|
|
167
|
-
|
|
167
|
+
const resp = this.handleResponse(response, 'EntityCreatedResponse');
|
|
168
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
169
|
+
const headerCb = options.responseHeadersCallback;
|
|
170
|
+
// on next tick, so we have time to handle the response
|
|
171
|
+
setTimeout(() => {
|
|
172
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
173
|
+
}, 0);
|
|
174
|
+
}
|
|
175
|
+
return resp;
|
|
168
176
|
}
|
|
169
177
|
/**
|
|
170
178
|
* Add a new file to an existing data item.
|
|
@@ -247,7 +255,15 @@ class OrganizationDataApi {
|
|
|
247
255
|
url = authDefault.url;
|
|
248
256
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
249
257
|
const response = await fetch(url, requestOptions);
|
|
250
|
-
|
|
258
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
259
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
260
|
+
const headerCb = options.responseHeadersCallback;
|
|
261
|
+
// on next tick, so we have time to handle the response
|
|
262
|
+
setTimeout(() => {
|
|
263
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
264
|
+
}, 0);
|
|
265
|
+
}
|
|
266
|
+
return resp;
|
|
251
267
|
}
|
|
252
268
|
/**
|
|
253
269
|
* Bulk adds data items that already exist in a storage bucket. The bucket path specified should contain folders. Each folder is added as a data item in Edge Impulse.
|
|
@@ -315,7 +331,15 @@ class OrganizationDataApi {
|
|
|
315
331
|
url = authDefault.url;
|
|
316
332
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
317
333
|
const response = await fetch(url, requestOptions);
|
|
318
|
-
|
|
334
|
+
const resp = this.handleResponse(response, 'StartJobResponse');
|
|
335
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
336
|
+
const headerCb = options.responseHeadersCallback;
|
|
337
|
+
// on next tick, so we have time to handle the response
|
|
338
|
+
setTimeout(() => {
|
|
339
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
340
|
+
}, 0);
|
|
341
|
+
}
|
|
342
|
+
return resp;
|
|
319
343
|
}
|
|
320
344
|
/**
|
|
321
345
|
* Add a new data item. You can add a maximum of 10000 files directly through this API. Use `addOrganizationDataFile` to add additional files.
|
|
@@ -440,7 +464,15 @@ class OrganizationDataApi {
|
|
|
440
464
|
url = authDefault.url;
|
|
441
465
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
442
466
|
const response = await fetch(url, requestOptions);
|
|
443
|
-
|
|
467
|
+
const resp = this.handleResponse(response, 'EntityCreatedResponse');
|
|
468
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
469
|
+
const headerCb = options.responseHeadersCallback;
|
|
470
|
+
// on next tick, so we have time to handle the response
|
|
471
|
+
setTimeout(() => {
|
|
472
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
473
|
+
}, 0);
|
|
474
|
+
}
|
|
475
|
+
return resp;
|
|
444
476
|
}
|
|
445
477
|
/**
|
|
446
478
|
* Add a new research dataset
|
|
@@ -508,7 +540,15 @@ class OrganizationDataApi {
|
|
|
508
540
|
url = authDefault.url;
|
|
509
541
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
510
542
|
const response = await fetch(url, requestOptions);
|
|
511
|
-
|
|
543
|
+
const resp = this.handleResponse(response, 'StartJobResponse');
|
|
544
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
545
|
+
const headerCb = options.responseHeadersCallback;
|
|
546
|
+
// on next tick, so we have time to handle the response
|
|
547
|
+
setTimeout(() => {
|
|
548
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
549
|
+
}, 0);
|
|
550
|
+
}
|
|
551
|
+
return resp;
|
|
512
552
|
}
|
|
513
553
|
/**
|
|
514
554
|
* Change the dataset for selected data items.
|
|
@@ -592,7 +632,15 @@ class OrganizationDataApi {
|
|
|
592
632
|
url = authDefault.url;
|
|
593
633
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
594
634
|
const response = await fetch(url, requestOptions);
|
|
595
|
-
|
|
635
|
+
const resp = this.handleResponse(response, 'StartJobResponse');
|
|
636
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
637
|
+
const headerCb = options.responseHeadersCallback;
|
|
638
|
+
// on next tick, so we have time to handle the response
|
|
639
|
+
setTimeout(() => {
|
|
640
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
641
|
+
}, 0);
|
|
642
|
+
}
|
|
643
|
+
return resp;
|
|
596
644
|
}
|
|
597
645
|
/**
|
|
598
646
|
* Clear all checklist flags for selected data items.
|
|
@@ -670,7 +718,15 @@ class OrganizationDataApi {
|
|
|
670
718
|
url = authDefault.url;
|
|
671
719
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
672
720
|
const response = await fetch(url, requestOptions);
|
|
673
|
-
|
|
721
|
+
const resp = this.handleResponse(response, 'StartJobResponse');
|
|
722
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
723
|
+
const headerCb = options.responseHeadersCallback;
|
|
724
|
+
// on next tick, so we have time to handle the response
|
|
725
|
+
setTimeout(() => {
|
|
726
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
727
|
+
}, 0);
|
|
728
|
+
}
|
|
729
|
+
return resp;
|
|
674
730
|
}
|
|
675
731
|
/**
|
|
676
732
|
* Create a new storage bucket in the Edge Impulse infra. This API is only available through JWT token authentication.
|
|
@@ -738,7 +794,15 @@ class OrganizationDataApi {
|
|
|
738
794
|
url = authDefault.url;
|
|
739
795
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
740
796
|
const response = await fetch(url, requestOptions);
|
|
741
|
-
|
|
797
|
+
const resp = this.handleResponse(response, 'CreateOrganizationBucketResponse');
|
|
798
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
799
|
+
const headerCb = options.responseHeadersCallback;
|
|
800
|
+
// on next tick, so we have time to handle the response
|
|
801
|
+
setTimeout(() => {
|
|
802
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
803
|
+
}, 0);
|
|
804
|
+
}
|
|
805
|
+
return resp;
|
|
742
806
|
}
|
|
743
807
|
/**
|
|
744
808
|
* Creates a signed link to securely upload data to s3 bucket directly from the client.
|
|
@@ -812,7 +876,15 @@ class OrganizationDataApi {
|
|
|
812
876
|
url = authDefault.url;
|
|
813
877
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
814
878
|
const response = await fetch(url, requestOptions);
|
|
815
|
-
|
|
879
|
+
const resp = this.handleResponse(response, 'CreateSignedUploadLinkResponse');
|
|
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;
|
|
816
888
|
}
|
|
817
889
|
/**
|
|
818
890
|
* Delete a file from a dataset
|
|
@@ -886,7 +958,15 @@ class OrganizationDataApi {
|
|
|
886
958
|
url = authDefault.url;
|
|
887
959
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
888
960
|
const response = await fetch(url, requestOptions);
|
|
889
|
-
|
|
961
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
962
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
963
|
+
const headerCb = options.responseHeadersCallback;
|
|
964
|
+
// on next tick, so we have time to handle the response
|
|
965
|
+
setTimeout(() => {
|
|
966
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
967
|
+
}, 0);
|
|
968
|
+
}
|
|
969
|
+
return resp;
|
|
890
970
|
}
|
|
891
971
|
/**
|
|
892
972
|
* Delete a single file from a data item.
|
|
@@ -962,7 +1042,15 @@ class OrganizationDataApi {
|
|
|
962
1042
|
url = authDefault.url;
|
|
963
1043
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
964
1044
|
const response = await fetch(url, requestOptions);
|
|
965
|
-
|
|
1045
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
1046
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1047
|
+
const headerCb = options.responseHeadersCallback;
|
|
1048
|
+
// on next tick, so we have time to handle the response
|
|
1049
|
+
setTimeout(() => {
|
|
1050
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1051
|
+
}, 0);
|
|
1052
|
+
}
|
|
1053
|
+
return resp;
|
|
966
1054
|
}
|
|
967
1055
|
/**
|
|
968
1056
|
* Delete a data item. This will remove items the items from the underlying storage if your dataset has \"bucketPath\" set.
|
|
@@ -1030,7 +1118,15 @@ class OrganizationDataApi {
|
|
|
1030
1118
|
url = authDefault.url;
|
|
1031
1119
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1032
1120
|
const response = await fetch(url, requestOptions);
|
|
1033
|
-
|
|
1121
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
1122
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1123
|
+
const headerCb = options.responseHeadersCallback;
|
|
1124
|
+
// on next tick, so we have time to handle the response
|
|
1125
|
+
setTimeout(() => {
|
|
1126
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1127
|
+
}, 0);
|
|
1128
|
+
}
|
|
1129
|
+
return resp;
|
|
1034
1130
|
}
|
|
1035
1131
|
/**
|
|
1036
1132
|
* Delete all data for selected data items. This removes all data in the underlying data bucket.
|
|
@@ -1108,7 +1204,15 @@ class OrganizationDataApi {
|
|
|
1108
1204
|
url = authDefault.url;
|
|
1109
1205
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1110
1206
|
const response = await fetch(url, requestOptions);
|
|
1111
|
-
|
|
1207
|
+
const resp = this.handleResponse(response, 'StartJobResponse');
|
|
1208
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1209
|
+
const headerCb = options.responseHeadersCallback;
|
|
1210
|
+
// on next tick, so we have time to handle the response
|
|
1211
|
+
setTimeout(() => {
|
|
1212
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1213
|
+
}, 0);
|
|
1214
|
+
}
|
|
1215
|
+
return resp;
|
|
1112
1216
|
}
|
|
1113
1217
|
/**
|
|
1114
1218
|
* Download a file from a dataset. Will return a signed URL to the bucket.
|
|
@@ -1182,7 +1286,15 @@ class OrganizationDataApi {
|
|
|
1182
1286
|
url = authDefault.url;
|
|
1183
1287
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1184
1288
|
const response = await fetch(url, requestOptions);
|
|
1185
|
-
|
|
1289
|
+
const resp = this.handleResponse(response, 'DownloadPortalFileResponse');
|
|
1290
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1291
|
+
const headerCb = options.responseHeadersCallback;
|
|
1292
|
+
// on next tick, so we have time to handle the response
|
|
1293
|
+
setTimeout(() => {
|
|
1294
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1295
|
+
}, 0);
|
|
1296
|
+
}
|
|
1297
|
+
return resp;
|
|
1186
1298
|
}
|
|
1187
1299
|
/**
|
|
1188
1300
|
* Download all files in the given folder in a dataset, ignoring any subdirectories.
|
|
@@ -1258,7 +1370,15 @@ class OrganizationDataApi {
|
|
|
1258
1370
|
url = authDefault.url;
|
|
1259
1371
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1260
1372
|
const response = await fetch(url, requestOptions);
|
|
1261
|
-
|
|
1373
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
1374
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1375
|
+
const headerCb = options.responseHeadersCallback;
|
|
1376
|
+
// on next tick, so we have time to handle the response
|
|
1377
|
+
setTimeout(() => {
|
|
1378
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1379
|
+
}, 0);
|
|
1380
|
+
}
|
|
1381
|
+
return resp;
|
|
1262
1382
|
}
|
|
1263
1383
|
/**
|
|
1264
1384
|
* Download a single file from a data item.
|
|
@@ -1334,7 +1454,15 @@ class OrganizationDataApi {
|
|
|
1334
1454
|
url = authDefault.url;
|
|
1335
1455
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1336
1456
|
const response = await fetch(url, requestOptions);
|
|
1337
|
-
|
|
1457
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
1458
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1459
|
+
const headerCb = options.responseHeadersCallback;
|
|
1460
|
+
// on next tick, so we have time to handle the response
|
|
1461
|
+
setTimeout(() => {
|
|
1462
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1463
|
+
}, 0);
|
|
1464
|
+
}
|
|
1465
|
+
return resp;
|
|
1338
1466
|
}
|
|
1339
1467
|
/**
|
|
1340
1468
|
* Download all data for selected data items. This function does not query the underlying bucket.
|
|
@@ -1412,7 +1540,15 @@ class OrganizationDataApi {
|
|
|
1412
1540
|
url = authDefault.url;
|
|
1413
1541
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1414
1542
|
const response = await fetch(url, requestOptions);
|
|
1415
|
-
|
|
1543
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
1544
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1545
|
+
const headerCb = options.responseHeadersCallback;
|
|
1546
|
+
// on next tick, so we have time to handle the response
|
|
1547
|
+
setTimeout(() => {
|
|
1548
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1549
|
+
}, 0);
|
|
1550
|
+
}
|
|
1551
|
+
return resp;
|
|
1416
1552
|
}
|
|
1417
1553
|
/**
|
|
1418
1554
|
* Download all data for this data item.
|
|
@@ -1484,7 +1620,15 @@ class OrganizationDataApi {
|
|
|
1484
1620
|
url = authDefault.url;
|
|
1485
1621
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1486
1622
|
const response = await fetch(url, requestOptions);
|
|
1487
|
-
|
|
1623
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
1624
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1625
|
+
const headerCb = options.responseHeadersCallback;
|
|
1626
|
+
// on next tick, so we have time to handle the response
|
|
1627
|
+
setTimeout(() => {
|
|
1628
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1629
|
+
}, 0);
|
|
1630
|
+
}
|
|
1631
|
+
return resp;
|
|
1488
1632
|
}
|
|
1489
1633
|
/**
|
|
1490
1634
|
* Get storage bucket details.
|
|
@@ -1552,7 +1696,15 @@ class OrganizationDataApi {
|
|
|
1552
1696
|
url = authDefault.url;
|
|
1553
1697
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1554
1698
|
const response = await fetch(url, requestOptions);
|
|
1555
|
-
|
|
1699
|
+
const resp = this.handleResponse(response, 'GetOrganizationBucketResponse');
|
|
1700
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1701
|
+
const headerCb = options.responseHeadersCallback;
|
|
1702
|
+
// on next tick, so we have time to handle the response
|
|
1703
|
+
setTimeout(() => {
|
|
1704
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1705
|
+
}, 0);
|
|
1706
|
+
}
|
|
1707
|
+
return resp;
|
|
1556
1708
|
}
|
|
1557
1709
|
/**
|
|
1558
1710
|
* Get a data item. This will HEAD the underlying bucket to retrieve the last file information.
|
|
@@ -1624,7 +1776,15 @@ class OrganizationDataApi {
|
|
|
1624
1776
|
url = authDefault.url;
|
|
1625
1777
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1626
1778
|
const response = await fetch(url, requestOptions);
|
|
1627
|
-
|
|
1779
|
+
const resp = this.handleResponse(response, 'GetOrganizationDataItemResponse');
|
|
1780
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1781
|
+
const headerCb = options.responseHeadersCallback;
|
|
1782
|
+
// on next tick, so we have time to handle the response
|
|
1783
|
+
setTimeout(() => {
|
|
1784
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1785
|
+
}, 0);
|
|
1786
|
+
}
|
|
1787
|
+
return resp;
|
|
1628
1788
|
}
|
|
1629
1789
|
/**
|
|
1630
1790
|
* Get all transformation jobs that ran for a data item. If limit / offset is not provided then max. 20 results are returned.
|
|
@@ -1700,7 +1860,15 @@ class OrganizationDataApi {
|
|
|
1700
1860
|
url = authDefault.url;
|
|
1701
1861
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1702
1862
|
const response = await fetch(url, requestOptions);
|
|
1703
|
-
|
|
1863
|
+
const resp = this.handleResponse(response, 'GetOrganizationDataItemTransformJobsResponse');
|
|
1864
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1865
|
+
const headerCb = options.responseHeadersCallback;
|
|
1866
|
+
// on next tick, so we have time to handle the response
|
|
1867
|
+
setTimeout(() => {
|
|
1868
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1869
|
+
}, 0);
|
|
1870
|
+
}
|
|
1871
|
+
return resp;
|
|
1704
1872
|
}
|
|
1705
1873
|
/**
|
|
1706
1874
|
* Get information about a dataset
|
|
@@ -1768,7 +1936,15 @@ class OrganizationDataApi {
|
|
|
1768
1936
|
url = authDefault.url;
|
|
1769
1937
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1770
1938
|
const response = await fetch(url, requestOptions);
|
|
1771
|
-
|
|
1939
|
+
const resp = this.handleResponse(response, 'GetOrganizationDatasetResponse');
|
|
1940
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1941
|
+
const headerCb = options.responseHeadersCallback;
|
|
1942
|
+
// on next tick, so we have time to handle the response
|
|
1943
|
+
setTimeout(() => {
|
|
1944
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1945
|
+
}, 0);
|
|
1946
|
+
}
|
|
1947
|
+
return resp;
|
|
1772
1948
|
}
|
|
1773
1949
|
/**
|
|
1774
1950
|
* Hide a dataset (does not remove underlying data)
|
|
@@ -1836,7 +2012,15 @@ class OrganizationDataApi {
|
|
|
1836
2012
|
url = authDefault.url;
|
|
1837
2013
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1838
2014
|
const response = await fetch(url, requestOptions);
|
|
1839
|
-
|
|
2015
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2016
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2017
|
+
const headerCb = options.responseHeadersCallback;
|
|
2018
|
+
// on next tick, so we have time to handle the response
|
|
2019
|
+
setTimeout(() => {
|
|
2020
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2021
|
+
}, 0);
|
|
2022
|
+
}
|
|
2023
|
+
return resp;
|
|
1840
2024
|
}
|
|
1841
2025
|
/**
|
|
1842
2026
|
* List all files and directories in specified prefix.
|
|
@@ -1910,7 +2094,15 @@ class OrganizationDataApi {
|
|
|
1910
2094
|
url = authDefault.url;
|
|
1911
2095
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1912
2096
|
const response = await fetch(url, requestOptions);
|
|
1913
|
-
|
|
2097
|
+
const resp = this.handleResponse(response, 'ListPortalFilesInFolderResponse');
|
|
2098
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2099
|
+
const headerCb = options.responseHeadersCallback;
|
|
2100
|
+
// on next tick, so we have time to handle the response
|
|
2101
|
+
setTimeout(() => {
|
|
2102
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2103
|
+
}, 0);
|
|
2104
|
+
}
|
|
2105
|
+
return resp;
|
|
1914
2106
|
}
|
|
1915
2107
|
/**
|
|
1916
2108
|
* Retrieve all configured storage buckets. This does not list the secret key.
|
|
@@ -1972,7 +2164,15 @@ class OrganizationDataApi {
|
|
|
1972
2164
|
url = authDefault.url;
|
|
1973
2165
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1974
2166
|
const response = await fetch(url, requestOptions);
|
|
1975
|
-
|
|
2167
|
+
const resp = this.handleResponse(response, 'ListOrganizationBucketsResponse');
|
|
2168
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2169
|
+
const headerCb = options.responseHeadersCallback;
|
|
2170
|
+
// on next tick, so we have time to handle the response
|
|
2171
|
+
setTimeout(() => {
|
|
2172
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2173
|
+
}, 0);
|
|
2174
|
+
}
|
|
2175
|
+
return resp;
|
|
1976
2176
|
}
|
|
1977
2177
|
/**
|
|
1978
2178
|
* Lists all data items. This can be filtered by the ?filter parameter.
|
|
@@ -2050,7 +2250,15 @@ class OrganizationDataApi {
|
|
|
2050
2250
|
url = authDefault.url;
|
|
2051
2251
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2052
2252
|
const response = await fetch(url, requestOptions);
|
|
2053
|
-
|
|
2253
|
+
const resp = this.handleResponse(response, 'ListOrganizationDataResponse');
|
|
2254
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2255
|
+
const headerCb = options.responseHeadersCallback;
|
|
2256
|
+
// on next tick, so we have time to handle the response
|
|
2257
|
+
setTimeout(() => {
|
|
2258
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2259
|
+
}, 0);
|
|
2260
|
+
}
|
|
2261
|
+
return resp;
|
|
2054
2262
|
}
|
|
2055
2263
|
/**
|
|
2056
2264
|
* Lists all files included by the filter.
|
|
@@ -2128,7 +2336,15 @@ class OrganizationDataApi {
|
|
|
2128
2336
|
url = authDefault.url;
|
|
2129
2337
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2130
2338
|
const response = await fetch(url, requestOptions);
|
|
2131
|
-
|
|
2339
|
+
const resp = this.handleResponse(response, 'ListOrganizationFilesResponse');
|
|
2340
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2341
|
+
const headerCb = options.responseHeadersCallback;
|
|
2342
|
+
// on next tick, so we have time to handle the response
|
|
2343
|
+
setTimeout(() => {
|
|
2344
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2345
|
+
}, 0);
|
|
2346
|
+
}
|
|
2347
|
+
return resp;
|
|
2132
2348
|
}
|
|
2133
2349
|
/**
|
|
2134
2350
|
* Bulk update the metadata of many data items in one go. This requires you to submit a CSV file with headers, one of which the columns should be named \'name\'. The other columns are used as metadata keys.
|
|
@@ -2215,7 +2431,15 @@ class OrganizationDataApi {
|
|
|
2215
2431
|
url = authDefault.url;
|
|
2216
2432
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2217
2433
|
const response = await fetch(url, requestOptions);
|
|
2218
|
-
|
|
2434
|
+
const resp = this.handleResponse(response, 'StartJobResponse');
|
|
2435
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2436
|
+
const headerCb = options.responseHeadersCallback;
|
|
2437
|
+
// on next tick, so we have time to handle the response
|
|
2438
|
+
setTimeout(() => {
|
|
2439
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2440
|
+
}, 0);
|
|
2441
|
+
}
|
|
2442
|
+
return resp;
|
|
2219
2443
|
}
|
|
2220
2444
|
/**
|
|
2221
2445
|
* Preview files and directories in a default dataset for the given prefix, with support for wildcards. This is an internal API used when starting a transformation job.
|
|
@@ -2289,7 +2513,15 @@ class OrganizationDataApi {
|
|
|
2289
2513
|
url = authDefault.url;
|
|
2290
2514
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2291
2515
|
const response = await fetch(url, requestOptions);
|
|
2292
|
-
|
|
2516
|
+
const resp = this.handleResponse(response, 'PreviewDefaultFilesInFolderResponse');
|
|
2517
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2518
|
+
const headerCb = options.responseHeadersCallback;
|
|
2519
|
+
// on next tick, so we have time to handle the response
|
|
2520
|
+
setTimeout(() => {
|
|
2521
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2522
|
+
}, 0);
|
|
2523
|
+
}
|
|
2524
|
+
return resp;
|
|
2293
2525
|
}
|
|
2294
2526
|
/**
|
|
2295
2527
|
* Preview a single file from a data item (same as downloadOrganizationDataFile but w/ content-disposition inline and could be truncated).
|
|
@@ -2365,7 +2597,15 @@ class OrganizationDataApi {
|
|
|
2365
2597
|
url = authDefault.url;
|
|
2366
2598
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2367
2599
|
const response = await fetch(url, requestOptions);
|
|
2368
|
-
|
|
2600
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
2601
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2602
|
+
const headerCb = options.responseHeadersCallback;
|
|
2603
|
+
// on next tick, so we have time to handle the response
|
|
2604
|
+
setTimeout(() => {
|
|
2605
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2606
|
+
}, 0);
|
|
2607
|
+
}
|
|
2608
|
+
return resp;
|
|
2369
2609
|
}
|
|
2370
2610
|
/**
|
|
2371
2611
|
* Update all data items. HEADs all underlying buckets to retrieve the last file information. Use this API after uploading data directly to S3. If your dataset has bucketId and bucketPath set then this will also remove items that have been removed from S3.
|
|
@@ -2435,7 +2675,15 @@ class OrganizationDataApi {
|
|
|
2435
2675
|
url = authDefault.url;
|
|
2436
2676
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2437
2677
|
const response = await fetch(url, requestOptions);
|
|
2438
|
-
|
|
2678
|
+
const resp = this.handleResponse(response, 'StartJobResponse');
|
|
2679
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2680
|
+
const headerCb = options.responseHeadersCallback;
|
|
2681
|
+
// on next tick, so we have time to handle the response
|
|
2682
|
+
setTimeout(() => {
|
|
2683
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2684
|
+
}, 0);
|
|
2685
|
+
}
|
|
2686
|
+
return resp;
|
|
2439
2687
|
}
|
|
2440
2688
|
/**
|
|
2441
2689
|
* Remove a storage bucket and associated datasets. This will render any data in this storage bucket unreachable.
|
|
@@ -2503,7 +2751,15 @@ class OrganizationDataApi {
|
|
|
2503
2751
|
url = authDefault.url;
|
|
2504
2752
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2505
2753
|
const response = await fetch(url, requestOptions);
|
|
2506
|
-
|
|
2754
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2755
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2756
|
+
const headerCb = options.responseHeadersCallback;
|
|
2757
|
+
// on next tick, so we have time to handle the response
|
|
2758
|
+
setTimeout(() => {
|
|
2759
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2760
|
+
}, 0);
|
|
2761
|
+
}
|
|
2762
|
+
return resp;
|
|
2507
2763
|
}
|
|
2508
2764
|
/**
|
|
2509
2765
|
* Rename a file in a dataset
|
|
@@ -2577,7 +2833,15 @@ class OrganizationDataApi {
|
|
|
2577
2833
|
url = authDefault.url;
|
|
2578
2834
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2579
2835
|
const response = await fetch(url, requestOptions);
|
|
2580
|
-
|
|
2836
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2837
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2838
|
+
const headerCb = options.responseHeadersCallback;
|
|
2839
|
+
// on next tick, so we have time to handle the response
|
|
2840
|
+
setTimeout(() => {
|
|
2841
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2842
|
+
}, 0);
|
|
2843
|
+
}
|
|
2844
|
+
return resp;
|
|
2581
2845
|
}
|
|
2582
2846
|
/**
|
|
2583
2847
|
* Updates storage bucket details. This only updates fields that were set in the request body. Before updating the bucket details, it is required to verify the connection using the POST /api/organizations/{organizationId}/buckets/verify endpoint. The verification process: 1. Call the verify endpoint with the new bucket details. 2. Poll the verify endpoint until it responds with `connectionStatus: connected`. 3. If the endpoint responds with `connectionStatus: error`, the verification has failed. Only proceed with updating the bucket details after receiving a `connected` status. The polling interval and timeout should be determined based on your application\'s requirements.
|
|
@@ -2651,7 +2915,15 @@ class OrganizationDataApi {
|
|
|
2651
2915
|
url = authDefault.url;
|
|
2652
2916
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2653
2917
|
const response = await fetch(url, requestOptions);
|
|
2654
|
-
|
|
2918
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2919
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2920
|
+
const headerCb = options.responseHeadersCallback;
|
|
2921
|
+
// on next tick, so we have time to handle the response
|
|
2922
|
+
setTimeout(() => {
|
|
2923
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2924
|
+
}, 0);
|
|
2925
|
+
}
|
|
2926
|
+
return resp;
|
|
2655
2927
|
}
|
|
2656
2928
|
/**
|
|
2657
2929
|
* Update the data item metadata.
|
|
@@ -2725,7 +2997,15 @@ class OrganizationDataApi {
|
|
|
2725
2997
|
url = authDefault.url;
|
|
2726
2998
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2727
2999
|
const response = await fetch(url, requestOptions);
|
|
2728
|
-
|
|
3000
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
3001
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3002
|
+
const headerCb = options.responseHeadersCallback;
|
|
3003
|
+
// on next tick, so we have time to handle the response
|
|
3004
|
+
setTimeout(() => {
|
|
3005
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3006
|
+
}, 0);
|
|
3007
|
+
}
|
|
3008
|
+
return resp;
|
|
2729
3009
|
}
|
|
2730
3010
|
/**
|
|
2731
3011
|
* Set information about a dataset
|
|
@@ -2799,7 +3079,15 @@ class OrganizationDataApi {
|
|
|
2799
3079
|
url = authDefault.url;
|
|
2800
3080
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2801
3081
|
const response = await fetch(url, requestOptions);
|
|
2802
|
-
|
|
3082
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
3083
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3084
|
+
const headerCb = options.responseHeadersCallback;
|
|
3085
|
+
// on next tick, so we have time to handle the response
|
|
3086
|
+
setTimeout(() => {
|
|
3087
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3088
|
+
}, 0);
|
|
3089
|
+
}
|
|
3090
|
+
return resp;
|
|
2803
3091
|
}
|
|
2804
3092
|
/**
|
|
2805
3093
|
* Verify whether we can reach a dataset (and return some random files, used for data sources)
|
|
@@ -2867,7 +3155,15 @@ class OrganizationDataApi {
|
|
|
2867
3155
|
url = authDefault.url;
|
|
2868
3156
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2869
3157
|
const response = await fetch(url, requestOptions);
|
|
2870
|
-
|
|
3158
|
+
const resp = this.handleResponse(response, 'VerifyOrganizationBucketResponse');
|
|
3159
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3160
|
+
const headerCb = options.responseHeadersCallback;
|
|
3161
|
+
// on next tick, so we have time to handle the response
|
|
3162
|
+
setTimeout(() => {
|
|
3163
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3164
|
+
}, 0);
|
|
3165
|
+
}
|
|
3166
|
+
return resp;
|
|
2871
3167
|
}
|
|
2872
3168
|
/**
|
|
2873
3169
|
* Verify whether we can reach a bucket before adding it.
|
|
@@ -2941,7 +3237,15 @@ class OrganizationDataApi {
|
|
|
2941
3237
|
url = authDefault.url;
|
|
2942
3238
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2943
3239
|
const response = await fetch(url, requestOptions);
|
|
2944
|
-
|
|
3240
|
+
const resp = this.handleResponse(response, 'VerifyOrganizationBucketResponse');
|
|
3241
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3242
|
+
const headerCb = options.responseHeadersCallback;
|
|
3243
|
+
// on next tick, so we have time to handle the response
|
|
3244
|
+
setTimeout(() => {
|
|
3245
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3246
|
+
}, 0);
|
|
3247
|
+
}
|
|
3248
|
+
return resp;
|
|
2945
3249
|
}
|
|
2946
3250
|
/**
|
|
2947
3251
|
* Verify connectivity to a storage bucket and optionally list its contents. This endpoint allows you to: 1. Check if the provided bucket credentials are valid and the bucket is accessible. 2. Optionally list files in the bucket up to a specified limit. 3. Validate the bucket configuration before adding it to the organization. The request can include details such as the bucket name, region, credentials, and listing options. The response provides information about the bucket\'s accessibility and, if requested, a list of files in the bucket. Important note on verification process: - For S3-compatible storage backends: Verification is expected to be immediate. - For Azure buckets: Verification takes longer. Users are required to poll this endpoint until the connectionStatus changes from \'connecting\' to \'connected\'. When dealing with Azure buckets, implement a polling mechanism to check the status periodically until it\'s confirmed as connected.
|
|
@@ -3009,7 +3313,15 @@ class OrganizationDataApi {
|
|
|
3009
3313
|
url = authDefault.url;
|
|
3010
3314
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3011
3315
|
const response = await fetch(url, requestOptions);
|
|
3012
|
-
|
|
3316
|
+
const resp = this.handleResponse(response, 'VerifyOrganizationBucketResponse');
|
|
3317
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3318
|
+
const headerCb = options.responseHeadersCallback;
|
|
3319
|
+
// on next tick, so we have time to handle the response
|
|
3320
|
+
setTimeout(() => {
|
|
3321
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3322
|
+
}, 0);
|
|
3323
|
+
}
|
|
3324
|
+
return resp;
|
|
3013
3325
|
}
|
|
3014
3326
|
/**
|
|
3015
3327
|
* View a file that\'s located in a dataset (requires JWT auth). File might be converted (e.g. Parquet) or truncated (e.g. CSV).
|
|
@@ -3085,7 +3397,15 @@ class OrganizationDataApi {
|
|
|
3085
3397
|
url = authDefault.url;
|
|
3086
3398
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3087
3399
|
const response = await fetch(url, requestOptions);
|
|
3088
|
-
|
|
3400
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
3401
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3402
|
+
const headerCb = options.responseHeadersCallback;
|
|
3403
|
+
// on next tick, so we have time to handle the response
|
|
3404
|
+
setTimeout(() => {
|
|
3405
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3406
|
+
}, 0);
|
|
3407
|
+
}
|
|
3408
|
+
return resp;
|
|
3089
3409
|
}
|
|
3090
3410
|
}
|
|
3091
3411
|
exports.OrganizationDataApi = OrganizationDataApi;
|