@emilgroup/action-sdk 1.1.1-beta.27 → 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.
Files changed (40) hide show
  1. package/.openapi-generator/FILES +0 -6
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +397 -219
  4. package/api/executions-api.ts +12 -119
  5. package/dist/api/actions-api.d.ts +270 -178
  6. package/dist/api/actions-api.js +328 -153
  7. package/dist/api/executions-api.d.ts +12 -69
  8. package/dist/api/executions-api.js +9 -102
  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 -6
  14. package/dist/models/index.js +0 -6
  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 -6
  21. package/models/update-action-request-dto.ts +5 -44
  22. package/package.json +1 -1
  23. package/dist/models/action-ref-class.d.ts +0 -36
  24. package/dist/models/action-ref-class.js +0 -15
  25. package/dist/models/action-version-class.d.ts +0 -127
  26. package/dist/models/action-version-class.js +0 -21
  27. package/dist/models/get-action-version-response-class.d.ts +0 -25
  28. package/dist/models/get-action-version-response-class.js +0 -15
  29. package/dist/models/list-action-versions-response-class.d.ts +0 -43
  30. package/dist/models/list-action-versions-response-class.js +0 -15
  31. package/dist/models/trigger-action-request-dto.d.ts +0 -62
  32. package/dist/models/trigger-action-request-dto.js +0 -15
  33. package/dist/models/trigger-action-response-class.d.ts +0 -25
  34. package/dist/models/trigger-action-response-class.js +0 -15
  35. package/models/action-ref-class.ts +0 -42
  36. package/models/action-version-class.ts +0 -136
  37. package/models/get-action-version-response-class.ts +0 -31
  38. package/models/list-action-versions-response-class.ts +0 -49
  39. package/models/trigger-action-request-dto.ts +0 -66
  40. package/models/trigger-action-response-class.ts +0 -31
@@ -141,6 +141,55 @@ var ActionsApiAxiosParamCreator = function (configuration) {
141
141
  });
142
142
  });
143
143
  },
144
+ /**
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
+ },
144
193
  /**
145
194
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
146
195
  * @summary Delete the action
@@ -190,24 +239,24 @@ var ActionsApiAxiosParamCreator = function (configuration) {
190
239
  });
191
240
  },
192
241
  /**
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>)
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
196
245
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
246
  * @param {*} [options] Override http request option.
198
247
  * @throws {RequiredError}
199
248
  */
