@emilgroup/action-sdk 1.8.1-beta.14 → 1.8.1-beta.17

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.
@@ -103,9 +103,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
103
103
  createAction: function (createActionRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
+ var _a;
108
+ return __generator(this, function (_b) {
109
+ switch (_b.label) {
109
110
  case 0:
110
111
  // verify required parameter 'createActionRequestDto' is not null or undefined
111
112
  (0, common_1.assertParamExists)('createAction', 'createActionRequestDto', createActionRequestDto);
@@ -121,14 +122,17 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
121
122
  // authentication bearer required
122
123
  // http bearer authentication required
123
124
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
- // Only Authorization falls back to the configured token; an empty value is never sent.
125
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
125
127
  ];
126
128
  case 1:
127
129
  // authentication bearer required
128
130
  // http bearer authentication required
129
- _a.sent();
130
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
- if (authorizationValue) {
131
+ _b.sent();
132
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
135
+ if (authorizationValue || authorizationKeepEmpty) {
132
136
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
133
137
  }
134
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -155,9 +159,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
155
159
  deleteAction: function (code, authorization, options) {
156
160
  if (options === void 0) { options = {}; }
157
161
  return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
159
- return __generator(this, function (_a) {
160
- switch (_a.label) {
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
163
+ var _a;
164
+ return __generator(this, function (_b) {
165
+ switch (_b.label) {
161
166
  case 0:
162
167
  // verify required parameter 'code' is not null or undefined
163
168
  (0, common_1.assertParamExists)('deleteAction', 'code', code);
@@ -174,14 +179,17 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
174
179
  // authentication bearer required
175
180
  // http bearer authentication required
176
181
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
177
- // Only Authorization falls back to the configured token; an empty value is never sent.
182
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
183
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
178
184
  ];
179
185
  case 1:
180
186
  // authentication bearer required
181
187
  // http bearer authentication required
182
- _a.sent();
183
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
- if (authorizationValue) {
188
+ _b.sent();
189
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
190
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
191
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
192
+ if (authorizationValue || authorizationKeepEmpty) {
185
193
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
186
194
  }
187
195
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -206,9 +214,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
206
214
  deleteActionVersion: function (versionCode, authorization, options) {
207
215
  if (options === void 0) { options = {}; }
208
216
  return __awaiter(_this, void 0, void 0, function () {
209
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
210
- return __generator(this, function (_a) {
211
- switch (_a.label) {
217
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
218
+ var _a;
219
+ return __generator(this, function (_b) {
220
+ switch (_b.label) {
212
221
  case 0:
213
222
  // verify required parameter 'versionCode' is not null or undefined
214
223
  (0, common_1.assertParamExists)('deleteActionVersion', 'versionCode', versionCode);
@@ -225,14 +234,17 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
225
234
  // authentication bearer required
226
235
  // http bearer authentication required
227
236
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
228
- // Only Authorization falls back to the configured token; an empty value is never sent.
237
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
238
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
229
239
  ];
230
240
  case 1:
231
241
  // authentication bearer required
232
242
  // http bearer authentication required
233
- _a.sent();
234
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
235
- if (authorizationValue) {
243
+ _b.sent();
244
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
245
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
246
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
247
+ if (authorizationValue || authorizationKeepEmpty) {
236
248
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
237
249
  }
238
250
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -258,9 +270,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
258
270
  getAction: function (code, authorization, expand, options) {
259
271
  if (options === void 0) { options = {}; }
260
272
  return __awaiter(_this, void 0, void 0, function () {
261
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
262
- return __generator(this, function (_a) {
263
- switch (_a.label) {
273
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
274
+ var _a;
275
+ return __generator(this, function (_b) {
276
+ switch (_b.label) {
264
277
  case 0:
265
278
  // verify required parameter 'code' is not null or undefined
266
279
  (0, common_1.assertParamExists)('getAction', 'code', code);
@@ -280,12 +293,14 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
280
293
  case 1:
281
294
  // authentication bearer required
282
295
  // http bearer authentication required
283
- _a.sent();
296
+ _b.sent();
284
297
  if (expand !== undefined) {
285
298
  localVarQueryParameter['expand'] = expand;
286
299
  }
287
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
288
- if (authorizationValue) {
300
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
301
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
302
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
303
+ if (authorizationValue || authorizationKeepEmpty) {
289
304
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
290
305
  }
291
306
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -311,9 +326,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
311
326
  getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
312
327
  if (options === void 0) { options = {}; }
313
328
  return __awaiter(_this, void 0, void 0, function () {
314
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
315
- return __generator(this, function (_a) {
316
- switch (_a.label) {
329
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
330
+ var _a;
331
+ return __generator(this, function (_b) {
332
+ switch (_b.label) {
317
333
  case 0:
318
334
  localVarPath = "/actionservice/v1/actions/executions/status";
319
335
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -330,15 +346,17 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
330
346
  case 1:
331
347
  // authentication bearer required
332
348
  // http bearer authentication required
333
- _a.sent();
349
+ _b.sent();
334
350
  if (executionCode !== undefined) {
335
351
  localVarQueryParameter['executionCode'] = executionCode;
336
352
  }
337
353
  if (correlationId !== undefined) {
338
354
  localVarQueryParameter['correlationId'] = correlationId;
339
355
  }
340
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
341
- if (authorizationValue) {
356
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
357
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
358
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
359
+ if (authorizationValue || authorizationKeepEmpty) {
342
360
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
343
361
  }
344
362
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -364,9 +382,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
364
382
  getActionVersion: function (versionCode, authorization, expand, options) {
365
383
  if (options === void 0) { options = {}; }
366
384
  return __awaiter(_this, void 0, void 0, function () {
367
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
368
- return __generator(this, function (_a) {
369
- switch (_a.label) {
385
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
386
+ var _a;
387
+ return __generator(this, function (_b) {
388
+ switch (_b.label) {
370
389
  case 0:
371
390
  // verify required parameter 'versionCode' is not null or undefined
372
391
  (0, common_1.assertParamExists)('getActionVersion', 'versionCode', versionCode);
@@ -386,12 +405,14 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
386
405
  case 1:
387
406
  // authentication bearer required
388
407
  // http bearer authentication required
389
- _a.sent();
408
+ _b.sent();
390
409
  if (expand !== undefined) {
391
410
  localVarQueryParameter['expand'] = expand;
392
411
  }
393
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
394
- if (authorizationValue) {
412
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
413
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
414
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
415
+ if (authorizationValue || authorizationKeepEmpty) {
395
416
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
396
417
  }
397
418
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -422,9 +443,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
422
443
  listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
423
444
  if (options === void 0) { options = {}; }
424
445
  return __awaiter(_this, void 0, void 0, function () {
425
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
426
- return __generator(this, function (_a) {
427
- switch (_a.label) {
446
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
447
+ var _a;
448
+ return __generator(this, function (_b) {
449
+ switch (_b.label) {
428
450
  case 0:
429
451
  localVarPath = "/actionservice/v1/actions/executions";
430
452
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -441,7 +463,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
441
463
  case 1:
442
464
  // authentication bearer required
443
465
  // http bearer authentication required
444
- _a.sent();
466
+ _b.sent();
445
467
  if (pageSize !== undefined) {
446
468
  localVarQueryParameter['pageSize'] = pageSize;
447
469
  }
@@ -463,8 +485,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
463
485
  if (filters !== undefined) {
464
486
  localVarQueryParameter['filters'] = filters;
465
487
  }
466
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
467
- if (authorizationValue) {
488
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
489
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
490
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
491
+ if (authorizationValue || authorizationKeepEmpty) {
468
492
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
469
493
  }
470
494
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -496,9 +520,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
496
520
  listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
497
521
  if (options === void 0) { options = {}; }
498
522
  return __awaiter(_this, void 0, void 0, function () {
499
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
500
- return __generator(this, function (_a) {
501
- switch (_a.label) {
523
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
524
+ var _a;
525
+ return __generator(this, function (_b) {
526
+ switch (_b.label) {
502
527
  case 0:
503
528
  // verify required parameter 'code' is not null or undefined
504
529
  (0, common_1.assertParamExists)('listActionVersions', 'code', code);
@@ -518,7 +543,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
518
543
  case 1:
519
544
  // authentication bearer required
520
545
  // http bearer authentication required
521
- _a.sent();
546
+ _b.sent();
522
547
  if (pageSize !== undefined) {
523
548
  localVarQueryParameter['pageSize'] = pageSize;
524
549
  }
@@ -540,8 +565,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
540
565
  if (filters !== undefined) {
541
566
  localVarQueryParameter['filters'] = filters;
542
567
  }
543
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
544
- if (authorizationValue) {
568
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
569
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
570
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
571
+ if (authorizationValue || authorizationKeepEmpty) {
545
572
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
546
573
  }
547
574
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -572,9 +599,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
572
599
  listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
573
600
  if (options === void 0) { options = {}; }
574
601
  return __awaiter(_this, void 0, void 0, function () {
575
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
576
- return __generator(this, function (_a) {
577
- switch (_a.label) {
602
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
603
+ var _a;
604
+ return __generator(this, function (_b) {
605
+ switch (_b.label) {
578
606
  case 0:
579
607
  localVarPath = "/actionservice/v1/actions";
580
608
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -591,7 +619,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
591
619
  case 1:
592
620
  // authentication bearer required
593
621
  // http bearer authentication required
594
- _a.sent();
622
+ _b.sent();
595
623
  if (pageSize !== undefined) {
596
624
  localVarQueryParameter['pageSize'] = pageSize;
597
625
  }
@@ -613,8 +641,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
613
641
  if (filters !== undefined) {
614
642
  localVarQueryParameter['filters'] = filters;
615
643
  }
616
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
617
- if (authorizationValue) {
644
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
645
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
646
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
647
+ if (authorizationValue || authorizationKeepEmpty) {
618
648
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
619
649
  }
620
650
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -645,9 +675,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
645
675
  listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
646
676
  if (options === void 0) { options = {}; }
647
677
  return __awaiter(_this, void 0, void 0, function () {
648
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
649
- return __generator(this, function (_a) {
650
- switch (_a.label) {
678
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
679
+ var _a;
680
+ return __generator(this, function (_b) {
681
+ switch (_b.label) {
651
682
  case 0:
652
683
  localVarPath = "/actionservice/v1/actions/versions";
653
684
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -664,7 +695,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
664
695
  case 1:
665
696
  // authentication bearer required
666
697
  // http bearer authentication required
667
- _a.sent();
698
+ _b.sent();
668
699
  if (pageSize !== undefined) {
669
700
  localVarQueryParameter['pageSize'] = pageSize;
670
701
  }
@@ -686,8 +717,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
686
717
  if (filters !== undefined) {
687
718
  localVarQueryParameter['filters'] = filters;
688
719
  }
689
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
690
- if (authorizationValue) {
720
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
721
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
722
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
723
+ if (authorizationValue || authorizationKeepEmpty) {
691
724
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
692
725
  }
693
726
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -712,9 +745,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
712
745
  triggerAction: function (triggerActionRequestDto, authorization, options) {
713
746
  if (options === void 0) { options = {}; }
714
747
  return __awaiter(_this, void 0, void 0, function () {
715
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
716
- return __generator(this, function (_a) {
717
- switch (_a.label) {
748
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
749
+ var _a;
750
+ return __generator(this, function (_b) {
751
+ switch (_b.label) {
718
752
  case 0:
719
753
  // verify required parameter 'triggerActionRequestDto' is not null or undefined
720
754
  (0, common_1.assertParamExists)('triggerAction', 'triggerActionRequestDto', triggerActionRequestDto);
@@ -730,14 +764,17 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
730
764
  // authentication bearer required
731
765
  // http bearer authentication required
732
766
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
733
- // Only Authorization falls back to the configured token; an empty value is never sent.
767
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
768
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
734
769
  ];
735
770
  case 1:
736
771
  // authentication bearer required
737
772
  // http bearer authentication required
738
- _a.sent();
739
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
740
- if (authorizationValue) {
773
+ _b.sent();
774
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
775
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
776
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
777
+ if (authorizationValue || authorizationKeepEmpty) {
741
778
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
742
779
  }
743
780
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -765,9 +802,10 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
765
802
  updateAction: function (code, updateActionRequestDto, authorization, options) {
766
803
  if (options === void 0) { options = {}; }
767
804
  return __awaiter(_this, void 0, void 0, function () {
768
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
769
- return __generator(this, function (_a) {
770
- switch (_a.label) {
805
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
806
+ var _a;
807
+ return __generator(this, function (_b) {
808
+ switch (_b.label) {
771
809
  case 0:
772
810
  // verify required parameter 'code' is not null or undefined
773
811
  (0, common_1.assertParamExists)('updateAction', 'code', code);
@@ -786,14 +824,17 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
786
824
  // authentication bearer required
787
825
  // http bearer authentication required
788
826
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
789
- // Only Authorization falls back to the configured token; an empty value is never sent.
827
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
828
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
790
829
  ];
791
830
  case 1:
792
831
  // authentication bearer required
793
832
  // http bearer authentication required
794
- _a.sent();
795
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
796
- if (authorizationValue) {
833
+ _b.sent();
834
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
835
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
836
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
837
+ if (authorizationValue || authorizationKeepEmpty) {
797
838
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
798
839
  }
799
840
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -1295,7 +1336,7 @@ var ActionClientApi = /** @class */ (function (_super) {
1295
1336
  */
1296
1337
  ActionClientApi.prototype.createAction = function (requestParameters, options) {
1297
1338
  var _this = this;
1298
- return (0, exports.ActionClientApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1339
+ return (0, exports.ActionClientApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1299
1340
  };
1300
1341
  /**
1301
1342
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
@@ -1307,7 +1348,7 @@ var ActionClientApi = /** @class */ (function (_super) {
1307
1348
  */
1308
1349
  ActionClientApi.prototype.deleteAction = function (requestParameters, options) {
1309
1350
  var _this = this;
1310
- return (0, exports.ActionClientApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1351
+ return (0, exports.ActionClientApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1311
1352
  };
1312
1353
  /**
1313
1354
  * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
@@ -1319,7 +1360,7 @@ var ActionClientApi = /** @class */ (function (_super) {
1319
1360
  */
1320
1361
  ActionClientApi.prototype.deleteActionVersion = function (requestParameters, options) {
1321
1362
  var _this = this;
1322
- return (0, exports.ActionClientApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1363
+ return (0, exports.ActionClientApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1323
1364
  };
1324
1365
  /**
1325
1366
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
@@ -1331,7 +1372,7 @@ var ActionClientApi = /** @class */ (function (_super) {
1331
1372
  */
1332
1373
  ActionClientApi.prototype.getAction = function (requestParameters, options) {
1333
1374
  var _this = this;
1334
- return (0, exports.ActionClientApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1375
+ return (0, exports.ActionClientApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1335
1376
  };
1336
1377
  /**
1337
1378
  * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
@@ -1344,7 +1385,7 @@ var ActionClientApi = /** @class */ (function (_super) {
1344
1385
  ActionClientApi.prototype.getActionExecutionStatus = function (requestParameters, options) {
1345
1386
  var _this = this;
1346
1387
  if (requestParameters === void 0) { requestParameters = {}; }
1347
- return (0, exports.ActionClientApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1388
+ return (0, exports.ActionClientApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1348
1389
  };
1349
1390
  /**
1350
1391
  * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
@@ -1356,7 +1397,7 @@ var ActionClientApi = /** @class */ (function (_super) {
1356
1397
  */
1357
1398
  ActionClientApi.prototype.getActionVersion = function (requestParameters, options) {
1358
1399
  var _this = this;
1359
- return (0, exports.ActionClientApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1400
+ return (0, exports.ActionClientApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1360
1401
  };
1361
1402
  /**
1362
1403
  * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
@@ -1369,7 +1410,7 @@ var ActionClientApi = /** @class */ (function (_super) {
1369
1410
  ActionClientApi.prototype.listActionExecutions = function (requestParameters, options) {
1370
1411
  var _this = this;
1371
1412
  if (requestParameters === void 0) { requestParameters = {}; }
1372
- return (0, exports.ActionClientApiFp)(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1413
+ return (0, exports.ActionClientApiFp)(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1373
1414
  };
1374
1415
  /**
1375
1416
  * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
@@ -1381,7 +1422,7 @@ var ActionClientApi = /** @class */ (function (_super) {
1381
1422
  */
1382
1423
  ActionClientApi.prototype.listActionVersions = function (requestParameters, options) {
1383
1424
  var _this = this;
1384
- return (0, exports.ActionClientApiFp)(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1425
+ return (0, exports.ActionClientApiFp)(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1385
1426
  };
1386
1427
  /**
1387
1428
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
@@ -1394,7 +1435,7 @@ var ActionClientApi = /** @class */ (function (_super) {
1394
1435
  ActionClientApi.prototype.listActions = function (requestParameters, options) {
1395
1436
  var _this = this;
1396
1437
  if (requestParameters === void 0) { requestParameters = {}; }
1397
- return (0, exports.ActionClientApiFp)(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1438
+ return (0, exports.ActionClientApiFp)(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1398
1439
  };
1399
1440
  /**
1400
1441
  * Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
@@ -1407,7 +1448,7 @@ var ActionClientApi = /** @class */ (function (_super) {
1407
1448
  ActionClientApi.prototype.listAllActionVersions = function (requestParameters, options) {
1408
1449
  var _this = this;
1409
1450
  if (requestParameters === void 0) { requestParameters = {}; }
1410
- return (0, exports.ActionClientApiFp)(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1451
+ return (0, exports.ActionClientApiFp)(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1411
1452
  };
1412
1453
  /**
1413
1454
  * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
@@ -1419,7 +1460,7 @@ var ActionClientApi = /** @class */ (function (_super) {
1419
1460
  */
1420
1461
  ActionClientApi.prototype.triggerAction = function (requestParameters, options) {
1421
1462
  var _this = this;
1422
- return (0, exports.ActionClientApiFp)(this.configuration).triggerAction(requestParameters.triggerActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1463
+ return (0, exports.ActionClientApiFp)(this.configuration).triggerAction(requestParameters.triggerActionRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1423
1464
  };
1424
1465
  /**
1425
1466
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
@@ -1431,7 +1472,7 @@ var ActionClientApi = /** @class */ (function (_super) {
1431
1472
  */
1432
1473
  ActionClientApi.prototype.updateAction = function (requestParameters, options) {
1433
1474
  var _this = this;
1434
- return (0, exports.ActionClientApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1475
+ return (0, exports.ActionClientApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1435
1476
  };
1436
1477
  return ActionClientApi;
1437
1478
  }(base_1.BaseAPI));