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

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 +6 -0
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +219 -397
  4. package/api/executions-api.ts +119 -12
  5. package/dist/api/actions-api.d.ts +178 -270
  6. package/dist/api/actions-api.js +153 -328
  7. package/dist/api/executions-api.d.ts +69 -12
  8. package/dist/api/executions-api.js +102 -9
  9. package/dist/models/action-class.d.ts +9 -20
  10. package/dist/models/action-execution-class.d.ts +36 -0
  11. package/dist/models/action-ref-class.d.ts +36 -0
  12. package/dist/models/action-ref-class.js +15 -0
  13. package/dist/models/action-version-class.d.ts +127 -0
  14. package/dist/models/action-version-class.js +21 -0
  15. package/dist/models/create-action-request-dto.d.ts +47 -5
  16. package/dist/models/create-action-request-dto.js +6 -0
  17. package/dist/models/get-action-version-response-class.d.ts +25 -0
  18. package/dist/models/get-action-version-response-class.js +15 -0
  19. package/dist/models/index.d.ts +6 -0
  20. package/dist/models/index.js +6 -0
  21. package/dist/models/list-action-versions-response-class.d.ts +43 -0
  22. package/dist/models/list-action-versions-response-class.js +15 -0
  23. package/dist/models/trigger-action-request-dto.d.ts +62 -0
  24. package/dist/models/trigger-action-request-dto.js +15 -0
  25. package/dist/models/trigger-action-response-class.d.ts +25 -0
  26. package/dist/models/trigger-action-response-class.js +15 -0
  27. package/dist/models/update-action-request-dto.d.ts +41 -5
  28. package/dist/models/update-action-request-dto.js +6 -0
  29. package/models/action-class.ts +9 -20
  30. package/models/action-execution-class.ts +36 -0
  31. package/models/action-ref-class.ts +42 -0
  32. package/models/action-version-class.ts +136 -0
  33. package/models/create-action-request-dto.ts +50 -5
  34. package/models/get-action-version-response-class.ts +31 -0
  35. package/models/index.ts +6 -0
  36. package/models/list-action-versions-response-class.ts +49 -0
  37. package/models/trigger-action-request-dto.ts +66 -0
  38. package/models/trigger-action-response-class.ts +31 -0
  39. package/models/update-action-request-dto.ts +44 -5
  40. package/package.json +1 -1
@@ -25,11 +25,11 @@ import { CreateActionRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateActionResponseClass } from '../models';
27
27
  // @ts-ignore
28
- import { GetActionExecutionStatusResponseClass } from '../models';
29
- // @ts-ignore
30
28
  import { GetActionResponseClass } from '../models';
31
29
  // @ts-ignore
32
- import { ListActionExecutionsResponseClass } from '../models';
30
+ import { GetActionVersionResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListActionVersionsResponseClass } from '../models';
33
33
  // @ts-ignore
34
34
  import { ListActionsResponseClass } from '../models';
35
35
  // @ts-ignore
@@ -77,53 +77,6 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
77
77
 
78
78
 
79
79
 
80
- localVarHeaderParameter['Content-Type'] = 'application/json';
81
-
82
- setSearchParams(localVarUrlObj, localVarQueryParameter);
83
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
- localVarRequestOptions.data = serializeDataIfNeeded(createActionRequestDto, localVarRequestOptions, configuration)
86
-
87
- return {
88
- url: toPathString(localVarUrlObj),
89
- options: localVarRequestOptions,
90
- };
91
- },
92
- /**
93
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
94
- * @summary Create the action
95
- * @param {CreateActionRequestDto} createActionRequestDto
96
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
- * @param {*} [options] Override http request option.
98
- * @throws {RequiredError}
99
- */
100
- createAction_1: async (createActionRequestDto: CreateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
- // verify required parameter 'createActionRequestDto' is not null or undefined
102
- assertParamExists('createAction_1', 'createActionRequestDto', createActionRequestDto)
103
- const localVarPath = `/actionservice/v1/actions`;
104
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
105
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
106
- let baseOptions;
107
- let baseAccessToken;
108
- if (configuration) {
109
- baseOptions = configuration.baseOptions;
110
- baseAccessToken = configuration.accessToken;
111
- }
112
-
113
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
114
- const localVarHeaderParameter = {} as any;
115
- const localVarQueryParameter = {} as any;
116
-
117
- // authentication bearer required
118
- // http bearer authentication required
119
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
120
-
121
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
123
- }
124
-
125
-
126
-
127
80
  localVarHeaderParameter['Content-Type'] = 'application/json';
128
81
 
129
82
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -182,18 +135,18 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
182
135
  };
183
136
  },
184
137
  /**
185
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
186
- * @summary Delete the action
187
- * @param {string} code Action code
138
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
139
+ * @summary Delete the action version
140
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
188
141
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
142
  * @param {*} [options] Override http request option.
190
143
  * @throws {RequiredError}
191
144
  */
