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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/.openapi-generator/FILES +0 -10
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +125 -811
  4. package/api.ts +0 -2
  5. package/dist/api/actions-api.d.ts +110 -496
  6. package/dist/api/actions-api.js +96 -633
  7. package/dist/api.d.ts +0 -1
  8. package/dist/api.js +0 -1
  9. package/dist/models/action-class.d.ts +20 -9
  10. package/dist/models/action-execution-class.d.ts +0 -36
  11. package/dist/models/create-action-request-dto.d.ts +5 -47
  12. package/dist/models/create-action-request-dto.js +0 -6
  13. package/dist/models/index.d.ts +0 -9
  14. package/dist/models/index.js +0 -9
  15. package/dist/models/update-action-request-dto.d.ts +5 -41
  16. package/dist/models/update-action-request-dto.js +0 -6
  17. package/models/action-class.ts +20 -9
  18. package/models/action-execution-class.ts +0 -36
  19. package/models/create-action-request-dto.ts +5 -50
  20. package/models/index.ts +0 -9
  21. package/models/update-action-request-dto.ts +5 -44
  22. package/package.json +1 -1
  23. package/api/executions-api.ts +0 -471
  24. package/dist/api/executions-api.d.ts +0 -272
  25. package/dist/api/executions-api.js +0 -452
  26. package/dist/models/action-ref-class.d.ts +0 -36
  27. package/dist/models/action-ref-class.js +0 -15
  28. package/dist/models/action-version-class.d.ts +0 -127
  29. package/dist/models/action-version-class.js +0 -21
  30. package/dist/models/export-actions-as-yaml-response-class.d.ts +0 -24
  31. package/dist/models/export-actions-as-yaml-response-class.js +0 -15
  32. package/dist/models/get-action-version-response-class.d.ts +0 -25
  33. package/dist/models/get-action-version-response-class.js +0 -15
  34. package/dist/models/import-actions-from-yaml-request-dto.d.ts +0 -36
  35. package/dist/models/import-actions-from-yaml-request-dto.js +0 -15
  36. package/dist/models/import-actions-from-yaml-response-class.d.ts +0 -37
  37. package/dist/models/import-actions-from-yaml-response-class.js +0 -15
  38. package/dist/models/list-action-versions-response-class.d.ts +0 -43
  39. package/dist/models/list-action-versions-response-class.js +0 -15
  40. package/dist/models/trigger-action-request-dto.d.ts +0 -62
  41. package/dist/models/trigger-action-request-dto.js +0 -15
  42. package/dist/models/trigger-action-response-class.d.ts +0 -25
  43. package/dist/models/trigger-action-response-class.js +0 -15
  44. package/models/action-ref-class.ts +0 -42
  45. package/models/action-version-class.ts +0 -136
  46. package/models/export-actions-as-yaml-response-class.ts +0 -30
  47. package/models/get-action-version-response-class.ts +0 -31
  48. package/models/import-actions-from-yaml-request-dto.ts +0 -42
  49. package/models/import-actions-from-yaml-response-class.ts +0 -43
  50. package/models/list-action-versions-response-class.ts +0 -49
  51. package/models/trigger-action-request-dto.ts +0 -66
  52. package/models/trigger-action-response-class.ts +0 -31
@@ -93,7 +93,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
96
+ * Creates a new action configuration
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,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
142
142
  });
143
143
  },
