@epilot/sdk 2.20.1 → 2.20.2

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 (145) hide show
  1. package/definitions/automation-runtime.json +1 -1
  2. package/definitions/automation.json +344 -12
  3. package/definitions/event-catalog-runtime.json +1 -1
  4. package/definitions/event-catalog.json +431 -12
  5. package/dist/apis/access-token.cjs +6 -6
  6. package/dist/apis/access-token.js +1 -1
  7. package/dist/apis/address-suggestions.cjs +6 -6
  8. package/dist/apis/address-suggestions.js +1 -1
  9. package/dist/apis/address.cjs +6 -6
  10. package/dist/apis/address.js +1 -1
  11. package/dist/apis/ai-agents.cjs +6 -6
  12. package/dist/apis/ai-agents.js +1 -1
  13. package/dist/apis/app.cjs +6 -6
  14. package/dist/apis/app.js +1 -1
  15. package/dist/apis/audit-logs.cjs +6 -6
  16. package/dist/apis/audit-logs.js +1 -1
  17. package/dist/apis/automation.cjs +8 -8
  18. package/dist/apis/automation.d.cts +2 -2
  19. package/dist/apis/automation.d.ts +2 -2
  20. package/dist/apis/automation.js +2 -2
  21. package/dist/apis/billing.cjs +6 -6
  22. package/dist/apis/billing.js +1 -1
  23. package/dist/apis/blueprint-manifest.cjs +6 -6
  24. package/dist/apis/blueprint-manifest.js +1 -1
  25. package/dist/apis/calendar.cjs +6 -6
  26. package/dist/apis/calendar.js +1 -1
  27. package/dist/apis/configuration-hub.cjs +6 -6
  28. package/dist/apis/configuration-hub.js +1 -1
  29. package/dist/apis/consent.cjs +6 -6
  30. package/dist/apis/consent.js +1 -1
  31. package/dist/apis/customer-portal.cjs +6 -6
  32. package/dist/apis/customer-portal.js +1 -1
  33. package/dist/apis/dashboard.cjs +6 -6
  34. package/dist/apis/dashboard.js +1 -1
  35. package/dist/apis/data-governance.cjs +6 -6
  36. package/dist/apis/data-governance.js +1 -1
  37. package/dist/apis/deduplication.cjs +6 -6
  38. package/dist/apis/deduplication.js +1 -1
  39. package/dist/apis/design.cjs +6 -6
  40. package/dist/apis/design.js +1 -1
  41. package/dist/apis/document.cjs +6 -6
  42. package/dist/apis/document.js +1 -1
  43. package/dist/apis/email-settings.cjs +6 -6
  44. package/dist/apis/email-settings.js +1 -1
  45. package/dist/apis/email-template.cjs +6 -6
  46. package/dist/apis/email-template.js +1 -1
  47. package/dist/apis/entity-mapping.cjs +6 -6
  48. package/dist/apis/entity-mapping.js +1 -1
  49. package/dist/apis/entity.cjs +6 -6
  50. package/dist/apis/entity.js +1 -1
  51. package/dist/apis/environments.cjs +6 -6
  52. package/dist/apis/environments.js +1 -1
  53. package/dist/apis/event-catalog.cjs +8 -8
  54. package/dist/apis/event-catalog.d.cts +2 -2
  55. package/dist/apis/event-catalog.d.ts +2 -2
  56. package/dist/apis/event-catalog.js +2 -2
  57. package/dist/apis/file.cjs +6 -6
  58. package/dist/apis/file.js +1 -1
  59. package/dist/apis/iban.cjs +6 -6
  60. package/dist/apis/iban.js +1 -1
  61. package/dist/apis/integration-toolkit.cjs +6 -6
  62. package/dist/apis/integration-toolkit.js +1 -1
  63. package/dist/apis/journey.cjs +6 -6
  64. package/dist/apis/journey.js +1 -1
  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 -6
  84. package/dist/apis/pricing.js +1 -1
  85. package/dist/apis/purpose.cjs +6 -6
  86. package/dist/apis/purpose.js +1 -1
  87. package/dist/apis/query.cjs +6 -6
  88. package/dist/apis/query.js +1 -1
  89. package/dist/apis/sandbox.cjs +6 -6
  90. package/dist/apis/sandbox.js +1 -1
  91. package/dist/apis/sharing.cjs +6 -6
  92. package/dist/apis/sharing.js +1 -1
  93. package/dist/apis/snapshot.cjs +6 -6
  94. package/dist/apis/snapshot.js +1 -1
  95. package/dist/apis/submission.cjs +6 -6
  96. package/dist/apis/submission.js +1 -1
  97. package/dist/apis/target.cjs +6 -6
  98. package/dist/apis/target.js +1 -1
  99. package/dist/apis/targeting.cjs +6 -6
  100. package/dist/apis/targeting.js +1 -1
  101. package/dist/apis/template-variables.cjs +6 -6
  102. package/dist/apis/template-variables.js +1 -1
  103. package/dist/apis/user.cjs +6 -6
  104. package/dist/apis/user.js +1 -1
  105. package/dist/apis/validation-rules.cjs +6 -6
  106. package/dist/apis/validation-rules.js +1 -1
  107. package/dist/apis/webhooks.cjs +6 -6
  108. package/dist/apis/webhooks.js +1 -1
  109. package/dist/apis/workflow-definition.cjs +6 -6
  110. package/dist/apis/workflow-definition.js +1 -1
  111. package/dist/apis/workflow.cjs +6 -6
  112. package/dist/apis/workflow.js +1 -1
  113. package/dist/automation-23XNDPBF.cjs +7 -0
  114. package/dist/automation-OMESM3H3.js +7 -0
  115. package/dist/{automation-runtime-RM5EOZH2.cjs → automation-runtime-KLCXZKEC.cjs} +2 -2
  116. package/dist/{automation-runtime-ORW5BVCD.js → automation-runtime-Y52HM57N.js} +1 -1
  117. package/dist/{automation.d-BnQFR6k8.d.cts → automation.d-D8JxyoFa.d.cts} +317 -21
  118. package/dist/{automation.d-BnQFR6k8.d.ts → automation.d-D8JxyoFa.d.ts} +317 -21
  119. package/dist/{chunk-L7RZB4SO.cjs → chunk-AUHRCKFN.cjs} +4 -4
  120. package/dist/chunk-EEKJGTAS.js +14 -0
  121. package/dist/{chunk-LWW6JFX2.js → chunk-GNKU7CBT.js} +4 -4
  122. package/dist/chunk-MPZICOVZ.cjs +14 -0
  123. package/dist/chunk-QW3ROE6H.js +14 -0
  124. package/dist/chunk-WOUASZJW.cjs +14 -0
  125. package/dist/event-catalog-4FVQZ65M.cjs +7 -0
  126. package/dist/event-catalog-PEOHXUJO.js +7 -0
  127. package/dist/{event-catalog-runtime-RH7542GL.cjs → event-catalog-runtime-AME244T7.cjs} +2 -2
  128. package/dist/{event-catalog-runtime-JUSLF3UR.js → event-catalog-runtime-Q3MKEDG4.js} +1 -1
  129. package/dist/{event-catalog.d-QIhhewVH.d.cts → event-catalog.d-Bd2wmtlZ.d.cts} +335 -179
  130. package/dist/{event-catalog.d-QIhhewVH.d.ts → event-catalog.d-Bd2wmtlZ.d.ts} +335 -179
  131. package/dist/index.cjs +12 -12
  132. package/dist/index.d.cts +2 -2
  133. package/dist/index.d.ts +2 -2
  134. package/dist/index.js +3 -3
  135. package/docs/automation.md +237 -45
  136. package/docs/event-catalog.md +483 -64
  137. package/package.json +1 -1
  138. package/dist/automation-3HMHBP6P.cjs +0 -7
  139. package/dist/automation-GIJB3MOI.js +0 -7
  140. package/dist/chunk-ADSWGLIV.cjs +0 -14
  141. package/dist/chunk-FDS727SL.cjs +0 -14
  142. package/dist/chunk-LCE7N4ZL.js +0 -14
  143. package/dist/chunk-M4FO2MI4.js +0 -14
  144. package/dist/event-catalog-6ZSSF5JU.cjs +0 -7
  145. package/dist/event-catalog-RS4LJMY2.js +0 -7
