@embedworkflow/sdk 1.1.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 (218) 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 +16 -11
  26. package/dist/api/action-types-api.js +14 -7
  27. package/dist/api/actions-api.d.ts +6 -6
  28. package/dist/api/app-connections-api.d.ts +5 -5
  29. package/dist/api/available-apps-api.d.ts +2 -2
  30. package/dist/api/data-fields-api.d.ts +46 -2
  31. package/dist/api/data-fields-api.js +68 -0
  32. package/dist/api/events-api.d.ts +1 -1
  33. package/dist/api/executions-api.d.ts +3 -3
  34. package/dist/api/installed-apps-api.d.ts +4 -4
  35. package/dist/api/payments-api.d.ts +1 -1
  36. package/dist/api/triggers-api.d.ts +14 -14
  37. package/dist/api/triggers-api.js +12 -12
  38. package/dist/api/users-api.d.ts +14 -9
  39. package/dist/api/users-api.js +14 -7
  40. package/dist/api/workflows-api.d.ts +96 -15
  41. package/dist/api/workflows-api.js +125 -8
  42. package/dist/common.d.ts +1 -1
  43. package/dist/esm/api/accounts-api.d.ts +124 -3
  44. package/dist/esm/api/accounts-api.js +181 -0
  45. package/dist/esm/api/action-types-api.d.ts +16 -11
  46. package/dist/esm/api/action-types-api.js +14 -7
  47. package/dist/esm/api/actions-api.d.ts +6 -6
  48. package/dist/esm/api/app-connections-api.d.ts +5 -5
  49. package/dist/esm/api/available-apps-api.d.ts +2 -2
  50. package/dist/esm/api/data-fields-api.d.ts +46 -2
  51. package/dist/esm/api/data-fields-api.js +69 -1
  52. package/dist/esm/api/events-api.d.ts +1 -1
  53. package/dist/esm/api/executions-api.d.ts +3 -3
  54. package/dist/esm/api/installed-apps-api.d.ts +4 -4
  55. package/dist/esm/api/payments-api.d.ts +1 -1
  56. package/dist/esm/api/triggers-api.d.ts +14 -14
  57. package/dist/esm/api/triggers-api.js +12 -12
  58. package/dist/esm/api/users-api.d.ts +14 -9
  59. package/dist/esm/api/users-api.js +14 -7
  60. package/dist/esm/api/workflows-api.d.ts +96 -15
  61. package/dist/esm/api/workflows-api.js +124 -7
  62. package/dist/esm/common.d.ts +1 -1
  63. package/dist/esm/models/catch-hook-request.d.ts +25 -0
  64. package/dist/esm/models/create-action-type-request-form-draft-inner.d.ts +6 -0
  65. package/dist/esm/models/create-action-type-request.d.ts +12 -0
  66. package/dist/esm/models/create-workflow201-response.d.ts +58 -11
  67. package/dist/esm/models/create-workflow201-response.js +4 -0
  68. package/dist/esm/models/evaluate-expression-request.d.ts +32 -0
  69. package/dist/esm/models/evaluate-expression200-response.d.ts +24 -0
  70. package/dist/esm/models/export-configuration200-response-configuration.d.ts +16 -0
  71. package/dist/esm/models/export-configuration200-response.d.ts +25 -0
  72. package/dist/esm/models/index.d.ts +9 -0
  73. package/dist/esm/models/index.js +9 -0
  74. package/dist/esm/models/list-action-types200-response-collection-inner.d.ts +58 -0
  75. package/dist/esm/models/list-action-types200-response-collection-inner.js +9 -0
  76. package/dist/esm/models/list-data-fields200-response-collection-inner.d.ts +18 -0
  77. package/dist/esm/models/list-triggers200-response-collection-inner.d.ts +18 -0
  78. package/dist/esm/models/list-users200-response-collection-inner.d.ts +6 -6
  79. package/dist/esm/models/list-workflows200-response-collection-inner.d.ts +29 -5
  80. package/dist/esm/models/retrieve-account-usage200-response.d.ts +60 -0
  81. package/dist/esm/models/retrieve-account-usage200-response.js +14 -0
  82. package/dist/esm/models/retrieve-account200-response.d.ts +19 -1
  83. package/dist/esm/models/{api-v1-action-types-post-request-icon-draft.d.ts → update-account-request-action-type-categories-inner-icon.d.ts} +10 -10
  84. package/dist/esm/models/update-account-request-action-type-categories-inner-icon.js +14 -0
  85. package/dist/esm/models/update-account-request-action-type-categories-inner.d.ts +43 -0
  86. package/dist/esm/models/update-account-request-action-type-categories-inner.js +14 -0
  87. package/dist/esm/models/update-account-request.d.ts +13 -0
  88. package/dist/esm/models/update-action-type-request.d.ts +12 -0
  89. package/dist/esm/models/update-trigger-request.d.ts +30 -0
  90. package/dist/esm/models/update-trigger-request.js +14 -0
  91. package/dist/esm/models/update-workflow-request.d.ts +7 -1
  92. package/dist/esm/models/upsert-user-request.d.ts +6 -0
  93. package/dist/models/catch-hook-request.d.ts +25 -0
  94. package/dist/models/create-action-type-request-form-draft-inner.d.ts +6 -0
  95. package/dist/models/create-action-type-request.d.ts +12 -0
  96. package/dist/models/create-workflow201-response.d.ts +58 -11
  97. package/dist/models/create-workflow201-response.js +5 -1
  98. package/dist/models/evaluate-expression-request.d.ts +32 -0
  99. package/dist/models/evaluate-expression200-response.d.ts +24 -0
  100. package/dist/models/export-configuration200-response-configuration.d.ts +16 -0
  101. package/dist/models/export-configuration200-response.d.ts +25 -0
  102. package/dist/models/index.d.ts +9 -0
  103. package/dist/models/index.js +9 -0
  104. package/dist/models/list-action-types200-response-collection-inner.d.ts +58 -0
  105. package/dist/models/list-action-types200-response-collection-inner.js +10 -1
  106. package/dist/models/list-data-fields200-response-collection-inner.d.ts +18 -0
  107. package/dist/models/list-triggers200-response-collection-inner.d.ts +18 -0
  108. package/dist/models/list-users200-response-collection-inner.d.ts +6 -6
  109. package/dist/models/list-workflows200-response-collection-inner.d.ts +29 -5
  110. package/dist/models/retrieve-account-usage200-response.d.ts +60 -0
  111. package/dist/models/retrieve-account-usage200-response.js +15 -0
  112. package/dist/models/retrieve-account200-response.d.ts +19 -1
  113. package/dist/{esm/models/retrieve-action-type404-response.d.ts → models/update-account-request-action-type-categories-inner-icon.d.ts} +12 -12
  114. package/dist/models/update-account-request-action-type-categories-inner-icon.js +15 -0
  115. package/dist/models/update-account-request-action-type-categories-inner.d.ts +43 -0
  116. package/dist/models/update-account-request-action-type-categories-inner.js +15 -0
  117. package/dist/models/update-account-request.d.ts +13 -0
  118. package/dist/models/update-action-type-request.d.ts +12 -0
  119. package/dist/models/update-trigger-request.d.ts +30 -0
  120. package/dist/models/update-trigger-request.js +15 -0
  121. package/dist/models/update-workflow-request.d.ts +7 -1
  122. package/dist/models/upsert-user-request.d.ts +6 -0
  123. package/git_push.sh +57 -0
  124. package/index.ts +111 -0
  125. package/models/catch-hook-request.ts +32 -0
  126. package/models/create-action-type-request-form-draft-inner.ts +88 -0
  127. package/{dist/models/api-v1-action-types-post-request-icon-draft.d.ts → models/create-action-type-request-icon-draft.ts} +12 -6
  128. package/{dist/models/api-v1-action-types-post-request.d.ts → models/create-action-type-request.ts} +49 -25
  129. package/{dist/models/retrieve-action-type404-response.d.ts → models/create-action-type422-response.ts} +13 -7
  130. package/{dist/esm/models/api-v1-app-connections-post-request.d.ts → models/create-app-connection-request.ts} +14 -8
  131. package/models/create-user-token-request.ts +38 -0
  132. package/models/create-user-token200-response.ts +30 -0
  133. package/models/create-workflow-request-template-draft-nodes-inner.ts +138 -0
  134. package/models/create-workflow-request-template-draft.ts +39 -0
  135. package/models/create-workflow-request.ts +75 -0
  136. package/{dist/esm/models/retrieve-workflow200-response.d.ts → models/create-workflow201-response.ts} +111 -60
  137. package/models/delete-action-type200-response.ts +30 -0
  138. package/{dist/esm/models/api-v1-action-types-post-request-form-draft-inner.js → models/delete-workflow200-response-one-of.ts} +18 -13
  139. package/models/delete-workflow200-response-one-of1.ts +30 -0
  140. package/models/delete-workflow200-response.ts +30 -0
  141. package/models/discard-workflow-draft-request.ts +36 -0
  142. package/models/evaluate-expression-request.ts +36 -0
  143. package/models/evaluate-expression200-response.ts +30 -0
  144. package/models/execute-workflow-request.ts +50 -0
  145. package/models/execute-workflow201-response.ts +126 -0
  146. package/models/export-configuration200-response-configuration.ts +23 -0
  147. package/models/export-configuration200-response.ts +33 -0
  148. package/models/import-configuration-request-schema.ts +24 -0
  149. package/models/import-configuration-request.ts +50 -0
  150. package/models/import-configuration201-response.ts +60 -0
  151. package/models/index.ts +70 -0
  152. package/models/install-app-request.ts +36 -0
  153. package/{dist/models/retrieve-installed-app200-response.d.ts → models/install-app201-response.ts} +28 -24
  154. package/models/list-action-types200-response-collection-inner.ts +325 -0
  155. package/models/list-action-types200-response-meta.ts +42 -0
  156. package/models/list-action-types200-response.ts +42 -0
  157. package/models/list-actions200-response-collection-inner.ts +150 -0
  158. package/models/list-actions200-response.ts +42 -0
  159. package/models/list-app-connections200-response-collection-inner.ts +72 -0
  160. package/models/list-app-connections200-response.ts +42 -0
  161. package/models/list-available-apps200-response-collection-inner.ts +72 -0
  162. package/models/list-available-apps200-response.ts +42 -0
  163. package/{dist/esm/models/clone-workflow201-response.js → models/list-data-fields-type-parameter.ts} +11 -5
  164. package/models/list-data-fields200-response-collection-inner.ts +108 -0
  165. package/models/list-data-fields200-response.ts +42 -0
  166. package/models/list-events200-response-collection-inner.ts +84 -0
  167. package/models/list-events200-response.ts +42 -0
  168. package/{dist/esm/models/retrieve-installed-app200-response.d.ts → models/list-installed-apps200-response-collection-inner.ts} +26 -28
  169. package/models/list-installed-apps200-response.ts +42 -0
  170. package/models/list-triggers200-response-collection-inner.ts +126 -0
  171. package/models/list-triggers200-response.ts +42 -0
  172. package/models/list-users200-response-collection-inner.ts +90 -0
  173. package/models/list-users200-response.ts +42 -0
  174. package/models/list-workflow-executions200-response.ts +42 -0
  175. package/models/list-workflow-versions200-response-collection-inner.ts +66 -0
  176. package/models/list-workflow-versions200-response.ts +42 -0
  177. package/{dist/models/retrieve-workflow200-response.d.ts → models/list-workflows200-response-collection-inner.ts} +76 -79
  178. package/models/list-workflows200-response.ts +42 -0
  179. package/models/publish-workflow-request.ts +30 -0
  180. package/models/retrieve-account-usage200-response.ts +66 -0
  181. package/models/retrieve-account200-response.ts +114 -0
  182. package/models/retrieve-available-app200-response.ts +78 -0
  183. package/models/retrieve-execution200-response.ts +138 -0
  184. package/models/retry-action-request.ts +38 -0
  185. package/models/stop-executions-request.ts +38 -0
  186. package/models/trigger-workflow-request.ts +54 -0
  187. package/models/update-account-request-action-type-categories-inner-icon.ts +42 -0
  188. package/models/update-account-request-action-type-categories-inner.ts +51 -0
  189. package/models/update-account-request-user-data-schema-inner.ts +54 -0
  190. package/models/update-account-request.ts +96 -0
  191. package/models/update-action-type-request.ts +48 -0
  192. package/models/update-installed-app-request.ts +30 -0
  193. package/models/update-trigger-request.ts +36 -0
  194. package/models/update-workflow-request.ts +93 -0
  195. package/models/upsert-user-request.ts +54 -0
  196. package/package.json +4 -6
  197. package/tsconfig.esm.json +7 -0
  198. package/tsconfig.json +18 -0
  199. package/dist/esm/models/api-v1-action-types-post-request-form-draft-inner.d.ts +0 -75
  200. package/dist/esm/models/api-v1-action-types-post-request.d.ts +0 -105
  201. package/dist/esm/models/clone-workflow201-response.d.ts +0 -183
  202. package/dist/esm/models/retrieve-workflow200-response.js +0 -17
  203. package/dist/models/api-v1-action-types-post-request-form-draft-inner.d.ts +0 -75
  204. package/dist/models/api-v1-action-types-post-request-form-draft-inner.js +0 -28
  205. package/dist/models/api-v1-app-connections-post-request.d.ts +0 -42
  206. package/dist/models/clone-workflow201-response.d.ts +0 -183
  207. package/dist/models/clone-workflow201-response.js +0 -20
  208. package/dist/models/retrieve-workflow200-response.js +0 -20
  209. /package/dist/esm/models/{api-v1-action-types-post-request-icon-draft.js → catch-hook-request.js} +0 -0
  210. /package/dist/esm/models/{api-v1-action-types-post-request.js → evaluate-expression-request.js} +0 -0
  211. /package/dist/esm/models/{api-v1-app-connections-post-request.js → evaluate-expression200-response.js} +0 -0
  212. /package/dist/esm/models/{retrieve-action-type404-response.js → export-configuration200-response-configuration.js} +0 -0
  213. /package/dist/esm/models/{retrieve-installed-app200-response.js → export-configuration200-response.js} +0 -0
  214. /package/dist/models/{api-v1-action-types-post-request-icon-draft.js → catch-hook-request.js} +0 -0
  215. /package/dist/models/{api-v1-action-types-post-request.js → evaluate-expression-request.js} +0 -0
  216. /package/dist/models/{api-v1-app-connections-post-request.js → evaluate-expression200-response.js} +0 -0
  217. /package/dist/models/{retrieve-action-type404-response.js → export-configuration200-response-configuration.js} +0 -0
  218. /package/dist/models/{retrieve-installed-app200-response.js → export-configuration200-response.js} +0 -0
