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.
Files changed (145) hide show
  1. package/build/browser/edge-impulse-api.d.ts +2448 -7
  2. package/build/browser/edge-impulse-api.js +7286 -785
  3. package/build/browser/edge-impulse-api.js.map +1 -1
  4. package/build/library/sdk/api/adminApi.d.ts +297 -0
  5. package/build/library/sdk/api/adminApi.js +891 -99
  6. package/build/library/sdk/api/adminApi.js.map +1 -1
  7. package/build/library/sdk/api/authApi.d.ts +3 -0
  8. package/build/library/sdk/api/authApi.js +9 -1
  9. package/build/library/sdk/api/authApi.js.map +1 -1
  10. package/build/library/sdk/api/cDNApi.d.ts +3 -0
  11. package/build/library/sdk/api/cDNApi.js +9 -1
  12. package/build/library/sdk/api/cDNApi.js.map +1 -1
  13. package/build/library/sdk/api/canaryApi.d.ts +3 -0
  14. package/build/library/sdk/api/canaryApi.js +9 -1
  15. package/build/library/sdk/api/canaryApi.js.map +1 -1
  16. package/build/library/sdk/api/classifyApi.d.ts +30 -0
  17. package/build/library/sdk/api/classifyApi.js +90 -10
  18. package/build/library/sdk/api/classifyApi.js.map +1 -1
  19. package/build/library/sdk/api/dSPApi.d.ts +57 -0
  20. package/build/library/sdk/api/dSPApi.js +171 -19
  21. package/build/library/sdk/api/dSPApi.js.map +1 -1
  22. package/build/library/sdk/api/datasetVersionsApi.d.ts +18 -0
  23. package/build/library/sdk/api/datasetVersionsApi.js +54 -6
  24. package/build/library/sdk/api/datasetVersionsApi.js.map +1 -1
  25. package/build/library/sdk/api/deploymentApi.d.ts +51 -0
  26. package/build/library/sdk/api/deploymentApi.js +153 -17
  27. package/build/library/sdk/api/deploymentApi.js.map +1 -1
  28. package/build/library/sdk/api/devicesApi.d.ts +48 -0
  29. package/build/library/sdk/api/devicesApi.js +144 -16
  30. package/build/library/sdk/api/devicesApi.js.map +1 -1
  31. package/build/library/sdk/api/emailVerificationApi.d.ts +12 -0
  32. package/build/library/sdk/api/emailVerificationApi.js +36 -4
  33. package/build/library/sdk/api/emailVerificationApi.js.map +1 -1
  34. package/build/library/sdk/api/exportApi.d.ts +6 -0
  35. package/build/library/sdk/api/exportApi.js +18 -2
  36. package/build/library/sdk/api/exportApi.js.map +1 -1
  37. package/build/library/sdk/api/featureFlagsApi.d.ts +3 -0
  38. package/build/library/sdk/api/featureFlagsApi.js +9 -1
  39. package/build/library/sdk/api/featureFlagsApi.js.map +1 -1
  40. package/build/library/sdk/api/healthApi.d.ts +6 -0
  41. package/build/library/sdk/api/healthApi.js +18 -2
  42. package/build/library/sdk/api/healthApi.js.map +1 -1
  43. package/build/library/sdk/api/impulseApi.d.ts +54 -0
  44. package/build/library/sdk/api/impulseApi.js +162 -18
  45. package/build/library/sdk/api/impulseApi.js.map +1 -1
  46. package/build/library/sdk/api/integrationsApi.d.ts +6 -0
  47. package/build/library/sdk/api/integrationsApi.js +18 -2
  48. package/build/library/sdk/api/integrationsApi.js.map +1 -1
  49. package/build/library/sdk/api/jobsApi.d.ts +135 -0
  50. package/build/library/sdk/api/jobsApi.js +409 -45
  51. package/build/library/sdk/api/jobsApi.js.map +1 -1
  52. package/build/library/sdk/api/learnApi.d.ts +87 -0
  53. package/build/library/sdk/api/learnApi.js +261 -29
  54. package/build/library/sdk/api/learnApi.js.map +1 -1
  55. package/build/library/sdk/api/loginApi.d.ts +6 -0
  56. package/build/library/sdk/api/loginApi.js +18 -2
  57. package/build/library/sdk/api/loginApi.js.map +1 -1
  58. package/build/library/sdk/api/metricsApi.d.ts +9 -0
  59. package/build/library/sdk/api/metricsApi.js +27 -3
  60. package/build/library/sdk/api/metricsApi.js.map +1 -1
  61. package/build/library/sdk/api/monitoringApi.d.ts +39 -0
  62. package/build/library/sdk/api/monitoringApi.js +117 -13
  63. package/build/library/sdk/api/monitoringApi.js.map +1 -1
  64. package/build/library/sdk/api/optimizationApi.d.ts +51 -0
  65. package/build/library/sdk/api/optimizationApi.js +153 -17
  66. package/build/library/sdk/api/optimizationApi.js.map +1 -1
  67. package/build/library/sdk/api/organizationBlocksApi.d.ts +119 -0
  68. package/build/library/sdk/api/organizationBlocksApi.js +391 -35
  69. package/build/library/sdk/api/organizationBlocksApi.js.map +1 -1
  70. package/build/library/sdk/api/organizationCreateProjectApi.d.ts +45 -0
  71. package/build/library/sdk/api/organizationCreateProjectApi.js +135 -15
  72. package/build/library/sdk/api/organizationCreateProjectApi.js.map +1 -1
  73. package/build/library/sdk/api/organizationDataApi.d.ts +120 -0
  74. package/build/library/sdk/api/organizationDataApi.js +360 -40
  75. package/build/library/sdk/api/organizationDataApi.js.map +1 -1
  76. package/build/library/sdk/api/organizationDataCampaignsApi.d.ts +36 -0
  77. package/build/library/sdk/api/organizationDataCampaignsApi.js +108 -12
  78. package/build/library/sdk/api/organizationDataCampaignsApi.js.map +1 -1
  79. package/build/library/sdk/api/organizationJobsApi.d.ts +24 -0
  80. package/build/library/sdk/api/organizationJobsApi.js +72 -8
  81. package/build/library/sdk/api/organizationJobsApi.js.map +1 -1
  82. package/build/library/sdk/api/organizationPipelinesApi.d.ts +24 -0
  83. package/build/library/sdk/api/organizationPipelinesApi.js +72 -8
  84. package/build/library/sdk/api/organizationPipelinesApi.js.map +1 -1
  85. package/build/library/sdk/api/organizationPortalsApi.d.ts +21 -0
  86. package/build/library/sdk/api/organizationPortalsApi.js +63 -7
  87. package/build/library/sdk/api/organizationPortalsApi.js.map +1 -1
  88. package/build/library/sdk/api/organizationsApi.d.ts +242 -2
  89. package/build/library/sdk/api/organizationsApi.js +722 -82
  90. package/build/library/sdk/api/organizationsApi.js.map +1 -1
  91. package/build/library/sdk/api/performanceCalibrationApi.d.ts +33 -0
  92. package/build/library/sdk/api/performanceCalibrationApi.js +99 -11
  93. package/build/library/sdk/api/performanceCalibrationApi.js.map +1 -1
  94. package/build/library/sdk/api/postProcessingApi.d.ts +15 -0
  95. package/build/library/sdk/api/postProcessingApi.js +45 -5
  96. package/build/library/sdk/api/postProcessingApi.js.map +1 -1
  97. package/build/library/sdk/api/projectsApi.d.ts +282 -1
  98. package/build/library/sdk/api/projectsApi.js +991 -66
  99. package/build/library/sdk/api/projectsApi.js.map +1 -1
  100. package/build/library/sdk/api/rawDataApi.d.ts +207 -0
  101. package/build/library/sdk/api/rawDataApi.js +621 -69
  102. package/build/library/sdk/api/rawDataApi.js.map +1 -1
  103. package/build/library/sdk/api/testApi.d.ts +12 -0
  104. package/build/library/sdk/api/testApi.js +36 -4
  105. package/build/library/sdk/api/testApi.js.map +1 -1
  106. package/build/library/sdk/api/themesApi.d.ts +18 -0
  107. package/build/library/sdk/api/themesApi.js +54 -6
  108. package/build/library/sdk/api/themesApi.js.map +1 -1
  109. package/build/library/sdk/api/thirdPartyAuthApi.d.ts +21 -0
  110. package/build/library/sdk/api/thirdPartyAuthApi.js +63 -7
  111. package/build/library/sdk/api/thirdPartyAuthApi.js.map +1 -1
  112. package/build/library/sdk/api/uploadPortalApi.d.ts +21 -0
  113. package/build/library/sdk/api/uploadPortalApi.js +63 -7
  114. package/build/library/sdk/api/uploadPortalApi.js.map +1 -1
  115. package/build/library/sdk/api/userApi.d.ts +147 -0
  116. package/build/library/sdk/api/userApi.js +441 -49
  117. package/build/library/sdk/api/userApi.js.map +1 -1
  118. package/build/library/sdk/api/vlmApi.d.ts +15 -0
  119. package/build/library/sdk/api/vlmApi.js +45 -5
  120. package/build/library/sdk/api/vlmApi.js.map +1 -1
  121. package/build/library/sdk/api/whitelabelsApi.d.ts +24 -0
  122. package/build/library/sdk/api/whitelabelsApi.js +72 -8
  123. package/build/library/sdk/api/whitelabelsApi.js.map +1 -1
  124. package/build/library/sdk/model/addOrganizationTransferLearningBlockRequest.d.ts +4 -0
  125. package/build/library/sdk/model/getExtensionSharedStateListResponse.d.ts +14 -0
  126. package/build/library/sdk/model/getExtensionSharedStateListResponse.js +4 -0
  127. package/build/library/sdk/model/getExtensionSharedStateListResponse.js.map +1 -0
  128. package/build/library/sdk/model/models.d.ts +3 -0
  129. package/build/library/sdk/model/models.js +3 -0
  130. package/build/library/sdk/model/models.js.map +1 -1
  131. package/build/library/sdk/model/oAuthScope.d.ts +1 -1
  132. package/build/library/sdk/model/oAuthScope.js +1 -1
  133. package/build/library/sdk/model/oAuthScope.js.map +1 -1
  134. package/build/library/sdk/model/organizationTransferLearningBlock.d.ts +4 -0
  135. package/build/library/sdk/model/projectDataSummary.d.ts +3 -0
  136. package/build/library/sdk/model/projectInfoResponse.d.ts +42 -3
  137. package/build/library/sdk/model/projectInfoResponse.js.map +1 -1
  138. package/build/library/sdk/model/setExtensionSharedStateRequest.d.ts +13 -0
  139. package/build/library/sdk/model/setExtensionSharedStateRequest.js +4 -0
  140. package/build/library/sdk/model/setExtensionSharedStateRequest.js.map +1 -0
  141. package/build/library/sdk/model/setExtensionSharedStateResponse.d.ts +11 -0
  142. package/build/library/sdk/model/setExtensionSharedStateResponse.js +4 -0
  143. package/build/library/sdk/model/setExtensionSharedStateResponse.js.map +1 -0
  144. package/build/library/sdk/model/transferLearningModel.d.ts +4 -0
  145. package/package.json +1 -1