192
- deleteAction_2: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
193
- // verify required parameter 'code' is not null or undefined
194
- assertParamExists('deleteAction_2', 'code', code)
195
- const localVarPath = `/actionservice/v1/actions/{code}`
196
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
145
+ deleteActionVersion: async (versionCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ // verify required parameter 'versionCode' is not null or undefined
147
+ assertParamExists('deleteActionVersion', 'versionCode', versionCode)
148
+ const localVarPath = `/actionservice/v1/actions/versions/{versionCode}`
149
+ .replace(`{${"versionCode"}}`, encodeURIComponent(String(versionCode)));
197
150
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
151
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
199
152
  let baseOptions;
@@ -231,10 +184,11 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
231
184
  * @summary Retrieve the action
232
185
  * @param {string} code Action code
233
186
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
234
188
  * @param {*} [options] Override http request option.
235
189
  * @throws {RequiredError}
236
190
  */
237
- getAction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
191
+ getAction: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
238
192
  // verify required parameter 'code' is not null or undefined
239
193
  assertParamExists('getAction', 'code', code)
240
194
  const localVarPath = `/actionservice/v1/actions/{code}`
@@ -256,6 +210,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
256
210
  // http bearer authentication required
257
211
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
258
212
 
213
+ if (expand !== undefined) {
214
+ localVarQueryParameter['expand'] = expand;
215
+ }
216
+
259
217
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
260
218
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
261
219
  }
@@ -272,16 +230,19 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
272
230
  };
273
231
  },
274
232
  /**
275
- * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
276
- * @summary Retrieve the actionExecution
233
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
234
+ * @summary Retrieve the action version
235
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
277
236
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
278
- * @param {string} [executionCode] Action execution code
279
- * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
237
+ * @param {string} [expand]
280
238
  * @param {*} [options] Override http request option.
281
239
  * @throws {RequiredError}
282
240
  */
283
- getActionExecutionStatus: async (authorization?: string, executionCode?: string, correlationId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
284
- const localVarPath = `/actionservice/v1/actions/executions/status`;
241
+ getActionVersion: async (versionCode: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
242
+ // verify required parameter 'versionCode' is not null or undefined
243
+ assertParamExists('getActionVersion', 'versionCode', versionCode)
244
+ const localVarPath = `/actionservice/v1/actions/versions/{versionCode}`
245
+ .replace(`{${"versionCode"}}`, encodeURIComponent(String(versionCode)));
285
246
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
286
247
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
287
248
  let baseOptions;
@@ -299,12 +260,8 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
299
260
  // http bearer authentication required
300
261
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
301
262
 
302
- if (executionCode !== undefined) {
303
- localVarQueryParameter['executionCode'] = executionCode;
304
- }
305
-
306
- if (correlationId !== undefined) {
307
- localVarQueryParameter['correlationId'] = correlationId;
263
+ if (expand !== undefined) {
264
+ localVarQueryParameter['expand'] = expand;
308
265
  }
309
266
 
310
267
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
@@ -323,66 +280,25 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
323
280
  };
324
281
  },
325
282
  /**
326
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
327
- * @summary Retrieve the action
283
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
284
+ * @summary List action versions
328
285
  * @param {string} code Action code
329
286
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
330
- * @param {*} [options] Override http request option.
331
- * @throws {RequiredError}
332
- */
333
- getAction_3: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
334
- // verify required parameter 'code' is not null or undefined
335
- assertParamExists('getAction_3', 'code', code)
336
- const localVarPath = `/actionservice/v1/actions/{code}`
337
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
338
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
339
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
340
- let baseOptions;
341
- let baseAccessToken;
342
- if (configuration) {
343
- baseOptions = configuration.baseOptions;
344
- baseAccessToken = configuration.accessToken;
345
- }
346
-
347
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
348
- const localVarHeaderParameter = {} as any;
349
- const localVarQueryParameter = {} as any;
350
-
351
- // authentication bearer required
352
- // http bearer authentication required
353
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
354
-
355
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
356
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
357
- }
358
-
359
-
360
-
361
- setSearchParams(localVarUrlObj, localVarQueryParameter);
362
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
363
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
364
-
365
- return {
366
- url: toPathString(localVarUrlObj),
367
- options: localVarRequestOptions,
368
- };
369
- },
370
- /**
371
- * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
372
- * @summary List actionExecutions
373
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
374
287
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
375
288
  * @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.
376
- * @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;
289
+ * @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;
377
290
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
378
- * @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;
379
- * @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;
380
- * @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;
291
+ * @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;
292
+ * @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;
293
+ * @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;
381
294
  * @param {*} [options] Override http request option.
382
295
  * @throws {RequiredError}
383
296
  */
384
- listActionExecutions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
385
- const localVarPath = `/actionservice/v1/actions/executions`;
297
+ listActionVersions: async (code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
298
+ // verify required parameter 'code' is not null or undefined
299
+ assertParamExists('listActionVersions', 'code', code)
300
+ const localVarPath = `/actionservice/v1/actions/{code}/versions`
301
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
386
302
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
387
303
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
388
304
  let baseOptions;
@@ -449,11 +365,11 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
449
365
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
450
366
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
451
367
  * @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.
452
- * @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;
368
+ * @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;
453
369
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
454
- * @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;
455
- * @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;
456
- * @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;
370
+ * @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;
371
+ * @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;
372
+ * @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;
457
373
  * @param {*} [options] Override http request option.
458
374
  * @throws {RequiredError}
459
375
  */
@@ -520,21 +436,21 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
520
436
  };
521
437
  },
522
438
  /**
523
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
524
- * @summary List actions
439
+ * 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\"
440
+ * @summary List action versions
525
441
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
526
442
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
527
443
  * @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.
528
- * @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;
444
+ * @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;
529
445
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
530
- * @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;
531
- * @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;
532
- * @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;
446
+ * @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;
447
+ * @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;
448
+ * @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;
533
449
  * @param {*} [options] Override http request option.
534
450
  * @throws {RequiredError}
535
451
  */