200
- deleteActionVersion: function (versionCode, authorization, options) {
249
+ deleteAction_2: function (code, authorization, options) {
201
250
  if (options === void 0) { options = {}; }
202
251
  return __awaiter(_this, void 0, void 0, function () {
203
252
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
204
253
  return __generator(this, function (_a) {
205
254
  switch (_a.label) {
206
255
  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)));
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)));
211
260
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
261
  if (configuration) {
213
262
  baseOptions = configuration.baseOptions;
@@ -242,11 +291,10 @@ var ActionsApiAxiosParamCreator = function (configuration) {
242
291
  * @summary Retrieve the action
243
292
  * @param {string} code Action code
244
293
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
245
- * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
246
294
  * @param {*} [options] Override http request option.
247
295
  * @throws {RequiredError}
248
296
  */
249
- getAction: function (code, authorization, expand, options) {
297
+ getAction: function (code, authorization, options) {
250
298
  if (options === void 0) { options = {}; }
251
299
  return __awaiter(_this, void 0, void 0, function () {
252
300
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -272,9 +320,6 @@ var ActionsApiAxiosParamCreator = function (configuration) {
272
320
  // authentication bearer required
273
321
  // http bearer authentication required
274
322
  _a.sent();
275
- if (expand !== undefined) {
276
- localVarQueryParameter['expand'] = expand;
277
- }
278
323
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
279
324
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
280
325
  }
@@ -290,25 +335,22 @@ var ActionsApiAxiosParamCreator = function (configuration) {
290
335
  });
291
336
  },
292
337
  /**
293
- * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
294
- * @summary Retrieve the action version
295
- * @param {string} versionCode Version code (e.g. acv_<nanoid>)
338
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
339
+ * @summary Retrieve the actionExecution
296
340
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
297
- * @param {string} [expand]
341
+ * @param {string} [executionCode] Action execution code
342
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
298
343
  * @param {*} [options] Override http request option.
299
344
  * @throws {RequiredError}
300
345
  */
301
- getActionVersion: function (versionCode, authorization, expand, options) {
346
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
302
347
  if (options === void 0) { options = {}; }
303
348
  return __awaiter(_this, void 0, void 0, function () {
304
349
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
305
350
  return __generator(this, function (_a) {
306
351
  switch (_a.label) {
307
352
  case 0:
308
- // verify required parameter 'versionCode' is not null or undefined
309
- (0, common_1.assertParamExists)('getActionVersion', 'versionCode', versionCode);
310
- localVarPath = "/actionservice/v1/actions/versions/{versionCode}"
311
- .replace("{".concat("versionCode", "}"), encodeURIComponent(String(versionCode)));
353
+ localVarPath = "/actionservice/v1/actions/executions/status";
312
354
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
313
355
  if (configuration) {
314
356
  baseOptions = configuration.baseOptions;
@@ -324,8 +366,11 @@ var ActionsApiAxiosParamCreator = function (configuration) {
324
366
  // authentication bearer required
325
367
  // http bearer authentication required
326
368
  _a.sent();
327
- if (expand !== undefined) {
328
- localVarQueryParameter['expand'] = expand;
369
+ if (executionCode !== undefined) {
370
+ localVarQueryParameter['executionCode'] = executionCode;
371
+ }
372
+ if (correlationId !== undefined) {
373
+ localVarQueryParameter['correlationId'] = correlationId;
329
374
  }
330
375
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
331
376
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
@@ -342,31 +387,75 @@ var ActionsApiAxiosParamCreator = function (configuration) {
342
387
  });
343
388
  },
344
389
  /**
345
- * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
346
- * @summary List action versions
390
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
391
+ * @summary Retrieve the action
347
392
  * @param {string} code Action code
348
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\"
439
+ * @summary List actionExecutions
440
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
349
441
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
350
442
  * @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.
351
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
443
+ * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
352
444
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
353
- * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
354
- * @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/> <i>Allowed values: inputValidationSchema<i>
355
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
445
+ * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
446
+ * @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/>
447
+ * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
356
448
  * @param {*} [options] Override http request option.
357
449
  * @throws {RequiredError}
358
450
  */
359
- listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
451
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
360
452
  if (options === void 0) { options = {}; }
361
453
  return __awaiter(_this, void 0, void 0, function () {
362
454
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
363
455
  return __generator(this, function (_a) {
364
456
  switch (_a.label) {
365
457
  case 0:
366
- // verify required parameter 'code' is not null or undefined
367
- (0, common_1.assertParamExists)('listActionVersions', 'code', code);
368
- localVarPath = "/actionservice/v1/actions/{code}/versions"
369
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
458
+ localVarPath = "/actionservice/v1/actions/executions";
370
459
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
371
460
  if (configuration) {
372
461
  baseOptions = configuration.baseOptions;
@@ -423,11 +512,11 @@ var ActionsApiAxiosParamCreator = function (configuration) {
423
512
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
424
513
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
425
514
  * @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.
426
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
515
+ * @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>
427
516
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
428
- * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
429
- * @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/> <i>Allowed values: inputValidationSchema<i>
430
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
517
+ * @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>
518
+ * @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/>
519
+ * @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>
431
520
  * @param {*} [options] Override http request option.
432
521
  * @throws {RequiredError}
433
522
  */
@@ -490,27 +579,27 @@ var ActionsApiAxiosParamCreator = function (configuration) {
490
579
  });
491
580
  },
492
581
  /**
493
- * 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\"
494
- * @summary List action versions
582
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
583
+ * @summary List actions
495
584
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
496
585
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
497
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.
498
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
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>
499
588
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
500
- * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
501
- * @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/> <i>Allowed values: inputValidationSchema<i>
502
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
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>
503
592
  * @param {*} [options] Override http request option.
504
593
  * @throws {RequiredError}
505
594
  */
506
- listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
595
+ listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
507
596
  if (options === void 0) { options = {}; }
508
597
  return __awaiter(_this, void 0, void 0, function () {
509
598
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
510
599
  return __generator(this, function (_a) {
511
600
  switch (_a.label) {
512
601
  case 0:
513
- localVarPath = "/actionservice/v1/actions/versions";
602
+ localVarPath = "/actionservice/v1/actions";
514
603
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
515
604
  if (configuration) {
516
605
  baseOptions = configuration.baseOptions;
@@ -562,7 +651,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
562
651
  });
563
652
  },
564
653
  /**
565
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
654
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
566
655
  * @summary Update the action
567
656
  * @param {string} code Action code
568
657
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -615,7 +704,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
615
704
  });
616
705
  },
617
706
  /**
618
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
707
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
619
708
  * @summary Update the action
620
709
  * @param {string} code Action code
621
710
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -623,7 +712,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
623
712
  * @param {*} [options] Override http request option.
624
713
  * @throws {RequiredError}
625
714
  */
626
- updateAction_1: function (code, updateActionRequestDto, authorization, options) {
715
+ updateAction_5: function (code, updateActionRequestDto, authorization, options) {
627
716
  if (options === void 0) { options = {}; }
628
717
  return __awaiter(_this, void 0, void 0, function () {
629
718
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -631,9 +720,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
631
720
  switch (_a.label) {
632
721
  case 0:
633
722
  // verify required parameter 'code' is not null or undefined
634
- (0, common_1.assertParamExists)('updateAction_1', 'code', code);
723
+ (0, common_1.assertParamExists)('updateAction_5', 'code', code);
635
724
  // verify required parameter 'updateActionRequestDto' is not null or undefined
636
- (0, common_1.assertParamExists)('updateAction_1', 'updateActionRequestDto', updateActionRequestDto);
725
+ (0, common_1.assertParamExists)('updateAction_5', 'updateActionRequestDto', updateActionRequestDto);
637
726
  localVarPath = "/actionservice/v1/actions/{code}"
638
727
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
639
728
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -698,6 +787,27 @@ var ActionsApiFp = function (configuration) {
698
787
  });
699
788
  });
700
789
  },
790
+ /**
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
+ },
701
811
  /**
702
812
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
703
813
  * @summary Delete the action
@@ -720,19 +830,19 @@ var ActionsApiFp = function (configuration) {
720
830
  });
721
831
  },
722
832
  /**
723
- * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
724
- * @summary Delete the action version
725
- * @param {string} versionCode Version code (e.g. acv_<nanoid>)
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
726
836
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
727
837
  * @param {*} [options] Override http request option.
728
838
  * @throws {RequiredError}
729
839
  */
730
- deleteActionVersion: function (versionCode, authorization, options) {
840
+ deleteAction_2: function (code, authorization, options) {
731
841
  return __awaiter(this, void 0, void 0, function () {
732
842
  var localVarAxiosArgs;
733
843
  return __generator(this, function (_a) {
734
844
  switch (_a.label) {
735
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options)];
845
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAction_2(code, authorization, options)];
736
846
  case 1:
737
847
  localVarAxiosArgs = _a.sent();
738
848
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -745,16 +855,15 @@ var ActionsApiFp = function (configuration) {
745
855
  * @summary Retrieve the action
746
856
  * @param {string} code Action code
747
857
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
748
- * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
749
858
  * @param {*} [options] Override http request option.
750
859
  * @throws {RequiredError}
751
860
  */
752
- getAction: function (code, authorization, expand, options) {
861
+ getAction: function (code, authorization, options) {
753
862
  return __awaiter(this, void 0, void 0, function () {
754
863
  var localVarAxiosArgs;
755
864
  return __generator(this, function (_a) {
756
865
  switch (_a.label) {
757
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, expand, options)];
866
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, options)];
758
867
  case 1:
759
868
  localVarAxiosArgs = _a.sent();
760
869
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -763,20 +872,20 @@ var ActionsApiFp = function (configuration) {
763
872
  });
764
873
  },
765
874
  /**
766
- * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
767
- * @summary Retrieve the action version
768
- * @param {string} versionCode Version code (e.g. acv_<nanoid>)
875
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
876
+ * @summary Retrieve the actionExecution
769
877
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
770
- * @param {string} [expand]
878
+ * @param {string} [executionCode] Action execution code
879
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
771
880
  * @param {*} [options] Override http request option.
772
881
  * @throws {RequiredError}
773
882
  */
774
- getActionVersion: function (versionCode, authorization, expand, options) {
883
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
775
884
  return __awaiter(this, void 0, void 0, function () {
776
885
  var localVarAxiosArgs;
777
886
  return __generator(this, function (_a) {
778
887
  switch (_a.label) {
779
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options)];
888
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionExecutionStatus(authorization, executionCode, correlationId, options)];
780
889
  case 1:
781
890
  localVarAxiosArgs = _a.sent();
782
891
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -785,26 +894,46 @@ var ActionsApiFp = function (configuration) {
785
894
  });
786
895
  },
787
896
  /**
788
- * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
789
- * @summary List action versions
897
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
898
+ * @summary Retrieve the action
790
899
  * @param {string} code Action code
791
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\"
919
+ * @summary List actionExecutions
920
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
792
921
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
793
922
  * @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.
794
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
923
+ * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
795
924
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
796
- * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
797
- * @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/> <i>Allowed values: inputValidationSchema<i>
798
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
925
+ * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
926
+ * @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/>
927
+ * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
799
928
  * @param {*} [options] Override http request option.
800
929
  * @throws {RequiredError}
801
930
  */
802
- listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
931
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
803
932
  return __awaiter(this, void 0, void 0, function () {
804
933
  var localVarAxiosArgs;
805
934
  return __generator(this, function (_a) {
806
935
  switch (_a.label) {
807
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
936
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
808
937
  case 1:
809
938
  localVarAxiosArgs = _a.sent();
810
939
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -818,11 +947,11 @@ var ActionsApiFp = function (configuration) {
818
947
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
819
948
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
820
949
  * @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.
821
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
950
+ * @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>
822
951
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
823
- * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
824
- * @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/> <i>Allowed values: inputValidationSchema<i>
825
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
952
+ * @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>
953
+ * @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/>
954
+ * @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>
826
955
  * @param {*} [options] Override http request option.
827
956
  * @throws {RequiredError}
828
957
  */
@@ -840,25 +969,25 @@ var ActionsApiFp = function (configuration) {
840
969
  });
841
970
  },
842
971
  /**
843
- * 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\"
844
- * @summary List action versions
972
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
973
+ * @summary List actions
845
974
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
846
975
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
847
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.
848
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
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>
849
978
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
850
- * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
851
- * @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/> <i>Allowed values: inputValidationSchema<i>
852
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
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>
853
982
  * @param {*} [options] Override http request option.
854
983
  * @throws {RequiredError}
855
984
  */
856
- listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
985
+ listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
857
986
  return __awaiter(this, void 0, void 0, function () {
858
987
  var localVarAxiosArgs;
859
988
  return __generator(this, function (_a) {
860
989
  switch (_a.label) {
861
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
990
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
862
991
  case 1:
863
992
  localVarAxiosArgs = _a.sent();
864
993
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -867,7 +996,7 @@ var ActionsApiFp = function (configuration) {
867
996
  });
868
997
  },
869
998
  /**
870
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
999
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
871
1000
  * @summary Update the action
872
1001
  * @param {string} code Action code
873
1002
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -889,7 +1018,7 @@ var ActionsApiFp = function (configuration) {
889
1018
  });
890
1019
  },
891
1020
  /**
892
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1021
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
893
1022
  * @summary Update the action
894
1023
  * @param {string} code Action code
895
1024
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -897,12 +1026,12 @@ var ActionsApiFp = function (configuration) {
897
1026
  * @param {*} [options] Override http request option.
898
1027
  * @throws {RequiredError}
899
1028
  */
900
- updateAction_1: function (code, updateActionRequestDto, authorization, options) {
1029
+ updateAction_5: function (code, updateActionRequestDto, authorization, options) {
901
1030
  return __awaiter(this, void 0, void 0, function () {
902
1031
  var localVarAxiosArgs;
903
1032
  return __generator(this, function (_a) {
904
1033
  switch (_a.label) {
905
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options)];
1034
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction_5(code, updateActionRequestDto, authorization, options)];
906
1035
  case 1:
907
1036
  localVarAxiosArgs = _a.sent();
908
1037
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -931,6 +1060,17 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
931
1060
  createAction: function (createActionRequestDto, authorization, options) {
932
1061
  return localVarFp.createAction(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
933
1062
  },
1063
+ /**
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
+ },
934
1074
  /**
935
1075
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
936
1076
  * @summary Delete the action
@@ -943,57 +1083,66 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
943
1083
  return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
944
1084
  },
945
1085
  /**
946
- * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
947
- * @summary Delete the action version
948
- * @param {string} versionCode Version code (e.g. acv_<nanoid>)
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
949
1089
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
950
1090
  * @param {*} [options] Override http request option.
951
1091
  * @throws {RequiredError}
952
1092
  */
953
- deleteActionVersion: function (versionCode, authorization, options) {
954
- return localVarFp.deleteActionVersion(versionCode, authorization, options).then(function (request) { return request(axios, basePath); });
1093
+ deleteAction_2: function (code, authorization, options) {
1094
+ return localVarFp.deleteAction_2(code, authorization, options).then(function (request) { return request(axios, basePath); });
955
1095
  },
956
1096
  /**
957
1097
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
958
1098
  * @summary Retrieve the action
959
1099
  * @param {string} code Action code
960
1100
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
961
- * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
962
1101
  * @param {*} [options] Override http request option.
963
1102
  * @throws {RequiredError}
964
1103
  */
965
- getAction: function (code, authorization, expand, options) {
966
- return localVarFp.getAction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1104
+ getAction: function (code, authorization, options) {
1105
+ return localVarFp.getAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
967
1106
  },
968
1107
  /**
969
- * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
970
- * @summary Retrieve the action version
971
- * @param {string} versionCode Version code (e.g. acv_<nanoid>)
1108
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
1109
+ * @summary Retrieve the actionExecution
972
1110
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
973
- * @param {string} [expand]
1111
+ * @param {string} [executionCode] Action execution code
1112
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
974
1113
  * @param {*} [options] Override http request option.
975
1114
  * @throws {RequiredError}
976
1115
  */
977
- getActionVersion: function (versionCode, authorization, expand, options) {
978
- return localVarFp.getActionVersion(versionCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1116
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
1117
+ return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then(function (request) { return request(axios, basePath); });
979
1118
  },
980
1119
  /**
981
- * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
982
- * @summary List action versions
1120
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1121
+ * @summary Retrieve the action
983
1122
  * @param {string} code Action code
984
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\"
1132
+ * @summary List actionExecutions
1133
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
985
1134
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
986
1135
  * @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.
987
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
1136
+ * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
988
1137
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
989
- * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
990
- * @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/> <i>Allowed values: inputValidationSchema<i>
991
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
1138
+ * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
1139
+ * @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/>
1140
+ * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
992
1141
  * @param {*} [options] Override http request option.
993
1142
  * @throws {RequiredError}
994
1143
  */
995
- listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
996
- return localVarFp.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1144
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1145
+ return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
997
1146
  },
998
1147
  /**
999
1148
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
@@ -1001,11 +1150,11 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1001
1150
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1002
1151
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1003
1152
  * @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.
1004
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
1153
+ * @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>
1005
1154
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
1006
- * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
1007
- * @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/> <i>Allowed values: inputValidationSchema<i>
1008
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
1155
+ * @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>
1156
+ * @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/>
1157
+ * @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>
1009
1158
  * @param {*} [options] Override http request option.
1010
1159
  * @throws {RequiredError}
1011
1160
  */
@@ -1013,24 +1162,24 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1013
1162
  return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1014
1163
  },
1015
1164
  /**
1016
- * 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\"
1017
- * @summary List action versions
1165
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1166
+ * @summary List actions
1018
1167
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1019
1168
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1020
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.
1021
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
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>
1022
1171
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
1023
- * @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
1024
- * @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/> <i>Allowed values: inputValidationSchema<i>
1025
- * @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
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>
1026
1175
  * @param {*} [options] Override http request option.
1027
1176
  * @throws {RequiredError}
1028
1177
  */
1029
- listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1030
- return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
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); });
1031
1180
  },
1032
1181
  /**
1033
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1182
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1034
1183
  * @summary Update the action
1035
1184
  * @param {string} code Action code
1036
1185
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -1042,7 +1191,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1042
1191
  return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1043
1192
  },
1044
1193
  /**
1045
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1194
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1046
1195
  * @summary Update the action
1047
1196
  * @param {string} code Action code
1048
1197
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -1050,8 +1199,8 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1050
1199
  * @param {*} [options] Override http request option.
1051
1200
  * @throws {RequiredError}
1052
1201
  */
1053
- updateAction_1: function (code, updateActionRequestDto, authorization, options) {
1054
- return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1202
+ updateAction_5: function (code, updateActionRequestDto, authorization, options) {
1203
+ return localVarFp.updateAction_5(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1055
1204
  },
1056
1205
  };
1057
1206
  };
@@ -1079,6 +1228,18 @@ var ActionsApi = /** @class */ (function (_super) {
1079
1228
  var _this = this;
1080
1229
  return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1081
1230
  };
1231
+ /**
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
+ };
1082
1243
  /**
1083
1244
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1084
1245
  * @summary Delete the action
@@ -1092,16 +1253,16 @@ var ActionsApi = /** @class */ (function (_super) {
1092
1253
  return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1093
1254
  };
1094
1255
  /**
1095
- * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
1096
- * @summary Delete the action version
1097
- * @param {ActionsApiDeleteActionVersionRequest} requestParameters Request parameters.
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.
1098
1259
  * @param {*} [options] Override http request option.
1099
1260
  * @throws {RequiredError}
1100
1261
  * @memberof ActionsApi
1101
1262
  */
1102
- ActionsApi.prototype.deleteActionVersion = function (requestParameters, options) {
1263
+ ActionsApi.prototype.deleteAction_2 = function (requestParameters, options) {
1103
1264
  var _this = this;
1104
- return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1265
+ return (0, exports.ActionsApiFp)(this.configuration).deleteAction_2(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1105
1266
  };
1106
1267
  /**
1107
1268
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
@@ -1113,31 +1274,45 @@ var ActionsApi = /** @class */ (function (_super) {
1113
1274
  */
1114
1275
  ActionsApi.prototype.getAction = function (requestParameters, options) {
1115
1276
  var _this = this;
1116
- return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1277
+ return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1278
+ };
1279
+ /**
1280
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
1281
+ * @summary Retrieve the actionExecution
1282
+ * @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
1283
+ * @param {*} [options] Override http request option.
1284
+ * @throws {RequiredError}
1285
+ * @memberof ActionsApi
1286
+ */
1287
+ ActionsApi.prototype.getActionExecutionStatus = function (requestParameters, options) {
1288
+ var _this = this;
1289
+ if (requestParameters === void 0) { requestParameters = {}; }
1290
+ return (0, exports.ActionsApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1117
1291
  };
1118
1292
  /**
1119
- * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
1120
- * @summary Retrieve the action version
1121
- * @param {ActionsApiGetActionVersionRequest} requestParameters Request parameters.
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.
1122
1296
  * @param {*} [options] Override http request option.
1123
1297
  * @throws {RequiredError}
1124
1298
  * @memberof ActionsApi
1125
1299
  */
1126
- ActionsApi.prototype.getActionVersion = function (requestParameters, options) {
1300
+ ActionsApi.prototype.getAction_3 = function (requestParameters, options) {
1127
1301
  var _this = this;
1128
- return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1302
+ return (0, exports.ActionsApiFp)(this.configuration).getAction_3(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1129
1303
  };
1130
1304
  /**
1131
- * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1132
- * @summary List action versions
1133
- * @param {ActionsApiListActionVersionsRequest} requestParameters Request parameters.
1305
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
1306
+ * @summary List actionExecutions
1307
+ * @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
1134
1308
  * @param {*} [options] Override http request option.
1135
1309
  * @throws {RequiredError}
1136
1310
  * @memberof ActionsApi
1137
1311
  */
1138
- ActionsApi.prototype.listActionVersions = function (requestParameters, options) {
1312
+ ActionsApi.prototype.listActionExecutions = function (requestParameters, options) {
1139
1313
  var _this = this;
1140
- 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); });
1314
+ if (requestParameters === void 0) { requestParameters = {}; }
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); });
1141
1316
  };
1142
1317
  /**
1143
1318
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
@@ -1153,20 +1328,20 @@ var ActionsApi = /** @class */ (function (_super) {
1153
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); });
1154
1329
  };
1155
1330
  /**
1156
- * 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\"
1157
- * @summary List action versions
1158
- * @param {ActionsApiListAllActionVersionsRequest} requestParameters Request parameters.
1331
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1332
+ * @summary List actions
1333
+ * @param {ActionsApiListActions0Request} requestParameters Request parameters.
1159
1334
  * @param {*} [options] Override http request option.
1160
1335
  * @throws {RequiredError}
1161
1336
  * @memberof ActionsApi
1162
1337
  */
1163
- ActionsApi.prototype.listAllActionVersions = function (requestParameters, options) {
1338
+ ActionsApi.prototype.listActions_4 = function (requestParameters, options) {
1164
1339
  var _this = this;
1165
1340
  if (requestParameters === void 0) { requestParameters = {}; }
1166
- 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); });
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); });
1167
1342
  };
1168
1343
  /**
1169
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1344
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1170
1345
  * @summary Update the action
1171
1346
  * @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
1172
1347
  * @param {*} [options] Override http request option.
@@ -1178,16 +1353,16 @@ var ActionsApi = /** @class */ (function (_super) {
1178
1353
  return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1179
1354
  };
1180
1355
  /**
1181
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1356
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1182
1357
  * @summary Update the action
1183
1358
  * @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
1184
1359
  * @param {*} [options] Override http request option.
1185
1360
  * @throws {RequiredError}
1186
1361
  * @memberof ActionsApi
1187
1362
  */
1188
- ActionsApi.prototype.updateAction_1 = function (requestParameters, options) {
1363
+ ActionsApi.prototype.updateAction_5 = function (requestParameters, options) {
1189
1364
  var _this = this;
1190
- return (0, exports.ActionsApiFp)(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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); });
1191
1366
  };
1192
1367
  return ActionsApi;
1193
1368
  }(base_1.BaseAPI));