@@ -21,6 +21,24 @@ export interface ListActionTypes200ResponseCollectionInner {
21
21
  * @memberof ListActionTypes200ResponseCollectionInner
22
22
  */
23
23
  'id'?: string;
24
+ /**
25
+ * Human-readable name of the app connection
26
+ * @type {string}
27
+ * @memberof ListActionTypes200ResponseCollectionInner
28
+ */
29
+ 'app_name'?: string | null;
30
+ /**
31
+ * Callback timeout duration value
32
+ * @type {number}
33
+ * @memberof ListActionTypes200ResponseCollectionInner
34
+ */
35
+ 'callback_timeout_n'?: number | null;
36
+ /**
37
+ * Callback timeout duration unit
38
+ * @type {string}
39
+ * @memberof ListActionTypes200ResponseCollectionInner
40
+ */
41
+ 'callback_timeout_unit'?: ListActionTypes200ResponseCollectionInnerCallbackTimeoutUnitEnum | null;
24
42
  /**
25
43
  * Code content for the action type
26
44
  * @type {string}
@@ -57,6 +75,12 @@ export interface ListActionTypes200ResponseCollectionInner {
57
75
  * @memberof ListActionTypes200ResponseCollectionInner
58
76
  */
59
77
  'description'?: string | null;
78
+ /**
79
+ * Number of times this action type has been executed
80
+ * @type {number}
81
+ * @memberof ListActionTypes200ResponseCollectionInner
82
+ */
83
+ 'executed_count'?: number;
60
84
  /**
61
85
  * Permission groups for this action type
62
86
  * @type {Array<string>}
@@ -109,6 +133,24 @@ export interface ListActionTypes200ResponseCollectionInner {
109
133
  * @memberof ListActionTypes200ResponseCollectionInner
110
134
  */
111
135
  'icon_draft'?: object | null;
136
+ /**
137
+ * Last executed at in specified timezone
138
+ * @type {string}
139
+ * @memberof ListActionTypes200ResponseCollectionInner
140
+ */
141
+ 'last_executed_at'?: string | null;
142
+ /**
143
+ * Last executed at formatted as human-readable string
144
+ * @type {string}
145
+ * @memberof ListActionTypes200ResponseCollectionInner
146
+ */
147
+ 'last_executed_at_string'?: string | null;
148
+ /**
149
+ * Last executed at in UTC
150
+ * @type {string}
151
+ * @memberof ListActionTypes200ResponseCollectionInner
152
+ */
153
+ 'last_executed_at_utc'?: string | null;
112
154
  /**
113
155
  * Last published at in specified timezone
114
156
  * @type {string}
@@ -217,6 +259,12 @@ export interface ListActionTypes200ResponseCollectionInner {
217
259
  * @memberof ListActionTypes200ResponseCollectionInner
218
260
  */
219
261
  'url_draft'?: string | null;
262
+ /**
263
+ * When true, actions fire the webhook but wait for an external callback before completing
264
+ * @type {boolean}
265
+ * @memberof ListActionTypes200ResponseCollectionInner
266
+ */
267
+ 'wait_for_callback'?: boolean;
220
268
  /**
221
269
  * Form fields for the action type
222
270
  * @type {Array<object>}
@@ -242,6 +290,16 @@ export interface ListActionTypes200ResponseCollectionInner {
242
290
  */
243
291
  'response_data_schema_draft'?: Array<object>;
244
292
  }
