@epilot/sdk 2.20.77 → 2.20.78

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 (127) hide show
  1. package/definitions/validation-rules.json +12 -4
  2. package/dist/apis/access-token.cjs +6 -6
  3. package/dist/apis/access-token.js +1 -1
  4. package/dist/apis/address-suggestions.cjs +6 -6
  5. package/dist/apis/address-suggestions.js +1 -1
  6. package/dist/apis/address.cjs +6 -6
  7. package/dist/apis/address.js +1 -1
  8. package/dist/apis/ai-agents.cjs +6 -6
  9. package/dist/apis/ai-agents.js +1 -1
  10. package/dist/apis/app.cjs +6 -6
  11. package/dist/apis/app.js +1 -1
  12. package/dist/apis/audit-logs.cjs +6 -6
  13. package/dist/apis/audit-logs.js +1 -1
  14. package/dist/apis/automation.cjs +6 -6
  15. package/dist/apis/automation.js +1 -1
  16. package/dist/apis/billing.cjs +6 -6
  17. package/dist/apis/billing.js +1 -1
  18. package/dist/apis/blueprint-manifest.cjs +6 -6
  19. package/dist/apis/blueprint-manifest.js +1 -1
  20. package/dist/apis/calendar.cjs +6 -6
  21. package/dist/apis/calendar.js +1 -1
  22. package/dist/apis/chat.cjs +6 -6
  23. package/dist/apis/chat.js +1 -1
  24. package/dist/apis/configuration-hub.cjs +6 -6
  25. package/dist/apis/configuration-hub.js +1 -1
  26. package/dist/apis/consent.cjs +6 -6
  27. package/dist/apis/consent.js +1 -1
  28. package/dist/apis/customer-portal.cjs +6 -6
  29. package/dist/apis/customer-portal.js +1 -1
  30. package/dist/apis/dashboard.cjs +6 -6
  31. package/dist/apis/dashboard.js +1 -1
  32. package/dist/apis/data-governance.cjs +6 -6
  33. package/dist/apis/data-governance.js +1 -1
  34. package/dist/apis/deduplication.cjs +6 -6
  35. package/dist/apis/deduplication.js +1 -1
  36. package/dist/apis/design.cjs +6 -6
  37. package/dist/apis/design.js +1 -1
  38. package/dist/apis/document.cjs +6 -6
  39. package/dist/apis/document.js +1 -1
  40. package/dist/apis/email-settings.cjs +6 -6
  41. package/dist/apis/email-settings.js +1 -1
  42. package/dist/apis/email-template.cjs +6 -6
  43. package/dist/apis/email-template.js +1 -1
  44. package/dist/apis/entity-mapping.cjs +6 -6
  45. package/dist/apis/entity-mapping.js +1 -1
  46. package/dist/apis/entity.cjs +6 -6
  47. package/dist/apis/entity.js +1 -1
  48. package/dist/apis/environments.cjs +6 -6
  49. package/dist/apis/environments.js +1 -1
  50. package/dist/apis/event-catalog.cjs +6 -6
  51. package/dist/apis/event-catalog.js +1 -1
  52. package/dist/apis/external-values.cjs +6 -6
  53. package/dist/apis/external-values.js +1 -1
  54. package/dist/apis/file.cjs +6 -6
  55. package/dist/apis/file.js +1 -1
  56. package/dist/apis/iban.cjs +6 -6
  57. package/dist/apis/iban.js +1 -1
  58. package/dist/apis/identity.cjs +6 -6
  59. package/dist/apis/identity.js +1 -1
  60. package/dist/apis/integration-toolkit.cjs +6 -6
  61. package/dist/apis/integration-toolkit.js +1 -1
  62. package/dist/apis/journey.cjs +6 -6
  63. package/dist/apis/journey.js +1 -1
  64. package/dist/apis/kanban.cjs +6 -6
  65. package/dist/apis/kanban.js +1 -1
  66. package/dist/apis/message.cjs +6 -6
  67. package/dist/apis/message.js +1 -1
  68. package/dist/apis/metering.cjs +6 -6
  69. package/dist/apis/metering.js +1 -1
  70. package/dist/apis/notes.cjs +6 -6
  71. package/dist/apis/notes.js +1 -1
  72. package/dist/apis/notification.cjs +6 -6
  73. package/dist/apis/notification.js +1 -1
  74. package/dist/apis/organization.cjs +6 -6
  75. package/dist/apis/organization.js +1 -1
  76. package/dist/apis/partner-directory.cjs +6 -6
  77. package/dist/apis/partner-directory.js +1 -1
  78. package/dist/apis/permissions.cjs +6 -6
  79. package/dist/apis/permissions.js +1 -1
  80. package/dist/apis/phone-integration.cjs +6 -6
  81. package/dist/apis/phone-integration.js +1 -1
  82. package/dist/apis/pricing-tier.cjs +6 -6
  83. package/dist/apis/pricing-tier.js +1 -1
  84. package/dist/apis/pricing.cjs +6 -6
  85. package/dist/apis/pricing.js +1 -1
  86. package/dist/apis/purpose.cjs +6 -6
  87. package/dist/apis/purpose.js +1 -1
  88. package/dist/apis/query.cjs +6 -6
  89. package/dist/apis/query.js +1 -1
  90. package/dist/apis/sandbox.cjs +6 -6
  91. package/dist/apis/sandbox.js +1 -1
  92. package/dist/apis/sharing.cjs +6 -6
  93. package/dist/apis/sharing.js +1 -1
  94. package/dist/apis/snapshot.cjs +6 -6
  95. package/dist/apis/snapshot.js +1 -1
  96. package/dist/apis/submission.cjs +6 -6
  97. package/dist/apis/submission.js +1 -1
  98. package/dist/apis/target.cjs +6 -6
  99. package/dist/apis/target.js +1 -1
  100. package/dist/apis/targeting.cjs +6 -6
  101. package/dist/apis/targeting.js +1 -1
  102. package/dist/apis/template-variables.cjs +6 -6
  103. package/dist/apis/template-variables.js +1 -1
  104. package/dist/apis/user.cjs +6 -6
  105. package/dist/apis/user.js +1 -1
  106. package/dist/apis/validation-rules.cjs +6 -6
  107. package/dist/apis/validation-rules.d.cts +2 -2
  108. package/dist/apis/validation-rules.d.ts +2 -2
  109. package/dist/apis/validation-rules.js +1 -1
  110. package/dist/apis/webhooks.cjs +6 -6
  111. package/dist/apis/webhooks.js +1 -1
  112. package/dist/apis/workflow-definition.cjs +6 -6
  113. package/dist/apis/workflow-definition.js +1 -1
  114. package/dist/apis/workflow.cjs +6 -6
  115. package/dist/apis/workflow.js +1 -1
  116. package/dist/{chunk-RZJMF6WE.cjs → chunk-M5Z7JYJ3.cjs} +1 -1
  117. package/dist/{chunk-C6T52ZOY.js → chunk-ZREXF3XS.js} +1 -1
  118. package/dist/index.cjs +8 -8
  119. package/dist/index.d.cts +1 -1
  120. package/dist/index.d.ts +1 -1
  121. package/dist/index.js +1 -1
  122. package/dist/{validation-rules-QYVRILMT.cjs → validation-rules-2XORVEWP.cjs} +1 -1
  123. package/dist/{validation-rules-D4OW6VYI.js → validation-rules-Y5BLH5AA.js} +1 -1
  124. package/dist/{validation-rules.d-C1OtLama.d.cts → validation-rules.d-Dw7Qn8_e.d.cts} +88 -40
  125. package/dist/{validation-rules.d-C1OtLama.d.ts → validation-rules.d-Dw7Qn8_e.d.ts} +88 -40
  126. package/docs/validation-rules.md +87 -50
  127. package/package.json +1 -1
