@emilgroup/action-sdk 1.1.1-beta.6 → 1.1.1-beta.7

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.
@@ -93,7 +93,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * Creates a new action configuration
96
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
97
97
  * @summary Create the action
98
98
  * @param {CreateActionRequestDto} createActionRequestDto
99
99
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -142,7 +142,56 @@ var ActionsApiAxiosParamCreator = function (configuration) {
142
142
  });
143
143
  },
144
144
  /**
145
- * Deletes an action configuration by its code
145
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
146
+ * @summary Create the action
147
+ * @param {CreateActionRequestDto} createActionRequestDto
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ createAction_1: function (createActionRequestDto, authorization, options) {
153
+ if (options === void 0) { options = {}; }
154
+ return __awaiter(_this, void 0, void 0, function () {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
158
+ case 0:
159
+ // verify required parameter 'createActionRequestDto' is not null or undefined
160
+ (0, common_1.assertParamExists)('createAction_1', 'createActionRequestDto', createActionRequestDto);
161
+ localVarPath = "/actionservice/v1/actions";
162
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
163
+ if (configuration) {
164
+ baseOptions = configuration.baseOptions;
165
+ baseAccessToken = configuration.accessToken;
166
+ }
167
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
168
+ localVarHeaderParameter = {};
169
+ localVarQueryParameter = {};
170
+ // authentication bearer required
171
+ // http bearer authentication required
172
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
173
+ case 1:
174
+ // authentication bearer required
175
+ // http bearer authentication required
176
+ _a.sent();
177
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
179
+ }
180
+ localVarHeaderParameter['Content-Type'] = 'application/json';
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createActionRequestDto, localVarRequestOptions, configuration);
185
+ return [2 /*return*/, {
186
+ url: (0, common_1.toPathString)(localVarUrlObj),
187
+ options: localVarRequestOptions,
188
+ }];
189
+ }
190
+ });
191
+ });
192
+ },
193
+ /**
194
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
146
195
  * @summary Delete the action
147
196
  * @param {string} code Action code
148
197
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -190,7 +239,55 @@ var ActionsApiAxiosParamCreator = function (configuration) {
190
239
  });
191
240
  },
192
241
  /**
193
- * Retrieves an action configuration by its code
242
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
243
+ * @summary Delete the action
244
+ * @param {string} code Action code
245
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ deleteAction_2: function (code, authorization, options) {
250
+ if (options === void 0) { options = {}; }
251
+ return __awaiter(_this, void 0, void 0, function () {
252
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
253
+ return __generator(this, function (_a) {
254
+ switch (_a.label) {
255
+ case 0:
256
+ // verify required parameter 'code' is not null or undefined
257
+ (0, common_1.assertParamExists)('deleteAction_2', 'code', code);
258
+ localVarPath = "/actionservice/v1/actions/{code}"
259
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
260
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
261
+ if (configuration) {
262
+ baseOptions = configuration.baseOptions;
263
+ baseAccessToken = configuration.accessToken;
264
+ }
265
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
266
+ localVarHeaderParameter = {};
267
+ localVarQueryParameter = {};
268
+ // authentication bearer required
269
+ // http bearer authentication required
270
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
271
+ case 1:
272
+ // authentication bearer required
273
+ // http bearer authentication required
274
+ _a.sent();
275
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
276
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
277
+ }
278
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
279
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
280
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
281
+ return [2 /*return*/, {
282
+ url: (0, common_1.toPathString)(localVarUrlObj),
283
+ options: localVarRequestOptions,
284
+ }];
285
+ }
286
+ });
287
+ });
288
+ },
289
+ /**
290
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
194
291
  * @summary Retrieve the action
195
292
  * @param {string} code Action code
196
293
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -238,7 +335,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
238
335
  });
239
336
  },
240
337
  /**
241
- * Retrieves the latest action execution status by executionCode or correlationId
338
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
242
339
  * @summary Retrieve the actionExecution
243
340
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
244
341
  * @param {string} [executionCode] Action execution code
@@ -290,7 +387,55 @@ var ActionsApiAxiosParamCreator = function (configuration) {
290
387
  });
291
388
  },
292
389
  /**
293
- * Lists action executions (latest status per execution only) with optional filters
390
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
391
+ * @summary Retrieve the action
392
+ * @param {string} code Action code
393
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ getAction_3: function (code, authorization, options) {
398
+ if (options === void 0) { options = {}; }
399
+ return __awaiter(_this, void 0, void 0, function () {
400
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
401
+ return __generator(this, function (_a) {
402
+ switch (_a.label) {
403
+ case 0:
404
+ // verify required parameter 'code' is not null or undefined
405
+ (0, common_1.assertParamExists)('getAction_3', 'code', code);
406
+ localVarPath = "/actionservice/v1/actions/{code}"
407
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
408
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
409
+ if (configuration) {
410
+ baseOptions = configuration.baseOptions;
411
+ baseAccessToken = configuration.accessToken;
412
+ }
413
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
414
+ localVarHeaderParameter = {};
415
+ localVarQueryParameter = {};
416
+ // authentication bearer required
417
+ // http bearer authentication required
418
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
419
+ case 1:
420
+ // authentication bearer required
421
+ // http bearer authentication required
422
+ _a.sent();
423
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
424
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
425
+ }
426
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
427
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
428
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
429
+ return [2 /*return*/, {
430
+ url: (0, common_1.toPathString)(localVarUrlObj),
431
+ options: localVarRequestOptions,
432
+ }];
433
+ }
434
+ });
435
+ });
436
+ },
437
+ /**
438
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
294
439
  * @summary List actionExecutions
295
440
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
296
441
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -362,7 +507,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
362
507
  });
363
508
  },
364
509
  /**
365
- * Lists all action configurations with optional filters
510
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
366
511
  * @summary List actions
367
512
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
368
513
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -434,7 +579,79 @@ var ActionsApiAxiosParamCreator = function (configuration) {
434
579
  });
435
580
  },
436
581
  /**
437
- * Updates an existing action configuration (patch semantics)
582
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
583
+ * @summary List actions
584
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
585
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
586
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
587
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
588
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
589
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
590
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
591
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
596
+ if (options === void 0) { options = {}; }
597
+ return __awaiter(_this, void 0, void 0, function () {
598
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
599
+ return __generator(this, function (_a) {
600
+ switch (_a.label) {
601
+ case 0:
602
+ localVarPath = "/actionservice/v1/actions";
603
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
604
+ if (configuration) {
605
+ baseOptions = configuration.baseOptions;
606
+ baseAccessToken = configuration.accessToken;
607
+ }
608
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
609
+ localVarHeaderParameter = {};
610
+ localVarQueryParameter = {};
611
+ // authentication bearer required
612
+ // http bearer authentication required
613
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
614
+ case 1:
615
+ // authentication bearer required
616
+ // http bearer authentication required
617
+ _a.sent();
618
+ if (pageSize !== undefined) {
619
+ localVarQueryParameter['pageSize'] = pageSize;
620
+ }
621
+ if (pageToken !== undefined) {
622
+ localVarQueryParameter['pageToken'] = pageToken;
623
+ }
624
+ if (filter !== undefined) {
625
+ localVarQueryParameter['filter'] = filter;
626
+ }
627
+ if (search !== undefined) {
628
+ localVarQueryParameter['search'] = search;
629
+ }
630
+ if (order !== undefined) {
631
+ localVarQueryParameter['order'] = order;
632
+ }
633
+ if (expand !== undefined) {
634
+ localVarQueryParameter['expand'] = expand;
635
+ }
636
+ if (filters !== undefined) {
637
+ localVarQueryParameter['filters'] = filters;
638
+ }
639
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
640
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
641
+ }
642
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
643
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
644
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
645
+ return [2 /*return*/, {
646
+ url: (0, common_1.toPathString)(localVarUrlObj),
647
+ options: localVarRequestOptions,
648
+ }];
649
+ }
650
+ });
651
+ });
652
+ },
653
+ /**
654
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
438
655
  * @summary Update the action
439
656
  * @param {string} code Action code
440
657
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -486,6 +703,59 @@ var ActionsApiAxiosParamCreator = function (configuration) {
486
703
  });
487
704
  });
488
705
  },
706
+ /**
707
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
708
+ * @summary Update the action
709
+ * @param {string} code Action code
710
+ * @param {UpdateActionRequestDto} updateActionRequestDto
711
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
712
+ * @param {*} [options] Override http request option.
713
+ * @throws {RequiredError}
714
+ */
715
+ updateAction_5: function (code, updateActionRequestDto, authorization, options) {
716
+ if (options === void 0) { options = {}; }
717
+ return __awaiter(_this, void 0, void 0, function () {
718
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
719
+ return __generator(this, function (_a) {
720
+ switch (_a.label) {
721
+ case 0:
722
+ // verify required parameter 'code' is not null or undefined
723
+ (0, common_1.assertParamExists)('updateAction_5', 'code', code);
724
+ // verify required parameter 'updateActionRequestDto' is not null or undefined
725
+ (0, common_1.assertParamExists)('updateAction_5', 'updateActionRequestDto', updateActionRequestDto);
726
+ localVarPath = "/actionservice/v1/actions/{code}"
727
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
728
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
729
+ if (configuration) {
730
+ baseOptions = configuration.baseOptions;
731
+ baseAccessToken = configuration.accessToken;
732
+ }
733
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
734
+ localVarHeaderParameter = {};
735
+ localVarQueryParameter = {};
736
+ // authentication bearer required
737
+ // http bearer authentication required
738
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
739
+ case 1:
740
+ // authentication bearer required
741
+ // http bearer authentication required
742
+ _a.sent();
743
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
744
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
745
+ }
746
+ localVarHeaderParameter['Content-Type'] = 'application/json';
747
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
748
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
749
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
750
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateActionRequestDto, localVarRequestOptions, configuration);
751
+ return [2 /*return*/, {
752
+ url: (0, common_1.toPathString)(localVarUrlObj),
753
+ options: localVarRequestOptions,
754
+ }];
755
+ }
756
+ });
757
+ });
758
+ },
489
759
  };
