@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.
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/action-sdk@1.8.1-beta.14 --save
20
+ npm install @emilgroup/action-sdk@1.8.1-beta.17 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/action-sdk@1.8.1-beta.14
24
+ yarn add @emilgroup/action-sdk@1.8.1-beta.17
25
25
  ```
26
26
 
27
27
  And then you can import `ActionsApi`.
@@ -79,9 +79,12 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
79
79
  // http bearer authentication required
80
80
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
81
81
 
82
- // Only Authorization falls back to the configured token; an empty value is never sent.
83
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
84
- if (authorizationValue) {
82
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
83
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
84
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
85
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
86
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
87
+ if (authorizationValue || authorizationKeepEmpty) {
85
88
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
86
89
  }
87
90
 
@@ -129,9 +132,12 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
129
132
  // http bearer authentication required
130
133
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
131
134
 
132
- // Only Authorization falls back to the configured token; an empty value is never sent.
133
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
134
- if (authorizationValue) {
135
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
136
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
137
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
138
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
139
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
140
+ if (authorizationValue || authorizationKeepEmpty) {
135
141
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
136
142
  }
137
143
 
@@ -176,9 +182,12 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
176
182
  // http bearer authentication required
177
183
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
178
184
 
179
- // Only Authorization falls back to the configured token; an empty value is never sent.
180
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
181
- if (authorizationValue) {
185
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
186
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
187
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
188
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
189
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
190
+ if (authorizationValue || authorizationKeepEmpty) {
182
191
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
183
192
  }
184
193
 
@@ -228,9 +237,12 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
228
237
  localVarQueryParameter['expand'] = expand;
229
238
  }
230
239
 
231
- // Only Authorization falls back to the configured token; an empty value is never sent.
232
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
233
- if (authorizationValue) {
240
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
241
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
242
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
243
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
244
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
245
+ if (authorizationValue || authorizationKeepEmpty) {
234
246
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
235
247
  }
236
248
 
@@ -281,9 +293,12 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
281
293
  localVarQueryParameter['correlationId'] = correlationId;
282
294
  }
283
295
 
284
- // Only Authorization falls back to the configured token; an empty value is never sent.
285
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
286
- if (authorizationValue) {
296
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
297
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
298
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
299
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
300
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
301
+ if (authorizationValue || authorizationKeepEmpty) {
287
302
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
288
303
  }
289
304
 
@@ -333,9 +348,12 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
333
348
  localVarQueryParameter['expand'] = expand;
334
349
  }
335
350
 
336
- // Only Authorization falls back to the configured token; an empty value is never sent.
337
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
338
- if (authorizationValue) {
351
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
352
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
353
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
354
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
355
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
356
+ if (authorizationValue || authorizationKeepEmpty) {
339
357
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
340
358
  }
341
359
 
@@ -411,9 +429,12 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
411
429
  localVarQueryParameter['filters'] = filters;
412
430
  }
413
431
 
414
- // Only Authorization falls back to the configured token; an empty value is never sent.
415
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
416
- if (authorizationValue) {
432
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
433
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
434
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
435
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
436
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
437
+ if (authorizationValue || authorizationKeepEmpty) {
417
438
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
418
439
  }
419
440
 
@@ -493,9 +514,12 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
493
514
  localVarQueryParameter['filters'] = filters;
494
515
  }
495
516
 
496
- // Only Authorization falls back to the configured token; an empty value is never sent.
497
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
498
- if (authorizationValue) {
517
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
518
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
519
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
520
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
521
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
522
+ if (authorizationValue || authorizationKeepEmpty) {
499
523
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
500
524
  }
501
525
 
@@ -571,9 +595,12 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
571
595
  localVarQueryParameter['filters'] = filters;
572
596
  }
573
597
 
574
- // Only Authorization falls back to the configured token; an empty value is never sent.
575
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
576
- if (authorizationValue) {
598
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
599
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
600
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
601
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
602
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
603
+ if (authorizationValue || authorizationKeepEmpty) {
577
604
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
578
605
  }
579
606
 
@@ -649,9 +676,12 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
649
676
  localVarQueryParameter['filters'] = filters;
650
677
  }
651
678
 
652
- // Only Authorization falls back to the configured token; an empty value is never sent.
653
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
654
- if (authorizationValue) {
679
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
680
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
681
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
682
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
683
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
684
+ if (authorizationValue || authorizationKeepEmpty) {
655
685
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
656
686
  }
657
687
 
@@ -695,9 +725,12 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
695
725
  // http bearer authentication required
696
726
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
697
727
 
698
- // Only Authorization falls back to the configured token; an empty value is never sent.
699
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
700
- if (authorizationValue) {
728
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
729
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
730
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
731
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
732
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
733
+ if (authorizationValue || authorizationKeepEmpty) {
701
734
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
702
735
  }
703
736
 
@@ -748,9 +781,12 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
748
781
  // http bearer authentication required
749
782
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
750
783
 
751
- // Only Authorization falls back to the configured token; an empty value is never sent.
752
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
753
- if (authorizationValue) {
784
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
785
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
786
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
787
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
788
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
789
+ if (authorizationValue || authorizationKeepEmpty) {
754
790
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
755
791
  }
756
792
 
@@ -1596,7 +1632,7 @@ export class ActionClientApi extends BaseAPI {
1596
1632
  * @memberof ActionClientApi
1597
1633
  */
1598
1634
  public createAction(requestParameters: ActionClientApiCreateActionRequest, options?: AxiosRequestConfig) {
1599
- return ActionClientApiFp(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1635
+ return ActionClientApiFp(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1600
1636
  }
1601
1637
 
1602
1638
  /**
@@ -1608,7 +1644,7 @@ export class ActionClientApi extends BaseAPI {
1608
1644
  * @memberof ActionClientApi
1609
1645
  */
1610
1646
  public deleteAction(requestParameters: ActionClientApiDeleteActionRequest, options?: AxiosRequestConfig) {
1611
- return ActionClientApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1647
+ return ActionClientApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1612
1648
  }
1613
1649
 
1614
1650
  /**
@@ -1620,7 +1656,7 @@ export class ActionClientApi extends BaseAPI {
1620
1656
  * @memberof ActionClientApi
1621
1657
  */
1622
1658
  public deleteActionVersion(requestParameters: ActionClientApiDeleteActionVersionRequest, options?: AxiosRequestConfig) {
1623
- return ActionClientApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1659
+ return ActionClientApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1624
1660
  }
1625
1661
 
1626
1662
  /**
@@ -1632,7 +1668,7 @@ export class ActionClientApi extends BaseAPI {
1632
1668
  * @memberof ActionClientApi
1633
1669
  */
1634
1670
  public getAction(requestParameters: ActionClientApiGetActionRequest, options?: AxiosRequestConfig) {
1635
- return ActionClientApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1671
+ return ActionClientApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1636
1672
  }
1637
1673
 
1638
1674
  /**
@@ -1644,7 +1680,7 @@ export class ActionClientApi extends BaseAPI {
1644
1680
  * @memberof ActionClientApi
1645
1681
  */
1646
1682
  public getActionExecutionStatus(requestParameters: ActionClientApiGetActionExecutionStatusRequest = {}, options?: AxiosRequestConfig) {
1647
- return ActionClientApiFp(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then((request) => request(this.axios, this.basePath));
1683
+ return ActionClientApiFp(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1648
1684
  }
1649
1685
 
1650
1686
  /**
@@ -1656,7 +1692,7 @@ export class ActionClientApi extends BaseAPI {
1656
1692
  * @memberof ActionClientApi
1657
1693
  */
1658
1694
  public getActionVersion(requestParameters: ActionClientApiGetActionVersionRequest, options?: AxiosRequestConfig) {
1659
- return ActionClientApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1695
+ return ActionClientApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1660
1696
  }
1661
1697
 
1662
1698
  /**
@@ -1668,7 +1704,7 @@ export class ActionClientApi extends BaseAPI {
1668
1704
  * @memberof ActionClientApi
1669
1705
  */
1670
1706
  public listActionExecutions(requestParameters: ActionClientApiListActionExecutionsRequest = {}, options?: AxiosRequestConfig) {
1671
- return ActionClientApiFp(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1707
+ return ActionClientApiFp(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1672
1708
  }
1673
1709
 
1674
1710
  /**
@@ -1680,7 +1716,7 @@ export class ActionClientApi extends BaseAPI {
1680
1716
  * @memberof ActionClientApi
1681
1717
  */
1682
1718
  public listActionVersions(requestParameters: ActionClientApiListActionVersionsRequest, options?: AxiosRequestConfig) {
1683
- return ActionClientApiFp(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1719
+ return 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((request) => request(this.axios, this.basePath));
1684
1720
  }
1685
1721
 
1686
1722
  /**
@@ -1692,7 +1728,7 @@ export class ActionClientApi extends BaseAPI {
1692
1728
  * @memberof ActionClientApi
1693
1729
  */
1694
1730
  public listActions(requestParameters: ActionClientApiListActionsRequest = {}, options?: AxiosRequestConfig) {
1695
- return ActionClientApiFp(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1731
+ return ActionClientApiFp(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1696
1732
  }
1697
1733
 
1698
1734
  /**
@@ -1704,7 +1740,7 @@ export class ActionClientApi extends BaseAPI {
1704
1740
  * @memberof ActionClientApi
1705
1741
  */
1706
1742
  public listAllActionVersions(requestParameters: ActionClientApiListAllActionVersionsRequest = {}, options?: AxiosRequestConfig) {
1707
- return ActionClientApiFp(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1743
+ return ActionClientApiFp(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1708
1744
  }
1709
1745
 
1710
1746
  /**
@@ -1716,7 +1752,7 @@ export class ActionClientApi extends BaseAPI {
1716
1752
  * @memberof ActionClientApi
1717
1753
  */
1718
1754
  public triggerAction(requestParameters: ActionClientApiTriggerActionRequest, options?: AxiosRequestConfig) {
1719
- return ActionClientApiFp(this.configuration).triggerAction(requestParameters.triggerActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1755
+ return ActionClientApiFp(this.configuration).triggerAction(requestParameters.triggerActionRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1720
1756
  }
1721
1757
 
1722
1758
  /**
@@ -1728,6 +1764,6 @@ export class ActionClientApi extends BaseAPI {
1728
1764
  * @memberof ActionClientApi
1729
1765
  */
1730
1766
  public updateAction(requestParameters: ActionClientApiUpdateActionRequest, options?: AxiosRequestConfig) {
1731
- return ActionClientApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1767
+ return ActionClientApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1732
1768
  }
1733
1769
  }
@@ -71,9 +71,12 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
71
71
  // http bearer authentication required
72
72
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
73
 
74
- // Only Authorization falls back to the configured token; an empty value is never sent.
75
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
76
- if (authorizationValue) {
74
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
75
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
76
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
77
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
78
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
79
+ if (authorizationValue || authorizationKeepEmpty) {
77
80
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
78
81
  }
79
82
 
@@ -121,9 +124,12 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
121
124
  // http bearer authentication required
122
125
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
126
 
124
- // Only Authorization falls back to the configured token; an empty value is never sent.
125
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
126
- if (authorizationValue) {
127
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
128
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
129
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
130
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
131
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
132
+ if (authorizationValue || authorizationKeepEmpty) {
127
133
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
128
134
  }
129
135
 
@@ -168,9 +174,12 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
168
174
  // http bearer authentication required
169
175
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
170
176
 
171
- // Only Authorization falls back to the configured token; an empty value is never sent.
172
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
173
- if (authorizationValue) {
177
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
178
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
179
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
180
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
181
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
182
+ if (authorizationValue || authorizationKeepEmpty) {
174
183
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
175
184
  }
176
185
 
@@ -220,9 +229,12 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
220
229
  localVarQueryParameter['expand'] = expand;
221
230
  }
222
231
 
223
- // Only Authorization falls back to the configured token; an empty value is never sent.
224
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
225
- if (authorizationValue) {
232
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
233
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
234
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
235
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
236
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
237
+ if (authorizationValue || authorizationKeepEmpty) {
226
238
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
227
239
  }
228
240
 
@@ -272,9 +284,12 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
272
284
  localVarQueryParameter['expand'] = expand;
273
285
  }
274
286
 
275
- // Only Authorization falls back to the configured token; an empty value is never sent.
276
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
277
- if (authorizationValue) {
287
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
288
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
289
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
290
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
291
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
292
+ if (authorizationValue || authorizationKeepEmpty) {
278
293
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
279
294
  }
280
295
 
@@ -354,9 +369,12 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
354
369
  localVarQueryParameter['filters'] = filters;
355
370
  }
356
371
 
357
- // Only Authorization falls back to the configured token; an empty value is never sent.
358
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
359
- if (authorizationValue) {
372
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
373
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
374
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
375
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
376
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
377
+ if (authorizationValue || authorizationKeepEmpty) {
360
378
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
361
379
  }
362
380
 
@@ -432,9 +450,12 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
432
450
  localVarQueryParameter['filters'] = filters;
433
451
  }
434
452
 
435
- // Only Authorization falls back to the configured token; an empty value is never sent.
436
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
437
- if (authorizationValue) {
453
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
454
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
455
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
456
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
457
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
458
+ if (authorizationValue || authorizationKeepEmpty) {
438
459
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
439
460
  }
440
461
 
@@ -510,9 +531,12 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
510
531
  localVarQueryParameter['filters'] = filters;
511
532
  }
512
533
 
513
- // Only Authorization falls back to the configured token; an empty value is never sent.
514
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
515
- if (authorizationValue) {
534
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
535
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
536
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
537
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
538
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
539
+ if (authorizationValue || authorizationKeepEmpty) {
516
540
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
517
541
  }
518
542
 
@@ -560,9 +584,12 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
560
584
  // http bearer authentication required
561
585
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
562
586
 
563
- // Only Authorization falls back to the configured token; an empty value is never sent.
564
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
565
- if (authorizationValue) {
587
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
588
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
589
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
590
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
591
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
592
+ if (authorizationValue || authorizationKeepEmpty) {
566
593
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
567
594
  }
568
595
 
@@ -1213,7 +1240,7 @@ export class ActionsApi extends BaseAPI {
1213
1240
  * @memberof ActionsApi
1214
1241
  */
1215
1242
  public createAction(requestParameters: ActionsApiCreateActionRequest, options?: AxiosRequestConfig) {
1216
- return ActionsApiFp(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1243
+ return ActionsApiFp(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1217
1244
  }
1218
1245
 
1219
1246
  /**
@@ -1225,7 +1252,7 @@ export class ActionsApi extends BaseAPI {
1225
1252
  * @memberof ActionsApi
1226
1253
  */
1227
1254
  public deleteAction(requestParameters: ActionsApiDeleteActionRequest, options?: AxiosRequestConfig) {
1228
- return ActionsApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1255
+ return ActionsApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1229
1256
  }
1230
1257
 
1231
1258
  /**
@@ -1237,7 +1264,7 @@ export class ActionsApi extends BaseAPI {
1237
1264
  * @memberof ActionsApi
1238
1265
  */
1239
1266
  public deleteActionVersion(requestParameters: ActionsApiDeleteActionVersionRequest, options?: AxiosRequestConfig) {
1240
- return ActionsApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1267
+ return ActionsApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1241
1268
  }
1242
1269
 
1243
1270
  /**
@@ -1249,7 +1276,7 @@ export class ActionsApi extends BaseAPI {
1249
1276
  * @memberof ActionsApi
1250
1277
  */
1251
1278
  public getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig) {
1252
- return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1279
+ return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1253
1280
  }
1254
1281
 
1255
1282
  /**
@@ -1261,7 +1288,7 @@ export class ActionsApi extends BaseAPI {
1261
1288
  * @memberof ActionsApi
1262
1289
  */
1263
1290
  public getActionVersion(requestParameters: ActionsApiGetActionVersionRequest, options?: AxiosRequestConfig) {
1264
- return ActionsApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1291
+ return ActionsApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1265
1292
  }
1266
1293
 
1267
1294
  /**
@@ -1273,7 +1300,7 @@ export class ActionsApi extends BaseAPI {
1273
1300
  * @memberof ActionsApi
1274
1301
  */
1275
1302
  public listActionVersions(requestParameters: ActionsApiListActionVersionsRequest, options?: AxiosRequestConfig) {
1276
- return ActionsApiFp(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1303
+ return ActionsApiFp(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((request) => request(this.axios, this.basePath));
1277
1304
  }
1278
1305
 
1279
1306
  /**
@@ -1285,7 +1312,7 @@ export class ActionsApi extends BaseAPI {
1285
1312
  * @memberof ActionsApi
1286
1313
  */
1287
1314
  public listActions(requestParameters: ActionsApiListActionsRequest = {}, options?: AxiosRequestConfig) {
1288
- return ActionsApiFp(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1315
+ return ActionsApiFp(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1289
1316
  }
1290
1317
 
1291
1318
  /**
@@ -1297,7 +1324,7 @@ export class ActionsApi extends BaseAPI {
1297
1324
  * @memberof ActionsApi
1298
1325
  */
1299
1326
  public listAllActionVersions(requestParameters: ActionsApiListAllActionVersionsRequest = {}, options?: AxiosRequestConfig) {
1300
- return ActionsApiFp(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1327
+ return ActionsApiFp(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1301
1328
  }
1302
1329
 
1303
1330
  /**
@@ -1309,6 +1336,6 @@ export class ActionsApi extends BaseAPI {
1309
1336
  * @memberof ActionsApi
1310
1337
  */
1311
1338
  public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
1312
- return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1339
+ return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1313
1340
  }
1314
1341
  }