@epilot/sdk 2.20.56 → 2.20.58

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 (146) hide show
  1. package/definitions/integration-toolkit.json +133 -16
  2. package/definitions/validation-rules-runtime.json +1 -1
  3. package/definitions/validation-rules.json +32 -18
  4. package/dist/apis/access-token.cjs +11 -7
  5. package/dist/apis/access-token.js +7 -3
  6. package/dist/apis/address-suggestions.cjs +11 -7
  7. package/dist/apis/address-suggestions.js +7 -3
  8. package/dist/apis/address.cjs +11 -7
  9. package/dist/apis/address.js +7 -3
  10. package/dist/apis/ai-agents.cjs +11 -7
  11. package/dist/apis/ai-agents.js +7 -3
  12. package/dist/apis/app.cjs +11 -7
  13. package/dist/apis/app.js +7 -3
  14. package/dist/apis/audit-logs.cjs +11 -7
  15. package/dist/apis/audit-logs.js +7 -3
  16. package/dist/apis/automation.cjs +11 -7
  17. package/dist/apis/automation.js +7 -3
  18. package/dist/apis/billing.cjs +11 -7
  19. package/dist/apis/billing.js +7 -3
  20. package/dist/apis/blueprint-manifest.cjs +11 -7
  21. package/dist/apis/blueprint-manifest.js +7 -3
  22. package/dist/apis/calendar.cjs +11 -7
  23. package/dist/apis/calendar.js +7 -3
  24. package/dist/apis/chat.cjs +11 -7
  25. package/dist/apis/chat.js +7 -3
  26. package/dist/apis/configuration-hub.cjs +11 -7
  27. package/dist/apis/configuration-hub.js +7 -3
  28. package/dist/apis/consent.cjs +11 -7
  29. package/dist/apis/consent.js +7 -3
  30. package/dist/apis/customer-portal.cjs +11 -7
  31. package/dist/apis/customer-portal.js +7 -3
  32. package/dist/apis/dashboard.cjs +11 -7
  33. package/dist/apis/dashboard.js +7 -3
  34. package/dist/apis/data-governance.cjs +11 -7
  35. package/dist/apis/data-governance.js +7 -3
  36. package/dist/apis/deduplication.cjs +11 -7
  37. package/dist/apis/deduplication.js +7 -3
  38. package/dist/apis/design.cjs +11 -7
  39. package/dist/apis/design.js +7 -3
  40. package/dist/apis/document.cjs +11 -7
  41. package/dist/apis/document.js +7 -3
  42. package/dist/apis/email-settings.cjs +11 -7
  43. package/dist/apis/email-settings.js +7 -3
  44. package/dist/apis/email-template.cjs +11 -7
  45. package/dist/apis/email-template.js +7 -3
  46. package/dist/apis/entity-mapping.cjs +11 -7
  47. package/dist/apis/entity-mapping.js +7 -3
  48. package/dist/apis/entity.cjs +11 -7
  49. package/dist/apis/entity.js +7 -3
  50. package/dist/apis/environments.cjs +11 -7
  51. package/dist/apis/environments.js +7 -3
  52. package/dist/apis/event-catalog.cjs +11 -7
  53. package/dist/apis/event-catalog.js +7 -3
  54. package/dist/apis/external-values.cjs +11 -7
  55. package/dist/apis/external-values.js +7 -3
  56. package/dist/apis/file.cjs +11 -7
  57. package/dist/apis/file.js +7 -3
  58. package/dist/apis/iban.cjs +11 -7
  59. package/dist/apis/iban.js +7 -3
  60. package/dist/apis/identity.cjs +11 -7
  61. package/dist/apis/identity.js +7 -3
  62. package/dist/apis/integration-toolkit.cjs +11 -7
  63. package/dist/apis/integration-toolkit.d.cts +2 -2
  64. package/dist/apis/integration-toolkit.d.ts +2 -2
  65. package/dist/apis/integration-toolkit.js +7 -3
  66. package/dist/apis/journey.cjs +11 -7
  67. package/dist/apis/journey.js +7 -3
  68. package/dist/apis/kanban.cjs +11 -7
  69. package/dist/apis/kanban.js +7 -3
  70. package/dist/apis/message.cjs +11 -7
  71. package/dist/apis/message.js +7 -3
  72. package/dist/apis/metering.cjs +11 -7
  73. package/dist/apis/metering.js +7 -3
  74. package/dist/apis/notes.cjs +11 -7
  75. package/dist/apis/notes.js +7 -3
  76. package/dist/apis/notification.cjs +11 -7
  77. package/dist/apis/notification.js +7 -3
  78. package/dist/apis/organization.cjs +11 -7
  79. package/dist/apis/organization.js +7 -3
  80. package/dist/apis/partner-directory.cjs +11 -7
  81. package/dist/apis/partner-directory.js +7 -3
  82. package/dist/apis/permissions.cjs +11 -7
  83. package/dist/apis/permissions.js +7 -3
  84. package/dist/apis/phone-integration.cjs +11 -7
  85. package/dist/apis/phone-integration.js +7 -3
  86. package/dist/apis/pricing-tier.cjs +11 -7
  87. package/dist/apis/pricing-tier.js +7 -3
  88. package/dist/apis/pricing.cjs +11 -7
  89. package/dist/apis/pricing.js +7 -3
  90. package/dist/apis/purpose.cjs +11 -7
  91. package/dist/apis/purpose.js +7 -3
  92. package/dist/apis/query.cjs +11 -7
  93. package/dist/apis/query.js +7 -3
  94. package/dist/apis/sandbox.cjs +11 -7
  95. package/dist/apis/sandbox.js +7 -3
  96. package/dist/apis/sharing.cjs +11 -7
  97. package/dist/apis/sharing.js +7 -3
  98. package/dist/apis/snapshot.cjs +11 -7
  99. package/dist/apis/snapshot.js +7 -3
  100. package/dist/apis/submission.cjs +11 -7
  101. package/dist/apis/submission.js +7 -3
  102. package/dist/apis/target.cjs +11 -7
  103. package/dist/apis/target.js +7 -3
  104. package/dist/apis/targeting.cjs +11 -7
  105. package/dist/apis/targeting.js +7 -3
  106. package/dist/apis/template-variables.cjs +11 -7
  107. package/dist/apis/template-variables.js +7 -3
  108. package/dist/apis/user.cjs +11 -7
  109. package/dist/apis/user.js +7 -3
  110. package/dist/apis/validation-rules.cjs +12 -8
  111. package/dist/apis/validation-rules.d.cts +2 -2
  112. package/dist/apis/validation-rules.d.ts +2 -2
  113. package/dist/apis/validation-rules.js +8 -4
  114. package/dist/apis/webhooks.cjs +11 -7
  115. package/dist/apis/webhooks.js +7 -3
  116. package/dist/apis/workflow-definition.cjs +11 -7
  117. package/dist/apis/workflow-definition.js +7 -3
  118. package/dist/apis/workflow.cjs +11 -7
  119. package/dist/apis/workflow.js +7 -3
  120. package/dist/chunk-HRSCAD3W.cjs +14 -0
  121. package/dist/chunk-PPX45U34.js +14 -0
  122. package/dist/{chunk-GMONLMVN.cjs → chunk-S5K3TLPQ.cjs} +3 -3
  123. package/dist/{chunk-A73AZOKT.js → chunk-VAC7N66U.js} +3 -3
  124. package/dist/index.cjs +19 -12
  125. package/dist/index.d.cts +2 -2
  126. package/dist/index.d.ts +2 -2
  127. package/dist/index.js +11 -4
  128. package/dist/integration-toolkit-3J7KVCK7.cjs +7 -0
  129. package/dist/integration-toolkit-CV2AU2R7.js +7 -0
  130. package/dist/{integration-toolkit.d-CLlaZx6b.d.cts → integration-toolkit.d-DWslwG3c.d.cts} +71 -6
  131. package/dist/{integration-toolkit.d-CLlaZx6b.d.ts → integration-toolkit.d-DWslwG3c.d.ts} +71 -6
  132. package/dist/validation-rules-2XSKTPDC.js +7 -0
  133. package/dist/validation-rules-PHF3RPTN.cjs +7 -0
  134. package/dist/{validation-rules-runtime-X7M3QE5I.cjs → validation-rules-runtime-DENVKYLF.cjs} +2 -2
  135. package/dist/{validation-rules-runtime-6MRCS5X2.js → validation-rules-runtime-VGLVHV36.js} +1 -1
  136. package/dist/{validation-rules.d-Bbo90IYn.d.cts → validation-rules.d-ChX2VKqg.d.cts} +105 -48
  137. package/dist/{validation-rules.d-Bbo90IYn.d.ts → validation-rules.d-ChX2VKqg.d.ts} +105 -48
  138. package/docs/integration-toolkit.md +41 -7
  139. package/docs/validation-rules.md +301 -66
  140. package/package.json +1 -1
  141. package/dist/chunk-7IKQIVUS.js +0 -14
  142. package/dist/chunk-JIUTCNTB.cjs +0 -14
  143. package/dist/integration-toolkit-CG6SFVKC.cjs +0 -7
  144. package/dist/integration-toolkit-TLIEE3DY.js +0 -7
  145. package/dist/validation-rules-2JQLB6PH.cjs +0 -7
  146. package/dist/validation-rules-VQXUQSMC.js +0 -7