144
144
  /**
145
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
145
+ * Deletes an action configuration by its code
146
146
  * @summary Delete the action
147
147
  * @param {string} code Action code
148
148
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -190,127 +190,14 @@ var ActionsApiAxiosParamCreator = function (configuration) {
190
190
  });
191
191
  },
192
192
  /**
193
- * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
194
- * @summary Delete the action version
195
- * @param {string} versionCode Version code (e.g. acv_<nanoid>)
196
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
- * @param {*} [options] Override http request option.
198
- * @throws {RequiredError}
199
- */
200
- deleteActionVersion: function (versionCode, authorization, options) {
201
- if (options === void 0) { options = {}; }
202
- return __awaiter(_this, void 0, void 0, function () {
203
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
204
- return __generator(this, function (_a) {
205
- switch (_a.label) {
206
- case 0:
207
- // verify required parameter 'versionCode' is not null or undefined
208
- (0, common_1.assertParamExists)('deleteActionVersion', 'versionCode', versionCode);
209
- localVarPath = "/actionservice/v1/actions/versions/{versionCode}"
210
- .replace("{".concat("versionCode", "}"), encodeURIComponent(String(versionCode)));
211
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
- if (configuration) {
213
- baseOptions = configuration.baseOptions;
214
- baseAccessToken = configuration.accessToken;
215
- }
216
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
217
- localVarHeaderParameter = {};
218
- localVarQueryParameter = {};
219
- // authentication bearer required
220
- // http bearer authentication required
221
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
222
- case 1:
223
- // authentication bearer required
224
- // http bearer authentication required
225
- _a.sent();
226
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
- }
229
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
232
- return [2 /*return*/, {
233
- url: (0, common_1.toPathString)(localVarUrlObj),
234
- options: localVarRequestOptions,
235
- }];
236
- }
237
- });
238
- });
239
- },
240
- /**
241
- * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
242
- * @summary Retrieve the entity-actions-yaml
243
- * @param {string} productSlug Product slug
244
- * @param {number} productVersionId Product version ID
245
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
246
- * @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
247
- * @param {boolean} [includeDisabled] Include draft (disabled) actions
248
- * @param {*} [options] Override http request option.
249
- * @throws {RequiredError}
250
- */
251
- exportActionsAsYaml: function (productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options) {
252
- if (options === void 0) { options = {}; }
253
- return __awaiter(_this, void 0, void 0, function () {
254
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
255
- return __generator(this, function (_a) {
256
- switch (_a.label) {
257
- case 0:
258
- // verify required parameter 'productSlug' is not null or undefined
259
- (0, common_1.assertParamExists)('exportActionsAsYaml', 'productSlug', productSlug);
260
- // verify required parameter 'productVersionId' is not null or undefined
261
- (0, common_1.assertParamExists)('exportActionsAsYaml', 'productVersionId', productVersionId);
262
- localVarPath = "/actionservice/v1/actions/entity-actions-yaml";
263
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
264
- if (configuration) {
265
- baseOptions = configuration.baseOptions;
266
- baseAccessToken = configuration.accessToken;
267
- }
268
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
269
- localVarHeaderParameter = {};
270
- localVarQueryParameter = {};
271
- // authentication bearer required
272
- // http bearer authentication required
273
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
274
- case 1:
275
- // authentication bearer required
276
- // http bearer authentication required
277
- _a.sent();
278
- if (productSlug !== undefined) {
279
- localVarQueryParameter['productSlug'] = productSlug;
280
- }
281
- if (productVersionId !== undefined) {
282
- localVarQueryParameter['productVersionId'] = productVersionId;
283
- }
284
- if (actionSlugs) {
285
- localVarQueryParameter['actionSlugs'] = actionSlugs;
286
- }
287
- if (includeDisabled !== undefined) {
288
- localVarQueryParameter['includeDisabled'] = includeDisabled;
289
- }
290
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
291
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
292
- }
293
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
294
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
296
- return [2 /*return*/, {
297
- url: (0, common_1.toPathString)(localVarUrlObj),
298
- options: localVarRequestOptions,
299
- }];
300
- }
301
- });
302
- });
303
- },
304
- /**
305
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
193
+ * Retrieves an action configuration by its code
306
194
  * @summary Retrieve the action
307
195
  * @param {string} code Action code
308
196
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
309
- * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
310
197
  * @param {*} [options] Override http request option.
311
198
  * @throws {RequiredError}
312
199
  */
