edge-impulse-api 1.93.26 → 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
@@ -70,6 +70,9 @@ export declare class OptimizationApi {
70
70
  headers: {
71
71
  [name: string]: string;
72
72
  };
73
+ responseHeadersCallback?: (headers: {
74
+ [name: string]: string;
75
+ }) => void;
73
76
  }): Promise<GenericApiResponse>;
74
77
  /**
75
78
  * Create trial
@@ -82,6 +85,9 @@ export declare class OptimizationApi {
82
85
  headers: {
83
86
  [name: string]: string;
84
87
  };
88
+ responseHeadersCallback?: (headers: {
89
+ [name: string]: string;
90
+ }) => void;
85
91
  }): Promise<GenericApiResponse>;
86
92
  /**
87
93
  * Completely clears the EON tuner state for this project.
@@ -92,6 +98,9 @@ export declare class OptimizationApi {
92
98
  headers: {
93
99
  [name: string]: string;
94
100
  };
101
+ responseHeadersCallback?: (headers: {
102
+ [name: string]: string;
103
+ }) => void;
95
104
  }): Promise<GenericApiResponse>;
96
105
  /**
97
106
  * End an EON trial early. This can for example be used to implement early stopping.
@@ -104,6 +113,9 @@ export declare class OptimizationApi {
104
113
  headers: {
105
114
  [name: string]: string;
106
115
  };
116
+ responseHeadersCallback?: (headers: {
117
+ [name: string]: string;
118
+ }) => void;
107
119
  }): Promise<GenericApiResponse>;
108
120
  /**
109
121
  * Lists all possible blocks that can be used in the impulse, including any additional information required by the EON tuner that the getImpulseBlocks endpoint does not return
@@ -114,6 +126,9 @@ export declare class OptimizationApi {
114
126
  headers: {
115
127
  [name: string]: string;
116
128
  };
129
+ responseHeadersCallback?: (headers: {
130
+ [name: string]: string;
131
+ }) => void;
117
132
  }): Promise<AllBlocksResponse>;
118
133
  /**
119
134
  * Get all available learn blocks
@@ -124,6 +139,9 @@ export declare class OptimizationApi {
124
139
  headers: {
125
140
  [name: string]: string;
126
141
  };
142
+ responseHeadersCallback?: (headers: {
143
+ [name: string]: string;
144
+ }) => void;
127
145
  }): Promise<AllLearnBlocksResponse>;
128
146
  /**
129
147
  * Get config
@@ -134,6 +152,9 @@ export declare class OptimizationApi {
134
152
  headers: {
135
153
  [name: string]: string;
136
154
  };
155
+ responseHeadersCallback?: (headers: {
156
+ [name: string]: string;
157
+ }) => void;
137
158
  }): Promise<OptimizeConfigResponse>;
138
159
  /**
139
160
  * Retrieves DSP block parameters
@@ -146,6 +167,9 @@ export declare class OptimizationApi {
146
167
  headers: {
147
168
  [name: string]: string;
148
169
  };
170
+ responseHeadersCallback?: (headers: {
171
+ [name: string]: string;
172
+ }) => void;
149
173
  }): Promise<OptimizeDSPParametersResponse>;
150
174
  /**
151
175
  * Search space
@@ -156,6 +180,9 @@ export declare class OptimizationApi {
156
180
  headers: {
157
181
  [name: string]: string;
158
182
  };
183
+ responseHeadersCallback?: (headers: {
184
+ [name: string]: string;
185
+ }) => void;
159
186
  }): Promise<OptimizeSpaceResponse>;
160
187
  /**
161
188
  * Retrieves the EON tuner state
@@ -166,6 +193,9 @@ export declare class OptimizationApi {
166
193
  headers: {
167
194
  [name: string]: string;
168
195
  };
196
+ responseHeadersCallback?: (headers: {
197
+ [name: string]: string;
198
+ }) => void;
169
199
  }): Promise<OptimizeStateResponse>;
170
200
  /**
171
201
  * Retrieves available transfer learning models
@@ -176,6 +206,9 @@ export declare class OptimizationApi {
176
206
  headers: {
177
207
  [name: string]: string;
178
208
  };
209
+ responseHeadersCallback?: (headers: {
210
+ [name: string]: string;
211
+ }) => void;
179
212
  }): Promise<OptimizeTransferLearningModelsResponse>;
180
213
  /**
181
214
  * Get the logs for a trial.
@@ -187,6 +220,9 @@ export declare class OptimizationApi {
187
220
  headers: {
188
221
  [name: string]: string;
189
222
  };
223
+ responseHeadersCallback?: (headers: {
224
+ [name: string]: string;
225
+ }) => void;
190
226
  }): Promise<LogStdoutResponse>;
191
227
  /**
192
228
  * Retrieves the EON tuner state for a specific run.
@@ -198,6 +234,9 @@ export declare class OptimizationApi {
198
234
  headers: {
199
235
  [name: string]: string;
200
236
  };
237
+ responseHeadersCallback?: (headers: {
238
+ [name: string]: string;
239
+ }) => void;
201
240
  }): Promise<OptimizeStateResponse>;
202
241
  /**
203
242
  * Get window settings
@@ -208,6 +247,9 @@ export declare class OptimizationApi {
208
247
  headers: {
209
248
  [name: string]: string;
210
249
  };
250
+ responseHeadersCallback?: (headers: {
251
+ [name: string]: string;
252
+ }) => void;
211
253
  }): Promise<WindowSettingsResponse>;
212
254
  /**
213
255
  * List all the tuner runs for a project.
@@ -218,6 +260,9 @@ export declare class OptimizationApi {
218
260
  headers: {
219
261
  [name: string]: string;
220
262
  };
263
+ responseHeadersCallback?: (headers: {
264
+ [name: string]: string;
265
+ }) => void;
221
266
  }): Promise<ListTunerRunsResponse>;
222
267
  /**
223
268
  * Update config
@@ -229,6 +274,9 @@ export declare class OptimizationApi {
229
274
  headers: {
230
275
  [name: string]: string;
231
276
  };
277
+ responseHeadersCallback?: (headers: {
278
+ [name: string]: string;
279
+ }) => void;
232
280
  }): Promise<GenericApiResponse>;
233
281
  /**
234
282
  * Updates the EON tuner state for a specific run.
@@ -241,6 +289,9 @@ export declare class OptimizationApi {
241
289
  headers: {
242
290
  [name: string]: string;
243
291
  };
292
+ responseHeadersCallback?: (headers: {
293
+ [name: string]: string;
294
+ }) => void;
244
295
  }): Promise<GenericApiResponse>;
245
296
  }
246
297
  export {};
@@ -170,7 +170,15 @@ class OptimizationApi {
170
170
  url = authDefault.url;
171
171
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
172
172
  const response = await fetch(url, requestOptions);
173
- return this.handleResponse(response, 'GenericApiResponse');
173
+ const resp = this.handleResponse(response, 'GenericApiResponse');
174
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
175
+ const headerCb = options.responseHeadersCallback;
176
+ // on next tick, so we have time to handle the response
177
+ setTimeout(() => {
178
+ headerCb(Object.fromEntries(response.headers.entries()));
179
+ }, 0);
180
+ }
181
+ return resp;
174
182
  }
175
183
  /**
176
184
  * Create trial
@@ -244,7 +252,15 @@ class OptimizationApi {
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, 'GenericApiResponse');
255
+ const resp = this.handleResponse(response, 'GenericApiResponse');
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
  * Completely clears the EON tuner state for this project.
@@ -306,7 +322,15 @@ class OptimizationApi {
306
322
  url = authDefault.url;
307
323
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
308
324
  const response = await fetch(url, requestOptions);
309
- return this.handleResponse(response, 'GenericApiResponse');
325
+ const resp = this.handleResponse(response, 'GenericApiResponse');
326
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
327
+ const headerCb = options.responseHeadersCallback;
328
+ // on next tick, so we have time to handle the response
329
+ setTimeout(() => {
330
+ headerCb(Object.fromEntries(response.headers.entries()));
331
+ }, 0);
332
+ }
333
+ return resp;
310
334
  }
311
335
  /**
312
336
  * End an EON trial early. This can for example be used to implement early stopping.
@@ -380,7 +404,15 @@ class OptimizationApi {
380
404
  url = authDefault.url;
381
405
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
382
406
  const response = await fetch(url, requestOptions);
383
- return this.handleResponse(response, 'GenericApiResponse');
407
+ const resp = this.handleResponse(response, 'GenericApiResponse');
408
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
409
+ const headerCb = options.responseHeadersCallback;
410
+ // on next tick, so we have time to handle the response
411
+ setTimeout(() => {
412
+ headerCb(Object.fromEntries(response.headers.entries()));
413
+ }, 0);
414
+ }
415
+ return resp;
384
416
  }
385
417
  /**
386
418
  * Lists all possible blocks that can be used in the impulse, including any additional information required by the EON tuner that the getImpulseBlocks endpoint does not return
@@ -442,7 +474,15 @@ class OptimizationApi {
442
474
  url = authDefault.url;
443
475
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
444
476
  const response = await fetch(url, requestOptions);
445
- return this.handleResponse(response, 'AllBlocksResponse');
477
+ const resp = this.handleResponse(response, 'AllBlocksResponse');
478
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
479
+ const headerCb = options.responseHeadersCallback;
480
+ // on next tick, so we have time to handle the response
481
+ setTimeout(() => {
482
+ headerCb(Object.fromEntries(response.headers.entries()));
483
+ }, 0);
484
+ }
485
+ return resp;
446
486
  }
447
487
  /**
448
488
  * Get all available learn blocks
@@ -504,7 +544,15 @@ class OptimizationApi {
504
544
  url = authDefault.url;
505
545
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
506
546
  const response = await fetch(url, requestOptions);
507
- return this.handleResponse(response, 'AllLearnBlocksResponse');
547
+ const resp = this.handleResponse(response, 'AllLearnBlocksResponse');
548
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
549
+ const headerCb = options.responseHeadersCallback;
550
+ // on next tick, so we have time to handle the response
551
+ setTimeout(() => {
552
+ headerCb(Object.fromEntries(response.headers.entries()));
553
+ }, 0);
554
+ }
555
+ return resp;
508
556
  }
509
557
  /**
510
558
  * Get config
@@ -566,7 +614,15 @@ class OptimizationApi {
566
614
  url = authDefault.url;
567
615
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
568
616
  const response = await fetch(url, requestOptions);
569
- return this.handleResponse(response, 'OptimizeConfigResponse');
617
+ const resp = this.handleResponse(response, 'OptimizeConfigResponse');
618
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
619
+ const headerCb = options.responseHeadersCallback;
620
+ // on next tick, so we have time to handle the response
621
+ setTimeout(() => {
622
+ headerCb(Object.fromEntries(response.headers.entries()));
623
+ }, 0);
624
+ }
625
+ return resp;
570
626
  }
571
627
  /**
572
628
  * Retrieves DSP block parameters
@@ -644,7 +700,15 @@ class OptimizationApi {
644
700
  url = authDefault.url;
645
701
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
646
702
  const response = await fetch(url, requestOptions);
647
- return this.handleResponse(response, 'OptimizeDSPParametersResponse');
703
+ const resp = this.handleResponse(response, 'OptimizeDSPParametersResponse');
704
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
705
+ const headerCb = options.responseHeadersCallback;
706
+ // on next tick, so we have time to handle the response
707
+ setTimeout(() => {
708
+ headerCb(Object.fromEntries(response.headers.entries()));
709
+ }, 0);
710
+ }
711
+ return resp;
648
712
  }
649
713
  /**
650
714
  * Search space
@@ -706,7 +770,15 @@ class OptimizationApi {
706
770
  url = authDefault.url;
707
771
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
708
772
  const response = await fetch(url, requestOptions);
709
- return this.handleResponse(response, 'OptimizeSpaceResponse');
773
+ const resp = this.handleResponse(response, 'OptimizeSpaceResponse');
774
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
775
+ const headerCb = options.responseHeadersCallback;
776
+ // on next tick, so we have time to handle the response
777
+ setTimeout(() => {
778
+ headerCb(Object.fromEntries(response.headers.entries()));
779
+ }, 0);
780
+ }
781
+ return resp;
710
782
  }
711
783
  /**
712
784
  * Retrieves the EON tuner state
@@ -768,7 +840,15 @@ class OptimizationApi {
768
840
  url = authDefault.url;
769
841
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
770
842
  const response = await fetch(url, requestOptions);
771
- return this.handleResponse(response, 'OptimizeStateResponse');
843
+ const resp = this.handleResponse(response, 'OptimizeStateResponse');
844
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
845
+ const headerCb = options.responseHeadersCallback;
846
+ // on next tick, so we have time to handle the response
847
+ setTimeout(() => {
848
+ headerCb(Object.fromEntries(response.headers.entries()));
849
+ }, 0);
850
+ }
851
+ return resp;
772
852
  }
773
853
  /**
774
854
  * Retrieves available transfer learning models
@@ -830,7 +910,15 @@ class OptimizationApi {
830
910
  url = authDefault.url;
831
911
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
832
912
  const response = await fetch(url, requestOptions);
833
- return this.handleResponse(response, 'OptimizeTransferLearningModelsResponse');
913
+ const resp = this.handleResponse(response, 'OptimizeTransferLearningModelsResponse');
914
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
915
+ const headerCb = options.responseHeadersCallback;
916
+ // on next tick, so we have time to handle the response
917
+ setTimeout(() => {
918
+ headerCb(Object.fromEntries(response.headers.entries()));
919
+ }, 0);
920
+ }
921
+ return resp;
834
922
  }
835
923
  /**
836
924
  * Get the logs for a trial.
@@ -898,7 +986,15 @@ class OptimizationApi {
898
986
  url = authDefault.url;
899
987
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
900
988
  const response = await fetch(url, requestOptions);
901
- return this.handleResponse(response, 'LogStdoutResponse');
989
+ const resp = this.handleResponse(response, 'LogStdoutResponse');
990
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
991
+ const headerCb = options.responseHeadersCallback;
992
+ // on next tick, so we have time to handle the response
993
+ setTimeout(() => {
994
+ headerCb(Object.fromEntries(response.headers.entries()));
995
+ }, 0);
996
+ }
997
+ return resp;
902
998
  }
903
999
  /**
904
1000
  * Retrieves the EON tuner state for a specific run.
@@ -966,7 +1062,15 @@ class OptimizationApi {
966
1062
  url = authDefault.url;
967
1063
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
968
1064
  const response = await fetch(url, requestOptions);
969
- return this.handleResponse(response, 'OptimizeStateResponse');
1065
+ const resp = this.handleResponse(response, 'OptimizeStateResponse');
1066
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1067
+ const headerCb = options.responseHeadersCallback;
1068
+ // on next tick, so we have time to handle the response
1069
+ setTimeout(() => {
1070
+ headerCb(Object.fromEntries(response.headers.entries()));
1071
+ }, 0);
1072
+ }
1073
+ return resp;
970
1074
  }
971
1075
  /**
972
1076
  * Get window settings
@@ -1028,7 +1132,15 @@ class OptimizationApi {
1028
1132
  url = authDefault.url;
1029
1133
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1030
1134
  const response = await fetch(url, requestOptions);
1031
- return this.handleResponse(response, 'WindowSettingsResponse');
1135
+ const resp = this.handleResponse(response, 'WindowSettingsResponse');
1136
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1137
+ const headerCb = options.responseHeadersCallback;
1138
+ // on next tick, so we have time to handle the response
1139
+ setTimeout(() => {
1140
+ headerCb(Object.fromEntries(response.headers.entries()));
1141
+ }, 0);
1142
+ }
1143
+ return resp;
1032
1144
  }
1033
1145
  /**
1034
1146
  * List all the tuner runs for a project.
@@ -1090,7 +1202,15 @@ class OptimizationApi {
1090
1202
  url = authDefault.url;
1091
1203
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1092
1204
  const response = await fetch(url, requestOptions);
1093
- return this.handleResponse(response, 'ListTunerRunsResponse');
1205
+ const resp = this.handleResponse(response, 'ListTunerRunsResponse');
1206
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1207
+ const headerCb = options.responseHeadersCallback;
1208
+ // on next tick, so we have time to handle the response
1209
+ setTimeout(() => {
1210
+ headerCb(Object.fromEntries(response.headers.entries()));
1211
+ }, 0);
1212
+ }
1213
+ return resp;
1094
1214
  }
1095
1215
  /**
1096
1216
  * Update config
@@ -1158,7 +1278,15 @@ class OptimizationApi {
1158
1278
  url = authDefault.url;
1159
1279
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1160
1280
  const response = await fetch(url, requestOptions);
1161
- return this.handleResponse(response, 'GenericApiResponse');
1281
+ const resp = this.handleResponse(response, 'GenericApiResponse');
1282
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1283
+ const headerCb = options.responseHeadersCallback;
1284
+ // on next tick, so we have time to handle the response
1285
+ setTimeout(() => {
1286
+ headerCb(Object.fromEntries(response.headers.entries()));
1287
+ }, 0);
1288
+ }
1289
+ return resp;
1162
1290
  }
1163
1291
  /**
1164
1292
  * Updates the EON tuner state for a specific run.
@@ -1232,7 +1360,15 @@ class OptimizationApi {
1232
1360
  url = authDefault.url;
1233
1361
  (0, models_1.applyFormParams)(requestOptions, localVarFormParams);
1234
1362
  const response = await fetch(url, requestOptions);
1235
- return this.handleResponse(response, 'GenericApiResponse');
1363
+ const resp = this.handleResponse(response, 'GenericApiResponse');
1364
+ if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
1365
+ const headerCb = options.responseHeadersCallback;
1366
+ // on next tick, so we have time to handle the response
1367
+ setTimeout(() => {
1368
+ headerCb(Object.fromEntries(response.headers.entries()));
1369
+ }, 0);
1370
+ }
1371
+ return resp;
1236
1372
  }
1237
1373
  }
1238
1374
  exports.OptimizationApi = OptimizationApi;