@@ -164,7 +164,15 @@ class OrganizationsApi {
164
164
  url = authDefault.url;
165
165
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
166
166
  const response = await fetch(url, requestOptions);
167
- return this.handleResponse(response, 'AddApiKeyResponse');
167
+ const resp = this.handleResponse(response, 'AddApiKeyResponse');
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 member to an organization.
@@ -232,10 +240,18 @@ class OrganizationsApi {
232
240
  url = authDefault.url;
233
241
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
234
242
  const response = await fetch(url, requestOptions);
235
- return this.handleResponse(response, 'EntityCreatedResponse');
243
+ const resp = this.handleResponse(response, 'EntityCreatedResponse');
244
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
245
+ const headerCb = options.responseHeadersCallback;
246
+ // on next tick, so we have time to handle the response
247
+ setTimeout(() => {
248
+ headerCb(Object.fromEntries(response.headers.entries()));
249
+ }, 0);
250
+ }
251
+ return resp;
236
252
  }
237
253
  /**
238
- * WIP
254
+ * Create multi-project deployment
239
255
  * @summary Create multi-project deployment
240
256
  * @param organizationId Organization ID
241
257
  * @param createMultiProjectDeploymentRequest
@@ -300,7 +316,15 @@ class OrganizationsApi {
300
316
  url = authDefault.url;
301
317
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
302
318
  const response = await fetch(url, requestOptions);
303
- return this.handleResponse(response, 'StartJobResponse');
319
+ const resp = this.handleResponse(response, 'StartJobResponse');
320
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
321
+ const headerCb = options.responseHeadersCallback;
322
+ // on next tick, so we have time to handle the response
323
+ setTimeout(() => {
324
+ headerCb(Object.fromEntries(response.headers.entries()));
325
+ }, 0);
326
+ }
327
+ return resp;
304
328
  }
305
329
  /**
306
330
  * Create a new organization. This is an internal API.
@@ -362,7 +386,15 @@ class OrganizationsApi {
362
386
  url = authDefault.url;
363
387
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
364
388
  const response = await fetch(url, requestOptions);
365
- return this.handleResponse(response, 'CreateOrganizationResponse');
389
+ const resp = this.handleResponse(response, 'CreateOrganizationResponse');
390
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
391
+ const headerCb = options.responseHeadersCallback;
392
+ // on next tick, so we have time to handle the response
393
+ setTimeout(() => {
394
+ headerCb(Object.fromEntries(response.headers.entries()));
395
+ }, 0);
396
+ }
397
+ return resp;
366
398
  }
367
399
  /**
368
400
  * Remove the current organization, and all data associated with it. This is irrevocable!
@@ -424,10 +456,18 @@ class OrganizationsApi {
424
456
  url = authDefault.url;
425
457
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
426
458
  const response = await fetch(url, requestOptions);
427
- return this.handleResponse(response, 'GenericApiResponse');
459
+ const resp = this.handleResponse(response, 'GenericApiResponse');
460
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
461
+ const headerCb = options.responseHeadersCallback;
462
+ // on next tick, so we have time to handle the response
463
+ setTimeout(() => {
464
+ headerCb(Object.fromEntries(response.headers.entries()));
465
+ }, 0);
466
+ }
467
+ return resp;
428
468
  }
429
469
  /**
430
- * WIP
470
+ * Download multi-project deployment
431
471
  * @summary Download multi-project deployment
432
472
  * @param organizationId Organization ID
433
473
  * @param jobId Job ID
@@ -492,7 +532,15 @@ class OrganizationsApi {
492
532
  url = authDefault.url;
493
533
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
494
534
  const response = await fetch(url, requestOptions);
495
- return this.handleResponse(response, 'Buffer');
535
+ const resp = this.handleResponse(response, 'Buffer');
536
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
537
+ const headerCb = options.responseHeadersCallback;
538
+ // on next tick, so we have time to handle the response
539
+ setTimeout(() => {
540
+ headerCb(Object.fromEntries(response.headers.entries()));
541
+ }, 0);
542
+ }
543
+ return resp;
496
544
  }
497
545
  /**
498
546
  * Download a data export for an organization.
@@ -552,7 +600,15 @@ class OrganizationsApi {
552
600
  url = authDefault.url;
553
601
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
554
602
  const response = await fetch(url, requestOptions);
555
- return this.handleResponse(response, undefined);
603
+ const resp = this.handleResponse(response, undefined);
604
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
605
+ const headerCb = options.responseHeadersCallback;
606
+ // on next tick, so we have time to handle the response
607
+ setTimeout(() => {
608
+ headerCb(Object.fromEntries(response.headers.entries()));
609
+ }, 0);
610
+ }
611
+ return resp;
556
612
  }
557
613
  /**
558
614
  * Get a data export for an organization.
@@ -620,7 +676,15 @@ class OrganizationsApi {
620
676
  url = authDefault.url;
621
677
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
622
678
  const response = await fetch(url, requestOptions);
623
- return this.handleResponse(response, 'GetOrganizationDataExportResponse');
679
+ const resp = this.handleResponse(response, 'GetOrganizationDataExportResponse');
680
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
681
+ const headerCb = options.responseHeadersCallback;
682
+ // on next tick, so we have time to handle the response
683
+ setTimeout(() => {
684
+ headerCb(Object.fromEntries(response.headers.entries()));
685
+ }, 0);
686
+ }
687
+ return resp;
624
688
  }
625
689
  /**
626
690
  * Get all data exports for an organization.
@@ -690,7 +754,15 @@ class OrganizationsApi {
690
754
  url = authDefault.url;
691
755
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
692
756
  const response = await fetch(url, requestOptions);
693
- return this.handleResponse(response, 'GetOrganizationDataExportsResponse');
757
+ const resp = this.handleResponse(response, 'GetOrganizationDataExportsResponse');
758
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
759
+ const headerCb = options.responseHeadersCallback;
760
+ // on next tick, so we have time to handle the response
761
+ setTimeout(() => {
762
+ headerCb(Object.fromEntries(response.headers.entries()));
763
+ }, 0);
764
+ }
765
+ return resp;
694
766
  }
695
767
  /**
696
768
  * List all information about this organization.
@@ -752,7 +824,15 @@ class OrganizationsApi {
752
824
  url = authDefault.url;
753
825
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
754
826
  const response = await fetch(url, requestOptions);
755
- return this.handleResponse(response, 'OrganizationInfoResponse');
827
+ const resp = this.handleResponse(response, 'OrganizationInfoResponse');
828
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
829
+ const headerCb = options.responseHeadersCallback;
830
+ // on next tick, so we have time to handle the response
831
+ setTimeout(() => {
832
+ headerCb(Object.fromEntries(response.headers.entries()));
833
+ }, 0);
834
+ }
835
+ return resp;
756
836
  }
757
837
  /**
758
838
  * Get general metrics for this organization.
@@ -822,7 +902,15 @@ class OrganizationsApi {
822
902
  url = authDefault.url;
823
903
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
824
904
  const response = await fetch(url, requestOptions);
825
- return this.handleResponse(response, 'OrganizationMetricsResponse');
905
+ const resp = this.handleResponse(response, 'OrganizationMetricsResponse');
906
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
907
+ const headerCb = options.responseHeadersCallback;
908
+ // on next tick, so we have time to handle the response
909
+ setTimeout(() => {
910
+ headerCb(Object.fromEntries(response.headers.entries()));
911
+ }, 0);
912
+ }
913
+ return resp;
826
914
  }
827
915
  /**
828
916
  * Invite a member to an organization.
@@ -890,7 +978,15 @@ class OrganizationsApi {
890
978
  url = authDefault.url;
891
979
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
892
980
  const response = await fetch(url, requestOptions);
893
- return this.handleResponse(response, 'GenericApiResponse');
981
+ const resp = this.handleResponse(response, 'GenericApiResponse');
982
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
983
+ const headerCb = options.responseHeadersCallback;
984
+ // on next tick, so we have time to handle the response
985
+ setTimeout(() => {
986
+ headerCb(Object.fromEntries(response.headers.entries()));
987
+ }, 0);
988
+ }
989
+ return resp;
894
990
  }
895
991
  /**
896
992
  * Retrieve all API keys. This does **not** return the full API key, but only a portion (for security purposes).
@@ -952,7 +1048,15 @@ class OrganizationsApi {
952
1048
  url = authDefault.url;
953
1049
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
954
1050
  const response = await fetch(url, requestOptions);
955
- return this.handleResponse(response, 'ListOrganizationApiKeysResponse');
1051
+ const resp = this.handleResponse(response, 'ListOrganizationApiKeysResponse');
1052
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1053
+ const headerCb = options.responseHeadersCallback;
1054
+ // on next tick, so we have time to handle the response
1055
+ setTimeout(() => {
1056
+ headerCb(Object.fromEntries(response.headers.entries()));
1057
+ }, 0);
1058
+ }
1059
+ return resp;
956
1060
  }
957
1061
  /**
958
1062
  * Retrieve all projects for the organization.
@@ -1014,7 +1118,15 @@ class OrganizationsApi {
1014
1118
  url = authDefault.url;
1015
1119
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1016
1120
  const response = await fetch(url, requestOptions);
1017
- return this.handleResponse(response, 'ListProjectsResponse');
1121
+ const resp = this.handleResponse(response, 'ListProjectsResponse');
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;
1018
1130
  }
1019
1131
  /**
1020
1132
  * Retrieve list of organizations that a user is a part of. If authenticating using JWT token this lists all the organizations the user has access to, if authenticating using an API key, this only lists that organization.
@@ -1070,7 +1182,15 @@ class OrganizationsApi {
1070
1182
  url = authDefault.url;
1071
1183
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1072
1184
  const response = await fetch(url, requestOptions);
1073
- return this.handleResponse(response, 'ListOrganizationsResponse');
1185
+ const resp = this.handleResponse(response, 'ListOrganizationsResponse');
1186
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1187
+ const headerCb = options.responseHeadersCallback;
1188
+ // on next tick, so we have time to handle the response
1189
+ setTimeout(() => {
1190
+ headerCb(Object.fromEntries(response.headers.entries()));
1191
+ }, 0);
1192
+ }
1193
+ return resp;
1074
1194
  }
1075
1195
  /**
1076
1196
  * Remove a member from an organization. Note that you cannot invoke this function if only a single member is present to the organization.
@@ -1138,7 +1258,15 @@ class OrganizationsApi {
1138
1258
  url = authDefault.url;
1139
1259
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1140
1260
  const response = await fetch(url, requestOptions);
1141
- return this.handleResponse(response, 'GenericApiResponse');
1261
+ const resp = this.handleResponse(response, 'GenericApiResponse');
1262
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1263
+ const headerCb = options.responseHeadersCallback;
1264
+ // on next tick, so we have time to handle the response
1265
+ setTimeout(() => {
1266
+ headerCb(Object.fromEntries(response.headers.entries()));
1267
+ }, 0);
1268
+ }
1269
+ return resp;
1142
1270
  }
1143
1271
  /**
1144
1272
  * Request a license required for the deployment of an impulse containing the Edge Impulse HR block.
@@ -1200,7 +1328,15 @@ class OrganizationsApi {
1200
1328
  url = authDefault.url;
1201
1329
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1202
1330
  const response = await fetch(url, requestOptions);
1203
- return this.handleResponse(response, 'GenericApiResponse');
1331
+ const resp = this.handleResponse(response, 'GenericApiResponse');
1332
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1333
+ const headerCb = options.responseHeadersCallback;
1334
+ // on next tick, so we have time to handle the response
1335
+ setTimeout(() => {
1336
+ headerCb(Object.fromEntries(response.headers.entries()));
1337
+ }, 0);
1338
+ }
1339
+ return resp;
1204
1340
  }
1205
1341
  /**
1206
1342
  * Request an increase in the limits for this organization. Available limits are: users, projects, compute, storage.
@@ -1268,7 +1404,15 @@ class OrganizationsApi {
1268
1404
  url = authDefault.url;
1269
1405
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1270
1406
  const response = await fetch(url, requestOptions);
1271
- return this.handleResponse(response, 'GenericApiResponse');
1407
+ const resp = this.handleResponse(response, 'GenericApiResponse');
1408
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1409
+ const headerCb = options.responseHeadersCallback;
1410
+ // on next tick, so we have time to handle the response
1411
+ setTimeout(() => {
1412
+ headerCb(Object.fromEntries(response.headers.entries()));
1413
+ }, 0);
1414
+ }
1415
+ return resp;
1272
1416
  }
1273
1417
  /**
1274
1418
  * Request an extension for an enterprise trial.
@@ -1336,7 +1480,15 @@ class OrganizationsApi {
1336
1480
  url = authDefault.url;
1337
1481
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1338
1482
  const response = await fetch(url, requestOptions);
1339
- return this.handleResponse(response, 'GenericApiResponse');
1483
+ const resp = this.handleResponse(response, 'GenericApiResponse');
1484
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1485
+ const headerCb = options.responseHeadersCallback;
1486
+ // on next tick, so we have time to handle the response
1487
+ setTimeout(() => {
1488
+ headerCb(Object.fromEntries(response.headers.entries()));
1489
+ }, 0);
1490
+ }
1491
+ return resp;
1340
1492
  }
1341
1493
  /**
1342
1494
  * Resend an invitation to a member in an organization.
@@ -1404,7 +1556,15 @@ class OrganizationsApi {
1404
1556
  url = authDefault.url;
1405
1557
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1406
1558
  const response = await fetch(url, requestOptions);
1407
- return this.handleResponse(response, 'GenericApiResponse');
1559
+ const resp = this.handleResponse(response, 'GenericApiResponse');
1560
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1561
+ const headerCb = options.responseHeadersCallback;
1562
+ // on next tick, so we have time to handle the response
1563
+ setTimeout(() => {
1564
+ headerCb(Object.fromEntries(response.headers.entries()));
1565
+ }, 0);
1566
+ }
1567
+ return resp;
1408
1568
  }
1409
1569
  /**
1410
1570
  * Revoke an API key.
@@ -1472,7 +1632,15 @@ class OrganizationsApi {
1472
1632
  url = authDefault.url;
1473
1633
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1474
1634
  const response = await fetch(url, requestOptions);
1475
- return this.handleResponse(response, 'GenericApiResponse');
1635
+ const resp = this.handleResponse(response, 'GenericApiResponse');
1636
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1637
+ const headerCb = options.responseHeadersCallback;
1638
+ // on next tick, so we have time to handle the response
1639
+ setTimeout(() => {
1640
+ headerCb(Object.fromEntries(response.headers.entries()));
1641
+ }, 0);
1642
+ }
1643
+ return resp;
1476
1644
  }
1477
1645
  /**
1478
1646
  * Set the datasets a guest member has access to in an organization.
@@ -1546,7 +1714,15 @@ class OrganizationsApi {
1546
1714
  url = authDefault.url;
1547
1715
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1548
1716
  const response = await fetch(url, requestOptions);
1549
- return this.handleResponse(response, 'GenericApiResponse');
1717
+ const resp = this.handleResponse(response, 'GenericApiResponse');
1718
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1719
+ const headerCb = options.responseHeadersCallback;
1720
+ // on next tick, so we have time to handle the response
1721
+ setTimeout(() => {
1722
+ headerCb(Object.fromEntries(response.headers.entries()));
1723
+ }, 0);
1724
+ }
1725
+ return resp;
1550
1726
  }
1551
1727
  /**
1552
1728
  * Change the role of a member in an organization.
@@ -1620,7 +1796,15 @@ class OrganizationsApi {
1620
1796
  url = authDefault.url;
1621
1797
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1622
1798
  const response = await fetch(url, requestOptions);
1623
- return this.handleResponse(response, 'GenericApiResponse');
1799
+ const resp = this.handleResponse(response, 'GenericApiResponse');
1800
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1801
+ const headerCb = options.responseHeadersCallback;
1802
+ // on next tick, so we have time to handle the response
1803
+ setTimeout(() => {
1804
+ headerCb(Object.fromEntries(response.headers.entries()));
1805
+ }, 0);
1806
+ }
1807
+ return resp;
1624
1808
  }
1625
1809
  /**
1626
1810
  * Test endpoint that can only be reached with admin rights.
@@ -1682,7 +1866,15 @@ class OrganizationsApi {
1682
1866
  url = authDefault.url;
1683
1867
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1684
1868
  const response = await fetch(url, requestOptions);
1685
- return this.handleResponse(response, 'GenericApiResponse');
1869
+ const resp = this.handleResponse(response, 'GenericApiResponse');
1870
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1871
+ const headerCb = options.responseHeadersCallback;
1872
+ // on next tick, so we have time to handle the response
1873
+ setTimeout(() => {
1874
+ headerCb(Object.fromEntries(response.headers.entries()));
1875
+ }, 0);
1876
+ }
1877
+ return resp;
1686
1878
  }
1687
1879
  /**
1688
1880
  * Update organization properties such as name and logo.
@@ -1750,7 +1942,15 @@ class OrganizationsApi {
1750
1942
  url = authDefault.url;
1751
1943
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1752
1944
  const response = await fetch(url, requestOptions);
1753
- return this.handleResponse(response, 'GenericApiResponse');
1945
+ const resp = this.handleResponse(response, 'GenericApiResponse');
1946
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1947
+ const headerCb = options.responseHeadersCallback;
1948
+ // on next tick, so we have time to handle the response
1949
+ setTimeout(() => {
1950
+ headerCb(Object.fromEntries(response.headers.entries()));
1951
+ }, 0);
1952
+ }
1953
+ return resp;
1754
1954
  }
1755
1955
  /**
1756
1956
  * Uploads and updates the organization header image
@@ -1823,7 +2023,15 @@ class OrganizationsApi {
1823
2023
  url = authDefault.url;
1824
2024
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1825
2025
  const response = await fetch(url, requestOptions);
1826
- return this.handleResponse(response, 'UploadAssetResponse');
2026
+ const resp = this.handleResponse(response, 'UploadAssetResponse');
2027
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2028
+ const headerCb = options.responseHeadersCallback;
2029
+ // on next tick, so we have time to handle the response
2030
+ setTimeout(() => {
2031
+ headerCb(Object.fromEntries(response.headers.entries()));
2032
+ }, 0);
2033
+ }
2034
+ return resp;
1827
2035
  }
1828
2036
  /**
1829
2037
  * Uploads and updates the organization logo
@@ -1896,7 +2104,15 @@ class OrganizationsApi {
1896
2104
  url = authDefault.url;
1897
2105
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1898
2106
  const response = await fetch(url, requestOptions);
1899
- return this.handleResponse(response, 'UploadAssetResponse');
2107
+ const resp = this.handleResponse(response, 'UploadAssetResponse');
2108
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2109
+ const headerCb = options.responseHeadersCallback;
2110
+ // on next tick, so we have time to handle the response
2111
+ setTimeout(() => {
2112
+ headerCb(Object.fromEntries(response.headers.entries()));
2113
+ }, 0);
2114
+ }
2115
+ return resp;
1900
2116
  }
1901
2117
  /**
1902
2118
  * Uploads an image to the user CDN and returns the path.
@@ -1973,7 +2189,15 @@ class OrganizationsApi {
1973
2189
  url = authDefault.url;
1974
2190
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1975
2191
  const response = await fetch(url, requestOptions);
1976
- return this.handleResponse(response, 'UploadReadmeImageResponse');
2192
+ const resp = this.handleResponse(response, 'UploadReadmeImageResponse');
2193
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2194
+ const headerCb = options.responseHeadersCallback;
2195
+ // on next tick, so we have time to handle the response
2196
+ setTimeout(() => {
2197
+ headerCb(Object.fromEntries(response.headers.entries()));
2198
+ }, 0);
2199
+ }
2200
+ return resp;
1977
2201
  }
1978
2202
  /**
1979
2203
  * White label admin only API to add a development board.
@@ -2041,7 +2265,15 @@ class OrganizationsApi {
2041
2265
  url = authDefault.url;
2042
2266
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2043
2267
  const response = await fetch(url, requestOptions);
2044
- return this.handleResponse(response, 'EntityCreatedResponse');
2268
+ const resp = this.handleResponse(response, 'EntityCreatedResponse');
2269
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2270
+ const headerCb = options.responseHeadersCallback;
2271
+ // on next tick, so we have time to handle the response
2272
+ setTimeout(() => {
2273
+ headerCb(Object.fromEntries(response.headers.entries()));
2274
+ }, 0);
2275
+ }
2276
+ return resp;
2045
2277
  }
2046
2278
  /**
2047
2279
  * White label admin only API to add an API key to an organization. Add a temporary API key that can be used to make Organizations API (/api/organizations/{organizationId}/) requests on behalf of the organization. These API keys are not visible to the organization itself and have a customizable TTL defaulting to 1 minute.
@@ -2115,7 +2347,15 @@ class OrganizationsApi {
2115
2347
  url = authDefault.url;
2116
2348
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2117
2349
  const response = await fetch(url, requestOptions);
2118
- return this.handleResponse(response, 'AddApiKeyResponse');
2350
+ const resp = this.handleResponse(response, 'AddApiKeyResponse');
2351
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2352
+ const headerCb = options.responseHeadersCallback;
2353
+ // on next tick, so we have time to handle the response
2354
+ setTimeout(() => {
2355
+ headerCb(Object.fromEntries(response.headers.entries()));
2356
+ }, 0);
2357
+ }
2358
+ return resp;
2119
2359
  }
2120
2360
  /**
2121
2361
  * White label admin only API to add an API key to a project. Add a temporary API key that can be used to make Projects API (/api/projects/{projectId}/) requests on behalf of the project admin. These API keys are not visible to the project itself and have a customizable TTL defaulting to 1 minute.
@@ -2189,7 +2429,15 @@ class OrganizationsApi {
2189
2429
  url = authDefault.url;
2190
2430
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2191
2431
  const response = await fetch(url, requestOptions);
2192
- return this.handleResponse(response, 'AddApiKeyResponse');
2432
+ const resp = this.handleResponse(response, 'AddApiKeyResponse');
2433
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2434
+ const headerCb = options.responseHeadersCallback;
2435
+ // on next tick, so we have time to handle the response
2436
+ setTimeout(() => {
2437
+ headerCb(Object.fromEntries(response.headers.entries()));
2438
+ }, 0);
2439
+ }
2440
+ return resp;
2193
2441
  }
2194
2442
  /**
2195
2443
  * DEPRECATED. White label admin only API to add a user to an organization. If no user is provided, the current user is used.
@@ -2263,7 +2511,15 @@ class OrganizationsApi {
2263
2511
  url = authDefault.url;
2264
2512
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2265
2513
  const response = await fetch(url, requestOptions);
2266
- return this.handleResponse(response, 'GenericApiResponse');
2514
+ const resp = this.handleResponse(response, 'GenericApiResponse');
2515
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2516
+ const headerCb = options.responseHeadersCallback;
2517
+ // on next tick, so we have time to handle the response
2518
+ setTimeout(() => {
2519
+ headerCb(Object.fromEntries(response.headers.entries()));
2520
+ }, 0);
2521
+ }
2522
+ return resp;
2267
2523
  }
2268
2524
  /**
2269
2525
  * DEPRECATED. White label admin only API to add a user to a project. If no user is provided, the current user is used.
@@ -2337,7 +2593,15 @@ class OrganizationsApi {
2337
2593
  url = authDefault.url;
2338
2594
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2339
2595
  const response = await fetch(url, requestOptions);
2340
- return this.handleResponse(response, 'GenericApiResponse');
2596
+ const resp = this.handleResponse(response, 'GenericApiResponse');
2597
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2598
+ const headerCb = options.responseHeadersCallback;
2599
+ // on next tick, so we have time to handle the response
2600
+ setTimeout(() => {
2601
+ headerCb(Object.fromEntries(response.headers.entries()));
2602
+ }, 0);
2603
+ }
2604
+ return resp;
2341
2605
  }
2342
2606
  /**
2343
2607
  * Create a new organization. This is an API only available to white label admins
@@ -2405,7 +2669,15 @@ class OrganizationsApi {
2405
2669
  url = authDefault.url;
2406
2670
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2407
2671
  const response = await fetch(url, requestOptions);
2408
- return this.handleResponse(response, 'CreateOrganizationResponse');
2672
+ const resp = this.handleResponse(response, 'CreateOrganizationResponse');
2673
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2674
+ const headerCb = options.responseHeadersCallback;
2675
+ // on next tick, so we have time to handle the response
2676
+ setTimeout(() => {
2677
+ headerCb(Object.fromEntries(response.headers.entries()));
2678
+ }, 0);
2679
+ }
2680
+ return resp;
2409
2681
  }
2410
2682
  /**
2411
2683
  * Create a new data export for an organization. A job is created to process the export request and the job details are returned in the response. This is an API only available to white label admins.
@@ -2479,7 +2751,15 @@ class OrganizationsApi {
2479
2751
  url = authDefault.url;
2480
2752
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2481
2753
  const response = await fetch(url, requestOptions);
2482
- return this.handleResponse(response, 'StartJobResponse');
2754
+ const resp = this.handleResponse(response, 'StartJobResponse');
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;
2483
2763
  }
2484
2764
  /**
2485
2765
  * White label admin only API to create a new project for an organization.
@@ -2553,7 +2833,15 @@ class OrganizationsApi {
2553
2833
  url = authDefault.url;
2554
2834
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2555
2835
  const response = await fetch(url, requestOptions);
2556
- return this.handleResponse(response, 'CreateProjectResponse');
2836
+ const resp = this.handleResponse(response, 'CreateProjectResponse');
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;
2557
2845
  }
2558
2846
  /**
2559
2847
  * Create a new usage report for an organization. A job is created to process the report request and the job details are returned in the response. This is an API only available to white label admins.
@@ -2637,7 +2925,15 @@ class OrganizationsApi {
2637
2925
  url = authDefault.url;
2638
2926
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2639
2927
  const response = await fetch(url, requestOptions);
2640
- return this.handleResponse(response, 'StartJobResponse');
2928
+ const resp = this.handleResponse(response, 'StartJobResponse');
2929
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2930
+ const headerCb = options.responseHeadersCallback;
2931
+ // on next tick, so we have time to handle the response
2932
+ setTimeout(() => {
2933
+ headerCb(Object.fromEntries(response.headers.entries()));
2934
+ }, 0);
2935
+ }
2936
+ return resp;
2641
2937
  }
2642
2938
  /**
2643
2939
  * Create a new free tier project. This is an API only available to white label admins.
@@ -2705,7 +3001,15 @@ class OrganizationsApi {
2705
3001
  url = authDefault.url;
2706
3002
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2707
3003
  const response = await fetch(url, requestOptions);
2708
- return this.handleResponse(response, 'CreateProjectResponse');
3004
+ const resp = this.handleResponse(response, 'CreateProjectResponse');
3005
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3006
+ const headerCb = options.responseHeadersCallback;
3007
+ // on next tick, so we have time to handle the response
3008
+ setTimeout(() => {
3009
+ headerCb(Object.fromEntries(response.headers.entries()));
3010
+ }, 0);
3011
+ }
3012
+ return resp;
2709
3013
  }
2710
3014
  /**
2711
3015
  * White label admin only API to delete an organization.
@@ -2773,7 +3077,15 @@ class OrganizationsApi {
2773
3077
  url = authDefault.url;
2774
3078
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2775
3079
  const response = await fetch(url, requestOptions);
2776
- return this.handleResponse(response, 'StartJobResponse');
3080
+ const resp = this.handleResponse(response, 'StartJobResponse');
3081
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3082
+ const headerCb = options.responseHeadersCallback;
3083
+ // on next tick, so we have time to handle the response
3084
+ setTimeout(() => {
3085
+ headerCb(Object.fromEntries(response.headers.entries()));
3086
+ }, 0);
3087
+ }
3088
+ return resp;
2777
3089
  }
2778
3090
  /**
2779
3091
  * Delete a data export for an organization. This is an API only available to white label admins.
@@ -2847,7 +3159,15 @@ class OrganizationsApi {
2847
3159
  url = authDefault.url;
2848
3160
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2849
3161
  const response = await fetch(url, requestOptions);
2850
- return this.handleResponse(response, 'GenericApiResponse');
3162
+ const resp = this.handleResponse(response, 'GenericApiResponse');
3163
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3164
+ const headerCb = options.responseHeadersCallback;
3165
+ // on next tick, so we have time to handle the response
3166
+ setTimeout(() => {
3167
+ headerCb(Object.fromEntries(response.headers.entries()));
3168
+ }, 0);
3169
+ }
3170
+ return resp;
2851
3171
  }
2852
3172
  /**
2853
3173
  * Delete a usage report for an organization. This is an API only available to white label admins.
@@ -2921,7 +3241,15 @@ class OrganizationsApi {
2921
3241
  url = authDefault.url;
2922
3242
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2923
3243
  const response = await fetch(url, requestOptions);
2924
- return this.handleResponse(response, 'GenericApiResponse');
3244
+ const resp = this.handleResponse(response, 'GenericApiResponse');
3245
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3246
+ const headerCb = options.responseHeadersCallback;
3247
+ // on next tick, so we have time to handle the response
3248
+ setTimeout(() => {
3249
+ headerCb(Object.fromEntries(response.headers.entries()));
3250
+ }, 0);
3251
+ }
3252
+ return resp;
2925
3253
  }
2926
3254
  /**
2927
3255
  * White label admin only API to delete a project.
@@ -2989,7 +3317,15 @@ class OrganizationsApi {
2989
3317
  url = authDefault.url;
2990
3318
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2991
3319
  const response = await fetch(url, requestOptions);
2992
- return this.handleResponse(response, 'StartJobResponse');
3320
+ const resp = this.handleResponse(response, 'StartJobResponse');
3321
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3322
+ const headerCb = options.responseHeadersCallback;
3323
+ // on next tick, so we have time to handle the response
3324
+ setTimeout(() => {
3325
+ headerCb(Object.fromEntries(response.headers.entries()));
3326
+ }, 0);
3327
+ }
3328
+ return resp;
2993
3329
  }
2994
3330
  /**
2995
3331
  * White label admin only API to delete a user.
@@ -3057,7 +3393,15 @@ class OrganizationsApi {
3057
3393
  url = authDefault.url;
3058
3394
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3059
3395
  const response = await fetch(url, requestOptions);
3060
- return this.handleResponse(response, 'GenericApiResponse');
3396
+ const resp = this.handleResponse(response, 'GenericApiResponse');
3397
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3398
+ const headerCb = options.responseHeadersCallback;
3399
+ // on next tick, so we have time to handle the response
3400
+ setTimeout(() => {
3401
+ headerCb(Object.fromEntries(response.headers.entries()));
3402
+ }, 0);
3403
+ }
3404
+ return resp;
3061
3405
  }
3062
3406
  /**
3063
3407
  * Download a usage report for an organization. This is an API only available to white label admins.
@@ -3123,7 +3467,15 @@ class OrganizationsApi {
3123
3467
  url = authDefault.url;
3124
3468
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3125
3469
  const response = await fetch(url, requestOptions);
3126
- return this.handleResponse(response, undefined);
3470
+ const resp = this.handleResponse(response, undefined);
3471
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3472
+ const headerCb = options.responseHeadersCallback;
3473
+ // on next tick, so we have time to handle the response
3474
+ setTimeout(() => {
3475
+ headerCb(Object.fromEntries(response.headers.entries()));
3476
+ }, 0);
3477
+ }
3478
+ return resp;
3127
3479
  }
3128
3480
  /**
3129
3481
  * White label admin only API to get the white label information.
@@ -3185,7 +3537,15 @@ class OrganizationsApi {
3185
3537
  url = authDefault.url;
3186
3538
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3187
3539
  const response = await fetch(url, requestOptions);
3188
- return this.handleResponse(response, 'GetWhitelabelResponse');
3540
+ const resp = this.handleResponse(response, 'GetWhitelabelResponse');
3541
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3542
+ const headerCb = options.responseHeadersCallback;
3543
+ // on next tick, so we have time to handle the response
3544
+ setTimeout(() => {
3545
+ headerCb(Object.fromEntries(response.headers.entries()));
3546
+ }, 0);
3547
+ }
3548
+ return resp;
3189
3549
  }
3190
3550
  /**
3191
3551
  * White label admin only API to get global metrics.
@@ -3247,7 +3607,15 @@ class OrganizationsApi {
3247
3607
  url = authDefault.url;
3248
3608
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3249
3609
  const response = await fetch(url, requestOptions);
3250
- return this.handleResponse(response, 'AdminGetMetricsResponse');
3610
+ const resp = this.handleResponse(response, 'AdminGetMetricsResponse');
3611
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3612
+ const headerCb = options.responseHeadersCallback;
3613
+ // on next tick, so we have time to handle the response
3614
+ setTimeout(() => {
3615
+ headerCb(Object.fromEntries(response.headers.entries()));
3616
+ }, 0);
3617
+ }
3618
+ return resp;
3251
3619
  }
3252
3620
  /**
3253
3621
  * Get compute time usage for an organization over a period of time. This is an API only available to white label admins
@@ -3331,7 +3699,15 @@ class OrganizationsApi {
3331
3699
  url = authDefault.url;
3332
3700
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3333
3701
  const response = await fetch(url, requestOptions);
3334
- return this.handleResponse(response, 'AdminGetOrganizationComputeTimeUsageResponse');
3702
+ const resp = this.handleResponse(response, 'AdminGetOrganizationComputeTimeUsageResponse');
3703
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3704
+ const headerCb = options.responseHeadersCallback;
3705
+ // on next tick, so we have time to handle the response
3706
+ setTimeout(() => {
3707
+ headerCb(Object.fromEntries(response.headers.entries()));
3708
+ }, 0);
3709
+ }
3710
+ return resp;
3335
3711
  }
3336
3712
  /**
3337
3713
  * Get a data export for an organization. This is an API only available to white label admins.
@@ -3405,7 +3781,15 @@ class OrganizationsApi {
3405
3781
  url = authDefault.url;
3406
3782
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3407
3783
  const response = await fetch(url, requestOptions);
3408
- return this.handleResponse(response, 'GetOrganizationDataExportResponse');
3784
+ const resp = this.handleResponse(response, 'GetOrganizationDataExportResponse');
3785
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3786
+ const headerCb = options.responseHeadersCallback;
3787
+ // on next tick, so we have time to handle the response
3788
+ setTimeout(() => {
3789
+ headerCb(Object.fromEntries(response.headers.entries()));
3790
+ }, 0);
3791
+ }
3792
+ return resp;
3409
3793
  }
3410
3794
  /**
3411
3795
  * Get all data exports for an organization. This is an API only available to white label admins.
@@ -3481,7 +3865,15 @@ class OrganizationsApi {
3481
3865
  url = authDefault.url;
3482
3866
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3483
3867
  const response = await fetch(url, requestOptions);
3484
- return this.handleResponse(response, 'GetOrganizationDataExportsResponse');
3868
+ const resp = this.handleResponse(response, 'GetOrganizationDataExportsResponse');
3869
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3870
+ const headerCb = options.responseHeadersCallback;
3871
+ // on next tick, so we have time to handle the response
3872
+ setTimeout(() => {
3873
+ headerCb(Object.fromEntries(response.headers.entries()));
3874
+ }, 0);
3875
+ }
3876
+ return resp;
3485
3877
  }
3486
3878
  /**
3487
3879
  * White label admin only API to list all information about an organization.
@@ -3553,7 +3945,15 @@ class OrganizationsApi {
3553
3945
  url = authDefault.url;
3554
3946
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3555
3947
  const response = await fetch(url, requestOptions);
3556
- return this.handleResponse(response, 'AdminOrganizationInfoResponse');
3948
+ const resp = this.handleResponse(response, 'AdminOrganizationInfoResponse');
3949
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3950
+ const headerCb = options.responseHeadersCallback;
3951
+ // on next tick, so we have time to handle the response
3952
+ setTimeout(() => {
3953
+ headerCb(Object.fromEntries(response.headers.entries()));
3954
+ }, 0);
3955
+ }
3956
+ return resp;
3557
3957
  }
3558
3958
  /**
3559
3959
  * White label admin only API to get the list of all jobs for a organization.
@@ -3629,7 +4029,15 @@ class OrganizationsApi {
3629
4029
  url = authDefault.url;
3630
4030
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3631
4031
  const response = await fetch(url, requestOptions);
3632
- return this.handleResponse(response, 'ListJobsResponse');
4032
+ const resp = this.handleResponse(response, 'ListJobsResponse');
4033
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
4034
+ const headerCb = options.responseHeadersCallback;
4035
+ // on next tick, so we have time to handle the response
4036
+ setTimeout(() => {
4037
+ headerCb(Object.fromEntries(response.headers.entries()));
4038
+ }, 0);
4039
+ }
4040
+ return resp;
3633
4041
  }
3634
4042
  /**
3635
4043
  * Get a usage report for an organization. This is an API only available to white label admins.
@@ -3703,7 +4111,15 @@ class OrganizationsApi {
3703
4111
  url = authDefault.url;
3704
4112
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3705
4113
  const response = await fetch(url, requestOptions);
3706
- return this.handleResponse(response, 'AdminGetReportResponse');
4114
+ const resp = this.handleResponse(response, 'AdminGetReportResponse');
4115
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
4116
+ const headerCb = options.responseHeadersCallback;
4117
+ // on next tick, so we have time to handle the response
4118
+ setTimeout(() => {
4119
+ headerCb(Object.fromEntries(response.headers.entries()));
4120
+ }, 0);
4121
+ }
4122
+ return resp;
3707
4123
  }
3708
4124
  /**
3709
4125
  * Get all usage reports for an organization. This is an API only available to white label admins.
@@ -3779,7 +4195,15 @@ class OrganizationsApi {
3779
4195
  url = authDefault.url;
3780
4196
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3781
4197
  const response = await fetch(url, requestOptions);
3782
- return this.handleResponse(response, 'AdminGetReportsResponse');
4198
+ const resp = this.handleResponse(response, 'AdminGetReportsResponse');
4199
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
4200
+ const headerCb = options.responseHeadersCallback;
4201
+ // on next tick, so we have time to handle the response
4202
+ setTimeout(() => {
4203
+ headerCb(Object.fromEntries(response.headers.entries()));
4204
+ }, 0);
4205
+ }
4206
+ return resp;
3783
4207
  }
3784
4208
  /**
3785
4209
  * White label admin only API to get the list of all organizations.
@@ -3869,7 +4293,15 @@ class OrganizationsApi {
3869
4293
  url = authDefault.url;
3870
4294
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3871
4295
  const response = await fetch(url, requestOptions);
3872
- return this.handleResponse(response, 'AdminGetOrganizationsResponse');
4296
+ const resp = this.handleResponse(response, 'AdminGetOrganizationsResponse');
4297
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
4298
+ const headerCb = options.responseHeadersCallback;
4299
+ // on next tick, so we have time to handle the response
4300
+ setTimeout(() => {
4301
+ headerCb(Object.fromEntries(response.headers.entries()));
4302
+ }, 0);
4303
+ }
4304
+ return resp;
3873
4305
  }
3874
4306
  /**
3875
4307
  * White label admin only API to get project information.
@@ -3937,7 +4369,15 @@ class OrganizationsApi {
3937
4369
  url = authDefault.url;
3938
4370
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3939
4371
  const response = await fetch(url, requestOptions);
3940
- return this.handleResponse(response, 'AdminProjectInfoResponse');
4372
+ const resp = this.handleResponse(response, 'AdminProjectInfoResponse');
4373
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
4374
+ const headerCb = options.responseHeadersCallback;
4375
+ // on next tick, so we have time to handle the response
4376
+ setTimeout(() => {
4377
+ headerCb(Object.fromEntries(response.headers.entries()));
4378
+ }, 0);
4379
+ }
4380
+ return resp;
3941
4381
  }
3942
4382
  /**
3943
4383
  * White label admin only API to get the list of all jobs for a project.
@@ -4013,7 +4453,15 @@ class OrganizationsApi {
4013
4453
  url = authDefault.url;
4014
4454
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4015
4455
  const response = await fetch(url, requestOptions);
4016
- return this.handleResponse(response, 'ListJobsResponse');
4456
+ const resp = this.handleResponse(response, 'ListJobsResponse');
4457
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
4458
+ const headerCb = options.responseHeadersCallback;
4459
+ // on next tick, so we have time to handle the response
4460
+ setTimeout(() => {
4461
+ headerCb(Object.fromEntries(response.headers.entries()));
4462
+ }, 0);
4463
+ }
4464
+ return resp;
4017
4465
  }
4018
4466
  /**
4019
4467
  * White label admin only API to get the list of all projects.
@@ -4099,7 +4547,15 @@ class OrganizationsApi {
4099
4547
  url = authDefault.url;
4100
4548
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4101
4549
  const response = await fetch(url, requestOptions);
4102
- return this.handleResponse(response, 'AdminListProjectsResponse');
4550
+ const resp = this.handleResponse(response, 'AdminListProjectsResponse');
4551
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
4552
+ const headerCb = options.responseHeadersCallback;
4553
+ // on next tick, so we have time to handle the response
4554
+ setTimeout(() => {
4555
+ headerCb(Object.fromEntries(response.headers.entries()));
4556
+ }, 0);
4557
+ }
4558
+ return resp;
4103
4559
  }
4104
4560
  /**
4105
4561
  * White label admin only API to get information about a user.
@@ -4167,7 +4623,15 @@ class OrganizationsApi {
4167
4623
  url = authDefault.url;
4168
4624
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4169
4625
  const response = await fetch(url, requestOptions);
4170
- return this.handleResponse(response, 'AdminGetUserResponse');
4626
+ const resp = this.handleResponse(response, 'AdminGetUserResponse');
4627
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
4628
+ const headerCb = options.responseHeadersCallback;
4629
+ // on next tick, so we have time to handle the response
4630
+ setTimeout(() => {
4631
+ headerCb(Object.fromEntries(response.headers.entries()));
4632
+ }, 0);
4633
+ }
4634
+ return resp;
4171
4635
  }
4172
4636
  /**
4173
4637
  * White label admin only API to get the list of all project jobs for a user.
@@ -4243,7 +4707,15 @@ class OrganizationsApi {
4243
4707
  url = authDefault.url;
4244
4708
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4245
4709
  const response = await fetch(url, requestOptions);
4246
- return this.handleResponse(response, 'ListJobsResponse');
4710
+ const resp = this.handleResponse(response, 'ListJobsResponse');
4711
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
4712
+ const headerCb = options.responseHeadersCallback;
4713
+ // on next tick, so we have time to handle the response
4714
+ setTimeout(() => {
4715
+ headerCb(Object.fromEntries(response.headers.entries()));
4716
+ }, 0);
4717
+ }
4718
+ return resp;
4247
4719
  }
4248
4720
  /**
4249
4721
  * White label admin only API to get marketing metrics about a user.
@@ -4311,7 +4783,15 @@ class OrganizationsApi {
4311
4783
  url = authDefault.url;
4312
4784
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4313
4785
  const response = await fetch(url, requestOptions);
4314
- return this.handleResponse(response, 'AdminGetUserMetricsResponse');
4786
+ const resp = this.handleResponse(response, 'AdminGetUserMetricsResponse');
4787
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
4788
+ const headerCb = options.responseHeadersCallback;
4789
+ // on next tick, so we have time to handle the response
4790
+ setTimeout(() => {
4791
+ headerCb(Object.fromEntries(response.headers.entries()));
4792
+ }, 0);
4793
+ }
4794
+ return resp;
4315
4795
  }
4316
4796
  /**
4317
4797
  * White label admin only API to get the list of all registered users.
@@ -4405,7 +4885,15 @@ class OrganizationsApi {
4405
4885
  url = authDefault.url;
4406
4886
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4407
4887
  const response = await fetch(url, requestOptions);
4408
- return this.handleResponse(response, 'AdminGetUsersResponse');
4888
+ const resp = this.handleResponse(response, 'AdminGetUsersResponse');
4889
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
4890
+ const headerCb = options.responseHeadersCallback;
4891
+ // on next tick, so we have time to handle the response
4892
+ setTimeout(() => {
4893
+ headerCb(Object.fromEntries(response.headers.entries()));
4894
+ }, 0);
4895
+ }
4896
+ return resp;
4409
4897
  }
4410
4898
  /**
4411
4899
  * White label admin only API to remove a development board.
@@ -4473,7 +4961,15 @@ class OrganizationsApi {
4473
4961
  url = authDefault.url;
4474
4962
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4475
4963
  const response = await fetch(url, requestOptions);
4476
- return this.handleResponse(response, 'GenericApiResponse');
4964
+ const resp = this.handleResponse(response, 'GenericApiResponse');
4965
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
4966
+ const headerCb = options.responseHeadersCallback;
4967
+ // on next tick, so we have time to handle the response
4968
+ setTimeout(() => {
4969
+ headerCb(Object.fromEntries(response.headers.entries()));
4970
+ }, 0);
4971
+ }
4972
+ return resp;
4477
4973
  }
4478
4974
  /**
4479
4975
  * DEPRECATED. White label admin only API to remove a user from an organization.
@@ -4547,7 +5043,15 @@ class OrganizationsApi {
4547
5043
  url = authDefault.url;
4548
5044
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4549
5045
  const response = await fetch(url, requestOptions);
4550
- return this.handleResponse(response, 'GenericApiResponse');
5046
+ const resp = this.handleResponse(response, 'GenericApiResponse');
5047
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
5048
+ const headerCb = options.responseHeadersCallback;
5049
+ // on next tick, so we have time to handle the response
5050
+ setTimeout(() => {
5051
+ headerCb(Object.fromEntries(response.headers.entries()));
5052
+ }, 0);
5053
+ }
5054
+ return resp;
4551
5055
  }
4552
5056
  /**
4553
5057
  * DEPRECATED. White label admin only API to remove a user from a project.
@@ -4621,7 +5125,15 @@ class OrganizationsApi {
4621
5125
  url = authDefault.url;
4622
5126
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4623
5127
  const response = await fetch(url, requestOptions);
4624
- return this.handleResponse(response, 'GenericApiResponse');
5128
+ const resp = this.handleResponse(response, 'GenericApiResponse');
5129
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
5130
+ const headerCb = options.responseHeadersCallback;
5131
+ // on next tick, so we have time to handle the response
5132
+ setTimeout(() => {
5133
+ headerCb(Object.fromEntries(response.headers.entries()));
5134
+ }, 0);
5135
+ }
5136
+ return resp;
4625
5137
  }
4626
5138
  /**
4627
5139
  * White label admin only API to restore a deleted organization. All organization projects sharing the same deletion date as that of the organization will also be restored. If this is a trial organization that was never upgraded to a paid plan then the organization will be restored to its original trial state.
@@ -4689,7 +5201,15 @@ class OrganizationsApi {
4689
5201
  url = authDefault.url;
4690
5202
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4691
5203
  const response = await fetch(url, requestOptions);
4692
- return this.handleResponse(response, 'GenericApiResponse');
5204
+ const resp = this.handleResponse(response, 'GenericApiResponse');
5205
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
5206
+ const headerCb = options.responseHeadersCallback;
5207
+ // on next tick, so we have time to handle the response
5208
+ setTimeout(() => {
5209
+ headerCb(Object.fromEntries(response.headers.entries()));
5210
+ }, 0);
5211
+ }
5212
+ return resp;
4693
5213
  }
4694
5214
  /**
4695
5215
  * White label admin only API to update the default deployment target for this white label.
@@ -4757,7 +5277,15 @@ class OrganizationsApi {
4757
5277
  url = authDefault.url;
4758
5278
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4759
5279
  const response = await fetch(url, requestOptions);
4760
- return this.handleResponse(response, 'GenericApiResponse');
5280
+ const resp = this.handleResponse(response, 'GenericApiResponse');
5281
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
5282
+ const headerCb = options.responseHeadersCallback;
5283
+ // on next tick, so we have time to handle the response
5284
+ setTimeout(() => {
5285
+ headerCb(Object.fromEntries(response.headers.entries()));
5286
+ }, 0);
5287
+ }
5288
+ return resp;
4761
5289
  }
4762
5290
  /**
4763
5291
  * White label admin only API to customize the order of deployment options in the deployment view for this white label.
@@ -4825,7 +5353,15 @@ class OrganizationsApi {
4825
5353
  url = authDefault.url;
4826
5354
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4827
5355
  const response = await fetch(url, requestOptions);
4828
- return this.handleResponse(response, 'GenericApiResponse');
5356
+ const resp = this.handleResponse(response, 'GenericApiResponse');
5357
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
5358
+ const headerCb = options.responseHeadersCallback;
5359
+ // on next tick, so we have time to handle the response
5360
+ setTimeout(() => {
5361
+ headerCb(Object.fromEntries(response.headers.entries()));
5362
+ }, 0);
5363
+ }
5364
+ return resp;
4829
5365
  }
4830
5366
  /**
4831
5367
  * White label admin only API to update some or all of the deployment targets enabled for this white label.
@@ -4893,7 +5429,15 @@ class OrganizationsApi {
4893
5429
  url = authDefault.url;
4894
5430
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4895
5431
  const response = await fetch(url, requestOptions);
4896
- return this.handleResponse(response, 'GenericApiResponse');
5432
+ const resp = this.handleResponse(response, 'GenericApiResponse');
5433
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
5434
+ const headerCb = options.responseHeadersCallback;
5435
+ // on next tick, so we have time to handle the response
5436
+ setTimeout(() => {
5437
+ headerCb(Object.fromEntries(response.headers.entries()));
5438
+ }, 0);
5439
+ }
5440
+ return resp;
4897
5441
  }
4898
5442
  /**
4899
5443
  * White label admin only API to update a development board.
@@ -4967,7 +5511,15 @@ class OrganizationsApi {
4967
5511
  url = authDefault.url;
4968
5512
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
4969
5513
  const response = await fetch(url, requestOptions);
4970
- return this.handleResponse(response, 'GenericApiResponse');
5514
+ const resp = this.handleResponse(response, 'GenericApiResponse');
5515
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
5516
+ const headerCb = options.responseHeadersCallback;
5517
+ // on next tick, so we have time to handle the response
5518
+ setTimeout(() => {
5519
+ headerCb(Object.fromEntries(response.headers.entries()));
5520
+ }, 0);
5521
+ }
5522
+ return resp;
4971
5523
  }
4972
5524
  /**
4973
5525
  * White label admin only API to update the image of a development board.
@@ -5046,7 +5598,15 @@ class OrganizationsApi {
5046
5598
  url = authDefault.url;
5047
5599
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
5048
5600
  const response = await fetch(url, requestOptions);
5049
- return this.handleResponse(response, 'UploadAssetResponse');
5601
+ const resp = this.handleResponse(response, 'UploadAssetResponse');
5602
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
5603
+ const headerCb = options.responseHeadersCallback;
5604
+ // on next tick, so we have time to handle the response
5605
+ setTimeout(() => {
5606
+ headerCb(Object.fromEntries(response.headers.entries()));
5607
+ }, 0);
5608
+ }
5609
+ return resp;
5050
5610
  }
5051
5611
  /**
5052
5612
  * White label admin only API to update the white label information.
@@ -5114,7 +5674,15 @@ class OrganizationsApi {
5114
5674
  url = authDefault.url;
5115
5675
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
5116
5676
  const response = await fetch(url, requestOptions);
5117
- return this.handleResponse(response, 'GenericApiResponse');
5677
+ const resp = this.handleResponse(response, 'GenericApiResponse');
5678
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
5679
+ const headerCb = options.responseHeadersCallback;
5680
+ // on next tick, so we have time to handle the response
5681
+ setTimeout(() => {
5682
+ headerCb(Object.fromEntries(response.headers.entries()));
5683
+ }, 0);
5684
+ }
5685
+ return resp;
5118
5686
  }
5119
5687
  /**
5120
5688
  * White label admin only API to update some or all of the learning blocks enabled for this white label.
@@ -5182,7 +5750,15 @@ class OrganizationsApi {
5182
5750
  url = authDefault.url;
5183
5751
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
5184
5752
  const response = await fetch(url, requestOptions);
5185
- return this.handleResponse(response, 'GenericApiResponse');
5753
+ const resp = this.handleResponse(response, 'GenericApiResponse');
5754
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
5755
+ const headerCb = options.responseHeadersCallback;
5756
+ // on next tick, so we have time to handle the response
5757
+ setTimeout(() => {
5758
+ headerCb(Object.fromEntries(response.headers.entries()));
5759
+ }, 0);
5760
+ }
5761
+ return resp;
5186
5762
  }
5187
5763
  /**
5188
5764
  * White label admin only API to update organization properties such as name and logo.
@@ -5256,7 +5832,15 @@ class OrganizationsApi {
5256
5832
  url = authDefault.url;
5257
5833
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
5258
5834
  const response = await fetch(url, requestOptions);
5259
- return this.handleResponse(response, 'GenericApiResponse');
5835
+ const resp = this.handleResponse(response, 'GenericApiResponse');
5836
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
5837
+ const headerCb = options.responseHeadersCallback;
5838
+ // on next tick, so we have time to handle the response
5839
+ setTimeout(() => {
5840
+ headerCb(Object.fromEntries(response.headers.entries()));
5841
+ }, 0);
5842
+ }
5843
+ return resp;
5260
5844
  }
5261
5845
  /**
5262
5846
  * Update a data export for an organization. This is an API only available to white label admins.
@@ -5336,7 +5920,15 @@ class OrganizationsApi {
5336
5920
  url = authDefault.url;
5337
5921
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
5338
5922
  const response = await fetch(url, requestOptions);
5339
- return this.handleResponse(response, 'GenericApiResponse');
5923
+ const resp = this.handleResponse(response, 'GenericApiResponse');
5924
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
5925
+ const headerCb = options.responseHeadersCallback;
5926
+ // on next tick, so we have time to handle the response
5927
+ setTimeout(() => {
5928
+ headerCb(Object.fromEntries(response.headers.entries()));
5929
+ }, 0);
5930
+ }
5931
+ return resp;
5340
5932
  }
5341
5933
  /**
5342
5934
  * White label admin only API to update project properties.
@@ -5410,7 +6002,15 @@ class OrganizationsApi {
5410
6002
  url = authDefault.url;
5411
6003
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
5412
6004
  const response = await fetch(url, requestOptions);
5413
- return this.handleResponse(response, 'GenericApiResponse');
6005
+ const resp = this.handleResponse(response, 'GenericApiResponse');
6006
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
6007
+ const headerCb = options.responseHeadersCallback;
6008
+ // on next tick, so we have time to handle the response
6009
+ setTimeout(() => {
6010
+ headerCb(Object.fromEntries(response.headers.entries()));
6011
+ }, 0);
6012
+ }
6013
+ return resp;
5414
6014
  }
5415
6015
  /**
5416
6016
  * White label admin only API to update some or all theme colors.
@@ -5478,7 +6078,15 @@ class OrganizationsApi {
5478
6078
  url = authDefault.url;
5479
6079
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
5480
6080
  const response = await fetch(url, requestOptions);
5481
- return this.handleResponse(response, 'GenericApiResponse');
6081
+ const resp = this.handleResponse(response, 'GenericApiResponse');
6082
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
6083
+ const headerCb = options.responseHeadersCallback;
6084
+ // on next tick, so we have time to handle the response
6085
+ setTimeout(() => {
6086
+ headerCb(Object.fromEntries(response.headers.entries()));
6087
+ }, 0);
6088
+ }
6089
+ return resp;
5482
6090
  }
5483
6091
  /**
5484
6092
  * White label admin only API to update the white label theme device logo.
@@ -5551,7 +6159,15 @@ class OrganizationsApi {
5551
6159
  url = authDefault.url;
5552
6160
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
5553
6161
  const response = await fetch(url, requestOptions);
5554
- return this.handleResponse(response, 'UploadAssetResponse');
6162
+ const resp = this.handleResponse(response, 'UploadAssetResponse');
6163
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
6164
+ const headerCb = options.responseHeadersCallback;
6165
+ // on next tick, so we have time to handle the response
6166
+ setTimeout(() => {
6167
+ headerCb(Object.fromEntries(response.headers.entries()));
6168
+ }, 0);
6169
+ }
6170
+ return resp;
5555
6171
  }
5556
6172
  /**
5557
6173
  * White label admin only API to update the theme favicon.
@@ -5628,7 +6244,15 @@ class OrganizationsApi {
5628
6244
  url = authDefault.url;
5629
6245
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
5630
6246
  const response = await fetch(url, requestOptions);
5631
- return this.handleResponse(response, 'GenericApiResponse');
6247
+ const resp = this.handleResponse(response, 'GenericApiResponse');
6248
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
6249
+ const headerCb = options.responseHeadersCallback;
6250
+ // on next tick, so we have time to handle the response
6251
+ setTimeout(() => {
6252
+ headerCb(Object.fromEntries(response.headers.entries()));
6253
+ }, 0);
6254
+ }
6255
+ return resp;
5632
6256
  }
5633
6257
  /**
5634
6258
  * White label admin only API to update the white label theme logo.
@@ -5701,7 +6325,15 @@ class OrganizationsApi {
5701
6325
  url = authDefault.url;
5702
6326
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
5703
6327
  const response = await fetch(url, requestOptions);
5704
- return this.handleResponse(response, 'UploadAssetResponse');
6328
+ const resp = this.handleResponse(response, 'UploadAssetResponse');
6329
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
6330
+ const headerCb = options.responseHeadersCallback;
6331
+ // on next tick, so we have time to handle the response
6332
+ setTimeout(() => {
6333
+ headerCb(Object.fromEntries(response.headers.entries()));
6334
+ }, 0);
6335
+ }
6336
+ return resp;
5705
6337
  }
5706
6338
  /**
5707
6339
  * White label admin only API to update user properties.
@@ -5775,7 +6407,15 @@ class OrganizationsApi {
5775
6407
  url = authDefault.url;
5776
6408
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
5777
6409
  const response = await fetch(url, requestOptions);
5778
- return this.handleResponse(response, 'GenericApiResponse');
6410
+ const resp = this.handleResponse(response, 'GenericApiResponse');
6411
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
6412
+ const headerCb = options.responseHeadersCallback;
6413
+ // on next tick, so we have time to handle the response
6414
+ setTimeout(() => {
6415
+ headerCb(Object.fromEntries(response.headers.entries()));
6416
+ }, 0);
6417
+ }
6418
+ return resp;
5779
6419
  }
5780
6420
  }
5781
6421
  exports.OrganizationsApi = OrganizationsApi;