313
- getAction: function (code, authorization, expand, options) {
200
+ getAction: function (code, authorization, options) {
314
201
  if (options === void 0) { options = {}; }
315
202
  return __awaiter(_this, void 0, void 0, function () {
316
203
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -336,9 +223,6 @@ var ActionsApiAxiosParamCreator = function (configuration) {
336
223
  // authentication bearer required
337
224
  // http bearer authentication required
338
225
  _a.sent();
339
- if (expand !== undefined) {
340
- localVarQueryParameter['expand'] = expand;
341
- }
342
226
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
343
227
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
344
228
  }
@@ -354,25 +238,22 @@ var ActionsApiAxiosParamCreator = function (configuration) {
354
238
  });
355
239
  },
356
240
  /**
357
- * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
358
- * @summary Retrieve the action version
359
- * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
241
+ * Retrieves the latest action execution status by executionCode or correlationId
242
+ * @summary Retrieve the actionExecution
360
243
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
361
- * @param {string} [expand]
244
+ * @param {string} [executionCode] Action execution code
245
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
362
246
  * @param {*} [options] Override http request option.
363
247
  * @throws {RequiredError}
364
248
  */
365
- getActionVersion: function (versionCode, authorization, expand, options) {
249
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
366
250
  if (options === void 0) { options = {}; }
367
251
  return __awaiter(_this, void 0, void 0, function () {
368
252
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
369
253
  return __generator(this, function (_a) {
370
254
  switch (_a.label) {
371
255
  case 0:
372
- // verify required parameter 'versionCode' is not null or undefined
373
- (0, common_1.assertParamExists)('getActionVersion', 'versionCode', versionCode);
374
- localVarPath = "/actionservice/v1/actions/versions/{versionCode}"
375
- .replace("{".concat("versionCode", "}"), encodeURIComponent(String(versionCode)));
256
+ localVarPath = "/actionservice/v1/actions/executions/status";
376
257
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
377
258
  if (configuration) {
378
259
  baseOptions = configuration.baseOptions;
@@ -388,64 +269,18 @@ var ActionsApiAxiosParamCreator = function (configuration) {
388
269
  // authentication bearer required
389
270
  // http bearer authentication required
390
271
  _a.sent();
391
- if (expand !== undefined) {
392
- localVarQueryParameter['expand'] = expand;
272
+ if (executionCode !== undefined) {
273
+ localVarQueryParameter['executionCode'] = executionCode;
393
274
  }
394
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
395
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
396
- }
397
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
398
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
399
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
400
- return [2 /*return*/, {
401
- url: (0, common_1.toPathString)(localVarUrlObj),
402
- options: localVarRequestOptions,
403
- }];
404
- }
405
- });
406
- });
407
- },
408
- /**
409
- * Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
410
- * @summary Update the entity-actions-yaml
411
- * @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
412
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
413
- * @param {*} [options] Override http request option.
414
- * @throws {RequiredError}
415
- */
416
- importActionsFromYaml: function (importActionsFromYamlRequestDto, authorization, options) {
417
- if (options === void 0) { options = {}; }
418
- return __awaiter(_this, void 0, void 0, function () {
419
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
420
- return __generator(this, function (_a) {
421
- switch (_a.label) {
422
- case 0:
423
- // verify required parameter 'importActionsFromYamlRequestDto' is not null or undefined
424
- (0, common_1.assertParamExists)('importActionsFromYaml', 'importActionsFromYamlRequestDto', importActionsFromYamlRequestDto);
425
- localVarPath = "/actionservice/v1/actions/entity-actions-yaml";
426
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
427
- if (configuration) {
428
- baseOptions = configuration.baseOptions;
429
- baseAccessToken = configuration.accessToken;
275
+ if (correlationId !== undefined) {
276
+ localVarQueryParameter['correlationId'] = correlationId;
430
277
  }
431
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
432
- localVarHeaderParameter = {};
433
- localVarQueryParameter = {};
434
- // authentication bearer required
435
- // http bearer authentication required
436
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
437
- case 1:
438
- // authentication bearer required
439
- // http bearer authentication required
440
- _a.sent();
441
278
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
442
279
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
443
280
  }
444
- localVarHeaderParameter['Content-Type'] = 'application/json';
445
281
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
446
282
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
447
283
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
448
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(importActionsFromYamlRequestDto, localVarRequestOptions, configuration);
449
284
  return [2 /*return*/, {
450
285
  url: (0, common_1.toPathString)(localVarUrlObj),
451
286
  options: localVarRequestOptions,
@@ -455,31 +290,27 @@ var ActionsApiAxiosParamCreator = function (configuration) {
455
290
  });
456
291
  },
457
292
  /**
458
- * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
459
- * @summary List action versions
460
- * @param {string} code Action code
293
+ * Lists action executions (latest status per execution only) with optional filters
294
+ * @summary List actionExecutions
461
295
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
462
296
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
463
297
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
464
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
298
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
465
299
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
466
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
467
- * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
468
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
300
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt&lt;/i&gt;
301
+ * @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.&lt;br/&gt; &lt;br/&gt;
302
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
469
303
  * @param {*} [options] Override http request option.
470
304
  * @throws {RequiredError}
471
305
  */
472
- listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
306
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
473
307
  if (options === void 0) { options = {}; }
474
308
  return __awaiter(_this, void 0, void 0, function () {
475
309
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
476
310
  return __generator(this, function (_a) {
477
311
  switch (_a.label) {
478
312
  case 0:
479
- // verify required parameter 'code' is not null or undefined
480
- (0, common_1.assertParamExists)('listActionVersions', 'code', code);
481
- localVarPath = "/actionservice/v1/actions/{code}/versions"
482
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
313
+ localVarPath = "/actionservice/v1/actions/executions";
483
314
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
484
315
  if (configuration) {
485
316
  baseOptions = configuration.baseOptions;
@@ -531,16 +362,16 @@ var ActionsApiAxiosParamCreator = function (configuration) {
531
362
  });
532
363
  },
533
364
  /**
534
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
365
+ * Lists all action configurations with optional filters
535
366
  * @summary List actions
536
367
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
537
368
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
538
369
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
539
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
370
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
540
371
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
541
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
542
- * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
543
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
372
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
373
+ * @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.&lt;br/&gt; &lt;br/&gt;
374
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
544
375
  * @param {*} [options] Override http request option.
545
376
  * @throws {RequiredError}
546
377
  */
@@ -603,79 +434,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
603
434
  });
604
435
  },
605
436
  /**
606
- * 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\"
607
- * @summary List action versions
608
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
609
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
610
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
611
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
612
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
613
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
614
- * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
615
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
616
- * @param {*} [options] Override http request option.
617
- * @throws {RequiredError}
618
- */
619
- listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
620
- if (options === void 0) { options = {}; }
621
- return __awaiter(_this, void 0, void 0, function () {
622
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
623
- return __generator(this, function (_a) {
624
- switch (_a.label) {
625
- case 0:
626
- localVarPath = "/actionservice/v1/actions/versions";
627
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
628
- if (configuration) {
629
- baseOptions = configuration.baseOptions;
630
- baseAccessToken = configuration.accessToken;
631
- }
632
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
633
- localVarHeaderParameter = {};
634
- localVarQueryParameter = {};
635
- // authentication bearer required
636
- // http bearer authentication required
637
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
638
- case 1:
639
- // authentication bearer required
640
- // http bearer authentication required
641
- _a.sent();
642
- if (pageSize !== undefined) {
643
- localVarQueryParameter['pageSize'] = pageSize;
644
- }
645
- if (pageToken !== undefined) {
646
- localVarQueryParameter['pageToken'] = pageToken;
647
- }
648
- if (filter !== undefined) {
649
- localVarQueryParameter['filter'] = filter;
650
- }
651
- if (search !== undefined) {
652
- localVarQueryParameter['search'] = search;
653
- }
654
- if (order !== undefined) {
655
- localVarQueryParameter['order'] = order;
656
- }
657
- if (expand !== undefined) {
658
- localVarQueryParameter['expand'] = expand;
659
- }
660
- if (filters !== undefined) {
661
- localVarQueryParameter['filters'] = filters;
662
- }
663
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
664
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
665
- }
666
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
667
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
668
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
669
- return [2 /*return*/, {
670
- url: (0, common_1.toPathString)(localVarUrlObj),
671
- options: localVarRequestOptions,
672
- }];
673
- }
674
- });
675
- });
676
- },
677
- /**
678
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
437
+ * Updates an existing action configuration (patch semantics)
679
438
  * @summary Update the action
680
439
  * @param {string} code Action code
681
440
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -727,59 +486,6 @@ var ActionsApiAxiosParamCreator = function (configuration) {
727
486
  });
728
487
  });
729
488
  },
730
- /**
731
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
732
- * @summary Update the action
733
- * @param {string} code Action code
734
- * @param {UpdateActionRequestDto} updateActionRequestDto
735
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
736
- * @param {*} [options] Override http request option.
737
- * @throws {RequiredError}
738
- */
739
- updateAction_1: function (code, updateActionRequestDto, authorization, options) {
740
- if (options === void 0) { options = {}; }
741
- return __awaiter(_this, void 0, void 0, function () {
742
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
743
- return __generator(this, function (_a) {
744
- switch (_a.label) {
745
- case 0:
746
- // verify required parameter 'code' is not null or undefined
747
- (0, common_1.assertParamExists)('updateAction_1', 'code', code);
748
- // verify required parameter 'updateActionRequestDto' is not null or undefined
749
- (0, common_1.assertParamExists)('updateAction_1', 'updateActionRequestDto', updateActionRequestDto);
750
- localVarPath = "/actionservice/v1/actions/{code}"
751
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
752
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
753
- if (configuration) {
754
- baseOptions = configuration.baseOptions;
755
- baseAccessToken = configuration.accessToken;
756
- }
757
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
758
- localVarHeaderParameter = {};
759
- localVarQueryParameter = {};
760
- // authentication bearer required
761
- // http bearer authentication required
762
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
763
- case 1:
764
- // authentication bearer required
765
- // http bearer authentication required
766
- _a.sent();
767
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
768
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
769
- }
770
- localVarHeaderParameter['Content-Type'] = 'application/json';
771
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
772
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
773
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
774
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateActionRequestDto, localVarRequestOptions, configuration);
775
- return [2 /*return*/, {
776
- url: (0, common_1.toPathString)(localVarUrlObj),
777
- options: localVarRequestOptions,
778
- }];
779
- }
780
- });
781
- });
782
- },
783
489
  };
784
490
  };
785
491
  exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
@@ -791,7 +497,7 @@ var ActionsApiFp = function (configuration) {
791
497
  var localVarAxiosParamCreator = (0, exports.ActionsApiAxiosParamCreator)(configuration);
792
498
  return {
793
499
  /**
794
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
500
+ * Creates a new action configuration
795
501
  * @summary Create the action
796
502
  * @param {CreateActionRequestDto} createActionRequestDto
797
503
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -812,7 +518,7 @@ var ActionsApiFp = function (configuration) {
812
518
  });
813
519
  },
814
520
  /**
815
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
521
+ * Deletes an action configuration by its code
816
522
  * @summary Delete the action
817
523
  * @param {string} code Action code
818
524
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -833,65 +539,19 @@ var ActionsApiFp = function (configuration) {
833
539
  });
834
540
  },
835
541
  /**
836
- * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
837
- * @summary Delete the action version
838
- * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
839
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
840
- * @param {*} [options] Override http request option.
841
- * @throws {RequiredError}
842
- */
843
- deleteActionVersion: function (versionCode, authorization, options) {
844
- return __awaiter(this, void 0, void 0, function () {
845
- var localVarAxiosArgs;
846
- return __generator(this, function (_a) {
847
- switch (_a.label) {
848
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options)];
849
- case 1:
850
- localVarAxiosArgs = _a.sent();
851
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
852
- }
853
- });
854
- });
855
- },
856
- /**
857
- * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
858
- * @summary Retrieve the entity-actions-yaml
859
- * @param {string} productSlug Product slug
860
- * @param {number} productVersionId Product version ID
861
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
862
- * @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
863
- * @param {boolean} [includeDisabled] Include draft (disabled) actions
864
- * @param {*} [options] Override http request option.
865
- * @throws {RequiredError}
866
- */
867
- exportActionsAsYaml: function (productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options) {
868
- return __awaiter(this, void 0, void 0, function () {
869
- var localVarAxiosArgs;
870
- return __generator(this, function (_a) {
871
- switch (_a.label) {
872
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportActionsAsYaml(productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options)];
873
- case 1:
874
- localVarAxiosArgs = _a.sent();
875
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
876
- }
877
- });
878
- });
879
- },
880
- /**
881
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
542
+ * Retrieves an action configuration by its code
882
543
  * @summary Retrieve the action
883
544
  * @param {string} code Action code
884
545
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
885
- * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
886
546
  * @param {*} [options] Override http request option.
887
547
  * @throws {RequiredError}
888
548
  */
889
- getAction: function (code, authorization, expand, options) {
549
+ getAction: function (code, authorization, options) {
890
550
  return __awaiter(this, void 0, void 0, function () {
891
551
  var localVarAxiosArgs;
892
552
  return __generator(this, function (_a) {
893
553
  switch (_a.label) {
894
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, expand, options)];
554
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, options)];
895
555
  case 1:
896
556
  localVarAxiosArgs = _a.sent();
897
557
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -900,20 +560,20 @@ var ActionsApiFp = function (configuration) {
900
560
  });
901
561
  },
902
562
  /**
903
- * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
904
- * @summary Retrieve the action version
905
- * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
563
+ * Retrieves the latest action execution status by executionCode or correlationId
564
+ * @summary Retrieve the actionExecution
906
565
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
907
- * @param {string} [expand]
566
+ * @param {string} [executionCode] Action execution code
567
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
908
568
  * @param {*} [options] Override http request option.
909
569
  * @throws {RequiredError}
910
570
  */
911
- getActionVersion: function (versionCode, authorization, expand, options) {
571
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
912
572
  return __awaiter(this, void 0, void 0, function () {
913
573
  var localVarAxiosArgs;
914
574
  return __generator(this, function (_a) {
915
575
  switch (_a.label) {
916
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options)];
576
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionExecutionStatus(authorization, executionCode, correlationId, options)];
917
577
  case 1:
918
578
  localVarAxiosArgs = _a.sent();
919
579
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -922,47 +582,25 @@ var ActionsApiFp = function (configuration) {
922
582
  });
923
583
  },
924
584
  /**
925
- * Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
926
- * @summary Update the entity-actions-yaml
927
- * @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
928
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
929
- * @param {*} [options] Override http request option.
930
- * @throws {RequiredError}
931
- */
932
- importActionsFromYaml: function (importActionsFromYamlRequestDto, authorization, options) {
933
- return __awaiter(this, void 0, void 0, function () {
934
- var localVarAxiosArgs;
935
- return __generator(this, function (_a) {
936
- switch (_a.label) {
937
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options)];
938
- case 1:
939
- localVarAxiosArgs = _a.sent();
940
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
941
- }
942
- });
943
- });
944
- },
945
- /**
946
- * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
947
- * @summary List action versions
948
- * @param {string} code Action code
585
+ * Lists action executions (latest status per execution only) with optional filters
586
+ * @summary List actionExecutions
949
587
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
950
588
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
951
589
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
952
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
590
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
953
591
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
954
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
955
- * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
956
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
592
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt&lt;/i&gt;
593
+ * @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.&lt;br/&gt; &lt;br/&gt;
594
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
957
595
  * @param {*} [options] Override http request option.
958
596
  * @throws {RequiredError}
959
597
  */
960
- listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
598
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
961
599
  return __awaiter(this, void 0, void 0, function () {
962
600
  var localVarAxiosArgs;
963
601
  return __generator(this, function (_a) {
964
602
  switch (_a.label) {
965
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
603
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
966
604
  case 1:
967
605
  localVarAxiosArgs = _a.sent();
968
606
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -971,16 +609,16 @@ var ActionsApiFp = function (configuration) {
971
609
  });
972
610
  },
973
611
  /**
974
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
612
+ * Lists all action configurations with optional filters
975
613
  * @summary List actions
976
614
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
977
615
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
978
616
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
979
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
617
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
980
618
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
981
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
982
- * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
983
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
619
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
620
+ * @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.&lt;br/&gt; &lt;br/&gt;
621
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
984
622
  * @param {*} [options] Override http request option.
985
623
  * @throws {RequiredError}
986
624
  */
@@ -998,34 +636,7 @@ var ActionsApiFp = function (configuration) {
998
636
  });
999
637
  },
1000
638
  /**
1001
- * 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\"
1002
- * @summary List action versions
1003
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1004
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1005
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1006
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1007
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1008
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
1009
- * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
1010
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1011
- * @param {*} [options] Override http request option.
1012
- * @throws {RequiredError}
1013
- */
1014
- listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1015
- return __awaiter(this, void 0, void 0, function () {
1016
- var localVarAxiosArgs;
1017
- return __generator(this, function (_a) {
1018
- switch (_a.label) {
1019
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
1020
- case 1:
1021
- localVarAxiosArgs = _a.sent();
1022
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1023
- }
1024
- });
1025
- });
1026
- },
1027
- /**
1028
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
639
+ * Updates an existing action configuration (patch semantics)
1029
640
  * @summary Update the action
1030
641
  * @param {string} code Action code
1031
642
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -1046,28 +657,6 @@ var ActionsApiFp = function (configuration) {
1046
657
  });
1047
658
  });
1048
659
  },
1049
- /**
1050
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1051
- * @summary Update the action
1052
- * @param {string} code Action code
1053
- * @param {UpdateActionRequestDto} updateActionRequestDto
1054
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1055
- * @param {*} [options] Override http request option.
1056
- * @throws {RequiredError}
1057
- */
1058
- updateAction_1: function (code, updateActionRequestDto, authorization, options) {
1059
- return __awaiter(this, void 0, void 0, function () {
1060
- var localVarAxiosArgs;
1061
- return __generator(this, function (_a) {
1062
- switch (_a.label) {
1063
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options)];
1064
- case 1:
1065
- localVarAxiosArgs = _a.sent();
1066
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1067
- }
1068
- });
1069
- });
1070
- },
1071
660
  };
1072
661
  };