@@ -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;
@@ -1736,6 +1736,7 @@ type ComparisonRuleType = {
1736
1736
  app_id: { ... }
1737
1737
  hook_id: { ... }
1738
1738
  result_id: { ... }
1739
+ inputs?: { ... }
1739
1740
  adjust?: { ... }
1740
1741
  } | {
1741
1742
  source: { ... }
@@ -1794,6 +1795,7 @@ type Condition = {
1794
1795
  app_id: { ... }
1795
1796
  hook_id: { ... }
1796
1797
  result_id: { ... }
1798
+ inputs?: { ... }
1797
1799
  adjust?: { ... }
1798
1800
  } | {
1799
1801
  source: { ... }
@@ -1814,6 +1816,7 @@ type Condition = {
1814
1816
  app_id: { ... }
1815
1817
  hook_id: { ... }
1816
1818
  result_id: { ... }
1819
+ inputs?: { ... }
1817
1820
  adjust?: { ... }
1818
1821
  } | {
1819
1822
  source: { ... }
@@ -1834,6 +1837,11 @@ type Condition = {
1834
1837
  app_id: string
1835
1838
  hook_id: string
1836
1839
  result_id: string
1840
+ inputs?: Record<string, {
1841
+ source: { ... }
1842
+ name: { ... }
1843
+ adjust?: { ... }
1844
+ }>
1837
1845
  adjust?: {
1838
1846
  type: { ... }
1839
1847
  value: { ... }
@@ -1857,13 +1865,6 @@ type Condition = {
1857
1865
  } | {
1858
1866
  source: { ... }
1859
1867
  path: { ... }
1860
- adjust?: { ... }
1861
- } | {
1862
- source: { ... }
1863
- offset: { ... }
1864
- unit: { ... }
1865
- anchor?: { ... }
1866
- } | {
1867
1868
  // ...
1868
1869
  }
1869
1870
  ```
@@ -1905,6 +1906,7 @@ type ConditionValue = {
1905
1906
  app_id: { ... }
1906
1907
  hook_id: { ... }
1907
1908
  result_id: { ... }
1909
+ inputs?: { ... }
1908
1910
  adjust?: { ... }
1909
1911
  } | {
1910
1912
  source: { ... }
@@ -1939,6 +1941,11 @@ type ConditionValue = {
1939
1941
  app_id: string
1940
1942
  hook_id: string
1941
1943
  result_id: string
1944
+ inputs?: Record<string, {
1945
+ source: { ... }
1946
+ name: { ... }
1947
+ adjust?: { ... }
1948
+ }>
1942
1949
  adjust?: {
1943
1950
  type: { ... }
1944
1951
  value: { ... }
@@ -1978,12 +1985,6 @@ type ConditionValue = {
1978
1985
  source: "external"
1979
1986
  app_id: string
1980
1987
  hook_id: string
1981
- result_id: string
1982
- adjust?: {
1983
- type: { ... }
1984
- value: { ... }
1985
- direction: { ... }
1986
- rounding?: { ... }
1987
1988
  // ...
1988
1989
  }
1989
1990
  ```
@@ -2014,6 +2015,7 @@ type ScalarValue = {
2014
2015
  app_id: { ... }
2015
2016
  hook_id: { ... }
2016
2017
  result_id: { ... }
2018
+ inputs?: { ... }
2017
2019
  adjust?: { ... }
2018
2020
  } | {
2019
2021
  source: { ... }
@@ -2048,6 +2050,11 @@ type ScalarValue = {
2048
2050
  app_id: string
2049
2051
  hook_id: string
2050
2052
  result_id: string
2053
+ inputs?: Record<string, {
2054
+ source: { ... }
2055
+ name: { ... }
2056
+ adjust?: { ... }
2057
+ }>
2051
2058
  adjust?: {
2052
2059
  type: { ... }
2053
2060
  value: { ... }
@@ -2087,12 +2094,6 @@ type ScalarValue = {
2087
2094
  source: "external"
2088
2095
  app_id: string
2089
2096
  hook_id: string
2090
- result_id: string
2091
- adjust?: {
2092
- type: { ... }
2093
- value: { ... }
2094
- direction: { ... }
2095
- rounding?: { ... }
2096
2097
  // ...
2097
2098
  }
2098
2099
  ```
@@ -2123,6 +2124,7 @@ type ValueReference = {
2123
2124
  app_id: { ... }
2124
2125
  hook_id: { ... }
2125
2126
  result_id: { ... }
2127
+ inputs?: { ... }
2126
2128
  adjust?: { ... }
2127
2129
  } | {
2128
2130
  source: { ... }
@@ -2150,6 +2152,7 @@ type ValueReference = {
2150
2152
  app_id: { ... }
2151
2153
  hook_id: { ... }
2152
2154
  result_id: { ... }
2155
+ inputs?: { ... }
2153
2156
  adjust?: { ... }
2154
2157
  } | {
2155
2158
  source: { ... }
@@ -2164,6 +2167,16 @@ type ValueReference = {
2164
2167
  app_id: string
2165
2168
  hook_id: string
2166
2169
  result_id: string
2170
+ inputs?: Record<string, {
2171
+ source: "parameter"
2172
+ name: string
2173
+ adjust?: {
2174
+ type: { ... }
2175
+ value: { ... }
2176
+ direction: { ... }
2177
+ rounding?: { ... }
2178
+ }
2179
+ }>
2167
2180
  adjust?: {
2168
2181
  type: "percent" | "absolute"
2169
2182
  value: number | {
@@ -2179,6 +2192,7 @@ type ValueReference = {
2179
2192
  app_id: { ... }
2180
2193
  hook_id: { ... }
2181
2194
  result_id: { ... }
2195
+ inputs?: { ... }
2182
2196
  adjust?: { ... }
2183
2197
  } | {
2184
2198
  source: { ... }
@@ -2192,19 +2206,6 @@ type ValueReference = {
2192
2206
  source: "parameter"
2193
2207
  name: string
2194
2208
  adjust?: {
2195
- type: "percent" | "absolute"
2196
- value: number | {
2197
- source: { ... }
2198
- path: { ... }
2199
- adjust?: { ... }
2200
- } | {
2201
- source: { ... }
2202
- key: { ... }
2203
- adjust?: { ... }
2204
- } | {
2205
- source: { ... }
2206
- app_id: { ... }
2207
- hook_id: { ... }
2208
2209
  // ...
2209
2210
  }
2210
2211
  ```
@@ -2237,6 +2238,7 @@ type EnvironmentValue = {
2237
2238
  app_id: { ... }
2238
2239
  hook_id: { ... }
2239
2240
  result_id: { ... }
2241
+ inputs?: { ... }
2240
2242
  adjust?: { ... }
2241
2243
  } | {
2242
2244
  source: { ... }
@@ -2262,6 +2264,16 @@ type ExternalValue = {
2262
2264
  app_id: string
2263
2265
  hook_id: string
2264
2266
  result_id: string
2267
+ inputs?: Record<string, {
2268
+ source: "parameter"
2269
+ name: string
2270
+ adjust?: {
2271
+ type: { ... }
2272
+ value: { ... }
2273
+ direction: { ... }
2274
+ rounding?: { ... }
2275
+ }
2276
+ }>
2265
2277
  adjust?: {
2266
2278
  type: "percent" | "absolute"
2267
2279
  value: number | {
@@ -2277,6 +2289,7 @@ type ExternalValue = {
2277
2289
  app_id: { ... }
2278
2290
  hook_id: { ... }
2279
2291
  result_id: { ... }
2292
+ inputs?: { ... }
2280
2293
  adjust?: { ... }
2281
2294
  } | {
2282
2295
  source: { ... }
@@ -2291,10 +2304,10 @@ type ExternalValue = {
2291
2304
 
2292
2305
  ### `ParameterValue`
2293
2306
 
2294
- A comparison value supplied by the surface that evaluates the rule, identified by a name
2295
- the rule chooses (e.g. `start_date`). The rule stores the name only. The consuming surface
2296
- binds the name to a source of its own - a journey binds it to the value of another block -
2297
- and resolves it at evaluation
2307
+ A comparison value supplied by the consumer that evaluates the rule, identified by a name
2308
+ the rule chooses (e.g. `start_date`). The rule stores the name only. The consumer binds the
2309
+ name to a source of its own - a journey binds it to the value of another block - and
2310
+ resolves it at evaluation time, s
2298
2311
 
2299
2312
  ```ts
2300
2313
  type ParameterValue = {
@@ -2315,6 +2328,7 @@ type ParameterValue = {
2315
2328
  app_id: { ... }
2316
2329
  hook_id: { ... }
2317
2330
  result_id: { ... }
2331
+ inputs?: { ... }
2318
2332
  adjust?: { ... }
2319
2333
  } | {
2320
2334
  source: { ... }
@@ -2364,6 +2378,7 @@ type ContextValue = {
2364
2378
  app_id: { ... }
2365
2379
  hook_id: { ... }
2366
2380
  result_id: { ... }
2381
+ inputs?: { ... }
2367
2382
  adjust?: { ... }
2368
2383
  } | {
2369
2384
  source: { ... }
@@ -2408,6 +2423,11 @@ type ValueAdjustment = {
2408
2423
  app_id: string
2409
2424
  hook_id: string
2410
2425
  result_id: string
2426
+ inputs?: Record<string, {
2427
+ source: { ... }
2428
+ name: { ... }
2429
+ adjust?: { ... }
2430
+ }>
2411
2431
  adjust?: {
2412
2432
  type: { ... }
2413
2433
  value: { ... }
@@ -2459,6 +2479,11 @@ type RelativeDateValue = {
2459
2479
  app_id: string
2460
2480
  hook_id: string
2461
2481
  result_id: string
2482
+ inputs?: Record<string, {
2483
+ source: { ... }
2484
+ name: { ... }
2485
+ adjust?: { ... }
2486
+ }>
2462
2487
  adjust?: {
2463
2488
  type: { ... }
2464
2489
  value: { ... }
@@ -2499,6 +2524,11 @@ type RelativeDateValue = {
2499
2524
  app_id: string
2500
2525
  hook_id: string
2501
2526
  result_id: string
2527
+ inputs?: Record<string, {
2528
+ source: { ... }
2529
+ name: { ... }
2530
+ adjust?: { ... }
2531
+ }>
2502
2532
  adjust?: {
2503
2533
  type: { ... }
2504
2534
  value: { ... }
@@ -2552,6 +2582,7 @@ type RangeValue = {
2552
2582
  app_id: { ... }
2553
2583
  hook_id: { ... }
2554
2584
  result_id: { ... }
2585
+ inputs?: { ... }
2555
2586
  adjust?: { ... }
2556
2587
  } | {
2557
2588
  source: { ... }
@@ -2572,6 +2603,7 @@ type RangeValue = {
2572
2603
  app_id: { ... }
2573
2604
  hook_id: { ... }
2574
2605
  result_id: { ... }
2606
+ inputs?: { ... }
2575
2607
  adjust?: { ... }
2576
2608
  } | {
2577
2609
  source: { ... }
@@ -2592,6 +2624,11 @@ type RangeValue = {
2592
2624
  app_id: string
2593
2625
  hook_id: string
2594
2626
  result_id: string
2627
+ inputs?: Record<string, {
2628
+ source: { ... }
2629
+ name: { ... }
2630
+ adjust?: { ... }
2631
+ }>
2595
2632
  adjust?: {
2596
2633
  type: { ... }
2597
2634
  value: { ... }
@@ -2616,13 +2653,6 @@ type RangeValue = {
2616
2653
  path: string
2617
2654
  adjust?: {
2618
2655
  type: { ... }
2619
- value: { ... }
2620
- direction: { ... }
2621
- rounding?: { ... }
2622
- }
2623
- } | {
2624
- source: "relative_date"
2625
- offset: number | {
2626
2656
  // ...
2627
2657
  }
2628
2658
  ```
@@ -2719,6 +2749,7 @@ type DocumentCondition = {
2719
2749
  app_id: { ... }
2720
2750
  hook_id: { ... }
2721
2751
  result_id: { ... }
2752
+ inputs?: { ... }
2722
2753
  adjust?: { ... }
2723
2754
  } | {
2724
2755
  source: { ... }
@@ -2746,6 +2777,7 @@ type DocumentCondition = {
2746
2777
  app_id: { ... }
2747
2778
  hook_id: { ... }
2748
2779
  result_id: { ... }
2780
+ inputs?: { ... }
2749
2781
  adjust?: { ... }
2750
2782
  } | {
2751
2783
  source: { ... }
@@ -2815,6 +2847,7 @@ type DocumentConditionValue = {
2815
2847
  app_id: { ... }
2816
2848
  hook_id: { ... }
2817
2849
  result_id: { ... }
2850
+ inputs?: { ... }
2818
2851
  adjust?: { ... }
2819
2852
  } | {
2820
2853
  source: { ... }
@@ -2835,6 +2868,7 @@ type DocumentConditionValue = {
2835
2868
  app_id: { ... }
2836
2869
  hook_id: { ... }
2837
2870
  result_id: { ... }
2871
+ inputs?: { ... }
2838
2872
  adjust?: { ... }
2839
2873
  } | {
2840
2874
  source: { ... }
@@ -2855,6 +2889,11 @@ type DocumentConditionValue = {
2855
2889
  app_id: string
2856
2890
  hook_id: string
2857
2891
  result_id: string
2892
+ inputs?: Record<string, {
2893
+ source: { ... }
2894
+ name: { ... }
2895
+ adjust?: { ... }
2896
+ }>
2858
2897
  adjust?: {
2859
2898
  type: { ... }
2860
2899
  value: { ... }
@@ -2876,13 +2915,6 @@ type DocumentConditionValue = {
2876
2915
  data: number | string | boolean
2877
2916
  } | {
2878
2917
  source: "context"
2879
- path: string
2880
- adjust?: {
2881
- type: { ... }
2882
- value: { ... }
2883
- direction: { ... }
2884
- rounding?: { ... }
2885
- }
2886
2918
  // ...
2887
2919
  }
2888
2920
  ```
@@ -2947,6 +2979,11 @@ type AppliesWhen = {
2947
2979
  app_id: string
2948
2980
  hook_id: string
2949
2981
  result_id: string
2982
+ inputs?: Record<string, {
2983
+ source: { ... }
2984
+ name: { ... }
2985
+ adjust?: { ... }
2986
+ }>
2950
2987
  adjust?: {
2951
2988
  type: { ... }
2952
2989
  value: { ... }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.20.77",
3
+ "version": "2.20.78",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",