490
760
  };
491
761
  exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
@@ -497,7 +767,7 @@ var ActionsApiFp = function (configuration) {
497
767
  var localVarAxiosParamCreator = (0, exports.ActionsApiAxiosParamCreator)(configuration);
498
768
  return {
499
769
  /**
500
- * Creates a new action configuration
770
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
501
771
  * @summary Create the action
502
772
  * @param {CreateActionRequestDto} createActionRequestDto
503
773
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -518,7 +788,28 @@ var ActionsApiFp = function (configuration) {
518
788
  });
519
789
  },
520
790
  /**
521
- * Deletes an action configuration by its code
791
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
792
+ * @summary Create the action
793
+ * @param {CreateActionRequestDto} createActionRequestDto
794
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ */
798
+ createAction_1: function (createActionRequestDto, authorization, options) {
799
+ return __awaiter(this, void 0, void 0, function () {
800
+ var localVarAxiosArgs;
801
+ return __generator(this, function (_a) {
802
+ switch (_a.label) {
803
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAction_1(createActionRequestDto, authorization, options)];
804
+ case 1:
805
+ localVarAxiosArgs = _a.sent();
806
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
807
+ }
808
+ });
809
+ });
810
+ },
811
+ /**
812
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
522
813
  * @summary Delete the action
523
814
  * @param {string} code Action code
524
815
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -539,7 +830,28 @@ var ActionsApiFp = function (configuration) {
539
830
  });
540
831
  },
541
832
  /**
542
- * Retrieves an action configuration by its code
833
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
834
+ * @summary Delete the action
835
+ * @param {string} code Action code
836
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ */
840
+ deleteAction_2: function (code, authorization, options) {
841
+ return __awaiter(this, void 0, void 0, function () {
842
+ var localVarAxiosArgs;
843
+ return __generator(this, function (_a) {
844
+ switch (_a.label) {
845
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAction_2(code, authorization, options)];
846
+ case 1:
847
+ localVarAxiosArgs = _a.sent();
848
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
849
+ }
850
+ });
851
+ });
852
+ },
853
+ /**
854
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
543
855
  * @summary Retrieve the action
544
856
  * @param {string} code Action code
545
857
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -560,7 +872,7 @@ var ActionsApiFp = function (configuration) {
560
872
  });
561
873
  },
562
874
  /**
563
- * Retrieves the latest action execution status by executionCode or correlationId
875
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
564
876
  * @summary Retrieve the actionExecution
565
877
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
566
878
  * @param {string} [executionCode] Action execution code
@@ -582,7 +894,28 @@ var ActionsApiFp = function (configuration) {
582
894
  });
583
895
  },
584
896
  /**
585
- * Lists action executions (latest status per execution only) with optional filters
897
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
898
+ * @summary Retrieve the action
899
+ * @param {string} code Action code
900
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ */
904
+ getAction_3: function (code, authorization, options) {
905
+ return __awaiter(this, void 0, void 0, function () {
906
+ var localVarAxiosArgs;
907
+ return __generator(this, function (_a) {
908
+ switch (_a.label) {
909
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction_3(code, authorization, options)];
910
+ case 1:
911
+ localVarAxiosArgs = _a.sent();
912
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
913
+ }
914
+ });
915
+ });
916
+ },
917
+ /**
918
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
586
919
  * @summary List actionExecutions
587
920
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
588
921
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -609,7 +942,7 @@ var ActionsApiFp = function (configuration) {
609
942
  });
610
943
  },
611
944
  /**
612
- * Lists all action configurations with optional filters
945
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
613
946
  * @summary List actions
614
947
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
615
948
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -636,7 +969,34 @@ var ActionsApiFp = function (configuration) {
636
969
  });
637
970
  },
638
971
  /**
639
- * Updates an existing action configuration (patch semantics)
972
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
973
+ * @summary List actions
974
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
975
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
976
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
977
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
978
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
979
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
980
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
981
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
982
+ * @param {*} [options] Override http request option.
983
+ * @throws {RequiredError}
984
+ */
985
+ listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
986
+ return __awaiter(this, void 0, void 0, function () {
987
+ var localVarAxiosArgs;
988
+ return __generator(this, function (_a) {
989
+ switch (_a.label) {
990
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
991
+ case 1:
992
+ localVarAxiosArgs = _a.sent();
993
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
994
+ }
995
+ });
996
+ });
997
+ },
998
+ /**
999
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
640
1000
  * @summary Update the action
641
1001
  * @param {string} code Action code
642
1002
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -657,6 +1017,28 @@ var ActionsApiFp = function (configuration) {
657
1017
  });
658
1018
  });
659
1019
  },
1020
+ /**
1021
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1022
+ * @summary Update the action
1023
+ * @param {string} code Action code
1024
+ * @param {UpdateActionRequestDto} updateActionRequestDto
1025
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ updateAction_5: function (code, updateActionRequestDto, authorization, options) {
1030
+ return __awaiter(this, void 0, void 0, function () {
1031
+ var localVarAxiosArgs;
1032
+ return __generator(this, function (_a) {
1033
+ switch (_a.label) {
1034
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction_5(code, updateActionRequestDto, authorization, options)];
1035
+ case 1:
1036
+ localVarAxiosArgs = _a.sent();
1037
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1038
+ }
1039
+ });
1040
+ });
1041
+ },
660
1042
  };
661
1043
  };
662
1044
  exports.ActionsApiFp = ActionsApiFp;
@@ -668,7 +1050,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
668
1050
  var localVarFp = (0, exports.ActionsApiFp)(configuration);
669
1051
  return {
670
1052
  /**
671
- * Creates a new action configuration
1053
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
672
1054
  * @summary Create the action
673
1055
  * @param {CreateActionRequestDto} createActionRequestDto
674
1056
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -679,7 +1061,18 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
679
1061
  return localVarFp.createAction(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
680
1062
  },
681
1063
  /**
682
- * Deletes an action configuration by its code
1064
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
1065
+ * @summary Create the action
1066
+ * @param {CreateActionRequestDto} createActionRequestDto
1067
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1068
+ * @param {*} [options] Override http request option.
1069
+ * @throws {RequiredError}
1070
+ */
1071
+ createAction_1: function (createActionRequestDto, authorization, options) {
1072
+ return localVarFp.createAction_1(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1073
+ },
1074
+ /**
1075
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
683
1076
  * @summary Delete the action
684
1077
  * @param {string} code Action code
685
1078
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -690,7 +1083,18 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
690
1083
  return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
691
1084
  },
692
1085
  /**
693
- * Retrieves an action configuration by its code
1086
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1087
+ * @summary Delete the action
1088
+ * @param {string} code Action code
1089
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1090
+ * @param {*} [options] Override http request option.
1091
+ * @throws {RequiredError}
1092
+ */
1093
+ deleteAction_2: function (code, authorization, options) {
1094
+ return localVarFp.deleteAction_2(code, authorization, options).then(function (request) { return request(axios, basePath); });
1095
+ },
1096
+ /**
1097
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
694
1098
  * @summary Retrieve the action
695
1099
  * @param {string} code Action code
696
1100
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -701,7 +1105,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
701
1105
  return localVarFp.getAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
702
1106
  },
703
1107
  /**
704
- * Retrieves the latest action execution status by executionCode or correlationId
1108
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
705
1109
  * @summary Retrieve the actionExecution
706
1110
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
707
1111
  * @param {string} [executionCode] Action execution code
@@ -713,7 +1117,18 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
713
1117
  return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then(function (request) { return request(axios, basePath); });
714
1118
  },
715
1119
  /**
716
- * Lists action executions (latest status per execution only) with optional filters
1120
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1121
+ * @summary Retrieve the action
1122
+ * @param {string} code Action code
1123
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1124
+ * @param {*} [options] Override http request option.
1125
+ * @throws {RequiredError}
1126
+ */
1127
+ getAction_3: function (code, authorization, options) {
1128
+ return localVarFp.getAction_3(code, authorization, options).then(function (request) { return request(axios, basePath); });
1129
+ },
1130
+ /**
1131
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
717
1132
  * @summary List actionExecutions
718
1133
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
719
1134
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -730,7 +1145,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
730
1145
  return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
731
1146
  },
732
1147
  /**
733
- * Lists all action configurations with optional filters
1148
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
734
1149
  * @summary List actions
735
1150
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
736
1151
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -747,7 +1162,24 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
747
1162
  return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
748
1163
  },
749
1164
  /**
750
- * Updates an existing action configuration (patch semantics)
1165
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1166
+ * @summary List actions
1167
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1168
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1169
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
1170
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
1171
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
1172
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
1173
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
1174
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
1175
+ * @param {*} [options] Override http request option.
1176
+ * @throws {RequiredError}
1177
+ */
1178
+ listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1179
+ return localVarFp.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1180
+ },
1181
+ /**
1182
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
751
1183
  * @summary Update the action
752
1184
  * @param {string} code Action code
753
1185
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -758,6 +1190,18 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
758
1190
  updateAction: function (code, updateActionRequestDto, authorization, options) {
759
1191
  return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
760
1192
  },
1193
+ /**
1194
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1195
+ * @summary Update the action
1196
+ * @param {string} code Action code
1197
+ * @param {UpdateActionRequestDto} updateActionRequestDto
1198
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1199
+ * @param {*} [options] Override http request option.
1200
+ * @throws {RequiredError}
1201
+ */
1202
+ updateAction_5: function (code, updateActionRequestDto, authorization, options) {
1203
+ return localVarFp.updateAction_5(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1204
+ },
761
1205
  };
