@epilot/sdk 2.3.9 → 2.4.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 (155) hide show
  1. package/dist/apis/access-token.cjs +6 -6
  2. package/dist/apis/access-token.js +1 -1
  3. package/dist/apis/address-suggestions.cjs +6 -6
  4. package/dist/apis/address-suggestions.js +1 -1
  5. package/dist/apis/address.cjs +6 -6
  6. package/dist/apis/address.js +1 -1
  7. package/dist/apis/ai-agents.cjs +6 -6
  8. package/dist/apis/ai-agents.js +1 -1
  9. package/dist/apis/app.cjs +6 -6
  10. package/dist/apis/app.js +1 -1
  11. package/dist/apis/audit-logs.cjs +6 -6
  12. package/dist/apis/audit-logs.js +1 -1
  13. package/dist/apis/automation.cjs +6 -6
  14. package/dist/apis/automation.js +1 -1
  15. package/dist/apis/billing.cjs +6 -6
  16. package/dist/apis/billing.js +1 -1
  17. package/dist/apis/blueprint-manifest.cjs +6 -6
  18. package/dist/apis/blueprint-manifest.js +1 -1
  19. package/dist/apis/configuration-hub.cjs +8 -8
  20. package/dist/apis/configuration-hub.d.cts +2 -2
  21. package/dist/apis/configuration-hub.d.ts +2 -2
  22. package/dist/apis/configuration-hub.js +2 -2
  23. package/dist/apis/consent.cjs +6 -6
  24. package/dist/apis/consent.js +1 -1
  25. package/dist/apis/customer-portal.cjs +6 -6
  26. package/dist/apis/customer-portal.js +1 -1
  27. package/dist/apis/dashboard.cjs +6 -6
  28. package/dist/apis/dashboard.js +1 -1
  29. package/dist/apis/data-governance.cjs +6 -6
  30. package/dist/apis/data-governance.js +1 -1
  31. package/dist/apis/deduplication.cjs +6 -6
  32. package/dist/apis/deduplication.js +1 -1
  33. package/dist/apis/design.cjs +6 -6
  34. package/dist/apis/design.js +1 -1
  35. package/dist/apis/document.cjs +6 -6
  36. package/dist/apis/document.js +1 -1
  37. package/dist/apis/email-settings.cjs +6 -6
  38. package/dist/apis/email-settings.js +1 -1
  39. package/dist/apis/email-template.cjs +6 -6
  40. package/dist/apis/email-template.js +1 -1
  41. package/dist/apis/entity-mapping.cjs +6 -6
  42. package/dist/apis/entity-mapping.js +1 -1
  43. package/dist/apis/entity.cjs +8 -8
  44. package/dist/apis/entity.d.cts +2 -2
  45. package/dist/apis/entity.d.ts +2 -2
  46. package/dist/apis/entity.js +2 -2
  47. package/dist/apis/environments.cjs +6 -6
  48. package/dist/apis/environments.js +1 -1
  49. package/dist/apis/event-catalog.cjs +6 -6
  50. package/dist/apis/event-catalog.js +1 -1
  51. package/dist/apis/file.cjs +6 -6
  52. package/dist/apis/file.js +1 -1
  53. package/dist/apis/iban.cjs +6 -6
  54. package/dist/apis/iban.js +1 -1
  55. package/dist/apis/integration-toolkit.cjs +6 -6
  56. package/dist/apis/integration-toolkit.js +1 -1
  57. package/dist/apis/journey.cjs +6 -6
  58. package/dist/apis/journey.js +1 -1
  59. package/dist/apis/kanban.cjs +6 -6
  60. package/dist/apis/kanban.js +1 -1
  61. package/dist/apis/message.cjs +6 -6
  62. package/dist/apis/message.js +1 -1
  63. package/dist/apis/metering.cjs +6 -6
  64. package/dist/apis/metering.js +1 -1
  65. package/dist/apis/notes.cjs +6 -6
  66. package/dist/apis/notes.js +1 -1
  67. package/dist/apis/notification.cjs +6 -6
  68. package/dist/apis/notification.js +1 -1
  69. package/dist/apis/organization.cjs +6 -6
  70. package/dist/apis/organization.js +1 -1
  71. package/dist/apis/partner-directory.cjs +6 -6
  72. package/dist/apis/partner-directory.js +1 -1
  73. package/dist/apis/permissions.cjs +6 -6
  74. package/dist/apis/permissions.js +1 -1
  75. package/dist/apis/pricing-tier.cjs +6 -6
  76. package/dist/apis/pricing-tier.js +1 -1
  77. package/dist/apis/pricing.cjs +6 -6
  78. package/dist/apis/pricing.js +1 -1
  79. package/dist/apis/purpose.cjs +6 -6
  80. package/dist/apis/purpose.js +1 -1
  81. package/dist/apis/query.cjs +6 -6
  82. package/dist/apis/query.js +1 -1
  83. package/dist/apis/sandbox.cjs +6 -6
  84. package/dist/apis/sandbox.js +1 -1
  85. package/dist/apis/sharing.cjs +6 -6
  86. package/dist/apis/sharing.js +1 -1
  87. package/dist/apis/submission.cjs +6 -6
  88. package/dist/apis/submission.js +1 -1
  89. package/dist/apis/target.cjs +6 -6
  90. package/dist/apis/target.js +1 -1
  91. package/dist/apis/targeting.cjs +6 -6
  92. package/dist/apis/targeting.js +1 -1
  93. package/dist/apis/template-variables.cjs +6 -6
  94. package/dist/apis/template-variables.js +1 -1
  95. package/dist/apis/user.cjs +6 -6
  96. package/dist/apis/user.js +1 -1
  97. package/dist/apis/validation-rules.cjs +6 -6
  98. package/dist/apis/validation-rules.js +1 -1
  99. package/dist/apis/webhooks.cjs +6 -6
  100. package/dist/apis/webhooks.js +1 -1
  101. package/dist/apis/workflow-definition.cjs +6 -6
  102. package/dist/apis/workflow-definition.d.cts +2 -2
  103. package/dist/apis/workflow-definition.d.ts +2 -2
  104. package/dist/apis/workflow-definition.js +1 -1
  105. package/dist/apis/workflow.cjs +6 -6
  106. package/dist/apis/workflow.d.cts +2 -2
  107. package/dist/apis/workflow.d.ts +2 -2
  108. package/dist/apis/workflow.js +1 -1
  109. package/dist/{chunk-OMNMMMRJ.js → chunk-DAFBUTK6.js} +6 -6
  110. package/dist/chunk-M6Z6ES3I.js +14 -0
  111. package/dist/chunk-ONOGGR6Q.js +14 -0
  112. package/dist/chunk-UBQCDPW6.cjs +14 -0
  113. package/dist/{chunk-L37V2R32.cjs → chunk-Z33PZNHV.cjs} +6 -6
  114. package/dist/{chunk-VFCH5IEL.cjs → chunk-ZSONBZIF.cjs} +1 -1
  115. package/dist/configuration-hub-A3S6ND6R.cjs +7 -0
  116. package/dist/configuration-hub-PMAW44U5.js +7 -0
  117. package/dist/{configuration-hub-runtime-TY2X2ECO.cjs → configuration-hub-runtime-I5Y67CXD.cjs} +2 -2
  118. package/dist/{configuration-hub-runtime-5R6Y4KF7.js → configuration-hub-runtime-L6IOERSP.js} +1 -1
  119. package/dist/{configuration-hub.d-DZE3wTQE.d.cts → configuration-hub.d-Cqaq2F-W.d.cts} +111 -8
  120. package/dist/{configuration-hub.d-DZE3wTQE.d.ts → configuration-hub.d-Cqaq2F-W.d.ts} +111 -8
  121. package/dist/entity-VDUN7SYC.cjs +7 -0
  122. package/dist/entity-WWM2Z7BU.js +7 -0
  123. package/dist/entity-runtime-3J5EDLXP.cjs +5 -0
  124. package/dist/{entity-runtime-D4DV5XRM.js → entity-runtime-LNAZILIN.js} +1 -1
  125. package/dist/{entity.d-ByufVI16.d.cts → entity.d-B43ezu-V.d.cts} +1336 -9
  126. package/dist/{entity.d-ByufVI16.d.ts → entity.d-B43ezu-V.d.ts} +1336 -9
  127. package/dist/index.cjs +12 -12
  128. package/dist/index.d.cts +4 -4
  129. package/dist/index.d.ts +4 -4
  130. package/dist/index.js +3 -3
  131. package/dist/workflow-3WBD74WR.js +7 -0
  132. package/dist/workflow-WIUZ5TOX.cjs +7 -0
  133. package/dist/workflow-definition-2VF7S23G.js +7 -0
  134. package/dist/workflow-definition-U6YXD42W.cjs +7 -0
  135. package/dist/{workflow-definition.d-ByCJK9_x.d.ts → workflow-definition.d-DOeb0KVV.d.cts} +37 -1
  136. package/dist/{workflow-definition.d-ByCJK9_x.d.cts → workflow-definition.d-DOeb0KVV.d.ts} +37 -1
  137. package/dist/{workflow.d-pD8ISOg-.d.ts → workflow.d-CMSKt8oN.d.cts} +22 -1
  138. package/dist/{workflow.d-pD8ISOg-.d.cts → workflow.d-CMSKt8oN.d.ts} +22 -1
  139. package/docs/configuration-hub.md +112 -15
  140. package/docs/entity.md +965 -39
  141. package/docs/workflow-definition.md +40 -8
  142. package/docs/workflow.md +57 -11
  143. package/package.json +1 -1
  144. package/dist/chunk-AOFZDDXN.js +0 -14
  145. package/dist/chunk-F7W62NKV.js +0 -14
  146. package/dist/chunk-QA2OYK7N.cjs +0 -14
  147. package/dist/configuration-hub-2F636SNK.js +0 -7
  148. package/dist/configuration-hub-XQGJK2JA.cjs +0 -7
  149. package/dist/entity-CK76MXVN.js +0 -7
  150. package/dist/entity-TFMH5VTZ.cjs +0 -7
  151. package/dist/entity-runtime-DUJTRYLQ.cjs +0 -5
  152. package/dist/workflow-CQOBZ25C.cjs +0 -7
  153. package/dist/workflow-G7VFCXY7.js +0 -7
  154. package/dist/workflow-definition-CVBYKAUY.cjs +0 -7
  155. 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