1073
662
  exports.ActionsApiFp = ActionsApiFp;
@@ -1079,7 +668,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1079
668
  var localVarFp = (0, exports.ActionsApiFp)(configuration);
1080
669
  return {
1081
670
  /**
1082
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
671
+ * Creates a new action configuration
1083
672
  * @summary Create the action
1084
673
  * @param {CreateActionRequestDto} createActionRequestDto
1085
674
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -1090,7 +679,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1090
679
  return localVarFp.createAction(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1091
680
  },
1092
681
  /**
1093
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
682
+ * Deletes an action configuration by its code
1094
683
  * @summary Delete the action
1095
684
  * @param {string} code Action code
1096
685
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -1101,94 +690,56 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1101
690
  return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
1102
691
  },
1103
692
  /**
1104
- * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
1105
- * @summary Delete the action version
1106
- * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
1107
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1108
- * @param {*} [options] Override http request option.
1109
- * @throws {RequiredError}
1110
- */
1111
- deleteActionVersion: function (versionCode, authorization, options) {
1112
- return localVarFp.deleteActionVersion(versionCode, authorization, options).then(function (request) { return request(axios, basePath); });
1113
- },
1114
- /**
1115
- * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
1116
- * @summary Retrieve the entity-actions-yaml
1117
- * @param {string} productSlug Product slug
1118
- * @param {number} productVersionId Product version ID
1119
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1120
- * @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
1121
- * @param {boolean} [includeDisabled] Include draft (disabled) actions
1122
- * @param {*} [options] Override http request option.
1123
- * @throws {RequiredError}
1124
- */
1125
- exportActionsAsYaml: function (productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options) {
1126
- return localVarFp.exportActionsAsYaml(productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options).then(function (request) { return request(axios, basePath); });
1127
- },
1128
- /**
1129
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
693
+ * Retrieves an action configuration by its code
1130
694
  * @summary Retrieve the action
1131
695
  * @param {string} code Action code
1132
696
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1133
- * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
1134
697
  * @param {*} [options] Override http request option.
1135
698
  * @throws {RequiredError}
1136
699
  */
1137
- getAction: function (code, authorization, expand, options) {
1138
- return localVarFp.getAction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
700
+ getAction: function (code, authorization, options) {
701
+ return localVarFp.getAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
1139
702
  },
1140
703
  /**
1141
- * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
1142
- * @summary Retrieve the action version
1143
- * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
704
+ * Retrieves the latest action execution status by executionCode or correlationId
705
+ * @summary Retrieve the actionExecution
1144
706
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1145
- * @param {string} [expand]
707
+ * @param {string} [executionCode] Action execution code
708
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
1146
709
  * @param {*} [options] Override http request option.
1147
710
  * @throws {RequiredError}
1148
711
  */
1149
- getActionVersion: function (versionCode, authorization, expand, options) {
1150
- return localVarFp.getActionVersion(versionCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
712
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
713
+ return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then(function (request) { return request(axios, basePath); });
1151
714
  },
1152
715
  /**
1153
- * Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
1154
- * @summary Update the entity-actions-yaml
1155
- * @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
1156
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1157
- * @param {*} [options] Override http request option.
1158
- * @throws {RequiredError}
1159
- */
1160
- importActionsFromYaml: function (importActionsFromYamlRequestDto, authorization, options) {
1161
- return localVarFp.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1162
- },
1163
- /**
1164
- * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1165
- * @summary List action versions
1166
- * @param {string} code Action code
716
+ * Lists action executions (latest status per execution only) with optional filters
717
+ * @summary List actionExecutions
1167
718
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1168
719
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1169
720
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
721
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1171
722
  * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
1174
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
723
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt&lt;/i&gt;
724
+ * @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.&lt;br/&gt; &lt;br/&gt;
725
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1175
726
  * @param {*} [options] Override http request option.
1176
727
  * @throws {RequiredError}
1177
728
  */
1178
- listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1179
- return localVarFp.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
729
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
730
+ return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1180
731
  },
1181
732
  /**
1182
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
733
+ * Lists all action configurations with optional filters
1183
734
  * @summary List actions
1184
735
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1185
736
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1186
737
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1187
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
738
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1188
739
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1189
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
1190
- * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
1191
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
740
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
741
+ * @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.&lt;br/&gt; &lt;br/&gt;
742
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1192
743
  * @param {*} [options] Override http request option.
1193
744
  * @throws {RequiredError}
1194
745
  */
@@ -1196,24 +747,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1196
747
  return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1197
748
  },
1198
749
  /**
1199
- * 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\"
1200
- * @summary List action versions
1201
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1202
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1203
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1204
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1205
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1206
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
1207
- * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
1208
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1209
- * @param {*} [options] Override http request option.
1210
- * @throws {RequiredError}
1211
- */
1212
- listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1213
- return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1214
- },
1215
- /**
1216
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
750
+ * Updates an existing action configuration (patch semantics)
1217
751
  * @summary Update the action
1218
752
  * @param {string} code Action code
1219
753
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -1224,18 +758,6 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1224
758
  updateAction: function (code, updateActionRequestDto, authorization, options) {
1225
759
  return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1226
760
  },
1227
- /**
1228
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1229
- * @summary Update the action
1230
- * @param {string} code Action code
1231
- * @param {UpdateActionRequestDto} updateActionRequestDto
1232
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1233
- * @param {*} [options] Override http request option.
1234
- * @throws {RequiredError}
1235
- */
1236
- updateAction_1: function (code, updateActionRequestDto, authorization, options) {
1237
- return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1238
- },
1239
761
  };
