@emilgroup/action-sdk-node 1.6.1-beta.1 → 1.6.1-beta.13

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-node@1.6.1-beta.1 --save
20
+ npm install @emilgroup/action-sdk-node@1.6.1-beta.13 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/action-sdk-node@1.6.1-beta.1
24
+ yarn add @emilgroup/action-sdk-node@1.6.1-beta.13
25
25
  ```
26
26
 
27
27
  And then you can import `ActionsApi`.
@@ -83,8 +83,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
83
83
  // http bearer authentication required
84
84
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
85
85
 
86
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
87
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
86
+ // Only Authorization falls back to the configured token; an empty value is never sent.
87
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
88
+ if (authorizationValue) {
89
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
88
90
  }
89
91
 
90
92
 
@@ -131,8 +133,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
131
133
  // http bearer authentication required
132
134
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
133
135
 
134
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
135
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
136
+ // Only Authorization falls back to the configured token; an empty value is never sent.
137
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
138
+ if (authorizationValue) {
139
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
136
140
  }
137
141
 
138
142
 
@@ -176,8 +180,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
176
180
  // http bearer authentication required
177
181
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
178
182
 
179
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
180
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ // Only Authorization falls back to the configured token; an empty value is never sent.
184
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
185
+ if (authorizationValue) {
186
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
181
187
  }
182
188
 
183
189
 
@@ -226,8 +232,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
226
232
  localVarQueryParameter['expand'] = expand;
227
233
  }
228
234
 
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
235
+ // Only Authorization falls back to the configured token; an empty value is never sent.
236
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
237
+ if (authorizationValue) {
238
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
231
239
  }
232
240
 
233
241
 
@@ -277,8 +285,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
277
285
  localVarQueryParameter['correlationId'] = correlationId;
278
286
  }
279
287
 
280
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
281
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
288
+ // Only Authorization falls back to the configured token; an empty value is never sent.
289
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
290
+ if (authorizationValue) {
291
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
282
292
  }
283
293
 
284
294
 
@@ -327,8 +337,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
327
337
  localVarQueryParameter['expand'] = expand;
328
338
  }
329
339
 
330
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
331
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
340
+ // Only Authorization falls back to the configured token; an empty value is never sent.
341
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
342
+ if (authorizationValue) {
343
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
332
344
  }
333
345
 
334
346
 
@@ -403,8 +415,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
403
415
  localVarQueryParameter['filters'] = filters;
404
416
  }
405
417
 
406
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
407
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
418
+ // Only Authorization falls back to the configured token; an empty value is never sent.
419
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
420
+ if (authorizationValue) {
421
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
408
422
  }
409
423
 
410
424
 
@@ -483,8 +497,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
483
497
  localVarQueryParameter['filters'] = filters;
484
498
  }
485
499
 
486
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
487
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
500
+ // Only Authorization falls back to the configured token; an empty value is never sent.
501
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
502
+ if (authorizationValue) {
503
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
488
504
  }
489
505
 
490
506
 
@@ -559,8 +575,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
559
575
  localVarQueryParameter['filters'] = filters;
560
576
  }
561
577
 
562
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
563
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
578
+ // Only Authorization falls back to the configured token; an empty value is never sent.
579
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
580
+ if (authorizationValue) {
581
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
564
582
  }
565
583
 
566
584
 
@@ -635,8 +653,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
635
653
  localVarQueryParameter['filters'] = filters;
636
654
  }
637
655
 
638
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
639
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
656
+ // Only Authorization falls back to the configured token; an empty value is never sent.
657
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
658
+ if (authorizationValue) {
659
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
640
660
  }
641
661
 
642
662
 
@@ -679,8 +699,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
679
699
  // http bearer authentication required
680
700
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
681
701
 
682
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
683
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
702
+ // Only Authorization falls back to the configured token; an empty value is never sent.
703
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
704
+ if (authorizationValue) {
705
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
684
706
  }
685
707
 
686
708
 
@@ -730,8 +752,10 @@ export const ActionClientApiAxiosParamCreator = function (configuration?: Config
730
752
  // http bearer authentication required
731
753
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
732
754
 
733
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
734
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
755
+ // Only Authorization falls back to the configured token; an empty value is never sent.
756
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
757
+ if (authorizationValue) {
758
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
735
759
  }
736
760
 
737
761
 
@@ -75,8 +75,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
75
75
  // http bearer authentication required
76
76
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
77
77
 
78
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
79
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
+ // Only Authorization falls back to the configured token; an empty value is never sent.
79
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
80
+ if (authorizationValue) {
81
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
80
82
  }
81
83
 
82
84
 
@@ -123,8 +125,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
123
125
  // http bearer authentication required
124
126
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
125
127
 
126
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
127
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
130
+ if (authorizationValue) {
131
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
128
132
  }
129
133
 
130
134
 
@@ -168,8 +172,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
168
172
  // http bearer authentication required
169
173
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
170
174
 
171
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
172
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
175
+ // Only Authorization falls back to the configured token; an empty value is never sent.
176
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
177
+ if (authorizationValue) {
178
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
173
179
  }
174
180
 
175
181
 
@@ -218,8 +224,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
218
224
  localVarQueryParameter['expand'] = expand;
219
225
  }
220
226
 
221
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
222
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
227
+ // Only Authorization falls back to the configured token; an empty value is never sent.
228
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
229
+ if (authorizationValue) {
230
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
223
231
  }
224
232
 
225
233
 
@@ -268,8 +276,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
268
276
  localVarQueryParameter['expand'] = expand;
269
277
  }
270
278
 
271
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
272
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
279
+ // Only Authorization falls back to the configured token; an empty value is never sent.
280
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
281
+ if (authorizationValue) {
282
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
273
283
  }
274
284
 
275
285
 
@@ -348,8 +358,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
348
358
  localVarQueryParameter['filters'] = filters;
349
359
  }
350
360
 
351
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
352
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
361
+ // Only Authorization falls back to the configured token; an empty value is never sent.
362
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
363
+ if (authorizationValue) {
364
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
353
365
  }
354
366
 
355
367
 
@@ -424,8 +436,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
424
436
  localVarQueryParameter['filters'] = filters;
425
437
  }
426
438
 
427
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
428
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
439
+ // Only Authorization falls back to the configured token; an empty value is never sent.
440
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
441
+ if (authorizationValue) {
442
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
429
443
  }
430
444
 
431
445
 
@@ -500,8 +514,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
500
514
  localVarQueryParameter['filters'] = filters;
501
515
  }
502
516
 
503
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
504
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
517
+ // Only Authorization falls back to the configured token; an empty value is never sent.
518
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
519
+ if (authorizationValue) {
520
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
505
521
  }
506
522
 
507
523
 
@@ -548,8 +564,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
548
564
  // http bearer authentication required
549
565
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
550
566
 
551
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
552
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
567
+ // Only Authorization falls back to the configured token; an empty value is never sent.
568
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
569
+ if (authorizationValue) {
570
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
553
571
  }
554
572
 
555
573
 
@@ -74,8 +74,10 @@ export const ExecutionsApiAxiosParamCreator = function (configuration?: Configur
74
74
  localVarQueryParameter['correlationId'] = correlationId;
75
75
  }
76
76
 
77
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
78
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
77
+ // Only Authorization falls back to the configured token; an empty value is never sent.
78
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
79
+ if (authorizationValue) {
80
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
79
81
  }
80
82
 
81
83
 
@@ -150,8 +152,10 @@ export const ExecutionsApiAxiosParamCreator = function (configuration?: Configur
150
152
  localVarQueryParameter['filters'] = filters;
151
153
  }
152
154
 
153
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
154
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
155
+ // Only Authorization falls back to the configured token; an empty value is never sent.
156
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
157
+ if (authorizationValue) {
158
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
155
159
  }
156
160
 
157
161
 
@@ -194,8 +198,10 @@ export const ExecutionsApiAxiosParamCreator = function (configuration?: Configur
194
198
  // http bearer authentication required
195
199
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
196
200
 
197
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
198
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
201
+ // Only Authorization falls back to the configured token; an empty value is never sent.
202
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
203
+ if (authorizationValue) {
204
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
199
205
  }
200
206
 
201
207
 
package/common.ts CHANGED
@@ -131,9 +131,10 @@ export const toPathString = function (url: URL) {
131
131
  * @export
132
132
  */
133
133
  export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
134
- return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
134
+ // Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
135
+ return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
135
136
  const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
136
- return axios.request<T, R>(axiosRequestArgs);
137
+ return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
137
138
  };
138
139
  }
139
140
 
@@ -870,7 +870,7 @@ export declare class ActionClientApi extends BaseAPI {
870
870
  * @throws {RequiredError}
871
871
  * @memberof ActionClientApi
872
872
  */
873
- createAction(requestParameters: ActionClientApiCreateActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateActionResponseClass, any, {}>>;
873
+ createAction(requestParameters: ActionClientApiCreateActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateActionResponseClass, any, {}, any>>;
874
874
  /**
875
875
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
876
876
  * @summary Delete the action
@@ -879,7 +879,7 @@ export declare class ActionClientApi extends BaseAPI {
879
879
  * @throws {RequiredError}
880
880
  * @memberof ActionClientApi
881
881
  */
882
- deleteAction(requestParameters: ActionClientApiDeleteActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
882
+ deleteAction(requestParameters: ActionClientApiDeleteActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
883
883
  /**
884
884
  * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
885
885
  * @summary Delete the action version
@@ -888,7 +888,7 @@ export declare class ActionClientApi extends BaseAPI {
888
888
  * @throws {RequiredError}
889
889
  * @memberof ActionClientApi
890
890
  */
891
- deleteActionVersion(requestParameters: ActionClientApiDeleteActionVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
891
+ deleteActionVersion(requestParameters: ActionClientApiDeleteActionVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
892
892
  /**
893
893
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
894
894
  * @summary Retrieve the action
@@ -897,7 +897,7 @@ export declare class ActionClientApi extends BaseAPI {
897
897
  * @throws {RequiredError}
898
898
  * @memberof ActionClientApi
899
899
  */
900
- getAction(requestParameters: ActionClientApiGetActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionResponseClass, any, {}>>;
900
+ getAction(requestParameters: ActionClientApiGetActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionResponseClass, any, {}, any>>;
901
901
  /**
902
902
  * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
903
903
  * @summary Retrieve the actionExecution
@@ -906,7 +906,7 @@ export declare class ActionClientApi extends BaseAPI {
906
906
  * @throws {RequiredError}
907
907
  * @memberof ActionClientApi
908
908
  */
909
- getActionExecutionStatus(requestParameters?: ActionClientApiGetActionExecutionStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionExecutionStatusResponseClass, any, {}>>;
909
+ getActionExecutionStatus(requestParameters?: ActionClientApiGetActionExecutionStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionExecutionStatusResponseClass, any, {}, any>>;
910
910
  /**
911
911
  * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
912
912
  * @summary Retrieve the action version
@@ -915,7 +915,7 @@ export declare class ActionClientApi extends BaseAPI {
915
915
  * @throws {RequiredError}
916
916
  * @memberof ActionClientApi
917
917
  */
918
- getActionVersion(requestParameters: ActionClientApiGetActionVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionVersionResponseClass, any, {}>>;
918
+ getActionVersion(requestParameters: ActionClientApiGetActionVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionVersionResponseClass, any, {}, any>>;
919
919
  /**
920
920
  * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
921
921
  * @summary List actionExecutions
@@ -924,7 +924,7 @@ export declare class ActionClientApi extends BaseAPI {
924
924
  * @throws {RequiredError}
925
925
  * @memberof ActionClientApi
926
926
  */
927
- listActionExecutions(requestParameters?: ActionClientApiListActionExecutionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionExecutionsResponseClass, any, {}>>;
927
+ listActionExecutions(requestParameters?: ActionClientApiListActionExecutionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionExecutionsResponseClass, any, {}, any>>;
928
928
  /**
929
929
  * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
930
930
  * @summary List action versions
@@ -933,7 +933,7 @@ export declare class ActionClientApi extends BaseAPI {
933
933
  * @throws {RequiredError}
934
934
  * @memberof ActionClientApi
935
935
  */
936
- listActionVersions(requestParameters: ActionClientApiListActionVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionVersionsResponseClass, any, {}>>;
936
+ listActionVersions(requestParameters: ActionClientApiListActionVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionVersionsResponseClass, any, {}, any>>;
937
937
  /**
938
938
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
939
939
  * @summary List actions
@@ -942,7 +942,7 @@ export declare class ActionClientApi extends BaseAPI {
942
942
  * @throws {RequiredError}
943
943
  * @memberof ActionClientApi
944
944
  */
945
- listActions(requestParameters?: ActionClientApiListActionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionsResponseClass, any, {}>>;
945
+ listActions(requestParameters?: ActionClientApiListActionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionsResponseClass, any, {}, any>>;
946
946
  /**
947
947
  * 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\"
948
948
  * @summary List action versions
@@ -951,7 +951,7 @@ export declare class ActionClientApi extends BaseAPI {
951
951
  * @throws {RequiredError}
952
952
  * @memberof ActionClientApi
953
953
  */
954
- listAllActionVersions(requestParameters?: ActionClientApiListAllActionVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionVersionsResponseClass, any, {}>>;
954
+ listAllActionVersions(requestParameters?: ActionClientApiListAllActionVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionVersionsResponseClass, any, {}, any>>;
955
955
  /**
956
956
  * 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\"
957
957
  * @summary Create the actionExecution
@@ -960,7 +960,7 @@ export declare class ActionClientApi extends BaseAPI {
960
960
  * @throws {RequiredError}
961
961
  * @memberof ActionClientApi
962
962
  */
963
- triggerAction(requestParameters: ActionClientApiTriggerActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TriggerActionResponseClass, any, {}>>;
963
+ triggerAction(requestParameters: ActionClientApiTriggerActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TriggerActionResponseClass, any, {}, any>>;
964
964
  /**
965
965
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
966
966
  * @summary Update the action
@@ -969,5 +969,5 @@ export declare class ActionClientApi extends BaseAPI {
969
969
  * @throws {RequiredError}
970
970
  * @memberof ActionClientApi
971
971
  */
972
- updateAction(requestParameters: ActionClientApiUpdateActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateActionResponseClass, any, {}>>;
972
+ updateAction(requestParameters: ActionClientApiUpdateActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateActionResponseClass, any, {}, any>>;
973
973
  }
@@ -107,7 +107,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
107
107
  createAction: function (createActionRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
156
159
  deleteAction: function (code, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -174,13 +177,16 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
174
177
  localVarQueryParameter = {};
175
178
  // authentication bearer required
176
179
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
+ // Only Authorization falls back to the configured token; an empty value is never sent.
182
+ ];
178
183
  case 1:
179
184
  // authentication bearer required
180
185
  // http bearer authentication required
181
186
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -204,7 +210,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
204
210
  deleteActionVersion: function (versionCode, authorization, options) {
205
211
  if (options === void 0) { options = {}; }
206
212
  return __awaiter(_this, void 0, void 0, function () {
207
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
208
214
  return __generator(this, function (_a) {
209
215
  switch (_a.label) {
210
216
  case 0:
@@ -222,13 +228,16 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
222
228
  localVarQueryParameter = {};
223
229
  // authentication bearer required
224
230
  // http bearer authentication required
225
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
231
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
232
+ // Only Authorization falls back to the configured token; an empty value is never sent.
233
+ ];
226
234
  case 1:
227
235
  // authentication bearer required
228
236
  // http bearer authentication required
229
237
  _a.sent();
230
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
239
+ if (authorizationValue) {
240
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
232
241
  }
233
242
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
243
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -253,7 +262,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
253
262
  getAction: function (code, authorization, expand, options) {
254
263
  if (options === void 0) { options = {}; }
255
264
  return __awaiter(_this, void 0, void 0, function () {
256
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
265
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
257
266
  return __generator(this, function (_a) {
258
267
  switch (_a.label) {
259
268
  case 0:
@@ -279,8 +288,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
279
288
  if (expand !== undefined) {
280
289
  localVarQueryParameter['expand'] = expand;
281
290
  }
282
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
283
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
291
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
292
+ if (authorizationValue) {
293
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
284
294
  }
285
295
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
286
296
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -305,7 +315,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
305
315
  getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
306
316
  if (options === void 0) { options = {}; }
307
317
  return __awaiter(_this, void 0, void 0, function () {
308
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
318
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
309
319
  return __generator(this, function (_a) {
310
320
  switch (_a.label) {
311
321
  case 0:
@@ -331,8 +341,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
331
341
  if (correlationId !== undefined) {
332
342
  localVarQueryParameter['correlationId'] = correlationId;
333
343
  }
334
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
335
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
344
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
345
+ if (authorizationValue) {
346
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
336
347
  }
337
348
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
338
349
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -357,7 +368,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
357
368
  getActionVersion: function (versionCode, authorization, expand, options) {
358
369
  if (options === void 0) { options = {}; }
359
370
  return __awaiter(_this, void 0, void 0, function () {
360
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
371
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
361
372
  return __generator(this, function (_a) {
362
373
  switch (_a.label) {
363
374
  case 0:
@@ -383,8 +394,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
383
394
  if (expand !== undefined) {
384
395
  localVarQueryParameter['expand'] = expand;
385
396
  }
386
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
387
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
397
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
398
+ if (authorizationValue) {
399
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
388
400
  }
389
401
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
390
402
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -414,7 +426,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
414
426
  listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
415
427
  if (options === void 0) { options = {}; }
416
428
  return __awaiter(_this, void 0, void 0, function () {
417
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
429
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
418
430
  return __generator(this, function (_a) {
419
431
  switch (_a.label) {
420
432
  case 0:
@@ -455,8 +467,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
455
467
  if (filters !== undefined) {
456
468
  localVarQueryParameter['filters'] = filters;
457
469
  }
458
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
459
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
470
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
471
+ if (authorizationValue) {
472
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
460
473
  }
461
474
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
462
475
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -487,7 +500,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
487
500
  listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
488
501
  if (options === void 0) { options = {}; }
489
502
  return __awaiter(_this, void 0, void 0, function () {
490
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
503
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
491
504
  return __generator(this, function (_a) {
492
505
  switch (_a.label) {
493
506
  case 0:
@@ -531,8 +544,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
531
544
  if (filters !== undefined) {
532
545
  localVarQueryParameter['filters'] = filters;
533
546
  }
534
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
535
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
547
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
548
+ if (authorizationValue) {
549
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
536
550
  }
537
551
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
538
552
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -562,7 +576,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
562
576
  listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
563
577
  if (options === void 0) { options = {}; }
564
578
  return __awaiter(_this, void 0, void 0, function () {
565
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
579
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
566
580
  return __generator(this, function (_a) {
567
581
  switch (_a.label) {
568
582
  case 0:
@@ -603,8 +617,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
603
617
  if (filters !== undefined) {
604
618
  localVarQueryParameter['filters'] = filters;
605
619
  }
606
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
607
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
620
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
621
+ if (authorizationValue) {
622
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
608
623
  }
609
624
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
610
625
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -634,7 +649,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
634
649
  listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
635
650
  if (options === void 0) { options = {}; }
636
651
  return __awaiter(_this, void 0, void 0, function () {
637
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
652
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
638
653
  return __generator(this, function (_a) {
639
654
  switch (_a.label) {
640
655
  case 0:
@@ -675,8 +690,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
675
690
  if (filters !== undefined) {
676
691
  localVarQueryParameter['filters'] = filters;
677
692
  }
678
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
679
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
693
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
694
+ if (authorizationValue) {
695
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
680
696
  }
681
697
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
682
698
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -700,7 +716,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
700
716
  triggerAction: function (triggerActionRequestDto, authorization, options) {
701
717
  if (options === void 0) { options = {}; }
702
718
  return __awaiter(_this, void 0, void 0, function () {
703
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
719
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
704
720
  return __generator(this, function (_a) {
705
721
  switch (_a.label) {
706
722
  case 0:
@@ -717,13 +733,16 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
717
733
  localVarQueryParameter = {};
718
734
  // authentication bearer required
719
735
  // http bearer authentication required
720
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
736
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
737
+ // Only Authorization falls back to the configured token; an empty value is never sent.
738
+ ];
721
739
  case 1:
722
740
  // authentication bearer required
723
741
  // http bearer authentication required
724
742
  _a.sent();
725
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
726
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
743
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
744
+ if (authorizationValue) {
745
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
727
746
  }
728
747
  localVarHeaderParameter['Content-Type'] = 'application/json';
729
748
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -750,7 +769,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
750
769
  updateAction: function (code, updateActionRequestDto, authorization, options) {
751
770
  if (options === void 0) { options = {}; }
752
771
  return __awaiter(_this, void 0, void 0, function () {
753
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
772
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
754
773
  return __generator(this, function (_a) {
755
774
  switch (_a.label) {
756
775
  case 0:
@@ -770,13 +789,16 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
770
789
  localVarQueryParameter = {};
771
790
  // authentication bearer required
772
791
  // http bearer authentication required
773
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
792
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
793
+ // Only Authorization falls back to the configured token; an empty value is never sent.
794
+ ];
774
795
  case 1:
775
796
  // authentication bearer required
776
797
  // http bearer authentication required
777
798
  _a.sent();
778
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
779
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
799
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
800
+ if (authorizationValue) {
801
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
780
802
  }
781
803
  localVarHeaderParameter['Content-Type'] = 'application/json';
782
804
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -665,7 +665,7 @@ export declare class ActionsApi extends BaseAPI {
665
665
  * @throws {RequiredError}
666
666
  * @memberof ActionsApi
667
667
  */
668
- createAction(requestParameters: ActionsApiCreateActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateActionResponseClass, any, {}>>;
668
+ createAction(requestParameters: ActionsApiCreateActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateActionResponseClass, any, {}, any>>;
669
669
  /**
670
670
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
671
671
  * @summary Delete the action
@@ -674,7 +674,7 @@ export declare class ActionsApi extends BaseAPI {
674
674
  * @throws {RequiredError}
675
675
  * @memberof ActionsApi
676
676
  */
677
- deleteAction(requestParameters: ActionsApiDeleteActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
677
+ deleteAction(requestParameters: ActionsApiDeleteActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
678
678
  /**
679
679
  * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
680
680
  * @summary Delete the action version
@@ -683,7 +683,7 @@ export declare class ActionsApi extends BaseAPI {
683
683
  * @throws {RequiredError}
684
684
  * @memberof ActionsApi
685
685
  */
686
- deleteActionVersion(requestParameters: ActionsApiDeleteActionVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
686
+ deleteActionVersion(requestParameters: ActionsApiDeleteActionVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
687
687
  /**
688
688
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
689
689
  * @summary Retrieve the action
@@ -692,7 +692,7 @@ export declare class ActionsApi extends BaseAPI {
692
692
  * @throws {RequiredError}
693
693
  * @memberof ActionsApi
694
694
  */
695
- getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionResponseClass, any, {}>>;
695
+ getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionResponseClass, any, {}, any>>;
696
696
  /**
697
697
  * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
698
698
  * @summary Retrieve the action version
@@ -701,7 +701,7 @@ export declare class ActionsApi extends BaseAPI {
701
701
  * @throws {RequiredError}
702
702
  * @memberof ActionsApi
703
703
  */
704
- getActionVersion(requestParameters: ActionsApiGetActionVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionVersionResponseClass, any, {}>>;
704
+ getActionVersion(requestParameters: ActionsApiGetActionVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionVersionResponseClass, any, {}, any>>;
705
705
  /**
706
706
  * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
707
707
  * @summary List action versions
@@ -710,7 +710,7 @@ export declare class ActionsApi extends BaseAPI {
710
710
  * @throws {RequiredError}
711
711
  * @memberof ActionsApi
712
712
  */
713
- listActionVersions(requestParameters: ActionsApiListActionVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionVersionsResponseClass, any, {}>>;
713
+ listActionVersions(requestParameters: ActionsApiListActionVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionVersionsResponseClass, any, {}, any>>;
714
714
  /**
715
715
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
716
716
  * @summary List actions
@@ -719,7 +719,7 @@ export declare class ActionsApi extends BaseAPI {
719
719
  * @throws {RequiredError}
720
720
  * @memberof ActionsApi
721
721
  */
722
- listActions(requestParameters?: ActionsApiListActionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionsResponseClass, any, {}>>;
722
+ listActions(requestParameters?: ActionsApiListActionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionsResponseClass, any, {}, any>>;
723
723
  /**
724
724
  * 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\"
725
725
  * @summary List action versions
@@ -728,7 +728,7 @@ export declare class ActionsApi extends BaseAPI {
728
728
  * @throws {RequiredError}
729
729
  * @memberof ActionsApi
730
730
  */
731
- listAllActionVersions(requestParameters?: ActionsApiListAllActionVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionVersionsResponseClass, any, {}>>;
731
+ listAllActionVersions(requestParameters?: ActionsApiListAllActionVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionVersionsResponseClass, any, {}, any>>;
732
732
  /**
733
733
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
734
734
  * @summary Update the action
@@ -737,5 +737,5 @@ export declare class ActionsApi extends BaseAPI {
737
737
  * @throws {RequiredError}
738
738
  * @memberof ActionsApi
739
739
  */
740
- updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateActionResponseClass, any, {}>>;
740
+ updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateActionResponseClass, any, {}, any>>;
741
741
  }
@@ -107,7 +107,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
107
107
  createAction: function (createActionRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var ActionsApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
156
159
  deleteAction: function (code, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -174,13 +177,16 @@ var ActionsApiAxiosParamCreator = function (configuration) {
174
177
  localVarQueryParameter = {};
175
178
  // authentication bearer required
176
179
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
+ // Only Authorization falls back to the configured token; an empty value is never sent.
182
+ ];
178
183
  case 1:
179
184
  // authentication bearer required
180
185
  // http bearer authentication required
181
186
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -204,7 +210,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
204
210
  deleteActionVersion: function (versionCode, authorization, options) {
205
211
  if (options === void 0) { options = {}; }
206
212
  return __awaiter(_this, void 0, void 0, function () {
207
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
208
214
  return __generator(this, function (_a) {
209
215
  switch (_a.label) {
210
216
  case 0:
@@ -222,13 +228,16 @@ var ActionsApiAxiosParamCreator = function (configuration) {
222
228
  localVarQueryParameter = {};
223
229
  // authentication bearer required
224
230
  // http bearer authentication required
225
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
231
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
232
+ // Only Authorization falls back to the configured token; an empty value is never sent.
233
+ ];
226
234
  case 1:
227
235
  // authentication bearer required
228
236
  // http bearer authentication required
229
237
  _a.sent();
230
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
239
+ if (authorizationValue) {
240
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
232
241
  }
233
242
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
243
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -253,7 +262,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
253
262
  getAction: function (code, authorization, expand, options) {
254
263
  if (options === void 0) { options = {}; }
255
264
  return __awaiter(_this, void 0, void 0, function () {
256
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
265
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
257
266
  return __generator(this, function (_a) {
258
267
  switch (_a.label) {
259
268
  case 0:
@@ -279,8 +288,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
279
288
  if (expand !== undefined) {
280
289
  localVarQueryParameter['expand'] = expand;
281
290
  }
282
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
283
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
291
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
292
+ if (authorizationValue) {
293
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
284
294
  }
285
295
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
286
296
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -305,7 +315,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
305
315
  getActionVersion: function (versionCode, authorization, expand, options) {
306
316
  if (options === void 0) { options = {}; }
307
317
  return __awaiter(_this, void 0, void 0, function () {
308
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
318
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
309
319
  return __generator(this, function (_a) {
310
320
  switch (_a.label) {
311
321
  case 0:
@@ -331,8 +341,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
331
341
  if (expand !== undefined) {
332
342
  localVarQueryParameter['expand'] = expand;
333
343
  }
334
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
335
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
344
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
345
+ if (authorizationValue) {
346
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
336
347
  }
337
348
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
338
349
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -363,7 +374,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
363
374
  listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
364
375
  if (options === void 0) { options = {}; }
365
376
  return __awaiter(_this, void 0, void 0, function () {
366
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
377
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
367
378
  return __generator(this, function (_a) {
368
379
  switch (_a.label) {
369
380
  case 0:
@@ -407,8 +418,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
407
418
  if (filters !== undefined) {
408
419
  localVarQueryParameter['filters'] = filters;
409
420
  }
410
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
411
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
421
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
422
+ if (authorizationValue) {
423
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
412
424
  }
413
425
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
414
426
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -438,7 +450,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
438
450
  listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
439
451
  if (options === void 0) { options = {}; }
440
452
  return __awaiter(_this, void 0, void 0, function () {
441
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
453
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
442
454
  return __generator(this, function (_a) {
443
455
  switch (_a.label) {
444
456
  case 0:
@@ -479,8 +491,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
479
491
  if (filters !== undefined) {
480
492
  localVarQueryParameter['filters'] = filters;
481
493
  }
482
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
483
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
494
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
495
+ if (authorizationValue) {
496
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
484
497
  }
485
498
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
486
499
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -510,7 +523,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
510
523
  listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
511
524
  if (options === void 0) { options = {}; }
512
525
  return __awaiter(_this, void 0, void 0, function () {
513
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
526
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
514
527
  return __generator(this, function (_a) {
515
528
  switch (_a.label) {
516
529
  case 0:
@@ -551,8 +564,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
551
564
  if (filters !== undefined) {
552
565
  localVarQueryParameter['filters'] = filters;
553
566
  }
554
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
555
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
567
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
568
+ if (authorizationValue) {
569
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
556
570
  }
557
571
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
558
572
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -577,7 +591,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
577
591
  updateAction: function (code, updateActionRequestDto, authorization, options) {
578
592
  if (options === void 0) { options = {}; }
579
593
  return __awaiter(_this, void 0, void 0, function () {
580
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
594
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
581
595
  return __generator(this, function (_a) {
582
596
  switch (_a.label) {
583
597
  case 0:
@@ -597,13 +611,16 @@ var ActionsApiAxiosParamCreator = function (configuration) {
597
611
  localVarQueryParameter = {};
598
612
  // authentication bearer required
599
613
  // http bearer authentication required
600
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
614
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
615
+ // Only Authorization falls back to the configured token; an empty value is never sent.
616
+ ];
601
617
  case 1:
602
618
  // authentication bearer required
603
619
  // http bearer authentication required
604
620
  _a.sent();
605
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
606
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
621
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
622
+ if (authorizationValue) {
623
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
607
624
  }
608
625
  localVarHeaderParameter['Content-Type'] = 'application/json';
609
626
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -250,7 +250,7 @@ export declare class ExecutionsApi extends BaseAPI {
250
250
  * @throws {RequiredError}
251
251
  * @memberof ExecutionsApi
252
252
  */
253
- getActionExecutionStatus(requestParameters?: ExecutionsApiGetActionExecutionStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionExecutionStatusResponseClass, any, {}>>;
253
+ getActionExecutionStatus(requestParameters?: ExecutionsApiGetActionExecutionStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActionExecutionStatusResponseClass, any, {}, any>>;
254
254
  /**
255
255
  * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
256
256
  * @summary List actionExecutions
@@ -259,7 +259,7 @@ export declare class ExecutionsApi extends BaseAPI {
259
259
  * @throws {RequiredError}
260
260
  * @memberof ExecutionsApi
261
261
  */
262
- listActionExecutions(requestParameters?: ExecutionsApiListActionExecutionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionExecutionsResponseClass, any, {}>>;
262
+ listActionExecutions(requestParameters?: ExecutionsApiListActionExecutionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionExecutionsResponseClass, any, {}, any>>;
263
263
  /**
264
264
  * 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\"
265
265
  * @summary Create the actionExecution
@@ -268,5 +268,5 @@ export declare class ExecutionsApi extends BaseAPI {
268
268
  * @throws {RequiredError}
269
269
  * @memberof ExecutionsApi
270
270
  */
271
- triggerAction(requestParameters: ExecutionsApiTriggerActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TriggerActionResponseClass, any, {}>>;
271
+ triggerAction(requestParameters: ExecutionsApiTriggerActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TriggerActionResponseClass, any, {}, any>>;
272
272
  }
@@ -108,7 +108,7 @@ var ExecutionsApiAxiosParamCreator = function (configuration) {
108
108
  getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -134,8 +134,9 @@ var ExecutionsApiAxiosParamCreator = function (configuration) {
134
134
  if (correlationId !== undefined) {
135
135
  localVarQueryParameter['correlationId'] = correlationId;
136
136
  }
137
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
138
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
138
+ if (authorizationValue) {
139
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
139
140
  }
140
141
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
142
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -165,7 +166,7 @@ var ExecutionsApiAxiosParamCreator = function (configuration) {
165
166
  listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
166
167
  if (options === void 0) { options = {}; }
167
168
  return __awaiter(_this, void 0, void 0, function () {
168
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
169
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
169
170
  return __generator(this, function (_a) {
170
171
  switch (_a.label) {
171
172
  case 0:
@@ -206,8 +207,9 @@ var ExecutionsApiAxiosParamCreator = function (configuration) {
206
207
  if (filters !== undefined) {
207
208
  localVarQueryParameter['filters'] = filters;
208
209
  }
209
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
210
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
210
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
211
+ if (authorizationValue) {
212
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
211
213
  }
212
214
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
213
215
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -231,7 +233,7 @@ var ExecutionsApiAxiosParamCreator = function (configuration) {
231
233
  triggerAction: function (triggerActionRequestDto, authorization, options) {
232
234
  if (options === void 0) { options = {}; }
233
235
  return __awaiter(_this, void 0, void 0, function () {
234
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
236
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
235
237
  return __generator(this, function (_a) {
236
238
  switch (_a.label) {
237
239
  case 0:
@@ -248,13 +250,16 @@ var ExecutionsApiAxiosParamCreator = function (configuration) {
248
250
  localVarQueryParameter = {};
249
251
  // authentication bearer required
250
252
  // http bearer authentication required
251
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
253
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
254
+ // Only Authorization falls back to the configured token; an empty value is never sent.
255
+ ];
252
256
  case 1:
253
257
  // authentication bearer required
254
258
  // http bearer authentication required
255
259
  _a.sent();
256
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
257
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
260
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
261
+ if (authorizationValue) {
262
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
258
263
  }
259
264
  localVarHeaderParameter['Content-Type'] = 'application/json';
260
265
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -66,5 +66,5 @@ export declare class HealthApi extends BaseAPI {
66
66
  * @throws {RequiredError}
67
67
  * @memberof HealthApi
68
68
  */
69
- check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
69
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
70
70
  }
package/dist/common.d.ts CHANGED
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
63
63
  *
64
64
  * @export
65
65
  */
66
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
67
67
  /**
68
68
  * EMIL ActionService
69
69
  * The EMIL ActionService API description
package/dist/common.js CHANGED
@@ -234,6 +234,7 @@ exports.toPathString = toPathString;
234
234
  * @export
235
235
  */
236
236
  var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
237
+ // Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
237
238
  return function (axios, basePath) {
238
239
  if (axios === void 0) { axios = globalAxios; }
239
240
  if (basePath === void 0) { basePath = BASE_PATH; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/action-sdk-node",
3
- "version": "1.6.1-beta.1",
3
+ "version": "1.6.1-beta.13",
4
4
  "description": "OpenAPI client for @emilgroup/action-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "1.18.0",
21
+ "axios": "1.20.0",
22
22
  "form-data": "^4.0.0",
23
23
  "url": "^0.11.0"
24
24
  },