package/dist/index.cjs CHANGED
@@ -60,7 +60,7 @@ var _chunkUKHR33ELcjs = require('./chunk-UKHR33EL.cjs');
60
60
  var _chunkWQBBB6BNcjs = require('./chunk-WQBBB6BN.cjs');
61
61
 
62
62
 
63
- var _chunkFDS727SLcjs = require('./chunk-FDS727SL.cjs');
63
+ var _chunkMPZICOVZcjs = require('./chunk-MPZICOVZ.cjs');
64
64
 
65
65
 
66
66
  var _chunk5S2PEECDcjs = require('./chunk-5S2PEECD.cjs');
@@ -150,7 +150,7 @@ var _chunkN2P6RELZcjs = require('./chunk-N2P6RELZ.cjs');
150
150
  var _chunkRUZRPIHWcjs = require('./chunk-RUZRPIHW.cjs');
151
151
 
152
152
 
153
- var _chunkADSWGLIVcjs = require('./chunk-ADSWGLIV.cjs');
153
+ var _chunkWOUASZJWcjs = require('./chunk-WOUASZJW.cjs');
154
154
 
155
155
 
156
156
 
@@ -158,7 +158,7 @@ var _chunkADSWGLIVcjs = require('./chunk-ADSWGLIV.cjs');
158
158
 
159
159
 
160
160
 
161
- var _chunkL7RZB4SOcjs = require('./chunk-L7RZB4SO.cjs');
161
+ var _chunkAUHRCKFNcjs = require('./chunk-AUHRCKFN.cjs');
162
162
 
163
163
 
164
164
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -225,7 +225,7 @@ var resolveClient = (params) => {
225
225
  }
