@epilot/sdk 2.20.9 → 2.20.11

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 (262) 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/calendar.cjs +6 -6
  20. package/dist/apis/calendar.js +1 -1
  21. package/dist/apis/configuration-hub.cjs +6 -6
  22. package/dist/apis/configuration-hub.js +1 -1
  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 +24 -6
  44. package/dist/apis/entity.d.cts +15 -1
  45. package/dist/apis/entity.d.ts +15 -1
  46. package/dist/apis/entity.js +19 -1
  47. package/dist/apis/environments.cjs +6 -6
  48. package/dist/apis/environments.js +1 -1
  49. package/dist/apis/event-catalog.cjs +8 -8
  50. package/dist/apis/event-catalog.d.cts +2 -2
  51. package/dist/apis/event-catalog.d.ts +2 -2
  52. package/dist/apis/event-catalog.js +2 -2
  53. package/dist/apis/file.cjs +8 -8
  54. package/dist/apis/file.d.cts +2 -2
  55. package/dist/apis/file.d.ts +2 -2
  56. package/dist/apis/file.js +2 -2
  57. package/dist/apis/iban.cjs +6 -6
  58. package/dist/apis/iban.js +1 -1
  59. package/dist/apis/integration-toolkit.cjs +6 -6
  60. package/dist/apis/integration-toolkit.js +1 -1
  61. package/dist/apis/journey.cjs +8 -8
  62. package/dist/apis/journey.d.cts +2 -2
  63. package/dist/apis/journey.d.ts +2 -2
  64. package/dist/apis/journey.js +2 -2
  65. package/dist/apis/kanban.cjs +6 -6
  66. package/dist/apis/kanban.js +1 -1
  67. package/dist/apis/message.cjs +6 -6
  68. package/dist/apis/message.js +1 -1
  69. package/dist/apis/metering.cjs +6 -6
  70. package/dist/apis/metering.js +1 -1
  71. package/dist/apis/notes.cjs +6 -6
  72. package/dist/apis/notes.js +1 -1
  73. package/dist/apis/notification.cjs +6 -6
  74. package/dist/apis/notification.js +1 -1
  75. package/dist/apis/organization.cjs +6 -6
  76. package/dist/apis/organization.js +1 -1
  77. package/dist/apis/partner-directory.cjs +6 -6
  78. package/dist/apis/partner-directory.js +1 -1
  79. package/dist/apis/permissions.cjs +6 -6
  80. package/dist/apis/permissions.js +1 -1
  81. package/dist/apis/pricing-tier.cjs +6 -6
  82. package/dist/apis/pricing-tier.js +1 -1
  83. package/dist/apis/pricing.cjs +6 -27
  84. package/dist/apis/pricing.d.cts +1 -13
  85. package/dist/apis/pricing.d.ts +1 -13
  86. package/dist/apis/pricing.js +1 -22
  87. package/dist/apis/purpose.cjs +6 -6
  88. package/dist/apis/purpose.js +1 -1
  89. package/dist/apis/query.cjs +6 -6
  90. package/dist/apis/query.js +1 -1
  91. package/dist/apis/sandbox.cjs +6 -6
  92. package/dist/apis/sandbox.js +1 -1
  93. package/dist/apis/sharing.cjs +6 -6
  94. package/dist/apis/sharing.js +1 -1
  95. package/dist/apis/snapshot.cjs +6 -6
  96. package/dist/apis/snapshot.js +1 -1
  97. package/dist/apis/submission.cjs +6 -6
  98. package/dist/apis/submission.js +1 -1
  99. package/dist/apis/target.cjs +6 -6
  100. package/dist/apis/target.js +1 -1
  101. package/dist/apis/targeting.cjs +6 -6
  102. package/dist/apis/targeting.js +1 -1
  103. package/dist/apis/template-variables.cjs +6 -6
  104. package/dist/apis/template-variables.js +1 -1
  105. package/dist/apis/user.cjs +6 -6
  106. package/dist/apis/user.js +1 -1
  107. package/dist/apis/validation-rules.cjs +6 -6
  108. package/dist/apis/validation-rules.js +1 -1
  109. package/dist/apis/webhooks.cjs +6 -6
  110. package/dist/apis/webhooks.js +1 -1
  111. package/dist/apis/workflow-definition.cjs +6 -6
  112. package/dist/apis/workflow-definition.js +1 -1
  113. package/dist/apis/workflow.cjs +6 -6
  114. package/dist/apis/workflow.js +1 -1
  115. package/dist/chunk-2Q6CNXJ2.cjs +14 -0
  116. package/dist/{chunk-5S2PEECD.cjs → chunk-424JLS5G.cjs} +1 -1
  117. package/dist/chunk-FGQBS7TA.js +14 -0
  118. package/dist/chunk-HL4MZXEK.js +14 -0
  119. package/dist/chunk-LTCN52JS.js +14 -0
  120. package/dist/{chunk-VCD3C4UW.cjs → chunk-QZH7QNNP.cjs} +6 -6
  121. package/dist/{chunk-JBFTKLP2.js → chunk-SMERBU2T.js} +6 -6
  122. package/dist/chunk-W6R2J6KQ.cjs +14 -0
  123. package/dist/event-catalog-S4OYTDIB.js +7 -0
  124. package/dist/event-catalog-Z6BO4L2G.cjs +7 -0
  125. package/dist/{event-catalog-runtime-AME244T7.cjs → event-catalog-runtime-XWSYNUGQ.cjs} +2 -2
  126. package/dist/{event-catalog-runtime-Q3MKEDG4.js → event-catalog-runtime-Z6OMHQBD.js} +1 -1
  127. package/dist/{event-catalog.d-Bd2wmtlZ.d.ts → event-catalog.d-CCE1qmBN.d.cts} +105 -22
  128. package/dist/{event-catalog.d-Bd2wmtlZ.d.cts → event-catalog.d-CCE1qmBN.d.ts} +105 -22
  129. package/dist/file-LFOTXMRJ.cjs +7 -0
  130. package/dist/file-ND2JH5EM.js +7 -0
  131. package/dist/file-runtime-JL2IZ2CE.cjs +5 -0
  132. package/dist/{file-runtime-423SISQ2.js → file-runtime-RS4DX5LB.js} +1 -1
  133. package/dist/{file.d-CBsXF4W8.d.ts → file.d-DELNV63w.d.cts} +340 -9
  134. package/dist/{file.d-CBsXF4W8.d.cts → file.d-DELNV63w.d.ts} +340 -9
  135. package/dist/index.cjs +14 -14
  136. package/dist/index.d.cts +3 -3
  137. package/dist/index.d.ts +3 -3
  138. package/dist/index.js +4 -4
  139. package/dist/journey-FNWHSZW3.js +7 -0
  140. package/dist/journey-FUJDOH5O.cjs +7 -0
  141. package/dist/{journey-runtime-PAJVCFMZ.cjs → journey-runtime-EFWGEDUE.cjs} +2 -2
  142. package/dist/{journey-runtime-33QDS2WK.js → journey-runtime-VCADGDRV.js} +1 -1
  143. package/dist/{journey.d-bxl2l7qg.d.cts → journey.d-6Bs1uNLT.d.cts} +1062 -14
  144. package/dist/{journey.d-bxl2l7qg.d.ts → journey.d-6Bs1uNLT.d.ts} +1062 -14
  145. package/docs/event-catalog.md +155 -5
  146. package/docs/file.md +272 -0
  147. package/docs/journey.md +676 -0
  148. package/package.json +1 -1
  149. package/definitions/access-token-runtime.json +0 -1
  150. package/definitions/access-token.json +0 -835
  151. package/definitions/address-runtime.json +0 -1
  152. package/definitions/address-suggestions-runtime.json +0 -1
  153. package/definitions/address-suggestions.json +0 -582
  154. package/definitions/address.json +0 -578
  155. package/definitions/ai-agents-runtime.json +0 -1
  156. package/definitions/ai-agents.json +0 -2863
  157. package/definitions/app-runtime.json +0 -1
  158. package/definitions/app.json +0 -5993
  159. package/definitions/audit-logs-runtime.json +0 -1
  160. package/definitions/audit-logs.json +0 -305
  161. package/definitions/automation-runtime.json +0 -1
  162. package/definitions/automation.json +0 -5889
  163. package/definitions/billing-runtime.json +0 -1
  164. package/definitions/billing.json +0 -2394
  165. package/definitions/blueprint-manifest-runtime.json +0 -1
  166. package/definitions/blueprint-manifest.json +0 -7817
  167. package/definitions/calendar-runtime.json +0 -1
  168. package/definitions/calendar.json +0 -2904
  169. package/definitions/configuration-hub-runtime.json +0 -1
  170. package/definitions/configuration-hub.json +0 -2250
  171. package/definitions/consent-runtime.json +0 -1
  172. package/definitions/consent.json +0 -344
  173. package/definitions/customer-portal-runtime.json +0 -1
  174. package/definitions/customer-portal.json +0 -19945
  175. package/definitions/dashboard-runtime.json +0 -1
  176. package/definitions/dashboard.json +0 -1355
  177. package/definitions/data-governance-runtime.json +0 -1
  178. package/definitions/data-governance.json +0 -1126
  179. package/definitions/deduplication-runtime.json +0 -1
  180. package/definitions/deduplication.json +0 -782
  181. package/definitions/design-runtime.json +0 -1
  182. package/definitions/design.json +0 -1827
  183. package/definitions/document-runtime.json +0 -1
  184. package/definitions/document.json +0 -758
  185. package/definitions/email-settings-runtime.json +0 -1
  186. package/definitions/email-settings.json +0 -3736
  187. package/definitions/email-template-runtime.json +0 -1
  188. package/definitions/email-template.json +0 -1441
  189. package/definitions/entity-mapping-runtime.json +0 -1
  190. package/definitions/entity-mapping.json +0 -1829
  191. package/definitions/entity-runtime.json +0 -1
  192. package/definitions/entity.json +0 -11546
  193. package/definitions/environments-runtime.json +0 -1
  194. package/definitions/environments.json +0 -703
  195. package/definitions/event-catalog-runtime.json +0 -1
  196. package/definitions/event-catalog.json +0 -1943
  197. package/definitions/file-runtime.json +0 -1
  198. package/definitions/file.json +0 -3905
  199. package/definitions/iban-runtime.json +0 -1
  200. package/definitions/iban.json +0 -132
  201. package/definitions/integration-toolkit-runtime.json +0 -1
  202. package/definitions/integration-toolkit.json +0 -12966
  203. package/definitions/journey-runtime.json +0 -1
  204. package/definitions/journey.json +0 -3040
  205. package/definitions/kanban-runtime.json +0 -1
  206. package/definitions/kanban.json +0 -1506
  207. package/definitions/message-runtime.json +0 -1
  208. package/definitions/message.json +0 -3667
  209. package/definitions/metering-runtime.json +0 -1
  210. package/definitions/metering.json +0 -3132
  211. package/definitions/notes-runtime.json +0 -1
  212. package/definitions/notes.json +0 -1698
  213. package/definitions/notification-runtime.json +0 -1
  214. package/definitions/notification.json +0 -1439
  215. package/definitions/organization-runtime.json +0 -1
  216. package/definitions/organization.json +0 -1192
  217. package/definitions/partner-directory-runtime.json +0 -1
  218. package/definitions/partner-directory.json +0 -2284
  219. package/definitions/permissions-runtime.json +0 -1
  220. package/definitions/permissions.json +0 -1598
  221. package/definitions/pricing-runtime.json +0 -1
  222. package/definitions/pricing-tier-runtime.json +0 -1
  223. package/definitions/pricing-tier.json +0 -105
  224. package/definitions/pricing.json +0 -14301
  225. package/definitions/purpose-runtime.json +0 -1
  226. package/definitions/purpose.json +0 -524
  227. package/definitions/query-runtime.json +0 -1
  228. package/definitions/query.json +0 -3178
  229. package/definitions/sandbox-runtime.json +0 -1
  230. package/definitions/sandbox.json +0 -453
  231. package/definitions/sharing-runtime.json +0 -1
  232. package/definitions/sharing.json +0 -956
  233. package/definitions/snapshot-runtime.json +0 -1
  234. package/definitions/snapshot.json +0 -1103
  235. package/definitions/submission-runtime.json +0 -1
  236. package/definitions/submission.json +0 -313
  237. package/definitions/targeting-runtime.json +0 -1
  238. package/definitions/targeting.json +0 -2285
  239. package/definitions/template-variables-runtime.json +0 -1
  240. package/definitions/template-variables.json +0 -1416
  241. package/definitions/user-runtime.json +0 -1
  242. package/definitions/user.json +0 -3051
  243. package/definitions/validation-rules-runtime.json +0 -1
  244. package/definitions/validation-rules.json +0 -2642
  245. package/definitions/webhooks-runtime.json +0 -1
  246. package/definitions/webhooks.json +0 -1875
  247. package/definitions/workflow-definition-runtime.json +0 -1
  248. package/definitions/workflow-definition.json +0 -3592
  249. package/definitions/workflow-runtime.json +0 -1
  250. package/definitions/workflow.json +0 -4669
  251. package/dist/chunk-CIKDOXDL.cjs +0 -14
  252. package/dist/chunk-EEKJGTAS.js +0 -14
  253. package/dist/chunk-IBMGFLXF.js +0 -14
  254. package/dist/chunk-MPZICOVZ.cjs +0 -14
  255. package/dist/chunk-XJUB5BYM.js +0 -14
  256. package/dist/event-catalog-4FVQZ65M.cjs +0 -7
  257. package/dist/event-catalog-PEOHXUJO.js +0 -7
  258. package/dist/file-M5HNKOPG.cjs +0 -7
  259. package/dist/file-ZUNCUDBY.js +0 -7
  260. package/dist/file-runtime-IHVDQNIX.cjs +0 -5
  261. package/dist/journey-2HHH7MLM.js +0 -7
  262. package/dist/journey-4CXKZMKV.cjs +0 -7
