@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,172 @@
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 { ListEvents200Response } from '../models';
26
+ /**
27
+ * EventsApi - axios parameter creator
28
+ * @export
29
+ */
30
+ export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
31
+ return {
32
+ /**
33
+ *
34
+ * @summary List events
35
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
36
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
37
+ * @param {number} [limit] Number of items to return (max 100)
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ listEvents: async (startingAfter?: string, endingBefore?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ const localVarPath = `/api/v1/events`;
43
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45
+ let baseOptions;
46
+ if (configuration) {
47
+ baseOptions = configuration.baseOptions;
48
+ }
49
+
50
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
51
+ const localVarHeaderParameter = {} as any;
52
+ const localVarQueryParameter = {} as any;
53
+
54
+ // authentication bearer required
55
+ // http bearer authentication required
56
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57
+
58
+ if (startingAfter !== undefined) {
59
+ localVarQueryParameter['starting_after'] = startingAfter;
60
+ }
61
+
62
+ if (endingBefore !== undefined) {
63
+ localVarQueryParameter['ending_before'] = endingBefore;
64
+ }
65
+
66
+ if (limit !== undefined) {
67
+ localVarQueryParameter['limit'] = limit;
68
+ }
69
+
70
+
71
+
72
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
73
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
74
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
75
+
76
+ return {
77
+ url: toPathString(localVarUrlObj),
78
+ options: localVarRequestOptions,
79
+ };
80
+ },
81
+ }
82
+ };
83
+
84
+ /**
85
+ * EventsApi - functional programming interface
86
+ * @export
87
+ */
88
+ export const EventsApiFp = function(configuration?: Configuration) {
89
+ const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
90
+ return {
91
+ /**
92
+ *
93
+ * @summary List events
94
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
95
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
96
+ * @param {number} [limit] Number of items to return (max 100)
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ async listEvents(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEvents200Response>> {
101
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listEvents(startingAfter, endingBefore, limit, options);
102
+ const index = configuration?.serverIndex ?? 0;
103
+ const operationBasePath = operationServerMap['EventsApi.listEvents']?.[index]?.url;
104
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
105
+ },
106
+ }
107
+ };
108
+
109
+ /**
110
+ * EventsApi - factory interface
111
+ * @export
112
+ */
113
+ export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
114
+ const localVarFp = EventsApiFp(configuration)
115
+ return {
116
+ /**
117
+ *
118
+ * @summary List events
119
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
120
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
121
+ * @param {number} [limit] Number of items to return (max 100)
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ listEvents(startingAfter?: string, endingBefore?: string, limit?: number, options?: any): AxiosPromise<ListEvents200Response> {
126
+ return localVarFp.listEvents(startingAfter, endingBefore, limit, options).then((request) => request(axios, basePath));
127
+ },
128
+ };
129
+ };
130
+
131
+ /**
132
+ * EventsApi - interface
133
+ * @export
134
+ * @interface EventsApi
135
+ */
136
+ export interface EventsApiInterface {
137
+ /**
138
+ *
139
+ * @summary List events
140
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
141
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
142
+ * @param {number} [limit] Number of items to return (max 100)
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ * @memberof EventsApiInterface
146
+ */
147
+ listEvents(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ListEvents200Response>;
148
+
149
+ }
150
+
151
+ /**
152
+ * EventsApi - object-oriented interface
153
+ * @export
154
+ * @class EventsApi
155
+ * @extends {BaseAPI}
156
+ */
157
+ export class EventsApi extends BaseAPI implements EventsApiInterface {
158
+ /**
159
+ *
160
+ * @summary List events
161
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
162
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
163
+ * @param {number} [limit] Number of items to return (max 100)
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ * @memberof EventsApi
167
+ */
168
+ public listEvents(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig) {
169
+ return EventsApiFp(this.configuration).listEvents(startingAfter, endingBefore, limit, options).then((request) => request(this.axios, this.basePath));
170
+ }
171
+ }
172
+
@@ -0,0 +1,361 @@
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 { CreateActionType422Response } from '../models';
26
+ // @ts-ignore
27
+ import { ListWorkflowExecutions200Response } from '../models';
28
+ // @ts-ignore
29
+ import { RetrieveExecution200Response } from '../models';
30
+ // @ts-ignore
31
+ import { StopExecutionsRequest } from '../models';
32
+ /**
33
+ * ExecutionsApi - axios parameter creator
34
+ * @export
35
+ */
36
+ export const ExecutionsApiAxiosParamCreator = function (configuration?: Configuration) {
37
+ return {
38
+ /**
39
+ *
40
+ * @summary List workflow executions
41
+ * @param {string} workflowId Filter results by workflow id
42
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
43
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
44
+ * @param {number} [limit] Number of items to return (max 100)
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ listWorkflowExecutions: async (workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
49
+ // verify required parameter 'workflowId' is not null or undefined
50
+ assertParamExists('listWorkflowExecutions', 'workflowId', workflowId)
51
+ const localVarPath = `/api/v1/workflows/{workflow_id}/executions`
52
+ .replace(`{${"workflow_id"}}`, encodeURIComponent(String(workflowId)));
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ if (configuration) {
57
+ baseOptions = configuration.baseOptions;
58
+ }
59
+
60
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
61
+ const localVarHeaderParameter = {} as any;
62
+ const localVarQueryParameter = {} as any;
63
+
64
+ // authentication bearer required
65
+ // http bearer authentication required
66
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
+
68
+ if (startingAfter !== undefined) {
69
+ localVarQueryParameter['starting_after'] = startingAfter;
70
+ }
71
+
72
+ if (endingBefore !== undefined) {
73
+ localVarQueryParameter['ending_before'] = endingBefore;
74
+ }
75
+
76
+ if (limit !== undefined) {
77
+ localVarQueryParameter['limit'] = limit;
78
+ }
79
+
80
+
81
+
82
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
83
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
+
86
+ return {
87
+ url: toPathString(localVarUrlObj),
88
+ options: localVarRequestOptions,
89
+ };
90
+ },
91
+ /**
92
+ *
93
+ * @summary Retrieve execution
94
+ * @param {string} id System-generated unique identifier
95
+ * @param {string} [idType] Type of identifier used in the URL
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ retrieveExecution: async (id: string, idType?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
100
+ // verify required parameter 'id' is not null or undefined
101
+ assertParamExists('retrieveExecution', 'id', id)
102
+ const localVarPath = `/api/v1/executions/{id}`
103
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
104
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
105
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
106
+ let baseOptions;
107
+ if (configuration) {
108
+ baseOptions = configuration.baseOptions;
109
+ }
110
+
111
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
112
+ const localVarHeaderParameter = {} as any;
113
+ const localVarQueryParameter = {} as any;
114
+
115
+ // authentication bearer required
116
+ // http bearer authentication required
117
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
118
+
119
+ if (idType !== undefined) {
120
+ localVarQueryParameter['id_type'] = idType;
121
+ }
122
+
123
+
124
+
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
128
+
129
+ return {
130
+ url: toPathString(localVarUrlObj),
131
+ options: localVarRequestOptions,
132
+ };
133
+ },
134
+ /**
135
+ *
136
+ * @summary Stop executions
137
+ * @param {StopExecutionsRequest} [stopExecutionsRequest]
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ stopExecutions: async (stopExecutionsRequest?: StopExecutionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
142
+ const localVarPath = `/api/v1/executions/stop`;
143
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
144
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
145
+ let baseOptions;
146
+ if (configuration) {
147
+ baseOptions = configuration.baseOptions;
148
+ }
149
+
150
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
151
+ const localVarHeaderParameter = {} as any;
152
+ const localVarQueryParameter = {} as any;
153
+
154
+ // authentication bearer required
155
+ // http bearer authentication required
156
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
157
+
158
+
159
+
160
+ localVarHeaderParameter['Content-Type'] = 'application/json';
161
+
162
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
163
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
164
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
165
+ localVarRequestOptions.data = serializeDataIfNeeded(stopExecutionsRequest, localVarRequestOptions, configuration)
166
+
167
+ return {
168
+ url: toPathString(localVarUrlObj),
169
+ options: localVarRequestOptions,
170
+ };
171
+ },
172
+ }
173
+ };
174
+
175
+ /**
176
+ * ExecutionsApi - functional programming interface
177
+ * @export
178
+ */
179
+ export const ExecutionsApiFp = function(configuration?: Configuration) {
180
+ const localVarAxiosParamCreator = ExecutionsApiAxiosParamCreator(configuration)
181
+ return {
182
+ /**
183
+ *
184
+ * @summary List workflow executions
185
+ * @param {string} workflowId Filter results by workflow id
186
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
187
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
188
+ * @param {number} [limit] Number of items to return (max 100)
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ async listWorkflowExecutions(workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkflowExecutions200Response>> {
193
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkflowExecutions(workflowId, startingAfter, endingBefore, limit, options);
194
+ const index = configuration?.serverIndex ?? 0;
195
+ const operationBasePath = operationServerMap['ExecutionsApi.listWorkflowExecutions']?.[index]?.url;
196
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
197
+ },
198
+ /**
199
+ *
200
+ * @summary Retrieve execution
201
+ * @param {string} id System-generated unique identifier
202
+ * @param {string} [idType] Type of identifier used in the URL
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ async retrieveExecution(id: string, idType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetrieveExecution200Response>> {
207
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveExecution(id, idType, options);
208
+ const index = configuration?.serverIndex ?? 0;
209
+ const operationBasePath = operationServerMap['ExecutionsApi.retrieveExecution']?.[index]?.url;
210
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
211
+ },
212
+ /**
213
+ *
214
+ * @summary Stop executions
215
+ * @param {StopExecutionsRequest} [stopExecutionsRequest]
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ async stopExecutions(stopExecutionsRequest?: StopExecutionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
220
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stopExecutions(stopExecutionsRequest, options);
221
+ const index = configuration?.serverIndex ?? 0;
222
+ const operationBasePath = operationServerMap['ExecutionsApi.stopExecutions']?.[index]?.url;
223
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
224
+ },
225
+ }
226
+ };
227
+
228
+ /**
229
+ * ExecutionsApi - factory interface
230
+ * @export
231
+ */
232
+ export const ExecutionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
233
+ const localVarFp = ExecutionsApiFp(configuration)
234
+ return {
235
+ /**
236
+ *
237
+ * @summary List workflow executions
238
+ * @param {string} workflowId Filter results by workflow id
239
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
240
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
241
+ * @param {number} [limit] Number of items to return (max 100)
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ */
245
+ listWorkflowExecutions(workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, options?: any): AxiosPromise<ListWorkflowExecutions200Response> {
246
+ return localVarFp.listWorkflowExecutions(workflowId, startingAfter, endingBefore, limit, options).then((request) => request(axios, basePath));
247
+ },
248
+ /**
249
+ *
250
+ * @summary Retrieve execution
251
+ * @param {string} id System-generated unique identifier
252
+ * @param {string} [idType] Type of identifier used in the URL
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ */
256
+ retrieveExecution(id: string, idType?: string, options?: any): AxiosPromise<RetrieveExecution200Response> {
257
+ return localVarFp.retrieveExecution(id, idType, options).then((request) => request(axios, basePath));
258
+ },
259
+ /**
260
+ *
261
+ * @summary Stop executions
262
+ * @param {StopExecutionsRequest} [stopExecutionsRequest]
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ stopExecutions(stopExecutionsRequest?: StopExecutionsRequest, options?: any): AxiosPromise<object> {
267
+ return localVarFp.stopExecutions(stopExecutionsRequest, options).then((request) => request(axios, basePath));
268
+ },
269
+ };
270
+ };
271
+
272
+ /**
273
+ * ExecutionsApi - interface
274
+ * @export
275
+ * @interface ExecutionsApi
276
+ */
277
+ export interface ExecutionsApiInterface {
278
+ /**
279
+ *
280
+ * @summary List workflow executions
281
+ * @param {string} workflowId Filter results by workflow id
282
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
283
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
284
+ * @param {number} [limit] Number of items to return (max 100)
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ * @memberof ExecutionsApiInterface
288
+ */
289
+ listWorkflowExecutions(workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ListWorkflowExecutions200Response>;
290
+
291
+ /**
292
+ *
293
+ * @summary Retrieve execution
294
+ * @param {string} id System-generated unique identifier
295
+ * @param {string} [idType] Type of identifier used in the URL
296
+ * @param {*} [options] Override http request option.
297
+ * @throws {RequiredError}
298
+ * @memberof ExecutionsApiInterface
299
+ */
300
+ retrieveExecution(id: string, idType?: string, options?: RawAxiosRequestConfig): AxiosPromise<RetrieveExecution200Response>;
301
+
302
+ /**
303
+ *
304
+ * @summary Stop executions
305
+ * @param {StopExecutionsRequest} [stopExecutionsRequest]
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ * @memberof ExecutionsApiInterface
309
+ */
310
+ stopExecutions(stopExecutionsRequest?: StopExecutionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
311
+
312
+ }
313
+
314
+ /**
315
+ * ExecutionsApi - object-oriented interface
316
+ * @export
317
+ * @class ExecutionsApi
318
+ * @extends {BaseAPI}
319
+ */
320
+ export class ExecutionsApi extends BaseAPI implements ExecutionsApiInterface {
321
+ /**
322
+ *
323
+ * @summary List workflow executions
324
+ * @param {string} workflowId Filter results by workflow id
325
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
326
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
327
+ * @param {number} [limit] Number of items to return (max 100)
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ * @memberof ExecutionsApi
331
+ */
332
+ public listWorkflowExecutions(workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig) {
333
+ return ExecutionsApiFp(this.configuration).listWorkflowExecutions(workflowId, startingAfter, endingBefore, limit, options).then((request) => request(this.axios, this.basePath));
334
+ }
335
+
336
+ /**
337
+ *
338
+ * @summary Retrieve execution
339
+ * @param {string} id System-generated unique identifier
340
+ * @param {string} [idType] Type of identifier used in the URL
341
+ * @param {*} [options] Override http request option.
342
+ * @throws {RequiredError}
343
+ * @memberof ExecutionsApi
344
+ */
345
+ public retrieveExecution(id: string, idType?: string, options?: RawAxiosRequestConfig) {
346
+ return ExecutionsApiFp(this.configuration).retrieveExecution(id, idType, options).then((request) => request(this.axios, this.basePath));
347
+ }
348
+
349
+ /**
350
+ *
351
+ * @summary Stop executions
352
+ * @param {StopExecutionsRequest} [stopExecutionsRequest]
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ * @memberof ExecutionsApi
356
+ */
357
+ public stopExecutions(stopExecutionsRequest?: StopExecutionsRequest, options?: RawAxiosRequestConfig) {
358
+ return ExecutionsApiFp(this.configuration).stopExecutions(stopExecutionsRequest, options).then((request) => request(this.axios, this.basePath));
359
+ }
360
+ }
361
+