536
- listActions_4: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
537
- const localVarPath = `/actionservice/v1/actions`;
452
+ listAllActionVersions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
453
+ const localVarPath = `/actionservice/v1/actions/versions`;
538
454
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
539
455
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
540
456
  let baseOptions;
@@ -596,7 +512,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
596
512
  };
597
513
  },
598
514
  /**
599
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
515
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
600
516
  * @summary Update the action
601
517
  * @param {string} code Action code
602
518
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -647,7 +563,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
647
563
  };
648
564
  },
649
565
  /**
650
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
566
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
651
567
  * @summary Update the action
652
568
  * @param {string} code Action code
653
569
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -655,11 +571,11 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
655
571
  * @param {*} [options] Override http request option.
656
572
  * @throws {RequiredError}
657
573
  */
658
- updateAction_5: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
574
+ updateAction_1: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
659
575
  // verify required parameter 'code' is not null or undefined
660
- assertParamExists('updateAction_5', 'code', code)
576
+ assertParamExists('updateAction_1', 'code', code)
661
577
  // verify required parameter 'updateActionRequestDto' is not null or undefined
662
- assertParamExists('updateAction_5', 'updateActionRequestDto', updateActionRequestDto)
578
+ assertParamExists('updateAction_1', 'updateActionRequestDto', updateActionRequestDto)
663
579
  const localVarPath = `/actionservice/v1/actions/{code}`
664
580
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
665
581
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -719,18 +635,6 @@ export const ActionsApiFp = function(configuration?: Configuration) {
719
635
  const localVarAxiosArgs = await localVarAxiosParamCreator.createAction(createActionRequestDto, authorization, options);
720
636
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
721
637
  },
722
- /**
723
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
724
- * @summary Create the action
725
- * @param {CreateActionRequestDto} createActionRequestDto
726
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
727
- * @param {*} [options] Override http request option.
728
- * @throws {RequiredError}
729
- */
730
- async createAction_1(createActionRequestDto: CreateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateActionResponseClass>> {
731
- const localVarAxiosArgs = await localVarAxiosParamCreator.createAction_1(createActionRequestDto, authorization, options);
732
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
733
- },
734
638
  /**
735
639
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
736
640
  * @summary Delete the action
@@ -744,15 +648,15 @@ export const ActionsApiFp = function(configuration?: Configuration) {
744
648
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
745
649
  },
746
650
  /**
747
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
748
- * @summary Delete the action
749
- * @param {string} code Action code
651
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
652
+ * @summary Delete the action version
653
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
750
654
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
751
655
  * @param {*} [options] Override http request option.
752
656
  * @throws {RequiredError}
753
657
  */
754
- async deleteAction_2(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
755
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAction_2(code, authorization, options);
658
+ async deleteActionVersion(versionCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
659
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options);
756
660
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
757
661
  },
758
662
  /**
@@ -760,54 +664,44 @@ export const ActionsApiFp = function(configuration?: Configuration) {
760
664
  * @summary Retrieve the action
761
665
  * @param {string} code Action code
762
666
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
667
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
763
668
  * @param {*} [options] Override http request option.
764
669
  * @throws {RequiredError}
765
670
  */
766
- async getAction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>> {
767
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, authorization, options);
671
+ async getAction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>> {
672
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, authorization, expand, options);
768
673
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
769
674
  },
770
675
  /**
771
- * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
772
- * @summary Retrieve the actionExecution
676
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
677
+ * @summary Retrieve the action version
678
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
773
679
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
774
- * @param {string} [executionCode] Action execution code
775
- * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
680
+ * @param {string} [expand]
776
681
  * @param {*} [options] Override http request option.
777
682
  * @throws {RequiredError}
778
683
  */