1240
762
  };
1241
763
  exports.ActionsApiFactory = ActionsApiFactory;
@@ -1251,7 +773,7 @@ var ActionsApi = /** @class */ (function (_super) {
1251
773
  return _super !== null && _super.apply(this, arguments) || this;
1252
774
  }
1253
775
  /**
1254
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
776
+ * Creates a new action configuration
1255
777
  * @summary Create the action
1256
778
  * @param {ActionsApiCreateActionRequest} requestParameters Request parameters.
1257
779
  * @param {*} [options] Override http request option.
@@ -1263,7 +785,7 @@ var ActionsApi = /** @class */ (function (_super) {
1263
785
  return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1264
786
  };
1265
787
  /**
1266
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
788
+ * Deletes an action configuration by its code
1267
789
  * @summary Delete the action
1268
790
  * @param {ActionsApiDeleteActionRequest} requestParameters Request parameters.
1269
791
  * @param {*} [options] Override http request option.
@@ -1275,31 +797,7 @@ var ActionsApi = /** @class */ (function (_super) {
1275
797
  return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1276
798
  };
1277
799
  /**
1278
- * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
1279
- * @summary Delete the action version
1280
- * @param {ActionsApiDeleteActionVersionRequest} requestParameters Request parameters.
1281
- * @param {*} [options] Override http request option.
1282
- * @throws {RequiredError}
1283
- * @memberof ActionsApi
1284
- */
1285
- ActionsApi.prototype.deleteActionVersion = function (requestParameters, options) {
1286
- var _this = this;
1287
- return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1288
- };
1289
- /**
1290
- * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
1291
- * @summary Retrieve the entity-actions-yaml
1292
- * @param {ActionsApiExportActionsAsYamlRequest} requestParameters Request parameters.
1293
- * @param {*} [options] Override http request option.
1294
- * @throws {RequiredError}
1295
- * @memberof ActionsApi
1296
- */
1297
- ActionsApi.prototype.exportActionsAsYaml = function (requestParameters, options) {
1298
- var _this = this;
1299
- return (0, exports.ActionsApiFp)(this.configuration).exportActionsAsYaml(requestParameters.productSlug, requestParameters.productVersionId, requestParameters.authorization, requestParameters.actionSlugs, requestParameters.includeDisabled, options).then(function (request) { return request(_this.axios, _this.basePath); });
1300
- };
1301
- /**
1302
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
800
+ * Retrieves an action configuration by its code
1303
801
  * @summary Retrieve the action
1304
802
  * @param {ActionsApiGetActionRequest} requestParameters Request parameters.
1305
803
  * @param {*} [options] Override http request option.
@@ -1308,46 +806,36 @@ var ActionsApi = /** @class */ (function (_super) {
1308
806
  */
1309
807
  ActionsApi.prototype.getAction = function (requestParameters, options) {
1310
808
  var _this = this;
1311
- return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
809
+ return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1312
810
  };
1313
811
  /**
1314
- * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
1315
- * @summary Retrieve the action version
1316
- * @param {ActionsApiGetActionVersionRequest} requestParameters Request parameters.
812
+ * Retrieves the latest action execution status by executionCode or correlationId
813
+ * @summary Retrieve the actionExecution
814
+ * @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
1317
815
  * @param {*} [options] Override http request option.
1318
816
  * @throws {RequiredError}
1319
817
  * @memberof ActionsApi
1320
818
  */
1321
- ActionsApi.prototype.getActionVersion = function (requestParameters, options) {
819
+ ActionsApi.prototype.getActionExecutionStatus = function (requestParameters, options) {
1322
820
  var _this = this;
1323
- return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1324
- };
1325
- /**
1326
- * Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
1327
- * @summary Update the entity-actions-yaml
1328
- * @param {ActionsApiImportActionsFromYamlRequest} requestParameters Request parameters.
1329
- * @param {*} [options] Override http request option.
1330
- * @throws {RequiredError}
1331
- * @memberof ActionsApi
1332
- */
1333
- ActionsApi.prototype.importActionsFromYaml = function (requestParameters, options) {
1334
- var _this = this;
1335
- return (0, exports.ActionsApiFp)(this.configuration).importActionsFromYaml(requestParameters.importActionsFromYamlRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
821
+ if (requestParameters === void 0) { requestParameters = {}; }
822
+ return (0, exports.ActionsApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1336
823
  };
1337
824
  /**
1338
- * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1339
- * @summary List action versions
1340
- * @param {ActionsApiListActionVersionsRequest} requestParameters Request parameters.
825
+ * Lists action executions (latest status per execution only) with optional filters
826
+ * @summary List actionExecutions
827
+ * @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
1341
828
  * @param {*} [options] Override http request option.
1342
829
  * @throws {RequiredError}
1343
830
  * @memberof ActionsApi
1344
831
  */
1345
- ActionsApi.prototype.listActionVersions = function (requestParameters, options) {
832
+ ActionsApi.prototype.listActionExecutions = function (requestParameters, options) {
1346
833
  var _this = this;
1347
- return (0, exports.ActionsApiFp)(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
834
+ if (requestParameters === void 0) { requestParameters = {}; }
835
+ 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); });
1348
836
  };
1349
837
  /**
1350
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
838
+ * Lists all action configurations with optional filters
1351
839
  * @summary List actions
1352
840
  * @param {ActionsApiListActionsRequest} requestParameters Request parameters.
1353
841
  * @param {*} [options] Override http request option.
@@ -1360,20 +848,7 @@ var ActionsApi = /** @class */ (function (_super) {
1360
848
  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); });
1361
849
  };
1362
850
  /**
1363
- * 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\"
1364
- * @summary List action versions
1365
- * @param {ActionsApiListAllActionVersionsRequest} requestParameters Request parameters.
1366
- * @param {*} [options] Override http request option.
1367
- * @throws {RequiredError}
1368
- * @memberof ActionsApi
1369
- */
1370
- ActionsApi.prototype.listAllActionVersions = function (requestParameters, options) {
1371
- var _this = this;
1372
- if (requestParameters === void 0) { requestParameters = {}; }
1373
- return (0, exports.ActionsApiFp)(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1374
- };
1375
- /**
1376
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
851
+ * Updates an existing action configuration (patch semantics)
1377
852
  * @summary Update the action
1378
853
  * @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
1379
854
  * @param {*} [options] Override http request option.
@@ -1384,18 +859,6 @@ var ActionsApi = /** @class */ (function (_super) {
1384
859
  var _this = this;
1385
860
  return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1386
861
  };
1387
- /**
1388
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1389
- * @summary Update the action
1390
- * @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
1391
- * @param {*} [options] Override http request option.
1392
- * @throws {RequiredError}
1393
- * @memberof ActionsApi
1394
- */
1395
- ActionsApi.prototype.updateAction_1 = function (requestParameters, options) {
1396
- var _this = this;
1397
- return (0, exports.ActionsApiFp)(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1398
- };
1399
862
  return ActionsApi;
1400
863
  }(base_1.BaseAPI));
1401
864
  exports.ActionsApi = ActionsApi;