edge-impulse-api 1.93.25 → 1.93.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/build/browser/edge-impulse-api.d.ts +2385 -12
  2. package/build/browser/edge-impulse-api.js +7228 -803
  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 +105 -0
  68. package/build/library/sdk/api/organizationBlocksApi.js +315 -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/getExtensionSharedStateListResponse.d.ts +14 -0
  125. package/build/library/sdk/model/getExtensionSharedStateListResponse.js +4 -0
  126. package/build/library/sdk/model/getExtensionSharedStateListResponse.js.map +1 -0
  127. package/build/library/sdk/model/models.d.ts +3 -0
  128. package/build/library/sdk/model/models.js +3 -0
  129. package/build/library/sdk/model/models.js.map +1 -1
  130. package/build/library/sdk/model/oAuthScope.d.ts +1 -1
  131. package/build/library/sdk/model/oAuthScope.js +1 -1
  132. package/build/library/sdk/model/oAuthScope.js.map +1 -1
  133. package/build/library/sdk/model/setExtensionSharedStateRequest.d.ts +13 -0
  134. package/build/library/sdk/model/setExtensionSharedStateRequest.js +4 -0
  135. package/build/library/sdk/model/setExtensionSharedStateRequest.js.map +1 -0
  136. package/build/library/sdk/model/setExtensionSharedStateResponse.d.ts +11 -0
  137. package/build/library/sdk/model/setExtensionSharedStateResponse.js +4 -0
  138. package/build/library/sdk/model/setExtensionSharedStateResponse.js.map +1 -0
  139. package/package.json +1 -1
@@ -164,7 +164,15 @@ class JobsApi {
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, 'StartJobResponse');
167
+ const resp = this.handleResponse(response, 'StartJobResponse');
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
  * Generate code to run the impulse on an embedded device. When this step is complete use `downloadHistoricDeployment` to download the artefacts. Updates are streamed over the websocket API.
@@ -244,7 +252,15 @@ class JobsApi {
244
252
  url = authDefault.url;
245
253
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
246
254
  const response = await fetch(url, requestOptions);
247
- return this.handleResponse(response, 'BuildOnDeviceModelResponse');
255
+ const resp = this.handleResponse(response, 'BuildOnDeviceModelResponse');
256
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
257
+ const headerCb = options.responseHeadersCallback;
258
+ // on next tick, so we have time to handle the response
259
+ setTimeout(() => {
260
+ headerCb(Object.fromEntries(response.headers.entries()));
261
+ }, 0);
262
+ }
263
+ return resp;
248
264
  }