762
1206
  };
763
1207
  exports.ActionsApiFactory = ActionsApiFactory;
@@ -773,7 +1217,7 @@ var ActionsApi = /** @class */ (function (_super) {
773
1217
  return _super !== null && _super.apply(this, arguments) || this;
774
1218
  }
775
1219
  /**
776
- * Creates a new action configuration
1220
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
777
1221
  * @summary Create the action
778
1222
  * @param {ActionsApiCreateActionRequest} requestParameters Request parameters.
779
1223
  * @param {*} [options] Override http request option.
@@ -785,7 +1229,19 @@ var ActionsApi = /** @class */ (function (_super) {
785
1229
  return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
786
1230
  };
787
1231
  /**
788
- * Deletes an action configuration by its code
1232
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
1233
+ * @summary Create the action
1234
+ * @param {ActionsApiCreateAction0Request} requestParameters Request parameters.
1235
+ * @param {*} [options] Override http request option.
1236
+ * @throws {RequiredError}
1237
+ * @memberof ActionsApi
1238
+ */
1239
+ ActionsApi.prototype.createAction_1 = function (requestParameters, options) {
1240
+ var _this = this;
1241
+ return (0, exports.ActionsApiFp)(this.configuration).createAction_1(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1242
+ };
1243
+ /**
1244
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
789
1245
  * @summary Delete the action
790
1246
  * @param {ActionsApiDeleteActionRequest} requestParameters Request parameters.
791
1247
  * @param {*} [options] Override http request option.
@@ -797,7 +1253,19 @@ var ActionsApi = /** @class */ (function (_super) {
797
1253
  return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
798
1254
  };
799
1255
  /**
800
- * Retrieves an action configuration by its code
1256
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1257
+ * @summary Delete the action
1258
+ * @param {ActionsApiDeleteAction0Request} requestParameters Request parameters.
1259
+ * @param {*} [options] Override http request option.
1260
+ * @throws {RequiredError}
1261
+ * @memberof ActionsApi
1262
+ */
1263
+ ActionsApi.prototype.deleteAction_2 = function (requestParameters, options) {
1264
+ var _this = this;
1265
+ return (0, exports.ActionsApiFp)(this.configuration).deleteAction_2(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1266
+ };
1267
+ /**
1268
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
801
1269
  * @summary Retrieve the action
802
1270
  * @param {ActionsApiGetActionRequest} requestParameters Request parameters.
803
1271
  * @param {*} [options] Override http request option.
@@ -809,7 +1277,7 @@ var ActionsApi = /** @class */ (function (_super) {
809
1277
  return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
810
1278
  };
811
1279
  /**
812
- * Retrieves the latest action execution status by executionCode or correlationId
1280
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
813
1281
  * @summary Retrieve the actionExecution
814
1282
  * @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
815
1283
  * @param {*} [options] Override http request option.
@@ -822,7 +1290,19 @@ var ActionsApi = /** @class */ (function (_super) {
822
1290
  return (0, exports.ActionsApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
823
1291
  };
824
1292
  /**
825
- * Lists action executions (latest status per execution only) with optional filters
1293
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1294
+ * @summary Retrieve the action
1295
+ * @param {ActionsApiGetAction0Request} requestParameters Request parameters.
1296
+ * @param {*} [options] Override http request option.
1297
+ * @throws {RequiredError}
1298
+ * @memberof ActionsApi
1299
+ */
1300
+ ActionsApi.prototype.getAction_3 = function (requestParameters, options) {
1301
+ var _this = this;
1302
+ return (0, exports.ActionsApiFp)(this.configuration).getAction_3(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1303
+ };
1304
+ /**
1305
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
826
1306
  * @summary List actionExecutions
827
1307
  * @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
828
1308
  * @param {*} [options] Override http request option.
@@ -835,7 +1315,7 @@ var ActionsApi = /** @class */ (function (_super) {
835
1315
  return (0, exports.ActionsApiFp)(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
836
1316
  };
837
1317
  /**
838
- * Lists all action configurations with optional filters
1318
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
839
1319
  * @summary List actions
840
1320
  * @param {ActionsApiListActionsRequest} requestParameters Request parameters.
841
1321
  * @param {*} [options] Override http request option.
@@ -848,7 +1328,20 @@ var ActionsApi = /** @class */ (function (_super) {
848
1328
  return (0, exports.ActionsApiFp)(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
849
1329
  };
850
1330
  /**
851
- * Updates an existing action configuration (patch semantics)
1331
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1332
+ * @summary List actions
1333
+ * @param {ActionsApiListActions0Request} requestParameters Request parameters.
1334
+ * @param {*} [options] Override http request option.
1335
+ * @throws {RequiredError}
1336
+ * @memberof ActionsApi
1337
+ */
1338
+ ActionsApi.prototype.listActions_4 = function (requestParameters, options) {
1339
+ var _this = this;
1340
+ if (requestParameters === void 0) { requestParameters = {}; }
1341
+ return (0, exports.ActionsApiFp)(this.configuration).listActions_4(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1342
+ };
1343
+ /**
1344
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
852
1345
  * @summary Update the action
853
1346
  * @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
854
1347
  * @param {*} [options] Override http request option.
@@ -859,6 +1352,18 @@ var ActionsApi = /** @class */ (function (_super) {
859
1352
  var _this = this;
860
1353
  return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
861
1354
  };
1355
+ /**
1356
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1357
+ * @summary Update the action
1358
+ * @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
1359
+ * @param {*} [options] Override http request option.
1360
+ * @throws {RequiredError}
1361
+ * @memberof ActionsApi
1362
+ */
1363
+ ActionsApi.prototype.updateAction_5 = function (requestParameters, options) {
1364
+ var _this = this;
1365
+ return (0, exports.ActionsApiFp)(this.configuration).updateAction_5(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1366
+ };
862
1367
  return ActionsApi;
863
1368
  }(base_1.BaseAPI));
864
1369
  exports.ActionsApi = ActionsApi;