@emilgroup/action-sdk 1.1.1-beta.7 → 1.2.1-beta.10

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 (56) hide show
  1. package/.openapi-generator/FILES +8 -1
  2. package/README.md +2 -2
  3. package/api/action-client-api.ts +1709 -0
  4. package/api/actions-api.ts +201 -495
  5. package/api/executions-api.ts +119 -12
  6. package/api/{default-api.ts → health-api.ts} +13 -13
  7. package/api.ts +4 -2
  8. package/base.ts +1 -0
  9. package/dist/api/action-client-api.d.ts +973 -0
  10. package/dist/api/action-client-api.js +1416 -0
  11. package/dist/api/actions-api.d.ts +165 -321
  12. package/dist/api/actions-api.js +136 -410
  13. package/dist/api/executions-api.d.ts +69 -12
  14. package/dist/api/executions-api.js +102 -9
  15. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  16. package/dist/api/{default-api.js → health-api.js} +22 -22
  17. package/dist/api.d.ts +2 -1
  18. package/dist/api.js +2 -1
  19. package/dist/base.d.ts +2 -1
  20. package/dist/base.js +1 -0
  21. package/dist/models/action-class.d.ts +9 -20
  22. package/dist/models/action-execution-class.d.ts +36 -0
  23. package/dist/models/action-ref-class.d.ts +36 -0
  24. package/dist/models/action-ref-class.js +15 -0
  25. package/dist/models/action-version-class.d.ts +127 -0
  26. package/dist/models/action-version-class.js +21 -0
  27. package/dist/models/create-action-request-dto.d.ts +47 -5
  28. package/dist/models/create-action-request-dto.js +6 -0
  29. package/dist/models/get-action-version-response-class.d.ts +25 -0
  30. package/dist/models/get-action-version-response-class.js +15 -0
  31. package/dist/models/index.d.ts +6 -0
  32. package/dist/models/index.js +6 -0
  33. package/dist/models/list-action-executions-response-class.d.ts +10 -10
  34. package/dist/models/list-action-versions-response-class.d.ts +43 -0
  35. package/dist/models/list-action-versions-response-class.js +15 -0
  36. package/dist/models/list-actions-response-class.d.ts +10 -10
  37. package/dist/models/trigger-action-request-dto.d.ts +62 -0
  38. package/dist/models/trigger-action-request-dto.js +15 -0
  39. package/dist/models/trigger-action-response-class.d.ts +25 -0
  40. package/dist/models/trigger-action-response-class.js +15 -0
  41. package/dist/models/update-action-request-dto.d.ts +41 -5
  42. package/dist/models/update-action-request-dto.js +6 -0
  43. package/models/action-class.ts +9 -20
  44. package/models/action-execution-class.ts +36 -0
  45. package/models/action-ref-class.ts +42 -0
  46. package/models/action-version-class.ts +136 -0
  47. package/models/create-action-request-dto.ts +50 -5
  48. package/models/get-action-version-response-class.ts +31 -0
  49. package/models/index.ts +6 -0
  50. package/models/list-action-executions-response-class.ts +10 -10
  51. package/models/list-action-versions-response-class.ts +49 -0
  52. package/models/list-actions-response-class.ts +10 -10
  53. package/models/trigger-action-request-dto.ts +66 -0
  54. package/models/trigger-action-response-class.ts +31 -0
  55. package/models/update-action-request-dto.ts +44 -5
  56. package/package.json +2 -2
