@embedworkflow/sdk 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/.github/workflows/push-tag.yaml +34 -0
  2. package/.openapi-generator/FILES +87 -0
  3. package/.openapi-generator/VERSION +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/README.md +2 -2
  6. package/api/accounts-api.ts +540 -0
  7. package/api/action-types-api.ts +697 -0
  8. package/api/actions-api.ts +786 -0
  9. package/api/app-connections-api.ts +556 -0
  10. package/api/available-apps-api.ts +239 -0
  11. package/api/data-fields-api.ts +404 -0
  12. package/api/events-api.ts +172 -0
  13. package/api/executions-api.ts +361 -0
  14. package/api/installed-apps-api.ts +410 -0
  15. package/api/payments-api.ts +172 -0
  16. package/api/triggers-api.ts +437 -0
  17. package/api/users-api.ts +531 -0
  18. package/api/workflows-api.ts +1302 -0
  19. package/api.ts +30 -0
  20. package/base.ts +86 -0
  21. package/common.ts +150 -0
  22. package/configuration.ts +110 -0
  23. package/dist/api/accounts-api.d.ts +124 -3
  24. package/dist/api/accounts-api.js +182 -1
  25. package/dist/api/action-types-api.d.ts +43 -36
  26. package/dist/api/action-types-api.js +27 -20
  27. package/dist/api/actions-api.d.ts +6 -6
  28. package/dist/api/app-connections-api.d.ts +28 -27
  29. package/dist/api/app-connections-api.js +25 -25
  30. package/dist/api/available-apps-api.d.ts +2 -2
  31. package/dist/api/data-fields-api.d.ts +46 -2
  32. package/dist/api/data-fields-api.js +68 -0
  33. package/dist/api/events-api.d.ts +1 -1
  34. package/dist/api/executions-api.d.ts +3 -3
  35. package/dist/api/installed-apps-api.d.ts +14 -14
  36. package/dist/api/payments-api.d.ts +1 -1
  37. package/dist/api/triggers-api.d.ts +22 -20
  38. package/dist/api/triggers-api.js +12 -12
  39. package/dist/api/users-api.d.ts +24 -18
  40. package/dist/api/users-api.js +14 -7
  41. package/dist/api/workflows-api.d.ts +114 -32
  42. package/dist/api/workflows-api.js +125 -8
  43. package/dist/common.d.ts +1 -1
  44. package/dist/esm/api/accounts-api.d.ts +124 -3
  45. package/dist/esm/api/accounts-api.js +181 -0
  46. package/dist/esm/api/action-types-api.d.ts +43 -36
  47. package/dist/esm/api/action-types-api.js +27 -20
  48. package/dist/esm/api/actions-api.d.ts +6 -6
  49. package/dist/esm/api/app-connections-api.d.ts +28 -27
  50. package/dist/esm/api/app-connections-api.js +25 -25
  51. package/dist/esm/api/available-apps-api.d.ts +2 -2
  52. package/dist/esm/api/data-fields-api.d.ts +46 -2
  53. package/dist/esm/api/data-fields-api.js +69 -1
  54. package/dist/esm/api/events-api.d.ts +1 -1
  55. package/dist/esm/api/executions-api.d.ts +3 -3
  56. package/dist/esm/api/installed-apps-api.d.ts +14 -14
  57. package/dist/esm/api/payments-api.d.ts +1 -1
  58. package/dist/esm/api/triggers-api.d.ts +22 -20
  59. package/dist/esm/api/triggers-api.js +12 -12
  60. package/dist/esm/api/users-api.d.ts +24 -18
  61. package/dist/esm/api/users-api.js +14 -7
  62. package/dist/esm/api/workflows-api.d.ts +114 -32
  63. package/dist/esm/api/workflows-api.js +124 -7
  64. package/dist/esm/common.d.ts +1 -1
  65. package/dist/esm/models/catch-hook-request.d.ts +25 -0
  66. package/dist/esm/models/{api-v1-action-types-post-request-form-draft-inner.d.ts → create-action-type-request-form-draft-inner.d.ts} +18 -12
  67. package/dist/esm/models/{api-v1-action-types-post-request-form-draft-inner.js → create-action-type-request-form-draft-inner.js} +1 -1
  68. package/dist/esm/models/{api-v1-action-types-post-request-icon-draft.d.ts → create-action-type-request-icon-draft.d.ts} +5 -5
  69. package/dist/{models/api-v1-action-types-post-request.d.ts → esm/models/create-action-type-request.d.ts} +34 -22
  70. package/dist/{models/retrieve-action-type404-response.d.ts → esm/models/create-action-type422-response.d.ts} +5 -5
  71. package/dist/esm/models/{api-v1-app-connections-post-request.d.ts → create-app-connection-request.d.ts} +6 -6
  72. package/dist/esm/models/create-workflow201-response.d.ts +262 -0
  73. package/dist/{models/clone-workflow201-response.js → esm/models/create-workflow201-response.js} +5 -4
  74. package/dist/esm/models/delete-action-type200-response.d.ts +24 -0
  75. package/dist/esm/models/delete-action-type200-response.js +14 -0
  76. package/dist/esm/models/evaluate-expression-request.d.ts +32 -0
  77. package/dist/esm/models/evaluate-expression-request.js +14 -0
  78. package/dist/esm/models/evaluate-expression200-response.d.ts +24 -0
  79. package/dist/esm/models/evaluate-expression200-response.js +14 -0
  80. package/dist/esm/models/export-configuration200-response-configuration.d.ts +16 -0
  81. package/dist/esm/models/export-configuration200-response-configuration.js +14 -0
  82. package/dist/esm/models/export-configuration200-response.d.ts +25 -0
  83. package/dist/esm/models/export-configuration200-response.js +14 -0
  84. package/dist/esm/models/import-configuration201-response.d.ts +6 -0
  85. package/dist/esm/models/index.d.ts +19 -8
  86. package/dist/esm/models/index.js +19 -8
  87. package/dist/{models/retrieve-installed-app200-response.d.ts → esm/models/install-app201-response.d.ts} +19 -19
  88. package/dist/esm/models/install-app201-response.js +14 -0
  89. package/dist/esm/models/list-action-types200-response-collection-inner.d.ts +58 -0
  90. package/dist/esm/models/list-action-types200-response-collection-inner.js +9 -0
  91. package/dist/esm/models/list-data-fields200-response-collection-inner.d.ts +18 -0
  92. package/dist/esm/models/list-triggers200-response-collection-inner.d.ts +18 -0
  93. package/dist/esm/models/list-users200-response-collection-inner.d.ts +6 -6
  94. package/dist/{models/retrieve-workflow200-response.d.ts → esm/models/list-workflows200-response-collection-inner.d.ts} +60 -68
  95. package/dist/esm/models/{retrieve-workflow200-response.js → list-workflows200-response-collection-inner.js} +1 -1
  96. package/dist/esm/models/list-workflows200-response.d.ts +32 -0
  97. package/dist/esm/models/list-workflows200-response.js +14 -0
  98. package/dist/esm/models/retrieve-account-usage200-response.d.ts +60 -0
  99. package/dist/esm/models/retrieve-account-usage200-response.js +14 -0
  100. package/dist/esm/models/retrieve-account200-response.d.ts +19 -1
  101. package/dist/esm/models/update-account-request-action-type-categories-inner-icon.d.ts +36 -0
  102. package/dist/esm/models/update-account-request-action-type-categories-inner-icon.js +14 -0
  103. package/dist/esm/models/update-account-request-action-type-categories-inner.d.ts +43 -0
  104. package/dist/esm/models/update-account-request-action-type-categories-inner.js +14 -0
  105. package/dist/esm/models/update-account-request.d.ts +13 -0
  106. package/dist/esm/models/update-action-type-request.d.ts +12 -0
  107. package/dist/esm/models/update-trigger-request.d.ts +30 -0
  108. package/dist/esm/models/update-trigger-request.js +14 -0
  109. package/dist/esm/models/update-workflow-request.d.ts +7 -1
  110. package/dist/esm/models/upsert-user-request.d.ts +6 -0
  111. package/dist/models/catch-hook-request.d.ts +25 -0
  112. package/dist/models/{api-v1-action-types-post-request-form-draft-inner.d.ts → create-action-type-request-form-draft-inner.d.ts} +18 -12
  113. package/dist/models/{api-v1-action-types-post-request-form-draft-inner.js → create-action-type-request-form-draft-inner.js} +2 -2
  114. package/dist/models/{api-v1-action-types-post-request-icon-draft.d.ts → create-action-type-request-icon-draft.d.ts} +5 -5
  115. package/dist/{esm/models/api-v1-action-types-post-request.d.ts → models/create-action-type-request.d.ts} +34 -22
  116. package/dist/{esm/models/retrieve-action-type404-response.d.ts → models/create-action-type422-response.d.ts} +5 -5
  117. package/dist/models/{api-v1-app-connections-post-request.d.ts → create-app-connection-request.d.ts} +6 -6
  118. package/dist/models/create-workflow201-response.d.ts +262 -0
  119. package/dist/models/create-workflow201-response.js +24 -0
  120. package/dist/models/delete-action-type200-response.d.ts +24 -0
  121. package/dist/models/delete-action-type200-response.js +15 -0
  122. package/dist/models/evaluate-expression-request.d.ts +32 -0
  123. package/dist/models/evaluate-expression-request.js +15 -0
  124. package/dist/models/evaluate-expression200-response.d.ts +24 -0
  125. package/dist/models/evaluate-expression200-response.js +15 -0
  126. package/dist/models/export-configuration200-response-configuration.d.ts +16 -0
  127. package/dist/models/export-configuration200-response-configuration.js +15 -0
  128. package/dist/models/export-configuration200-response.d.ts +25 -0
  129. package/dist/models/export-configuration200-response.js +15 -0
  130. package/dist/models/import-configuration201-response.d.ts +6 -0
  131. package/dist/models/index.d.ts +19 -8
  132. package/dist/models/index.js +19 -8
  133. package/dist/{esm/models/retrieve-installed-app200-response.d.ts → models/install-app201-response.d.ts} +19 -19
  134. package/dist/models/install-app201-response.js +15 -0
  135. package/dist/models/list-action-types200-response-collection-inner.d.ts +58 -0
  136. package/dist/models/list-action-types200-response-collection-inner.js +10 -1
  137. package/dist/models/list-data-fields200-response-collection-inner.d.ts +18 -0
  138. package/dist/models/list-triggers200-response-collection-inner.d.ts +18 -0
  139. package/dist/models/list-users200-response-collection-inner.d.ts +6 -6
  140. package/dist/{esm/models/retrieve-workflow200-response.d.ts → models/list-workflows200-response-collection-inner.d.ts} +60 -68
  141. package/dist/models/{retrieve-workflow200-response.js → list-workflows200-response-collection-inner.js} +2 -2
  142. package/dist/models/list-workflows200-response.d.ts +32 -0
  143. package/dist/models/list-workflows200-response.js +15 -0
  144. package/dist/models/retrieve-account-usage200-response.d.ts +60 -0
  145. package/dist/models/retrieve-account-usage200-response.js +15 -0
  146. package/dist/models/retrieve-account200-response.d.ts +19 -1
  147. package/dist/models/update-account-request-action-type-categories-inner-icon.d.ts +36 -0
  148. package/dist/models/update-account-request-action-type-categories-inner-icon.js +15 -0
  149. package/dist/models/update-account-request-action-type-categories-inner.d.ts +43 -0
  150. package/dist/models/update-account-request-action-type-categories-inner.js +15 -0
  151. package/dist/models/update-account-request.d.ts +13 -0
  152. package/dist/models/update-action-type-request.d.ts +12 -0
  153. package/dist/models/update-trigger-request.d.ts +30 -0
  154. package/dist/models/update-trigger-request.js +15 -0
  155. package/dist/models/update-workflow-request.d.ts +7 -1
  156. package/dist/models/upsert-user-request.d.ts +6 -0
  157. package/git_push.sh +57 -0
  158. package/index.ts +111 -0
  159. package/models/catch-hook-request.ts +32 -0
  160. package/models/create-action-type-request-form-draft-inner.ts +88 -0
  161. package/models/create-action-type-request-icon-draft.ts +42 -0
  162. package/models/create-action-type-request.ts +129 -0
  163. package/models/create-action-type422-response.ts +42 -0
  164. package/models/create-app-connection-request.ts +48 -0
  165. package/models/create-user-token-request.ts +38 -0
  166. package/models/create-user-token200-response.ts +30 -0
  167. package/models/create-workflow-request-template-draft-nodes-inner.ts +138 -0
  168. package/models/create-workflow-request-template-draft.ts +39 -0
  169. package/models/create-workflow-request.ts +75 -0
  170. package/models/create-workflow201-response.ts +266 -0
  171. package/models/delete-action-type200-response.ts +30 -0
  172. package/models/delete-workflow200-response-one-of.ts +30 -0
  173. package/models/delete-workflow200-response-one-of1.ts +30 -0
  174. package/models/delete-workflow200-response.ts +30 -0
  175. package/models/discard-workflow-draft-request.ts +36 -0
  176. package/models/evaluate-expression-request.ts +36 -0
  177. package/models/evaluate-expression200-response.ts +30 -0
  178. package/models/execute-workflow-request.ts +50 -0
  179. package/models/execute-workflow201-response.ts +126 -0
  180. package/models/export-configuration200-response-configuration.ts +23 -0
  181. package/models/export-configuration200-response.ts +33 -0
  182. package/models/import-configuration-request-schema.ts +24 -0
  183. package/models/import-configuration-request.ts +50 -0
  184. package/models/import-configuration201-response.ts +60 -0
  185. package/models/index.ts +70 -0
  186. package/models/install-app-request.ts +36 -0
  187. package/models/install-app201-response.ts +126 -0
  188. package/models/list-action-types200-response-collection-inner.ts +325 -0
  189. package/models/list-action-types200-response-meta.ts +42 -0
  190. package/models/list-action-types200-response.ts +42 -0
  191. package/models/list-actions200-response-collection-inner.ts +150 -0
  192. package/models/list-actions200-response.ts +42 -0
  193. package/models/list-app-connections200-response-collection-inner.ts +72 -0
  194. package/models/list-app-connections200-response.ts +42 -0
  195. package/models/list-available-apps200-response-collection-inner.ts +72 -0
  196. package/models/list-available-apps200-response.ts +42 -0
  197. package/{dist/esm/models/clone-workflow201-response.js → models/list-data-fields-type-parameter.ts} +11 -5
  198. package/models/list-data-fields200-response-collection-inner.ts +108 -0
  199. package/models/list-data-fields200-response.ts +42 -0
  200. package/models/list-events200-response-collection-inner.ts +84 -0
  201. package/models/list-events200-response.ts +42 -0
  202. package/models/list-installed-apps200-response-collection-inner.ts +120 -0
  203. package/models/list-installed-apps200-response.ts +42 -0
  204. package/models/list-triggers200-response-collection-inner.ts +126 -0
  205. package/models/list-triggers200-response.ts +42 -0
  206. package/models/list-users200-response-collection-inner.ts +90 -0
  207. package/models/list-users200-response.ts +42 -0
  208. package/models/list-workflow-executions200-response.ts +42 -0
  209. package/models/list-workflow-versions200-response-collection-inner.ts +66 -0
  210. package/models/list-workflow-versions200-response.ts +42 -0
  211. package/{dist/esm/models/clone-workflow201-response.d.ts → models/list-workflows200-response-collection-inner.ts} +76 -47
  212. package/models/list-workflows200-response.ts +42 -0
  213. package/models/publish-workflow-request.ts +30 -0
  214. package/models/retrieve-account-usage200-response.ts +66 -0
  215. package/models/retrieve-account200-response.ts +114 -0
  216. package/models/retrieve-available-app200-response.ts +78 -0
  217. package/models/retrieve-execution200-response.ts +138 -0
  218. package/models/retry-action-request.ts +38 -0
  219. package/models/stop-executions-request.ts +38 -0
  220. package/models/trigger-workflow-request.ts +54 -0
  221. package/models/update-account-request-action-type-categories-inner-icon.ts +42 -0
  222. package/models/update-account-request-action-type-categories-inner.ts +51 -0
  223. package/models/update-account-request-user-data-schema-inner.ts +54 -0
  224. package/models/update-account-request.ts +96 -0
  225. package/models/update-action-type-request.ts +48 -0
  226. package/models/update-installed-app-request.ts +30 -0
  227. package/models/update-trigger-request.ts +36 -0
  228. package/models/update-workflow-request.ts +93 -0
  229. package/models/upsert-user-request.ts +54 -0
  230. package/package.json +4 -6
  231. package/tsconfig.esm.json +7 -0
  232. package/tsconfig.json +18 -0
  233. package/dist/models/clone-workflow201-response.d.ts +0 -183
  234. /package/dist/esm/models/{api-v1-action-types-post-request-icon-draft.js → catch-hook-request.js} +0 -0
  235. /package/dist/esm/models/{api-v1-action-types-post-request.js → create-action-type-request-icon-draft.js} +0 -0
  236. /package/dist/esm/models/{api-v1-app-connections-post-request.js → create-action-type-request.js} +0 -0
  237. /package/dist/esm/models/{retrieve-action-type404-response.js → create-action-type422-response.js} +0 -0
  238. /package/dist/esm/models/{retrieve-installed-app200-response.js → create-app-connection-request.js} +0 -0
  239. /package/dist/models/{api-v1-action-types-post-request-icon-draft.js → catch-hook-request.js} +0 -0
  240. /package/dist/models/{api-v1-action-types-post-request.js → create-action-type-request-icon-draft.js} +0 -0
  241. /package/dist/models/{api-v1-app-connections-post-request.js → create-action-type-request.js} +0 -0
  242. /package/dist/models/{retrieve-action-type404-response.js → create-action-type422-response.js} +0 -0
  243. /package/dist/models/{retrieve-installed-app200-response.js → create-app-connection-request.js} +0 -0
