@epilot/sdk 2.20.77 → 2.20.79

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 (152) hide show
  1. package/definitions/integration-toolkit.json +251 -63
  2. package/definitions/journey-runtime.json +1 -1
  3. package/definitions/journey.json +399 -13
  4. package/definitions/validation-rules.json +12 -4
  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 +6 -6
  18. package/dist/apis/automation.js +1 -1
  19. package/dist/apis/billing.cjs +6 -6
  20. package/dist/apis/billing.js +1 -1
  21. package/dist/apis/blueprint-manifest.cjs +6 -6
  22. package/dist/apis/blueprint-manifest.js +1 -1
  23. package/dist/apis/calendar.cjs +6 -6
  24. package/dist/apis/calendar.js +1 -1
  25. package/dist/apis/chat.cjs +6 -6
  26. package/dist/apis/chat.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 +6 -6
  54. package/dist/apis/event-catalog.js +1 -1
  55. package/dist/apis/external-values.cjs +6 -6
  56. package/dist/apis/external-values.js +1 -1
  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/identity.cjs +6 -6
  62. package/dist/apis/identity.js +1 -1
  63. package/dist/apis/integration-toolkit.cjs +14 -10
  64. package/dist/apis/integration-toolkit.d.cts +2 -2
  65. package/dist/apis/integration-toolkit.d.ts +2 -2
  66. package/dist/apis/integration-toolkit.js +9 -5
  67. package/dist/apis/journey.cjs +8 -8
  68. package/dist/apis/journey.d.cts +2 -2
  69. package/dist/apis/journey.d.ts +2 -2
  70. package/dist/apis/journey.js +2 -2
  71. package/dist/apis/kanban.cjs +6 -6
  72. package/dist/apis/kanban.js +1 -1
  73. package/dist/apis/message.cjs +6 -6
  74. package/dist/apis/message.js +1 -1
  75. package/dist/apis/metering.cjs +6 -6
  76. package/dist/apis/metering.js +1 -1
  77. package/dist/apis/notes.cjs +6 -6
  78. package/dist/apis/notes.js +1 -1
  79. package/dist/apis/notification.cjs +6 -6
  80. package/dist/apis/notification.js +1 -1
  81. package/dist/apis/organization.cjs +6 -6
  82. package/dist/apis/organization.js +1 -1
  83. package/dist/apis/partner-directory.cjs +6 -6
  84. package/dist/apis/partner-directory.js +1 -1
  85. package/dist/apis/permissions.cjs +6 -6
  86. package/dist/apis/permissions.js +1 -1
  87. package/dist/apis/phone-integration.cjs +6 -6
  88. package/dist/apis/phone-integration.js +1 -1
  89. package/dist/apis/pricing-tier.cjs +6 -6
  90. package/dist/apis/pricing-tier.js +1 -1
  91. package/dist/apis/pricing.cjs +6 -6
  92. package/dist/apis/pricing.js +1 -1
  93. package/dist/apis/purpose.cjs +6 -6
  94. package/dist/apis/purpose.js +1 -1
  95. package/dist/apis/query.cjs +6 -6
  96. package/dist/apis/query.js +1 -1
  97. package/dist/apis/sandbox.cjs +6 -6
  98. package/dist/apis/sandbox.js +1 -1
  99. package/dist/apis/sharing.cjs +6 -6
  100. package/dist/apis/sharing.js +1 -1
  101. package/dist/apis/snapshot.cjs +6 -6
  102. package/dist/apis/snapshot.js +1 -1
  103. package/dist/apis/submission.cjs +6 -6
  104. package/dist/apis/submission.js +1 -1
  105. package/dist/apis/target.cjs +6 -6
  106. package/dist/apis/target.js +1 -1
  107. package/dist/apis/targeting.cjs +6 -6
  108. package/dist/apis/targeting.js +1 -1
  109. package/dist/apis/template-variables.cjs +6 -6
  110. package/dist/apis/template-variables.js +1 -1
  111. package/dist/apis/user.cjs +6 -6
  112. package/dist/apis/user.js +1 -1
  113. package/dist/apis/validation-rules.cjs +6 -6
  114. package/dist/apis/validation-rules.d.cts +2 -2
  115. package/dist/apis/validation-rules.d.ts +2 -2
  116. package/dist/apis/validation-rules.js +1 -1
  117. package/dist/apis/webhooks.cjs +6 -6
  118. package/dist/apis/webhooks.js +1 -1
  119. package/dist/apis/workflow-definition.cjs +6 -6
  120. package/dist/apis/workflow-definition.js +1 -1
  121. package/dist/apis/workflow.cjs +6 -6
  122. package/dist/apis/workflow.js +1 -1
  123. package/dist/{chunk-RZJMF6WE.cjs → chunk-4G44P2X4.cjs} +4 -4
  124. package/dist/{chunk-C6T52ZOY.js → chunk-5Z7XQQT2.js} +4 -4
  125. package/dist/{chunk-I3ZZES76.js → chunk-NQBHADQX.js} +1 -1
  126. package/dist/{chunk-QYHNZLHS.cjs → chunk-PK5IH3WQ.cjs} +1 -1
  127. package/dist/index.cjs +10 -10
  128. package/dist/index.d.cts +3 -3
  129. package/dist/index.d.ts +3 -3
  130. package/dist/index.js +2 -2
  131. package/dist/integration-toolkit-3XNG4PL5.cjs +7 -0
  132. package/dist/integration-toolkit-VLTS5HKV.js +7 -0
  133. package/dist/{integration-toolkit.d-l5cgwHLa.d.cts → integration-toolkit.d-BGF0LVB7.d.cts} +587 -85
  134. package/dist/{integration-toolkit.d-l5cgwHLa.d.ts → integration-toolkit.d-BGF0LVB7.d.ts} +587 -85
  135. package/dist/journey-LAEXXNCD.js +7 -0
  136. package/dist/journey-RKBZQRPL.cjs +7 -0
  137. package/dist/{journey-runtime-KZUPV4XH.cjs → journey-runtime-2N77HRB6.cjs} +2 -2
  138. package/dist/{journey-runtime-AQH7EG4C.js → journey-runtime-YJ5G4IG2.js} +1 -1
  139. package/dist/{journey.d-CMtM6U3Y.d.cts → journey.d-5GpTnSld.d.cts} +261 -80
  140. package/dist/{journey.d-CMtM6U3Y.d.ts → journey.d-5GpTnSld.d.ts} +261 -80
  141. package/dist/{validation-rules-QYVRILMT.cjs → validation-rules-2XORVEWP.cjs} +1 -1
  142. package/dist/{validation-rules-D4OW6VYI.js → validation-rules-Y5BLH5AA.js} +1 -1
  143. package/dist/{validation-rules.d-C1OtLama.d.ts → validation-rules.d-Dw7Qn8_e.d.cts} +88 -40
  144. package/dist/{validation-rules.d-C1OtLama.d.cts → validation-rules.d-Dw7Qn8_e.d.ts} +88 -40
  145. package/docs/integration-toolkit.md +88 -270
  146. package/docs/journey.md +217 -38
  147. package/docs/validation-rules.md +87 -50
  148. package/package.json +1 -1
  149. package/dist/integration-toolkit-FI32O7II.cjs +0 -7
  150. package/dist/integration-toolkit-MHULDW3E.js +0 -7
  151. package/dist/journey-JDIVUY7T.cjs +0 -7
  152. package/dist/journey-PBOMOJ5G.js +0 -7
