@epilot/sdk 2.3.9 → 2.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/definitions/access-token-runtime.json +1 -0
  2. package/definitions/access-token.json +663 -0
  3. package/definitions/address-runtime.json +1 -0
  4. package/definitions/address-suggestions-runtime.json +1 -0
  5. package/definitions/address-suggestions.json +582 -0
  6. package/definitions/address.json +578 -0
  7. package/definitions/ai-agents-runtime.json +1 -0
  8. package/definitions/ai-agents.json +1711 -0
  9. package/definitions/app-runtime.json +1 -0
  10. package/definitions/app.json +4493 -0
  11. package/definitions/audit-logs-runtime.json +1 -0
  12. package/definitions/audit-logs.json +305 -0
  13. package/definitions/automation-runtime.json +1 -0
  14. package/definitions/automation.json +5028 -0
  15. package/definitions/billing-runtime.json +1 -0
  16. package/definitions/billing.json +837 -0
  17. package/definitions/blueprint-manifest-runtime.json +1 -0
  18. package/definitions/blueprint-manifest.json +4846 -0
  19. package/definitions/configuration-hub-runtime.json +1 -0
  20. package/definitions/configuration-hub.json +611 -0
  21. package/definitions/consent-runtime.json +1 -0
  22. package/definitions/consent.json +344 -0
  23. package/definitions/customer-portal-runtime.json +1 -0
  24. package/definitions/customer-portal.json +16045 -0
  25. package/definitions/dashboard-runtime.json +1 -0
  26. package/definitions/dashboard.json +484 -0
  27. package/definitions/data-governance-runtime.json +1 -0
  28. package/definitions/data-governance.json +1126 -0
  29. package/definitions/deduplication-runtime.json +1 -0
  30. package/definitions/deduplication.json +314 -0
  31. package/definitions/design-runtime.json +1 -0
  32. package/definitions/design.json +1722 -0
  33. package/definitions/document-runtime.json +1 -0
  34. package/definitions/document.json +758 -0
  35. package/definitions/email-settings-runtime.json +1 -0
  36. package/definitions/email-settings.json +2777 -0
  37. package/definitions/email-template-runtime.json +1 -0
  38. package/definitions/email-template.json +1441 -0
  39. package/definitions/entity-mapping-runtime.json +1 -0
  40. package/definitions/entity-mapping.json +1642 -0
  41. package/definitions/entity-runtime.json +1 -0
  42. package/definitions/entity.json +10474 -0
  43. package/definitions/environments-runtime.json +1 -0
  44. package/definitions/environments.json +539 -0
  45. package/definitions/event-catalog-runtime.json +1 -0
  46. package/definitions/event-catalog.json +1051 -0
  47. package/definitions/file-runtime.json +1 -0
  48. package/definitions/file.json +2842 -0
  49. package/definitions/iban-runtime.json +1 -0
  50. package/definitions/iban.json +132 -0
  51. package/definitions/integration-toolkit-runtime.json +1 -0
  52. package/definitions/integration-toolkit.json +7998 -0
  53. package/definitions/journey-runtime.json +1 -0
  54. package/definitions/journey.json +2603 -0
  55. package/definitions/kanban-runtime.json +1 -0
  56. package/definitions/kanban.json +1505 -0
  57. package/definitions/message-runtime.json +1 -0
  58. package/definitions/message.json +2872 -0
  59. package/definitions/metering-runtime.json +1 -0
  60. package/definitions/metering.json +2321 -0
  61. package/definitions/notes-runtime.json +1 -0
  62. package/definitions/notes.json +1531 -0
  63. package/definitions/notification-runtime.json +1 -0
  64. package/definitions/notification.json +1425 -0
  65. package/definitions/organization-runtime.json +1 -0
  66. package/definitions/organization.json +1192 -0
  67. package/definitions/partner-directory-runtime.json +1 -0
  68. package/definitions/partner-directory.json +2284 -0
  69. package/definitions/permissions-runtime.json +1 -0
  70. package/definitions/permissions.json +1515 -0
  71. package/definitions/pricing-runtime.json +1 -0
  72. package/definitions/pricing-tier-runtime.json +1 -0
  73. package/definitions/pricing-tier.json +105 -0
  74. package/definitions/pricing.json +9884 -0
  75. package/definitions/purpose-runtime.json +1 -0
  76. package/definitions/purpose.json +524 -0
  77. package/definitions/query-runtime.json +1 -0
  78. package/definitions/query.json +3178 -0
  79. package/definitions/sandbox-runtime.json +1 -0
  80. package/definitions/sandbox.json +453 -0
  81. package/definitions/sharing-runtime.json +1 -0
  82. package/definitions/sharing.json +956 -0
  83. package/definitions/submission-runtime.json +1 -0
  84. package/definitions/submission.json +313 -0
  85. package/definitions/targeting-runtime.json +1 -0
  86. package/definitions/targeting.json +1474 -0
  87. package/definitions/template-variables-runtime.json +1 -0
  88. package/definitions/template-variables.json +1416 -0
  89. package/definitions/user-runtime.json +1 -0
  90. package/definitions/user.json +2460 -0
  91. package/definitions/validation-rules-runtime.json +1 -0
  92. package/definitions/validation-rules.json +1491 -0
  93. package/definitions/webhooks-runtime.json +1 -0
  94. package/definitions/webhooks.json +1634 -0
  95. package/definitions/workflow-definition-runtime.json +1 -0
  96. package/definitions/workflow-definition.json +3354 -0
  97. package/definitions/workflow-runtime.json +1 -0
  98. package/definitions/workflow.json +4272 -0
  99. package/dist/apis/access-token.cjs +6 -6
  100. package/dist/apis/access-token.js +1 -1
  101. package/dist/apis/address-suggestions.cjs +6 -6
  102. package/dist/apis/address-suggestions.js +1 -1
  103. package/dist/apis/address.cjs +6 -6
  104. package/dist/apis/address.js +1 -1
  105. package/dist/apis/ai-agents.cjs +6 -6
  106. package/dist/apis/ai-agents.js +1 -1
  107. package/dist/apis/app.cjs +6 -6
  108. package/dist/apis/app.js +1 -1
  109. package/dist/apis/audit-logs.cjs +6 -6
  110. package/dist/apis/audit-logs.js +1 -1
  111. package/dist/apis/automation.cjs +6 -6
  112. package/dist/apis/automation.js +1 -1
  113. package/dist/apis/billing.cjs +6 -6
  114. package/dist/apis/billing.js +1 -1
  115. package/dist/apis/blueprint-manifest.cjs +6 -6
  116. package/dist/apis/blueprint-manifest.js +1 -1
  117. package/dist/apis/configuration-hub.cjs +8 -8
  118. package/dist/apis/configuration-hub.d.cts +2 -2
  119. package/dist/apis/configuration-hub.d.ts +2 -2
  120. package/dist/apis/configuration-hub.js +2 -2
  121. package/dist/apis/consent.cjs +6 -6
  122. package/dist/apis/consent.js +1 -1
  123. package/dist/apis/customer-portal.cjs +6 -6
  124. package/dist/apis/customer-portal.js +1 -1
  125. package/dist/apis/dashboard.cjs +6 -6
  126. package/dist/apis/dashboard.js +1 -1
  127. package/dist/apis/data-governance.cjs +6 -6
  128. package/dist/apis/data-governance.js +1 -1
  129. package/dist/apis/deduplication.cjs +6 -6
  130. package/dist/apis/deduplication.js +1 -1
  131. package/dist/apis/design.cjs +6 -6
  132. package/dist/apis/design.js +1 -1
  133. package/dist/apis/document.cjs +6 -6
  134. package/dist/apis/document.js +1 -1
  135. package/dist/apis/email-settings.cjs +6 -6
  136. package/dist/apis/email-settings.js +1 -1
  137. package/dist/apis/email-template.cjs +6 -6
  138. package/dist/apis/email-template.js +1 -1
  139. package/dist/apis/entity-mapping.cjs +6 -6
  140. package/dist/apis/entity-mapping.js +1 -1
  141. package/dist/apis/entity.cjs +6 -6
  142. package/dist/apis/entity.js +1 -1
  143. package/dist/apis/environments.cjs +6 -6
  144. package/dist/apis/environments.js +1 -1
  145. package/dist/apis/event-catalog.cjs +6 -6
  146. package/dist/apis/event-catalog.js +1 -1
  147. package/dist/apis/file.cjs +6 -6
  148. package/dist/apis/file.js +1 -1
  149. package/dist/apis/iban.cjs +6 -6
  150. package/dist/apis/iban.js +1 -1
  151. package/dist/apis/integration-toolkit.cjs +6 -6
  152. package/dist/apis/integration-toolkit.js +1 -1
  153. package/dist/apis/journey.cjs +6 -6
  154. package/dist/apis/journey.js +1 -1
  155. package/dist/apis/kanban.cjs +6 -6
  156. package/dist/apis/kanban.js +1 -1
  157. package/dist/apis/message.cjs +6 -6
  158. package/dist/apis/message.js +1 -1
  159. package/dist/apis/metering.cjs +6 -6
  160. package/dist/apis/metering.js +1 -1
  161. package/dist/apis/notes.cjs +6 -6
  162. package/dist/apis/notes.js +1 -1
  163. package/dist/apis/notification.cjs +6 -6
  164. package/dist/apis/notification.js +1 -1
  165. package/dist/apis/organization.cjs +6 -6
  166. package/dist/apis/organization.js +1 -1
  167. package/dist/apis/partner-directory.cjs +6 -6
  168. package/dist/apis/partner-directory.js +1 -1
  169. package/dist/apis/permissions.cjs +6 -6
  170. package/dist/apis/permissions.js +1 -1
  171. package/dist/apis/pricing-tier.cjs +6 -6
  172. package/dist/apis/pricing-tier.js +1 -1
  173. package/dist/apis/pricing.cjs +6 -6
  174. package/dist/apis/pricing.js +1 -1
  175. package/dist/apis/purpose.cjs +6 -6
  176. package/dist/apis/purpose.js +1 -1
  177. package/dist/apis/query.cjs +6 -6
  178. package/dist/apis/query.js +1 -1
  179. package/dist/apis/sandbox.cjs +6 -6
  180. package/dist/apis/sandbox.js +1 -1
  181. package/dist/apis/sharing.cjs +6 -6
  182. package/dist/apis/sharing.js +1 -1
  183. package/dist/apis/submission.cjs +6 -6
  184. package/dist/apis/submission.js +1 -1
  185. package/dist/apis/target.cjs +6 -6
  186. package/dist/apis/target.js +1 -1
  187. package/dist/apis/targeting.cjs +6 -6
  188. package/dist/apis/targeting.js +1 -1
  189. package/dist/apis/template-variables.cjs +6 -6
  190. package/dist/apis/template-variables.js +1 -1
  191. package/dist/apis/user.cjs +6 -6
  192. package/dist/apis/user.js +1 -1
  193. package/dist/apis/validation-rules.cjs +6 -6
  194. package/dist/apis/validation-rules.js +1 -1
  195. package/dist/apis/webhooks.cjs +6 -6
  196. package/dist/apis/webhooks.js +1 -1
  197. package/dist/apis/workflow-definition.cjs +6 -6
  198. package/dist/apis/workflow-definition.d.cts +2 -2
  199. package/dist/apis/workflow-definition.d.ts +2 -2
  200. package/dist/apis/workflow-definition.js +1 -1
  201. package/dist/apis/workflow.cjs +6 -6
  202. package/dist/apis/workflow.d.cts +2 -2
  203. package/dist/apis/workflow.d.ts +2 -2
  204. package/dist/apis/workflow.js +1 -1
  205. package/dist/{chunk-L37V2R32.cjs → chunk-MDLNRFJV.cjs} +4 -4
  206. package/dist/chunk-ONOGGR6Q.js +14 -0
  207. package/dist/{chunk-OMNMMMRJ.js → chunk-W7YCS4FU.js} +4 -4
  208. package/dist/{chunk-VFCH5IEL.cjs → chunk-ZSONBZIF.cjs} +1 -1
  209. package/dist/configuration-hub-A3S6ND6R.cjs +7 -0
  210. package/dist/configuration-hub-PMAW44U5.js +7 -0
  211. package/dist/{configuration-hub-runtime-TY2X2ECO.cjs → configuration-hub-runtime-I5Y67CXD.cjs} +2 -2
  212. package/dist/{configuration-hub-runtime-5R6Y4KF7.js → configuration-hub-runtime-L6IOERSP.js} +1 -1
  213. package/dist/{configuration-hub.d-DZE3wTQE.d.cts → configuration-hub.d-Cqaq2F-W.d.cts} +111 -8
  214. package/dist/{configuration-hub.d-DZE3wTQE.d.ts → configuration-hub.d-Cqaq2F-W.d.ts} +111 -8
  215. package/dist/index.cjs +10 -10
  216. package/dist/index.d.cts +3 -3
  217. package/dist/index.d.ts +3 -3
  218. package/dist/index.js +2 -2
  219. package/dist/workflow-3WBD74WR.js +7 -0
  220. package/dist/workflow-WIUZ5TOX.cjs +7 -0
  221. package/dist/workflow-definition-2VF7S23G.js +7 -0
  222. package/dist/workflow-definition-U6YXD42W.cjs +7 -0
  223. package/dist/{workflow-definition.d-ByCJK9_x.d.ts → workflow-definition.d-DOeb0KVV.d.cts} +37 -1
  224. package/dist/{workflow-definition.d-ByCJK9_x.d.cts → workflow-definition.d-DOeb0KVV.d.ts} +37 -1
  225. package/dist/{workflow.d-pD8ISOg-.d.ts → workflow.d-CMSKt8oN.d.cts} +22 -1
  226. package/dist/{workflow.d-pD8ISOg-.d.cts → workflow.d-CMSKt8oN.d.ts} +22 -1
  227. package/docs/configuration-hub.md +112 -15
  228. package/docs/workflow-definition.md +40 -8
  229. package/docs/workflow.md +57 -11
  230. package/package.json +1 -1
  231. package/dist/chunk-AOFZDDXN.js +0 -14
  232. package/dist/configuration-hub-2F636SNK.js +0 -7
  233. package/dist/configuration-hub-XQGJK2JA.cjs +0 -7
  234. package/dist/workflow-CQOBZ25C.cjs +0 -7
  235. package/dist/workflow-G7VFCXY7.js +0 -7
  236. package/dist/workflow-definition-CVBYKAUY.cjs +0 -7
  237. package/dist/workflow-definition-GNAKDNG7.js +0 -7
