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
|
@@ -158,7 +158,15 @@ class UserApi {
|
|
|
158
158
|
url = authDefault.url;
|
|
159
159
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
160
160
|
const response = await fetch(url, requestOptions);
|
|
161
|
-
|
|
161
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
162
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
163
|
+
const headerCb = options.responseHeadersCallback;
|
|
164
|
+
// on next tick, so we have time to handle the response
|
|
165
|
+
setTimeout(() => {
|
|
166
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
167
|
+
}, 0);
|
|
168
|
+
}
|
|
169
|
+
return resp;
|
|
162
170
|
}
|
|
163
171
|
/**
|
|
164
172
|
* Accept Terms of Service.
|
|
@@ -214,7 +222,15 @@ class UserApi {
|
|
|
214
222
|
url = authDefault.url;
|
|
215
223
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
216
224
|
const response = await fetch(url, requestOptions);
|
|
217
|
-
|
|
225
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
226
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
227
|
+
const headerCb = options.responseHeadersCallback;
|
|
228
|
+
// on next tick, so we have time to handle the response
|
|
229
|
+
setTimeout(() => {
|
|
230
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
231
|
+
}, 0);
|
|
232
|
+
}
|
|
233
|
+
return resp;
|
|
218
234
|
}
|
|
219
235
|
/**
|
|
220
236
|
* Activate the current user account (requires an activation code). This function is only available through a JWT token.
|
|
@@ -276,7 +292,15 @@ class UserApi {
|
|
|
276
292
|
url = authDefault.url;
|
|
277
293
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
278
294
|
const response = await fetch(url, requestOptions);
|
|
279
|
-
|
|
295
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
296
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
297
|
+
const headerCb = options.responseHeadersCallback;
|
|
298
|
+
// on next tick, so we have time to handle the response
|
|
299
|
+
setTimeout(() => {
|
|
300
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
301
|
+
}, 0);
|
|
302
|
+
}
|
|
303
|
+
return resp;
|
|
280
304
|
}
|
|
281
305
|
/**
|
|
282
306
|
* Activate a user account (requires an activation code). This function is only available through a JWT token.
|
|
@@ -344,7 +368,15 @@ class UserApi {
|
|
|
344
368
|
url = authDefault.url;
|
|
345
369
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
346
370
|
const response = await fetch(url, requestOptions);
|
|
347
|
-
|
|
371
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
372
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
373
|
+
const headerCb = options.responseHeadersCallback;
|
|
374
|
+
// on next tick, so we have time to handle the response
|
|
375
|
+
setTimeout(() => {
|
|
376
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
377
|
+
}, 0);
|
|
378
|
+
}
|
|
379
|
+
return resp;
|
|
348
380
|
}
|
|
349
381
|
/**
|
|
350
382
|
* Activate a user that was created by a third party. This function is only available through a JWT token.
|
|
@@ -406,7 +438,15 @@ class UserApi {
|
|
|
406
438
|
url = authDefault.url;
|
|
407
439
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
408
440
|
const response = await fetch(url, requestOptions);
|
|
409
|
-
|
|
441
|
+
const resp = this.handleResponse(response, 'GetJWTResponse');
|
|
442
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
443
|
+
const headerCb = options.responseHeadersCallback;
|
|
444
|
+
// on next tick, so we have time to handle the response
|
|
445
|
+
setTimeout(() => {
|
|
446
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
447
|
+
}, 0);
|
|
448
|
+
}
|
|
449
|
+
return resp;
|
|
410
450
|
}
|
|
411
451
|
/**
|
|
412
452
|
* Change the password for the current user account. This function is only available through a JWT token.
|
|
@@ -468,7 +508,15 @@ class UserApi {
|
|
|
468
508
|
url = authDefault.url;
|
|
469
509
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
470
510
|
const response = await fetch(url, requestOptions);
|
|
471
|
-
|
|
511
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
512
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
513
|
+
const headerCb = options.responseHeadersCallback;
|
|
514
|
+
// on next tick, so we have time to handle the response
|
|
515
|
+
setTimeout(() => {
|
|
516
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
517
|
+
}, 0);
|
|
518
|
+
}
|
|
519
|
+
return resp;
|
|
472
520
|
}
|
|
473
521
|
/**
|
|
474
522
|
* Change the password for a user account. This function is only available through a JWT token.
|
|
@@ -536,7 +584,15 @@ class UserApi {
|
|
|
536
584
|
url = authDefault.url;
|
|
537
585
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
538
586
|
const response = await fetch(url, requestOptions);
|
|
539
|
-
|
|
587
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
588
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
589
|
+
const headerCb = options.responseHeadersCallback;
|
|
590
|
+
// on next tick, so we have time to handle the response
|
|
591
|
+
setTimeout(() => {
|
|
592
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
593
|
+
}, 0);
|
|
594
|
+
}
|
|
595
|
+
return resp;
|
|
540
596
|
}
|
|
541
597
|
/**
|
|
542
598
|
* Convert current evaluation user account to regular account.
|
|
@@ -598,7 +654,15 @@ class UserApi {
|
|
|
598
654
|
url = authDefault.url;
|
|
599
655
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
600
656
|
const response = await fetch(url, requestOptions);
|
|
601
|
-
|
|
657
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
658
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
659
|
+
const headerCb = options.responseHeadersCallback;
|
|
660
|
+
// on next tick, so we have time to handle the response
|
|
661
|
+
setTimeout(() => {
|
|
662
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
663
|
+
}, 0);
|
|
664
|
+
}
|
|
665
|
+
return resp;
|
|
602
666
|
}
|
|
603
667
|
/**
|
|
604
668
|
* Create a developer profile for the current active user.
|
|
@@ -654,7 +718,15 @@ class UserApi {
|
|
|
654
718
|
url = authDefault.url;
|
|
655
719
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
656
720
|
const response = await fetch(url, requestOptions);
|
|
657
|
-
|
|
721
|
+
const resp = this.handleResponse(response, 'CreateDeveloperProfileResponse');
|
|
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;
|
|
658
730
|
}
|
|
659
731
|
/**
|
|
660
732
|
* Creates an enterprise trial user and a new trial organization, and redirects the user to the new organization. This API is internal (it requires some signed fields), sign up at https://studio.edgeimpulse.com/signup instead.
|
|
@@ -704,7 +776,15 @@ class UserApi {
|
|
|
704
776
|
url = authDefault.url;
|
|
705
777
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
706
778
|
const response = await fetch(url, requestOptions);
|
|
707
|
-
|
|
779
|
+
const resp = this.handleResponse(response, 'CreateEnterpriseTrialResponse');
|
|
780
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
781
|
+
const headerCb = options.responseHeadersCallback;
|
|
782
|
+
// on next tick, so we have time to handle the response
|
|
783
|
+
setTimeout(() => {
|
|
784
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
785
|
+
}, 0);
|
|
786
|
+
}
|
|
787
|
+
return resp;
|
|
708
788
|
}
|
|
709
789
|
/**
|
|
710
790
|
* Create a new user for the Professional Plan and a new project. Note that the Professional plan will not be enabled until the payment is successful. This API is internal (it requires some signed fields), sign up at https://studio.edgeimpulse.com/signup instead.
|
|
@@ -754,7 +834,15 @@ class UserApi {
|
|
|
754
834
|
url = authDefault.url;
|
|
755
835
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
756
836
|
const response = await fetch(url, requestOptions);
|
|
757
|
-
|
|
837
|
+
const resp = this.handleResponse(response, 'CreateUserResponse');
|
|
838
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
839
|
+
const headerCb = options.responseHeadersCallback;
|
|
840
|
+
// on next tick, so we have time to handle the response
|
|
841
|
+
setTimeout(() => {
|
|
842
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
843
|
+
}, 0);
|
|
844
|
+
}
|
|
845
|
+
return resp;
|
|
758
846
|
}
|
|
759
847
|
/**
|
|
760
848
|
* Create a new user and project. This API is no longer publicly available. Sign up at https://studio.edgeimpulse.com/signup instead.
|
|
@@ -804,7 +892,15 @@ class UserApi {
|
|
|
804
892
|
url = authDefault.url;
|
|
805
893
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
806
894
|
const response = await fetch(url, requestOptions);
|
|
807
|
-
|
|
895
|
+
const resp = this.handleResponse(response, 'CreateUserResponse');
|
|
896
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
897
|
+
const headerCb = options.responseHeadersCallback;
|
|
898
|
+
// on next tick, so we have time to handle the response
|
|
899
|
+
setTimeout(() => {
|
|
900
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
901
|
+
}, 0);
|
|
902
|
+
}
|
|
903
|
+
return resp;
|
|
808
904
|
}
|
|
809
905
|
/**
|
|
810
906
|
* Delete a user. This function is only available through a JWT token, and can only remove the current user.
|
|
@@ -866,7 +962,15 @@ class UserApi {
|
|
|
866
962
|
url = authDefault.url;
|
|
867
963
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
868
964
|
const response = await fetch(url, requestOptions);
|
|
869
|
-
|
|
965
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
966
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
967
|
+
const headerCb = options.responseHeadersCallback;
|
|
968
|
+
// on next tick, so we have time to handle the response
|
|
969
|
+
setTimeout(() => {
|
|
970
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
971
|
+
}, 0);
|
|
972
|
+
}
|
|
973
|
+
return resp;
|
|
870
974
|
}
|
|
871
975
|
/**
|
|
872
976
|
* Delete user profile photo. This function is only available through a JWT token.
|
|
@@ -922,7 +1026,15 @@ class UserApi {
|
|
|
922
1026
|
url = authDefault.url;
|
|
923
1027
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
924
1028
|
const response = await fetch(url, requestOptions);
|
|
925
|
-
|
|
1029
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
1030
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1031
|
+
const headerCb = options.responseHeadersCallback;
|
|
1032
|
+
// on next tick, so we have time to handle the response
|
|
1033
|
+
setTimeout(() => {
|
|
1034
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1035
|
+
}, 0);
|
|
1036
|
+
}
|
|
1037
|
+
return resp;
|
|
926
1038
|
}
|
|
927
1039
|
/**
|
|
928
1040
|
* Delete a user. This function is only available through a JWT token, and can only remove the current user.
|
|
@@ -990,7 +1102,15 @@ class UserApi {
|
|
|
990
1102
|
url = authDefault.url;
|
|
991
1103
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
992
1104
|
const response = await fetch(url, requestOptions);
|
|
993
|
-
|
|
1105
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
1106
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1107
|
+
const headerCb = options.responseHeadersCallback;
|
|
1108
|
+
// on next tick, so we have time to handle the response
|
|
1109
|
+
setTimeout(() => {
|
|
1110
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1111
|
+
}, 0);
|
|
1112
|
+
}
|
|
1113
|
+
return resp;
|
|
994
1114
|
}
|
|
995
1115
|
/**
|
|
996
1116
|
* Get information about the current user. This function is only available through a JWT token.
|
|
@@ -1050,7 +1170,15 @@ class UserApi {
|
|
|
1050
1170
|
url = authDefault.url;
|
|
1051
1171
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1052
1172
|
const response = await fetch(url, requestOptions);
|
|
1053
|
-
|
|
1173
|
+
const resp = this.handleResponse(response, 'GetUserResponse');
|
|
1174
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1175
|
+
const headerCb = options.responseHeadersCallback;
|
|
1176
|
+
// on next tick, so we have time to handle the response
|
|
1177
|
+
setTimeout(() => {
|
|
1178
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1179
|
+
}, 0);
|
|
1180
|
+
}
|
|
1181
|
+
return resp;
|
|
1054
1182
|
}
|
|
1055
1183
|
/**
|
|
1056
1184
|
* Get projects for the current user. This returns all projects regardless of whitelabel. This function is only available through a JWT token.
|
|
@@ -1106,7 +1234,15 @@ class UserApi {
|
|
|
1106
1234
|
url = authDefault.url;
|
|
1107
1235
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1108
1236
|
const response = await fetch(url, requestOptions);
|
|
1109
|
-
|
|
1237
|
+
const resp = this.handleResponse(response, 'GetUserProjectsResponse');
|
|
1238
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1239
|
+
const headerCb = options.responseHeadersCallback;
|
|
1240
|
+
// on next tick, so we have time to handle the response
|
|
1241
|
+
setTimeout(() => {
|
|
1242
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1243
|
+
}, 0);
|
|
1244
|
+
}
|
|
1245
|
+
return resp;
|
|
1110
1246
|
}
|
|
1111
1247
|
/**
|
|
1112
1248
|
* Get information about a user. This function is only available through a JWT token.
|
|
@@ -1168,7 +1304,15 @@ class UserApi {
|
|
|
1168
1304
|
url = authDefault.url;
|
|
1169
1305
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1170
1306
|
const response = await fetch(url, requestOptions);
|
|
1171
|
-
|
|
1307
|
+
const resp = this.handleResponse(response, 'GetUserResponse');
|
|
1308
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1309
|
+
const headerCb = options.responseHeadersCallback;
|
|
1310
|
+
// on next tick, so we have time to handle the response
|
|
1311
|
+
setTimeout(() => {
|
|
1312
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1313
|
+
}, 0);
|
|
1314
|
+
}
|
|
1315
|
+
return resp;
|
|
1172
1316
|
}
|
|
1173
1317
|
/**
|
|
1174
1318
|
* Get information about a user through an activation code. This function is only available through a JWT token.
|
|
@@ -1230,7 +1374,15 @@ class UserApi {
|
|
|
1230
1374
|
url = authDefault.url;
|
|
1231
1375
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1232
1376
|
const response = await fetch(url, requestOptions);
|
|
1233
|
-
|
|
1377
|
+
const resp = this.handleResponse(response, 'GetUserResponse');
|
|
1378
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1379
|
+
const headerCb = options.responseHeadersCallback;
|
|
1380
|
+
// on next tick, so we have time to handle the response
|
|
1381
|
+
setTimeout(() => {
|
|
1382
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1383
|
+
}, 0);
|
|
1384
|
+
}
|
|
1385
|
+
return resp;
|
|
1234
1386
|
}
|
|
1235
1387
|
/**
|
|
1236
1388
|
* Tells whether a user is registered and whether it needs to set its password.
|
|
@@ -1280,7 +1432,15 @@ class UserApi {
|
|
|
1280
1432
|
url = authDefault.url;
|
|
1281
1433
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1282
1434
|
const response = await fetch(url, requestOptions);
|
|
1283
|
-
|
|
1435
|
+
const resp = this.handleResponse(response, 'GetUserNeedToSetPasswordResponse');
|
|
1436
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1437
|
+
const headerCb = options.responseHeadersCallback;
|
|
1438
|
+
// on next tick, so we have time to handle the response
|
|
1439
|
+
setTimeout(() => {
|
|
1440
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1441
|
+
}, 0);
|
|
1442
|
+
}
|
|
1443
|
+
return resp;
|
|
1284
1444
|
}
|
|
1285
1445
|
/**
|
|
1286
1446
|
* Get a list of all emails sent by Edge Impulse to the current user. This function is only available through a JWT token, and is not available for all users.
|
|
@@ -1336,7 +1496,15 @@ class UserApi {
|
|
|
1336
1496
|
url = authDefault.url;
|
|
1337
1497
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1338
1498
|
const response = await fetch(url, requestOptions);
|
|
1339
|
-
|
|
1499
|
+
const resp = this.handleResponse(response, 'ListEmailResponse');
|
|
1500
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1501
|
+
const headerCb = options.responseHeadersCallback;
|
|
1502
|
+
// on next tick, so we have time to handle the response
|
|
1503
|
+
setTimeout(() => {
|
|
1504
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1505
|
+
}, 0);
|
|
1506
|
+
}
|
|
1507
|
+
return resp;
|
|
1340
1508
|
}
|
|
1341
1509
|
/**
|
|
1342
1510
|
* Get a list of all emails sent by Edge Impulse to a user. This function is only available through a JWT token, and is not available for all users.
|
|
@@ -1398,7 +1566,15 @@ class UserApi {
|
|
|
1398
1566
|
url = authDefault.url;
|
|
1399
1567
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1400
1568
|
const response = await fetch(url, requestOptions);
|
|
1401
|
-
|
|
1569
|
+
const resp = this.handleResponse(response, 'ListEmailResponse');
|
|
1570
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1571
|
+
const headerCb = options.responseHeadersCallback;
|
|
1572
|
+
// on next tick, so we have time to handle the response
|
|
1573
|
+
setTimeout(() => {
|
|
1574
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1575
|
+
}, 0);
|
|
1576
|
+
}
|
|
1577
|
+
return resp;
|
|
1402
1578
|
}
|
|
1403
1579
|
/**
|
|
1404
1580
|
* Get a list of all enterprise trials for a user. This function is only available through a JWT token.
|
|
@@ -1460,7 +1636,15 @@ class UserApi {
|
|
|
1460
1636
|
url = authDefault.url;
|
|
1461
1637
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1462
1638
|
const response = await fetch(url, requestOptions);
|
|
1463
|
-
|
|
1639
|
+
const resp = this.handleResponse(response, 'ListEnterpriseTrialsResponse');
|
|
1640
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1641
|
+
const headerCb = options.responseHeadersCallback;
|
|
1642
|
+
// on next tick, so we have time to handle the response
|
|
1643
|
+
setTimeout(() => {
|
|
1644
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1645
|
+
}, 0);
|
|
1646
|
+
}
|
|
1647
|
+
return resp;
|
|
1464
1648
|
}
|
|
1465
1649
|
/**
|
|
1466
1650
|
* List all organizational storage buckets that the current user has access to. This function is only available through a JWT token.
|
|
@@ -1516,7 +1700,15 @@ class UserApi {
|
|
|
1516
1700
|
url = authDefault.url;
|
|
1517
1701
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1518
1702
|
const response = await fetch(url, requestOptions);
|
|
1519
|
-
|
|
1703
|
+
const resp = this.handleResponse(response, 'ListOrganizationBucketsUserResponse');
|
|
1704
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1705
|
+
const headerCb = options.responseHeadersCallback;
|
|
1706
|
+
// on next tick, so we have time to handle the response
|
|
1707
|
+
setTimeout(() => {
|
|
1708
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1709
|
+
}, 0);
|
|
1710
|
+
}
|
|
1711
|
+
return resp;
|
|
1520
1712
|
}
|
|
1521
1713
|
/**
|
|
1522
1714
|
* List all organizational storage buckets that a user has access to. This function is only available through a JWT token.
|
|
@@ -1578,7 +1770,15 @@ class UserApi {
|
|
|
1578
1770
|
url = authDefault.url;
|
|
1579
1771
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1580
1772
|
const response = await fetch(url, requestOptions);
|
|
1581
|
-
|
|
1773
|
+
const resp = this.handleResponse(response, 'ListOrganizationBucketsUserResponse');
|
|
1774
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1775
|
+
const headerCb = options.responseHeadersCallback;
|
|
1776
|
+
// on next tick, so we have time to handle the response
|
|
1777
|
+
setTimeout(() => {
|
|
1778
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1779
|
+
}, 0);
|
|
1780
|
+
}
|
|
1781
|
+
return resp;
|
|
1582
1782
|
}
|
|
1583
1783
|
/**
|
|
1584
1784
|
* List all organizations that the current user is a member of. This function is only available through a JWT token.
|
|
@@ -1634,7 +1834,15 @@ class UserApi {
|
|
|
1634
1834
|
url = authDefault.url;
|
|
1635
1835
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1636
1836
|
const response = await fetch(url, requestOptions);
|
|
1637
|
-
|
|
1837
|
+
const resp = this.handleResponse(response, 'ListOrganizationsResponse');
|
|
1838
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1839
|
+
const headerCb = options.responseHeadersCallback;
|
|
1840
|
+
// on next tick, so we have time to handle the response
|
|
1841
|
+
setTimeout(() => {
|
|
1842
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1843
|
+
}, 0);
|
|
1844
|
+
}
|
|
1845
|
+
return resp;
|
|
1638
1846
|
}
|
|
1639
1847
|
/**
|
|
1640
1848
|
* List all organizations for a user. This function is only available through a JWT token.
|
|
@@ -1696,7 +1904,15 @@ class UserApi {
|
|
|
1696
1904
|
url = authDefault.url;
|
|
1697
1905
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1698
1906
|
const response = await fetch(url, requestOptions);
|
|
1699
|
-
|
|
1907
|
+
const resp = this.handleResponse(response, 'ListOrganizationsResponse');
|
|
1908
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1909
|
+
const headerCb = options.responseHeadersCallback;
|
|
1910
|
+
// on next tick, so we have time to handle the response
|
|
1911
|
+
setTimeout(() => {
|
|
1912
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1913
|
+
}, 0);
|
|
1914
|
+
}
|
|
1915
|
+
return resp;
|
|
1700
1916
|
}
|
|
1701
1917
|
/**
|
|
1702
1918
|
* Request a new activation code for the current user. This function is only available through a JWT token.
|
|
@@ -1752,7 +1968,15 @@ class UserApi {
|
|
|
1752
1968
|
url = authDefault.url;
|
|
1753
1969
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1754
1970
|
const response = await fetch(url, requestOptions);
|
|
1755
|
-
|
|
1971
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
1972
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1973
|
+
const headerCb = options.responseHeadersCallback;
|
|
1974
|
+
// on next tick, so we have time to handle the response
|
|
1975
|
+
setTimeout(() => {
|
|
1976
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1977
|
+
}, 0);
|
|
1978
|
+
}
|
|
1979
|
+
return resp;
|
|
1756
1980
|
}
|
|
1757
1981
|
/**
|
|
1758
1982
|
* Request a new activation code. This function is only available through a JWT token.
|
|
@@ -1814,7 +2038,15 @@ class UserApi {
|
|
|
1814
2038
|
url = authDefault.url;
|
|
1815
2039
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1816
2040
|
const response = await fetch(url, requestOptions);
|
|
1817
|
-
|
|
2041
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2042
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2043
|
+
const headerCb = options.responseHeadersCallback;
|
|
2044
|
+
// on next tick, so we have time to handle the response
|
|
2045
|
+
setTimeout(() => {
|
|
2046
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2047
|
+
}, 0);
|
|
2048
|
+
}
|
|
2049
|
+
return resp;
|
|
1818
2050
|
}
|
|
1819
2051
|
/**
|
|
1820
2052
|
* Request a password reset link for a user.
|
|
@@ -1864,7 +2096,15 @@ class UserApi {
|
|
|
1864
2096
|
url = authDefault.url;
|
|
1865
2097
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1866
2098
|
const response = await fetch(url, requestOptions);
|
|
1867
|
-
|
|
2099
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2100
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2101
|
+
const headerCb = options.responseHeadersCallback;
|
|
2102
|
+
// on next tick, so we have time to handle the response
|
|
2103
|
+
setTimeout(() => {
|
|
2104
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2105
|
+
}, 0);
|
|
2106
|
+
}
|
|
2107
|
+
return resp;
|
|
1868
2108
|
}
|
|
1869
2109
|
/**
|
|
1870
2110
|
* Reset the password for a user.
|
|
@@ -1914,7 +2154,15 @@ class UserApi {
|
|
|
1914
2154
|
url = authDefault.url;
|
|
1915
2155
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1916
2156
|
const response = await fetch(url, requestOptions);
|
|
1917
|
-
|
|
2157
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2158
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2159
|
+
const headerCb = options.responseHeadersCallback;
|
|
2160
|
+
// on next tick, so we have time to handle the response
|
|
2161
|
+
setTimeout(() => {
|
|
2162
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2163
|
+
}, 0);
|
|
2164
|
+
}
|
|
2165
|
+
return resp;
|
|
1918
2166
|
}
|
|
1919
2167
|
/**
|
|
1920
2168
|
* Send feedback to Edge Impulse or get in touch with sales.
|
|
@@ -1982,7 +2230,15 @@ class UserApi {
|
|
|
1982
2230
|
url = authDefault.url;
|
|
1983
2231
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1984
2232
|
const response = await fetch(url, requestOptions);
|
|
1985
|
-
|
|
2233
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2234
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2235
|
+
const headerCb = options.responseHeadersCallback;
|
|
2236
|
+
// on next tick, so we have time to handle the response
|
|
2237
|
+
setTimeout(() => {
|
|
2238
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2239
|
+
}, 0);
|
|
2240
|
+
}
|
|
2241
|
+
return resp;
|
|
1986
2242
|
}
|
|
1987
2243
|
/**
|
|
1988
2244
|
* Send an upgrade to Enterprise request to Edge Impulse.
|
|
@@ -2050,7 +2306,15 @@ class UserApi {
|
|
|
2050
2306
|
url = authDefault.url;
|
|
2051
2307
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2052
2308
|
const response = await fetch(url, requestOptions);
|
|
2053
|
-
|
|
2309
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2310
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2311
|
+
const headerCb = options.responseHeadersCallback;
|
|
2312
|
+
// on next tick, so we have time to handle the response
|
|
2313
|
+
setTimeout(() => {
|
|
2314
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2315
|
+
}, 0);
|
|
2316
|
+
}
|
|
2317
|
+
return resp;
|
|
2054
2318
|
}
|
|
2055
2319
|
/**
|
|
2056
2320
|
* Set the password for a new SSO user. This function is only available through an SSO access token.
|
|
@@ -2106,7 +2370,15 @@ class UserApi {
|
|
|
2106
2370
|
url = authDefault.url;
|
|
2107
2371
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2108
2372
|
const response = await fetch(url, requestOptions);
|
|
2109
|
-
|
|
2373
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2374
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2375
|
+
const headerCb = options.responseHeadersCallback;
|
|
2376
|
+
// on next tick, so we have time to handle the response
|
|
2377
|
+
setTimeout(() => {
|
|
2378
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2379
|
+
}, 0);
|
|
2380
|
+
}
|
|
2381
|
+
return resp;
|
|
2110
2382
|
}
|
|
2111
2383
|
/**
|
|
2112
2384
|
* Create an enterprise trial for the current user. Users can only go through a trial once.
|
|
@@ -2168,7 +2440,15 @@ class UserApi {
|
|
|
2168
2440
|
url = authDefault.url;
|
|
2169
2441
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2170
2442
|
const response = await fetch(url, requestOptions);
|
|
2171
|
-
|
|
2443
|
+
const resp = this.handleResponse(response, 'CreateEnterpriseTrialResponse');
|
|
2444
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2445
|
+
const headerCb = options.responseHeadersCallback;
|
|
2446
|
+
// on next tick, so we have time to handle the response
|
|
2447
|
+
setTimeout(() => {
|
|
2448
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2449
|
+
}, 0);
|
|
2450
|
+
}
|
|
2451
|
+
return resp;
|
|
2172
2452
|
}
|
|
2173
2453
|
/**
|
|
2174
2454
|
* Update user properties such as name. This function is only available through a JWT token.
|
|
@@ -2230,7 +2510,15 @@ class UserApi {
|
|
|
2230
2510
|
url = authDefault.url;
|
|
2231
2511
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2232
2512
|
const response = await fetch(url, requestOptions);
|
|
2233
|
-
|
|
2513
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2514
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2515
|
+
const headerCb = options.responseHeadersCallback;
|
|
2516
|
+
// on next tick, so we have time to handle the response
|
|
2517
|
+
setTimeout(() => {
|
|
2518
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2519
|
+
}, 0);
|
|
2520
|
+
}
|
|
2521
|
+
return resp;
|
|
2234
2522
|
}
|
|
2235
2523
|
/**
|
|
2236
2524
|
* Update user properties such as name. This function is only available through a JWT token.
|
|
@@ -2298,7 +2586,15 @@ class UserApi {
|
|
|
2298
2586
|
url = authDefault.url;
|
|
2299
2587
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2300
2588
|
const response = await fetch(url, requestOptions);
|
|
2301
|
-
|
|
2589
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2590
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2591
|
+
const headerCb = options.responseHeadersCallback;
|
|
2592
|
+
// on next tick, so we have time to handle the response
|
|
2593
|
+
setTimeout(() => {
|
|
2594
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2595
|
+
}, 0);
|
|
2596
|
+
}
|
|
2597
|
+
return resp;
|
|
2302
2598
|
}
|
|
2303
2599
|
/**
|
|
2304
2600
|
* Upload a photo for the current user. This function is only available through a JWT token.
|
|
@@ -2369,7 +2665,15 @@ class UserApi {
|
|
|
2369
2665
|
url = authDefault.url;
|
|
2370
2666
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2371
2667
|
const response = await fetch(url, requestOptions);
|
|
2372
|
-
|
|
2668
|
+
const resp = this.handleResponse(response, 'UploadUserPhotoResponse');
|
|
2669
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2670
|
+
const headerCb = options.responseHeadersCallback;
|
|
2671
|
+
// on next tick, so we have time to handle the response
|
|
2672
|
+
setTimeout(() => {
|
|
2673
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2674
|
+
}, 0);
|
|
2675
|
+
}
|
|
2676
|
+
return resp;
|
|
2373
2677
|
}
|
|
2374
2678
|
/**
|
|
2375
2679
|
* Upload a photo for a user. This function is only available through a JWT token, and is not available for all users.
|
|
@@ -2446,7 +2750,15 @@ class UserApi {
|
|
|
2446
2750
|
url = authDefault.url;
|
|
2447
2751
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2448
2752
|
const response = await fetch(url, requestOptions);
|
|
2449
|
-
|
|
2753
|
+
const resp = this.handleResponse(response, 'UploadUserPhotoResponse');
|
|
2754
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2755
|
+
const headerCb = options.responseHeadersCallback;
|
|
2756
|
+
// on next tick, so we have time to handle the response
|
|
2757
|
+
setTimeout(() => {
|
|
2758
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2759
|
+
}, 0);
|
|
2760
|
+
}
|
|
2761
|
+
return resp;
|
|
2450
2762
|
}
|
|
2451
2763
|
/**
|
|
2452
2764
|
* Cancel the current subscription.
|
|
@@ -2508,7 +2820,15 @@ class UserApi {
|
|
|
2508
2820
|
url = authDefault.url;
|
|
2509
2821
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2510
2822
|
const response = await fetch(url, requestOptions);
|
|
2511
|
-
|
|
2823
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2824
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2825
|
+
const headerCb = options.responseHeadersCallback;
|
|
2826
|
+
// on next tick, so we have time to handle the response
|
|
2827
|
+
setTimeout(() => {
|
|
2828
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2829
|
+
}, 0);
|
|
2830
|
+
}
|
|
2831
|
+
return resp;
|
|
2512
2832
|
}
|
|
2513
2833
|
/**
|
|
2514
2834
|
* Disable MFA on this account using an TOTP token.
|
|
@@ -2570,7 +2890,15 @@ class UserApi {
|
|
|
2570
2890
|
url = authDefault.url;
|
|
2571
2891
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2572
2892
|
const response = await fetch(url, requestOptions);
|
|
2573
|
-
|
|
2893
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2894
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2895
|
+
const headerCb = options.responseHeadersCallback;
|
|
2896
|
+
// on next tick, so we have time to handle the response
|
|
2897
|
+
setTimeout(() => {
|
|
2898
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2899
|
+
}, 0);
|
|
2900
|
+
}
|
|
2901
|
+
return resp;
|
|
2574
2902
|
}
|
|
2575
2903
|
/**
|
|
2576
2904
|
* Dismiss a notification
|
|
@@ -2632,7 +2960,15 @@ class UserApi {
|
|
|
2632
2960
|
url = authDefault.url;
|
|
2633
2961
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2634
2962
|
const response = await fetch(url, requestOptions);
|
|
2635
|
-
|
|
2963
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
2964
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
2965
|
+
const headerCb = options.responseHeadersCallback;
|
|
2966
|
+
// on next tick, so we have time to handle the response
|
|
2967
|
+
setTimeout(() => {
|
|
2968
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
2969
|
+
}, 0);
|
|
2970
|
+
}
|
|
2971
|
+
return resp;
|
|
2636
2972
|
}
|
|
2637
2973
|
/**
|
|
2638
2974
|
* Creates a new MFA key, only allowed if the user has no MFA configured. TOTP tokens use SHA-1 algorithm.
|
|
@@ -2688,7 +3024,15 @@ class UserApi {
|
|
|
2688
3024
|
url = authDefault.url;
|
|
2689
3025
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2690
3026
|
const response = await fetch(url, requestOptions);
|
|
2691
|
-
|
|
3027
|
+
const resp = this.handleResponse(response, 'UserGenerateNewMfaKeyResponse');
|
|
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;
|
|
2692
3036
|
}
|
|
2693
3037
|
/**
|
|
2694
3038
|
* Get billable compute metrics for a user. This function is only available to users with an active subscription.
|
|
@@ -2744,7 +3088,15 @@ class UserApi {
|
|
|
2744
3088
|
url = authDefault.url;
|
|
2745
3089
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2746
3090
|
const response = await fetch(url, requestOptions);
|
|
2747
|
-
|
|
3091
|
+
const resp = this.handleResponse(response, 'UserSubscriptionMetricsResponse');
|
|
3092
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3093
|
+
const headerCb = options.responseHeadersCallback;
|
|
3094
|
+
// on next tick, so we have time to handle the response
|
|
3095
|
+
setTimeout(() => {
|
|
3096
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3097
|
+
}, 0);
|
|
3098
|
+
}
|
|
3099
|
+
return resp;
|
|
2748
3100
|
}
|
|
2749
3101
|
/**
|
|
2750
3102
|
* Enable MFA on this account using an TOTP token. First create a new key via `userGenerateNewTotpMfaKey`.
|
|
@@ -2806,7 +3158,15 @@ class UserApi {
|
|
|
2806
3158
|
url = authDefault.url;
|
|
2807
3159
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2808
3160
|
const response = await fetch(url, requestOptions);
|
|
2809
|
-
|
|
3161
|
+
const resp = this.handleResponse(response, 'UserSetTotpMfaKeyResponse');
|
|
3162
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3163
|
+
const headerCb = options.responseHeadersCallback;
|
|
3164
|
+
// on next tick, so we have time to handle the response
|
|
3165
|
+
setTimeout(() => {
|
|
3166
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3167
|
+
}, 0);
|
|
3168
|
+
}
|
|
3169
|
+
return resp;
|
|
2810
3170
|
}
|
|
2811
3171
|
/**
|
|
2812
3172
|
* Stop a pending cancellation. If you schedule a subscription to be canceled, and the subscription hasn\'t yet reached the end of the billing period, you can stop the cancellation. After a subscription has been canceled, you can\'t reactivate it.
|
|
@@ -2862,7 +3222,15 @@ class UserApi {
|
|
|
2862
3222
|
url = authDefault.url;
|
|
2863
3223
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2864
3224
|
const response = await fetch(url, requestOptions);
|
|
2865
|
-
|
|
3225
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
3226
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3227
|
+
const headerCb = options.responseHeadersCallback;
|
|
3228
|
+
// on next tick, so we have time to handle the response
|
|
3229
|
+
setTimeout(() => {
|
|
3230
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3231
|
+
}, 0);
|
|
3232
|
+
}
|
|
3233
|
+
return resp;
|
|
2866
3234
|
}
|
|
2867
3235
|
/**
|
|
2868
3236
|
* Upgrade the current subscription.
|
|
@@ -2916,7 +3284,15 @@ class UserApi {
|
|
|
2916
3284
|
url = authDefault.url;
|
|
2917
3285
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2918
3286
|
const response = await fetch(url, requestOptions);
|
|
2919
|
-
|
|
3287
|
+
const resp = this.handleResponse(response, undefined);
|
|
3288
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3289
|
+
const headerCb = options.responseHeadersCallback;
|
|
3290
|
+
// on next tick, so we have time to handle the response
|
|
3291
|
+
setTimeout(() => {
|
|
3292
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3293
|
+
}, 0);
|
|
3294
|
+
}
|
|
3295
|
+
return resp;
|
|
2920
3296
|
}
|
|
2921
3297
|
/**
|
|
2922
3298
|
* Verify whether the reset password code for the user is valid.
|
|
@@ -2966,7 +3342,15 @@ class UserApi {
|
|
|
2966
3342
|
url = authDefault.url;
|
|
2967
3343
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
2968
3344
|
const response = await fetch(url, requestOptions);
|
|
2969
|
-
|
|
3345
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
3346
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3347
|
+
const headerCb = options.responseHeadersCallback;
|
|
3348
|
+
// on next tick, so we have time to handle the response
|
|
3349
|
+
setTimeout(() => {
|
|
3350
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3351
|
+
}, 0);
|
|
3352
|
+
}
|
|
3353
|
+
return resp;
|
|
2970
3354
|
}
|
|
2971
3355
|
/**
|
|
2972
3356
|
* Verify the signup approval using the provided verification code.
|
|
@@ -3016,7 +3400,15 @@ class UserApi {
|
|
|
3016
3400
|
url = authDefault.url;
|
|
3017
3401
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
3018
3402
|
const response = await fetch(url, requestOptions);
|
|
3019
|
-
|
|
3403
|
+
const resp = this.handleResponse(response, 'VerifySignupApprovalResponse');
|
|
3404
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
3405
|
+
const headerCb = options.responseHeadersCallback;
|
|
3406
|
+
// on next tick, so we have time to handle the response
|
|
3407
|
+
setTimeout(() => {
|
|
3408
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
3409
|
+
}, 0);
|
|
3410
|
+
}
|
|
3411
|
+
return resp;
|
|
3020
3412
|
}
|
|
3021
3413
|
}
|
|
3022
3414
|
exports.UserApi = UserApi;
|