@@ -152,19 +152,24 @@ declare namespace Components {
152
152
  * are resolved only for authenticated consumers (epilot 360 users and portal end customers);
153
153
  * in public journeys the dependent conditions are skipped.
154
154
  *
155
+ * A hook may declare value inputs (`contexts` entries `{ "type": "value", "name", "value_type" }`)
156
+ * besides the entities it receives. `inputs` supplies them from rule parameters, which the
157
+ * consumer binds like any other parameter and sends to the hook as `Context.<name>`.
158
+ *
155
159
  */
156
160
  ExternalValue | /**
157
- * A comparison value supplied by the surface that evaluates the rule, identified by a name
158
- * the rule chooses (e.g. `start_date`). The rule stores the name only. The consuming surface
159
- * binds the name to a source of its own - a journey binds it to the value of another block -
160
- * and resolves it at evaluation time, so the rule never references the surface's objects
161
- * and stays reusable across journeys and forms.
161
+ * A comparison value supplied by the consumer that evaluates the rule, identified by a name
162
+ * the rule chooses (e.g. `start_date`). The rule stores the name only. The consumer binds the
163
+ * name to a source of its own - a journey binds it to the value of another block - and
164
+ * resolves it at evaluation time, so the rule never references the consumer's objects and
165
+ * stays reusable across journeys and forms.
162
166
  *
163
- * The kind a parameter is compared as follows from the field it sits in: `number`, `text`
164
- * or `date` for comparison values, range bounds, adjustment amounts and relative date
165
- * offsets, or a number, string or boolean as an `applies_when` value. One name is compared
166
- * as one kind throughout a rule; a rule using a name as two kinds is rejected at write time.
167
- * A parameter the surface leaves unbound or empty leaves the comparison unresolved.
167
+ * A parameter's kind is determined by the field it is used in: `number`, `text` or `date`
168
+ * for comparison values, range bounds, adjustment amounts and relative date offsets, or a
169
+ * number, string or boolean as an `applies_when` value, or the `value_type` of the External
170
+ * Values hook input it supplies (`ExternalValue.inputs`). One name is compared as one kind
171
+ * throughout a rule; a rule using a name as two kinds is rejected at write time. A parameter
172
+ * the consumer leaves unbound or empty leaves the comparison unresolved.
168
173
  *
169
174
  */
170
175
  ParameterValue | /* A lower and upper bound for range operators (between, dateBetween, lengthBetween). Bounds are inclusive. */ RangeValue | /* No comparison value - used by unary operators such as notInFuture / notInPast. */ NoValue;
@@ -401,6 +406,10 @@ declare namespace Components {
401
406
  * are resolved only for authenticated consumers (epilot 360 users and portal end customers);
402
407
  * in public journeys the dependent conditions are skipped.
403
408
  *
409
+ * A hook may declare value inputs (`contexts` entries `{ "type": "value", "name", "value_type" }`)
410
+ * besides the entities it receives. `inputs` supplies them from rule parameters, which the
411
+ * consumer binds like any other parameter and sends to the hook as `Context.<name>`.
412
+ *
404
413
  */
405
414
  export interface ExternalValue {
406
415
  source: "external";
@@ -416,6 +425,34 @@ declare namespace Components {
416
425
  * ID of the result entry within the hook whose value is compared.
417
426
  */
418
427
  result_id: string; // ^[a-zA-Z0-9_-]+$
428
+ /**
429
+ * Values for the hook's value inputs, keyed by the input name the hook declares
430
+ * (`contexts` entry of type `value`), e.g. `{ "reading_date": { "source": "parameter", "name": "reading_date" } }`.
431
+ * Only parameters are supported. Write-time validation checks that every key is a value input the
432
+ * hook declares and uses the input's `value_type` (`number`, `text`, `date` or `boolean`) as the
433
+ * parameter's kind, so the parameter must not be compared as another kind elsewhere in the rule.
434
+ * An input parameter must not carry an adjustment. Declared inputs without an entry are allowed;
435
+ * the consumer omits an input that has no value.
436
+ *
437
+ */
438
+ inputs?: {
439
+ [name: string]: /**
440
+ * A comparison value supplied by the consumer that evaluates the rule, identified by a name
441
+ * the rule chooses (e.g. `start_date`). The rule stores the name only. The consumer binds the
442
+ * name to a source of its own - a journey binds it to the value of another block - and
443
+ * resolves it at evaluation time, so the rule never references the consumer's objects and
444
+ * stays reusable across journeys and forms.
445
+ *
446
+ * A parameter's kind is determined by the field it is used in: `number`, `text` or `date`
447
+ * for comparison values, range bounds, adjustment amounts and relative date offsets, or a
448
+ * number, string or boolean as an `applies_when` value, or the `value_type` of the External
449
+ * Values hook input it supplies (`ExternalValue.inputs`). One name is compared as one kind
450
+ * throughout a rule; a rule using a name as two kinds is rejected at write time. A parameter
451
+ * the consumer leaves unbound or empty leaves the comparison unresolved.
452
+ *
453
+ */
454
+ ParameterValue;
455
+ };
419
456
  adjust?: /**
420
457
  * Adjusts a context-resolved numeric value before comparison, e.g. "context value plus 10 percent".
421
458
  * Used to express tolerance bands such as "at most 10% above the current instalment amount".
@@ -597,17 +634,18 @@ declare namespace Components {
597
634
  */
598
635
  export type Operator = "equal" | "notEqual" | "greaterThan" | "greaterThanInclusive" | "lessThan" | "lessThanInclusive" | "between" | "dateBefore" | "dateOnOrBefore" | "dateAfter" | "dateOnOrAfter" | "dateBetween" | "notInFuture" | "notInPast" | "contains" | "doesNotContain" | "startsWith" | "endsWith" | "regexMatch" | "lengthBetween" | "maxDigits" | "maxDecimals";
599
636
  /**
600
- * A comparison value supplied by the surface that evaluates the rule, identified by a name
601
- * the rule chooses (e.g. `start_date`). The rule stores the name only. The consuming surface
602
- * binds the name to a source of its own - a journey binds it to the value of another block -
603
- * and resolves it at evaluation time, so the rule never references the surface's objects
604
- * and stays reusable across journeys and forms.
637
+ * A comparison value supplied by the consumer that evaluates the rule, identified by a name
638
+ * the rule chooses (e.g. `start_date`). The rule stores the name only. The consumer binds the
639
+ * name to a source of its own - a journey binds it to the value of another block - and
640
+ * resolves it at evaluation time, so the rule never references the consumer's objects and
641
+ * stays reusable across journeys and forms.
605
642
  *
606
- * The kind a parameter is compared as follows from the field it sits in: `number`, `text`
607
- * or `date` for comparison values, range bounds, adjustment amounts and relative date
608
- * offsets, or a number, string or boolean as an `applies_when` value. One name is compared
609
- * as one kind throughout a rule; a rule using a name as two kinds is rejected at write time.
610
- * A parameter the surface leaves unbound or empty leaves the comparison unresolved.
643
+ * A parameter's kind is determined by the field it is used in: `number`, `text` or `date`
644
+ * for comparison values, range bounds, adjustment amounts and relative date offsets, or a
645
+ * number, string or boolean as an `applies_when` value, or the `value_type` of the External
646
+ * Values hook input it supplies (`ExternalValue.inputs`). One name is compared as one kind
647
+ * throughout a rule; a rule using a name as two kinds is rejected at write time. A parameter
648
+ * the consumer leaves unbound or empty leaves the comparison unresolved.
611
649
  *
612
650
  */
613
651
  export interface ParameterValue {
@@ -941,19 +979,24 @@ declare namespace Components {
941
979
  * are resolved only for authenticated consumers (epilot 360 users and portal end customers);
942
980
  * in public journeys the dependent conditions are skipped.
943
981
  *
982
+ * A hook may declare value inputs (`contexts` entries `{ "type": "value", "name", "value_type" }`)
983
+ * besides the entities it receives. `inputs` supplies them from rule parameters, which the
984
+ * consumer binds like any other parameter and sends to the hook as `Context.<name>`.
985
+ *
944
986
  */
945
987
  ExternalValue | /**
946
- * A comparison value supplied by the surface that evaluates the rule, identified by a name
947
- * the rule chooses (e.g. `start_date`). The rule stores the name only. The consuming surface
948
- * binds the name to a source of its own - a journey binds it to the value of another block -
949
- * and resolves it at evaluation time, so the rule never references the surface's objects
950
- * and stays reusable across journeys and forms.
988
+ * A comparison value supplied by the consumer that evaluates the rule, identified by a name
989
+ * the rule chooses (e.g. `start_date`). The rule stores the name only. The consumer binds the
990
+ * name to a source of its own - a journey binds it to the value of another block - and
991
+ * resolves it at evaluation time, so the rule never references the consumer's objects and
992
+ * stays reusable across journeys and forms.
951
993
  *
952
- * The kind a parameter is compared as follows from the field it sits in: `number`, `text`
953
- * or `date` for comparison values, range bounds, adjustment amounts and relative date
954
- * offsets, or a number, string or boolean as an `applies_when` value. One name is compared
955
- * as one kind throughout a rule; a rule using a name as two kinds is rejected at write time.
956
- * A parameter the surface leaves unbound or empty leaves the comparison unresolved.
994
+ * A parameter's kind is determined by the field it is used in: `number`, `text` or `date`
995
+ * for comparison values, range bounds, adjustment amounts and relative date offsets, or a
996
+ * number, string or boolean as an `applies_when` value, or the `value_type` of the External
997
+ * Values hook input it supplies (`ExternalValue.inputs`). One name is compared as one kind
998
+ * throughout a rule; a rule using a name as two kinds is rejected at write time. A parameter
999
+ * the consumer leaves unbound or empty leaves the comparison unresolved.
957
1000
  *
958
1001
  */
959
1002
  ParameterValue;
@@ -1279,19 +1322,24 @@ declare namespace Components {
1279
1322
  * are resolved only for authenticated consumers (epilot 360 users and portal end customers);
1280
1323
  * in public journeys the dependent conditions are skipped.
1281
1324
  *
1325
+ * A hook may declare value inputs (`contexts` entries `{ "type": "value", "name", "value_type" }`)
1326
+ * besides the entities it receives. `inputs` supplies them from rule parameters, which the
1327
+ * consumer binds like any other parameter and sends to the hook as `Context.<name>`.
1328
+ *
1282
1329
  */
1283
1330
  ExternalValue | /**
1284
- * A comparison value supplied by the surface that evaluates the rule, identified by a name
1285
- * the rule chooses (e.g. `start_date`). The rule stores the name only. The consuming surface
1286
- * binds the name to a source of its own - a journey binds it to the value of another block -
1287
- * and resolves it at evaluation time, so the rule never references the surface's objects
1288
- * and stays reusable across journeys and forms.
1331
+ * A comparison value supplied by the consumer that evaluates the rule, identified by a name
1332
+ * the rule chooses (e.g. `start_date`). The rule stores the name only. The consumer binds the
1333
+ * name to a source of its own - a journey binds it to the value of another block - and
1334
+ * resolves it at evaluation time, so the rule never references the consumer's objects and
1335
+ * stays reusable across journeys and forms.
1289
1336
  *
1290
- * The kind a parameter is compared as follows from the field it sits in: `number`, `text`
1291
- * or `date` for comparison values, range bounds, adjustment amounts and relative date
1292
- * offsets, or a number, string or boolean as an `applies_when` value. One name is compared
1293
- * as one kind throughout a rule; a rule using a name as two kinds is rejected at write time.
1294
- * A parameter the surface leaves unbound or empty leaves the comparison unresolved.
1337
+ * A parameter's kind is determined by the field it is used in: `number`, `text` or `date`
1338
+ * for comparison values, range bounds, adjustment amounts and relative date offsets, or a
1339
+ * number, string or boolean as an `applies_when` value, or the `value_type` of the External
1340
+ * Values hook input it supplies (`ExternalValue.inputs`). One name is compared as one kind
1341
+ * throughout a rule; a rule using a name as two kinds is rejected at write time. A parameter
1342
+ * the consumer leaves unbound or empty leaves the comparison unresolved.
1295
1343
  *
1296
1344
  */
1297
1345
  ParameterValue;