@@ -28,8 +28,8 @@ const { data } = await configurationHubClient.listConfigTypes(...)
28
28
  - [`listConfigTypes`](#listconfigtypes)
29
29
  - [`listConfigs`](#listconfigs)
30
30
  - [`getConfigDependencies`](#getconfigdependencies)
31
-
32
- **Index**
31
+ - [`getConfigUsedBy`](#getconfigusedby)
32
+ - [`getIndex`](#getindex)
33
33
  - [`rebuildIndex`](#rebuildindex)
34
34
 
35
35
  **Schemas**
@@ -39,6 +39,7 @@ const { data } = await configurationHubClient.listConfigTypes(...)
39
39
  - [`ConfigListResponse`](#configlistresponse)
40
40
  - [`ConfigDependenciesResponse`](#configdependenciesresponse)
41
41
  - [`IndexRebuildResponse`](#indexrebuildresponse)
42
+ - [`IndexStatusResponse`](#indexstatusresponse)
42
43
  - [`ErrorResponse`](#errorresponse)
43
44
 
44
45
  ### `listConfigTypes`
@@ -90,6 +91,9 @@ const { data } = await client.listConfigs({
90
91
  updated_after: 'example',
91
92
  updated_before: 'example',
92
93
  purposes: 'example',
94
+ blueprint_ids: 'example',
95
+ sort: 'example',
96
+ active_only: true,
93
97
  })
94
98
  ```
95
99
 
@@ -103,7 +107,7 @@ const { data } = await client.listConfigs({
103
107
  "icon": "string",
104
108
  "total": 0,
105
109
  "next_cursor": "string",
106
- "items": [
110
+ "results": [
107
111
  {
108
112
  "type": "journey",
109
113
  "id": "string",
@@ -111,8 +115,10 @@ const { data } = await client.listConfigs({
111
115
  "updated_at": "1970-01-01T00:00:00.000Z",
112
116
  "updated_by": "string",
113
117
  "tags": ["string"],
118
+ "aliases": ["string"],
114
119
  "purposes": ["string"],
115
- "link": "https://example.com/path"
120
+ "link": "https://example.com/path",
121
+ "metadata": {}
116
122
  }
117
123
  ]
118
124
  }
@@ -153,8 +159,52 @@ const { data } = await client.getConfigDependencies({
153
159
  "updated_at": "1970-01-01T00:00:00.000Z",
154
160
  "updated_by": "string",
155
161
  "tags": ["string"],
162
+ "aliases": ["string"],
163
+ "purposes": ["string"],
164
+ "link": "https://example.com/path",
165
+ "metadata": {}
166
+ }
167
+ ]
168
+ }
169
+ ```
170
+
171
+ </details>
172
+
173
+ ---
174
+
175
+ ### `getConfigUsedBy`
176
+
177
+ Get configs that reference the given config (reverse dependencies).
178
+ Scans the indexed config items for references to this config's ID or aliases.
179
+
180
+ `GET /v1/configs/{type}/{id}/used_by`
181
+
182
+ ```ts
183
+ const { data } = await client.getConfigUsedBy({
184
+ type: 'example',
185
+ id: '123e4567-e89b-12d3-a456-426614174000',
186
+ })
187
+ ```
188
+
189
+ <details>
190
+ <summary>Response</summary>
191
+
192
+ ```json
193
+ {
194
+ "total": 0,
195
+ "next_cursor": "string",
196
+ "results": [
197
+ {
198
+ "type": "journey",
199
+ "id": "string",
200
+ "title": "string",
201
+ "updated_at": "1970-01-01T00:00:00.000Z",
202
+ "updated_by": "string",
203
+ "tags": ["string"],
204
+ "aliases": ["string"],
156
205
  "purposes": ["string"],
157
- "link": "https://example.com/path"
206
+ "link": "https://example.com/path",
207
+ "metadata": {}
158
208
  }
159
209
  ]
160
210
  }
@@ -164,13 +214,41 @@ const { data } = await client.getConfigDependencies({
164
214
 
165
215
  ---
166
216
 
217
+ ### `getIndex`
218
+
219
+ Return the current index build state for the caller's organization.
220
+ Clients poll this to decide whether to show a "building" indicator
221
+ and when to refetch data.
222
+
223
+ `GET /v1/configs/index`
224
+
225
+ ```ts
226
+ const { data } = await client.getIndex()
227
+ ```
228
+
229
+ <details>
230
+ <summary>Response</summary>
231
+
232
+ ```json
233
+ {
234
+ "status": "missing",
235
+ "last_built_at": "1970-01-01T00:00:00.000Z",
236
+ "total_items": 0,
237
+ "build_duration_ms": 0
238
+ }
239
+ ```
240
+
241
+ </details>
242
+
243
+ ---
244
+
167
245
  ### `rebuildIndex`
168
246
 
169
247
  Rebuild the configuration index for the caller's organization.
170
- Calls all adapter APIs in parallel and stores results in DynamoDB.
171
- If a build is already in progress (within 60s), returns immediately.
248
+ Fire-and-forget: invokes the async worker and returns immediately.
249
+ A new rebuild will cancel any in-flight build (see `build_token`).
172
250
 
173
- `POST /v1/index/rebuild`
251
+ `POST /v1/configs/index:rebuild`
174
252
 
175
253
  ```ts
176
254
  const { data } = await client.rebuildIndex()
@@ -202,7 +280,7 @@ Matches blueprint-manifest-api V3 naming conventions.
202
280
 
203
281
 
204
282
  ```ts
205
- type ResourceType = "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"
283
+ type ResourceType = "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"
206
284
  ```
207
285
 
208
286
  ### `ConfigTypeInfo`
@@ -213,7 +291,7 @@ No downstream API calls — just type + label + icon + source API info.
213
291
 
214
292
  ```ts
215
293
  type ConfigTypeInfo = {
216
- type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"
294
+ type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"
217
295
  label: string
218
296
  icon: string
219
297
  source_api: string
@@ -227,14 +305,16 @@ Summary metadata for a single configuration item in the tree
227
305
 
228
306
  ```ts
229
307
  type ConfigNode = {
230
- type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"
308
+ type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"
231
309
  id: string
232
310
  title: string
233
311
  updated_at?: string // date-time
234
312
  updated_by?: string
235
313
  tags?: string[]
314
+ aliases?: string[]
236
315
  purposes?: string[]
237
316
  link?: string // uri
317
+ metadata?: Record<string, unknown>
238
318
  }
239
319
  ```
240
320
 
@@ -244,20 +324,22 @@ Cursor-paginated list of configs for a specific type
244
324
 
245
325
  ```ts
246
326
  type ConfigListResponse = {
247
- type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"
327
+ type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"
248
328
  label: string
249
329
  icon: string
250
330
  total?: number
251
331
  next_cursor?: string
252
- items: Array<{
253
- type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"
332
+ results: Array<{
333
+ type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"
254
334
  id: string
255
335
  title: string
256
336
  updated_at?: string // date-time
257
337
  updated_by?: string
258
338
  tags?: string[]
339
+ aliases?: string[]
259
340
  purposes?: string[]
260
341
  link?: string // uri
342
+ metadata?: Record<string, unknown>
261
343
  }>
262
344
  }
263
345
  ```
@@ -271,14 +353,16 @@ type ConfigDependenciesResponse = {
271
353
  total?: number
272
354
  next_cursor?: string
273
355
  results: Array<{
274
- type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation"
356
+ type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"
275
357
  id: string
276
358
  title: string
277
359
  updated_at?: string // date-time
278
360
  updated_by?: string
279
361
  tags?: string[]
362
+ aliases?: string[]
280
363
  purposes?: string[]
281
364
  link?: string // uri
365
+ metadata?: Record<string, unknown>
282
366
  }>
283
367
  }
284
368
  ```
@@ -297,6 +381,19 @@ type IndexRebuildResponse = {
297
381
  }
298
382
  ```
299
383
 
384
+ ### `IndexStatusResponse`
385
+
386
+ Current index build state
387
+
388
+ ```ts
389
+ type IndexStatusResponse = {
390
+ status: "missing" | "building" | "ready" | "failed"
391
+ last_built_at?: string // date-time
392
+ total_items?: number
393
+ build_duration_ms?: number
394
+ }
395
+ ```
396
+
300
397
  ### `ErrorResponse`
301
398
 
302
399
  ```ts
@@ -68,6 +68,7 @@ const { data } = await workflowDefinitionClient.getMaxAllowedLimit(...)
68
68
  - [`ManualTask`](#manualtask)
69
69
  - [`AutomationTask`](#automationtask)
70
70
  - [`AutomationConfig`](#automationconfig)
71
+ - [`AutomationInputContext`](#automationinputcontext)
71
72
  - [`AiAgentTask`](#aiagenttask)
72
73
  - [`AgentConfig`](#agentconfig)
73
74
  - [`TriggerMode`](#triggermode)
@@ -437,6 +438,7 @@ const { data } = await client.createFlowTemplate(
437
438
  id: 'string',
438
439
  type: 'automation',
439
440
  automation_id: 'string',
441
+ input_entity: 'thread',
440
442
  trigger_config: [ /* ... */ ]
441
443
  },
442
444
  /* ... 2 more */
@@ -559,6 +561,7 @@ const { data } = await client.createFlowTemplate(
559
561
  "id": "string",
560
562
  "type": "automation",
561
563
  "automation_id": "string",
564
+ "input_entity": "thread",
562
565
  "trigger_config": []
563
566
  }
564
567
  ],
@@ -755,6 +758,7 @@ const { data } = await client.getFlowTemplate({
755
758
  "id": "string",
756
759
  "type": "automation",
757
760
  "automation_id": "string",
761
+ "input_entity": "thread",
758
762
  "trigger_config": []
759
763
  }
760
764
  ],
@@ -885,6 +889,7 @@ const { data } = await client.updateFlowTemplate(
885
889
  id: 'string',
886
890
  type: 'automation',
887
891
  automation_id: 'string',
892
+ input_entity: 'thread',
888
893
  trigger_config: [ /* ... */ ]
889
894
  },
890
895
  /* ... 2 more */
@@ -1007,6 +1012,7 @@ const { data } = await client.updateFlowTemplate(
1007
1012
  "id": "string",
1008
1013
  "type": "automation",
1009
1014
  "automation_id": "string",
1015
+ "input_entity": "thread",
1010
1016
  "trigger_config": []
1011
1017
  }
1012
1018
  ],
@@ -1156,6 +1162,7 @@ const { data } = await client.duplicateFlowTemplate({
1156
1162
  "id": "string",
1157
1163
  "type": "automation",
1158
1164
  "automation_id": "string",
1165
+ "input_entity": "thread",
1159
1166
  "trigger_config": []
1160
1167
  }
1161
1168
  ],
@@ -1736,6 +1743,7 @@ type FlowTemplateBase = {
1736
1743
  id?: string
1737
1744
  type: "automation"
1738
1745
  automation_id?: string
1746
+ input_entity?: "thread" | "first_email" | "last_email"
1739
1747
  trigger_config?: Array<{
1740
1748
  type: { ... }
1741
1749
  configuration?: { ... }
@@ -1776,6 +1784,7 @@ type FlowTemplateBase = {
1776
1784
  id?: string
1777
1785
  type: "automation"
1778
1786
  automation_id?: string
1787
+ input_entity?: "thread" | "first_email" | "last_email"
1779
1788
  trigger_config?: Array<{
1780
1789
  type: { ... }
1781
1790
  configuration?: { ... }
@@ -1821,8 +1830,6 @@ type FlowTemplateBase = {
1821
1830
  name?: { ... }
1822
1831
  complete_task_automatically?: { ... }
1823
1832
  }
1824
- due_date?: string
1825
- due_date_config?: {
1826
1833
  // ...
1827
1834
  }
1828
1835
  ```
@@ -1843,6 +1850,7 @@ type FlowTemplate = {
1843
1850
  id?: string
1844
1851
  type: "automation"
1845
1852
  automation_id?: string
1853
+ input_entity?: "thread" | "first_email" | "last_email"
1846
1854
  trigger_config?: Array<{
1847
1855
  type: { ... }
1848
1856
  configuration?: { ... }
@@ -1883,6 +1891,7 @@ type FlowTemplate = {
1883
1891
  id?: string
1884
1892
  type: "automation"
1885
1893
  automation_id?: string
1894
+ input_entity?: "thread" | "first_email" | "last_email"
1886
1895
  trigger_config?: Array<{
1887
1896
  type: { ... }
1888
1897
  configuration?: { ... }
@@ -1928,8 +1937,6 @@ type FlowTemplate = {
1928
1937
  name?: { ... }
1929
1938
  complete_task_automatically?: { ... }
1930
1939
  }
1931
- due_date?: string
1932
- due_date_config?: {
1933
1940
  // ...
1934
1941
  }
1935
1942
  ```
@@ -1957,6 +1964,7 @@ type Trigger = {
1957
1964
  id?: string
1958
1965
  type: "automation"
1959
1966
  automation_id?: string
1967
+ input_entity?: "thread" | "first_email" | "last_email"
1960
1968
  trigger_config?: Array<{
1961
1969
  type: string
1962
1970
  configuration?: Record<string, unknown>
@@ -1991,6 +1999,7 @@ type AutomationTrigger = {
1991
1999
  id?: string
1992
2000
  type: "automation"
1993
2001
  automation_id?: string
2002
+ input_entity?: "thread" | "first_email" | "last_email"
1994
2003
  trigger_config?: Array<{
1995
2004
  type: string
1996
2005
  configuration?: Record<string, unknown>
@@ -2036,6 +2045,7 @@ type CreateFlowTemplate = {
2036
2045
  id?: string
2037
2046
  type: "automation"
2038
2047
  automation_id?: string
2048
+ input_entity?: "thread" | "first_email" | "last_email"
2039
2049
  trigger_config?: Array<{
2040
2050
  type: { ... }
2041
2051
  configuration?: { ... }
@@ -2076,6 +2086,7 @@ type CreateFlowTemplate = {
2076
2086
  id?: string
2077
2087
  type: "automation"
2078
2088
  automation_id?: string
2089
+ input_entity?: "thread" | "first_email" | "last_email"
2079
2090
  trigger_config?: Array<{
2080
2091
  type: { ... }
2081
2092
  configuration?: { ... }
@@ -2121,8 +2132,6 @@ type CreateFlowTemplate = {
2121
2132
  name?: { ... }
2122
2133
  complete_task_automatically?: { ... }
2123
2134
  }
2124
- due_date?: string
2125
- due_date_config?: {
2126
2135
  // ...
2127
2136
  }
2128
2137
  ```
@@ -2159,6 +2168,7 @@ type FlowTemplatesList = {
2159
2168
  id?: { ... }
2160
2169
  type: { ... }
2161
2170
  automation_id?: { ... }
2171
+ input_entity?: { ... }
2162
2172
  trigger_config?: { ... }
2163
2173
  } | {
2164
2174
  id?: { ... }
@@ -2196,6 +2206,7 @@ type FlowTemplatesList = {
2196
2206
  id?: { ... }
2197
2207
  type: { ... }
2198
2208
  automation_id?: { ... }
2209
+ input_entity?: { ... }
2199
2210
  trigger_config?: { ... }
2200
2211
  } | {
2201
2212
  id?: { ... }
@@ -2243,8 +2254,6 @@ type FlowTemplatesList = {
2243
2254
  ecp?: { ... }
2244
2255
  installer?: { ... }
2245
2256
  partner?: { ... }
2246
- taxonomies?: { ... }
2247
- phase_id?: { ... }
2248
2257
  // ...
2249
2258
  }
2250
2259
  ```
@@ -2499,6 +2508,11 @@ type AutomationTask = {
2499
2508
  type: { ... }
2500
2509
  config?: { ... }
2501
2510
  }
2511
+ duplicated_flow_id?: string
2512
+ input_context?: {
2513
+ source: { ... }
2514
+ task_id?: { ... }
2515
+ }
2502
2516
  }
2503
2517
  trigger_mode?: "manual" | "automatic"
2504
2518
  schedule?: {
@@ -2534,6 +2548,23 @@ type AutomationConfig = {
2534
2548
  type: string
2535
2549
  config?: Record<string, unknown>
2536
2550
  }
2551
+ duplicated_flow_id?: string
2552
+ input_context?: {
2553
+ source: "trigger" | "task"
2554
+ task_id?: string
2555
+ }
2556
+ }
2557
+ ```
2558
+
2559
+ ### `AutomationInputContext`
2560
+
2561
+ Optional. Source of the entity fed into this automation task. If omitted, the workflow's primary entity is used.
2562
+
2563
+
2564
+ ```ts
2565
+ type AutomationInputContext = {
2566
+ source: "trigger" | "task"
2567
+ task_id?: string
2537
2568
  }
2538
2569
  ```
2539
2570
 
@@ -2756,6 +2787,7 @@ type DecisionTask = {
2756
2787
  value_type?: { ... }
2757
2788
  }>
2758
2789
  }>
2790
+ allow_parallel_execution?: boolean
2759
2791
  schedule?: {
2760
2792
  mode: "delayed"
2761
2793
  duration: number
package/docs/workflow.md CHANGED
@@ -129,6 +129,7 @@ const { data } = await workflowClient.getExecutions(...)
129
129
  - [`Phase`](#phase)
130
130
  - [`Edge`](#edge)
131
131
  - [`AutomationInfo`](#automationinfo)
132
+ - [`AutomationInputContext`](#automationinputcontext)
132
133
  - [`AnalyticsInfo`](#analyticsinfo)
133
134
  - [`ConditionId`](#conditionid)
134
135
  - [`Condition`](#condition)
@@ -721,7 +722,11 @@ const { data } = await client.startFlowExecution(
721
722
  flow_id: 'string',
722
723
  execution_id: 'string',
723
724
  execution_status: 'string',
724
- error_reason: 'string'
725
+ error_reason: 'string',
726
+ input_context: {
727
+ source: 'trigger',
728
+ task_id: 'string'
729
+ }
725
730
  }
726
731
  },
727
732
  contexts: [
@@ -855,7 +860,8 @@ const { data } = await client.startFlowExecution(
855
860
  "flow_id": "string",
856
861
  "execution_id": "string",
857
862
  "execution_status": "string",
858
- "error_reason": "string"
863
+ "error_reason": "string",
864
+ "input_context": {}
859
865
  }
860
866
  },
861
867
  "singleClosingReasonSelection": true
@@ -997,7 +1003,8 @@ const { data } = await client.getFlowExecution({
997
1003
  "flow_id": "string",
998
1004
  "execution_id": "string",
999
1005
  "execution_status": "string",
1000
- "error_reason": "string"
1006
+ "error_reason": "string",
1007
+ "input_context": {}
1001
1008
  }
1002
1009
  },
1003
1010
  "singleClosingReasonSelection": true
@@ -1175,7 +1182,8 @@ const { data } = await client.patchFlowExecution(
1175
1182
  "flow_id": "string",
1176
1183
  "execution_id": "string",
1177
1184
  "execution_status": "string",
1178
- "error_reason": "string"
1185
+ "error_reason": "string",
1186
+ "input_context": {}
1179
1187
  }
1180
1188
  },
1181
1189
  "singleClosingReasonSelection": true
@@ -1285,7 +1293,11 @@ const { data } = await client.patchTask(
1285
1293
  flow_id: 'string',
1286
1294
  execution_id: 'string',
1287
1295
  execution_status: 'string',
1288
- error_reason: 'string'
1296
+ error_reason: 'string',
1297
+ input_context: {
1298
+ source: 'trigger',
1299
+ task_id: 'string'
1300
+ }
1289
1301
  },
1290
1302
  description: {
1291
1303
  enabled: true,
@@ -1510,7 +1522,11 @@ const { data } = await client.runTaskAutomation({
1510
1522
  "flow_id": "string",
1511
1523
  "execution_id": "string",
1512
1524
  "execution_status": "string",
1513
- "error_reason": "string"
1525
+ "error_reason": "string",
1526
+ "input_context": {
1527
+ "source": "trigger",
1528
+ "task_id": "string"
1529
+ }
1514
1530
  },
1515
1531
  "automation_execution_id": "string",
1516
1532
  "trigger_mode": "manual",
@@ -1731,7 +1747,11 @@ const { data } = await client.addTask(
1731
1747
  flow_id: 'string',
1732
1748
  execution_id: 'string',
1733
1749
  execution_status: 'string',
1734
- error_reason: 'string'
1750
+ error_reason: 'string',
1751
+ input_context: {
1752
+ source: 'trigger',
1753
+ task_id: 'string'
1754
+ }
1735
1755
  },
1736
1756
  phase_id: 'string',
1737
1757
  task_type: 'MANUAL'
@@ -3381,6 +3401,7 @@ type StartFlowReq = {
3381
3401
  execution_id?: { ... }
3382
3402
  execution_status?: { ... }
3383
3403
  error_reason?: { ... }
3404
+ input_context?: { ... }
3384
3405
  }
3385
3406
  }
3386
3407
  contexts: Array<{
@@ -3570,6 +3591,10 @@ type FlowTrigger = {
3570
3591
  execution_id?: string
3571
3592
  execution_status?: string
3572
3593
  error_reason?: string
3594
+ input_context?: {
3595
+ source: { ... }
3596
+ task_id?: { ... }
3597
+ }
3573
3598
  }
3574
3599
  }
3575
3600
  ```
@@ -3889,6 +3914,10 @@ type AutomationTask = {
3889
3914
  execution_id?: string
3890
3915
  execution_status?: string
3891
3916
  error_reason?: string
3917
+ input_context?: {
3918
+ source: { ... }
3919
+ task_id?: { ... }
3920
+ }
3892
3921
  }
3893
3922
  automation_execution_id?: string
3894
3923
  trigger_mode?: "manual" | "automatic"
@@ -3904,10 +3933,6 @@ type AutomationTask = {
3904
3933
  direction: "before" | "after"
3905
3934
  duration: number
3906
3935
  unit: "minutes" | "hours" | "days" | "weeks" | "months"
3907
- reference: {
3908
- id: { ... }
3909
- origin: { ... }
3910
- schema?: { ... }
3911
3936
  // ...
3912
3937
  }
3913
3938
  ```
@@ -4367,6 +4392,22 @@ type AutomationInfo = {
4367
4392
  execution_id?: string
4368
4393
  execution_status?: string
4369
4394
  error_reason?: string
4395
+ input_context?: {
4396
+ source: "trigger" | "task"
4397
+ task_id?: string
4398
+ }
4399
+ }
4400
+ ```
4401
+
4402
+ ### `AutomationInputContext`
4403
+
4404
+ Optional. Source of the entity fed into this automation task. If omitted, the workflow's primary entity is used.
4405
+
4406
+
4407
+ ```ts
4408
+ type AutomationInputContext = {
4409
+ source: "trigger" | "task"
4410
+ task_id?: string
4370
4411
  }
4371
4412
  ```
4372
4413
 
@@ -4573,6 +4614,10 @@ type PatchTaskReq = {
4573
4614
  execution_id?: string
4574
4615
  execution_status?: string
4575
4616
  error_reason?: string
4617
+ input_context?: {
4618
+ source: { ... }
4619
+ task_id?: { ... }
4620
+ }
4576
4621
  }
4577
4622
  description?: {
4578
4623
  enabled?: boolean
@@ -4658,6 +4703,7 @@ type AddTaskReq = {
4658
4703
  execution_id?: { ... }
4659
4704
  execution_status?: { ... }
4660
4705
  error_reason?: { ... }
4706
+ input_context?: { ... }
4661
4707
  }
4662
4708
  phase_id?: string
4663
4709
  task_type?: "MANUAL" | "AUTOMATION" | "DECISION" | "AI_AGENT"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.3.9",
3
+ "version": "2.3.10",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1,14 +0,0 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-YPSWSI3M.js";
4
-
5
- // src/definitions/configuration-hub-runtime.json
6
- var require_configuration_hub_runtime = __commonJS({
7
- "src/definitions/configuration-hub-runtime.json"(exports, module) {
8
- module.exports = { s: "https://configuration-hub.sls.epilot.io", o: [["listConfigTypes", "get", "/v1/configs/types"], ["listConfigs", "get", "/v1/configs/{type}", [["ConfigType"], ["CursorParam"], ["SizeParam"], ["q", "q"], ["updated_after", "q"], ["updated_before", "q"], ["purposes", "q"]]], ["getConfigDependencies", "get", "/v1/configs/{type}/{id}/dependencies", [["ConfigType"], ["ConfigId"], ["CursorParam"], ["SizeParam"]]], ["rebuildIndex", "post", "/v1/index/rebuild"]], v: "3.0.3", cp: { ConfigType: ["type", "p", true], ConfigId: ["id", "p", true], CursorParam: ["cursor", "q"], SizeParam: ["size", "q"] } };
9
- }
10
- });
11
-
12
- export {
13
- require_configuration_hub_runtime
14
- };