@@ -29,6 +29,7 @@ const { data } = await eventCatalogClient.listEvents(...)
29
29
  - [`createCustomEvent`](#createcustomevent)
30
30
  - [`getEvent`](#getevent)
31
31
  - [`patchEvent`](#patchevent)
32
+ - [`replaceCustomEventDraft`](#replacecustomeventdraft)
32
33
  - [`deprecateCustomEvent`](#deprecatecustomevent)
33
34
  - [`previewCustomEvent`](#previewcustomevent)
34
35
  - [`publishCustomEventDefinition`](#publishcustomeventdefinition)
@@ -131,6 +132,7 @@ const { data } = await client.listEvents()
131
132
  "enabled": true,
132
133
  "auto_trigger": true,
133
134
  "automation_trigger": true,
135
+ "api_trigger": true,
134
136
  "automation_trigger_only": true,
135
137
  "automation_trigger_seed_node": "ticket",
136
138
  "event_origin": "builtin",
@@ -163,7 +165,7 @@ const { data } = await client.listEvents()
163
165
 
164
166
  ### `createCustomEvent`
165
167
 
166
- Reserve an org-scoped custom event name and persist its immutable v1.0 draft definition.
168
+ Reserve an org-scoped custom event name and persist its immutable v1.0 draft definition. Custom events are always projected from an entity graph: entity_graph is required and, in guided mapping mode,
167
169
 
168
170
  `POST /v1/events`
169
171
 
@@ -205,6 +207,9 @@ const { data } = await client.createCustomEvent(
205
207
  ]
206
208
  },
207
209
  automation_trigger: true,
210
+ api_trigger: true,
211
+ automation_trigger_only: false,
212
+ automation_trigger_seed_node: 'string',
208
213
  mapping: {
209
214
  mode: 'guided',
210
215
  jsonata: 'string'
@@ -261,6 +266,7 @@ const { data } = await client.createCustomEvent(
261
266
  "enabled": true,
262
267
  "auto_trigger": true,
263
268
  "automation_trigger": true,
269
+ "api_trigger": true,
264
270
  "automation_trigger_only": true,
265
271
  "automation_trigger_seed_node": "ticket",
266
272
  "event_origin": "builtin",
@@ -344,6 +350,7 @@ const { data } = await client.getEvent({
344
350
  "enabled": true,
345
351
  "auto_trigger": true,
346
352
  "automation_trigger": true,
353
+ "api_trigger": true,
347
354
  "automation_trigger_only": true,
348
355
  "automation_trigger_seed_node": "ticket",
349
356
  "event_origin": "builtin",
@@ -439,6 +446,143 @@ const { data } = await client.patchEvent(
439
446
  "enabled": true,
440
447
  "auto_trigger": true,
441
448
  "automation_trigger": true,
449
+ "api_trigger": true,
450
+ "automation_trigger_only": true,
451
+ "automation_trigger_seed_node": "ticket",
452
+ "event_origin": "builtin",
453
+ "mapping": {
454
+ "mode": "guided",
455
+ "jsonata": "string"
456
+ },
457
+ "lineage": {
458
+ "base_event_name": "string",
459
+ "base_event_version": "string"
460
+ },
461
+ "success_criteria": [
462
+ {
463
+ "entity_schema": "contract",
464
+ "attribute": "installment_amount"
465
+ },
466
+ {
467
+ "entity_schema": "billing_account",
468
+ "attribute": "due_date"
469
+ }
470
+ ]
471
+ }
472
+ ```
473
+
474
+ </details>
475
+
476
+ ---
477
+
478
+ ### `replaceCustomEventDraft`
479
+
480
+ Replace the complete v1.0 definition of an org-scoped custom event while it is still an
481
+ unpublished draft. Drafts have no consumers, so their definition is not yet immutable;
482
+ the event name is the ide
483
+
484
+ `PUT /v1/events/{event_name}`
485
+
486
+ ```ts
487
+ const { data } = await client.replaceCustomEventDraft(
488
+ {
489
+ event_name: 'example',
490
+ },
491
+ {
492
+ event_name: 'string',
493
+ event_title: 'string',
494
+ event_description: 'string',
495
+ event_tags: ['string'],
496
+ schema_fields: {},
497
+ entity_graph: {
498
+ nodes: [
499
+ {
500
+ id: 'contact',
501
+ schema: 'contact',
502
+ cardinality: 'one',
503
+ fields: ['_id', '_title', 'first_name', 'account', '!account.*._files', '**._product']
504
+ }
505
+ ],
506
+ edges: [
507
+ {
508
+ from: 'contact',
509
+ to: 'billing_account'
510
+ }
511
+ ]
512
+ },
513
+ entity_operation: {
514
+ operation: ['createEntity', 'updateEntity'],
515
+ schema: ['contact', 'contract', 'order'],
516
+ attribute: ['email', 'phone', 'status'],
517
+ purpose: ['Kündigung', 'Umzug/Auszug'],
518
+ purpose_filters: [
519
+ {
520
+ id: 'string',
521
+ display_name: 'string'
522
+ }
523
+ ]
524
+ },
525
+ automation_trigger: true,
526
+ api_trigger: true,
527
+ automation_trigger_only: false,
528
+ automation_trigger_seed_node: 'string',
529
+ mapping: {
530
+ mode: 'guided',
531
+ jsonata: 'string'
532
+ },
533
+ lineage: {
534
+ base_event_name: 'string',
535
+ base_event_version: 'string'
536
+ },
537
+ example: {}
538
+ },
539
+ )
540
+ ```
541
+
542
+ <details>
543
+ <summary>Response</summary>
544
+
545
+ ```json
546
+ {
547
+ "event_name": "AddMeterReading",
548
+ "event_title": "Add Meter Reading",
549
+ "event_description": "Triggered when a new meter reading is added",
550
+ "event_version": "1.0",
551
+ "event_status": "active",
552
+ "event_tags": ["builtin", "metering", "erp"],
553
+ "schema_fields": {},
554
+ "entity_graph": {
555
+ "nodes": [
556
+ {
557
+ "id": "contact",
558
+ "schema": "contact",
559
+ "cardinality": "one",
560
+ "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
561
+ }
562
+ ],
563
+ "edges": [
564
+ {
565
+ "from": "contact",
566
+ "to": "billing_account"
567
+ }
568
+ ]
569
+ },
570
+ "entity_operation": {
571
+ "operation": ["createEntity", "updateEntity"],
572
+ "schema": ["contact", "contract", "order"],
573
+ "attribute": ["email", "phone", "status"],
574
+ "purpose": ["Kündigung", "Umzug/Auszug"],
575
+ "purpose_filters": [
576
+ {
577
+ "id": "string",
578
+ "display_name": "string"
579
+ }
580
+ ]
581
+ },
582
+ "enabled": true,
583
+ "auto_trigger": true,
584
+ "automation_trigger": true,
585
+ "api_trigger": true,
442
586
  "automation_trigger_only": true,
443
587
  "automation_trigger_seed_node": "ticket",
444
588
  "event_origin": "builtin",
@@ -584,6 +728,7 @@ const { data } = await client.publishCustomEventDefinition(
584
728
  "enabled": true,
585
729
  "auto_trigger": true,
586
730
  "automation_trigger": true,
731
+ "api_trigger": true,
587
732
  "automation_trigger_only": true,
588
733
  "automation_trigger_seed_node": "ticket",
589
734
  "event_origin": "builtin",
@@ -1072,6 +1217,7 @@ type EventConfigBase = {
1072
1217
  enabled?: boolean
1073
1218
  auto_trigger?: boolean
1074
1219
  automation_trigger?: boolean
1220
+ api_trigger?: boolean
1075
1221
  automation_trigger_only?: boolean
1076
1222
  automation_trigger_seed_node?: string
1077
1223
  event_origin?: "builtin" | "custom"
@@ -1146,6 +1292,7 @@ type EventConfig = {
1146
1292
  enabled?: boolean
1147
1293
  auto_trigger?: boolean
1148
1294
  automation_trigger?: boolean
1295
+ api_trigger?: boolean
1149
1296
  automation_trigger_only?: boolean
1150
1297
  automation_trigger_seed_node?: string
1151
1298
  event_origin?: "builtin" | "custom"
@@ -1166,7 +1313,7 @@ type EventConfig = {
1166
1313
 
1167
1314
  ### `CreateCustomEventPayload`
1168
1315
 
1169
- Complete immutable custom-event v1.0 definition. Publication is a separate conditional action.
1316
+ Complete immutable custom-event v1.0 definition projected from a required entity graph. Publication is a separate conditional action.
1170
1317
 
1171
1318
  ```ts
1172
1319
  type CreateCustomEventPayload = {
@@ -1182,7 +1329,7 @@ type CreateCustomEventPayload = {
1182
1329
  entity_schema: string
1183
1330
  required?: boolean
1184
1331
  }>
1185
- entity_graph?: {
1332
+ entity_graph: {
1186
1333
  nodes: Array<{
1187
1334
  id: { ... }
1188
1335
  schema: { ... }
@@ -1205,6 +1352,9 @@ type CreateCustomEventPayload = {
1205
1352
  }>
1206
1353
  }
1207
1354
  automation_trigger?: boolean
1355
+ api_trigger?: boolean
1356
+ automation_trigger_only?: boolean
1357
+ automation_trigger_seed_node?: string
1208
1358
  mapping?: {
1209
1359
  mode: "guided" | "jsonata"
1210
1360
  jsonata?: string
@@ -1230,7 +1380,7 @@ type EventMapping = {
1230
1380
 
1231
1381
  ### `CustomEventLineage`
1232
1382
 
1233
- Optional catalog lineage to a separately named base event. It does not replace the base event.
1383
+ Optional catalog lineage to a separately named base event. Built-in inheritance is validated against this exact registered version; its trigger restrictions cannot be removed or replaced. It does not replace the base event.
1234
1384
 
1235
1385
  ```ts
1236
1386
  type CustomEventLineage = {
@@ -1341,7 +1491,7 @@ type AttachmentField = {
1341
1491
 
1342
1492
  ### `CustomSchemaField`
1343
1493
 
1344
- Custom v1 fields support JSON Schema values and context entities; attachment semantics are built-in-only.
1494
+ Custom v1 fields support graph-projected JSON Schema values and context entities; attachment semantics are built-in-only.
1345
1495
 
1346
1496
  ```ts
1347
1497
  type CustomSchemaField = {
package/docs/file.md CHANGED
@@ -42,6 +42,7 @@ const { data } = await fileClient.uploadFileV2(...)
42
42
  - [`getFileSummaryJob`](#getfilesummaryjob)
43
43
  - [`generateFileSummary`](#generatefilesummary)
44
44
  - [`getFileText`](#getfiletext)
45
+ - [`validateFile`](#validatefile)
45
46
  - [`verifyCustomDownloadUrl`](#verifycustomdownloadurl)
46
47
  - [`uploadFilePublic`](#uploadfilepublic)
47
48
 
@@ -83,6 +84,15 @@ const { data } = await fileClient.uploadFileV2(...)
83
84
  - [`FileSummaryFeedbackResponse`](#filesummaryfeedbackresponse)
84
85
  - [`PutFileSummaryFeedbackRequest`](#putfilesummaryfeedbackrequest)
85
86
  - [`FileTextStatus`](#filetextstatus)
87
+ - [`FileValidationRequest`](#filevalidationrequest)
88
+ - [`FileValidationFileReference`](#filevalidationfilereference)
89
+ - [`FileValidation`](#filevalidation)
90
+ - [`FileValidationFile`](#filevalidationfile)
91
+ - [`FileValidationObservation`](#filevalidationobservation)
92
+ - [`FileValidationJudgement`](#filevalidationjudgement)
93
+ - [`FileValidationFacts`](#filevalidationfacts)
94
+ - [`FileValidationRuleResult`](#filevalidationruleresult)
95
+ - [`FileValidationConditionResult`](#filevalidationconditionresult)
86
96
  - [`FileText`](#filetext)
87
97
  - [`FileTextReady`](#filetextready)
88
98
  - [`FileTextNotReady`](#filetextnotready)
@@ -777,6 +787,83 @@ const { data } = await client.getFileText({
777
787
 
778
788
  ---
779
789
 
790
+ ### `validateFile`
791
+
792
+ Validate an uploaded file against one or more document validation rules
793
+ (validation-rules-api rules with `input_type: document`).
794
+
795
+ `POST /v1/files/validations`
796
+
797
+ ```ts
798
+ const { data } = await client.validateFile(
799
+ null,
800
+ {
801
+ file: {
802
+ entity_id: 'ef7d985c-2385-44f4-9c71-ae06a52264f8'
803
+ },
804
+ rule_ids: ['string']
805
+ },
806
+ )
807
+ ```
808
+
809
+ <details>
810
+ <summary>Response</summary>
811
+
812
+ ```json
813
+ {
814
+ "id": "string",
815
+ "status": "completed",
816
+ "file": {
817
+ "entity_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",
818
+ "s3ref": {},
819
+ "filename": "string",
820
+ "mime_type": "string",
821
+ "size_bytes": 0
822
+ },
823
+ "observation": {
824
+ "facts": {
825
+ "mime_type": "string",
826
+ "size_bytes": 0,
827
+ "page_count": 0,
828
+ "longer_edge_px": 0,
829
+ "is_blank": true,
830
+ "is_password_protected": true
831
+ },
832
+ "judgements": {},
833
+ "document_type": {
834
+ "slug": "string",
835
+ "confidence": 0
836
+ }
837
+ },
838
+ "results": [
839
+ {
840
+ "rule_id": "string",
841
+ "rule_title": "string",
842
+ "level": "basic",
843
+ "is_valid": true,
844
+ "failed_parts": ["string"],
845
+ "warnings": ["string"],
846
+ "conditions": [
847
+ {
848
+ "id": "string",
849
+ "operator": "string",
850
+ "outcome": "pass",
851
+ "blocking": true,
852
+ "message": "string",
853
+ "evidence": "string",
854
+ "explanation": "string"
855
+ }
856
+ ]
857
+ }
858
+ ],
859
+ "created_at": "1970-01-01T00:00:00.000Z"
860
+ }
861
+ ```
862
+
863
+ </details>
864
+
865
+ ---
866
+
780
867
  ### `previewFile`
781
868
 
782
869
  Generate a thumbnail preview for a file entity.
@@ -1408,6 +1495,191 @@ Availability of the plain-text representation for a file entity.
1408
1495
  type FileTextStatus = "ready" | "not_ready" | "unsupported"
1409
1496
  ```
1410
1497
 
1498
+ ### `FileValidationRequest`
1499
+
1500
+ ```ts
1501
+ type FileValidationRequest = {
1502
+ file: {
1503
+ entity_id: string | string // uuid
1504
+ } | {
1505
+ s3ref: unknown
1506
+ }
1507
+ rule_ids: string[]
1508
+ }
1509
+ ```
1510
+
1511
+ ### `FileValidationFileReference`
1512
+
1513
+ The file to validate - a saved file entity, or an uploaded object not saved as an entity yet.
1514
+
1515
+ ```ts
1516
+ type FileValidationFileReference = {
1517
+ entity_id: string | string // uuid
1518
+ } | {
1519
+ s3ref: unknown
1520
+ }
1521
+ ```
1522
+
1523
+ ### `FileValidation`
1524
+
1525
+ ```ts
1526
+ type FileValidation = {
1527
+ id: string
1528
+ status: "completed" | "pending" | "failed"
1529
+ file: {
1530
+ entity_id?: string | string // uuid
1531
+ s3ref?: unknown
1532
+ filename?: string
1533
+ mime_type?: string
1534
+ size_bytes?: number
1535
+ }
1536
+ observation: {
1537
+ facts: {
1538
+ mime_type?: { ... }
1539
+ size_bytes?: { ... }
1540
+ page_count?: { ... }
1541
+ longer_edge_px?: { ... }
1542
+ is_blank?: { ... }
1543
+ is_password_protected?: { ... }
1544
+ }
1545
+ judgements?: Record<string, {
1546
+ result: { ... }
1547
+ confidence?: { ... }
1548
+ evidence?: { ... }
1549
+ explanation?: { ... }
1550
+ }>
1551
+ document_type?: {
1552
+ slug?: { ... }
1553
+ confidence?: { ... }
1554
+ }
1555
+ }
1556
+ results: Array<{
1557
+ rule_id: string
1558
+ rule_title?: string
1559
+ level: "basic" | "standard" | "advanced"
1560
+ is_valid: boolean
1561
+ failed_parts?: string[]
1562
+ warnings?: string[]
1563
+ conditions: Array<{
1564
+ id: { ... }
1565
+ operator: { ... }
1566
+ outcome: { ... }
1567
+ blocking: { ... }
1568
+ message: { ... }
1569
+ evidence?: { ... }
1570
+ explanation?: { ... }
1571
+ }>
1572
+ }>
1573
+ created_at: string // date-time
1574
+ }
1575
+ ```
1576
+
1577
+ ### `FileValidationFile`
1578
+
1579
+ The file that was validated, with the identity facts collected from its content.
1580
+
1581
+ ```ts
1582
+ type FileValidationFile = {
1583
+ entity_id?: string | string // uuid
1584
+ s3ref?: unknown
1585
+ filename?: string
1586
+ mime_type?: string
1587
+ size_bytes?: number
1588
+ }
1589
+ ```
1590
+
1591
+ ### `FileValidationObservation`
1592
+
1593
+ Everything observed about the file, as passed to the validation rules engine.
1594
+
1595
+ ```ts
1596
+ type FileValidationObservation = {
1597
+ facts: {
1598
+ mime_type?: string
1599
+ size_bytes?: number
1600
+ page_count?: number
1601
+ longer_edge_px?: number
1602
+ is_blank?: boolean
1603
+ is_password_protected?: boolean
1604
+ }
1605
+ judgements?: Record<string, {
1606
+ result: "pass" | "fail" | "uncertain"
1607
+ confidence?: number
1608
+ evidence?: string
1609
+ explanation?: string
1610
+ }>
1611
+ document_type?: {
1612
+ slug?: string
1613
+ confidence?: number
1614
+ }
1615
+ }
1616
+ ```
1617
+
1618
+ ### `FileValidationJudgement`
1619
+
1620
+ ```ts
1621
+ type FileValidationJudgement = {
1622
+ result: "pass" | "fail" | "uncertain"
1623
+ confidence?: number
1624
+ evidence?: string
1625
+ explanation?: string
1626
+ }
1627
+ ```
1628
+
1629
+ ### `FileValidationFacts`
1630
+
1631
+ Deterministic properties of the file. A property that is absent could not be determined
1632
+ (for example the resolution of an image the service cannot decode); conditions that need it
1633
+ are skipped rather than failed.
1634
+
1635
+
1636
+ ```ts
1637
+ type FileValidationFacts = {
1638
+ mime_type?: string
1639
+ size_bytes?: number
1640
+ page_count?: number
1641
+ longer_edge_px?: number
1642
+ is_blank?: boolean
1643
+ is_password_protected?: boolean
1644
+ }
1645
+ ```
1646
+
1647
+ ### `FileValidationRuleResult`
1648
+
1649
+ ```ts
1650
+ type FileValidationRuleResult = {
1651
+ rule_id: string
1652
+ rule_title?: string
1653
+ level: "basic" | "standard" | "advanced"
1654
+ is_valid: boolean
1655
+ failed_parts?: string[]
1656
+ warnings?: string[]
1657
+ conditions: Array<{
1658
+ id: string
1659
+ operator: string
1660
+ outcome: "pass" | "fail" | "uncertain" | "skipped"
1661
+ blocking: boolean
1662
+ message: string
1663
+ evidence?: string
1664
+ explanation?: string
1665
+ }>
1666
+ }
1667
+ ```
1668
+
1669
+ ### `FileValidationConditionResult`
1670
+
1671
+ ```ts
1672
+ type FileValidationConditionResult = {
1673
+ id: string
1674
+ operator: string
1675
+ outcome: "pass" | "fail" | "uncertain" | "skipped"
1676
+ blocking: boolean
1677
+ message: string
1678
+ evidence?: string
1679
+ explanation?: string
1680
+ }
1681
+ ```
1682
+
1411
1683
  ### `FileText`
1412
1684
 
1413
1685
  ```ts