779
- async getActionExecutionStatus(authorization?: string, executionCode?: string, correlationId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionExecutionStatusResponseClass>> {
780
- const localVarAxiosArgs = await localVarAxiosParamCreator.getActionExecutionStatus(authorization, executionCode, correlationId, options);
684
+ async getActionVersion(versionCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionVersionResponseClass>> {
685
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options);
781
686
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
782
687
  },
783
688
  /**
784
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
785
- * @summary Retrieve the action
689
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
690
+ * @summary List action versions
786
691
  * @param {string} code Action code
787
692
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
788
- * @param {*} [options] Override http request option.
789
- * @throws {RequiredError}
790
- */
791
- async getAction_3(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>> {
792
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAction_3(code, authorization, options);
793
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
794
- },
795
- /**
796
- * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
797
- * @summary List actionExecutions
798
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
799
693
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
800
694
  * @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.
801
- * @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;
695
+ * @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;
802
696
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
803
- * @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;
804
- * @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;
805
- * @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;
697
+ * @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;
698
+ * @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;
699
+ * @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;
806
700
  * @param {*} [options] Override http request option.
807
701
  * @throws {RequiredError}
808
702
  */
809
- async listActionExecutions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionExecutionsResponseClass>> {
810
- const localVarAxiosArgs = await localVarAxiosParamCreator.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
703
+ async listActionVersions(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionVersionsResponseClass>> {
704
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
811
705
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
812
706
  },
813
707
  /**
@@ -816,11 +710,11 @@ export const ActionsApiFp = function(configuration?: Configuration) {
816
710
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
817
711
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
818
712
  * @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.
819
- * @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;
713
+ * @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;
820
714
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
821
- * @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;
822
- * @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;
823
- * @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;
715
+ * @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;
716
+ * @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;
717
+ * @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;
824
718
  * @param {*} [options] Override http request option.
825
719
  * @throws {RequiredError}
826
720
  */
@@ -829,25 +723,25 @@ export const ActionsApiFp = function(configuration?: Configuration) {
829
723
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
830
724
  },
831
725
  /**
832
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
833
- * @summary List actions
726
+ * 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\"
727
+ * @summary List action versions
834
728
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
835
729
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
836
730
  * @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.
837
- * @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;
731
+ * @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;
838
732
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
839
- * @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;
840
- * @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;
841
- * @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;
733
+ * @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;
734
+ * @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;
735
+ * @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;
842
736
  * @param {*} [options] Override http request option.
843
737
  * @throws {RequiredError}
844
738
  */
845
- async listActions_4(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionsResponseClass>> {
846
- const localVarAxiosArgs = await localVarAxiosParamCreator.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
739
+ async listAllActionVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionVersionsResponseClass>> {
740
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
847
741
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
848
742
  },
849
743
  /**
850
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
744
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
851
745
  * @summary Update the action
852
746
  * @param {string} code Action code
853
747
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -860,7 +754,7 @@ export const ActionsApiFp = function(configuration?: Configuration) {
860
754
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
861
755
  },
862
756
  /**
863
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
757
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
864
758
  * @summary Update the action
865
759
  * @param {string} code Action code
866
760
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -868,8 +762,8 @@ export const ActionsApiFp = function(configuration?: Configuration) {
868
762
  * @param {*} [options] Override http request option.
869
763
  * @throws {RequiredError}
870
764
  */
871
- async updateAction_5(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
872
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction_5(code, updateActionRequestDto, authorization, options);
765
+ async updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
766
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options);
873
767
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
874
768
  },
875
769
  }
@@ -893,17 +787,6 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
893
787
  createAction(createActionRequestDto: CreateActionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateActionResponseClass> {
894
788
  return localVarFp.createAction(createActionRequestDto, authorization, options).then((request) => request(axios, basePath));
895
789
  },
896
- /**
897
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
898
- * @summary Create the action
899
- * @param {CreateActionRequestDto} createActionRequestDto
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
- createAction_1(createActionRequestDto: CreateActionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateActionResponseClass> {
905
- return localVarFp.createAction_1(createActionRequestDto, authorization, options).then((request) => request(axios, basePath));
906
- },
907
790
  /**
908
791
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
909
792
  * @summary Delete the action
@@ -916,66 +799,57 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
916
799
  return localVarFp.deleteAction(code, authorization, options).then((request) => request(axios, basePath));
917
800
  },
918
801
  /**
919
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
920
- * @summary Delete the action
921
- * @param {string} code Action code
802
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
803
+ * @summary Delete the action version
804
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
922
805
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
923
806
  * @param {*} [options] Override http request option.
924
807
  * @throws {RequiredError}
925
808
  */
926
- deleteAction_2(code: string, authorization?: string, options?: any): AxiosPromise<void> {
927
- return localVarFp.deleteAction_2(code, authorization, options).then((request) => request(axios, basePath));
809
+ deleteActionVersion(versionCode: string, authorization?: string, options?: any): AxiosPromise<void> {
810
+ return localVarFp.deleteActionVersion(versionCode, authorization, options).then((request) => request(axios, basePath));
928
811
  },
929
812
  /**
930
813
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
931
814
  * @summary Retrieve the action
932
815
  * @param {string} code Action code
933
816
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
817
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
934
818
  * @param {*} [options] Override http request option.
935
819
  * @throws {RequiredError}
936
820
  */
937
- getAction(code: string, authorization?: string, options?: any): AxiosPromise<GetActionResponseClass> {
938
- return localVarFp.getAction(code, authorization, options).then((request) => request(axios, basePath));
821
+ getAction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetActionResponseClass> {
822
+ return localVarFp.getAction(code, authorization, expand, options).then((request) => request(axios, basePath));
939
823
  },
940
824
  /**
941
- * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
942
- * @summary Retrieve the actionExecution
825
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
826
+ * @summary Retrieve the action version
827
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
943
828
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
944
- * @param {string} [executionCode] Action execution code
945
- * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
829
+ * @param {string} [expand]
946
830
  * @param {*} [options] Override http request option.
947
831
  * @throws {RequiredError}
948
832
  */
949
- getActionExecutionStatus(authorization?: string, executionCode?: string, correlationId?: string, options?: any): AxiosPromise<GetActionExecutionStatusResponseClass> {
950
- return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then((request) => request(axios, basePath));
833
+ getActionVersion(versionCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetActionVersionResponseClass> {
834
+ return localVarFp.getActionVersion(versionCode, authorization, expand, options).then((request) => request(axios, basePath));
951
835
  },
952
836
  /**
953
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
954
- * @summary Retrieve the action
837
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
838
+ * @summary List action versions
955
839
  * @param {string} code Action code
956
840
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
957
- * @param {*} [options] Override http request option.
958
- * @throws {RequiredError}
959
- */
960
- getAction_3(code: string, authorization?: string, options?: any): AxiosPromise<GetActionResponseClass> {
961
- return localVarFp.getAction_3(code, authorization, options).then((request) => request(axios, basePath));
962
- },
963
- /**
964
- * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
965
- * @summary List actionExecutions
966
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
967
841
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
968
842
  * @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.
969
- * @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;
843
+ * @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;
970
844
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
971
- * @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;
972
- * @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;
973
- * @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;
845
+ * @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;
846
+ * @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;
847
+ * @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;
974
848
  * @param {*} [options] Override http request option.
975
849
  * @throws {RequiredError}
976
850
  */
977
- listActionExecutions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionExecutionsResponseClass> {
978
- return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
851
+ listActionVersions(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionVersionsResponseClass> {
852
+ return localVarFp.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
979
853
  },
980
854
  /**
981
855
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
@@ -983,11 +857,11 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
983
857
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
984
858
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
985
859
  * @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.
986
- * @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;
860
+ * @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;
987
861
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
988
- * @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;
989
- * @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;
990
- * @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;
862
+ * @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;
863
+ * @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;
864
+ * @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;
991
865
  * @param {*} [options] Override http request option.
992
866
  * @throws {RequiredError}
993
867
  */
@@ -995,24 +869,24 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
995
869
  return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
996
870
  },
997
871
  /**
998
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
999
- * @summary List actions
872
+ * 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\"
873
+ * @summary List action versions
1000
874
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1001
875
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1002
876
  * @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.
1003
- * @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;
877
+ * @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;
1004
878
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1005
- * @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;
1006
- * @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;
1007
- * @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;
879
+ * @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;
880
+ * @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;
881
+ * @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;
1008
882
  * @param {*} [options] Override http request option.
1009
883
  * @throws {RequiredError}
1010
884
  */
1011
- listActions_4(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionsResponseClass> {
1012
- return localVarFp.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
885
+ listAllActionVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionVersionsResponseClass> {
886
+ return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1013
887
  },
1014
888
  /**
1015
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
889
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1016
890
  * @summary Update the action
1017
891
  * @param {string} code Action code
1018
892
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -1024,7 +898,7 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
1024
898
  return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
1025
899
  },
1026
900
  /**
1027
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
901
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1028
902
  * @summary Update the action
1029
903
  * @param {string} code Action code
1030
904
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -1032,8 +906,8 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
1032
906
  * @param {*} [options] Override http request option.
1033
907
  * @throws {RequiredError}
1034
908
  */
1035
- updateAction_5(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
1036
- return localVarFp.updateAction_5(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
909
+ updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
910
+ return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
1037
911
  },
1038
912
  };
1039
913
  };
@@ -1059,27 +933,6 @@ export interface ActionsApiCreateActionRequest {
1059
933
  readonly authorization?: string
1060
934
  }
1061
935
 
1062
- /**
1063
- * Request parameters for createAction_1 operation in ActionsApi.
1064
- * @export
1065
- * @interface ActionsApiCreateAction0Request
1066
- */
1067
- export interface ActionsApiCreateAction0Request {
1068
- /**
1069
- *
1070
- * @type {CreateActionRequestDto}
1071
- * @memberof ActionsApiCreateAction0
1072
- */
1073
- readonly createActionRequestDto: CreateActionRequestDto
1074
-
1075
- /**
1076
- * Bearer Token: provided by the login endpoint under the name accessToken.
1077
- * @type {string}
1078
- * @memberof ActionsApiCreateAction0
1079
- */
1080
- readonly authorization?: string
1081
- }
1082
-
1083
936
  /**
1084
937
  * Request parameters for deleteAction operation in ActionsApi.
1085
938
  * @export
@@ -1102,22 +955,22 @@ export interface ActionsApiDeleteActionRequest {
1102
955
  }
1103
956
 
1104
957
  /**
1105
- * Request parameters for deleteAction_2 operation in ActionsApi.
958
+ * Request parameters for deleteActionVersion operation in ActionsApi.
1106
959
  * @export
1107
- * @interface ActionsApiDeleteAction0Request
960
+ * @interface ActionsApiDeleteActionVersionRequest
1108
961
  */
1109
- export interface ActionsApiDeleteAction0Request {
962
+ export interface ActionsApiDeleteActionVersionRequest {
1110
963
  /**
1111
- * Action code
964
+ * Version code (e.g. acv_&lt;nanoid&gt;)
1112
965
  * @type {string}
1113
- * @memberof ActionsApiDeleteAction0
966
+ * @memberof ActionsApiDeleteActionVersion
1114
967
  */
1115
- readonly code: string
968
+ readonly versionCode: string
1116
969
 
1117
970
  /**
1118
971
  * Bearer Token: provided by the login endpoint under the name accessToken.
1119
972
  * @type {string}
1120
- * @memberof ActionsApiDeleteAction0
973
+ * @memberof ActionsApiDeleteActionVersion
1121
974
  */
1122
975
  readonly authorization?: string
1123
976
  }
@@ -1141,116 +994,109 @@ export interface ActionsApiGetActionRequest {
1141
994
  * @memberof ActionsApiGetAction
1142
995
  */
1143
996
  readonly authorization?: string
997
+
998
+ /**
999
+ * Expand to fetch additional information (e.g. inputValidationSchema)
1000
+ * @type {string}
1001
+ * @memberof ActionsApiGetAction
1002
+ */
1003
+ readonly expand?: string
1144
1004
  }
1145
1005
 
1146
1006
  /**
1147
- * Request parameters for getActionExecutionStatus operation in ActionsApi.
1007
+ * Request parameters for getActionVersion operation in ActionsApi.
1148
1008
  * @export
1149
- * @interface ActionsApiGetActionExecutionStatusRequest
1009
+ * @interface ActionsApiGetActionVersionRequest
1150
1010
  */
1151
- export interface ActionsApiGetActionExecutionStatusRequest {
1011
+ export interface ActionsApiGetActionVersionRequest {
1152
1012
  /**
1153
- * Bearer Token: provided by the login endpoint under the name accessToken.
1013
+ * Version code (e.g. acv_&lt;nanoid&gt;)
1154
1014
  * @type {string}
1155
- * @memberof ActionsApiGetActionExecutionStatus
1015
+ * @memberof ActionsApiGetActionVersion
1156
1016
  */
1157
- readonly authorization?: string
1017
+ readonly versionCode: string
1158
1018
 
1159
1019
  /**
1160
- * Action execution code
1020
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1161
1021
  * @type {string}
1162
- * @memberof ActionsApiGetActionExecutionStatus
1022
+ * @memberof ActionsApiGetActionVersion
1163
1023
  */
1164
- readonly executionCode?: string
1024
+ readonly authorization?: string
1165
1025
 
1166
1026
  /**
1167
- * Correlation ID (e.g. webhook execution code that triggered this action execution)
1027
+ *
1168
1028
  * @type {string}
1169
- * @memberof ActionsApiGetActionExecutionStatus
1029
+ * @memberof ActionsApiGetActionVersion
1170
1030
  */
1171
- readonly correlationId?: string
1031
+ readonly expand?: string
1172
1032
  }
1173
1033
 
1174
1034
  /**
1175
- * Request parameters for getAction_3 operation in ActionsApi.
1035
+ * Request parameters for listActionVersions operation in ActionsApi.
1176
1036
  * @export
1177
- * @interface ActionsApiGetAction0Request
1037
+ * @interface ActionsApiListActionVersionsRequest
1178
1038
  */
1179
- export interface ActionsApiGetAction0Request {
1039
+ export interface ActionsApiListActionVersionsRequest {
1180
1040
  /**
1181
1041
  * Action code
1182
1042
  * @type {string}
1183
- * @memberof ActionsApiGetAction0
1043
+ * @memberof ActionsApiListActionVersions
1184
1044
  */
1185
1045
  readonly code: string
1186
1046
 
1187
1047
  /**
1188
1048
  * Bearer Token: provided by the login endpoint under the name accessToken.
1189
1049
  * @type {string}
1190
- * @memberof ActionsApiGetAction0
1191
- */
1192
- readonly authorization?: string
1193
- }
1194
-
1195
- /**
1196
- * Request parameters for listActionExecutions operation in ActionsApi.
1197
- * @export
1198
- * @interface ActionsApiListActionExecutionsRequest
1199
- */
1200
- export interface ActionsApiListActionExecutionsRequest {
1201
- /**
1202
- * Bearer Token: provided by the login endpoint under the name accessToken.
1203
- * @type {string}
1204
- * @memberof ActionsApiListActionExecutions
1050
+ * @memberof ActionsApiListActionVersions
1205
1051
  */
1206
1052
  readonly authorization?: string
1207
1053
 
1208
1054
  /**
1209
1055
  * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1210
1056
  * @type {number}
1211
- * @memberof ActionsApiListActionExecutions
1057
+ * @memberof ActionsApiListActionVersions
1212
1058
  */
1213
1059
  readonly pageSize?: number
1214
1060
 
1215
1061
  /**
1216
1062
  * 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.
1217
1063
  * @type {string}
1218
- * @memberof ActionsApiListActionExecutions
1064
+ * @memberof ActionsApiListActionVersions
1219
1065
  */
1220
1066
  readonly pageToken?: string
1221
1067
 
1222
1068
  /**
1223
- * 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;
1069
+ * 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;
1224
1070
  * @type {string}
1225
- * @memberof ActionsApiListActionExecutions
1071
+ * @memberof ActionsApiListActionVersions
1226
1072
  */
1227
1073
  readonly filter?: string
1228
1074
 
1229
1075
  /**
1230
1076
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1231
1077
  * @type {string}
1232
- * @memberof ActionsApiListActionExecutions
1078
+ * @memberof ActionsApiListActionVersions
1233
1079
  */
1234
1080
  readonly search?: string
1235
1081
 
1236
1082
  /**
1237
- * 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;
1083
+ * 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;
1238
1084
  * @type {string}
1239
- * @memberof ActionsApiListActionExecutions
1085
+ * @memberof ActionsApiListActionVersions
1240
1086
  */
1241
1087
  readonly order?: string
1242
1088
 
1243
1089
  /**
1244
- * 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;
1090
+ * 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;
1245
1091
  * @type {string}
1246
- * @memberof ActionsApiListActionExecutions
1092
+ * @memberof ActionsApiListActionVersions
1247
1093
  */
1248
1094
  readonly expand?: string
1249
1095
 
1250
1096
  /**
1251
- * 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;
1097
+ * 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;
1252
1098
  * @type {string}
1253
- * @memberof ActionsApiListActionExecutions
1099
+ * @memberof ActionsApiListActionVersions
1254
1100
  */
1255
1101
  readonly filters?: string
1256
1102
  }
@@ -1283,7 +1129,7 @@ export interface ActionsApiListActionsRequest {
1283
1129
  readonly pageToken?: string
1284
1130
 
1285
1131
  /**
1286
- * 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;
1132
+ * 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;
1287
1133
  * @type {string}
1288
1134
  * @memberof ActionsApiListActions
1289
1135
  */
@@ -1297,21 +1143,21 @@ export interface ActionsApiListActionsRequest {
1297
1143
  readonly search?: string
1298
1144
 
1299
1145
  /**
1300
- * 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;
1146
+ * 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;
1301
1147
  * @type {string}
1302
1148
  * @memberof ActionsApiListActions
1303
1149
  */
1304
1150
  readonly order?: string
1305
1151
 
1306
1152
  /**
1307
- * 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;
1153
+ * 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;
1308
1154
  * @type {string}
1309
1155
  * @memberof ActionsApiListActions
1310
1156
  */
1311
1157
  readonly expand?: string
1312
1158
 
1313
1159
  /**
1314
- * 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;
1160
+ * 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;
1315
1161
  * @type {string}
1316
1162
  * @memberof ActionsApiListActions
1317
1163
  */
@@ -1319,64 +1165,64 @@ export interface ActionsApiListActionsRequest {
1319
1165
  }
1320
1166
 
1321
1167
  /**
1322
- * Request parameters for listActions_4 operation in ActionsApi.
1168
+ * Request parameters for listAllActionVersions operation in ActionsApi.
1323
1169
  * @export
1324
- * @interface ActionsApiListActions0Request
1170
+ * @interface ActionsApiListAllActionVersionsRequest
1325
1171
  */
1326
- export interface ActionsApiListActions0Request {
1172
+ export interface ActionsApiListAllActionVersionsRequest {
1327
1173
  /**
1328
1174
  * Bearer Token: provided by the login endpoint under the name accessToken.
1329
1175
  * @type {string}
1330
- * @memberof ActionsApiListActions0
1176
+ * @memberof ActionsApiListAllActionVersions
1331
1177
  */
1332
1178
  readonly authorization?: string
1333
1179
 
1334
1180
  /**
1335
1181
  * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1336
1182
  * @type {number}
1337
- * @memberof ActionsApiListActions0
1183
+ * @memberof ActionsApiListAllActionVersions
1338
1184
  */
1339
1185
  readonly pageSize?: number
1340
1186
 
1341
1187
  /**
1342
1188
  * 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.
1343
1189
  * @type {string}
1344
- * @memberof ActionsApiListActions0
1190
+ * @memberof ActionsApiListAllActionVersions
1345
1191
  */
1346
1192
  readonly pageToken?: string
1347
1193
 
1348
1194
  /**
1349
- * 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;
1195
+ * 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;
1350
1196
  * @type {string}
1351
- * @memberof ActionsApiListActions0
1197
+ * @memberof ActionsApiListAllActionVersions
1352
1198
  */
1353
1199
  readonly filter?: string
1354
1200
 
1355
1201
  /**
1356
1202
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1357
1203
  * @type {string}
1358
- * @memberof ActionsApiListActions0
1204
+ * @memberof ActionsApiListAllActionVersions
1359
1205
  */
1360
1206
  readonly search?: string
1361
1207
 
1362
1208
  /**
1363
- * 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;
1209
+ * 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;
1364
1210
  * @type {string}
1365
- * @memberof ActionsApiListActions0
1211
+ * @memberof ActionsApiListAllActionVersions
1366
1212
  */
1367
1213
  readonly order?: string
1368
1214
 
1369
1215
  /**
1370
- * 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;
1216
+ * 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;
1371
1217
  * @type {string}
1372
- * @memberof ActionsApiListActions0
1218
+ * @memberof ActionsApiListAllActionVersions
1373
1219
  */
1374
1220
  readonly expand?: string
1375
1221
 
1376
1222
  /**
1377
- * 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;
1223
+ * 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;
1378
1224
  * @type {string}
1379
- * @memberof ActionsApiListActions0
1225
+ * @memberof ActionsApiListAllActionVersions
1380
1226
  */
1381
1227
  readonly filters?: string
1382
1228
  }
@@ -1410,7 +1256,7 @@ export interface ActionsApiUpdateActionRequest {
1410
1256
  }
1411
1257
 
1412
1258
  /**
1413
- * Request parameters for updateAction_5 operation in ActionsApi.
1259
+ * Request parameters for updateAction_1 operation in ActionsApi.
1414
1260
  * @export
1415
1261
  * @interface ActionsApiUpdateAction0Request
1416
1262
  */
@@ -1456,18 +1302,6 @@ export class ActionsApi extends BaseAPI {
1456
1302
  return ActionsApiFp(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1457
1303
  }
1458
1304
 
1459
- /**
1460
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
1461
- * @summary Create the action
1462
- * @param {ActionsApiCreateAction0Request} requestParameters Request parameters.
1463
- * @param {*} [options] Override http request option.
1464
- * @throws {RequiredError}
1465
- * @memberof ActionsApi
1466
- */
1467
- public createAction_1(requestParameters: ActionsApiCreateAction0Request, options?: AxiosRequestConfig) {
1468
- return ActionsApiFp(this.configuration).createAction_1(requestParameters.createActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1469
- }
1470
-
1471
1305
  /**
1472
1306
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1473
1307
  * @summary Delete the action
@@ -1481,15 +1315,15 @@ export class ActionsApi extends BaseAPI {
1481
1315
  }
1482
1316
 
1483
1317
  /**
1484
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1485
- * @summary Delete the action
1486
- * @param {ActionsApiDeleteAction0Request} requestParameters Request parameters.
1318
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
1319
+ * @summary Delete the action version
1320
+ * @param {ActionsApiDeleteActionVersionRequest} requestParameters Request parameters.
1487
1321
  * @param {*} [options] Override http request option.
1488
1322
  * @throws {RequiredError}
1489
1323
  * @memberof ActionsApi
1490
1324
  */
1491
- public deleteAction_2(requestParameters: ActionsApiDeleteAction0Request, options?: AxiosRequestConfig) {
1492
- return ActionsApiFp(this.configuration).deleteAction_2(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1325
+ public deleteActionVersion(requestParameters: ActionsApiDeleteActionVersionRequest, options?: AxiosRequestConfig) {
1326
+ return ActionsApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1493
1327
  }
1494
1328
 
1495
1329
  /**
@@ -1501,43 +1335,31 @@ export class ActionsApi extends BaseAPI {
1501
1335
  * @memberof ActionsApi
1502
1336
  */
1503
1337
  public getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig) {
1504
- return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1338
+ return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1505
1339
  }
1506
1340
 
1507
1341
  /**
1508
- * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
1509
- * @summary Retrieve the actionExecution
1510
- * @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
1342
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
1343
+ * @summary Retrieve the action version
1344
+ * @param {ActionsApiGetActionVersionRequest} requestParameters Request parameters.
1511
1345
  * @param {*} [options] Override http request option.
1512
1346
  * @throws {RequiredError}
1513
1347
  * @memberof ActionsApi
1514
1348
  */
1515
- public getActionExecutionStatus(requestParameters: ActionsApiGetActionExecutionStatusRequest = {}, options?: AxiosRequestConfig) {
1516
- return ActionsApiFp(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then((request) => request(this.axios, this.basePath));
1349
+ public getActionVersion(requestParameters: ActionsApiGetActionVersionRequest, options?: AxiosRequestConfig) {
1350
+ return ActionsApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1517
1351
  }
1518
1352
 
1519
1353
  /**
1520
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1521
- * @summary Retrieve the action
1522
- * @param {ActionsApiGetAction0Request} requestParameters Request parameters.
1354
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1355
+ * @summary List action versions
1356
+ * @param {ActionsApiListActionVersionsRequest} requestParameters Request parameters.
1523
1357
  * @param {*} [options] Override http request option.
1524
1358
  * @throws {RequiredError}
1525
1359
  * @memberof ActionsApi
1526
1360
  */
1527
- public getAction_3(requestParameters: ActionsApiGetAction0Request, options?: AxiosRequestConfig) {
1528
- return ActionsApiFp(this.configuration).getAction_3(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1529
- }
1530
-
1531
- /**
1532
- * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
1533
- * @summary List actionExecutions
1534
- * @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
1535
- * @param {*} [options] Override http request option.
1536
- * @throws {RequiredError}
1537
- * @memberof ActionsApi
1538
- */
1539
- public listActionExecutions(requestParameters: ActionsApiListActionExecutionsRequest = {}, options?: AxiosRequestConfig) {
1540
- return ActionsApiFp(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1361
+ public listActionVersions(requestParameters: ActionsApiListActionVersionsRequest, options?: AxiosRequestConfig) {
1362
+ return ActionsApiFp(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1541
1363
  }
1542
1364
 
1543
1365
  /**
@@ -1553,19 +1375,19 @@ export class ActionsApi extends BaseAPI {
1553
1375
  }
1554
1376
 
1555
1377
  /**
1556
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1557
- * @summary List actions
1558
- * @param {ActionsApiListActions0Request} requestParameters Request parameters.
1378
+ * 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\"
1379
+ * @summary List action versions
1380
+ * @param {ActionsApiListAllActionVersionsRequest} requestParameters Request parameters.
1559
1381
  * @param {*} [options] Override http request option.
1560
1382
  * @throws {RequiredError}
1561
1383
  * @memberof ActionsApi
1562
1384
  */
1563
- public listActions_4(requestParameters: ActionsApiListActions0Request = {}, options?: AxiosRequestConfig) {
1564
- return ActionsApiFp(this.configuration).listActions_4(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1385
+ public listAllActionVersions(requestParameters: ActionsApiListAllActionVersionsRequest = {}, options?: AxiosRequestConfig) {
1386
+ return ActionsApiFp(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1565
1387
  }
1566
1388
 
1567
1389
  /**
1568
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1390
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1569
1391
  * @summary Update the action
1570
1392
  * @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
1571
1393
  * @param {*} [options] Override http request option.
@@ -1577,14 +1399,14 @@ export class ActionsApi extends BaseAPI {
1577
1399
  }
1578
1400
 
1579
1401
  /**
1580
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1402
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1581
1403
  * @summary Update the action
1582
1404
  * @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
1583
1405
  * @param {*} [options] Override http request option.
1584
1406
  * @throws {RequiredError}
1585
1407
  * @memberof ActionsApi
1586
1408
  */
1587
- public updateAction_5(requestParameters: ActionsApiUpdateAction0Request, options?: AxiosRequestConfig) {
1588
- return ActionsApiFp(this.configuration).updateAction_5(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1409
+ public updateAction_1(requestParameters: ActionsApiUpdateAction0Request, options?: AxiosRequestConfig) {
1410
+ return ActionsApiFp(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1589
1411
  }
1590
1412
  }