@@ -0,0 +1,786 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * API V1
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
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 type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import { ListActions200Response } from '../models';
26
+ // @ts-ignore
27
+ import { RetryActionRequest } from '../models';
28
+ /**
29
+ * ActionsApi - axios parameter creator
30
+ * @export
31
+ */
32
+ export const ActionsApiAxiosParamCreator = function (configuration?: Configuration) {
33
+ return {
34
+ /**
35
+ *
36
+ * @summary List actions
37
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
38
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
39
+ * @param {number} [limit] Number of items to return (max 100)
40
+ * @param {string} [status] Filter results by status
41
+ * @param {string} [executionId] Filter results by execution id
42
+ * @param {string} [workflowId] Filter results by workflow id
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ listActions: async (startingAfter?: string, endingBefore?: string, limit?: number, status?: string, executionId?: string, workflowId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ const localVarPath = `/api/v1/actions`;
48
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
50
+ let baseOptions;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ }
54
+
55
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
56
+ const localVarHeaderParameter = {} as any;
57
+ const localVarQueryParameter = {} as any;
58
+
59
+ // authentication bearer required
60
+ // http bearer authentication required
61
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
62
+
63
+ if (startingAfter !== undefined) {
64
+ localVarQueryParameter['starting_after'] = startingAfter;
65
+ }
66
+
67
+ if (endingBefore !== undefined) {
68
+ localVarQueryParameter['ending_before'] = endingBefore;
69
+ }
70
+
71
+ if (limit !== undefined) {
72
+ localVarQueryParameter['limit'] = limit;
73
+ }
74
+
75
+ if (status !== undefined) {
76
+ localVarQueryParameter['status'] = status;
77
+ }
78
+
79
+ if (executionId !== undefined) {
80
+ localVarQueryParameter['execution_id'] = executionId;
81
+ }
82
+
83
+ if (workflowId !== undefined) {
84
+ localVarQueryParameter['workflow_id'] = workflowId;
85
+ }
86
+
87
+
88
+
89
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
90
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
91
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
92
+
93
+ return {
94
+ url: toPathString(localVarUrlObj),
95
+ options: localVarRequestOptions,
96
+ };
97
+ },
98
+ /**
99
+ *
100
+ * @summary List completed actions
101
+ * @param {string} status Filter results by status
102
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
103
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
104
+ * @param {number} [limit] Number of items to return (max 100)
105
+ * @param {string} [executionId] Filter results by execution id
106
+ * @param {string} [workflowId] Filter results by workflow id
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ listCompletedActions: async (status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
111
+ // verify required parameter 'status' is not null or undefined
112
+ assertParamExists('listCompletedActions', 'status', status)
113
+ const localVarPath = `/api/v1/actions/completed`
114
+ .replace(`{${"status"}}`, encodeURIComponent(String(status)));
115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
117
+ let baseOptions;
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ }
121
+
122
+ const localVarRequestOptions = { method: 'GET', ...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 (startingAfter !== undefined) {
131
+ localVarQueryParameter['starting_after'] = startingAfter;
132
+ }
133
+
134
+ if (endingBefore !== undefined) {
135
+ localVarQueryParameter['ending_before'] = endingBefore;
136
+ }
137
+
138
+ if (limit !== undefined) {
139
+ localVarQueryParameter['limit'] = limit;
140
+ }
141
+
142
+ if (executionId !== undefined) {
143
+ localVarQueryParameter['execution_id'] = executionId;
144
+ }
145
+
146
+ if (workflowId !== undefined) {
147
+ localVarQueryParameter['workflow_id'] = workflowId;
148
+ }
149
+
150
+
151
+
152
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
153
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
154
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
155
+
156
+ return {
157
+ url: toPathString(localVarUrlObj),
158
+ options: localVarRequestOptions,
159
+ };
160
+ },
161
+ /**
162
+ *
163
+ * @summary List failed actions
164
+ * @param {string} status Filter results by status
165
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
166
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
167
+ * @param {number} [limit] Number of items to return (max 100)
168
+ * @param {string} [executionId] Filter results by execution id
169
+ * @param {string} [workflowId] Filter results by workflow id
170
+ * @param {*} [options] Override http request option.
171
+ * @throws {RequiredError}
172
+ */
173
+ listFailedActions: async (status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
174
+ // verify required parameter 'status' is not null or undefined
175
+ assertParamExists('listFailedActions', 'status', status)
176
+ const localVarPath = `/api/v1/actions/failed`
177
+ .replace(`{${"status"}}`, encodeURIComponent(String(status)));
178
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
179
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
180
+ let baseOptions;
181
+ if (configuration) {
182
+ baseOptions = configuration.baseOptions;
183
+ }
184
+
185
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
186
+ const localVarHeaderParameter = {} as any;
187
+ const localVarQueryParameter = {} as any;
188
+
189
+ // authentication bearer required
190
+ // http bearer authentication required
191
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
192
+
193
+ if (startingAfter !== undefined) {
194
+ localVarQueryParameter['starting_after'] = startingAfter;
195
+ }
196
+
197
+ if (endingBefore !== undefined) {
198
+ localVarQueryParameter['ending_before'] = endingBefore;
199
+ }
200
+
201
+ if (limit !== undefined) {
202
+ localVarQueryParameter['limit'] = limit;
203
+ }
204
+
205
+ if (executionId !== undefined) {
206
+ localVarQueryParameter['execution_id'] = executionId;
207
+ }
208
+
209
+ if (workflowId !== undefined) {
210
+ localVarQueryParameter['workflow_id'] = workflowId;
211
+ }
212
+
213
+
214
+
215
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
216
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
217
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
218
+
219
+ return {
220
+ url: toPathString(localVarUrlObj),
221
+ options: localVarRequestOptions,
222
+ };
223
+ },
224
+ /**
225
+ *
226
+ * @summary List scheduled actions
227
+ * @param {string} status Filter results by status
228
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
229
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
230
+ * @param {number} [limit] Number of items to return (max 100)
231
+ * @param {string} [executionId] Filter results by execution id
232
+ * @param {string} [workflowId] Filter results by workflow id
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ listScheduledActions: async (status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
237
+ // verify required parameter 'status' is not null or undefined
238
+ assertParamExists('listScheduledActions', 'status', status)
239
+ const localVarPath = `/api/v1/actions/scheduled`
240
+ .replace(`{${"status"}}`, encodeURIComponent(String(status)));
241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
242
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
243
+ let baseOptions;
244
+ if (configuration) {
245
+ baseOptions = configuration.baseOptions;
246
+ }
247
+
248
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
249
+ const localVarHeaderParameter = {} as any;
250
+ const localVarQueryParameter = {} as any;
251
+
252
+ // authentication bearer required
253
+ // http bearer authentication required
254
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
255
+
256
+ if (startingAfter !== undefined) {
257
+ localVarQueryParameter['starting_after'] = startingAfter;
258
+ }
259
+
260
+ if (endingBefore !== undefined) {
261
+ localVarQueryParameter['ending_before'] = endingBefore;
262
+ }
263
+
264
+ if (limit !== undefined) {
265
+ localVarQueryParameter['limit'] = limit;
266
+ }
267
+
268
+ if (executionId !== undefined) {
269
+ localVarQueryParameter['execution_id'] = executionId;
270
+ }
271
+
272
+ if (workflowId !== undefined) {
273
+ localVarQueryParameter['workflow_id'] = workflowId;
274
+ }
275
+
276
+
277
+
278
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
279
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
280
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
281
+
282
+ return {
283
+ url: toPathString(localVarUrlObj),
284
+ options: localVarRequestOptions,
285
+ };
286
+ },
287
+ /**
288
+ *
289
+ * @summary List workflow actions
290
+ * @param {string} workflowId Filter results by workflow id
291
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
292
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
293
+ * @param {number} [limit] Number of items to return (max 100)
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ */
297
+ listWorkflowActions: async (workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
298
+ // verify required parameter 'workflowId' is not null or undefined
299
+ assertParamExists('listWorkflowActions', 'workflowId', workflowId)
300
+ const localVarPath = `/api/v1/workflows/{workflow_id}/actions`
301
+ .replace(`{${"workflow_id"}}`, encodeURIComponent(String(workflowId)));
302
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
303
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
304
+ let baseOptions;
305
+ if (configuration) {
306
+ baseOptions = configuration.baseOptions;
307
+ }
308
+
309
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
310
+ const localVarHeaderParameter = {} as any;
311
+ const localVarQueryParameter = {} as any;
312
+
313
+ // authentication bearer required
314
+ // http bearer authentication required
315
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
316
+
317
+ if (startingAfter !== undefined) {
318
+ localVarQueryParameter['starting_after'] = startingAfter;
319
+ }
320
+
321
+ if (endingBefore !== undefined) {
322
+ localVarQueryParameter['ending_before'] = endingBefore;
323
+ }
324
+
325
+ if (limit !== undefined) {
326
+ localVarQueryParameter['limit'] = limit;
327
+ }
328
+
329
+
330
+
331
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
332
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
333
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
334
+
335
+ return {
336
+ url: toPathString(localVarUrlObj),
337
+ options: localVarRequestOptions,
338
+ };
339
+ },
340
+ /**
341
+ *
342
+ * @summary Retry action
343
+ * @param {string} hashid Action\&#39;s hashid
344
+ * @param {RetryActionRequest} [retryActionRequest]
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ */
348
+ retryAction: async (hashid: string, retryActionRequest?: RetryActionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
349
+ // verify required parameter 'hashid' is not null or undefined
350
+ assertParamExists('retryAction', 'hashid', hashid)
351
+ const localVarPath = `/api/v1/actions/{hashid}/retry`
352
+ .replace(`{${"hashid"}}`, encodeURIComponent(String(hashid)));
353
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
354
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
355
+ let baseOptions;
356
+ if (configuration) {
357
+ baseOptions = configuration.baseOptions;
358
+ }
359
+
360
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
361
+ const localVarHeaderParameter = {} as any;
362
+ const localVarQueryParameter = {} as any;
363
+
364
+ // authentication bearer required
365
+ // http bearer authentication required
366
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
367
+
368
+
369
+
370
+ localVarHeaderParameter['Content-Type'] = 'application/json';
371
+
372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
375
+ localVarRequestOptions.data = serializeDataIfNeeded(retryActionRequest, localVarRequestOptions, configuration)
376
+
377
+ return {
378
+ url: toPathString(localVarUrlObj),
379
+ options: localVarRequestOptions,
380
+ };
381
+ },
382
+ }
383
+ };
384
+
385
+ /**
386
+ * ActionsApi - functional programming interface
387
+ * @export
388
+ */
389
+ export const ActionsApiFp = function(configuration?: Configuration) {
390
+ const localVarAxiosParamCreator = ActionsApiAxiosParamCreator(configuration)
391
+ return {
392
+ /**
393
+ *
394
+ * @summary List actions
395
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
396
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
397
+ * @param {number} [limit] Number of items to return (max 100)
398
+ * @param {string} [status] Filter results by status
399
+ * @param {string} [executionId] Filter results by execution id
400
+ * @param {string} [workflowId] Filter results by workflow id
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ async listActions(startingAfter?: string, endingBefore?: string, limit?: number, status?: string, executionId?: string, workflowId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActions200Response>> {
405
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listActions(startingAfter, endingBefore, limit, status, executionId, workflowId, options);
406
+ const index = configuration?.serverIndex ?? 0;
407
+ const operationBasePath = operationServerMap['ActionsApi.listActions']?.[index]?.url;
408
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
409
+ },
410
+ /**
411
+ *
412
+ * @summary List completed actions
413
+ * @param {string} status Filter results by status
414
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
415
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
416
+ * @param {number} [limit] Number of items to return (max 100)
417
+ * @param {string} [executionId] Filter results by execution id
418
+ * @param {string} [workflowId] Filter results by workflow id
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ */
422
+ async listCompletedActions(status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActions200Response>> {
423
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCompletedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options);
424
+ const index = configuration?.serverIndex ?? 0;
425
+ const operationBasePath = operationServerMap['ActionsApi.listCompletedActions']?.[index]?.url;
426
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
427
+ },
428
+ /**
429
+ *
430
+ * @summary List failed actions
431
+ * @param {string} status Filter results by status
432
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
433
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
434
+ * @param {number} [limit] Number of items to return (max 100)
435
+ * @param {string} [executionId] Filter results by execution id
436
+ * @param {string} [workflowId] Filter results by workflow id
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ */
440
+ async listFailedActions(status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActions200Response>> {
441
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listFailedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options);
442
+ const index = configuration?.serverIndex ?? 0;
443
+ const operationBasePath = operationServerMap['ActionsApi.listFailedActions']?.[index]?.url;
444
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
445
+ },
446
+ /**
447
+ *
448
+ * @summary List scheduled actions
449
+ * @param {string} status Filter results by status
450
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
451
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
452
+ * @param {number} [limit] Number of items to return (max 100)
453
+ * @param {string} [executionId] Filter results by execution id
454
+ * @param {string} [workflowId] Filter results by workflow id
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ async listScheduledActions(status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActions200Response>> {
459
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listScheduledActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options);
460
+ const index = configuration?.serverIndex ?? 0;
461
+ const operationBasePath = operationServerMap['ActionsApi.listScheduledActions']?.[index]?.url;
462
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
463
+ },
464
+ /**
465
+ *
466
+ * @summary List workflow actions
467
+ * @param {string} workflowId Filter results by workflow id
468
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
469
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
470
+ * @param {number} [limit] Number of items to return (max 100)
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ async listWorkflowActions(workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActions200Response>> {
475
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkflowActions(workflowId, startingAfter, endingBefore, limit, options);
476
+ const index = configuration?.serverIndex ?? 0;
477
+ const operationBasePath = operationServerMap['ActionsApi.listWorkflowActions']?.[index]?.url;
478
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
479
+ },
480
+ /**
481
+ *
482
+ * @summary Retry action
483
+ * @param {string} hashid Action\&#39;s hashid
484
+ * @param {RetryActionRequest} [retryActionRequest]
485
+ * @param {*} [options] Override http request option.
486
+ * @throws {RequiredError}
487
+ */
488
+ async retryAction(hashid: string, retryActionRequest?: RetryActionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
489
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retryAction(hashid, retryActionRequest, options);
490
+ const index = configuration?.serverIndex ?? 0;
491
+ const operationBasePath = operationServerMap['ActionsApi.retryAction']?.[index]?.url;
492
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
493
+ },
494
+ }
495
+ };
496
+
497
+ /**
498
+ * ActionsApi - factory interface
499
+ * @export
500
+ */
501
+ export const ActionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
502
+ const localVarFp = ActionsApiFp(configuration)
503
+ return {
504
+ /**
505
+ *
506
+ * @summary List actions
507
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
508
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
509
+ * @param {number} [limit] Number of items to return (max 100)
510
+ * @param {string} [status] Filter results by status
511
+ * @param {string} [executionId] Filter results by execution id
512
+ * @param {string} [workflowId] Filter results by workflow id
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ listActions(startingAfter?: string, endingBefore?: string, limit?: number, status?: string, executionId?: string, workflowId?: string, options?: any): AxiosPromise<ListActions200Response> {
517
+ return localVarFp.listActions(startingAfter, endingBefore, limit, status, executionId, workflowId, options).then((request) => request(axios, basePath));
518
+ },
519
+ /**
520
+ *
521
+ * @summary List completed actions
522
+ * @param {string} status Filter results by status
523
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
524
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
525
+ * @param {number} [limit] Number of items to return (max 100)
526
+ * @param {string} [executionId] Filter results by execution id
527
+ * @param {string} [workflowId] Filter results by workflow id
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ */
531
+ listCompletedActions(status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options?: any): AxiosPromise<ListActions200Response> {
532
+ return localVarFp.listCompletedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options).then((request) => request(axios, basePath));
533
+ },
534
+ /**
535
+ *
536
+ * @summary List failed actions
537
+ * @param {string} status Filter results by status
538
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
539
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
540
+ * @param {number} [limit] Number of items to return (max 100)
541
+ * @param {string} [executionId] Filter results by execution id
542
+ * @param {string} [workflowId] Filter results by workflow id
543
+ * @param {*} [options] Override http request option.
544
+ * @throws {RequiredError}
545
+ */
546
+ listFailedActions(status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options?: any): AxiosPromise<ListActions200Response> {
547
+ return localVarFp.listFailedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options).then((request) => request(axios, basePath));
548
+ },
549
+ /**
550
+ *
551
+ * @summary List scheduled actions
552
+ * @param {string} status Filter results by status
553
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
554
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
555
+ * @param {number} [limit] Number of items to return (max 100)
556
+ * @param {string} [executionId] Filter results by execution id
557
+ * @param {string} [workflowId] Filter results by workflow id
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ */
561
+ listScheduledActions(status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options?: any): AxiosPromise<ListActions200Response> {
562
+ return localVarFp.listScheduledActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options).then((request) => request(axios, basePath));
563
+ },
564
+ /**
565
+ *
566
+ * @summary List workflow actions
567
+ * @param {string} workflowId Filter results by workflow id
568
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
569
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
570
+ * @param {number} [limit] Number of items to return (max 100)
571
+ * @param {*} [options] Override http request option.
572
+ * @throws {RequiredError}
573
+ */
574
+ listWorkflowActions(workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, options?: any): AxiosPromise<ListActions200Response> {
575
+ return localVarFp.listWorkflowActions(workflowId, startingAfter, endingBefore, limit, options).then((request) => request(axios, basePath));
576
+ },
577
+ /**
578
+ *
579
+ * @summary Retry action
580
+ * @param {string} hashid Action\&#39;s hashid
581
+ * @param {RetryActionRequest} [retryActionRequest]
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ retryAction(hashid: string, retryActionRequest?: RetryActionRequest, options?: any): AxiosPromise<object> {
586
+ return localVarFp.retryAction(hashid, retryActionRequest, options).then((request) => request(axios, basePath));
587
+ },
588
+ };
589
+ };
590
+
591
+ /**
592
+ * ActionsApi - interface
593
+ * @export
594
+ * @interface ActionsApi
595
+ */
596
+ export interface ActionsApiInterface {
597
+ /**
598
+ *
599
+ * @summary List actions
600
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
601
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
602
+ * @param {number} [limit] Number of items to return (max 100)
603
+ * @param {string} [status] Filter results by status
604
+ * @param {string} [executionId] Filter results by execution id
605
+ * @param {string} [workflowId] Filter results by workflow id
606
+ * @param {*} [options] Override http request option.
607
+ * @throws {RequiredError}
608
+ * @memberof ActionsApiInterface
609
+ */
610
+ listActions(startingAfter?: string, endingBefore?: string, limit?: number, status?: string, executionId?: string, workflowId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListActions200Response>;
611
+
612
+ /**
613
+ *
614
+ * @summary List completed actions
615
+ * @param {string} status Filter results by status
616
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
617
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
618
+ * @param {number} [limit] Number of items to return (max 100)
619
+ * @param {string} [executionId] Filter results by execution id
620
+ * @param {string} [workflowId] Filter results by workflow id
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ * @memberof ActionsApiInterface
624
+ */
625
+ listCompletedActions(status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListActions200Response>;
626
+
627
+ /**
628
+ *
629
+ * @summary List failed actions
630
+ * @param {string} status Filter results by status
631
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
632
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
633
+ * @param {number} [limit] Number of items to return (max 100)
634
+ * @param {string} [executionId] Filter results by execution id
635
+ * @param {string} [workflowId] Filter results by workflow id
636
+ * @param {*} [options] Override http request option.
637
+ * @throws {RequiredError}
638
+ * @memberof ActionsApiInterface
639
+ */
640
+ listFailedActions(status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListActions200Response>;
641
+
642
+ /**
643
+ *
644
+ * @summary List scheduled actions
645
+ * @param {string} status Filter results by status
646
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
647
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
648
+ * @param {number} [limit] Number of items to return (max 100)
649
+ * @param {string} [executionId] Filter results by execution id
650
+ * @param {string} [workflowId] Filter results by workflow id
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ * @memberof ActionsApiInterface
654
+ */
655
+ listScheduledActions(status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListActions200Response>;
656
+
657
+ /**
658
+ *
659
+ * @summary List workflow actions
660
+ * @param {string} workflowId Filter results by workflow id
661
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
662
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
663
+ * @param {number} [limit] Number of items to return (max 100)
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ * @memberof ActionsApiInterface
667
+ */
668
+ listWorkflowActions(workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ListActions200Response>;
669
+
670
+ /**
671
+ *
672
+ * @summary Retry action
673
+ * @param {string} hashid Action\&#39;s hashid
674
+ * @param {RetryActionRequest} [retryActionRequest]
675
+ * @param {*} [options] Override http request option.
676
+ * @throws {RequiredError}
677
+ * @memberof ActionsApiInterface
678
+ */
679
+ retryAction(hashid: string, retryActionRequest?: RetryActionRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
680
+
681
+ }
682
+
683
+ /**
684
+ * ActionsApi - object-oriented interface
685
+ * @export
686
+ * @class ActionsApi
687
+ * @extends {BaseAPI}
688
+ */
689
+ export class ActionsApi extends BaseAPI implements ActionsApiInterface {
690
+ /**
691
+ *
692
+ * @summary List actions
693
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
694
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
695
+ * @param {number} [limit] Number of items to return (max 100)
696
+ * @param {string} [status] Filter results by status
697
+ * @param {string} [executionId] Filter results by execution id
698
+ * @param {string} [workflowId] Filter results by workflow id
699
+ * @param {*} [options] Override http request option.
700
+ * @throws {RequiredError}
701
+ * @memberof ActionsApi
702
+ */
703
+ public listActions(startingAfter?: string, endingBefore?: string, limit?: number, status?: string, executionId?: string, workflowId?: string, options?: RawAxiosRequestConfig) {
704
+ return ActionsApiFp(this.configuration).listActions(startingAfter, endingBefore, limit, status, executionId, workflowId, options).then((request) => request(this.axios, this.basePath));
705
+ }
706
+
707
+ /**
708
+ *
709
+ * @summary List completed actions
710
+ * @param {string} status Filter results by status
711
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
712
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
713
+ * @param {number} [limit] Number of items to return (max 100)
714
+ * @param {string} [executionId] Filter results by execution id
715
+ * @param {string} [workflowId] Filter results by workflow id
716
+ * @param {*} [options] Override http request option.
717
+ * @throws {RequiredError}
718
+ * @memberof ActionsApi
719
+ */
720
+ public listCompletedActions(status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options?: RawAxiosRequestConfig) {
721
+ return ActionsApiFp(this.configuration).listCompletedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options).then((request) => request(this.axios, this.basePath));
722
+ }
723
+
724
+ /**
725
+ *
726
+ * @summary List failed actions
727
+ * @param {string} status Filter results by status
728
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
729
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
730
+ * @param {number} [limit] Number of items to return (max 100)
731
+ * @param {string} [executionId] Filter results by execution id
732
+ * @param {string} [workflowId] Filter results by workflow id
733
+ * @param {*} [options] Override http request option.
734
+ * @throws {RequiredError}
735
+ * @memberof ActionsApi
736
+ */
737
+ public listFailedActions(status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options?: RawAxiosRequestConfig) {
738
+ return ActionsApiFp(this.configuration).listFailedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options).then((request) => request(this.axios, this.basePath));
739
+ }
740
+
741
+ /**
742
+ *
743
+ * @summary List scheduled actions
744
+ * @param {string} status Filter results by status
745
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
746
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
747
+ * @param {number} [limit] Number of items to return (max 100)
748
+ * @param {string} [executionId] Filter results by execution id
749
+ * @param {string} [workflowId] Filter results by workflow id
750
+ * @param {*} [options] Override http request option.
751
+ * @throws {RequiredError}
752
+ * @memberof ActionsApi
753
+ */
754
+ public listScheduledActions(status: string, startingAfter?: string, endingBefore?: string, limit?: number, executionId?: string, workflowId?: string, options?: RawAxiosRequestConfig) {
755
+ return ActionsApiFp(this.configuration).listScheduledActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options).then((request) => request(this.axios, this.basePath));
756
+ }
757
+
758
+ /**
759
+ *
760
+ * @summary List workflow actions
761
+ * @param {string} workflowId Filter results by workflow id
762
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
763
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
764
+ * @param {number} [limit] Number of items to return (max 100)
765
+ * @param {*} [options] Override http request option.
766
+ * @throws {RequiredError}
767
+ * @memberof ActionsApi
768
+ */
769
+ public listWorkflowActions(workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig) {
770
+ return ActionsApiFp(this.configuration).listWorkflowActions(workflowId, startingAfter, endingBefore, limit, options).then((request) => request(this.axios, this.basePath));
771
+ }
772
+
773
+ /**
774
+ *
775
+ * @summary Retry action
776
+ * @param {string} hashid Action\&#39;s hashid
777
+ * @param {RetryActionRequest} [retryActionRequest]
778
+ * @param {*} [options] Override http request option.
779
+ * @throws {RequiredError}
780
+ * @memberof ActionsApi
781
+ */
782
+ public retryAction(hashid: string, retryActionRequest?: RetryActionRequest, options?: RawAxiosRequestConfig) {
783
+ return ActionsApiFp(this.configuration).retryAction(hashid, retryActionRequest, options).then((request) => request(this.axios, this.basePath));
784
+ }
785
+ }
786
+