249
265
  /**
250
266
  * Generate code to run the impulse on an embedded device using an organizational deployment block. When this step is complete use `downloadHistoricDeployment` to download the artefacts. Updates are streamed over the websocket API.
@@ -316,7 +332,15 @@ class JobsApi {
316
332
  url = authDefault.url;
317
333
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
318
334
  const response = await fetch(url, requestOptions);
319
- return this.handleResponse(response, 'BuildOnDeviceModelResponse');
335
+ const resp = this.handleResponse(response, 'BuildOnDeviceModelResponse');
336
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
337
+ const headerCb = options.responseHeadersCallback;
338
+ // on next tick, so we have time to handle the response
339
+ setTimeout(() => {
340
+ headerCb(Object.fromEntries(response.headers.entries()));
341
+ }, 0);
342
+ }
343
+ return resp;
320
344
  }
321
345
  /**
322
346
  * Calculate data quality metrics for the dataset
@@ -384,7 +408,15 @@ class JobsApi {
384
408
  url = authDefault.url;
385
409
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
386
410
  const response = await fetch(url, requestOptions);
387
- return this.handleResponse(response, 'StartJobResponse');
411
+ const resp = this.handleResponse(response, 'StartJobResponse');
412
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
413
+ const headerCb = options.responseHeadersCallback;
414
+ // on next tick, so we have time to handle the response
415
+ setTimeout(() => {
416
+ headerCb(Object.fromEntries(response.headers.entries()));
417
+ }, 0);
418
+ }
419
+ return resp;
388
420
  }
389
421
  /**
390
422
  * Cancel a running job.
@@ -456,7 +488,15 @@ class JobsApi {
456
488
  url = authDefault.url;
457
489
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
458
490
  const response = await fetch(url, requestOptions);
459
- return this.handleResponse(response, 'GenericApiResponse');
491
+ const resp = this.handleResponse(response, 'GenericApiResponse');
492
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
493
+ const headerCb = options.responseHeadersCallback;
494
+ // on next tick, so we have time to handle the response
495
+ setTimeout(() => {
496
+ headerCb(Object.fromEntries(response.headers.entries()));
497
+ }, 0);
498
+ }
499
+ return resp;
460
500
  }
461
501
  /**
462
502
  * Run an AI Actions job over a subset of data. This will instruct the block to apply the changes directly to your dataset. To preview, use \"createPreviewAIActionsJob\". To set the config use `updateAIAction`.
@@ -524,7 +564,15 @@ class JobsApi {
524
564
  url = authDefault.url;
525
565
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
526
566
  const response = await fetch(url, requestOptions);
527
- return this.handleResponse(response, 'StartJobResponse');
567
+ const resp = this.handleResponse(response, 'StartJobResponse');
568
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
569
+ const headerCb = options.responseHeadersCallback;
570
+ // on next tick, so we have time to handle the response
571
+ setTimeout(() => {
572
+ headerCb(Object.fromEntries(response.headers.entries()));
573
+ }, 0);
574
+ }
575
+ return resp;
528
576
  }
529
577
  /**
530
578
  * Do a dry-run of an AI Actions job over a subset of data. This will instruct the block to propose changes to data items (via \"setSampleProposedChanges\") rather than apply the changes directly.
@@ -598,7 +646,15 @@ class JobsApi {
598
646
  url = authDefault.url;
599
647
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
600
648
  const response = await fetch(url, requestOptions);
601
- return this.handleResponse(response, 'StartJobResponse');
649
+ const resp = this.handleResponse(response, 'StartJobResponse');
650
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
651
+ const headerCb = options.responseHeadersCallback;
652
+ // on next tick, so we have time to handle the response
653
+ setTimeout(() => {
654
+ headerCb(Object.fromEntries(response.headers.entries()));
655
+ }, 0);
656
+ }
657
+ return resp;
602
658
  }
603
659
  /**
604
660
  * Generate new synthetic data
@@ -666,7 +722,15 @@ class JobsApi {
666
722
  url = authDefault.url;
667
723
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
668
724
  const response = await fetch(url, requestOptions);
669
- return this.handleResponse(response, 'StartJobResponse');
725
+ const resp = this.handleResponse(response, 'StartJobResponse');
726
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
727
+ const headerCb = options.responseHeadersCallback;
728
+ // on next tick, so we have time to handle the response
729
+ setTimeout(() => {
730
+ headerCb(Object.fromEntries(response.headers.entries()));
731
+ }, 0);
732
+ }
733
+ return resp;
670
734
  }
671
735
  /**
672
736
  * Download the logs for a job (as a text file).
@@ -742,7 +806,15 @@ class JobsApi {
742
806
  url = authDefault.url;
743
807
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
744
808
  const response = await fetch(url, requestOptions);
745
- return this.handleResponse(response, 'string');
809
+ const resp = this.handleResponse(response, 'string');
810
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
811
+ const headerCb = options.responseHeadersCallback;
812
+ // on next tick, so we have time to handle the response
813
+ setTimeout(() => {
814
+ headerCb(Object.fromEntries(response.headers.entries()));
815
+ }, 0);
816
+ }
817
+ return resp;
746
818
  }
747
819
  /**
748
820
  * Starts a job to collate and export on-device inference history data for a given time range. Once finished, the data can be downloaded via /api/{projectId}/devices/inference-history/download-export This is experimental and may change in the future.
@@ -810,7 +882,15 @@ class JobsApi {
810
882
  url = authDefault.url;
811
883
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
812
884
  const response = await fetch(url, requestOptions);
813
- return this.handleResponse(response, 'StartJobResponse');
885
+ const resp = this.handleResponse(response, 'StartJobResponse');
886
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
887
+ const headerCb = options.responseHeadersCallback;
888
+ // on next tick, so we have time to handle the response
889
+ setTimeout(() => {
890
+ headerCb(Object.fromEntries(response.headers.entries()));
891
+ }, 0);
892
+ }
893
+ return resp;
814
894
  }
815
895
  /**
816
896
  * Export the training pipeline of a Keras block. Updates are streamed over the websocket API.
@@ -878,7 +958,15 @@ class JobsApi {
878
958
  url = authDefault.url;
879
959
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
880
960
  const response = await fetch(url, requestOptions);
881
- return this.handleResponse(response, 'StartJobResponse');
961
+ const resp = this.handleResponse(response, 'StartJobResponse');
962
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
963
+ const headerCb = options.responseHeadersCallback;
964
+ // on next tick, so we have time to handle the response
965
+ setTimeout(() => {
966
+ headerCb(Object.fromEntries(response.headers.entries()));
967
+ }, 0);
968
+ }
969
+ return resp;
882
970
  }
883
971
  /**
884
972
  * Export the data of a Keras block (already split in train/validate data). Updates are streamed over the websocket API.
@@ -952,7 +1040,15 @@ class JobsApi {
952
1040
  url = authDefault.url;
953
1041
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
954
1042
  const response = await fetch(url, requestOptions);
955
- return this.handleResponse(response, 'StartJobResponse');
1043
+ const resp = this.handleResponse(response, 'StartJobResponse');
1044
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1045
+ const headerCb = options.responseHeadersCallback;
1046
+ // on next tick, so we have time to handle the response
1047
+ setTimeout(() => {
1048
+ headerCb(Object.fromEntries(response.headers.entries()));
1049
+ }, 0);
1050
+ }
1051
+ return resp;
956
1052
  }
957
1053
  /**
958
1054
  * Generate features for the data explorer
@@ -1014,7 +1110,15 @@ class JobsApi {
1014
1110
  url = authDefault.url;
1015
1111
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1016
1112
  const response = await fetch(url, requestOptions);
1017
- return this.handleResponse(response, 'StartJobResponse');
1113
+ const resp = this.handleResponse(response, 'StartJobResponse');
1114
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1115
+ const headerCb = options.responseHeadersCallback;
1116
+ // on next tick, so we have time to handle the response
1117
+ setTimeout(() => {
1118
+ headerCb(Object.fromEntries(response.headers.entries()));
1119
+ }, 0);
1120
+ }
1121
+ return resp;
1018
1122
  }
1019
1123
  /**
1020
1124
  * Take the raw training set and generate features from them. Updates are streamed over the websocket API.
@@ -1082,7 +1186,15 @@ class JobsApi {
1082
1186
  url = authDefault.url;
1083
1187
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1084
1188
  const response = await fetch(url, requestOptions);
1085
- return this.handleResponse(response, 'StartJobResponse');
1189
+ const resp = this.handleResponse(response, 'StartJobResponse');
1190
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1191
+ const headerCb = options.responseHeadersCallback;
1192
+ // on next tick, so we have time to handle the response
1193
+ setTimeout(() => {
1194
+ headerCb(Object.fromEntries(response.headers.entries()));
1195
+ }, 0);
1196
+ }
1197
+ return resp;
1086
1198
  }
1087
1199
  /**
1088
1200
  * Get the status for the multi-impulse migration job in this project. This is a separate route so public projects can access it. If no multi-impulse migration jobs are present, an error will be thrown.
@@ -1144,7 +1256,15 @@ class JobsApi {
1144
1256
  url = authDefault.url;
1145
1257
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1146
1258
  const response = await fetch(url, requestOptions);
1147
- return this.handleResponse(response, 'GetJobResponse');
1259
+ const resp = this.handleResponse(response, 'GetJobResponse');
1260
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1261
+ const headerCb = options.responseHeadersCallback;
1262
+ // on next tick, so we have time to handle the response
1263
+ setTimeout(() => {
1264
+ headerCb(Object.fromEntries(response.headers.entries()));
1265
+ }, 0);
1266
+ }
1267
+ return resp;
1148
1268
  }
1149
1269
  /**
1150
1270
  * Get the logs for the multi-impulse migration job in this project. This is a separate route so public projects can access it. If no multi-impulse migration jobs are present, an error will be thrown.
@@ -1214,7 +1334,15 @@ class JobsApi {
1214
1334
  url = authDefault.url;
1215
1335
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1216
1336
  const response = await fetch(url, requestOptions);
1217
- return this.handleResponse(response, 'LogStdoutResponse');
1337
+ const resp = this.handleResponse(response, 'LogStdoutResponse');
1338
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1339
+ const headerCb = options.responseHeadersCallback;
1340
+ // on next tick, so we have time to handle the response
1341
+ setTimeout(() => {
1342
+ headerCb(Object.fromEntries(response.headers.entries()));
1343
+ }, 0);
1344
+ }
1345
+ return resp;
1218
1346
  }
1219
1347
  /**
1220
1348
  * Get the status for a job.
@@ -1282,7 +1410,15 @@ class JobsApi {
1282
1410
  url = authDefault.url;
1283
1411
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1284
1412
  const response = await fetch(url, requestOptions);
1285
- return this.handleResponse(response, 'GetJobResponse');
1413
+ const resp = this.handleResponse(response, 'GetJobResponse');
1414
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1415
+ const headerCb = options.responseHeadersCallback;
1416
+ // on next tick, so we have time to handle the response
1417
+ setTimeout(() => {
1418
+ headerCb(Object.fromEntries(response.headers.entries()));
1419
+ }, 0);
1420
+ }
1421
+ return resp;
1286
1422
  }
1287
1423
  /**
1288
1424
  * Get the logs for a job.
@@ -1358,7 +1494,15 @@ class JobsApi {
1358
1494
  url = authDefault.url;
1359
1495
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1360
1496
  const response = await fetch(url, requestOptions);
1361
- return this.handleResponse(response, 'LogStdoutResponse');
1497
+ const resp = this.handleResponse(response, 'LogStdoutResponse');
1498
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1499
+ const headerCb = options.responseHeadersCallback;
1500
+ // on next tick, so we have time to handle the response
1501
+ setTimeout(() => {
1502
+ headerCb(Object.fromEntries(response.headers.entries()));
1503
+ }, 0);
1504
+ }
1505
+ return resp;
1362
1506
  }
1363
1507
  /**
1364
1508
  * Get a summary of jobs, grouped by key. Used to report to users how much compute they\'ve used.
@@ -1436,7 +1580,15 @@ class JobsApi {
1436
1580
  url = authDefault.url;
1437
1581
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1438
1582
  const response = await fetch(url, requestOptions);
1439
- return this.handleResponse(response, 'JobSummaryResponse');
1583
+ const resp = this.handleResponse(response, 'JobSummaryResponse');
1584
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1585
+ const headerCb = options.responseHeadersCallback;
1586
+ // on next tick, so we have time to handle the response
1587
+ setTimeout(() => {
1588
+ headerCb(Object.fromEntries(response.headers.entries()));
1589
+ }, 0);
1590
+ }
1591
+ return resp;
1440
1592
  }
1441
1593
  /**
1442
1594
  * Get the results from a job started from startProfileTfliteJob (via a GET request).
@@ -1504,7 +1656,15 @@ class JobsApi {
1504
1656
  url = authDefault.url;
1505
1657
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1506
1658
  const response = await fetch(url, requestOptions);
1507
- return this.handleResponse(response, 'ProfileTfLiteResponse');
1659
+ const resp = this.handleResponse(response, 'ProfileTfLiteResponse');
1660
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1661
+ const headerCb = options.responseHeadersCallback;
1662
+ // on next tick, so we have time to handle the response
1663
+ setTimeout(() => {
1664
+ headerCb(Object.fromEntries(response.headers.entries()));
1665
+ }, 0);
1666
+ }
1667
+ return resp;
1508
1668
  }
1509
1669
  /**
1510
1670
  * Get the results from a job started from startProfileTfliteJob (via a POST request).
@@ -1572,7 +1732,15 @@ class JobsApi {
1572
1732
  url = authDefault.url;
1573
1733
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1574
1734
  const response = await fetch(url, requestOptions);
1575
- return this.handleResponse(response, 'ProfileTfLiteResponse');
1735
+ const resp = this.handleResponse(response, 'ProfileTfLiteResponse');
1736
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1737
+ const headerCb = options.responseHeadersCallback;
1738
+ // on next tick, so we have time to handle the response
1739
+ setTimeout(() => {
1740
+ headerCb(Object.fromEntries(response.headers.entries()));
1741
+ }, 0);
1742
+ }
1743
+ return resp;
1576
1744
  }
1577
1745
  /**
1578
1746
  * Get all active jobs for this project
@@ -1638,7 +1806,15 @@ class JobsApi {
1638
1806
  url = authDefault.url;
1639
1807
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1640
1808
  const response = await fetch(url, requestOptions);
1641
- return this.handleResponse(response, 'ListJobsResponse');
1809
+ const resp = this.handleResponse(response, 'ListJobsResponse');
1810
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1811
+ const headerCb = options.responseHeadersCallback;
1812
+ // on next tick, so we have time to handle the response
1813
+ setTimeout(() => {
1814
+ headerCb(Object.fromEntries(response.headers.entries()));
1815
+ }, 0);
1816
+ }
1817
+ return resp;
1642
1818
  }
1643
1819
  /**
1644
1820
  * Get all jobs for this project
@@ -1732,7 +1908,15 @@ class JobsApi {
1732
1908
  url = authDefault.url;
1733
1909
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1734
1910
  const response = await fetch(url, requestOptions);
1735
- return this.handleResponse(response, 'ListJobsResponse');
1911
+ const resp = this.handleResponse(response, 'ListJobsResponse');
1912
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1913
+ const headerCb = options.responseHeadersCallback;
1914
+ // on next tick, so we have time to handle the response
1915
+ setTimeout(() => {
1916
+ headerCb(Object.fromEntries(response.headers.entries()));
1917
+ }, 0);
1918
+ }
1919
+ return resp;
1736
1920
  }
1737
1921
  /**
1738
1922
  * Get all finished jobs for this project
@@ -1814,7 +1998,15 @@ class JobsApi {
1814
1998
  url = authDefault.url;
1815
1999
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1816
2000
  const response = await fetch(url, requestOptions);
1817
- return this.handleResponse(response, 'ListJobsResponse');
2001
+ const resp = this.handleResponse(response, 'ListJobsResponse');
2002
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2003
+ const headerCb = options.responseHeadersCallback;
2004
+ // on next tick, so we have time to handle the response
2005
+ setTimeout(() => {
2006
+ headerCb(Object.fromEntries(response.headers.entries()));
2007
+ }, 0);
2008
+ }
2009
+ return resp;
1818
2010
  }
1819
2011
  /**
1820
2012
  * Evaluates optimal model architecture
@@ -1880,7 +2072,15 @@ class JobsApi {
1880
2072
  url = authDefault.url;
1881
2073
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1882
2074
  const response = await fetch(url, requestOptions);
1883
- return this.handleResponse(response, 'StartJobResponse');
2075
+ const resp = this.handleResponse(response, 'StartJobResponse');
2076
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2077
+ const headerCb = options.responseHeadersCallback;
2078
+ // on next tick, so we have time to handle the response
2079
+ setTimeout(() => {
2080
+ headerCb(Object.fromEntries(response.headers.entries()));
2081
+ }, 0);
2082
+ }
2083
+ return resp;
1884
2084
  }
1885
2085
  /**
1886
2086
  * If an impulse migration previously failed, use this function to retry the job.
@@ -1942,7 +2142,15 @@ class JobsApi {
1942
2142
  url = authDefault.url;
1943
2143
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1944
2144
  const response = await fetch(url, requestOptions);
1945
- return this.handleResponse(response, 'StartJobResponse');
2145
+ const resp = this.handleResponse(response, 'StartJobResponse');
2146
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2147
+ const headerCb = options.responseHeadersCallback;
2148
+ // on next tick, so we have time to handle the response
2149
+ setTimeout(() => {
2150
+ headerCb(Object.fromEntries(response.headers.entries()));
2151
+ }, 0);
2152
+ }
2153
+ return resp;
1946
2154
  }
1947
2155
  /**
1948
2156
  * Sets EON tuner primary model
@@ -1977,6 +2185,10 @@ class JobsApi {
1977
2185
  if (queryParams.trialId === null || queryParams.trialId === undefined) {
1978
2186
  throw new Error('Required parameter queryParams.trialId was null or undefined when calling setTunerPrimaryJob.');
1979
2187
  }
2188
+ // verify required parameter 'setTunerPrimaryJobRequest' is not null or undefined
2189
+ if (setTunerPrimaryJobRequest === null || setTunerPrimaryJobRequest === undefined) {
2190
+ throw new Error('Required parameter setTunerPrimaryJobRequest was null or undefined when calling setTunerPrimaryJob.');
2191
+ }
1980
2192
  if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.trialId) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.trialId) !== null) {
1981
2193
  queryParameters['trialId'] = queryParams.trialId;
1982
2194
  }
@@ -2014,7 +2226,15 @@ class JobsApi {
2014
2226
  url = authDefault.url;
2015
2227
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2016
2228
  const response = await fetch(url, requestOptions);
2017
- return this.handleResponse(response, 'StartJobResponse');
2229
+ const resp = this.handleResponse(response, 'StartJobResponse');
2230
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2231
+ const headerCb = options.responseHeadersCallback;
2232
+ // on next tick, so we have time to handle the response
2233
+ setTimeout(() => {
2234
+ headerCb(Object.fromEntries(response.headers.entries()));
2235
+ }, 0);
2236
+ }
2237
+ return resp;
2018
2238
  }
2019
2239
  /**
2020
2240
  * Classifies all items in the testing dataset against the current impulse. Updates are streamed over the websocket API.
@@ -2086,7 +2306,15 @@ class JobsApi {
2086
2306
  url = authDefault.url;
2087
2307
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2088
2308
  const response = await fetch(url, requestOptions);
2089
- return this.handleResponse(response, 'StartJobResponse');
2309
+ const resp = this.handleResponse(response, 'StartJobResponse');
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;
2090
2318
  }
2091
2319
  /**
2092
2320
  * Takes in a TFLite file and builds the model and SDK. Updates are streamed over the websocket API (or can be retrieved through the /stdout endpoint). Use getProfileTfliteJobResult to get the results when the job is completed.
@@ -2158,7 +2386,15 @@ class JobsApi {
2158
2386
  url = authDefault.url;
2159
2387
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2160
2388
  const response = await fetch(url, requestOptions);
2161
- return this.handleResponse(response, 'StartJobResponse');
2389
+ const resp = this.handleResponse(response, 'StartJobResponse');
2390
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2391
+ const headerCb = options.responseHeadersCallback;
2392
+ // on next tick, so we have time to handle the response
2393
+ setTimeout(() => {
2394
+ headerCb(Object.fromEntries(response.headers.entries()));
2395
+ }, 0);
2396
+ }
2397
+ return resp;
2162
2398
  }
2163
2399
  /**
2164
2400
  * Evaluates every variant of the current impulse. Updates are streamed over the websocket API.
@@ -2224,7 +2460,15 @@ class JobsApi {
2224
2460
  url = authDefault.url;
2225
2461
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2226
2462
  const response = await fetch(url, requestOptions);
2227
- return this.handleResponse(response, 'StartJobResponse');
2463
+ const resp = this.handleResponse(response, 'StartJobResponse');
2464
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2465
+ const headerCb = options.responseHeadersCallback;
2466
+ // on next tick, so we have time to handle the response
2467
+ setTimeout(() => {
2468
+ headerCb(Object.fromEntries(response.headers.entries()));
2469
+ }, 0);
2470
+ }
2471
+ return resp;
2228
2472
  }
2229
2473
  /**
2230
2474
  * Adds all data from an existing project into this project. This function is only available through a JWT token; and you can only add data from projects that you\'re a collaborator on.
@@ -2292,7 +2536,15 @@ class JobsApi {
2292
2536
  url = authDefault.url;
2293
2537
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2294
2538
  const response = await fetch(url, requestOptions);
2295
- return this.handleResponse(response, 'StartJobResponse');
2539
+ const resp = this.handleResponse(response, 'StartJobResponse');
2540
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2541
+ const headerCb = options.responseHeadersCallback;
2542
+ // on next tick, so we have time to handle the response
2543
+ setTimeout(() => {
2544
+ headerCb(Object.fromEntries(response.headers.entries()));
2545
+ }, 0);
2546
+ }
2547
+ return resp;
2296
2548
  }
2297
2549
  /**
2298
2550
  * Add keywords and noise data to a project (for getting started guide)
@@ -2354,7 +2606,15 @@ class JobsApi {
2354
2606
  url = authDefault.url;
2355
2607
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2356
2608
  const response = await fetch(url, requestOptions);
2357
- return this.handleResponse(response, 'StartJobResponse');
2609
+ const resp = this.handleResponse(response, 'StartJobResponse');
2610
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2611
+ const headerCb = options.responseHeadersCallback;
2612
+ // on next tick, so we have time to handle the response
2613
+ setTimeout(() => {
2614
+ headerCb(Object.fromEntries(response.headers.entries()));
2615
+ }, 0);
2616
+ }
2617
+ return resp;
2358
2618
  }
2359
2619
  /**
2360
2620
  * Make a version of a project public. This makes all data and state available (read-only) on a public URL, and allows users to clone this project.
@@ -2422,7 +2682,15 @@ class JobsApi {
2422
2682
  url = authDefault.url;
2423
2683
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2424
2684
  const response = await fetch(url, requestOptions);
2425
- return this.handleResponse(response, 'StartJobResponse');
2685
+ const resp = this.handleResponse(response, 'StartJobResponse');
2686
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2687
+ const headerCb = options.responseHeadersCallback;
2688
+ // on next tick, so we have time to handle the response
2689
+ setTimeout(() => {
2690
+ headerCb(Object.fromEntries(response.headers.entries()));
2691
+ }, 0);
2692
+ }
2693
+ return resp;
2426
2694
  }
2427
2695
  /**
2428
2696
  * Export all the data in the project as it was uploaded to Edge Impulse. Updates are streamed over the websocket API.
@@ -2490,7 +2758,15 @@ class JobsApi {
2490
2758
  url = authDefault.url;
2491
2759
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2492
2760
  const response = await fetch(url, requestOptions);
2493
- return this.handleResponse(response, 'StartJobResponse');
2761
+ const resp = this.handleResponse(response, 'StartJobResponse');
2762
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2763
+ const headerCb = options.responseHeadersCallback;
2764
+ // on next tick, so we have time to handle the response
2765
+ setTimeout(() => {
2766
+ headerCb(Object.fromEntries(response.headers.entries()));
2767
+ }, 0);
2768
+ }
2769
+ return resp;
2494
2770
  }
2495
2771
  /**
2496
2772
  * Simulates real world usage and returns performance metrics.
@@ -2562,7 +2838,15 @@ class JobsApi {
2562
2838
  url = authDefault.url;
2563
2839
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2564
2840
  const response = await fetch(url, requestOptions);
2565
- return this.handleResponse(response, 'StartJobResponse');
2841
+ const resp = this.handleResponse(response, 'StartJobResponse');
2842
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2843
+ const headerCb = options.responseHeadersCallback;
2844
+ // on next tick, so we have time to handle the response
2845
+ setTimeout(() => {
2846
+ headerCb(Object.fromEntries(response.headers.entries()));
2847
+ }, 0);
2848
+ }
2849
+ return resp;
2566
2850
  }
2567
2851
  /**
2568
2852
  * Begins post processing job
@@ -2634,7 +2918,15 @@ class JobsApi {
2634
2918
  url = authDefault.url;
2635
2919
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2636
2920
  const response = await fetch(url, requestOptions);
2637
- return this.handleResponse(response, 'StartJobResponse');
2921
+ const resp = this.handleResponse(response, 'StartJobResponse');
2922
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2923
+ const headerCb = options.responseHeadersCallback;
2924
+ // on next tick, so we have time to handle the response
2925
+ setTimeout(() => {
2926
+ headerCb(Object.fromEntries(response.headers.entries()));
2927
+ }, 0);
2928
+ }
2929
+ return resp;
2638
2930
  }
2639
2931
  /**
2640
2932
  * Takes in a TFLite model and returns the latency, RAM and ROM used for this model. Updates are streamed over the websocket API (or can be retrieved through the /stdout endpoint). Use getProfileTfliteJobResult to get the results when the job is completed.
@@ -2702,7 +2994,15 @@ class JobsApi {
2702
2994
  url = authDefault.url;
2703
2995
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2704
2996
  const response = await fetch(url, requestOptions);
2705
- return this.handleResponse(response, 'StartJobResponse');
2997
+ const resp = this.handleResponse(response, 'StartJobResponse');
2998
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
2999
+ const headerCb = options.responseHeadersCallback;
3000
+ // on next tick, so we have time to handle the response
3001
+ setTimeout(() => {
3002
+ headerCb(Object.fromEntries(response.headers.entries()));
3003
+ }, 0);
3004
+ }
3005
+ return resp;
2706
3006
  }
2707
3007
  /**
2708
3008
  * Restore a project to a certain version. This can only applied to a project without data, and will overwrite your impulse and all settings.
@@ -2770,7 +3070,15 @@ class JobsApi {
2770
3070
  url = authDefault.url;
2771
3071
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2772
3072
  const response = await fetch(url, requestOptions);
2773
- return this.handleResponse(response, 'GenericApiResponse');
3073
+ const resp = this.handleResponse(response, 'GenericApiResponse');
3074
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3075
+ const headerCb = options.responseHeadersCallback;
3076
+ // on next tick, so we have time to handle the response
3077
+ setTimeout(() => {
3078
+ headerCb(Object.fromEntries(response.headers.entries()));
3079
+ }, 0);
3080
+ }
3081
+ return resp;
2774
3082
  }
2775
3083
  /**
2776
3084
  * Restore a project to a certain public version. This can only applied to a project without data, and will overwrite your impulse and all settings.
@@ -2838,7 +3146,15 @@ class JobsApi {
2838
3146
  url = authDefault.url;
2839
3147
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2840
3148
  const response = await fetch(url, requestOptions);
2841
- return this.handleResponse(response, 'GenericApiResponse');
3149
+ const resp = this.handleResponse(response, 'GenericApiResponse');
3150
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3151
+ const headerCb = options.responseHeadersCallback;
3152
+ // on next tick, so we have time to handle the response
3153
+ setTimeout(() => {
3154
+ headerCb(Object.fromEntries(response.headers.entries()));
3155
+ }, 0);
3156
+ }
3157
+ return resp;
2842
3158
  }
2843
3159
  /**
2844
3160
  * Retrains the current impulse with the last known parameters. Updates are streamed over the websocket API.
@@ -2904,7 +3220,15 @@ class JobsApi {
2904
3220
  url = authDefault.url;
2905
3221
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2906
3222
  const response = await fetch(url, requestOptions);
2907
- return this.handleResponse(response, 'StartJobResponse');
3223
+ const resp = this.handleResponse(response, 'StartJobResponse');
3224
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3225
+ const headerCb = options.responseHeadersCallback;
3226
+ // on next tick, so we have time to handle the response
3227
+ setTimeout(() => {
3228
+ headerCb(Object.fromEntries(response.headers.entries()));
3229
+ }, 0);
3230
+ }
3231
+ return resp;
2908
3232
  }
2909
3233
  /**
2910
3234
  * Create a new version of the project. This stores all data and configuration offsite. If you have access to the enterprise version of Edge Impulse you can store your data in your own storage buckets (only through JWT token authentication).
@@ -2972,7 +3296,15 @@ class JobsApi {
2972
3296
  url = authDefault.url;
2973
3297
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
2974
3298
  const response = await fetch(url, requestOptions);
2975
- return this.handleResponse(response, 'StartJobResponse');
3299
+ const resp = this.handleResponse(response, 'StartJobResponse');
3300
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3301
+ const headerCb = options.responseHeadersCallback;
3302
+ // on next tick, so we have time to handle the response
3303
+ setTimeout(() => {
3304
+ headerCb(Object.fromEntries(response.headers.entries()));
3305
+ }, 0);
3306
+ }
3307
+ return resp;
2976
3308
  }
2977
3309
  /**
2978
3310
  * Export all the data in the project in WAV format. Updates are streamed over the websocket API.
@@ -3040,7 +3372,15 @@ class JobsApi {
3040
3372
  url = authDefault.url;
3041
3373
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3042
3374
  const response = await fetch(url, requestOptions);
3043
- return this.handleResponse(response, 'StartJobResponse');
3375
+ const resp = this.handleResponse(response, 'StartJobResponse');
3376
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3377
+ const headerCb = options.responseHeadersCallback;
3378
+ // on next tick, so we have time to handle the response
3379
+ setTimeout(() => {
3380
+ headerCb(Object.fromEntries(response.headers.entries()));
3381
+ }, 0);
3382
+ }
3383
+ return resp;
3044
3384
  }
3045
3385
  /**
3046
3386
  * Take the output from a DSP block and train an anomaly detection model using K-means or GMM. Updates are streamed over the websocket API.
@@ -3114,7 +3454,15 @@ class JobsApi {
3114
3454
  url = authDefault.url;
3115
3455
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3116
3456
  const response = await fetch(url, requestOptions);
3117
- return this.handleResponse(response, 'StartJobResponse');
3457
+ const resp = this.handleResponse(response, 'StartJobResponse');
3458
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3459
+ const headerCb = options.responseHeadersCallback;
3460
+ // on next tick, so we have time to handle the response
3461
+ setTimeout(() => {
3462
+ headerCb(Object.fromEntries(response.headers.entries()));
3463
+ }, 0);
3464
+ }
3465
+ return resp;
3118
3466
  }
3119
3467
  /**
3120
3468
  * Take the output from a DSP block and train a neural network using Keras. Updates are streamed over the websocket API.
@@ -3188,7 +3536,15 @@ class JobsApi {
3188
3536
  url = authDefault.url;
3189
3537
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3190
3538
  const response = await fetch(url, requestOptions);
3191
- return this.handleResponse(response, 'StartJobResponse');
3539
+ const resp = this.handleResponse(response, 'StartJobResponse');
3540
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3541
+ const headerCb = options.responseHeadersCallback;
3542
+ // on next tick, so we have time to handle the response
3543
+ setTimeout(() => {
3544
+ headerCb(Object.fromEntries(response.headers.entries()));
3545
+ }, 0);
3546
+ }
3547
+ return resp;
3192
3548
  }
3193
3549
  /**
3194
3550
  * Update a job.
@@ -3262,7 +3618,15 @@ class JobsApi {
3262
3618
  url = authDefault.url;
3263
3619
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
3264
3620
  const response = await fetch(url, requestOptions);
3265
- return this.handleResponse(response, 'GenericApiResponse');
3621
+ const resp = this.handleResponse(response, 'GenericApiResponse');
3622
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
3623
+ const headerCb = options.responseHeadersCallback;
3624
+ // on next tick, so we have time to handle the response
3625
+ setTimeout(() => {
3626
+ headerCb(Object.fromEntries(response.headers.entries()));
3627
+ }, 0);
3628
+ }
3629
+ return resp;
3266
3630
  }
3267
3631
  }
3268
3632
  exports.JobsApi = JobsApi;