@@ -1,6 +1,5 @@
1
1
  # Validation Rules API
2
2
 
3
- - **Base URL:** `https://validation-rules.sls.epilot.io`
4
3
  - **Full API Docs:** [https://docs.epilot.io/api/validation-rules](https://docs.epilot.io/api/validation-rules)
5
4
 
6
5
  ## Usage
@@ -57,6 +56,7 @@ const { data } = await validationRulesClient.getValidationRules(...)
57
56
  - [`Operator`](#operator)
58
57
  - [`ConditionValue`](#conditionvalue)
59
58
  - [`ScalarValue`](#scalarvalue)
59
+ - [`ValueReference`](#valuereference)
60
60
  - [`EnvironmentValue`](#environmentvalue)
61
61
  - [`ExternalValue`](#externalvalue)
62
62
  - [`StaticValue`](#staticvalue)
@@ -1775,7 +1775,21 @@ type Condition = {
1775
1775
  }
1776
1776
  } | {
1777
1777
  source: "relative_date"
1778
- offset: number
1778
+ offset: number | {
1779
+ source: { ... }
1780
+ path: { ... }
1781
+ adjust?: { ... }
1782
+ } | {
1783
+ source: { ... }
1784
+ key: { ... }
1785
+ adjust?: { ... }
1786
+ } | {
1787
+ source: { ... }
1788
+ app_id: { ... }
1789
+ hook_id: { ... }
1790
+ result_id: { ... }
1791
+ adjust?: { ... }
1792
+ }
1779
1793
  unit: "days" | "months" | "years"
1780
1794
  anchor?: "today"
1781
1795
  } | {
@@ -1844,20 +1858,6 @@ type Condition = {
1844
1858
  app_id: { ... }
1845
1859
  hook_id: { ... }
1846
1860
  result_id: { ... }
1847
- adjust?: { ... }
1848
- }
1849
- } | {
1850
- source: "none"
1851
- }
1852
- error_message: string
1853
- applies_when?: {
1854
- path: string
1855
- operator: "equal" | "notEqual" | "greaterThan" | "greaterThanInclusive" | "lessThan" | "lessThanInclusive" | "isEmpty" | "isNotEmpty"
1856
- value?: number | string | boolean | {
1857
- source: { ... }
1858
- key: { ... }
1859
- adjust?: { ... }
1860
- }
1861
1861
  // ...
1862
1862
  }
1863
1863
  ```
@@ -1894,13 +1894,48 @@ type ConditionValue = {
1894
1894
  source: { ... }
1895
1895
  key: { ... }
1896
1896
  adjust?: { ... }
1897
+ } | {
1898
+ source: { ... }
1899
+ app_id: { ... }
1900
+ hook_id: { ... }
1901
+ result_id: { ... }
1902
+ adjust?: { ... }
1897
1903
  }
1898
1904
  direction: "increase" | "decrease"
1899
1905
  rounding?: "up" | "down"
1900
1906
  }
1901
1907
  } | {
1902
1908
  source: "relative_date"
1903
- offset: number
1909
+ offset: number | {
1910
+ source: "context"
1911
+ path: string
1912
+ adjust?: {
1913
+ type: { ... }
1914
+ value: { ... }
1915
+ direction: { ... }
1916
+ rounding?: { ... }
1917
+ }
1918
+ } | {
1919
+ source: "environment"
1920
+ key: string
1921
+ adjust?: {
1922
+ type: { ... }
1923
+ value: { ... }
1924
+ direction: { ... }
1925
+ rounding?: { ... }
1926
+ }
1927
+ } | {
1928
+ source: "external"
1929
+ app_id: string
1930
+ hook_id: string
1931
+ result_id: string
1932
+ adjust?: {
1933
+ type: { ... }
1934
+ value: { ... }
1935
+ direction: { ... }
1936
+ rounding?: { ... }
1937
+ }
1938
+ }
1904
1939
  unit: "days" | "months" | "years"
1905
1940
  anchor?: "today"
1906
1941
  } | {
@@ -1916,6 +1951,12 @@ type ConditionValue = {
1916
1951
  source: { ... }
1917
1952
  key: { ... }
1918
1953
  adjust?: { ... }
1954
+ } | {
1955
+ source: { ... }
1956
+ app_id: { ... }
1957
+ hook_id: { ... }
1958
+ result_id: { ... }
1959
+ adjust?: { ... }
1919
1960
  }
1920
1961
  direction: "increase" | "decrease"
1921
1962
  rounding?: "up" | "down"
@@ -1935,16 +1976,46 @@ type ConditionValue = {
1935
1976
  source: { ... }
1936
1977
  key: { ... }
1937
1978
  adjust?: { ... }
1979
+ } | {
1980
+ source: { ... }
1981
+ // ...
1982
+ }
1983
+ ```
1984
+
1985
+ ### `ScalarValue`
1986
+
1987
+ A single comparison value - static, resolved from context, a relative date, an organisation environment variable, or an external value.
1988
+
1989
+ ```ts
1990
+ type ScalarValue = {
1991
+ source: "static"
1992
+ data: number | string | boolean
1993
+ } | {
1994
+ source: "context"
1995
+ path: string
1996
+ adjust?: {
1997
+ type: "percent" | "absolute"
1998
+ value: number | {
1999
+ source: { ... }
2000
+ path: { ... }
2001
+ adjust?: { ... }
2002
+ } | {
2003
+ source: { ... }
2004
+ key: { ... }
2005
+ adjust?: { ... }
2006
+ } | {
2007
+ source: { ... }
2008
+ app_id: { ... }
2009
+ hook_id: { ... }
2010
+ result_id: { ... }
2011
+ adjust?: { ... }
1938
2012
  }
1939
2013
  direction: "increase" | "decrease"
1940
2014
  rounding?: "up" | "down"
1941
2015
  }
1942
2016
  } | {
1943
- source: "range"
1944
- min: {
1945
- source: "static"
1946
- data: number | string | boolean
1947
- } | {
2017
+ source: "relative_date"
2018
+ offset: number | {
1948
2019
  source: "context"
1949
2020
  path: string
1950
2021
  adjust?: {
@@ -1953,11 +2024,6 @@ type ConditionValue = {
1953
2024
  direction: { ... }
1954
2025
  rounding?: { ... }
1955
2026
  }
1956
- } | {
1957
- source: "relative_date"
1958
- offset: number
1959
- unit: "days" | "months" | "years"
1960
- anchor?: "today"
1961
2027
  } | {
1962
2028
  source: "environment"
1963
2029
  key: string
@@ -1978,19 +2044,62 @@ type ConditionValue = {
1978
2044
  direction: { ... }
1979
2045
  rounding?: { ... }
1980
2046
  }
2047
+ }
2048
+ unit: "days" | "months" | "years"
2049
+ anchor?: "today"
2050
+ } | {
2051
+ source: "environment"
2052
+ key: string
2053
+ adjust?: {
2054
+ type: "percent" | "absolute"
2055
+ value: number | {
2056
+ source: { ... }
2057
+ path: { ... }
2058
+ adjust?: { ... }
2059
+ } | {
2060
+ source: { ... }
2061
+ key: { ... }
2062
+ adjust?: { ... }
2063
+ } | {
2064
+ source: { ... }
2065
+ app_id: { ... }
2066
+ hook_id: { ... }
2067
+ result_id: { ... }
2068
+ adjust?: { ... }
2069
+ }
2070
+ direction: "increase" | "decrease"
2071
+ rounding?: "up" | "down"
2072
+ }
2073
+ } | {
2074
+ source: "external"
2075
+ app_id: string
2076
+ hook_id: string
2077
+ result_id: string
2078
+ adjust?: {
2079
+ type: "percent" | "absolute"
2080
+ value: number | {
2081
+ source: { ... }
2082
+ path: { ... }
2083
+ adjust?: { ... }
2084
+ } | {
2085
+ source: { ... }
2086
+ key: { ... }
2087
+ adjust?: { ... }
2088
+ } | {
2089
+ source: { ... }
1981
2090
  // ...
1982
2091
  }
1983
2092
  ```
1984
2093
 
1985
- ### `ScalarValue`
2094
+ ### `ValueReference`
2095
+
2096
+ A value resolved at evaluation time instead of written into the rule, identified by
2097
+ `source`. Each field that accepts a reference lists the sources it allows; a rule using
2098
+ any other source is rejected when it is saved.
1986
2099
 
1987
- A single comparison value - static, resolved from context, a relative date, an organisation environment variable, or an external value.
1988
2100
 
1989
2101
  ```ts
1990
- type ScalarValue = {
1991
- source: "static"
1992
- data: number | string | boolean
1993
- } | {
2102
+ type ValueReference = {
1994
2103
  source: "context"
1995
2104
  path: string
1996
2105
  adjust?: {
@@ -2003,15 +2112,16 @@ type ScalarValue = {
2003
2112
  source: { ... }
2004
2113
  key: { ... }
2005
2114
  adjust?: { ... }
2115
+ } | {
2116
+ source: { ... }
2117
+ app_id: { ... }
2118
+ hook_id: { ... }
2119
+ result_id: { ... }
2120
+ adjust?: { ... }
2006
2121
  }
2007
2122
  direction: "increase" | "decrease"
2008
2123
  rounding?: "up" | "down"
2009
2124
  }
2010
- } | {
2011
- source: "relative_date"
2012
- offset: number
2013
- unit: "days" | "months" | "years"
2014
- anchor?: "today"
2015
2125
  } | {
2016
2126
  source: "environment"
2017
2127
  key: string
@@ -2025,6 +2135,12 @@ type ScalarValue = {
2025
2135
  source: { ... }
2026
2136
  key: { ... }
2027
2137
  adjust?: { ... }
2138
+ } | {
2139
+ source: { ... }
2140
+ app_id: { ... }
2141
+ hook_id: { ... }
2142
+ result_id: { ... }
2143
+ adjust?: { ... }
2028
2144
  }
2029
2145
  direction: "increase" | "decrease"
2030
2146
  rounding?: "up" | "down"
@@ -2044,6 +2160,12 @@ type ScalarValue = {
2044
2160
  source: { ... }
2045
2161
  key: { ... }
2046
2162
  adjust?: { ... }
2163
+ } | {
2164
+ source: { ... }
2165
+ app_id: { ... }
2166
+ hook_id: { ... }
2167
+ result_id: { ... }
2168
+ adjust?: { ... }
2047
2169
  }
2048
2170
  direction: "increase" | "decrease"
2049
2171
  rounding?: "up" | "down"
@@ -2074,6 +2196,12 @@ type EnvironmentValue = {
2074
2196
  source: { ... }
2075
2197
  key: { ... }
2076
2198
  adjust?: { ... }
2199
+ } | {
2200
+ source: { ... }
2201
+ app_id: { ... }
2202
+ hook_id: { ... }
2203
+ result_id: { ... }
2204
+ adjust?: { ... }
2077
2205
  }
2078
2206
  direction: "increase" | "decrease"
2079
2207
  rounding?: "up" | "down"
@@ -2104,6 +2232,12 @@ type ExternalValue = {
2104
2232
  source: { ... }
2105
2233
  key: { ... }
2106
2234
  adjust?: { ... }
2235
+ } | {
2236
+ source: { ... }
2237
+ app_id: { ... }
2238
+ hook_id: { ... }
2239
+ result_id: { ... }
2240
+ adjust?: { ... }
2107
2241
  }
2108
2242
  direction: "increase" | "decrease"
2109
2243
  rounding?: "up" | "down"
@@ -2143,6 +2277,12 @@ type ContextValue = {
2143
2277
  source: { ... }
2144
2278
  key: { ... }
2145
2279
  adjust?: { ... }
2280
+ } | {
2281
+ source: { ... }
2282
+ app_id: { ... }
2283
+ hook_id: { ... }
2284
+ result_id: { ... }
2285
+ adjust?: { ... }
2146
2286
  }
2147
2287
  direction: "increase" | "decrease"
2148
2288
  rounding?: "up" | "down"
@@ -2177,6 +2317,17 @@ type ValueAdjustment = {
2177
2317
  direction: { ... }
2178
2318
  rounding?: { ... }
2179
2319
  }
2320
+ } | {
2321
+ source: "external"
2322
+ app_id: string
2323
+ hook_id: string
2324
+ result_id: string
2325
+ adjust?: {
2326
+ type: { ... }
2327
+ value: { ... }
2328
+ direction: { ... }
2329
+ rounding?: { ... }
2330
+ }
2180
2331
  }
2181
2332
  direction: "increase" | "decrease"
2182
2333
  rounding?: "up" | "down"
@@ -2190,7 +2341,36 @@ A date relative to the evaluation moment, e.g. "today minus 30 days". Only valid
2190
2341
  ```ts
2191
2342
  type RelativeDateValue = {
2192
2343
  source: "relative_date"
2193
- offset: number
2344
+ offset: number | {
2345
+ source: "context"
2346
+ path: string
2347
+ adjust?: {
2348
+ type: { ... }
2349
+ value: { ... }
2350
+ direction: { ... }
2351
+ rounding?: { ... }
2352
+ }
2353
+ } | {
2354
+ source: "environment"
2355
+ key: string
2356
+ adjust?: {
2357
+ type: { ... }
2358
+ value: { ... }
2359
+ direction: { ... }
2360
+ rounding?: { ... }
2361
+ }
2362
+ } | {
2363
+ source: "external"
2364
+ app_id: string
2365
+ hook_id: string
2366
+ result_id: string
2367
+ adjust?: {
2368
+ type: { ... }
2369
+ value: { ... }
2370
+ direction: { ... }
2371
+ rounding?: { ... }
2372
+ }
2373
+ }
2194
2374
  unit: "days" | "months" | "years"
2195
2375
  anchor?: "today"
2196
2376
  }
@@ -2217,7 +2397,21 @@ type RangeValue = {
2217
2397
  }
2218
2398
  } | {
2219
2399
  source: "relative_date"
2220
- offset: number
2400
+ offset: number | {
2401
+ source: { ... }
2402
+ path: { ... }
2403
+ adjust?: { ... }
2404
+ } | {
2405
+ source: { ... }
2406
+ key: { ... }
2407
+ adjust?: { ... }
2408
+ } | {
2409
+ source: { ... }
2410
+ app_id: { ... }
2411
+ hook_id: { ... }
2412
+ result_id: { ... }
2413
+ adjust?: { ... }
2414
+ }
2221
2415
  unit: "days" | "months" | "years"
2222
2416
  anchor?: "today"
2223
2417
  } | {
@@ -2255,7 +2449,21 @@ type RangeValue = {
2255
2449
  }
2256
2450
  } | {
2257
2451
  source: "relative_date"
2258
- offset: number
2452
+ offset: number | {
2453
+ source: { ... }
2454
+ path: { ... }
2455
+ adjust?: { ... }
2456
+ } | {
2457
+ source: { ... }
2458
+ key: { ... }
2459
+ adjust?: { ... }
2460
+ } | {
2461
+ source: { ... }
2462
+ app_id: { ... }
2463
+ hook_id: { ... }
2464
+ result_id: { ... }
2465
+ adjust?: { ... }
2466
+ }
2259
2467
  unit: "days" | "months" | "years"
2260
2468
  anchor?: "today"
2261
2469
  } | {
@@ -2273,12 +2481,7 @@ type RangeValue = {
2273
2481
  hook_id: string
2274
2482
  result_id: string
2275
2483
  adjust?: {
2276
- type: { ... }
2277
- value: { ... }
2278
- direction: { ... }
2279
- rounding?: { ... }
2280
- }
2281
- }
2484
+ // ...
2282
2485
  }
2283
2486
  ```
2284
2487
 
@@ -2449,7 +2652,21 @@ type DocumentConditionValue = {
2449
2652
  }
2450
2653
  } | {
2451
2654
  source: "relative_date"
2452
- offset: number
2655
+ offset: number | {
2656
+ source: { ... }
2657
+ path: { ... }
2658
+ adjust?: { ... }
2659
+ } | {
2660
+ source: { ... }
2661
+ key: { ... }
2662
+ adjust?: { ... }
2663
+ } | {
2664
+ source: { ... }
2665
+ app_id: { ... }
2666
+ hook_id: { ... }
2667
+ result_id: { ... }
2668
+ adjust?: { ... }
2669
+ }
2453
2670
  unit: "days" | "months" | "years"
2454
2671
  anchor?: "today"
2455
2672
  } | {
@@ -2487,7 +2704,21 @@ type DocumentConditionValue = {
2487
2704
  }
2488
2705
  } | {
2489
2706
  source: "relative_date"
2490
- offset: number
2707
+ offset: number | {
2708
+ source: { ... }
2709
+ path: { ... }
2710
+ adjust?: { ... }
2711
+ } | {
2712
+ source: { ... }
2713
+ key: { ... }
2714
+ adjust?: { ... }
2715
+ } | {
2716
+ source: { ... }
2717
+ app_id: { ... }
2718
+ hook_id: { ... }
2719
+ result_id: { ... }
2720
+ adjust?: { ... }
2721
+ }
2491
2722
  unit: "days" | "months" | "years"
2492
2723
  anchor?: "today"
2493
2724
  } | {
@@ -2502,23 +2733,7 @@ type DocumentConditionValue = {
2502
2733
  } | {
2503
2734
  source: "external"
2504
2735
  app_id: string
2505
- hook_id: string
2506
- result_id: string
2507
- adjust?: {
2508
- type: { ... }
2509
- value: { ... }
2510
- direction: { ... }
2511
- rounding?: { ... }
2512
- }
2513
- }
2514
- } | {
2515
- source: "none"
2516
- } | {
2517
- source: "file_types"
2518
- types: "image" | "pdf" | "document" | "spreadsheet"[]
2519
- } | {
2520
- source: "criteria"
2521
- text: string
2736
+ // ...
2522
2737
  }
2523
2738
  ```
2524
2739
 
@@ -2560,6 +2775,15 @@ type AppliesWhen = {
2560
2775
  path: string
2561
2776
  operator: "equal" | "notEqual" | "greaterThan" | "greaterThanInclusive" | "lessThan" | "lessThanInclusive" | "isEmpty" | "isNotEmpty"
2562
2777
  value?: number | string | boolean | {
2778
+ source: "context"
2779
+ path: string
2780
+ adjust?: {
2781
+ type: { ... }
2782
+ value: { ... }
2783
+ direction: { ... }
2784
+ rounding?: { ... }
2785
+ }
2786
+ } | {
2563
2787
  source: "environment"
2564
2788
  key: string
2565
2789
  adjust?: {
@@ -2568,6 +2792,17 @@ type AppliesWhen = {
2568
2792
  direction: { ... }
2569
2793
  rounding?: { ... }
2570
2794
  }
2795
+ } | {
2796
+ source: "external"
2797
+ app_id: string
2798
+ hook_id: string
2799
+ result_id: string
2800
+ adjust?: {
2801
+ type: { ... }
2802
+ value: { ... }
2803
+ direction: { ... }
2804
+ rounding?: { ... }
2805
+ }
2571
2806
  }
2572
2807
  }
2573
2808
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.20.56",
3
+ "version": "2.20.58",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1,14 +0,0 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-YPSWSI3M.js";
4
-
5
- // src/definitions/validation-rules-runtime.json
6
- var require_validation_rules_runtime = __commonJS({
7
- "src/definitions/validation-rules-runtime.json"(exports, module) {
8
- module.exports = { s: "https://validation-rules.sls.epilot.io", o: [["getValidationRules", "get", "/v1/validation-rules"], ["createValidationRule", "post", "/v1/validation-rules", null, 1], ["getValidationRuleById", "get", "/v1/validation-rules/{ruleId}", [["ruleId", "p", true]]], ["updateValidationRule", "patch", "/v1/validation-rules/{ruleId}", [["ruleId", "p", true]], 1], ["deleteValidationRule", "delete", "/v1/validation-rules/{ruleId}", [["ruleId", "p", true]]], ["addUsedByReference", "post", "/v1/validation-rules/{ruleId}/used-by", [["ruleId", "p", true]], 1], ["removeUsedByReference", "delete", "/v1/validation-rules/{ruleId}/used-by", [["ruleId", "p", true]], 1]], v: "3.0.3" };
9
- }
10
- });
11
-
12
- export {
13
- require_validation_rules_runtime
14
- };
@@ -1,14 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
4
-
5
- // src/definitions/validation-rules-runtime.json
6
- var require_validation_rules_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
- "src/definitions/validation-rules-runtime.json"(exports, module) {
8
- module.exports = { s: "https://validation-rules.sls.epilot.io", o: [["getValidationRules", "get", "/v1/validation-rules"], ["createValidationRule", "post", "/v1/validation-rules", null, 1], ["getValidationRuleById", "get", "/v1/validation-rules/{ruleId}", [["ruleId", "p", true]]], ["updateValidationRule", "patch", "/v1/validation-rules/{ruleId}", [["ruleId", "p", true]], 1], ["deleteValidationRule", "delete", "/v1/validation-rules/{ruleId}", [["ruleId", "p", true]]], ["addUsedByReference", "post", "/v1/validation-rules/{ruleId}/used-by", [["ruleId", "p", true]], 1], ["removeUsedByReference", "delete", "/v1/validation-rules/{ruleId}/used-by", [["ruleId", "p", true]], 1]], v: "3.0.3" };
9
- }
10
- });
11
-
12
-
13
-
14
- exports.require_validation_rules_runtime = require_validation_rules_runtime;