293
+ export declare const ListActionTypes200ResponseCollectionInnerCallbackTimeoutUnitEnum: {
294
+ readonly Sec: "sec";
295
+ readonly Min: "min";
296
+ readonly Hour: "hour";
297
+ readonly Day: "day";
298
+ readonly Week: "week";
299
+ readonly Month: "month";
300
+ readonly Year: "year";
301
+ };
302
+ export type ListActionTypes200ResponseCollectionInnerCallbackTimeoutUnitEnum = typeof ListActionTypes200ResponseCollectionInnerCallbackTimeoutUnitEnum[keyof typeof ListActionTypes200ResponseCollectionInnerCallbackTimeoutUnitEnum];
245
303
  export declare const ListActionTypes200ResponseCollectionInnerHttpMethodEnum: {
246
304
  readonly Get: "get";
247
305
  readonly Post: "post";
@@ -13,7 +13,16 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ListActionTypes200ResponseCollectionInnerHttpMethodDraftEnum = exports.ListActionTypes200ResponseCollectionInnerHttpMethodEnum = void 0;
16
+ exports.ListActionTypes200ResponseCollectionInnerHttpMethodDraftEnum = exports.ListActionTypes200ResponseCollectionInnerHttpMethodEnum = exports.ListActionTypes200ResponseCollectionInnerCallbackTimeoutUnitEnum = void 0;
17
+ exports.ListActionTypes200ResponseCollectionInnerCallbackTimeoutUnitEnum = {
18
+ Sec: 'sec',
19
+ Min: 'min',
20
+ Hour: 'hour',
21
+ Day: 'day',
22
+ Week: 'week',
23
+ Month: 'month',
24
+ Year: 'year'
25
+ };
17
26
  exports.ListActionTypes200ResponseCollectionInnerHttpMethodEnum = {
18
27
  Get: 'get',
19
28
  Post: 'post',
@@ -45,6 +45,18 @@ export interface ListDataFields200ResponseCollectionInner {
45
45
  * @memberof ListDataFields200ResponseCollectionInner
46
46
  */
47
47
  'groups'?: Array<string> | null;
48
+ /**
49
+ * Type of each item in a List (e.g., \'Object\', \'String\', \'Integer\')
50
+ * @type {string}
51
+ * @memberof ListDataFields200ResponseCollectionInner
52
+ */
53
+ 'item_type'?: string | null;
54
+ /**
55
+ * Variable name for the current item when iterating over a List
56
+ * @type {string}
57
+ * @memberof ListDataFields200ResponseCollectionInner
58
+ */
59
+ 'iterator'?: string | null;
48
60
  /**
49
61
  * Variable name for list values
50
62
  * @type {string}
@@ -81,4 +93,10 @@ export interface ListDataFields200ResponseCollectionInner {
81
93
  * @memberof ListDataFields200ResponseCollectionInner
82
94
  */
83
95
  'value'?: string | null;
96
+ /**
97
+ * Nested schema definitions. For arrays: single element defining item type. For objects: multiple elements defining properties
98
+ * @type {Array<object>}
99
+ * @memberof ListDataFields200ResponseCollectionInner
100
+ */
101
+ 'children'?: Array<object> | null;
84
102
  }
@@ -69,6 +69,24 @@ export interface ListTriggers200ResponseCollectionInner {
69
69
  * @memberof ListTriggers200ResponseCollectionInner
70
70
  */
71
71
  'icon'?: object | null;
72
+ /**
73
+ * Last triggered at in specified timezone
74
+ * @type {string}
75
+ * @memberof ListTriggers200ResponseCollectionInner
76
+ */
77
+ 'last_triggered_at'?: string | null;
78
+ /**
79
+ * Last triggered at formatted as human-readable string
80
+ * @type {string}
81
+ * @memberof ListTriggers200ResponseCollectionInner
82
+ */
83
+ 'last_triggered_at_string'?: string | null;
84
+ /**
85
+ * Last triggered at in UTC
86
+ * @type {string}
87
+ * @memberof ListTriggers200ResponseCollectionInner
88
+ */
89
+ 'last_triggered_at_utc'?: string | null;
72
90
  /**
73
91
  * Object type identifier
74
92
  * @type {string}
@@ -51,12 +51,6 @@ export interface ListUsers200ResponseCollectionInner {
51
51
  * @memberof ListUsers200ResponseCollectionInner
52
52
  */
53
53
  'groups'?: Array<string> | null;
54
- /**
55
- * Short hash identifier for the user
56
- * @type {string}
57
- * @memberof ListUsers200ResponseCollectionInner
58
- */
59
- 'hashid'?: string;
60
54
  /**
61
55
  * System-generated unique identifier
62
56
  * @type {string}
@@ -75,6 +69,12 @@ export interface ListUsers200ResponseCollectionInner {
75
69
  * @memberof ListUsers200ResponseCollectionInner
76
70
  */
77
71
  'object'?: string;
72
+ /**
73
+ * Time zone setting for the user in IANA timezone format (e.g. \'America/New_York\', \'Europe/London\', \'Asia/Tokyo\', \'Etc/UTC\')
74
+ * @type {string}
75
+ * @memberof ListUsers200ResponseCollectionInner
76
+ */
77
+ 'time_zone'?: string | null;
78
78
  /**
79
79
  * User\'s data schema configuration
80
80
  * @type {Array<object>}
@@ -16,11 +16,17 @@
16
16
  */
17
17
  export interface ListWorkflows200ResponseCollectionInner {
18
18
  /**
19
- * System-generated unique identifier
19
+ * Unique identifier
20
20
  * @type {string}
21
21
  * @memberof ListWorkflows200ResponseCollectionInner
22
22
  */
23
- 'hashid'?: string;
23
+ 'id'?: string;
24
+ /**
25
+ * Action type IDs used in this workflow\'s template
26
+ * @type {Array<string>}
27
+ * @memberof ListWorkflows200ResponseCollectionInner
28
+ */
29
+ 'action_type_ids'?: Array<string>;
24
30
  /**
25
31
  * Number of actions in the workflow
26
32
  * @type {number}
@@ -76,17 +82,35 @@ export interface ListWorkflows200ResponseCollectionInner {
76
82
  */
77
83
  'has_draft'?: boolean;
78
84
  /**
79
- * Unique identifier
80
- * @type {string}
85
+ * Whether this workflow is managed by the account and read-only
86
+ * @type {boolean}
81
87
  * @memberof ListWorkflows200ResponseCollectionInner
82
88
  */
83
- 'id'?: string;
89
+ 'is_managed'?: boolean;
84
90
  /**
85
91
  * Unique key for the workflow
86
92
  * @type {string}
87
93
  * @memberof ListWorkflows200ResponseCollectionInner
88
94
  */
89
95
  'key'?: string;
96
+ /**
97
+ * Last executed at in specified timezone
98
+ * @type {string}
99
+ * @memberof ListWorkflows200ResponseCollectionInner
100
+ */
101
+ 'last_executed_at'?: string | null;
102
+ /**
103
+ * Last executed at formatted as human-readable string
104
+ * @type {string}
105
+ * @memberof ListWorkflows200ResponseCollectionInner
106
+ */
107
+ 'last_executed_at_string'?: string | null;
108
+ /**
109
+ * Last executed at in UTC
110
+ * @type {string}
111
+ * @memberof ListWorkflows200ResponseCollectionInner
112
+ */
113
+ 'last_executed_at_utc'?: string | null;
90
114
  /**
91
115
  * Last published at in specified timezone
92
116
  * @type {string}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * API V1
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RetrieveAccountUsage200Response
16
+ */
17
+ export interface RetrieveAccountUsage200Response {
18
+ /**
19
+ * Number of active workflows (on: true)
20
+ * @type {number}
21
+ * @memberof RetrieveAccountUsage200Response
22
+ */
23
+ 'active_workflows_count'?: number;
24
+ /**
25
+ * End of the usage period (ISO 8601 format)
26
+ * @type {string}
27
+ * @memberof RetrieveAccountUsage200Response
28
+ */
29
+ 'end_time'?: string;
30
+ /**
31
+ * Number of executions in the specified time period
32
+ * @type {number}
33
+ * @memberof RetrieveAccountUsage200Response
34
+ */
35
+ 'executions_count'?: number;
36
+ /**
37
+ * Object type identifier
38
+ * @type {string}
39
+ * @memberof RetrieveAccountUsage200Response
40
+ */
41
+ 'object'?: string;
42
+ /**
43
+ * Start of the usage period (ISO 8601 format)
44
+ * @type {string}
45
+ * @memberof RetrieveAccountUsage200Response
46
+ */
47
+ 'start_time'?: string;
48
+ /**
49
+ * Total number of actions in the specified time period
50
+ * @type {number}
51
+ * @memberof RetrieveAccountUsage200Response
52
+ */
53
+ 'usage'?: number;
54
+ /**
55
+ * Total number of users in the account
56
+ * @type {number}
57
+ * @memberof RetrieveAccountUsage200Response
58
+ */
59
+ 'users_count'?: number;
60
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * API V1
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,6 +15,18 @@
15
15
  * @interface RetrieveAccount200Response
16
16
  */
17
17
  export interface RetrieveAccount200Response {
18
+ /**
19
+ * Available action type categories for the account
20
+ * @type {Array<object>}
21
+ * @memberof RetrieveAccount200Response
22
+ */
23
+ 'action_type_categories'?: Array<object>;
24
+ /**
25
+ * Whether action type categories are enabled for display
26
+ * @type {boolean}
27
+ * @memberof RetrieveAccount200Response
28
+ */
29
+ 'action_type_categories_enabled'?: boolean;
18
30
  /**
19
31
  * Company name associated with the account
20
32
  * @type {string}
@@ -66,7 +78,7 @@ export interface RetrieveAccount200Response {
66
78
  */
67
79
  'theme'?: string | null;
68
80
  /**
69
- * Time zone setting for the account
81
+ * Time zone setting for the account in IANA timezone format (e.g. \'America/New_York\', \'Europe/London\', \'Asia/Tokyo\', \'Etc/UTC\')
70
82
  * @type {string}
71
83
  * @memberof RetrieveAccount200Response
72
84
  */
@@ -77,6 +89,12 @@ export interface RetrieveAccount200Response {
77
89
  * @memberof RetrieveAccount200Response
78
90
  */
79
91
  'user_name'?: string | null;
92
+ /**
93
+ * Time zone setting for the user in IANA timezone format (e.g. \'America/New_York\', \'Europe/London\', \'Asia/Tokyo\', \'Etc/UTC\')
94
+ * @type {string}
95
+ * @memberof RetrieveAccount200Response
96
+ */
97
+ 'user_time_zone'?: string | null;
80
98
  /**
81
99
  * Account data schema
82
100
  * @type {Array<object>}
@@ -10,27 +10,27 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- *
13
+ * Icon configuration (user-editable)
14
14
  * @export
15
- * @interface RetrieveActionType404Response
15
+ * @interface UpdateAccountRequestActionTypeCategoriesInnerIcon
16
16
  */
17
- export interface RetrieveActionType404Response {
17
+ export interface UpdateAccountRequestActionTypeCategoriesInnerIcon {
18
18
  /**
19
- * Type of error
19
+ *
20
20
  * @type {string}
21
- * @memberof RetrieveActionType404Response
21
+ * @memberof UpdateAccountRequestActionTypeCategoriesInnerIcon
22
22
  */
23
- 'type': string;
23
+ 'type'?: string;
24
24
  /**
25
- * Specific error code
25
+ *
26
26
  * @type {string}
27
- * @memberof RetrieveActionType404Response
27
+ * @memberof UpdateAccountRequestActionTypeCategoriesInnerIcon
28
28
  */
29
- 'code': string;
29
+ 'background_color'?: string;
30
30
  /**
31
- * Human-readable message providing more details about the error
31
+ *
32
32
  * @type {string}
33
- * @memberof RetrieveActionType404Response
33
+ * @memberof UpdateAccountRequestActionTypeCategoriesInnerIcon
34
34
  */
35
- 'message': string;
35
+ 'url'?: string;
36
36
  }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * API V1
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,43 @@
1
+ /**
2
+ * API V1
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { UpdateAccountRequestActionTypeCategoriesInnerIcon } from './update-account-request-action-type-categories-inner-icon';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateAccountRequestActionTypeCategoriesInner
17
+ */
18
+ export interface UpdateAccountRequestActionTypeCategoriesInner {
19
+ /**
20
+ * Immutable category identifier
21
+ * @type {string}
22
+ * @memberof UpdateAccountRequestActionTypeCategoriesInner
23
+ */
24
+ 'key': string;
25
+ /**
26
+ * Display name (user-editable)
27
+ * @type {string}
28
+ * @memberof UpdateAccountRequestActionTypeCategoriesInner
29
+ */
30
+ 'name': string;
31
+ /**
32
+ * Short description (user-editable)
33
+ * @type {string}
34
+ * @memberof UpdateAccountRequestActionTypeCategoriesInner
35
+ */
36
+ 'description'?: string;
37
+ /**
38
+ *
39
+ * @type {UpdateAccountRequestActionTypeCategoriesInnerIcon}
40
+ * @memberof UpdateAccountRequestActionTypeCategoriesInner
41
+ */
42
+ 'icon'?: UpdateAccountRequestActionTypeCategoriesInnerIcon;
43
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * API V1
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { UpdateAccountRequestActionTypeCategoriesInner } from './update-account-request-action-type-categories-inner';
12
13
  import { UpdateAccountRequestUserDataSchemaInner } from './update-account-request-user-data-schema-inner';
13
14
  /**
14
15
  *
@@ -52,6 +53,18 @@ export interface UpdateAccountRequest {
52
53
  * @memberof UpdateAccountRequest
53
54
  */
54
55
  'groups'?: Array<string>;
56
+ /**
57
+ * Enable or disable action type categories display
58
+ * @type {boolean}
59
+ * @memberof UpdateAccountRequest
60
+ */
61
+ 'action_type_categories_enabled'?: boolean;
62
+ /**
63
+ * Action type categories for the account.
64
+ * @type {Array<UpdateAccountRequestActionTypeCategoriesInner>}
65
+ * @memberof UpdateAccountRequest
66
+ */
67
+ 'action_type_categories'?: Array<UpdateAccountRequestActionTypeCategoriesInner>;
55
68
  /**
56
69
  * Additional account data
57
70
  * @type {{ [key: string]: any; }}
@@ -27,4 +27,16 @@ export interface UpdateActionTypeRequest {
27
27
  * @memberof UpdateActionTypeRequest
28
28
  */
29
29
  'title'?: string;
30
+ /**
31
+ * Primary category for the action type
32
+ * @type {string}
33
+ * @memberof UpdateActionTypeRequest
34
+ */
35
+ 'primary_category'?: string;
36
+ /**
37
+ * Secondary category for the action type
38
+ * @type {string}
39
+ * @memberof UpdateActionTypeRequest
40
+ */
41
+ 'secondary_category'?: string;
30
42
  }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * API V1
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateTriggerRequest
16
+ */
17
+ export interface UpdateTriggerRequest {
18
+ /**
19
+ * The trigger\'s key
20
+ * @type {string}
21
+ * @memberof UpdateTriggerRequest
22
+ */
23
+ 'event'?: string;
24
+ /**
25
+ * Title
26
+ * @type {string}
27
+ * @memberof UpdateTriggerRequest
28
+ */
29
+ 'title'?: string;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * API V1
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -33,7 +33,13 @@ export interface UpdateWorkflowRequest {
33
33
  * @type {boolean}
34
34
  * @memberof UpdateWorkflowRequest
35
35
  */
36
- 'default_template'?: boolean;
36
+ 'auto_clone_for_new_users'?: boolean;
37
+ /**
38
+ * Mark workflow as a template. When true, new users will see this in a library of templates (Admin only)
39
+ * @type {boolean}
40
+ * @memberof UpdateWorkflowRequest
41
+ */
42
+ 'is_template'?: boolean;
37
43
  /**
38
44
  * Enable or disable the resource.
39
45
  * @type {boolean}
@@ -41,4 +41,10 @@ export interface UpsertUserRequest {
41
41
  * @memberof UpsertUserRequest
42
42
  */
43
43
  'groups'?: Array<string>;
44
+ /**
45
+ * Time zone
46
+ * @type {string}
47
+ * @memberof UpsertUserRequest
48
+ */
49
+ 'time_zone'?: string;
44
50
  }
package/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'