@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
@@ -12,15 +12,26 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { ExportConfiguration200Response } from '../models';
15
16
  import { ImportConfiguration201Response } from '../models';
16
17
  import { ImportConfigurationRequest } from '../models';
17
18
  import { RetrieveAccount200Response } from '../models';
19
+ import { RetrieveAccountUsage200Response } from '../models';
18
20
  import { UpdateAccountRequest } from '../models';
19
21
  /**
20
22
  * AccountsApi - axios parameter creator
21
23
  * @export
22
24
  */
23
25
  export declare const AccountsApiAxiosParamCreator: (configuration?: Configuration) => {
26
+ /**
27
+ *
28
+ * @summary Export configuration
29
+ * @param {ExportConfigurationSchemaFormatEnum} [schemaFormat]
30
+ * @param {Array<ExportConfigurationSectionsEnum>} [sections]
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ exportConfiguration: (schemaFormat?: ExportConfigurationSchemaFormatEnum, sections?: Array<ExportConfigurationSectionsEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24
35
  /**
25
36
  *
26
37
  * @summary Import configuration
@@ -36,6 +47,16 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
36
47
  * @throws {RequiredError}
37
48
  */
38
49
  retrieveAccount: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
50
+ /**
51
+ *
52
+ * @summary Retrieve account usage
53
+ * @param {string} [startTime]
54
+ * @param {string} [endTime]
55
+ * @param {string} [userKey] User key to filter usage for a specific user
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ retrieveAccountUsage: (startTime?: string, endTime?: string, userKey?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39
60
  /**
40
61
  *
41
62
  * @summary Update account
@@ -50,6 +71,15 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
50
71
  * @export
51
72
  */
52
73
  export declare const AccountsApiFp: (configuration?: Configuration) => {
74
+ /**
75
+ *
76
+ * @summary Export configuration
77
+ * @param {ExportConfigurationSchemaFormatEnum} [schemaFormat]
78
+ * @param {Array<ExportConfigurationSectionsEnum>} [sections]
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ exportConfiguration(schemaFormat?: ExportConfigurationSchemaFormatEnum, sections?: Array<ExportConfigurationSectionsEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportConfiguration200Response>>;
53
83
  /**
54
84
  *
55
85
  * @summary Import configuration
@@ -65,6 +95,16 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
65
95
  * @throws {RequiredError}
66
96
  */
67
97
  retrieveAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetrieveAccount200Response>>;
98
+ /**
99
+ *
100
+ * @summary Retrieve account usage
101
+ * @param {string} [startTime]
102
+ * @param {string} [endTime]
103
+ * @param {string} [userKey] User key to filter usage for a specific user
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ retrieveAccountUsage(startTime?: string, endTime?: string, userKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetrieveAccountUsage200Response>>;
68
108
  /**
69
109
  *
70
110
  * @summary Update account
@@ -79,6 +119,15 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
79
119
  * @export
80
120
  */
81
121
  export declare const AccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
122
+ /**
123
+ *
124
+ * @summary Export configuration
125
+ * @param {ExportConfigurationSchemaFormatEnum} [schemaFormat]
126
+ * @param {Array<ExportConfigurationSectionsEnum>} [sections]
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ exportConfiguration(schemaFormat?: ExportConfigurationSchemaFormatEnum, sections?: Array<ExportConfigurationSectionsEnum>, options?: any): AxiosPromise<ExportConfiguration200Response>;
82
131
  /**
83
132
  *
84
133
  * @summary Import configuration
@@ -94,6 +143,16 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
94
143
  * @throws {RequiredError}
95
144
  */
96
145
  retrieveAccount(options?: any): AxiosPromise<RetrieveAccount200Response>;
146
+ /**
147
+ *
148
+ * @summary Retrieve account usage
149
+ * @param {string} [startTime]
150
+ * @param {string} [endTime]
151
+ * @param {string} [userKey] User key to filter usage for a specific user
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ retrieveAccountUsage(startTime?: string, endTime?: string, userKey?: string, options?: any): AxiosPromise<RetrieveAccountUsage200Response>;
97
156
  /**
98
157
  *
99
158
  * @summary Update account
@@ -109,6 +168,16 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
109
168
  * @interface AccountsApi
110
169
  */
111
170
  export interface AccountsApiInterface {
171
+ /**
172
+ *
173
+ * @summary Export configuration
174
+ * @param {ExportConfigurationSchemaFormatEnum} [schemaFormat]
175
+ * @param {Array<ExportConfigurationSectionsEnum>} [sections]
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ * @memberof AccountsApiInterface
179
+ */
180
+ exportConfiguration(schemaFormat?: ExportConfigurationSchemaFormatEnum, sections?: Array<ExportConfigurationSectionsEnum>, options?: RawAxiosRequestConfig): AxiosPromise<ExportConfiguration200Response>;
112
181
  /**
113
182
  *
114
183
  * @summary Import configuration
@@ -126,6 +195,17 @@ export interface AccountsApiInterface {
126
195
  * @memberof AccountsApiInterface
127
196
  */
128
197
  retrieveAccount(options?: RawAxiosRequestConfig): AxiosPromise<RetrieveAccount200Response>;
198
+ /**
199
+ *
200
+ * @summary Retrieve account usage
201
+ * @param {string} [startTime]
202
+ * @param {string} [endTime]
203
+ * @param {string} [userKey] User key to filter usage for a specific user
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ * @memberof AccountsApiInterface
207
+ */
208
+ retrieveAccountUsage(startTime?: string, endTime?: string, userKey?: string, options?: RawAxiosRequestConfig): AxiosPromise<RetrieveAccountUsage200Response>;
129
209
  /**
130
210
  *
131
211
  * @summary Update account
@@ -143,6 +223,16 @@ export interface AccountsApiInterface {
143
223
  * @extends {BaseAPI}
144
224
  */
145
225
  export declare class AccountsApi extends BaseAPI implements AccountsApiInterface {
226
+ /**
227
+ *
228
+ * @summary Export configuration
229
+ * @param {ExportConfigurationSchemaFormatEnum} [schemaFormat]
230
+ * @param {Array<ExportConfigurationSectionsEnum>} [sections]
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ * @memberof AccountsApi
234
+ */
235
+ exportConfiguration(schemaFormat?: ExportConfigurationSchemaFormatEnum, sections?: Array<ExportConfigurationSectionsEnum>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportConfiguration200Response, any, {}>>;
146
236
  /**
147
237
  *
148
238
  * @summary Import configuration
@@ -151,7 +241,7 @@ export declare class AccountsApi extends BaseAPI implements AccountsApiInterface
151
241
  * @throws {RequiredError}
152
242
  * @memberof AccountsApi
153
243
  */
154
- importConfiguration(importConfigurationRequest?: ImportConfigurationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportConfiguration201Response, any>>;
244
+ importConfiguration(importConfigurationRequest?: ImportConfigurationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportConfiguration201Response, any, {}>>;
155
245
  /**
156
246
  *
157
247
  * @summary Retrieve account
@@ -159,7 +249,18 @@ export declare class AccountsApi extends BaseAPI implements AccountsApiInterface
159
249
  * @throws {RequiredError}
160
250
  * @memberof AccountsApi
161
251
  */
162
- retrieveAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RetrieveAccount200Response, any>>;
252
+ retrieveAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RetrieveAccount200Response, any, {}>>;
253
+ /**
254
+ *
255
+ * @summary Retrieve account usage
256
+ * @param {string} [startTime]
257
+ * @param {string} [endTime]
258
+ * @param {string} [userKey] User key to filter usage for a specific user
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ * @memberof AccountsApi
262
+ */
263
+ retrieveAccountUsage(startTime?: string, endTime?: string, userKey?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RetrieveAccountUsage200Response, any, {}>>;
163
264
  /**
164
265
  *
165
266
  * @summary Update account
@@ -168,5 +269,25 @@ export declare class AccountsApi extends BaseAPI implements AccountsApiInterface
168
269
  * @throws {RequiredError}
169
270
  * @memberof AccountsApi
170
271
  */
171
- updateAccount(updateAccountRequest?: UpdateAccountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RetrieveAccount200Response, any>>;
272
+ updateAccount(updateAccountRequest?: UpdateAccountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RetrieveAccount200Response, any, {}>>;
172
273
  }
274
+ /**
275
+ * @export
276
+ */
277
+ export declare const ExportConfigurationSchemaFormatEnum: {
278
+ readonly Yaml: "yaml";
279
+ readonly Json: "json";
280
+ };
281
+ export type ExportConfigurationSchemaFormatEnum = typeof ExportConfigurationSchemaFormatEnum[keyof typeof ExportConfigurationSchemaFormatEnum];
282
+ /**
283
+ * @export
284
+ */
285
+ export declare const ExportConfigurationSectionsEnum: {
286
+ readonly ActionTypes: "action_types";
287
+ readonly Triggers: "triggers";
288
+ readonly Workflows: "workflows";
289
+ readonly Apps: "apps";
290
+ readonly UserDataSchema: "user_data_schema";
291
+ readonly AccountDataSchema: "account_data_schema";
292
+ };
293
+ export type ExportConfigurationSectionsEnum = typeof ExportConfigurationSectionsEnum[keyof typeof ExportConfigurationSectionsEnum];
@@ -32,6 +32,42 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
32
32
  */
33
33
  export const AccountsApiAxiosParamCreator = function (configuration) {
34
34
  return {
35
+ /**
36
+ *
37
+ * @summary Export configuration
38
+ * @param {ExportConfigurationSchemaFormatEnum} [schemaFormat]
39
+ * @param {Array<ExportConfigurationSectionsEnum>} [sections]
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ exportConfiguration: (schemaFormat, sections, options = {}) => __awaiter(this, void 0, void 0, function* () {
44
+ const localVarPath = `/api/v1/configurations/export`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
52
+ const localVarHeaderParameter = {};
53
+ const localVarQueryParameter = {};
54
+ // authentication bearer required
55
+ // http bearer authentication required
56
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
57
+ if (schemaFormat !== undefined) {
58
+ localVarQueryParameter['schema_format'] = schemaFormat;
59
+ }
60
+ if (sections) {
61
+ localVarQueryParameter['sections'] = sections;
62
+ }
63
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
64
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
66
+ return {
67
+ url: toPathString(localVarUrlObj),
68
+ options: localVarRequestOptions,
69
+ };
70
+ }),
35
71
  /**
36
72
  *
37
73
  * @summary Import configuration
@@ -91,6 +127,50 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
91
127
  options: localVarRequestOptions,
92
128
  };
93
129
  }),
130
+ /**
131
+ *
132
+ * @summary Retrieve account usage
133
+ * @param {string} [startTime]
134
+ * @param {string} [endTime]
135
+ * @param {string} [userKey] User key to filter usage for a specific user
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ retrieveAccountUsage: (startTime, endTime, userKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
140
+ const localVarPath = `/api/v1/account/usage`;
141
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
142
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
143
+ let baseOptions;
144
+ if (configuration) {
145
+ baseOptions = configuration.baseOptions;
146
+ }
147
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
148
+ const localVarHeaderParameter = {};
149
+ const localVarQueryParameter = {};
150
+ // authentication bearer required
151
+ // http bearer authentication required
152
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
153
+ if (startTime !== undefined) {
154
+ localVarQueryParameter['start_time'] = (startTime instanceof Date) ?
155
+ startTime.toISOString() :
156
+ startTime;
157
+ }
158
+ if (endTime !== undefined) {
159
+ localVarQueryParameter['end_time'] = (endTime instanceof Date) ?
160
+ endTime.toISOString() :
161
+ endTime;
162
+ }
163
+ if (userKey !== undefined) {
164
+ localVarQueryParameter['user_key'] = userKey;
165
+ }
166
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
167
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
168
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
169
+ return {
170
+ url: toPathString(localVarUrlObj),
171
+ options: localVarRequestOptions,
172
+ };
173
+ }),
94
174
  /**
95
175
  *
96
176
  * @summary Update account
@@ -131,6 +211,23 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
131
211
  export const AccountsApiFp = function (configuration) {
132
212
  const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration);
133
213
  return {
214
+ /**
215
+ *
216
+ * @summary Export configuration
217
+ * @param {ExportConfigurationSchemaFormatEnum} [schemaFormat]
218
+ * @param {Array<ExportConfigurationSectionsEnum>} [sections]
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ exportConfiguration(schemaFormat, sections, options) {
223
+ var _a, _b, _c;
224
+ return __awaiter(this, void 0, void 0, function* () {
225
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportConfiguration(schemaFormat, sections, options);
226
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
227
+ const operationBasePath = (_c = (_b = operationServerMap['AccountsApi.exportConfiguration']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
228
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
229
+ });
230
+ },
134
231
  /**
135
232
  *
136
233
  * @summary Import configuration
@@ -162,6 +259,24 @@ export const AccountsApiFp = function (configuration) {
162
259
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
163
260
  });
164
261
  },
262
+ /**
263
+ *
264
+ * @summary Retrieve account usage
265
+ * @param {string} [startTime]
266
+ * @param {string} [endTime]
267
+ * @param {string} [userKey] User key to filter usage for a specific user
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ retrieveAccountUsage(startTime, endTime, userKey, options) {
272
+ var _a, _b, _c;
273
+ return __awaiter(this, void 0, void 0, function* () {
274
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.retrieveAccountUsage(startTime, endTime, userKey, options);
275
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
276
+ const operationBasePath = (_c = (_b = operationServerMap['AccountsApi.retrieveAccountUsage']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
277
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
278
+ });
279
+ },
165
280
  /**
166
281
  *
167
282
  * @summary Update account
@@ -187,6 +302,17 @@ export const AccountsApiFp = function (configuration) {
187
302
  export const AccountsApiFactory = function (configuration, basePath, axios) {
188
303
  const localVarFp = AccountsApiFp(configuration);
189
304
  return {
305
+ /**
306
+ *
307
+ * @summary Export configuration
308
+ * @param {ExportConfigurationSchemaFormatEnum} [schemaFormat]
309
+ * @param {Array<ExportConfigurationSectionsEnum>} [sections]
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ exportConfiguration(schemaFormat, sections, options) {
314
+ return localVarFp.exportConfiguration(schemaFormat, sections, options).then((request) => request(axios, basePath));
315
+ },
190
316
  /**
191
317
  *
192
318
  * @summary Import configuration
@@ -206,6 +332,18 @@ export const AccountsApiFactory = function (configuration, basePath, axios) {
206
332
  retrieveAccount(options) {
207
333
  return localVarFp.retrieveAccount(options).then((request) => request(axios, basePath));
208
334
  },
335
+ /**
336
+ *
337
+ * @summary Retrieve account usage
338
+ * @param {string} [startTime]
339
+ * @param {string} [endTime]
340
+ * @param {string} [userKey] User key to filter usage for a specific user
341
+ * @param {*} [options] Override http request option.
342
+ * @throws {RequiredError}
343
+ */
344
+ retrieveAccountUsage(startTime, endTime, userKey, options) {
345
+ return localVarFp.retrieveAccountUsage(startTime, endTime, userKey, options).then((request) => request(axios, basePath));
346
+ },
209
347
  /**
210
348
  *
211
349
  * @summary Update account
@@ -225,6 +363,18 @@ export const AccountsApiFactory = function (configuration, basePath, axios) {
225
363
  * @extends {BaseAPI}
226
364
  */
227
365
  export class AccountsApi extends BaseAPI {
366
+ /**
367
+ *
368
+ * @summary Export configuration
369
+ * @param {ExportConfigurationSchemaFormatEnum} [schemaFormat]
370
+ * @param {Array<ExportConfigurationSectionsEnum>} [sections]
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ * @memberof AccountsApi
374
+ */
375
+ exportConfiguration(schemaFormat, sections, options) {
376
+ return AccountsApiFp(this.configuration).exportConfiguration(schemaFormat, sections, options).then((request) => request(this.axios, this.basePath));
377
+ }
228
378
  /**
229
379
  *
230
380
  * @summary Import configuration
@@ -246,6 +396,19 @@ export class AccountsApi extends BaseAPI {
246
396
  retrieveAccount(options) {
247
397
  return AccountsApiFp(this.configuration).retrieveAccount(options).then((request) => request(this.axios, this.basePath));
248
398
  }
399
+ /**
400
+ *
401
+ * @summary Retrieve account usage
402
+ * @param {string} [startTime]
403
+ * @param {string} [endTime]
404
+ * @param {string} [userKey] User key to filter usage for a specific user
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ * @memberof AccountsApi
408
+ */
409
+ retrieveAccountUsage(startTime, endTime, userKey, options) {
410
+ return AccountsApiFp(this.configuration).retrieveAccountUsage(startTime, endTime, userKey, options).then((request) => request(this.axios, this.basePath));
411
+ }
249
412
  /**
250
413
  *
251
414
  * @summary Update account
@@ -258,3 +421,21 @@ export class AccountsApi extends BaseAPI {
258
421
  return AccountsApiFp(this.configuration).updateAccount(updateAccountRequest, options).then((request) => request(this.axios, this.basePath));
259
422
  }
260
423
  }
424
+ /**
425
+ * @export
426
+ */
427
+ export const ExportConfigurationSchemaFormatEnum = {
428
+ Yaml: 'yaml',
429
+ Json: 'json'
430
+ };
431
+ /**
432
+ * @export
433
+ */
434
+ export const ExportConfigurationSectionsEnum = {
435
+ ActionTypes: 'action_types',
436
+ Triggers: 'triggers',
437
+ Workflows: 'workflows',
438
+ Apps: 'apps',
439
+ UserDataSchema: 'user_data_schema',
440
+ AccountDataSchema: 'account_data_schema'
441
+ };