@@ -0,0 +1,1709 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL ActionService
5
+ * The EMIL ActionService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateActionRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateActionResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetActionExecutionStatusResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GetActionResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { GetActionVersionResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { ListActionExecutionsResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { ListActionVersionsResponseClass } from '../models';
37
+ // @ts-ignore
38
+ import { ListActionsResponseClass } from '../models';
39
+ // @ts-ignore
40
+ import { TriggerActionRequestDto } from '../models';
41
+ // @ts-ignore
42
+ import { TriggerActionResponseClass } from '../models';
43
+ // @ts-ignore
44
+ import { UpdateActionRequestDto } from '../models';
45
+ // @ts-ignore
46
+ import { UpdateActionResponseClass } from '../models';
47
+ /**
48
+ * ActionClientApi - axios parameter creator
49
+ * @export
50
+ */
51
+ export const ActionClientApiAxiosParamCreator = function (configuration?: Configuration) {
52
+ return {
53
+ /**
54
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
55
+ * @summary Create the action
56
+ * @param {CreateActionRequestDto} createActionRequestDto
57
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ */
61
+ createAction: async (createActionRequestDto: CreateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
62
+ // verify required parameter 'createActionRequestDto' is not null or undefined
63
+ assertParamExists('createAction', 'createActionRequestDto', createActionRequestDto)
64
+ const localVarPath = `/actionservice/v1/actions`;
65
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
66
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
67
+ let baseOptions;
68
+ let baseAccessToken;
69
+ if (configuration) {
70
+ baseOptions = configuration.baseOptions;
71
+ baseAccessToken = configuration.accessToken;
72
+ }
73
+
74
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
75
+ const localVarHeaderParameter = {} as any;
76
+ const localVarQueryParameter = {} as any;
77
+
78
+ // authentication bearer required
79
+ // http bearer authentication required
80
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
81
+
82
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
83
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
84
+ }
85
+
86
+
87
+
88
+ localVarHeaderParameter['Content-Type'] = 'application/json';
89
+
90
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
91
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
92
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
93
+ localVarRequestOptions.data = serializeDataIfNeeded(createActionRequestDto, localVarRequestOptions, configuration)
94
+
95
+ return {
96
+ url: toPathString(localVarUrlObj),
97
+ options: localVarRequestOptions,
98
+ };
99
+ },
100
+ /**
101
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
102
+ * @summary Delete the action
103
+ * @param {string} code Action code
104
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ deleteAction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
109
+ // verify required parameter 'code' is not null or undefined
110
+ assertParamExists('deleteAction', 'code', code)
111
+ const localVarPath = `/actionservice/v1/actions/{code}`
112
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
114
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
115
+ let baseOptions;
116
+ let baseAccessToken;
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ baseAccessToken = configuration.accessToken;
120
+ }
121
+
122
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
123
+ const localVarHeaderParameter = {} as any;
124
+ const localVarQueryParameter = {} as any;
125
+
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
129
+
130
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
131
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
132
+ }
133
+
134
+
135
+
136
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
137
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
139
+
140
+ return {
141
+ url: toPathString(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ };
144
+ },
145
+ /**
146
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
147
+ * @summary Delete the action version
148
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
149
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ deleteActionVersion: async (versionCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
154
+ // verify required parameter 'versionCode' is not null or undefined
155
+ assertParamExists('deleteActionVersion', 'versionCode', versionCode)
156
+ const localVarPath = `/actionservice/v1/actions/versions/{versionCode}`
157
+ .replace(`{${"versionCode"}}`, encodeURIComponent(String(versionCode)));
158
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
159
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
160
+ let baseOptions;
161
+ let baseAccessToken;
162
+ if (configuration) {
163
+ baseOptions = configuration.baseOptions;
164
+ baseAccessToken = configuration.accessToken;
165
+ }
166
+
167
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
168
+ const localVarHeaderParameter = {} as any;
169
+ const localVarQueryParameter = {} as any;
170
+
171
+ // authentication bearer required
172
+ // http bearer authentication required
173
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
174
+
175
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
176
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
177
+ }
178
+
179
+
180
+
181
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
182
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
184
+
185
+ return {
186
+ url: toPathString(localVarUrlObj),
187
+ options: localVarRequestOptions,
188
+ };
189
+ },
190
+ /**
191
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
192
+ * @summary Retrieve the action
193
+ * @param {string} code Action code
194
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
195
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
196
+ * @param {*} [options] Override http request option.
197
+ * @throws {RequiredError}
198
+ */
199
+ getAction: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
200
+ // verify required parameter 'code' is not null or undefined
201
+ assertParamExists('getAction', 'code', code)
202
+ const localVarPath = `/actionservice/v1/actions/{code}`
203
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
204
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
205
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
206
+ let baseOptions;
207
+ let baseAccessToken;
208
+ if (configuration) {
209
+ baseOptions = configuration.baseOptions;
210
+ baseAccessToken = configuration.accessToken;
211
+ }
212
+
213
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
214
+ const localVarHeaderParameter = {} as any;
215
+ const localVarQueryParameter = {} as any;
216
+
217
+ // authentication bearer required
218
+ // http bearer authentication required
219
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
220
+
221
+ if (expand !== undefined) {
222
+ localVarQueryParameter['expand'] = expand;
223
+ }
224
+
225
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
226
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
227
+ }
228
+
229
+
230
+
231
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
232
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
233
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
234
+
235
+ return {
236
+ url: toPathString(localVarUrlObj),
237
+ options: localVarRequestOptions,
238
+ };
239
+ },
240
+ /**
241
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
242
+ * @summary Retrieve the actionExecution
243
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
244
+ * @param {string} [executionCode] Action execution code
245
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ getActionExecutionStatus: async (authorization?: string, executionCode?: string, correlationId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
250
+ const localVarPath = `/actionservice/v1/actions/executions/status`;
251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
252
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
253
+ let baseOptions;
254
+ let baseAccessToken;
255
+ if (configuration) {
256
+ baseOptions = configuration.baseOptions;
257
+ baseAccessToken = configuration.accessToken;
258
+ }
259
+
260
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
261
+ const localVarHeaderParameter = {} as any;
262
+ const localVarQueryParameter = {} as any;
263
+
264
+ // authentication bearer required
265
+ // http bearer authentication required
266
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
267
+
268
+ if (executionCode !== undefined) {
269
+ localVarQueryParameter['executionCode'] = executionCode;
270
+ }
271
+
272
+ if (correlationId !== undefined) {
273
+ localVarQueryParameter['correlationId'] = correlationId;
274
+ }
275
+
276
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
277
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
278
+ }
279
+
280
+
281
+
282
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
284
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
285
+
286
+ return {
287
+ url: toPathString(localVarUrlObj),
288
+ options: localVarRequestOptions,
289
+ };
290
+ },
291
+ /**
292
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
293
+ * @summary Retrieve the action version
294
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
295
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
296
+ * @param {string} [expand]
297
+ * @param {*} [options] Override http request option.
298
+ * @throws {RequiredError}
299
+ */
300
+ getActionVersion: async (versionCode: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
301
+ // verify required parameter 'versionCode' is not null or undefined
302
+ assertParamExists('getActionVersion', 'versionCode', versionCode)
303
+ const localVarPath = `/actionservice/v1/actions/versions/{versionCode}`
304
+ .replace(`{${"versionCode"}}`, encodeURIComponent(String(versionCode)));
305
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
306
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
307
+ let baseOptions;
308
+ let baseAccessToken;
309
+ if (configuration) {
310
+ baseOptions = configuration.baseOptions;
311
+ baseAccessToken = configuration.accessToken;
312
+ }
313
+
314
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
315
+ const localVarHeaderParameter = {} as any;
316
+ const localVarQueryParameter = {} as any;
317
+
318
+ // authentication bearer required
319
+ // http bearer authentication required
320
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
321
+
322
+ if (expand !== undefined) {
323
+ localVarQueryParameter['expand'] = expand;
324
+ }
325
+
326
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
327
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
328
+ }
329
+
330
+
331
+
332
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
333
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
334
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
335
+
336
+ return {
337
+ url: toPathString(localVarUrlObj),
338
+ options: localVarRequestOptions,
339
+ };
340
+ },
341
+ /**
342
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
343
+ * @summary List actionExecutions
344
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
345
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
346
+ * @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.
347
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
348
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
349
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, triggeredAt, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, createdAt, updatedAt&lt;/i&gt;
350
+ * @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;
351
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ listActionExecutions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
356
+ const localVarPath = `/actionservice/v1/actions/executions`;
357
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
358
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
359
+ let baseOptions;
360
+ let baseAccessToken;
361
+ if (configuration) {
362
+ baseOptions = configuration.baseOptions;
363
+ baseAccessToken = configuration.accessToken;
364
+ }
365
+
366
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
367
+ const localVarHeaderParameter = {} as any;
368
+ const localVarQueryParameter = {} as any;
369
+
370
+ // authentication bearer required
371
+ // http bearer authentication required
372
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
373
+
374
+ if (pageSize !== undefined) {
375
+ localVarQueryParameter['pageSize'] = pageSize;
376
+ }
377
+
378
+ if (pageToken !== undefined) {
379
+ localVarQueryParameter['pageToken'] = pageToken;
380
+ }
381
+
382
+ if (filter !== undefined) {
383
+ localVarQueryParameter['filter'] = filter;
384
+ }
385
+
386
+ if (search !== undefined) {
387
+ localVarQueryParameter['search'] = search;
388
+ }
389
+
390
+ if (order !== undefined) {
391
+ localVarQueryParameter['order'] = order;
392
+ }
393
+
394
+ if (expand !== undefined) {
395
+ localVarQueryParameter['expand'] = expand;
396
+ }
397
+
398
+ if (filters !== undefined) {
399
+ localVarQueryParameter['filters'] = filters;
400
+ }
401
+
402
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
403
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
404
+ }
405
+
406
+
407
+
408
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
409
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
410
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
411
+
412
+ return {
413
+ url: toPathString(localVarUrlObj),
414
+ options: localVarRequestOptions,
415
+ };
416
+ },
417
+ /**
418
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
419
+ * @summary List action versions
420
+ * @param {string} code Action code
421
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
422
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
423
+ * @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.
424
+ * @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;
425
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
426
+ * @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;
427
+ * @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;
428
+ * @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;
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ listActionVersions: async (code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
433
+ // verify required parameter 'code' is not null or undefined
434
+ assertParamExists('listActionVersions', 'code', code)
435
+ const localVarPath = `/actionservice/v1/actions/{code}/versions`
436
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
437
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
438
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
439
+ let baseOptions;
440
+ let baseAccessToken;
441
+ if (configuration) {
442
+ baseOptions = configuration.baseOptions;
443
+ baseAccessToken = configuration.accessToken;
444
+ }
445
+
446
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
447
+ const localVarHeaderParameter = {} as any;
448
+ const localVarQueryParameter = {} as any;
449
+
450
+ // authentication bearer required
451
+ // http bearer authentication required
452
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
453
+
454
+ if (pageSize !== undefined) {
455
+ localVarQueryParameter['pageSize'] = pageSize;
456
+ }
457
+
458
+ if (pageToken !== undefined) {
459
+ localVarQueryParameter['pageToken'] = pageToken;
460
+ }
461
+
462
+ if (filter !== undefined) {
463
+ localVarQueryParameter['filter'] = filter;
464
+ }
465
+
466
+ if (search !== undefined) {
467
+ localVarQueryParameter['search'] = search;
468
+ }
469
+
470
+ if (order !== undefined) {
471
+ localVarQueryParameter['order'] = order;
472
+ }
473
+
474
+ if (expand !== undefined) {
475
+ localVarQueryParameter['expand'] = expand;
476
+ }
477
+
478
+ if (filters !== undefined) {
479
+ localVarQueryParameter['filters'] = filters;
480
+ }
481
+
482
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
483
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
484
+ }
485
+
486
+
487
+
488
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
489
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
490
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
491
+
492
+ return {
493
+ url: toPathString(localVarUrlObj),
494
+ options: localVarRequestOptions,
495
+ };
496
+ },
497
+ /**
498
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
499
+ * @summary List actions
500
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
501
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
502
+ * @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.
503
+ * @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;
504
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
505
+ * @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;
506
+ * @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;
507
+ * @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;
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ listActions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
512
+ const localVarPath = `/actionservice/v1/actions`;
513
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
514
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
515
+ let baseOptions;
516
+ let baseAccessToken;
517
+ if (configuration) {
518
+ baseOptions = configuration.baseOptions;
519
+ baseAccessToken = configuration.accessToken;
520
+ }
521
+
522
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
523
+ const localVarHeaderParameter = {} as any;
524
+ const localVarQueryParameter = {} as any;
525
+
526
+ // authentication bearer required
527
+ // http bearer authentication required
528
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
529
+
530
+ if (pageSize !== undefined) {
531
+ localVarQueryParameter['pageSize'] = pageSize;
532
+ }
533
+
534
+ if (pageToken !== undefined) {
535
+ localVarQueryParameter['pageToken'] = pageToken;
536
+ }
537
+
538
+ if (filter !== undefined) {
539
+ localVarQueryParameter['filter'] = filter;
540
+ }
541
+
542
+ if (search !== undefined) {
543
+ localVarQueryParameter['search'] = search;
544
+ }
545
+
546
+ if (order !== undefined) {
547
+ localVarQueryParameter['order'] = order;
548
+ }
549
+
550
+ if (expand !== undefined) {
551
+ localVarQueryParameter['expand'] = expand;
552
+ }
553
+
554
+ if (filters !== undefined) {
555
+ localVarQueryParameter['filters'] = filters;
556
+ }
557
+
558
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
559
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
560
+ }
561
+
562
+
563
+
564
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
565
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
566
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
567
+
568
+ return {
569
+ url: toPathString(localVarUrlObj),
570
+ options: localVarRequestOptions,
571
+ };
572
+ },
573
+ /**
574
+ * 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\"
575
+ * @summary List action versions
576
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
577
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
578
+ * @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.
579
+ * @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;
580
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
581
+ * @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;
582
+ * @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;
583
+ * @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;
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ */
587
+ listAllActionVersions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
588
+ const localVarPath = `/actionservice/v1/actions/versions`;
589
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
590
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
591
+ let baseOptions;
592
+ let baseAccessToken;
593
+ if (configuration) {
594
+ baseOptions = configuration.baseOptions;
595
+ baseAccessToken = configuration.accessToken;
596
+ }
597
+
598
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
599
+ const localVarHeaderParameter = {} as any;
600
+ const localVarQueryParameter = {} as any;
601
+
602
+ // authentication bearer required
603
+ // http bearer authentication required
604
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
605
+
606
+ if (pageSize !== undefined) {
607
+ localVarQueryParameter['pageSize'] = pageSize;
608
+ }
609
+
610
+ if (pageToken !== undefined) {
611
+ localVarQueryParameter['pageToken'] = pageToken;
612
+ }
613
+
614
+ if (filter !== undefined) {
615
+ localVarQueryParameter['filter'] = filter;
616
+ }
617
+
618
+ if (search !== undefined) {
619
+ localVarQueryParameter['search'] = search;
620
+ }
621
+
622
+ if (order !== undefined) {
623
+ localVarQueryParameter['order'] = order;
624
+ }
625
+
626
+ if (expand !== undefined) {
627
+ localVarQueryParameter['expand'] = expand;
628
+ }
629
+
630
+ if (filters !== undefined) {
631
+ localVarQueryParameter['filters'] = filters;
632
+ }
633
+
634
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
635
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
636
+ }
637
+
638
+
639
+
640
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
641
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
642
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
643
+
644
+ return {
645
+ url: toPathString(localVarUrlObj),
646
+ options: localVarRequestOptions,
647
+ };
648
+ },
649
+ /**
650
+ * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
651
+ * @summary Create the actionExecution
652
+ * @param {TriggerActionRequestDto} triggerActionRequestDto
653
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ */
657
+ triggerAction: async (triggerActionRequestDto: TriggerActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
658
+ // verify required parameter 'triggerActionRequestDto' is not null or undefined
659
+ assertParamExists('triggerAction', 'triggerActionRequestDto', triggerActionRequestDto)
660
+ const localVarPath = `/actionservice/v1/actions/trigger`;
661
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
662
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
663
+ let baseOptions;
664
+ let baseAccessToken;
665
+ if (configuration) {
666
+ baseOptions = configuration.baseOptions;
667
+ baseAccessToken = configuration.accessToken;
668
+ }
669
+
670
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
671
+ const localVarHeaderParameter = {} as any;
672
+ const localVarQueryParameter = {} as any;
673
+
674
+ // authentication bearer required
675
+ // http bearer authentication required
676
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
677
+
678
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
679
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
680
+ }
681
+
682
+
683
+
684
+ localVarHeaderParameter['Content-Type'] = 'application/json';
685
+
686
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
687
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
688
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
689
+ localVarRequestOptions.data = serializeDataIfNeeded(triggerActionRequestDto, localVarRequestOptions, configuration)
690
+
691
+ return {
692
+ url: toPathString(localVarUrlObj),
693
+ options: localVarRequestOptions,
694
+ };
695
+ },
696
+ /**
697
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
698
+ * @summary Update the action
699
+ * @param {string} code Action code
700
+ * @param {UpdateActionRequestDto} updateActionRequestDto
701
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
702
+ * @param {*} [options] Override http request option.
703
+ * @throws {RequiredError}
704
+ */
705
+ updateAction: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
706
+ // verify required parameter 'code' is not null or undefined
707
+ assertParamExists('updateAction', 'code', code)
708
+ // verify required parameter 'updateActionRequestDto' is not null or undefined
709
+ assertParamExists('updateAction', 'updateActionRequestDto', updateActionRequestDto)
710
+ const localVarPath = `/actionservice/v1/actions/{code}`
711
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
712
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
713
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
714
+ let baseOptions;
715
+ let baseAccessToken;
716
+ if (configuration) {
717
+ baseOptions = configuration.baseOptions;
718
+ baseAccessToken = configuration.accessToken;
719
+ }
720
+
721
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
722
+ const localVarHeaderParameter = {} as any;
723
+ const localVarQueryParameter = {} as any;
724
+
725
+ // authentication bearer required
726
+ // http bearer authentication required
727
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
728
+
729
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
730
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
731
+ }
732
+
733
+
734
+
735
+ localVarHeaderParameter['Content-Type'] = 'application/json';
736
+
737
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
738
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
739
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
740
+ localVarRequestOptions.data = serializeDataIfNeeded(updateActionRequestDto, localVarRequestOptions, configuration)
741
+
742
+ return {
743
+ url: toPathString(localVarUrlObj),
744
+ options: localVarRequestOptions,
745
+ };
746
+ },
747
+ }
748
+ };
749
+
750
+ /**
751
+ * ActionClientApi - functional programming interface
752
+ * @export
753
+ */
754
+ export const ActionClientApiFp = function(configuration?: Configuration) {
755
+ const localVarAxiosParamCreator = ActionClientApiAxiosParamCreator(configuration)
756
+ return {
757
+ /**
758
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
759
+ * @summary Create the action
760
+ * @param {CreateActionRequestDto} createActionRequestDto
761
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ async createAction(createActionRequestDto: CreateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateActionResponseClass>> {
766
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAction(createActionRequestDto, authorization, options);
767
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
768
+ },
769
+ /**
770
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
771
+ * @summary Delete the action
772
+ * @param {string} code Action code
773
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
774
+ * @param {*} [options] Override http request option.
775
+ * @throws {RequiredError}
776
+ */
777
+ async deleteAction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
778
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAction(code, authorization, options);
779
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
780
+ },
781
+ /**
782
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
783
+ * @summary Delete the action version
784
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
785
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
786
+ * @param {*} [options] Override http request option.
787
+ * @throws {RequiredError}
788
+ */
789
+ async deleteActionVersion(versionCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
790
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options);
791
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
792
+ },
793
+ /**
794
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
795
+ * @summary Retrieve the action
796
+ * @param {string} code Action code
797
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
798
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ */
802
+ async getAction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>> {
803
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, authorization, expand, options);
804
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
805
+ },
806
+ /**
807
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
808
+ * @summary Retrieve the actionExecution
809
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
810
+ * @param {string} [executionCode] Action execution code
811
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
812
+ * @param {*} [options] Override http request option.
813
+ * @throws {RequiredError}
814
+ */
815
+ async getActionExecutionStatus(authorization?: string, executionCode?: string, correlationId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionExecutionStatusResponseClass>> {
816
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActionExecutionStatus(authorization, executionCode, correlationId, options);
817
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
818
+ },
819
+ /**
820
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
821
+ * @summary Retrieve the action version
822
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
823
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
824
+ * @param {string} [expand]
825
+ * @param {*} [options] Override http request option.
826
+ * @throws {RequiredError}
827
+ */
828
+ async getActionVersion(versionCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionVersionResponseClass>> {
829
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options);
830
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
831
+ },
832
+ /**
833
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
834
+ * @summary List actionExecutions
835
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
836
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
837
+ * @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.
838
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
839
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
840
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, triggeredAt, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, createdAt, updatedAt&lt;/i&gt;
841
+ * @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;
842
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
843
+ * @param {*} [options] Override http request option.
844
+ * @throws {RequiredError}
845
+ */
846
+ 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>> {
847
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
848
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
849
+ },
850
+ /**
851
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
852
+ * @summary List action versions
853
+ * @param {string} code Action code
854
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
855
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
856
+ * @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.
857
+ * @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;
858
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
859
+ * @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;
860
+ * @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;
861
+ * @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;
862
+ * @param {*} [options] Override http request option.
863
+ * @throws {RequiredError}
864
+ */
865
+ 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>> {
866
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
867
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
868
+ },
869
+ /**
870
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
871
+ * @summary List actions
872
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
873
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
874
+ * @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.
875
+ * @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;
876
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
877
+ * @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;
878
+ * @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;
879
+ * @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;
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ */
883
+ async listActions(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>> {
884
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
885
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
886
+ },
887
+ /**
888
+ * 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\"
889
+ * @summary List action versions
890
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
891
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
892
+ * @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.
893
+ * @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;
894
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
895
+ * @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;
896
+ * @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;
897
+ * @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;
898
+ * @param {*} [options] Override http request option.
899
+ * @throws {RequiredError}
900
+ */
901
+ 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>> {
902
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
903
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
904
+ },
905
+ /**
906
+ * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
907
+ * @summary Create the actionExecution
908
+ * @param {TriggerActionRequestDto} triggerActionRequestDto
909
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
910
+ * @param {*} [options] Override http request option.
911
+ * @throws {RequiredError}
912
+ */
913
+ async triggerAction(triggerActionRequestDto: TriggerActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TriggerActionResponseClass>> {
914
+ const localVarAxiosArgs = await localVarAxiosParamCreator.triggerAction(triggerActionRequestDto, authorization, options);
915
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
916
+ },
917
+ /**
918
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
919
+ * @summary Update the action
920
+ * @param {string} code Action code
921
+ * @param {UpdateActionRequestDto} updateActionRequestDto
922
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
923
+ * @param {*} [options] Override http request option.
924
+ * @throws {RequiredError}
925
+ */
926
+ async updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
927
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options);
928
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
929
+ },
930
+ }
931
+ };
932
+
933
+ /**
934
+ * ActionClientApi - factory interface
935
+ * @export
936
+ */
937
+ export const ActionClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
938
+ const localVarFp = ActionClientApiFp(configuration)
939
+ return {
940
+ /**
941
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
942
+ * @summary Create the action
943
+ * @param {CreateActionRequestDto} createActionRequestDto
944
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ */
948
+ createAction(createActionRequestDto: CreateActionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateActionResponseClass> {
949
+ return localVarFp.createAction(createActionRequestDto, authorization, options).then((request) => request(axios, basePath));
950
+ },
951
+ /**
952
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
953
+ * @summary Delete the action
954
+ * @param {string} code Action code
955
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
956
+ * @param {*} [options] Override http request option.
957
+ * @throws {RequiredError}
958
+ */
959
+ deleteAction(code: string, authorization?: string, options?: any): AxiosPromise<void> {
960
+ return localVarFp.deleteAction(code, authorization, options).then((request) => request(axios, basePath));
961
+ },
962
+ /**
963
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
964
+ * @summary Delete the action version
965
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
966
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
967
+ * @param {*} [options] Override http request option.
968
+ * @throws {RequiredError}
969
+ */
970
+ deleteActionVersion(versionCode: string, authorization?: string, options?: any): AxiosPromise<void> {
971
+ return localVarFp.deleteActionVersion(versionCode, authorization, options).then((request) => request(axios, basePath));
972
+ },
973
+ /**
974
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
975
+ * @summary Retrieve the action
976
+ * @param {string} code Action code
977
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
978
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
979
+ * @param {*} [options] Override http request option.
980
+ * @throws {RequiredError}
981
+ */
982
+ getAction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetActionResponseClass> {
983
+ return localVarFp.getAction(code, authorization, expand, options).then((request) => request(axios, basePath));
984
+ },
985
+ /**
986
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
987
+ * @summary Retrieve the actionExecution
988
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
989
+ * @param {string} [executionCode] Action execution code
990
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
991
+ * @param {*} [options] Override http request option.
992
+ * @throws {RequiredError}
993
+ */
994
+ getActionExecutionStatus(authorization?: string, executionCode?: string, correlationId?: string, options?: any): AxiosPromise<GetActionExecutionStatusResponseClass> {
995
+ return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then((request) => request(axios, basePath));
996
+ },
997
+ /**
998
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
999
+ * @summary Retrieve the action version
1000
+ * @param {string} versionCode Version code (e.g. acv_&lt;nanoid&gt;)
1001
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1002
+ * @param {string} [expand]
1003
+ * @param {*} [options] Override http request option.
1004
+ * @throws {RequiredError}
1005
+ */
1006
+ getActionVersion(versionCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetActionVersionResponseClass> {
1007
+ return localVarFp.getActionVersion(versionCode, authorization, expand, options).then((request) => request(axios, basePath));
1008
+ },
1009
+ /**
1010
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
1011
+ * @summary List actionExecutions
1012
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1013
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1014
+ * @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.
1015
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1016
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1017
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, triggeredAt, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, createdAt, updatedAt&lt;/i&gt;
1018
+ * @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;
1019
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1020
+ * @param {*} [options] Override http request option.
1021
+ * @throws {RequiredError}
1022
+ */
1023
+ listActionExecutions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionExecutionsResponseClass> {
1024
+ return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1025
+ },
1026
+ /**
1027
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1028
+ * @summary List action versions
1029
+ * @param {string} code Action code
1030
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1031
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1032
+ * @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.
1033
+ * @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;
1034
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1035
+ * @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;
1036
+ * @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;
1037
+ * @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;
1038
+ * @param {*} [options] Override http request option.
1039
+ * @throws {RequiredError}
1040
+ */
1041
+ listActionVersions(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionVersionsResponseClass> {
1042
+ return localVarFp.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1043
+ },
1044
+ /**
1045
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1046
+ * @summary List actions
1047
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1048
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1049
+ * @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.
1050
+ * @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;
1051
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1052
+ * @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;
1053
+ * @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;
1054
+ * @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;
1055
+ * @param {*} [options] Override http request option.
1056
+ * @throws {RequiredError}
1057
+ */
1058
+ listActions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionsResponseClass> {
1059
+ return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1060
+ },
1061
+ /**
1062
+ * 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\"
1063
+ * @summary List action versions
1064
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1065
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1066
+ * @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.
1067
+ * @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;
1068
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1069
+ * @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;
1070
+ * @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;
1071
+ * @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;
1072
+ * @param {*} [options] Override http request option.
1073
+ * @throws {RequiredError}
1074
+ */
1075
+ listAllActionVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionVersionsResponseClass> {
1076
+ return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1077
+ },
1078
+ /**
1079
+ * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
1080
+ * @summary Create the actionExecution
1081
+ * @param {TriggerActionRequestDto} triggerActionRequestDto
1082
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1083
+ * @param {*} [options] Override http request option.
1084
+ * @throws {RequiredError}
1085
+ */
1086
+ triggerAction(triggerActionRequestDto: TriggerActionRequestDto, authorization?: string, options?: any): AxiosPromise<TriggerActionResponseClass> {
1087
+ return localVarFp.triggerAction(triggerActionRequestDto, authorization, options).then((request) => request(axios, basePath));
1088
+ },
1089
+ /**
1090
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1091
+ * @summary Update the action
1092
+ * @param {string} code Action code
1093
+ * @param {UpdateActionRequestDto} updateActionRequestDto
1094
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1095
+ * @param {*} [options] Override http request option.
1096
+ * @throws {RequiredError}
1097
+ */
1098
+ updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
1099
+ return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
1100
+ },
1101
+ };
1102
+ };
1103
+
1104
+ /**
1105
+ * Request parameters for createAction operation in ActionClientApi.
1106
+ * @export
1107
+ * @interface ActionClientApiCreateActionRequest
1108
+ */
1109
+ export interface ActionClientApiCreateActionRequest {
1110
+ /**
1111
+ *
1112
+ * @type {CreateActionRequestDto}
1113
+ * @memberof ActionClientApiCreateAction
1114
+ */
1115
+ readonly createActionRequestDto: CreateActionRequestDto
1116
+
1117
+ /**
1118
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1119
+ * @type {string}
1120
+ * @memberof ActionClientApiCreateAction
1121
+ */
1122
+ readonly authorization?: string
1123
+ }
1124
+
1125
+ /**
1126
+ * Request parameters for deleteAction operation in ActionClientApi.
1127
+ * @export
1128
+ * @interface ActionClientApiDeleteActionRequest
1129
+ */
1130
+ export interface ActionClientApiDeleteActionRequest {
1131
+ /**
1132
+ * Action code
1133
+ * @type {string}
1134
+ * @memberof ActionClientApiDeleteAction
1135
+ */
1136
+ readonly code: string
1137
+
1138
+ /**
1139
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1140
+ * @type {string}
1141
+ * @memberof ActionClientApiDeleteAction
1142
+ */
1143
+ readonly authorization?: string
1144
+ }
1145
+
1146
+ /**
1147
+ * Request parameters for deleteActionVersion operation in ActionClientApi.
1148
+ * @export
1149
+ * @interface ActionClientApiDeleteActionVersionRequest
1150
+ */
1151
+ export interface ActionClientApiDeleteActionVersionRequest {
1152
+ /**
1153
+ * Version code (e.g. acv_&lt;nanoid&gt;)
1154
+ * @type {string}
1155
+ * @memberof ActionClientApiDeleteActionVersion
1156
+ */
1157
+ readonly versionCode: string
1158
+
1159
+ /**
1160
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1161
+ * @type {string}
1162
+ * @memberof ActionClientApiDeleteActionVersion
1163
+ */
1164
+ readonly authorization?: string
1165
+ }
1166
+
1167
+ /**
1168
+ * Request parameters for getAction operation in ActionClientApi.
1169
+ * @export
1170
+ * @interface ActionClientApiGetActionRequest
1171
+ */
1172
+ export interface ActionClientApiGetActionRequest {
1173
+ /**
1174
+ * Action code
1175
+ * @type {string}
1176
+ * @memberof ActionClientApiGetAction
1177
+ */
1178
+ readonly code: string
1179
+
1180
+ /**
1181
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1182
+ * @type {string}
1183
+ * @memberof ActionClientApiGetAction
1184
+ */
1185
+ readonly authorization?: string
1186
+
1187
+ /**
1188
+ * Expand to fetch additional information (e.g. inputValidationSchema)
1189
+ * @type {string}
1190
+ * @memberof ActionClientApiGetAction
1191
+ */
1192
+ readonly expand?: string
1193
+ }
1194
+
1195
+ /**
1196
+ * Request parameters for getActionExecutionStatus operation in ActionClientApi.
1197
+ * @export
1198
+ * @interface ActionClientApiGetActionExecutionStatusRequest
1199
+ */
1200
+ export interface ActionClientApiGetActionExecutionStatusRequest {
1201
+ /**
1202
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1203
+ * @type {string}
1204
+ * @memberof ActionClientApiGetActionExecutionStatus
1205
+ */
1206
+ readonly authorization?: string
1207
+
1208
+ /**
1209
+ * Action execution code
1210
+ * @type {string}
1211
+ * @memberof ActionClientApiGetActionExecutionStatus
1212
+ */
1213
+ readonly executionCode?: string
1214
+
1215
+ /**
1216
+ * Correlation ID (e.g. webhook execution code that triggered this action execution)
1217
+ * @type {string}
1218
+ * @memberof ActionClientApiGetActionExecutionStatus
1219
+ */
1220
+ readonly correlationId?: string
1221
+ }
1222
+
1223
+ /**
1224
+ * Request parameters for getActionVersion operation in ActionClientApi.
1225
+ * @export
1226
+ * @interface ActionClientApiGetActionVersionRequest
1227
+ */
1228
+ export interface ActionClientApiGetActionVersionRequest {
1229
+ /**
1230
+ * Version code (e.g. acv_&lt;nanoid&gt;)
1231
+ * @type {string}
1232
+ * @memberof ActionClientApiGetActionVersion
1233
+ */
1234
+ readonly versionCode: string
1235
+
1236
+ /**
1237
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1238
+ * @type {string}
1239
+ * @memberof ActionClientApiGetActionVersion
1240
+ */
1241
+ readonly authorization?: string
1242
+
1243
+ /**
1244
+ *
1245
+ * @type {string}
1246
+ * @memberof ActionClientApiGetActionVersion
1247
+ */
1248
+ readonly expand?: string
1249
+ }
1250
+
1251
+ /**
1252
+ * Request parameters for listActionExecutions operation in ActionClientApi.
1253
+ * @export
1254
+ * @interface ActionClientApiListActionExecutionsRequest
1255
+ */
1256
+ export interface ActionClientApiListActionExecutionsRequest {
1257
+ /**
1258
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1259
+ * @type {string}
1260
+ * @memberof ActionClientApiListActionExecutions
1261
+ */
1262
+ readonly authorization?: string
1263
+
1264
+ /**
1265
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1266
+ * @type {number}
1267
+ * @memberof ActionClientApiListActionExecutions
1268
+ */
1269
+ readonly pageSize?: number
1270
+
1271
+ /**
1272
+ * 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.
1273
+ * @type {string}
1274
+ * @memberof ActionClientApiListActionExecutions
1275
+ */
1276
+ readonly pageToken?: string
1277
+
1278
+ /**
1279
+ * 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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1280
+ * @type {string}
1281
+ * @memberof ActionClientApiListActionExecutions
1282
+ */
1283
+ readonly filter?: string
1284
+
1285
+ /**
1286
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1287
+ * @type {string}
1288
+ * @memberof ActionClientApiListActionExecutions
1289
+ */
1290
+ readonly search?: string
1291
+
1292
+ /**
1293
+ * 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, actionVersion, entityCode, entityType, triggeredBySub, triggeredAt, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, createdAt, updatedAt&lt;/i&gt;
1294
+ * @type {string}
1295
+ * @memberof ActionClientApiListActionExecutions
1296
+ */
1297
+ readonly order?: string
1298
+
1299
+ /**
1300
+ * 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;
1301
+ * @type {string}
1302
+ * @memberof ActionClientApiListActionExecutions
1303
+ */
1304
+ readonly expand?: string
1305
+
1306
+ /**
1307
+ * 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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1308
+ * @type {string}
1309
+ * @memberof ActionClientApiListActionExecutions
1310
+ */
1311
+ readonly filters?: string
1312
+ }
1313
+
1314
+ /**
1315
+ * Request parameters for listActionVersions operation in ActionClientApi.
1316
+ * @export
1317
+ * @interface ActionClientApiListActionVersionsRequest
1318
+ */
1319
+ export interface ActionClientApiListActionVersionsRequest {
1320
+ /**
1321
+ * Action code
1322
+ * @type {string}
1323
+ * @memberof ActionClientApiListActionVersions
1324
+ */
1325
+ readonly code: string
1326
+
1327
+ /**
1328
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1329
+ * @type {string}
1330
+ * @memberof ActionClientApiListActionVersions
1331
+ */
1332
+ readonly authorization?: string
1333
+
1334
+ /**
1335
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1336
+ * @type {number}
1337
+ * @memberof ActionClientApiListActionVersions
1338
+ */
1339
+ readonly pageSize?: number
1340
+
1341
+ /**
1342
+ * 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
+ * @type {string}
1344
+ * @memberof ActionClientApiListActionVersions
1345
+ */
1346
+ readonly pageToken?: string
1347
+
1348
+ /**
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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1350
+ * @type {string}
1351
+ * @memberof ActionClientApiListActionVersions
1352
+ */
1353
+ readonly filter?: string
1354
+
1355
+ /**
1356
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1357
+ * @type {string}
1358
+ * @memberof ActionClientApiListActionVersions
1359
+ */
1360
+ readonly search?: string
1361
+
1362
+ /**
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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
1364
+ * @type {string}
1365
+ * @memberof ActionClientApiListActionVersions
1366
+ */
1367
+ readonly order?: string
1368
+
1369
+ /**
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; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
1371
+ * @type {string}
1372
+ * @memberof ActionClientApiListActionVersions
1373
+ */
1374
+ readonly expand?: string
1375
+
1376
+ /**
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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1378
+ * @type {string}
1379
+ * @memberof ActionClientApiListActionVersions
1380
+ */
1381
+ readonly filters?: string
1382
+ }
1383
+
1384
+ /**
1385
+ * Request parameters for listActions operation in ActionClientApi.
1386
+ * @export
1387
+ * @interface ActionClientApiListActionsRequest
1388
+ */
1389
+ export interface ActionClientApiListActionsRequest {
1390
+ /**
1391
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1392
+ * @type {string}
1393
+ * @memberof ActionClientApiListActions
1394
+ */
1395
+ readonly authorization?: string
1396
+
1397
+ /**
1398
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1399
+ * @type {number}
1400
+ * @memberof ActionClientApiListActions
1401
+ */
1402
+ readonly pageSize?: number
1403
+
1404
+ /**
1405
+ * 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.
1406
+ * @type {string}
1407
+ * @memberof ActionClientApiListActions
1408
+ */
1409
+ readonly pageToken?: string
1410
+
1411
+ /**
1412
+ * 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;
1413
+ * @type {string}
1414
+ * @memberof ActionClientApiListActions
1415
+ */
1416
+ readonly filter?: string
1417
+
1418
+ /**
1419
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1420
+ * @type {string}
1421
+ * @memberof ActionClientApiListActions
1422
+ */
1423
+ readonly search?: string
1424
+
1425
+ /**
1426
+ * 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;
1427
+ * @type {string}
1428
+ * @memberof ActionClientApiListActions
1429
+ */
1430
+ readonly order?: string
1431
+
1432
+ /**
1433
+ * 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;
1434
+ * @type {string}
1435
+ * @memberof ActionClientApiListActions
1436
+ */
1437
+ readonly expand?: string
1438
+
1439
+ /**
1440
+ * 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;
1441
+ * @type {string}
1442
+ * @memberof ActionClientApiListActions
1443
+ */
1444
+ readonly filters?: string
1445
+ }
1446
+
1447
+ /**
1448
+ * Request parameters for listAllActionVersions operation in ActionClientApi.
1449
+ * @export
1450
+ * @interface ActionClientApiListAllActionVersionsRequest
1451
+ */
1452
+ export interface ActionClientApiListAllActionVersionsRequest {
1453
+ /**
1454
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1455
+ * @type {string}
1456
+ * @memberof ActionClientApiListAllActionVersions
1457
+ */
1458
+ readonly authorization?: string
1459
+
1460
+ /**
1461
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1462
+ * @type {number}
1463
+ * @memberof ActionClientApiListAllActionVersions
1464
+ */
1465
+ readonly pageSize?: number
1466
+
1467
+ /**
1468
+ * 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.
1469
+ * @type {string}
1470
+ * @memberof ActionClientApiListAllActionVersions
1471
+ */
1472
+ readonly pageToken?: string
1473
+
1474
+ /**
1475
+ * 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;
1476
+ * @type {string}
1477
+ * @memberof ActionClientApiListAllActionVersions
1478
+ */
1479
+ readonly filter?: string
1480
+
1481
+ /**
1482
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1483
+ * @type {string}
1484
+ * @memberof ActionClientApiListAllActionVersions
1485
+ */
1486
+ readonly search?: string
1487
+
1488
+ /**
1489
+ * 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;
1490
+ * @type {string}
1491
+ * @memberof ActionClientApiListAllActionVersions
1492
+ */
1493
+ readonly order?: string
1494
+
1495
+ /**
1496
+ * 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;
1497
+ * @type {string}
1498
+ * @memberof ActionClientApiListAllActionVersions
1499
+ */
1500
+ readonly expand?: string
1501
+
1502
+ /**
1503
+ * 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;
1504
+ * @type {string}
1505
+ * @memberof ActionClientApiListAllActionVersions
1506
+ */
1507
+ readonly filters?: string
1508
+ }
1509
+
1510
+ /**
1511
+ * Request parameters for triggerAction operation in ActionClientApi.
1512
+ * @export
1513
+ * @interface ActionClientApiTriggerActionRequest
1514
+ */
1515
+ export interface ActionClientApiTriggerActionRequest {
1516
+ /**
1517
+ *
1518
+ * @type {TriggerActionRequestDto}
1519
+ * @memberof ActionClientApiTriggerAction
1520
+ */
1521
+ readonly triggerActionRequestDto: TriggerActionRequestDto
1522
+
1523
+ /**
1524
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1525
+ * @type {string}
1526
+ * @memberof ActionClientApiTriggerAction
1527
+ */
1528
+ readonly authorization?: string
1529
+ }
1530
+
1531
+ /**
1532
+ * Request parameters for updateAction operation in ActionClientApi.
1533
+ * @export
1534
+ * @interface ActionClientApiUpdateActionRequest
1535
+ */
1536
+ export interface ActionClientApiUpdateActionRequest {
1537
+ /**
1538
+ * Action code
1539
+ * @type {string}
1540
+ * @memberof ActionClientApiUpdateAction
1541
+ */
1542
+ readonly code: string
1543
+
1544
+ /**
1545
+ *
1546
+ * @type {UpdateActionRequestDto}
1547
+ * @memberof ActionClientApiUpdateAction
1548
+ */
1549
+ readonly updateActionRequestDto: UpdateActionRequestDto
1550
+
1551
+ /**
1552
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1553
+ * @type {string}
1554
+ * @memberof ActionClientApiUpdateAction
1555
+ */
1556
+ readonly authorization?: string
1557
+ }
1558
+
1559
+ /**
1560
+ * ActionClientApi - object-oriented interface
1561
+ * @export
1562
+ * @class ActionClientApi
1563
+ * @extends {BaseAPI}
1564
+ */
1565
+ export class ActionClientApi extends BaseAPI {
1566
+ /**
1567
+ * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
1568
+ * @summary Create the action
1569
+ * @param {ActionClientApiCreateActionRequest} requestParameters Request parameters.
1570
+ * @param {*} [options] Override http request option.
1571
+ * @throws {RequiredError}
1572
+ * @memberof ActionClientApi
1573
+ */
1574
+ public createAction(requestParameters: ActionClientApiCreateActionRequest, options?: AxiosRequestConfig) {
1575
+ return ActionClientApiFp(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1576
+ }
1577
+
1578
+ /**
1579
+ * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1580
+ * @summary Delete the action
1581
+ * @param {ActionClientApiDeleteActionRequest} requestParameters Request parameters.
1582
+ * @param {*} [options] Override http request option.
1583
+ * @throws {RequiredError}
1584
+ * @memberof ActionClientApi
1585
+ */
1586
+ public deleteAction(requestParameters: ActionClientApiDeleteActionRequest, options?: AxiosRequestConfig) {
1587
+ return ActionClientApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1588
+ }
1589
+
1590
+ /**
1591
+ * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
1592
+ * @summary Delete the action version
1593
+ * @param {ActionClientApiDeleteActionVersionRequest} requestParameters Request parameters.
1594
+ * @param {*} [options] Override http request option.
1595
+ * @throws {RequiredError}
1596
+ * @memberof ActionClientApi
1597
+ */
1598
+ public deleteActionVersion(requestParameters: ActionClientApiDeleteActionVersionRequest, options?: AxiosRequestConfig) {
1599
+ return ActionClientApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1600
+ }
1601
+
1602
+ /**
1603
+ * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1604
+ * @summary Retrieve the action
1605
+ * @param {ActionClientApiGetActionRequest} requestParameters Request parameters.
1606
+ * @param {*} [options] Override http request option.
1607
+ * @throws {RequiredError}
1608
+ * @memberof ActionClientApi
1609
+ */
1610
+ public getAction(requestParameters: ActionClientApiGetActionRequest, options?: AxiosRequestConfig) {
1611
+ return ActionClientApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1612
+ }
1613
+
1614
+ /**
1615
+ * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
1616
+ * @summary Retrieve the actionExecution
1617
+ * @param {ActionClientApiGetActionExecutionStatusRequest} requestParameters Request parameters.
1618
+ * @param {*} [options] Override http request option.
1619
+ * @throws {RequiredError}
1620
+ * @memberof ActionClientApi
1621
+ */
1622
+ public getActionExecutionStatus(requestParameters: ActionClientApiGetActionExecutionStatusRequest = {}, options?: AxiosRequestConfig) {
1623
+ return ActionClientApiFp(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then((request) => request(this.axios, this.basePath));
1624
+ }
1625
+
1626
+ /**
1627
+ * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
1628
+ * @summary Retrieve the action version
1629
+ * @param {ActionClientApiGetActionVersionRequest} requestParameters Request parameters.
1630
+ * @param {*} [options] Override http request option.
1631
+ * @throws {RequiredError}
1632
+ * @memberof ActionClientApi
1633
+ */
1634
+ public getActionVersion(requestParameters: ActionClientApiGetActionVersionRequest, options?: AxiosRequestConfig) {
1635
+ return ActionClientApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1636
+ }
1637
+
1638
+ /**
1639
+ * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
1640
+ * @summary List actionExecutions
1641
+ * @param {ActionClientApiListActionExecutionsRequest} requestParameters Request parameters.
1642
+ * @param {*} [options] Override http request option.
1643
+ * @throws {RequiredError}
1644
+ * @memberof ActionClientApi
1645
+ */
1646
+ public listActionExecutions(requestParameters: ActionClientApiListActionExecutionsRequest = {}, options?: AxiosRequestConfig) {
1647
+ return ActionClientApiFp(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));
1648
+ }
1649
+
1650
+ /**
1651
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1652
+ * @summary List action versions
1653
+ * @param {ActionClientApiListActionVersionsRequest} requestParameters Request parameters.
1654
+ * @param {*} [options] Override http request option.
1655
+ * @throws {RequiredError}
1656
+ * @memberof ActionClientApi
1657
+ */
1658
+ public listActionVersions(requestParameters: ActionClientApiListActionVersionsRequest, options?: AxiosRequestConfig) {
1659
+ return ActionClientApiFp(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));
1660
+ }
1661
+
1662
+ /**
1663
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1664
+ * @summary List actions
1665
+ * @param {ActionClientApiListActionsRequest} requestParameters Request parameters.
1666
+ * @param {*} [options] Override http request option.
1667
+ * @throws {RequiredError}
1668
+ * @memberof ActionClientApi
1669
+ */
1670
+ public listActions(requestParameters: ActionClientApiListActionsRequest = {}, options?: AxiosRequestConfig) {
1671
+ return ActionClientApiFp(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1672
+ }
1673
+
1674
+ /**
1675
+ * 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\"
1676
+ * @summary List action versions
1677
+ * @param {ActionClientApiListAllActionVersionsRequest} requestParameters Request parameters.
1678
+ * @param {*} [options] Override http request option.
1679
+ * @throws {RequiredError}
1680
+ * @memberof ActionClientApi
1681
+ */
1682
+ public listAllActionVersions(requestParameters: ActionClientApiListAllActionVersionsRequest = {}, options?: AxiosRequestConfig) {
1683
+ return ActionClientApiFp(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));
1684
+ }
1685
+
1686
+ /**
1687
+ * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
1688
+ * @summary Create the actionExecution
1689
+ * @param {ActionClientApiTriggerActionRequest} requestParameters Request parameters.
1690
+ * @param {*} [options] Override http request option.
1691
+ * @throws {RequiredError}
1692
+ * @memberof ActionClientApi
1693
+ */
1694
+ public triggerAction(requestParameters: ActionClientApiTriggerActionRequest, options?: AxiosRequestConfig) {
1695
+ return ActionClientApiFp(this.configuration).triggerAction(requestParameters.triggerActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1696
+ }
1697
+
1698
+ /**
1699
+ * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1700
+ * @summary Update the action
1701
+ * @param {ActionClientApiUpdateActionRequest} requestParameters Request parameters.
1702
+ * @param {*} [options] Override http request option.
1703
+ * @throws {RequiredError}
1704
+ * @memberof ActionClientApi
1705
+ */
1706
+ public updateAction(requestParameters: ActionClientApiUpdateActionRequest, options?: AxiosRequestConfig) {
1707
+ return ActionClientApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1708
+ }
1709
+ }