226
226
  if (!entry.instance) {
227
227
  const definition = entry.loader();
228
- entry.instance = _chunkL7RZB4SOcjs.createApiClient.call(void 0, {
228
+ entry.instance = _chunkAUHRCKFNcjs.createApiClient.call(void 0, {
229
229
  definition,
230
230
  token: state.token,
231
231
  headers: state.globalHeaders,
@@ -258,7 +258,7 @@ var resetAllClients = (registry) => {
258
258
  };
259
259
 
260
260
  // src/apis/_registry.ts
261
- var expandDef = (mod) => _chunkL7RZB4SOcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
261
+ var expandDef = (mod) => _chunkAUHRCKFNcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
262
262
  var registerBuiltinApis = (registry) => {
263
263
  registerApi({
264
264
  registry,
@@ -293,7 +293,7 @@ var registerBuiltinApis = (registry) => {
293
293
  registerApi({
294
294
  registry,
295
295
  name: "automation",
296
- loader: () => expandDef(_chunkADSWGLIVcjs.require_automation_runtime.call(void 0, ))
296
+ loader: () => expandDef(_chunkWOUASZJWcjs.require_automation_runtime.call(void 0, ))
297
297
  });
298
298
  registerApi({
299
299
  registry,
@@ -378,7 +378,7 @@ var registerBuiltinApis = (registry) => {
378
378
  registerApi({
379
379
  registry,
380
380
  name: "eventCatalog",
381
- loader: () => expandDef(_chunkFDS727SLcjs.require_event_catalog_runtime.call(void 0, ))
381
+ loader: () => expandDef(_chunkMPZICOVZcjs.require_event_catalog_runtime.call(void 0, ))
382
382
  });
383
383
  registerApi({
384
384
  registry,
@@ -601,9 +601,9 @@ var createSDK = () => {
601
601
  const available = [...registry.keys()].join(", ");
602
602
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
603
603
  }
604
- return _chunkL7RZB4SOcjs.createApiHandle.call(void 0, {
604
+ return _chunkAUHRCKFNcjs.createApiHandle.call(void 0, {
605
605
  resolveClient: () => resolveClient({ registry, name, state }),
606
- createClient: () => _chunkL7RZB4SOcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
606
+ createClient: () => _chunkAUHRCKFNcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
607
607
  apiName: name
608
608
  });
609
609
  };
@@ -651,9 +651,9 @@ var createSDK = () => {
651
651
  return interceptorUse;
652
652
  }
653
653
  case "help":
654
- return (apiName) => _chunkL7RZB4SOcjs.help.call(void 0, apiName);
654
+ return (apiName) => _chunkAUHRCKFNcjs.help.call(void 0, apiName);
655
655
  case "openapi":
656
- return (apiName) => _chunkL7RZB4SOcjs.openapi.call(void 0, apiName);
656
+ return (apiName) => _chunkAUHRCKFNcjs.openapi.call(void 0, apiName);
657
657
  case "then":
658
658
  case "catch":
659
659
  case "finally":
@@ -683,4 +683,4 @@ var epilot = createSDK();
683
683
 
684
684
 
685
685
 
686
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkL7RZB4SOcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkL7RZB4SOcjs.help; exports.openapi = _chunkL7RZB4SOcjs.openapi;
686
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkAUHRCKFNcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkAUHRCKFNcjs.help; exports.openapi = _chunkAUHRCKFNcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -9,7 +9,7 @@ import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.cjs';
9
9
  import { C as Client$3 } from './ai-agents.d-B3TkP4mo.cjs';
10
10
  import { C as Client$4 } from './app.d-BHpFAvPW.cjs';
11
11
  import { C as Client$5 } from './audit-logs.d-BRToFqeX.cjs';
12
- import { C as Client$6 } from './automation.d-BnQFR6k8.cjs';
12
+ import { C as Client$6 } from './automation.d-D8JxyoFa.cjs';
13
13
  import { C as Client$7 } from './billing.d-DA3sViEF.cjs';
14
14
  import { C as Client$8 } from './blueprint-manifest.d-B8YKYzSJ.cjs';
15
15
  import { C as Client$9 } from './calendar.d-mk-ltGpk.cjs';
@@ -26,7 +26,7 @@ import { C as Client$j } from './email-template.d-gtQkdaXM.cjs';
26
26
  import { C as Client$k } from './entity.d-CkFElDWZ.cjs';
27
27
  import { C as Client$l } from './entity-mapping.d-CQv75o8M.cjs';
28
28
  import { C as Client$m } from './environments.d-DVgvq0wo.cjs';
29
- import { C as Client$n } from './event-catalog.d-QIhhewVH.cjs';
29
+ import { C as Client$n } from './event-catalog.d-Bd2wmtlZ.cjs';
30
30
  import { C as Client$o } from './file.d-CBsXF4W8.cjs';
31
31
  import { C as Client$p } from './iban.d-BwdiGbxi.cjs';
32
32
  import { C as Client$q } from './integration-toolkit.d-CLVwmd8s.cjs';
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.js';
9
9
  import { C as Client$3 } from './ai-agents.d-B3TkP4mo.js';
10
10
  import { C as Client$4 } from './app.d-BHpFAvPW.js';
11
11
  import { C as Client$5 } from './audit-logs.d-BRToFqeX.js';
12
- import { C as Client$6 } from './automation.d-BnQFR6k8.js';
12
+ import { C as Client$6 } from './automation.d-D8JxyoFa.js';
13
13
  import { C as Client$7 } from './billing.d-DA3sViEF.js';
14
14
  import { C as Client$8 } from './blueprint-manifest.d-B8YKYzSJ.js';
15
15
  import { C as Client$9 } from './calendar.d-mk-ltGpk.js';
@@ -26,7 +26,7 @@ import { C as Client$j } from './email-template.d-gtQkdaXM.js';
26
26
  import { C as Client$k } from './entity.d-CkFElDWZ.js';
27
27
  import { C as Client$l } from './entity-mapping.d-CQv75o8M.js';
28
28
  import { C as Client$m } from './environments.d-DVgvq0wo.js';
29
- import { C as Client$n } from './event-catalog.d-QIhhewVH.js';
29
+ import { C as Client$n } from './event-catalog.d-Bd2wmtlZ.js';
30
30
  import { C as Client$o } from './file.d-CBsXF4W8.js';
31
31
  import { C as Client$p } from './iban.d-BwdiGbxi.js';
32
32
  import { C as Client$q } from './integration-toolkit.d-CLVwmd8s.js';
package/dist/index.js CHANGED
@@ -60,7 +60,7 @@ import {
60
60
  } from "./chunk-D7Q4JGN7.js";
61
61
  import {
62
62
  require_event_catalog_runtime
63
- } from "./chunk-M4FO2MI4.js";
63
+ } from "./chunk-EEKJGTAS.js";
64
64
  import {
65
65
  require_file_runtime
66
66
  } from "./chunk-IBMGFLXF.js";
@@ -150,7 +150,7 @@ import {
150
150
  } from "./chunk-RELUU5QZ.js";
151
151
  import {
152
152
  require_automation_runtime
153
- } from "./chunk-LCE7N4ZL.js";
153
+ } from "./chunk-QW3ROE6H.js";
154
154
  import {
155
155
  authorize,
156
156
  createApiClient,
@@ -158,7 +158,7 @@ import {
158
158
  expand,
159
159
  help,
160
160
  openapi
161
- } from "./chunk-LWW6JFX2.js";
161
+ } from "./chunk-GNKU7CBT.js";
162
162
  import {
163
163
  __require
164
164
  } from "./chunk-YPSWSI3M.js";
@@ -71,6 +71,12 @@ const { data } = await automationClient.searchFlows(...)
71
71
  - [`MapEntityActionConfig`](#mapentityactionconfig)
72
72
  - [`MapEntityAction`](#mapentityaction)
73
73
  - [`MapEntityConfig`](#mapentityconfig)
74
+ - [`GraphContextEntry`](#graphcontextentry)
75
+ - [`GraphSeed`](#graphseed)
76
+ - [`GraphDefinition`](#graphdefinition)
77
+ - [`GraphNode`](#graphnode)
78
+ - [`GraphNodeFilter`](#graphnodefilter)
79
+ - [`GraphEdge`](#graphedge)
74
80
  - [`MappingConfigRef`](#mappingconfigref)
75
81
  - [`RelationAttribute`](#relationattribute)
76
82
  - [`MappingAttributeV2`](#mappingattributev2)
@@ -140,6 +146,8 @@ const { data } = await automationClient.searchFlows(...)
140
146
  - [`TriggerEventEntityActivity`](#triggerevententityactivity)
141
147
  - [`TriggerEventMessaging`](#triggereventmessaging)
142
148
  - [`TriggerEventEntityOperation`](#triggerevententityoperation)
149
+ - [`TriggerEventEventCatalog`](#triggereventeventcatalog)
150
+ - [`TriggerEventPayloadRef`](#triggereventpayloadref)
143
151
  - [`ApiCallerContext`](#apicallercontext)
144
152
  - [`ExecutionStatus`](#executionstatus)
145
153
  - [`GetExecutionsResp`](#getexecutionsresp)
@@ -169,6 +177,7 @@ const { data } = await automationClient.searchFlows(...)
169
177
  - [`EntitySearchFilter`](#entitysearchfilter)
170
178
  - [`EntitySearchFilterValue`](#entitysearchfiltervalue)
171
179
  - [`EntityManualTrigger`](#entitymanualtrigger)
180
+ - [`EventCatalogTrigger`](#eventcatalogtrigger)
172
181
  - [`TriggerCondition`](#triggercondition)
173
182
  - [`Comparison`](#comparison)
174
183
  - [`FilterConditionOnEvent`](#filterconditiononevent)
@@ -204,6 +213,7 @@ const { data } = await client.searchFlows({
204
213
  from: 1,
205
214
  trigger_source_id: 'example',
206
215
  target_workflow: 'example',
216
+ trigger_event_name: 'example',
207
217
  include_flows: true,
208
218
  })
209
219
  ```
@@ -364,7 +374,8 @@ const { data } = await client.startExecution(
364
374
  entity_schema: 'string',
365
375
  is_primary: true
366
376
  }
367
- ]
377
+ ],
378
+ trigger_user_id: '10006129'
368
379
  },
369
380
  flow_execution_id: 'string',
370
381
  flow_automation_task_id: 'string'
@@ -486,7 +497,8 @@ const { data } = await client.startExecution(
486
497
  "_automation_chain": ["string"],
487
498
  "entity_contexts": [
488
499
  {}
489
- ]
500
+ ],
501
+ "trigger_user_id": "10006129"
490
502
  },
491
503
  "workflow_wait_context": {
492
504
  "workflow_execution_id": "string",
@@ -858,7 +870,8 @@ const { data } = await client.getExecution({
858
870
  "_automation_chain": ["string"],
859
871
  "entity_contexts": [
860
872
  {}
861
- ]
873
+ ],
874
+ "trigger_user_id": "10006129"
862
875
  },
863
876
  "workflow_wait_context": {
864
877
  "workflow_execution_id": "string",
@@ -1008,7 +1021,8 @@ const { data } = await client.cancelExecution({
1008
1021
  "_automation_chain": ["string"],
1009
1022
  "entity_contexts": [
1010
1023
  {}
1011
- ]
1024
+ ],
1025
+ "trigger_user_id": "10006129"
1012
1026
  },
1013
1027
  "workflow_wait_context": {
1014
1028
  "workflow_execution_id": "string",
@@ -1120,7 +1134,8 @@ const { data } = await client.resumeExecutionWithToken(
1120
1134
  "workflow_role": "trigger_workflow",
1121
1135
  "_execution_chain": {},
1122
1136
  "_automation_chain": ["string"],
1123
- "entity_contexts": []
1137
+ "entity_contexts": [],
1138
+ "trigger_user_id": "10006129"
1124
1139
  },
1125
1140
  "workflow_wait_context": {
1126
1141
  "workflow_execution_id": "string",
@@ -1146,7 +1161,8 @@ const { data } = await client.resumeExecutionWithToken(
1146
1161
  "mapping_attributes": [],
1147
1162
  "relation_attributes": [],
1148
1163
  "linkback_relation_attribute": "mapped_entities",
1149
- "linkback_relation_tags": ["string"]
1164
+ "linkback_relation_tags": ["string"],
1165
+ "graph_context": []
1150
1166
  },
1151
1167
  "allow_failure": true,
1152
1168
  "created_automatically": true,
@@ -1304,6 +1320,16 @@ type AutomationFlow = {
1304
1320
  configuration?: {
1305
1321
  journey_id?: { ... }
1306
1322
  }
1323
+ } | {
1324
+ id?: string // uuid
1325
+ type: "event_catalog"
1326
+ configuration: {
1327
+ event_name: { ... }
1328
+ event_version: { ... }
1329
+ entity_node_id: { ... }
1330
+ entity_schema: { ... }
1331
+ ignore_automation_triggered?: { ... }
1332
+ }
1307
1333
  }>
1308
1334
  trigger_conditions?: Array<{
1309
1335
  source: string
@@ -1324,16 +1350,6 @@ type AutomationFlow = {
1324
1350
  allow_failure?: boolean
1325
1351
  statements?: Array<{
1326
1352
  id?: { ... }
1327
- source?: { ... }
1328
- operation?: { ... }
1329
- values?: { ... }
1330
- }>
1331
- }>
1332
- schedules?: Array<{
1333
- id: string
1334
- scheduleApiId?: string
1335
- numberOfUnits?: number
1336
- timePeriod?: "minutes" | "hours" | "days" | "weeks" | "months"
1337
1353
  // ...
1338
1354
  }
1339
1355
  ```
@@ -1396,6 +1412,10 @@ type SearchAutomationsResp = {
1396
1412
  id?: { ... }
1397
1413
  type: { ... }
1398
1414
  configuration?: { ... }
1415
+ } | {
1416
+ id?: { ... }
1417
+ type: { ... }
1418
+ configuration: { ... }
1399
1419
  }>
1400
1420
  trigger_conditions?: Array<{
1401
1421
  source: { ... }
@@ -1445,10 +1465,6 @@ type SearchAutomationsResp = {
1445
1465
  type?: { ... }
1446
1466
  config?: { ... }
1447
1467
  } | {
1448
- type?: { ... }
1449
- config?: { ... }
1450
- } | {
1451
- type?: { ... }
1452
1468
  // ...
1453
1469
  }
1454
1470
  ```
@@ -1479,7 +1495,7 @@ type AnyTrigger = {
1479
1495
  type: "entity_operation"
1480
1496
  configuration: {
1481
1497
  schema?: string
1482
- operations?: "createEntity" | "updateEntity" | "deleteEntity" | "softDeleteEntity" | "restoreEntity"[]
1498
+ operations?: "createEntity" | "updateEntity" | "deleteEntity" | "softDeleteEntity" | "restoreEntity" | "relationsAdded" | "relationsRemoved" | "relationsSoftDeleted" | "relationsRestored" | "relationsDeleted"[]
1483
1499
  include_activities?: string[]
1484
1500
  exclude_activities?: string[]
1485
1501
  filter_config?: {
@@ -1524,6 +1540,16 @@ type AnyTrigger = {
1524
1540
  configuration?: {
1525
1541
  journey_id?: string // uuid
1526
1542
  }
1543
+ } | {
1544
+ id?: string // uuid
1545
+ type: "event_catalog"
1546
+ configuration: {
1547
+ event_name: string
1548
+ event_version: string
1549
+ entity_node_id: string
1550
+ entity_schema: string
1551
+ ignore_automation_triggered?: boolean
1552
+ }
1527
1553
  }
1528
1554
  ```
1529
1555
 
@@ -1569,6 +1595,10 @@ type AnyAction = {
1569
1595
  }>
1570
1596
  linkback_relation_attribute?: string
1571
1597
  linkback_relation_tags?: string[]
1598
+ graph_context?: Array<{
1599
+ seed: { ... }
1600
+ graph: { ... }
1601
+ }>
1572
1602
  }
1573
1603
  } | {
1574
1604
  type?: "trigger-workflow"
@@ -1624,12 +1654,8 @@ type AnyAction = {
1624
1654
  type?: "send-email"
1625
1655
  config?: {
1626
1656
  email_template_id?: string
1627
- language_code?: "de" | "en"
1657
+ language_code?: string
1628
1658
  notify_portal_user_only?: boolean
1629
- skip_creating_entities?: boolean
1630
- wait_for_confirmation?: boolean
1631
- wait_for_journey_submission?: boolean
1632
- journey_id?: string
1633
1659
  // ...
1634
1660
  }
1635
1661
  ```
@@ -1679,6 +1705,10 @@ type AnyActionConfig = {
1679
1705
  }>
1680
1706
  linkback_relation_attribute?: string
1681
1707
  linkback_relation_tags?: string[]
1708
+ graph_context?: Array<{
1709
+ seed: { ... }
1710
+ graph: { ... }
1711
+ }>
1682
1712
  }
1683
1713
  allow_failure?: boolean
1684
1714
  created_automatically?: boolean
@@ -1733,10 +1763,6 @@ type AnyActionConfig = {
1733
1763
  created_automatically?: boolean
1734
1764
  is_bulk_action?: boolean
1735
1765
  reason?: {
1736
- message?: string
1737
- payload?: Record<string, unknown>
1738
- }
1739
- condition_id?: string
1740
1766
  // ...
1741
1767
  }
1742
1768
  ```
@@ -2116,6 +2142,10 @@ type MapEntityActionConfig = {
2116
2142
  }>
2117
2143
  linkback_relation_attribute?: string
2118
2144
  linkback_relation_tags?: string[]
2145
+ graph_context?: Array<{
2146
+ seed: { ... }
2147
+ graph: { ... }
2148
+ }>
2119
2149
  }
2120
2150
  allow_failure?: boolean
2121
2151
  created_automatically?: boolean
@@ -2172,6 +2202,10 @@ type MapEntityAction = {
2172
2202
  }>
2173
2203
  linkback_relation_attribute?: string
2174
2204
  linkback_relation_tags?: string[]
2205
+ graph_context?: Array<{
2206
+ seed: { ... }
2207
+ graph: { ... }
2208
+ }>
2175
2209
  }
2176
2210
  }
2177
2211
  ```
@@ -2228,6 +2262,110 @@ type MapEntityConfig = {
2228
2262
  }>
2229
2263
  linkback_relation_attribute?: string
2230
2264
  linkback_relation_tags?: string[]
2265
+ graph_context?: Array<{
2266
+ seed: {
2267
+ entity_id: { ... }
2268
+ node_id: { ... }
2269
+ }
2270
+ graph: {
2271
+ nodes: { ... }
2272
+ edges: { ... }
2273
+ }
2274
+ }>
2275
+ }
2276
+ ```
2277
+
2278
+ ### `GraphContextEntry`
2279
+
2280
+ One multi-hop graph query to run against entity-api's `POST /v1/entity:graph`. Every node
2281
+ in `graph.nodes` is merged into the mapping's source context under its own `id`, so
2282
+ listing multiple nodes here costs one entity-api call, not one per node. A node's value
2283
+ overwrites any existing source-context
2284
+
2285
+ ```ts
2286
+ type GraphContextEntry = {
2287
+ seed: {
2288
+ entity_id: string // uuid
2289
+ node_id: string
2290
+ }
2291
+ graph: {
2292
+ nodes: Array<{
2293
+ id: { ... }
2294
+ schema: { ... }
2295
+ cardinality?: { ... }
2296
+ fields?: { ... }
2297
+ filter?: { ... }
2298
+ }>
2299
+ edges: Array<{
2300
+ from: { ... }
2301
+ to: { ... }
2302
+ }>
2303
+ }
2304
+ }
2305
+ ```
2306
+
2307
+ ### `GraphSeed`
2308
+
2309
+ ```ts
2310
+ type GraphSeed = {
2311
+ entity_id: string // uuid
2312
+ node_id: string
2313
+ }
2314
+ ```
2315
+
2316
+ ### `GraphDefinition`
2317
+
2318
+ ```ts
2319
+ type GraphDefinition = {
2320
+ nodes: Array<{
2321
+ id: string
2322
+ schema: string
2323
+ cardinality?: "one" | "many"
2324
+ fields?: string[]
2325
+ filter?: Array<{
2326
+ attribute: { ... }
2327
+ value: { ... }
2328
+ }>
2329
+ }>
2330
+ edges: Array<{
2331
+ from: string
2332
+ to: string
2333
+ }>
2334
+ }
2335
+ ```
2336
+
2337
+ ### `GraphNode`
2338
+
2339
+ ```ts
2340
+ type GraphNode = {
2341
+ id: string
2342
+ schema: string
2343
+ cardinality?: "one" | "many"
2344
+ fields?: string[]
2345
+ filter?: Array<{
2346
+ attribute: string
2347
+ value: string | number | boolean
2348
+ }>
2349
+ }
2350
+ ```
2351
+
2352
+ ### `GraphNodeFilter`
2353
+
2354
+ Entities are included in this node's result only if `attribute` exactly equals the literal `value`.
2355
+
2356
+ ```ts
2357
+ type GraphNodeFilter = {
2358
+ attribute: string
2359
+ value: string | number | boolean
2360
+ }
2361
+ ```
2362
+
2363
+ ### `GraphEdge`
2364
+
2365
+ ```ts
2366
+ type GraphEdge = {
2367
+ from: string
2368
+ to: string
2231
2369
  }
2232
2370
  ```
2233
2371
 
@@ -2542,7 +2680,7 @@ type SendEmailActionConfig = {
2542
2680
  type?: "send-email"
2543
2681
  config?: {
2544
2682
  email_template_id?: string
2545
- language_code?: "de" | "en"
2683
+ language_code?: string
2546
2684
  notify_portal_user_only?: boolean
2547
2685
  skip_creating_entities?: boolean
2548
2686
  wait_for_confirmation?: boolean
@@ -2579,7 +2717,7 @@ type SendEmailAction = {
2579
2717
  type?: "send-email"
2580
2718
  config?: {
2581
2719
  email_template_id?: string
2582
- language_code?: "de" | "en"
2720
+ language_code?: string
2583
2721
  notify_portal_user_only?: boolean
2584
2722
  skip_creating_entities?: boolean
2585
2723
  wait_for_confirmation?: boolean
@@ -2673,7 +2811,7 @@ type ReplyEmailActionConfig = {
2673
2811
  type?: "reply-email"
2674
2812
  config?: {
2675
2813
  email_template_id?: string
2676
- language_code?: "de" | "en"
2814
+ language_code?: string
2677
2815
  reply_mode?: "reply_in_thread" | "new_email"
2678
2816
  mark_as_done?: boolean
2679
2817
  mark_as_read?: boolean
@@ -2698,7 +2836,7 @@ type ReplyEmailAction = {
2698
2836
  type?: "reply-email"
2699
2837
  config?: {
2700
2838
  email_template_id?: string
2701
- language_code?: "de" | "en"
2839
+ language_code?: string
2702
2840
  reply_mode?: "reply_in_thread" | "new_email"
2703
2841
  mark_as_done?: boolean
2704
2842
  mark_as_read?: boolean
@@ -2711,7 +2849,7 @@ type ReplyEmailAction = {
2711
2849
  ```ts
2712
2850
  type ReplyEmailConfig = {
2713
2851
  email_template_id?: string
2714
- language_code?: "de" | "en"
2852
+ language_code?: string
2715
2853
  reply_mode?: "reply_in_thread" | "new_email"
2716
2854
  mark_as_done?: boolean
2717
2855
  mark_as_read?: boolean
@@ -2723,7 +2861,7 @@ type ReplyEmailConfig = {
2723
2861
  ```ts
2724
2862
  type SendEmailConfig = {
2725
2863
  email_template_id?: string
2726
- language_code?: "de" | "en"
2864
+ language_code?: string
2727
2865
  notify_portal_user_only?: boolean
2728
2866
  skip_creating_entities?: boolean
2729
2867
  wait_for_confirmation?: boolean
@@ -3196,7 +3334,7 @@ type ConditionStatement = {
3196
3334
  source?: {
3197
3335
  id?: string
3198
3336
  origin?: "trigger" | "action"
3199
- originType?: "entity" | "workflow" | "journey_block"
3337
+ originType?: "entity" | "workflow" | "journey_block" | "event"
3200
3338
  schema?: string
3201
3339
  attribute?: string
3202
3340
  attributeType?: "string" | "text" | "number" | "boolean" | "date" | "datetime" | "tags" | "country" | "email" | "phone" | "product" | "price" | "status" | "relation" | "multiselect" | "select" | "radio" | "relation_user" | "purpose" | "label" | "payment" | "relation_payment_method"
@@ -3346,6 +3484,7 @@ type AutomationExecution = {
3346
3484
  relation_attributes?: { ... }
3347
3485
  linkback_relation_attribute?: { ... }
3348
3486
  linkback_relation_tags?: { ... }
3487
+ graph_context?: { ... }
3349
3488
  }
3350
3489
  } | {
3351
3490
  type?: "trigger-workflow"
@@ -3383,7 +3522,6 @@ type AutomationExecution = {
3383
3522
  event_inputs?: { ... }
3384
3523
  }
3385
3524
  } | {
3386
- type?: "create-document"
3387
3525
  // ...
3388
3526
  }
3389
3527
  ```
@@ -3399,9 +3537,6 @@ type AutomationLoopState = {
3399
3537
 
3400
3538
  ### `WorkflowExecutionContext`
3401
3539
 
3402
- Automation Executions triggered by workflow task automations will always carry information about the triggering workflow. This information is helpful in correlating workflow executions with all the triggered automation executions
3403
-
3404
-
3405
3540
  ```ts
3406
3541
  type WorkflowExecutionContext = {
3407
3542
  workflow_exec_id: string
@@ -3418,12 +3553,13 @@ type WorkflowExecutionContext = {
3418
3553
  entity_schema?: string
3419
3554
  is_primary?: boolean
3420
3555
  }>
3556
+ trigger_user_id?: string
3421
3557
  }
3422
3558
  ```
3423
3559
 
3424
3560
  ### `WorkflowWaitContext`
3425
3561
 
3426
- Workflow automation tasks can be paused & waiting for journey automation executions to succeed. If such is the case, this context tracks the task_id of the workflow waiting for journey submission success This context is consumed by svc-workflows to resume a task waiting on this journey submission.
3562
+ Correlation stamped when the triggering submission entity carried workflow wait claims from a journey link (AL-2521). Consumed by svc-workflows to resume a task waiting on this journey submission.
3427
3563
 
3428
3564
 
3429
3565
  ```ts
@@ -3516,7 +3652,43 @@ type TriggerEventEntityOperation = {
3516
3652
  entity_id: string
3517
3653
  org_id: string
3518
3654
  activity_id: string
3519
- operation_type: "createEntity" | "updateEntity" | "deleteEntity" | "softDeleteEntity" | "restoreEntity"
3655
+ operation_type: "createEntity" | "updateEntity" | "deleteEntity" | "softDeleteEntity" | "restoreEntity" | "relationsAdded" | "relationsRemoved" | "relationsSoftDeleted" | "relationsRestored" | "relationsDeleted"
3656
+ }
3657
+ ```
3658
+
3659
+ ### `TriggerEventEventCatalog`
3660
+
3661
+ Set on executions started by an Event Catalog event (see EventCatalogTrigger). The full event payload is not stored inline (it may be up to 256 KB) but by reference in `payload_ref`; automation workers hydrate it before every action.
3662
+
3663
+
3664
+ ```ts
3665
+ type TriggerEventEventCatalog = {
3666
+ type: "event_catalog"
3667
+ org_id: string
3668
+ entity_id: string
3669
+ entity_node_id: string
3670
+ event_id: string
3671
+ event_name: string
3672
+ event_version: string
3673
+ published_version?: string
3674
+ event_time?: string // date-time
3675
+ trigger_source_type?: string
3676
+ trigger_source?: string
3677
+ payload_ref?: {
3678
+ bucket: string
3679
+ key: string
3680
+ }
3681
+ }
3682
+ ```
3683
+
3684
+ ### `TriggerEventPayloadRef`
3685
+
3686
+ S3 reference to the stored trigger event payload (`_downgrades` stripped, downgraded to the pinned version)
3687
+
3688
+ ```ts
3689
+ type TriggerEventPayloadRef = {
3690
+ bucket: string
3691
+ key: string
3520
3692
  }
3521
3693
  ```
3522
3694
 
@@ -3791,6 +3963,7 @@ type StartExecutionRequest = {
3791
3963
  entity_schema?: { ... }
3792
3964
  is_primary?: { ... }
3793
3965
  }>
3966
+ trigger_user_id?: string
3794
3967
  }
3795
3968
  flow_execution_id?: string
3796
3969
  flow_automation_task_id?: string
@@ -4076,7 +4249,7 @@ type EntityOperationTrigger = {
4076
4249
  type: "entity_operation"
4077
4250
  configuration: {
4078
4251
  schema?: string
4079
- operations?: "createEntity" | "updateEntity" | "deleteEntity" | "softDeleteEntity" | "restoreEntity"[]
4252
+ operations?: "createEntity" | "updateEntity" | "deleteEntity" | "softDeleteEntity" | "restoreEntity" | "relationsAdded" | "relationsRemoved" | "relationsSoftDeleted" | "relationsRestored" | "relationsDeleted"[]
4080
4253
  include_activities?: string[]
4081
4254
  exclude_activities?: string[]
4082
4255
  filter_config?: {
@@ -4108,7 +4281,7 @@ type ActivityTrigger = {
4108
4281
  ### `EntityOperation`
4109
4282
 
4110
4283
  ```ts
4111
- type EntityOperation = "createEntity" | "updateEntity" | "deleteEntity" | "softDeleteEntity" | "restoreEntity"
4284
+ type EntityOperation = "createEntity" | "updateEntity" | "deleteEntity" | "softDeleteEntity" | "restoreEntity" | "relationsAdded" | "relationsRemoved" | "relationsSoftDeleted" | "relationsRestored" | "relationsDeleted"
4112
4285
  ```
4113
4286
 
4114
4287
  ### `EntitySearchFilter`
@@ -4240,6 +4413,25 @@ type EntityManualTrigger = {
4240
4413
  }
4241
4414
  ```
4242
4415
 
4416
+ ### `EventCatalogTrigger`
4417
+
4418
+ Starts the flow when an Event Catalog event is published for the organization. The execution runs in the context of one entity from the event's entity graph (`entity_node_id`), and the event payload is available to conditions and actions as the `event` variable context.
4419
+
4420
+
4421
+ ```ts
4422
+ type EventCatalogTrigger = {
4423
+ id?: string // uuid
4424
+ type: "event_catalog"
4425
+ configuration: {
4426
+ event_name: string
4427
+ event_version: string
4428
+ entity_node_id: string
4429
+ entity_schema: string
4430
+ ignore_automation_triggered?: boolean
4431
+ }
4432
+ }
4433
+ ```
4434
+
4243
4435
  ### `TriggerCondition`
4244
4436
 
4245
4437
  ```ts