effect 4.0.0-rc.111 → 4.0.0-rc.113

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 (1293) hide show
  1. package/AGENTS.md +24 -9
  2. package/CLAUDE.md +24 -9
  3. package/ai-docs/package.json +2 -2
  4. package/ai-docs/src/01_effect/01_basics/02_effect-fn.ts +18 -5
  5. package/ai-docs/src/01_effect/01_basics/index.md +5 -3
  6. package/ai-docs/src/01_effect/03_services/20_layer-composition.ts +1 -1
  7. package/ai-docs/src/01_effect/03_services/20_layer-unwrap.ts +2 -2
  8. package/ai-docs/src/01_effect/05_resources/10_acquire-release.ts +2 -2
  9. package/ai-docs/src/03_stream/30_encoding.ts +5 -7
  10. package/ai-docs/src/08_observability/10_logging.ts +1 -1
  11. package/ai-docs/src/70_cli/10_basics.ts +7 -7
  12. package/ai-docs/src/71_ai/10_language-model.ts +2 -2
  13. package/ai-docs/src/71_ai/20_tools.ts +1 -1
  14. package/ai-docs/src/71_ai/30_chat.ts +1 -1
  15. package/dist/Array.d.ts +109 -52
  16. package/dist/Array.d.ts.map +1 -1
  17. package/dist/Array.js +65 -32
  18. package/dist/Array.js.map +1 -1
  19. package/dist/BigDecimal.d.ts +5 -1
  20. package/dist/BigDecimal.d.ts.map +1 -1
  21. package/dist/BigDecimal.js +40 -23
  22. package/dist/BigDecimal.js.map +1 -1
  23. package/dist/ByteSize.d.ts +633 -0
  24. package/dist/ByteSize.d.ts.map +1 -0
  25. package/dist/ByteSize.js +524 -0
  26. package/dist/ByteSize.js.map +1 -0
  27. package/dist/Cache.d.ts.map +1 -1
  28. package/dist/Cache.js +17 -3
  29. package/dist/Cache.js.map +1 -1
  30. package/dist/Cause.d.ts +1 -1
  31. package/dist/Cause.d.ts.map +1 -1
  32. package/dist/Channel.d.ts +97 -24
  33. package/dist/Channel.d.ts.map +1 -1
  34. package/dist/Channel.js +68 -41
  35. package/dist/Channel.js.map +1 -1
  36. package/dist/Chunk.d.ts +49 -28
  37. package/dist/Chunk.d.ts.map +1 -1
  38. package/dist/Chunk.js +27 -18
  39. package/dist/Chunk.js.map +1 -1
  40. package/dist/Config.d.ts +162 -201
  41. package/dist/Config.d.ts.map +1 -1
  42. package/dist/Config.js +103 -212
  43. package/dist/Config.js.map +1 -1
  44. package/dist/ConfigProvider.d.ts +4 -4
  45. package/dist/ConfigProvider.d.ts.map +1 -1
  46. package/dist/ConfigProvider.js +7 -7
  47. package/dist/ConfigProvider.js.map +1 -1
  48. package/dist/Context.d.ts +31 -0
  49. package/dist/Context.d.ts.map +1 -1
  50. package/dist/Context.js.map +1 -1
  51. package/dist/Cron.d.ts +2 -2
  52. package/dist/Cron.d.ts.map +1 -1
  53. package/dist/Cron.js +2 -2
  54. package/dist/Cron.js.map +1 -1
  55. package/dist/Crypto.d.ts +1 -1
  56. package/dist/Crypto.d.ts.map +1 -1
  57. package/dist/Crypto.js +3 -2
  58. package/dist/Crypto.js.map +1 -1
  59. package/dist/DateTime.d.ts +2 -2
  60. package/dist/DateTime.d.ts.map +1 -1
  61. package/dist/Deferred.d.ts.map +1 -1
  62. package/dist/Deferred.js +6 -6
  63. package/dist/Deferred.js.map +1 -1
  64. package/dist/Duration.d.ts +1 -1
  65. package/dist/Duration.d.ts.map +1 -1
  66. package/dist/Duration.js +1 -1
  67. package/dist/Duration.js.map +1 -1
  68. package/dist/Effect.d.ts +220 -113
  69. package/dist/Effect.d.ts.map +1 -1
  70. package/dist/Effect.js +27 -26
  71. package/dist/Effect.js.map +1 -1
  72. package/dist/Effectable.d.ts +58 -2
  73. package/dist/Effectable.d.ts.map +1 -1
  74. package/dist/Effectable.js +58 -6
  75. package/dist/Effectable.js.map +1 -1
  76. package/dist/Encoding.d.ts +3 -1
  77. package/dist/Encoding.d.ts.map +1 -1
  78. package/dist/Encoding.js +40 -10
  79. package/dist/Encoding.js.map +1 -1
  80. package/dist/Equal.d.ts +1 -1
  81. package/dist/Equal.d.ts.map +1 -1
  82. package/dist/Equal.js +1 -1
  83. package/dist/Equal.js.map +1 -1
  84. package/dist/ExecutionPlan.d.ts.map +1 -1
  85. package/dist/ExecutionPlan.js +1 -0
  86. package/dist/ExecutionPlan.js.map +1 -1
  87. package/dist/Fiber.d.ts +32 -8
  88. package/dist/Fiber.d.ts.map +1 -1
  89. package/dist/Fiber.js.map +1 -1
  90. package/dist/FiberHandle.js +3 -3
  91. package/dist/FiberHandle.js.map +1 -1
  92. package/dist/FiberMap.d.ts +12 -6
  93. package/dist/FiberMap.d.ts.map +1 -1
  94. package/dist/FiberMap.js +11 -6
  95. package/dist/FiberMap.js.map +1 -1
  96. package/dist/FileSystem.d.ts +42 -210
  97. package/dist/FileSystem.d.ts.map +1 -1
  98. package/dist/FileSystem.js +16 -148
  99. package/dist/FileSystem.js.map +1 -1
  100. package/dist/Formatter.d.ts +1 -0
  101. package/dist/Formatter.d.ts.map +1 -1
  102. package/dist/Formatter.js +19 -3
  103. package/dist/Formatter.js.map +1 -1
  104. package/dist/Graph.d.ts +48 -20
  105. package/dist/Graph.d.ts.map +1 -1
  106. package/dist/Graph.js +20 -5
  107. package/dist/Graph.js.map +1 -1
  108. package/dist/Hash.d.ts +1 -1
  109. package/dist/Hash.d.ts.map +1 -1
  110. package/dist/Hash.js +5 -14
  111. package/dist/Hash.js.map +1 -1
  112. package/dist/HashMap.d.ts +1 -1
  113. package/dist/HashMap.d.ts.map +1 -1
  114. package/dist/HashRing.d.ts +6 -1
  115. package/dist/HashRing.d.ts.map +1 -1
  116. package/dist/HashRing.js +9 -2
  117. package/dist/HashRing.js.map +1 -1
  118. package/dist/HashSet.d.ts +1 -1
  119. package/dist/HashSet.d.ts.map +1 -1
  120. package/dist/HashSet.js.map +1 -1
  121. package/dist/Iterable.d.ts +56 -17
  122. package/dist/Iterable.d.ts.map +1 -1
  123. package/dist/Iterable.js +65 -45
  124. package/dist/Iterable.js.map +1 -1
  125. package/dist/JsonPatch.js +4 -4
  126. package/dist/JsonPatch.js.map +1 -1
  127. package/dist/JsonPointer.d.ts +68 -4
  128. package/dist/JsonPointer.d.ts.map +1 -1
  129. package/dist/JsonPointer.js +90 -4
  130. package/dist/JsonPointer.js.map +1 -1
  131. package/dist/JsonSchema.d.ts +67 -94
  132. package/dist/JsonSchema.d.ts.map +1 -1
  133. package/dist/JsonSchema.js +752 -397
  134. package/dist/JsonSchema.js.map +1 -1
  135. package/dist/Layer.d.ts +47 -4
  136. package/dist/Layer.d.ts.map +1 -1
  137. package/dist/Layer.js +4 -6
  138. package/dist/Layer.js.map +1 -1
  139. package/dist/LayerMap.d.ts +24 -3
  140. package/dist/LayerMap.d.ts.map +1 -1
  141. package/dist/LayerMap.js +9 -5
  142. package/dist/LayerMap.js.map +1 -1
  143. package/dist/LayerRef.d.ts.map +1 -1
  144. package/dist/LayerRef.js +7 -5
  145. package/dist/LayerRef.js.map +1 -1
  146. package/dist/Logger.d.ts +114 -9
  147. package/dist/Logger.d.ts.map +1 -1
  148. package/dist/Logger.js +109 -9
  149. package/dist/Logger.js.map +1 -1
  150. package/dist/ManagedRuntime.js +1 -1
  151. package/dist/ManagedRuntime.js.map +1 -1
  152. package/dist/Match.d.ts +43 -31
  153. package/dist/Match.d.ts.map +1 -1
  154. package/dist/Match.js +5 -2
  155. package/dist/Match.js.map +1 -1
  156. package/dist/Metric.d.ts +11 -4
  157. package/dist/Metric.d.ts.map +1 -1
  158. package/dist/Metric.js +14 -18
  159. package/dist/Metric.js.map +1 -1
  160. package/dist/MutableHashMap.d.ts +1 -1
  161. package/dist/MutableHashMap.d.ts.map +1 -1
  162. package/dist/MutableHashMap.js +1 -1
  163. package/dist/MutableHashMap.js.map +1 -1
  164. package/dist/MutableHashSet.d.ts +1 -1
  165. package/dist/MutableHashSet.d.ts.map +1 -1
  166. package/dist/MutableHashSet.js +1 -1
  167. package/dist/MutableHashSet.js.map +1 -1
  168. package/dist/MutableList.d.ts +13 -2
  169. package/dist/MutableList.d.ts.map +1 -1
  170. package/dist/MutableList.js +18 -2
  171. package/dist/MutableList.js.map +1 -1
  172. package/dist/Number.d.ts +6 -0
  173. package/dist/Number.d.ts.map +1 -1
  174. package/dist/Number.js +3 -1
  175. package/dist/Number.js.map +1 -1
  176. package/dist/Optic.d.ts.map +1 -1
  177. package/dist/Optic.js +5 -4
  178. package/dist/Optic.js.map +1 -1
  179. package/dist/Option.d.ts +1 -1
  180. package/dist/Option.d.ts.map +1 -1
  181. package/dist/Option.js +1 -1
  182. package/dist/Option.js.map +1 -1
  183. package/dist/Order.d.ts +1 -0
  184. package/dist/Order.d.ts.map +1 -1
  185. package/dist/Order.js +3 -1
  186. package/dist/Order.js.map +1 -1
  187. package/dist/PartitionedSemaphore.d.ts.map +1 -1
  188. package/dist/PartitionedSemaphore.js +1 -2
  189. package/dist/PartitionedSemaphore.js.map +1 -1
  190. package/dist/Path.d.ts +1 -1
  191. package/dist/Path.d.ts.map +1 -1
  192. package/dist/Path.js +1 -1
  193. package/dist/Path.js.map +1 -1
  194. package/dist/PlatformError.d.ts +1 -1
  195. package/dist/PlatformError.d.ts.map +1 -1
  196. package/dist/PlatformError.js +1 -1
  197. package/dist/PlatformError.js.map +1 -1
  198. package/dist/Pool.d.ts +137 -10
  199. package/dist/Pool.d.ts.map +1 -1
  200. package/dist/Pool.js +332 -75
  201. package/dist/Pool.js.map +1 -1
  202. package/dist/PrimaryKey.d.ts +1 -1
  203. package/dist/PrimaryKey.d.ts.map +1 -1
  204. package/dist/PrimaryKey.js +1 -1
  205. package/dist/PrimaryKey.js.map +1 -1
  206. package/dist/PubSub.d.ts +21 -9
  207. package/dist/PubSub.d.ts.map +1 -1
  208. package/dist/PubSub.js +18 -14
  209. package/dist/PubSub.js.map +1 -1
  210. package/dist/Queue.d.ts +82 -6
  211. package/dist/Queue.d.ts.map +1 -1
  212. package/dist/Queue.js +116 -27
  213. package/dist/Queue.js.map +1 -1
  214. package/dist/Random.d.ts +17 -4
  215. package/dist/Random.d.ts.map +1 -1
  216. package/dist/Random.js +1 -1
  217. package/dist/Random.js.map +1 -1
  218. package/dist/RcMap.d.ts +137 -0
  219. package/dist/RcMap.d.ts.map +1 -1
  220. package/dist/RcMap.js +72 -9
  221. package/dist/RcMap.js.map +1 -1
  222. package/dist/Record.d.ts +13 -0
  223. package/dist/Record.d.ts.map +1 -1
  224. package/dist/Record.js.map +1 -1
  225. package/dist/Redacted.d.ts +1 -1
  226. package/dist/Redacted.d.ts.map +1 -1
  227. package/dist/Redacted.js +1 -1
  228. package/dist/Redacted.js.map +1 -1
  229. package/dist/RequestResolver.d.ts +15 -9
  230. package/dist/RequestResolver.d.ts.map +1 -1
  231. package/dist/RequestResolver.js +33 -15
  232. package/dist/RequestResolver.js.map +1 -1
  233. package/dist/Result.d.ts +1 -1
  234. package/dist/Result.d.ts.map +1 -1
  235. package/dist/Result.js +1 -1
  236. package/dist/Result.js.map +1 -1
  237. package/dist/Scheduler.d.ts.map +1 -1
  238. package/dist/Scheduler.js +19 -10
  239. package/dist/Scheduler.js.map +1 -1
  240. package/dist/Schema.d.ts +2200 -2433
  241. package/dist/Schema.d.ts.map +1 -1
  242. package/dist/Schema.js +2797 -4184
  243. package/dist/Schema.js.map +1 -1
  244. package/dist/SchemaAST.d.ts +359 -176
  245. package/dist/SchemaAST.d.ts.map +1 -1
  246. package/dist/SchemaAST.js +373 -630
  247. package/dist/SchemaAST.js.map +1 -1
  248. package/dist/SchemaGetter.d.ts +46 -22
  249. package/dist/SchemaGetter.d.ts.map +1 -1
  250. package/dist/SchemaGetter.js +56 -53
  251. package/dist/SchemaGetter.js.map +1 -1
  252. package/dist/SchemaIssue.d.ts +123 -200
  253. package/dist/SchemaIssue.d.ts.map +1 -1
  254. package/dist/SchemaIssue.js +59 -263
  255. package/dist/SchemaIssue.js.map +1 -1
  256. package/dist/SchemaParser.js +2 -9
  257. package/dist/SchemaParser.js.map +1 -1
  258. package/dist/SchemaRepresentation.d.ts +1276 -172
  259. package/dist/SchemaRepresentation.d.ts.map +1 -1
  260. package/dist/SchemaRepresentation.js +1371 -29
  261. package/dist/SchemaRepresentation.js.map +1 -1
  262. package/dist/SchemaTransformation.d.ts +49 -16
  263. package/dist/SchemaTransformation.d.ts.map +1 -1
  264. package/dist/SchemaTransformation.js +75 -98
  265. package/dist/SchemaTransformation.js.map +1 -1
  266. package/dist/Scope.d.ts +9 -2
  267. package/dist/Scope.d.ts.map +1 -1
  268. package/dist/Scope.js.map +1 -1
  269. package/dist/ScopedCache.d.ts.map +1 -1
  270. package/dist/ScopedCache.js +10 -3
  271. package/dist/ScopedCache.js.map +1 -1
  272. package/dist/Sink.d.ts +9 -4
  273. package/dist/Sink.d.ts.map +1 -1
  274. package/dist/Sink.js +49 -31
  275. package/dist/Sink.js.map +1 -1
  276. package/dist/StandardSchema.d.ts +125 -0
  277. package/dist/StandardSchema.d.ts.map +1 -0
  278. package/dist/StandardSchema.js +9 -0
  279. package/dist/StandardSchema.js.map +1 -0
  280. package/dist/Stream.d.ts +221 -35
  281. package/dist/Stream.d.ts.map +1 -1
  282. package/dist/Stream.js +168 -84
  283. package/dist/Stream.js.map +1 -1
  284. package/dist/String.d.ts +16 -6
  285. package/dist/String.d.ts.map +1 -1
  286. package/dist/String.js +12 -5
  287. package/dist/String.js.map +1 -1
  288. package/dist/Struct.d.ts.map +1 -1
  289. package/dist/Struct.js +7 -4
  290. package/dist/Struct.js.map +1 -1
  291. package/dist/SynchronizedRef.d.ts +3 -2
  292. package/dist/SynchronizedRef.d.ts.map +1 -1
  293. package/dist/SynchronizedRef.js.map +1 -1
  294. package/dist/Terminal.d.ts +3 -3
  295. package/dist/Terminal.d.ts.map +1 -1
  296. package/dist/Terminal.js +3 -3
  297. package/dist/Terminal.js.map +1 -1
  298. package/dist/Tracer.d.ts +27 -7
  299. package/dist/Tracer.d.ts.map +1 -1
  300. package/dist/Tracer.js +38 -13
  301. package/dist/Tracer.js.map +1 -1
  302. package/dist/Trie.d.ts +1 -1
  303. package/dist/Trie.d.ts.map +1 -1
  304. package/dist/Tuple.d.ts +2 -1
  305. package/dist/Tuple.d.ts.map +1 -1
  306. package/dist/Tuple.js.map +1 -1
  307. package/dist/TxChunk.d.ts +1 -1
  308. package/dist/TxChunk.d.ts.map +1 -1
  309. package/dist/TxChunk.js +1 -1
  310. package/dist/TxChunk.js.map +1 -1
  311. package/dist/TxDeferred.d.ts +1 -1
  312. package/dist/TxDeferred.d.ts.map +1 -1
  313. package/dist/TxDeferred.js +1 -1
  314. package/dist/TxDeferred.js.map +1 -1
  315. package/dist/TxHashMap.d.ts +1 -1
  316. package/dist/TxHashMap.d.ts.map +1 -1
  317. package/dist/TxHashMap.js +1 -1
  318. package/dist/TxHashMap.js.map +1 -1
  319. package/dist/TxHashSet.d.ts +1 -1
  320. package/dist/TxHashSet.d.ts.map +1 -1
  321. package/dist/TxHashSet.js +1 -1
  322. package/dist/TxHashSet.js.map +1 -1
  323. package/dist/TxPriorityQueue.d.ts +1 -1
  324. package/dist/TxPriorityQueue.d.ts.map +1 -1
  325. package/dist/TxPriorityQueue.js +1 -1
  326. package/dist/TxPriorityQueue.js.map +1 -1
  327. package/dist/TxPubSub.d.ts +1 -1
  328. package/dist/TxPubSub.d.ts.map +1 -1
  329. package/dist/TxPubSub.js +1 -1
  330. package/dist/TxPubSub.js.map +1 -1
  331. package/dist/TxQueue.d.ts +9 -9
  332. package/dist/TxQueue.d.ts.map +1 -1
  333. package/dist/TxQueue.js +93 -86
  334. package/dist/TxQueue.js.map +1 -1
  335. package/dist/TxReentrantLock.d.ts +29 -1
  336. package/dist/TxReentrantLock.d.ts.map +1 -1
  337. package/dist/TxReentrantLock.js +29 -1
  338. package/dist/TxReentrantLock.js.map +1 -1
  339. package/dist/TxRef.d.ts +1 -1
  340. package/dist/TxRef.d.ts.map +1 -1
  341. package/dist/TxRef.js +1 -1
  342. package/dist/TxRef.js.map +1 -1
  343. package/dist/TxSemaphore.d.ts +1 -1
  344. package/dist/TxSemaphore.d.ts.map +1 -1
  345. package/dist/TxSemaphore.js +1 -1
  346. package/dist/TxSemaphore.js.map +1 -1
  347. package/dist/TxSubscriptionRef.d.ts +1 -1
  348. package/dist/TxSubscriptionRef.d.ts.map +1 -1
  349. package/dist/TxSubscriptionRef.js +1 -1
  350. package/dist/TxSubscriptionRef.js.map +1 -1
  351. package/dist/Types.d.ts +33 -19
  352. package/dist/Types.d.ts.map +1 -1
  353. package/dist/Utils.d.ts.map +1 -1
  354. package/dist/Utils.js +2 -1
  355. package/dist/Utils.js.map +1 -1
  356. package/dist/index.d.ts +8 -0
  357. package/dist/index.d.ts.map +1 -1
  358. package/dist/index.js +8 -0
  359. package/dist/index.js.map +1 -1
  360. package/dist/internal/arbitrary/model.d.ts +2 -0
  361. package/dist/internal/arbitrary/model.d.ts.map +1 -0
  362. package/dist/internal/arbitrary/model.js +495 -0
  363. package/dist/internal/arbitrary/model.js.map +1 -0
  364. package/dist/internal/arbitrary/regexp.d.ts +2 -0
  365. package/dist/internal/arbitrary/regexp.d.ts.map +1 -0
  366. package/dist/internal/arbitrary/regexp.js +789 -0
  367. package/dist/internal/arbitrary/regexp.js.map +1 -0
  368. package/dist/internal/arbitrary/runner.d.ts +2 -0
  369. package/dist/internal/arbitrary/runner.d.ts.map +1 -0
  370. package/dist/internal/arbitrary/runner.js +496 -0
  371. package/dist/internal/arbitrary/runner.js.map +1 -0
  372. package/dist/internal/arbitrary/schema.d.ts.map +1 -0
  373. package/dist/internal/arbitrary/schema.js +1340 -0
  374. package/dist/internal/arbitrary/schema.js.map +1 -0
  375. package/dist/internal/core.js +27 -13
  376. package/dist/internal/core.js.map +1 -1
  377. package/dist/internal/count.d.ts +2 -0
  378. package/dist/internal/count.d.ts.map +1 -0
  379. package/dist/internal/count.js +14 -0
  380. package/dist/internal/count.js.map +1 -0
  381. package/dist/internal/dateTime.js +4 -10
  382. package/dist/internal/dateTime.js.map +1 -1
  383. package/dist/internal/effect.js +416 -258
  384. package/dist/internal/effect.js.map +1 -1
  385. package/dist/internal/graph.js +3 -1
  386. package/dist/internal/graph.js.map +1 -1
  387. package/dist/internal/hashMap.js +5 -3
  388. package/dist/internal/hashMap.js.map +1 -1
  389. package/dist/internal/hashSet.js +1 -1
  390. package/dist/internal/hashSet.js.map +1 -1
  391. package/dist/internal/matcher.js +1 -1
  392. package/dist/internal/matcher.js.map +1 -1
  393. package/dist/internal/metric.js +1 -1
  394. package/dist/internal/metric.js.map +1 -1
  395. package/dist/internal/option.js +6 -5
  396. package/dist/internal/option.js.map +1 -1
  397. package/dist/internal/random.js +17 -0
  398. package/dist/internal/random.js.map +1 -1
  399. package/dist/internal/rcRef.js +10 -7
  400. package/dist/internal/rcRef.js.map +1 -1
  401. package/dist/internal/references.js +1 -0
  402. package/dist/internal/references.js.map +1 -1
  403. package/dist/internal/request.js +13 -6
  404. package/dist/internal/request.js.map +1 -1
  405. package/dist/internal/result.js +11 -9
  406. package/dist/internal/result.js.map +1 -1
  407. package/dist/internal/schema/annotations.js +1 -1
  408. package/dist/internal/schema/annotations.js.map +1 -1
  409. package/dist/internal/schema/fromJsonSchemaDocument.js +238 -132
  410. package/dist/internal/schema/fromJsonSchemaDocument.js.map +1 -1
  411. package/dist/internal/schema/fromRepresentation.js +5 -5
  412. package/dist/internal/schema/fromRepresentation.js.map +1 -1
  413. package/dist/internal/schema/make.d.ts +2 -0
  414. package/dist/internal/schema/make.d.ts.map +1 -0
  415. package/dist/internal/schema/{schema.js → make.js} +1 -25
  416. package/dist/internal/schema/make.js.map +1 -0
  417. package/dist/internal/schema/parser.d.ts +0 -12
  418. package/dist/internal/schema/parser.d.ts.map +1 -1
  419. package/dist/internal/schema/parser.js +7 -0
  420. package/dist/internal/schema/parser.js.map +1 -1
  421. package/dist/internal/schema/standardSchema.d.ts +2 -0
  422. package/dist/internal/schema/standardSchema.d.ts.map +1 -0
  423. package/dist/internal/schema/standardSchema.js +112 -0
  424. package/dist/internal/schema/standardSchema.js.map +1 -0
  425. package/dist/internal/schema/toCodeDocument.js +34 -22
  426. package/dist/internal/schema/toCodeDocument.js.map +1 -1
  427. package/dist/internal/schema/toCodec.d.ts +2 -0
  428. package/dist/internal/schema/toCodec.d.ts.map +1 -0
  429. package/dist/internal/schema/toCodec.js +242 -0
  430. package/dist/internal/schema/toCodec.js.map +1 -0
  431. package/dist/internal/schema/toDifferJsonPatch.d.ts +2 -0
  432. package/dist/internal/schema/toDifferJsonPatch.d.ts.map +1 -0
  433. package/dist/internal/schema/toDifferJsonPatch.js +20 -0
  434. package/dist/internal/schema/toDifferJsonPatch.js.map +1 -0
  435. package/dist/internal/schema/toEncoderXml.d.ts +2 -0
  436. package/dist/internal/schema/toEncoderXml.d.ts.map +1 -0
  437. package/dist/internal/schema/toEncoderXml.js +104 -0
  438. package/dist/internal/schema/toEncoderXml.js.map +1 -0
  439. package/dist/internal/schema/toEquivalence.js +66 -0
  440. package/dist/internal/schema/toEquivalence.js.map +1 -1
  441. package/dist/internal/schema/toFormatter.d.ts +2 -0
  442. package/dist/internal/schema/toFormatter.d.ts.map +1 -0
  443. package/dist/internal/schema/toFormatter.js +227 -0
  444. package/dist/internal/schema/toFormatter.js.map +1 -0
  445. package/dist/internal/schema/toIso.d.ts +2 -0
  446. package/dist/internal/schema/toIso.d.ts.map +1 -0
  447. package/dist/internal/schema/toIso.js +17 -0
  448. package/dist/internal/schema/toIso.js.map +1 -0
  449. package/dist/internal/schema/toJsonSchemaDocument.js +122 -71
  450. package/dist/internal/schema/toJsonSchemaDocument.js.map +1 -1
  451. package/dist/internal/schema/toRepresentation.js +3 -1
  452. package/dist/internal/schema/toRepresentation.js.map +1 -1
  453. package/dist/internal/schemaError.d.ts +4 -0
  454. package/dist/internal/schemaError.d.ts.map +1 -0
  455. package/dist/internal/schemaError.js +6 -0
  456. package/dist/internal/schemaError.js.map +1 -0
  457. package/dist/internal/stream.js +5 -6
  458. package/dist/internal/stream.js.map +1 -1
  459. package/dist/internal/tracer.d.ts +1 -3
  460. package/dist/internal/tracer.d.ts.map +1 -1
  461. package/dist/internal/tracer.js +6 -0
  462. package/dist/internal/tracer.js.map +1 -1
  463. package/dist/internal/trie.js +2 -2
  464. package/dist/internal/trie.js.map +1 -1
  465. package/dist/internal/uuid.d.ts +1 -2
  466. package/dist/internal/uuid.d.ts.map +1 -1
  467. package/dist/internal/uuid.js +2 -0
  468. package/dist/internal/uuid.js.map +1 -1
  469. package/dist/testing/TestSchema.d.ts +9 -11
  470. package/dist/testing/TestSchema.d.ts.map +1 -1
  471. package/dist/testing/TestSchema.js +20 -18
  472. package/dist/testing/TestSchema.js.map +1 -1
  473. package/dist/testing/index.d.ts +0 -4
  474. package/dist/testing/index.d.ts.map +1 -1
  475. package/dist/testing/index.js +0 -4
  476. package/dist/testing/index.js.map +1 -1
  477. package/dist/unstable/ai/AiError.d.ts +98 -23
  478. package/dist/unstable/ai/AiError.d.ts.map +1 -1
  479. package/dist/unstable/ai/AiError.js +98 -6
  480. package/dist/unstable/ai/AiError.js.map +1 -1
  481. package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +1 -1
  482. package/dist/unstable/ai/AnthropicStructuredOutput.d.ts.map +1 -1
  483. package/dist/unstable/ai/AnthropicStructuredOutput.js +5 -16
  484. package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
  485. package/dist/unstable/ai/Chat.d.ts +27 -32
  486. package/dist/unstable/ai/Chat.d.ts.map +1 -1
  487. package/dist/unstable/ai/Chat.js +10 -13
  488. package/dist/unstable/ai/Chat.js.map +1 -1
  489. package/dist/unstable/ai/EmbeddingModel.d.ts +23 -16
  490. package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
  491. package/dist/unstable/ai/EmbeddingModel.js +13 -11
  492. package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
  493. package/dist/unstable/ai/LanguageModel.d.ts +48 -37
  494. package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
  495. package/dist/unstable/ai/LanguageModel.js +150 -47
  496. package/dist/unstable/ai/LanguageModel.js.map +1 -1
  497. package/dist/unstable/ai/McpServer.d.ts +2 -2
  498. package/dist/unstable/ai/McpServer.d.ts.map +1 -1
  499. package/dist/unstable/ai/McpServer.js +87 -78
  500. package/dist/unstable/ai/McpServer.js.map +1 -1
  501. package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +1 -1
  502. package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
  503. package/dist/unstable/ai/OpenAiStructuredOutput.js +3 -14
  504. package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
  505. package/dist/unstable/ai/Prompt.d.ts +2 -2
  506. package/dist/unstable/ai/Prompt.d.ts.map +1 -1
  507. package/dist/unstable/ai/Prompt.js +15 -4
  508. package/dist/unstable/ai/Prompt.js.map +1 -1
  509. package/dist/unstable/ai/Response.d.ts +37 -94
  510. package/dist/unstable/ai/Response.d.ts.map +1 -1
  511. package/dist/unstable/ai/Response.js +46 -96
  512. package/dist/unstable/ai/Response.js.map +1 -1
  513. package/dist/unstable/ai/Tokenizer.js +4 -5
  514. package/dist/unstable/ai/Tokenizer.js.map +1 -1
  515. package/dist/unstable/ai/Tool.d.ts +38 -20
  516. package/dist/unstable/ai/Tool.d.ts.map +1 -1
  517. package/dist/unstable/ai/Tool.js +27 -1
  518. package/dist/unstable/ai/Tool.js.map +1 -1
  519. package/dist/unstable/ai/Toolkit.d.ts +1 -1
  520. package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
  521. package/dist/unstable/ai/Toolkit.js +30 -18
  522. package/dist/unstable/ai/Toolkit.js.map +1 -1
  523. package/dist/unstable/ai/internal/codec-transformer.js +2 -2
  524. package/dist/unstable/ai/internal/codec-transformer.js.map +1 -1
  525. package/dist/unstable/ai/internal/structured-output.js +28 -5
  526. package/dist/unstable/ai/internal/structured-output.js.map +1 -1
  527. package/dist/unstable/arbitrary/Arbitrary.d.ts +626 -0
  528. package/dist/unstable/arbitrary/Arbitrary.d.ts.map +1 -0
  529. package/dist/unstable/arbitrary/Arbitrary.js +238 -0
  530. package/dist/unstable/arbitrary/Arbitrary.js.map +1 -0
  531. package/dist/unstable/arbitrary/index.d.ts +8 -0
  532. package/dist/unstable/arbitrary/index.d.ts.map +1 -0
  533. package/dist/unstable/arbitrary/index.js +9 -0
  534. package/dist/unstable/arbitrary/index.js.map +1 -0
  535. package/dist/unstable/cli/Argument.d.ts +104 -108
  536. package/dist/unstable/cli/Argument.d.ts.map +1 -1
  537. package/dist/unstable/cli/Argument.js +56 -57
  538. package/dist/unstable/cli/Argument.js.map +1 -1
  539. package/dist/unstable/cli/CliError.d.ts +2 -0
  540. package/dist/unstable/cli/CliError.d.ts.map +1 -1
  541. package/dist/unstable/cli/CliError.js +2 -0
  542. package/dist/unstable/cli/CliError.js.map +1 -1
  543. package/dist/unstable/cli/CliOutput.js +27 -4
  544. package/dist/unstable/cli/CliOutput.js.map +1 -1
  545. package/dist/unstable/cli/Command.d.ts +73 -73
  546. package/dist/unstable/cli/Command.d.ts.map +1 -1
  547. package/dist/unstable/cli/Command.js +22 -22
  548. package/dist/unstable/cli/Command.js.map +1 -1
  549. package/dist/unstable/cli/Completions.d.ts +4 -4
  550. package/dist/unstable/cli/Completions.d.ts.map +1 -1
  551. package/dist/unstable/cli/Flag.d.ts +150 -161
  552. package/dist/unstable/cli/Flag.d.ts.map +1 -1
  553. package/dist/unstable/cli/Flag.js +79 -90
  554. package/dist/unstable/cli/Flag.js.map +1 -1
  555. package/dist/unstable/cli/GlobalFlag.d.ts +3 -3
  556. package/dist/unstable/cli/GlobalFlag.js +13 -13
  557. package/dist/unstable/cli/GlobalFlag.js.map +1 -1
  558. package/dist/unstable/cli/Param.d.ts +118 -126
  559. package/dist/unstable/cli/Param.d.ts.map +1 -1
  560. package/dist/unstable/cli/Param.js +104 -113
  561. package/dist/unstable/cli/Param.js.map +1 -1
  562. package/dist/unstable/cli/Primitive.d.ts +69 -58
  563. package/dist/unstable/cli/Primitive.d.ts.map +1 -1
  564. package/dist/unstable/cli/Primitive.js +65 -66
  565. package/dist/unstable/cli/Primitive.js.map +1 -1
  566. package/dist/unstable/cli/Prompt.d.ts +113 -59
  567. package/dist/unstable/cli/Prompt.d.ts.map +1 -1
  568. package/dist/unstable/cli/Prompt.js +391 -327
  569. package/dist/unstable/cli/Prompt.js.map +1 -1
  570. package/dist/unstable/cli/internal/completions/bash.js +109 -38
  571. package/dist/unstable/cli/internal/completions/bash.js.map +1 -1
  572. package/dist/unstable/cli/internal/completions/descriptor.js +23 -11
  573. package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
  574. package/dist/unstable/cli/internal/completions/fish.js +15 -7
  575. package/dist/unstable/cli/internal/completions/fish.js.map +1 -1
  576. package/dist/unstable/cli/internal/completions/zsh.js +6 -4
  577. package/dist/unstable/cli/internal/completions/zsh.js.map +1 -1
  578. package/dist/unstable/cli/internal/config.js +4 -4
  579. package/dist/unstable/cli/internal/parser.js +1 -1
  580. package/dist/unstable/cli/internal/parser.js.map +1 -1
  581. package/dist/unstable/cli/internal/wizard.d.ts +5 -1
  582. package/dist/unstable/cli/internal/wizard.d.ts.map +1 -1
  583. package/dist/unstable/cli/internal/wizard.js +34 -26
  584. package/dist/unstable/cli/internal/wizard.js.map +1 -1
  585. package/dist/unstable/cluster/ClusterSchema.d.ts +13 -0
  586. package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
  587. package/dist/unstable/cluster/ClusterSchema.js +16 -1
  588. package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
  589. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  590. package/dist/unstable/cluster/ClusterWorkflowEngine.js +57 -14
  591. package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
  592. package/dist/unstable/cluster/Entity.d.ts.map +1 -1
  593. package/dist/unstable/cluster/Entity.js +2 -0
  594. package/dist/unstable/cluster/Entity.js.map +1 -1
  595. package/dist/unstable/cluster/EntityProxyServer.d.ts +2 -2
  596. package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
  597. package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
  598. package/dist/unstable/cluster/Envelope.d.ts +22 -5
  599. package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
  600. package/dist/unstable/cluster/Envelope.js +23 -3
  601. package/dist/unstable/cluster/Envelope.js.map +1 -1
  602. package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
  603. package/dist/unstable/cluster/HttpRunner.js +32 -13
  604. package/dist/unstable/cluster/HttpRunner.js.map +1 -1
  605. package/dist/unstable/cluster/Message.d.ts +17 -5
  606. package/dist/unstable/cluster/Message.d.ts.map +1 -1
  607. package/dist/unstable/cluster/Message.js +21 -8
  608. package/dist/unstable/cluster/Message.js.map +1 -1
  609. package/dist/unstable/cluster/MessageStorage.d.ts +34 -4
  610. package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
  611. package/dist/unstable/cluster/MessageStorage.js +33 -12
  612. package/dist/unstable/cluster/MessageStorage.js.map +1 -1
  613. package/dist/unstable/cluster/Reply.d.ts +5 -4
  614. package/dist/unstable/cluster/Reply.d.ts.map +1 -1
  615. package/dist/unstable/cluster/Reply.js +21 -12
  616. package/dist/unstable/cluster/Reply.js.map +1 -1
  617. package/dist/unstable/cluster/RunnerServer.d.ts +1 -1
  618. package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
  619. package/dist/unstable/cluster/RunnerServer.js +12 -6
  620. package/dist/unstable/cluster/RunnerServer.js.map +1 -1
  621. package/dist/unstable/cluster/Runners.d.ts +11 -5
  622. package/dist/unstable/cluster/Runners.d.ts.map +1 -1
  623. package/dist/unstable/cluster/Runners.js +56 -35
  624. package/dist/unstable/cluster/Runners.js.map +1 -1
  625. package/dist/unstable/cluster/Sharding.d.ts +1 -1
  626. package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
  627. package/dist/unstable/cluster/Sharding.js +32 -17
  628. package/dist/unstable/cluster/Sharding.js.map +1 -1
  629. package/dist/unstable/cluster/ShardingConfig.js +23 -23
  630. package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
  631. package/dist/unstable/cluster/SocketRunner.d.ts +2 -2
  632. package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
  633. package/dist/unstable/cluster/SocketRunner.js +4 -3
  634. package/dist/unstable/cluster/SocketRunner.js.map +1 -1
  635. package/dist/unstable/cluster/SqlMessageStorage.js +11 -8
  636. package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
  637. package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
  638. package/dist/unstable/cluster/SqlRunnerStorage.js +11 -4
  639. package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
  640. package/dist/unstable/cluster/internal/clusterAbandon.d.ts +5 -0
  641. package/dist/unstable/cluster/internal/clusterAbandon.d.ts.map +1 -0
  642. package/dist/unstable/cluster/internal/clusterAbandon.js +9 -0
  643. package/dist/unstable/cluster/internal/clusterAbandon.js.map +1 -0
  644. package/dist/unstable/cluster/internal/entityManager.js +10 -6
  645. package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
  646. package/dist/unstable/cluster/internal/interruptors.js +30 -1
  647. package/dist/unstable/cluster/internal/interruptors.js.map +1 -1
  648. package/dist/unstable/cluster/internal/resourceRef.js +12 -7
  649. package/dist/unstable/cluster/internal/resourceRef.js.map +1 -1
  650. package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
  651. package/dist/unstable/devtools/DevToolsClient.js +12 -7
  652. package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
  653. package/dist/unstable/encoding/Ini.d.ts +2 -0
  654. package/dist/unstable/encoding/Ini.d.ts.map +1 -1
  655. package/dist/unstable/encoding/Ini.js +2 -0
  656. package/dist/unstable/encoding/Ini.js.map +1 -1
  657. package/dist/unstable/encoding/SchemaBinary.d.ts +273 -0
  658. package/dist/unstable/encoding/SchemaBinary.d.ts.map +1 -0
  659. package/dist/unstable/encoding/SchemaBinary.js +4573 -0
  660. package/dist/unstable/encoding/SchemaBinary.js.map +1 -0
  661. package/dist/unstable/encoding/Sse.js +1 -1
  662. package/dist/unstable/encoding/Sse.js.map +1 -1
  663. package/dist/unstable/encoding/Toml.d.ts +2 -0
  664. package/dist/unstable/encoding/Toml.d.ts.map +1 -1
  665. package/dist/unstable/encoding/Toml.js +6 -4
  666. package/dist/unstable/encoding/Toml.js.map +1 -1
  667. package/dist/unstable/encoding/Yaml.d.ts +2 -0
  668. package/dist/unstable/encoding/Yaml.d.ts.map +1 -1
  669. package/dist/unstable/encoding/Yaml.js +16 -5
  670. package/dist/unstable/encoding/Yaml.js.map +1 -1
  671. package/dist/unstable/encoding/index.d.ts +2 -2
  672. package/dist/unstable/encoding/index.d.ts.map +1 -1
  673. package/dist/unstable/encoding/index.js +2 -2
  674. package/dist/unstable/encoding/index.js.map +1 -1
  675. package/dist/unstable/eventlog/Event.d.ts +5 -5
  676. package/dist/unstable/eventlog/Event.d.ts.map +1 -1
  677. package/dist/unstable/eventlog/Event.js +3 -3
  678. package/dist/unstable/eventlog/Event.js.map +1 -1
  679. package/dist/unstable/eventlog/EventJournal.d.ts +15 -9
  680. package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
  681. package/dist/unstable/eventlog/EventJournal.js +26 -12
  682. package/dist/unstable/eventlog/EventJournal.js.map +1 -1
  683. package/dist/unstable/eventlog/EventLog.d.ts +1 -1
  684. package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
  685. package/dist/unstable/eventlog/EventLog.js +13 -9
  686. package/dist/unstable/eventlog/EventLog.js.map +1 -1
  687. package/dist/unstable/eventlog/EventLogMessage.d.ts +11 -5
  688. package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
  689. package/dist/unstable/eventlog/EventLogMessage.js +25 -15
  690. package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
  691. package/dist/unstable/eventlog/EventLogRemote.d.ts +7 -1
  692. package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
  693. package/dist/unstable/eventlog/EventLogRemote.js +13 -3
  694. package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
  695. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +2 -2
  696. package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
  697. package/dist/unstable/eventlog/SqlEventJournal.d.ts +0 -10
  698. package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
  699. package/dist/unstable/eventlog/SqlEventJournal.js +29 -14
  700. package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
  701. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
  702. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +5 -1
  703. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
  704. package/dist/unstable/http/Cookies.d.ts +1 -45
  705. package/dist/unstable/http/Cookies.d.ts.map +1 -1
  706. package/dist/unstable/http/Cookies.js +2 -64
  707. package/dist/unstable/http/Cookies.js.map +1 -1
  708. package/dist/unstable/http/FetchHttpClient.js +1 -1
  709. package/dist/unstable/http/FetchHttpClient.js.map +1 -1
  710. package/dist/unstable/http/FindMyWay/internal/router.js +124 -33
  711. package/dist/unstable/http/FindMyWay/internal/router.js.map +1 -1
  712. package/dist/unstable/http/FindMyWay.d.ts +15 -5
  713. package/dist/unstable/http/FindMyWay.d.ts.map +1 -1
  714. package/dist/unstable/http/FindMyWay.js +3 -1
  715. package/dist/unstable/http/FindMyWay.js.map +1 -1
  716. package/dist/unstable/http/Headers.d.ts +0 -22
  717. package/dist/unstable/http/Headers.d.ts.map +1 -1
  718. package/dist/unstable/http/Headers.js +3 -34
  719. package/dist/unstable/http/Headers.js.map +1 -1
  720. package/dist/unstable/http/HttpBody.d.ts +41 -10
  721. package/dist/unstable/http/HttpBody.d.ts.map +1 -1
  722. package/dist/unstable/http/HttpBody.js +64 -10
  723. package/dist/unstable/http/HttpBody.js.map +1 -1
  724. package/dist/unstable/http/HttpClient.d.ts +1 -1
  725. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  726. package/dist/unstable/http/HttpClient.js +28 -18
  727. package/dist/unstable/http/HttpClient.js.map +1 -1
  728. package/dist/unstable/http/HttpClientRequest.d.ts +28 -6
  729. package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
  730. package/dist/unstable/http/HttpClientRequest.js +8 -19
  731. package/dist/unstable/http/HttpClientRequest.js.map +1 -1
  732. package/dist/unstable/http/HttpClientResponse.d.ts +6 -1
  733. package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
  734. package/dist/unstable/http/HttpClientResponse.js +10 -6
  735. package/dist/unstable/http/HttpClientResponse.js.map +1 -1
  736. package/dist/unstable/http/HttpEffect.d.ts +16 -0
  737. package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
  738. package/dist/unstable/http/HttpEffect.js +121 -65
  739. package/dist/unstable/http/HttpEffect.js.map +1 -1
  740. package/dist/unstable/http/HttpIncomingMessage.d.ts +3 -3
  741. package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
  742. package/dist/unstable/http/HttpIncomingMessage.js +1 -13
  743. package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
  744. package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
  745. package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
  746. package/dist/unstable/http/HttpMiddleware.js +29 -21
  747. package/dist/unstable/http/HttpMiddleware.js.map +1 -1
  748. package/dist/unstable/http/HttpPlatform.d.ts +12 -11
  749. package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
  750. package/dist/unstable/http/HttpPlatform.js +36 -10
  751. package/dist/unstable/http/HttpPlatform.js.map +1 -1
  752. package/dist/unstable/http/HttpRouter.d.ts +5 -1
  753. package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
  754. package/dist/unstable/http/HttpRouter.js +22 -8
  755. package/dist/unstable/http/HttpRouter.js.map +1 -1
  756. package/dist/unstable/http/HttpServer.d.ts +11 -42
  757. package/dist/unstable/http/HttpServer.d.ts.map +1 -1
  758. package/dist/unstable/http/HttpServer.js +16 -20
  759. package/dist/unstable/http/HttpServer.js.map +1 -1
  760. package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
  761. package/dist/unstable/http/HttpServerRequest.js +11 -11
  762. package/dist/unstable/http/HttpServerRequest.js.map +1 -1
  763. package/dist/unstable/http/HttpServerRespondable.js +1 -1
  764. package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
  765. package/dist/unstable/http/HttpServerResponse.d.ts +9 -13
  766. package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
  767. package/dist/unstable/http/HttpServerResponse.js +34 -44
  768. package/dist/unstable/http/HttpServerResponse.js.map +1 -1
  769. package/dist/unstable/http/HttpStaticServer.d.ts +2 -2
  770. package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
  771. package/dist/unstable/http/HttpStaticServer.js +19 -19
  772. package/dist/unstable/http/HttpStaticServer.js.map +1 -1
  773. package/dist/unstable/http/Mime.d.ts +28 -0
  774. package/dist/unstable/http/Mime.d.ts.map +1 -0
  775. package/dist/unstable/http/Mime.js +72 -0
  776. package/dist/unstable/http/Mime.js.map +1 -0
  777. package/dist/unstable/http/Multipart.d.ts +22 -9
  778. package/dist/unstable/http/Multipart.d.ts.map +1 -1
  779. package/dist/unstable/http/Multipart.js +26 -10
  780. package/dist/unstable/http/Multipart.js.map +1 -1
  781. package/dist/unstable/http/MultipartParser/internal/multipart.d.ts +1 -1
  782. package/dist/unstable/http/MultipartParser/internal/multipart.d.ts.map +1 -1
  783. package/dist/unstable/http/MultipartParser/internal/multipart.js +8 -3
  784. package/dist/unstable/http/MultipartParser/internal/multipart.js.map +1 -1
  785. package/dist/unstable/http/MultipartParser.d.ts +4 -3
  786. package/dist/unstable/http/MultipartParser.d.ts.map +1 -1
  787. package/dist/unstable/http/MultipartParser.js.map +1 -1
  788. package/dist/unstable/http/UrlParams.d.ts +0 -97
  789. package/dist/unstable/http/UrlParams.d.ts.map +1 -1
  790. package/dist/unstable/http/UrlParams.js +3 -104
  791. package/dist/unstable/http/UrlParams.js.map +1 -1
  792. package/dist/unstable/http/index.d.ts +4 -0
  793. package/dist/unstable/http/index.d.ts.map +1 -1
  794. package/dist/unstable/http/index.js +4 -0
  795. package/dist/unstable/http/index.js.map +1 -1
  796. package/dist/unstable/http/internal/compression.js +8 -11
  797. package/dist/unstable/http/internal/compression.js.map +1 -1
  798. package/dist/unstable/http/internal/headers.d.ts +2 -0
  799. package/dist/unstable/http/internal/headers.d.ts.map +1 -0
  800. package/dist/unstable/http/internal/headers.js +5 -0
  801. package/dist/unstable/http/internal/headers.js.map +1 -0
  802. package/dist/unstable/http/internal/httpBody.js +8 -0
  803. package/dist/unstable/http/internal/httpBody.js.map +1 -1
  804. package/dist/unstable/http/internal/mimeTypes.d.ts +361 -0
  805. package/dist/unstable/http/internal/mimeTypes.d.ts.map +1 -0
  806. package/dist/unstable/http/internal/mimeTypes.js +363 -0
  807. package/dist/unstable/http/internal/mimeTypes.js.map +1 -0
  808. package/dist/unstable/httpapi/HttpApiBuilder.d.ts +13 -0
  809. package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
  810. package/dist/unstable/httpapi/HttpApiBuilder.js +28 -11
  811. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  812. package/dist/unstable/httpapi/HttpApiClient.d.ts +4 -3
  813. package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
  814. package/dist/unstable/httpapi/HttpApiClient.js +25 -13
  815. package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
  816. package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +8 -3
  817. package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
  818. package/dist/unstable/httpapi/HttpApiEndpoint.js +9 -6
  819. package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
  820. package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
  821. package/dist/unstable/httpapi/HttpApiError.js +3 -1
  822. package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
  823. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
  824. package/dist/unstable/httpapi/HttpApiMiddleware.js +7 -5
  825. package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
  826. package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
  827. package/dist/unstable/httpapi/HttpApiScalar.js +15 -12
  828. package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
  829. package/dist/unstable/httpapi/HttpApiSchema.d.ts +12 -0
  830. package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
  831. package/dist/unstable/httpapi/HttpApiSchema.js +8 -10
  832. package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
  833. package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
  834. package/dist/unstable/httpapi/HttpApiSwagger.js +6 -3
  835. package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
  836. package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
  837. package/dist/unstable/httpapi/HttpApiTest.js +8 -2
  838. package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
  839. package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
  840. package/dist/unstable/httpapi/OpenApi.js +31 -20
  841. package/dist/unstable/httpapi/OpenApi.js.map +1 -1
  842. package/dist/unstable/net/IpInterface.d.ts +140 -0
  843. package/dist/unstable/net/IpInterface.d.ts.map +1 -0
  844. package/dist/unstable/net/IpInterface.js +149 -0
  845. package/dist/unstable/net/IpInterface.js.map +1 -0
  846. package/dist/unstable/net/IpNetwork.d.ts +227 -0
  847. package/dist/unstable/net/IpNetwork.d.ts.map +1 -0
  848. package/dist/unstable/net/IpNetwork.js +239 -0
  849. package/dist/unstable/net/IpNetwork.js.map +1 -0
  850. package/dist/unstable/net/NetAddress.d.ts +705 -0
  851. package/dist/unstable/net/NetAddress.d.ts.map +1 -0
  852. package/dist/unstable/net/NetAddress.js +956 -0
  853. package/dist/unstable/net/NetAddress.js.map +1 -0
  854. package/dist/unstable/net/index.d.ts +16 -0
  855. package/dist/unstable/net/index.d.ts.map +1 -0
  856. package/dist/unstable/net/index.js +17 -0
  857. package/dist/unstable/net/index.js.map +1 -0
  858. package/dist/unstable/observability/OtlpExporter.d.ts +1 -0
  859. package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
  860. package/dist/unstable/observability/OtlpExporter.js +4 -6
  861. package/dist/unstable/observability/OtlpExporter.js.map +1 -1
  862. package/dist/unstable/observability/OtlpLogger.js +9 -9
  863. package/dist/unstable/observability/OtlpLogger.js.map +1 -1
  864. package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
  865. package/dist/unstable/observability/OtlpMetrics.js +9 -8
  866. package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
  867. package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
  868. package/dist/unstable/observability/OtlpResource.js +2 -2
  869. package/dist/unstable/observability/OtlpResource.js.map +1 -1
  870. package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
  871. package/dist/unstable/observability/OtlpTracer.js +82 -55
  872. package/dist/unstable/observability/OtlpTracer.js.map +1 -1
  873. package/dist/unstable/observability/internal/otlpEnv.d.ts +1 -1
  874. package/dist/unstable/observability/internal/otlpEnv.d.ts.map +1 -1
  875. package/dist/unstable/observability/internal/otlpEnv.js +5 -9
  876. package/dist/unstable/observability/internal/otlpEnv.js.map +1 -1
  877. package/dist/unstable/persistence/PersistedCache.js +1 -1
  878. package/dist/unstable/persistence/PersistedCache.js.map +1 -1
  879. package/dist/unstable/persistence/PersistedQueue.d.ts +114 -14
  880. package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
  881. package/dist/unstable/persistence/PersistedQueue.js +799 -234
  882. package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
  883. package/dist/unstable/persistence/RateLimiter.d.ts +28 -15
  884. package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
  885. package/dist/unstable/persistence/RateLimiter.js +33 -41
  886. package/dist/unstable/persistence/RateLimiter.js.map +1 -1
  887. package/dist/unstable/process/ChildProcess.d.ts +8 -2
  888. package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
  889. package/dist/unstable/process/ChildProcess.js +7 -2
  890. package/dist/unstable/process/ChildProcess.js.map +1 -1
  891. package/dist/unstable/process/ChildProcessSpawner.d.ts +1 -1
  892. package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
  893. package/dist/unstable/process/ChildProcessSpawner.js +1 -1
  894. package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
  895. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  896. package/dist/unstable/reactivity/Atom.js +6 -3
  897. package/dist/unstable/reactivity/Atom.js.map +1 -1
  898. package/dist/unstable/reactivity/AtomHttpApi.d.ts +3 -6
  899. package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
  900. package/dist/unstable/reactivity/AtomHttpApi.js +6 -3
  901. package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
  902. package/dist/unstable/reactivity/AtomRegistry.js +2 -3
  903. package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
  904. package/dist/unstable/reactivity/AtomRpc.d.ts +2 -2
  905. package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
  906. package/dist/unstable/reactivity/AtomRpc.js +1 -1
  907. package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
  908. package/dist/unstable/reactivity/Hydration.d.ts +6 -4
  909. package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
  910. package/dist/unstable/reactivity/Hydration.js +20 -6
  911. package/dist/unstable/reactivity/Hydration.js.map +1 -1
  912. package/dist/unstable/reactivity/Reactivity.d.ts +26 -26
  913. package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
  914. package/dist/unstable/reactivity/Reactivity.js +10 -12
  915. package/dist/unstable/reactivity/Reactivity.js.map +1 -1
  916. package/dist/unstable/rpc/RpcClient.d.ts +5 -0
  917. package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
  918. package/dist/unstable/rpc/RpcClient.js +94 -81
  919. package/dist/unstable/rpc/RpcClient.js.map +1 -1
  920. package/dist/unstable/rpc/RpcClientError.d.ts +1 -1
  921. package/dist/unstable/rpc/RpcMessage.d.ts +66 -7
  922. package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
  923. package/dist/unstable/rpc/RpcMessage.js +68 -9
  924. package/dist/unstable/rpc/RpcMessage.js.map +1 -1
  925. package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
  926. package/dist/unstable/rpc/RpcMiddleware.js +7 -5
  927. package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
  928. package/dist/unstable/rpc/RpcSerialization.d.ts +28 -33
  929. package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
  930. package/dist/unstable/rpc/RpcSerialization.js +56 -92
  931. package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
  932. package/dist/unstable/rpc/RpcServer.d.ts +25 -0
  933. package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
  934. package/dist/unstable/rpc/RpcServer.js +125 -68
  935. package/dist/unstable/rpc/RpcServer.js.map +1 -1
  936. package/dist/unstable/schema/Model.d.ts.map +1 -1
  937. package/dist/unstable/schema/Model.js +7 -6
  938. package/dist/unstable/schema/Model.js.map +1 -1
  939. package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
  940. package/dist/unstable/schema/VariantSchema.js +3 -0
  941. package/dist/unstable/schema/VariantSchema.js.map +1 -1
  942. package/dist/unstable/socket/Socket.d.ts +287 -102
  943. package/dist/unstable/socket/Socket.d.ts.map +1 -1
  944. package/dist/unstable/socket/Socket.js +408 -215
  945. package/dist/unstable/socket/Socket.js.map +1 -1
  946. package/dist/unstable/socket/SocketServer.d.ts +5 -32
  947. package/dist/unstable/socket/SocketServer.d.ts.map +1 -1
  948. package/dist/unstable/socket/SocketServer.js +3 -3
  949. package/dist/unstable/socket/SocketServer.js.map +1 -1
  950. package/dist/unstable/sql/SqlClient.d.ts +20 -0
  951. package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
  952. package/dist/unstable/sql/SqlClient.js +14 -7
  953. package/dist/unstable/sql/SqlClient.js.map +1 -1
  954. package/dist/unstable/sql/SqlConnection.d.ts +15 -0
  955. package/dist/unstable/sql/SqlConnection.d.ts.map +1 -1
  956. package/dist/unstable/sql/SqlConnection.js.map +1 -1
  957. package/dist/unstable/sql/SqlModel.d.ts +1 -1
  958. package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
  959. package/dist/unstable/sql/Statement.d.ts +13 -5
  960. package/dist/unstable/sql/Statement.d.ts.map +1 -1
  961. package/dist/unstable/sql/Statement.js +29 -15
  962. package/dist/unstable/sql/Statement.js.map +1 -1
  963. package/dist/unstable/workers/Transferable.js +1 -1
  964. package/dist/unstable/workers/Worker.d.ts.map +1 -1
  965. package/dist/unstable/workers/Worker.js +3 -1
  966. package/dist/unstable/workers/Worker.js.map +1 -1
  967. package/dist/unstable/workflow/Activity.d.ts +7 -0
  968. package/dist/unstable/workflow/Activity.d.ts.map +1 -1
  969. package/dist/unstable/workflow/Activity.js +14 -4
  970. package/dist/unstable/workflow/Activity.js.map +1 -1
  971. package/dist/unstable/workflow/DurableClock.js +1 -1
  972. package/dist/unstable/workflow/DurableClock.js.map +1 -1
  973. package/dist/unstable/workflow/DurableDeferred.d.ts +2 -2
  974. package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
  975. package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
  976. package/dist/unstable/workflow/DurableQueue.d.ts +8 -0
  977. package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
  978. package/dist/unstable/workflow/DurableQueue.js +8 -0
  979. package/dist/unstable/workflow/DurableQueue.js.map +1 -1
  980. package/dist/unstable/workflow/Workflow.d.ts +5 -0
  981. package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
  982. package/dist/unstable/workflow/Workflow.js +70 -12
  983. package/dist/unstable/workflow/Workflow.js.map +1 -1
  984. package/dist/unstable/workflow/WorkflowEngine.d.ts +6 -0
  985. package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
  986. package/dist/unstable/workflow/WorkflowEngine.js +11 -0
  987. package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
  988. package/dist/unstable/workflow/WorkflowProxy.d.ts +2 -2
  989. package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
  990. package/dist/unstable/workflow/WorkflowProxy.js +4 -2
  991. package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
  992. package/package.json +8 -10
  993. package/src/Array.ts +142 -70
  994. package/src/BigDecimal.ts +50 -28
  995. package/src/ByteSize.ts +838 -0
  996. package/src/Cache.ts +17 -3
  997. package/src/Cause.ts +1 -1
  998. package/src/Channel.ts +185 -50
  999. package/src/Chunk.ts +65 -36
  1000. package/src/Config.ts +237 -248
  1001. package/src/ConfigProvider.ts +7 -8
  1002. package/src/Context.ts +31 -0
  1003. package/src/Cron.ts +2 -2
  1004. package/src/Crypto.ts +3 -2
  1005. package/src/Deferred.ts +7 -6
  1006. package/src/Duration.ts +1 -1
  1007. package/src/Effect.ts +226 -122
  1008. package/src/Effectable.ts +78 -9
  1009. package/src/Encoding.ts +101 -11
  1010. package/src/Equal.ts +1 -1
  1011. package/src/ExecutionPlan.ts +3 -0
  1012. package/src/Fiber.ts +33 -8
  1013. package/src/FiberHandle.ts +3 -3
  1014. package/src/FiberMap.ts +19 -10
  1015. package/src/FileSystem.ts +55 -230
  1016. package/src/Formatter.ts +21 -3
  1017. package/src/Graph.ts +55 -25
  1018. package/src/Hash.ts +5 -16
  1019. package/src/HashRing.ts +9 -2
  1020. package/src/HashSet.ts +56 -0
  1021. package/src/Iterable.ts +90 -44
  1022. package/src/JsonPatch.ts +4 -4
  1023. package/src/JsonPointer.ts +97 -4
  1024. package/src/JsonSchema.ts +998 -476
  1025. package/src/Layer.ts +59 -18
  1026. package/src/LayerMap.ts +38 -6
  1027. package/src/LayerRef.ts +7 -5
  1028. package/src/Logger.ts +125 -18
  1029. package/src/ManagedRuntime.ts +1 -1
  1030. package/src/Match.ts +33 -14
  1031. package/src/Metric.ts +24 -21
  1032. package/src/MutableHashMap.ts +1 -1
  1033. package/src/MutableHashSet.ts +1 -1
  1034. package/src/MutableList.ts +18 -2
  1035. package/src/Number.ts +7 -1
  1036. package/src/Optic.ts +8 -4
  1037. package/src/Option.ts +1 -1
  1038. package/src/Order.ts +3 -1
  1039. package/src/PartitionedSemaphore.ts +1 -2
  1040. package/src/Path.ts +1 -1
  1041. package/src/PlatformError.ts +1 -1
  1042. package/src/Pool.ts +535 -134
  1043. package/src/PrimaryKey.ts +1 -1
  1044. package/src/PubSub.ts +32 -20
  1045. package/src/Queue.ts +119 -28
  1046. package/src/Random.ts +20 -6
  1047. package/src/RcMap.ts +176 -13
  1048. package/src/Record.ts +15 -0
  1049. package/src/Redacted.ts +1 -1
  1050. package/src/RequestResolver.ts +49 -26
  1051. package/src/Result.ts +1 -1
  1052. package/src/Scheduler.ts +21 -11
  1053. package/src/Schema.ts +5032 -6518
  1054. package/src/SchemaAST.ts +1156 -316
  1055. package/src/SchemaGetter.ts +75 -21
  1056. package/src/SchemaIssue.ts +260 -16
  1057. package/src/SchemaParser.ts +2 -12
  1058. package/src/SchemaRepresentation.ts +1774 -189
  1059. package/src/SchemaTransformation.ts +145 -22
  1060. package/src/Scope.ts +9 -2
  1061. package/src/ScopedCache.ts +10 -3
  1062. package/src/Sink.ts +31 -15
  1063. package/src/StandardSchema.ts +207 -0
  1064. package/src/Stream.ts +294 -76
  1065. package/src/String.ts +20 -9
  1066. package/src/Struct.ts +8 -4
  1067. package/src/SynchronizedRef.ts +3 -5
  1068. package/src/Terminal.ts +3 -3
  1069. package/src/Tracer.ts +43 -14
  1070. package/src/Tuple.ts +3 -1
  1071. package/src/TxChunk.ts +1 -1
  1072. package/src/TxDeferred.ts +1 -1
  1073. package/src/TxHashMap.ts +1 -1
  1074. package/src/TxHashSet.ts +92 -11
  1075. package/src/TxPriorityQueue.ts +1 -1
  1076. package/src/TxPubSub.ts +1 -1
  1077. package/src/TxQueue.ts +22 -17
  1078. package/src/TxReentrantLock.ts +29 -1
  1079. package/src/TxRef.ts +1 -1
  1080. package/src/TxSemaphore.ts +1 -1
  1081. package/src/TxSubscriptionRef.ts +1 -1
  1082. package/src/Types.ts +40 -17
  1083. package/src/Utils.ts +3 -1
  1084. package/src/index.ts +10 -0
  1085. package/src/internal/arbitrary/model.ts +701 -0
  1086. package/src/internal/arbitrary/regexp.ts +855 -0
  1087. package/src/internal/arbitrary/runner.ts +608 -0
  1088. package/src/internal/arbitrary/schema.ts +1800 -0
  1089. package/src/internal/core.ts +48 -22
  1090. package/src/internal/count.ts +14 -0
  1091. package/src/internal/dateTime.ts +8 -10
  1092. package/src/internal/effect.ts +510 -301
  1093. package/src/internal/graph.ts +6 -1
  1094. package/src/internal/hashMap.ts +5 -3
  1095. package/src/internal/hashSet.ts +1 -1
  1096. package/src/internal/matcher.ts +34 -19
  1097. package/src/internal/metric.ts +1 -1
  1098. package/src/internal/option.ts +8 -6
  1099. package/src/internal/random.ts +20 -7
  1100. package/src/internal/rcRef.ts +10 -7
  1101. package/src/internal/references.ts +1 -0
  1102. package/src/internal/request.ts +12 -7
  1103. package/src/internal/result.ts +15 -11
  1104. package/src/internal/schema/annotations.ts +3 -3
  1105. package/src/internal/schema/fromJsonSchemaDocument.ts +326 -160
  1106. package/src/internal/schema/fromRepresentation.ts +5 -3
  1107. package/src/internal/schema/{schema.ts → make.ts} +0 -40
  1108. package/src/internal/schema/parser.ts +8 -0
  1109. package/src/internal/schema/standardSchema.ts +125 -0
  1110. package/src/internal/schema/toCodeDocument.ts +58 -44
  1111. package/src/internal/schema/toCodec.ts +312 -0
  1112. package/src/internal/schema/toDifferJsonPatch.ts +24 -0
  1113. package/src/internal/schema/toEncoderXml.ts +110 -0
  1114. package/src/internal/schema/toEquivalence.ts +76 -0
  1115. package/src/internal/schema/toFormatter.ts +230 -0
  1116. package/src/internal/schema/toIso.ts +20 -0
  1117. package/src/internal/schema/toJsonSchemaDocument.ts +125 -67
  1118. package/src/internal/schema/toRepresentation.ts +1 -1
  1119. package/src/internal/schemaError.ts +8 -0
  1120. package/src/internal/stream.ts +14 -6
  1121. package/src/internal/tracer.ts +4 -0
  1122. package/src/internal/trie.ts +5 -2
  1123. package/src/internal/uuid.ts +4 -0
  1124. package/src/testing/TestSchema.ts +36 -30
  1125. package/src/testing/index.ts +0 -5
  1126. package/src/unstable/ai/AiError.ts +126 -6
  1127. package/src/unstable/ai/AnthropicStructuredOutput.ts +8 -5
  1128. package/src/unstable/ai/Chat.ts +35 -36
  1129. package/src/unstable/ai/EmbeddingModel.ts +27 -15
  1130. package/src/unstable/ai/LanguageModel.ts +283 -100
  1131. package/src/unstable/ai/McpServer.ts +105 -92
  1132. package/src/unstable/ai/OpenAiStructuredOutput.ts +6 -3
  1133. package/src/unstable/ai/Prompt.ts +20 -5
  1134. package/src/unstable/ai/Response.ts +107 -189
  1135. package/src/unstable/ai/Tokenizer.ts +4 -5
  1136. package/src/unstable/ai/Tool.ts +58 -35
  1137. package/src/unstable/ai/Toolkit.ts +43 -37
  1138. package/src/unstable/ai/internal/codec-transformer.ts +3 -2
  1139. package/src/unstable/ai/internal/structured-output.ts +29 -6
  1140. package/src/unstable/arbitrary/Arbitrary.ts +715 -0
  1141. package/src/unstable/arbitrary/index.ts +10 -0
  1142. package/src/unstable/cli/Argument.ts +111 -115
  1143. package/src/unstable/cli/CliError.ts +2 -0
  1144. package/src/unstable/cli/CliOutput.ts +41 -4
  1145. package/src/unstable/cli/Command.ts +79 -78
  1146. package/src/unstable/cli/Completions.ts +4 -4
  1147. package/src/unstable/cli/Flag.ts +158 -169
  1148. package/src/unstable/cli/GlobalFlag.ts +13 -13
  1149. package/src/unstable/cli/Param.ts +150 -159
  1150. package/src/unstable/cli/Primitive.ts +75 -76
  1151. package/src/unstable/cli/Prompt.ts +543 -408
  1152. package/src/unstable/cli/internal/completions/bash.ts +113 -38
  1153. package/src/unstable/cli/internal/completions/descriptor.ts +23 -11
  1154. package/src/unstable/cli/internal/completions/fish.ts +17 -9
  1155. package/src/unstable/cli/internal/completions/zsh.ts +7 -4
  1156. package/src/unstable/cli/internal/config.ts +4 -4
  1157. package/src/unstable/cli/internal/parser.ts +1 -1
  1158. package/src/unstable/cli/internal/wizard.ts +60 -32
  1159. package/src/unstable/cluster/ClusterSchema.ts +19 -1
  1160. package/src/unstable/cluster/ClusterWorkflowEngine.ts +66 -16
  1161. package/src/unstable/cluster/Entity.ts +3 -0
  1162. package/src/unstable/cluster/EntityProxyServer.ts +6 -2
  1163. package/src/unstable/cluster/Envelope.ts +32 -3
  1164. package/src/unstable/cluster/HttpRunner.ts +52 -25
  1165. package/src/unstable/cluster/Message.ts +35 -13
  1166. package/src/unstable/cluster/MessageStorage.ts +69 -24
  1167. package/src/unstable/cluster/Reply.ts +36 -19
  1168. package/src/unstable/cluster/RunnerServer.ts +21 -11
  1169. package/src/unstable/cluster/Runners.ts +93 -80
  1170. package/src/unstable/cluster/Sharding.ts +44 -19
  1171. package/src/unstable/cluster/ShardingConfig.ts +23 -23
  1172. package/src/unstable/cluster/SocketRunner.ts +5 -4
  1173. package/src/unstable/cluster/SqlMessageStorage.ts +12 -8
  1174. package/src/unstable/cluster/SqlRunnerStorage.ts +18 -10
  1175. package/src/unstable/cluster/internal/clusterAbandon.ts +14 -0
  1176. package/src/unstable/cluster/internal/entityManager.ts +15 -6
  1177. package/src/unstable/cluster/internal/interruptors.ts +58 -1
  1178. package/src/unstable/cluster/internal/resourceRef.ts +15 -7
  1179. package/src/unstable/devtools/DevToolsClient.ts +13 -3
  1180. package/src/unstable/encoding/Ini.ts +2 -0
  1181. package/src/unstable/encoding/SchemaBinary.ts +5308 -0
  1182. package/src/unstable/encoding/Sse.ts +1 -1
  1183. package/src/unstable/encoding/Toml.ts +7 -5
  1184. package/src/unstable/encoding/Yaml.ts +18 -5
  1185. package/src/unstable/encoding/index.ts +2 -2
  1186. package/src/unstable/eventlog/Event.ts +7 -7
  1187. package/src/unstable/eventlog/EventJournal.ts +22 -15
  1188. package/src/unstable/eventlog/EventLog.ts +24 -14
  1189. package/src/unstable/eventlog/EventLogMessage.ts +25 -15
  1190. package/src/unstable/eventlog/EventLogRemote.ts +15 -4
  1191. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +2 -2
  1192. package/src/unstable/eventlog/SqlEventJournal.ts +35 -10
  1193. package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +11 -1
  1194. package/src/unstable/http/Cookies.ts +2 -102
  1195. package/src/unstable/http/FetchHttpClient.ts +1 -1
  1196. package/src/unstable/http/FindMyWay/internal/router.ts +139 -33
  1197. package/src/unstable/http/FindMyWay.ts +15 -5
  1198. package/src/unstable/http/Headers.ts +3 -48
  1199. package/src/unstable/http/HttpBody.ts +107 -36
  1200. package/src/unstable/http/HttpClient.ts +41 -30
  1201. package/src/unstable/http/HttpClientRequest.ts +32 -18
  1202. package/src/unstable/http/HttpClientResponse.ts +16 -3
  1203. package/src/unstable/http/HttpEffect.ts +145 -73
  1204. package/src/unstable/http/HttpIncomingMessage.ts +4 -4
  1205. package/src/unstable/http/HttpMiddleware.ts +43 -24
  1206. package/src/unstable/http/HttpPlatform.ts +62 -20
  1207. package/src/unstable/http/HttpRouter.ts +27 -16
  1208. package/src/unstable/http/HttpServer.ts +18 -57
  1209. package/src/unstable/http/HttpServerRequest.ts +17 -15
  1210. package/src/unstable/http/HttpServerRespondable.ts +1 -1
  1211. package/src/unstable/http/HttpServerResponse.ts +49 -40
  1212. package/src/unstable/http/HttpStaticServer.ts +30 -28
  1213. package/src/unstable/http/Mime.ts +76 -0
  1214. package/src/unstable/http/Multipart.ts +35 -18
  1215. package/src/unstable/http/MultipartParser/internal/multipart.ts +10 -3
  1216. package/src/unstable/http/MultipartParser.ts +4 -3
  1217. package/src/unstable/http/UrlParams.ts +3 -161
  1218. package/src/unstable/http/index.ts +5 -0
  1219. package/src/unstable/http/internal/compression.ts +11 -12
  1220. package/src/unstable/http/internal/headers.ts +7 -0
  1221. package/src/unstable/http/internal/httpBody.ts +9 -0
  1222. package/src/unstable/http/internal/mimeTypes.ts +395 -0
  1223. package/src/unstable/httpapi/HttpApiBuilder.ts +63 -11
  1224. package/src/unstable/httpapi/HttpApiClient.ts +44 -24
  1225. package/src/unstable/httpapi/HttpApiEndpoint.ts +24 -11
  1226. package/src/unstable/httpapi/HttpApiError.ts +3 -1
  1227. package/src/unstable/httpapi/HttpApiMiddleware.ts +7 -5
  1228. package/src/unstable/httpapi/HttpApiScalar.ts +30 -27
  1229. package/src/unstable/httpapi/HttpApiSchema.ts +14 -7
  1230. package/src/unstable/httpapi/HttpApiSwagger.ts +6 -3
  1231. package/src/unstable/httpapi/HttpApiTest.ts +6 -1
  1232. package/src/unstable/httpapi/OpenApi.ts +32 -22
  1233. package/src/unstable/net/IpInterface.ts +242 -0
  1234. package/src/unstable/net/IpNetwork.ts +357 -0
  1235. package/src/unstable/net/NetAddress.ts +1271 -0
  1236. package/src/unstable/net/index.ts +20 -0
  1237. package/src/unstable/observability/OtlpExporter.ts +5 -6
  1238. package/src/unstable/observability/OtlpLogger.ts +9 -9
  1239. package/src/unstable/observability/OtlpMetrics.ts +9 -8
  1240. package/src/unstable/observability/OtlpResource.ts +5 -4
  1241. package/src/unstable/observability/OtlpTracer.ts +103 -81
  1242. package/src/unstable/observability/internal/otlpEnv.ts +10 -13
  1243. package/src/unstable/persistence/PersistedCache.ts +1 -1
  1244. package/src/unstable/persistence/PersistedQueue.ts +1100 -291
  1245. package/src/unstable/persistence/RateLimiter.ts +64 -58
  1246. package/src/unstable/process/ChildProcess.ts +15 -4
  1247. package/src/unstable/process/ChildProcessSpawner.ts +1 -1
  1248. package/src/unstable/reactivity/Atom.ts +6 -3
  1249. package/src/unstable/reactivity/AtomHttpApi.ts +21 -10
  1250. package/src/unstable/reactivity/AtomRegistry.ts +2 -4
  1251. package/src/unstable/reactivity/AtomRpc.ts +6 -5
  1252. package/src/unstable/reactivity/Hydration.ts +26 -7
  1253. package/src/unstable/reactivity/Reactivity.ts +49 -36
  1254. package/src/unstable/rpc/RpcClient.ts +100 -82
  1255. package/src/unstable/rpc/RpcMessage.ts +78 -11
  1256. package/src/unstable/rpc/RpcMiddleware.ts +7 -5
  1257. package/src/unstable/rpc/RpcSerialization.ts +82 -92
  1258. package/src/unstable/rpc/RpcServer.ts +171 -93
  1259. package/src/unstable/schema/Model.ts +8 -7
  1260. package/src/unstable/schema/VariantSchema.ts +3 -0
  1261. package/src/unstable/socket/Socket.ts +714 -383
  1262. package/src/unstable/socket/SocketServer.ts +5 -35
  1263. package/src/unstable/sql/SqlClient.ts +42 -7
  1264. package/src/unstable/sql/SqlConnection.ts +18 -0
  1265. package/src/unstable/sql/SqlModel.ts +1 -1
  1266. package/src/unstable/sql/Statement.ts +46 -20
  1267. package/src/unstable/workers/Transferable.ts +1 -1
  1268. package/src/unstable/workers/Worker.ts +3 -1
  1269. package/src/unstable/workflow/Activity.ts +20 -9
  1270. package/src/unstable/workflow/DurableClock.ts +1 -1
  1271. package/src/unstable/workflow/DurableDeferred.ts +6 -0
  1272. package/src/unstable/workflow/DurableQueue.ts +8 -0
  1273. package/src/unstable/workflow/Workflow.ts +105 -28
  1274. package/src/unstable/workflow/WorkflowEngine.ts +22 -0
  1275. package/src/unstable/workflow/WorkflowProxy.ts +8 -4
  1276. package/dist/internal/schema/schema.d.ts.map +0 -1
  1277. package/dist/internal/schema/schema.js.map +0 -1
  1278. package/dist/internal/schema/toArbitrary.d.ts +0 -2
  1279. package/dist/internal/schema/toArbitrary.d.ts.map +0 -1
  1280. package/dist/internal/schema/toArbitrary.js +0 -705
  1281. package/dist/internal/schema/toArbitrary.js.map +0 -1
  1282. package/dist/testing/FastCheck.d.ts +0 -90
  1283. package/dist/testing/FastCheck.d.ts.map +0 -1
  1284. package/dist/testing/FastCheck.js +0 -90
  1285. package/dist/testing/FastCheck.js.map +0 -1
  1286. package/dist/unstable/encoding/Msgpack.d.ts +0 -185
  1287. package/dist/unstable/encoding/Msgpack.d.ts.map +0 -1
  1288. package/dist/unstable/encoding/Msgpack.js +0 -227
  1289. package/dist/unstable/encoding/Msgpack.js.map +0 -1
  1290. package/src/internal/schema/toArbitrary.ts +0 -843
  1291. package/src/testing/FastCheck.ts +0 -90
  1292. package/src/unstable/encoding/Msgpack.ts +0 -432
  1293. /package/dist/internal/{schema → arbitrary}/schema.d.ts +0 -0
@@ -42,8 +42,8 @@ export declare namespace ToJsonSchema {
42
42
  * **Gotchas**
43
43
  *
44
44
  * Treat the input schemas as immutable. The returned value must be a valid JSON Schema object graph and must not be
45
- * mutated after this function returns. Return a new object graph to produce different output during a later
46
- * compilation.
45
+ * mutated after this function returns. Local `$defs` references must use valid JSON Pointer URI fragments. Return a
46
+ * new object graph to produce different output during a later compilation.
47
47
  *
48
48
  * @category models
49
49
  * @since 4.0.0
@@ -253,273 +253,1351 @@ export interface Literal extends Keyword<"Literal"> {
253
253
  readonly literal: SchemaAST.LiteralValue;
254
254
  }
255
255
  /**
256
- * A unique global symbol representation.
256
+ * A unique symbol representation.
257
+ *
258
+ * **Details**
259
+ *
260
+ * Globally registered symbols have an exact JSON string representation. Local
261
+ * symbols have no JSON representation.
262
+ *
263
+ * @category models
264
+ * @since 4.0.0
265
+ */
266
+ export interface UniqueSymbol extends Keyword<"UniqueSymbol"> {
267
+ readonly symbol: symbol;
268
+ }
269
+ /**
270
+ * The object keyword representation.
271
+ *
272
+ * @category models
273
+ * @since 4.0.0
274
+ */
275
+ export interface ObjectKeyword extends Keyword<"ObjectKeyword"> {
276
+ }
277
+ /**
278
+ * An enum representation.
279
+ *
280
+ * **Details**
281
+ *
282
+ * Enum members are stored as native string or finite number values. Persistent
283
+ * codecs add an explicit type discriminator when encoding them.
284
+ *
285
+ * @category models
286
+ * @since 4.0.0
287
+ */
288
+ export interface Enum extends Keyword<"Enum"> {
289
+ readonly enums: ReadonlyArray<readonly [string, string | number]>;
290
+ }
291
+ /**
292
+ * A template literal representation.
293
+ *
294
+ * @category models
295
+ * @since 4.0.0
296
+ */
297
+ export interface TemplateLiteral extends Keyword<"TemplateLiteral"> {
298
+ readonly parts: ReadonlyArray<Representation>;
299
+ }
300
+ /**
301
+ * A tuple element.
302
+ *
303
+ * @category models
304
+ * @since 4.0.0
305
+ */
306
+ export interface Element {
307
+ readonly isOptional: boolean;
308
+ readonly type: Representation;
309
+ readonly annotations?: Schema.Annotations.Annotations | undefined;
310
+ }
311
+ /**
312
+ * An array or tuple representation.
313
+ *
314
+ * @category models
315
+ * @since 4.0.0
316
+ */
317
+ export interface Arrays extends Keyword<"Arrays"> {
318
+ readonly elements: ReadonlyArray<Element>;
319
+ readonly rest: ReadonlyArray<Representation>;
320
+ }
321
+ /**
322
+ * A property signature.
323
+ *
324
+ * **Details**
325
+ *
326
+ * The live representation stores the native property key. Persistent codecs
327
+ * add an explicit type discriminator when encoding it.
328
+ *
329
+ * **Gotchas**
330
+ *
331
+ * Local symbols can be represented while the schema is live, but persistent
332
+ * codecs reject them because they cannot be reconstructed by identity.
333
+ *
334
+ * @category models
335
+ * @since 4.0.0
336
+ */
337
+ export interface PropertySignature {
338
+ readonly name: PropertyKey;
339
+ readonly type: Representation;
340
+ readonly isOptional: boolean;
341
+ readonly isMutable: boolean;
342
+ readonly annotations?: Schema.Annotations.Annotations | undefined;
343
+ }
344
+ /**
345
+ * An index signature.
346
+ *
347
+ * @category models
348
+ * @since 4.0.0
349
+ */
350
+ export interface IndexSignature {
351
+ readonly parameter: Representation;
352
+ readonly type: Representation;
353
+ }
354
+ /**
355
+ * An object representation.
356
+ *
357
+ * @category models
358
+ * @since 4.0.0
359
+ */
360
+ export interface Objects extends Keyword<"Objects"> {
361
+ readonly propertySignatures: ReadonlyArray<PropertySignature>;
362
+ readonly indexSignatures: ReadonlyArray<IndexSignature>;
363
+ }
364
+ /**
365
+ * A union representation.
366
+ *
367
+ * @category models
368
+ * @since 4.0.0
369
+ */
370
+ export interface Union extends Keyword<"Union"> {
371
+ readonly types: ReadonlyArray<Representation>;
372
+ readonly options?: SchemaAST.UnionOptions | undefined;
373
+ }
374
+ /**
375
+ * The structural schema representation.
376
+ *
377
+ * @category models
378
+ * @since 4.0.0
379
+ */
380
+ export type Representation = Declaration | Reference | Suspend | Null | Undefined | Void | Never | Unknown | Any | String | Number | Boolean | BigInt | Symbol | Literal | UniqueSymbol | ObjectKeyword | Enum | TemplateLiteral | Arrays | Objects | Union;
381
+ /**
382
+ * A structural check.
383
+ *
384
+ * @category models
385
+ * @since 4.0.0
386
+ */
387
+ export type Check = Filter | FilterGroup;
388
+ /**
389
+ * An opaque leaf check.
390
+ *
391
+ * @category models
392
+ * @since 4.0.0
393
+ */
394
+ export interface Filter {
395
+ readonly _tag: "Filter";
396
+ readonly representation?: CheckRepresentationAnnotation<Representation> | undefined;
397
+ readonly annotations?: Schema.Annotations.Annotations | undefined;
398
+ readonly aborted: boolean;
399
+ }
400
+ /**
401
+ * A non-empty group of checks.
402
+ *
403
+ * @category models
404
+ * @since 4.0.0
405
+ */
406
+ export interface FilterGroup {
407
+ readonly _tag: "FilterGroup";
408
+ readonly representation?: CheckRepresentationAnnotation<Representation> | undefined;
409
+ readonly annotations?: Schema.Annotations.Annotations | undefined;
410
+ readonly checks: readonly [Check, ...Array<Check>];
411
+ }
412
+ /**
413
+ * Named representation definitions.
414
+ *
415
+ * @category models
416
+ * @since 4.0.0
417
+ */
418
+ export interface References {
419
+ readonly [$ref: string]: Representation;
420
+ }
421
+ /**
422
+ * A single representation and its definitions.
423
+ *
424
+ * @category models
425
+ * @since 4.0.0
426
+ */
427
+ export interface Document {
428
+ readonly representation: Representation;
429
+ readonly references: References;
430
+ }
431
+ /**
432
+ * Multiple representations sharing definitions.
433
+ *
434
+ * @category models
435
+ * @since 4.0.0
436
+ */
437
+ export interface MultiDocument {
438
+ readonly representations: readonly [Representation, ...Array<Representation>];
439
+ readonly references: References;
440
+ }
441
+ /**
442
+ * Reviver for a declaration.
443
+ *
444
+ * @category models
445
+ * @since 4.0.0
446
+ */
447
+ export interface DeclarationReviver<P> {
448
+ readonly id: string;
449
+ readonly payloadSchema: Schema.Decoder<P>;
450
+ readonly revive: (input: {
451
+ readonly payload: P;
452
+ readonly typeParameters: ReadonlyArray<Schema.Top>;
453
+ readonly annotations: Schema.Annotations.Annotations | undefined;
454
+ }) => Schema.Top;
455
+ }
456
+ /**
457
+ * Reviver for a leaf check.
458
+ *
459
+ * @category models
460
+ * @since 4.0.0
461
+ */
462
+ export interface FilterReviver<P> {
463
+ readonly id: string;
464
+ readonly payloadSchema: Schema.Decoder<P>;
465
+ readonly revive: (input: {
466
+ readonly payload: P;
467
+ readonly schemas: ReadonlyArray<Schema.Top>;
468
+ readonly annotations: Schema.Annotations.Filter | undefined;
469
+ }) => SchemaAST.Filter<any>;
470
+ }
471
+ /**
472
+ * Reviver for a check group.
473
+ *
474
+ * @category models
475
+ * @since 4.0.0
476
+ */
477
+ export interface FilterGroupReviver<P> {
478
+ readonly id: string;
479
+ readonly payloadSchema: Schema.Decoder<P>;
480
+ readonly revive: (input: {
481
+ readonly payload: P;
482
+ readonly schemas: ReadonlyArray<Schema.Top>;
483
+ readonly annotations: Schema.Annotations.Filter | undefined;
484
+ }) => SchemaAST.FilterGroup<any>;
485
+ }
486
+ /**
487
+ * A check reviver.
488
+ *
489
+ * @category models
490
+ * @since 4.0.0
491
+ */
492
+ export type CheckReviver<P> = FilterReviver<P> | FilterGroupReviver<P>;
493
+ /**
494
+ * A typed reviver.
495
+ *
496
+ * @category models
497
+ * @since 4.0.0
498
+ */
499
+ export type Reviver<P> = DeclarationReviver<P> | CheckReviver<P>;
500
+ /**
501
+ * A reviver erased only at collection boundaries.
257
502
  *
258
503
  * @category models
259
504
  * @since 4.0.0
260
505
  */
261
- export interface UniqueSymbol extends Keyword<"UniqueSymbol"> {
262
- readonly symbol: symbol;
263
- }
506
+ export type AnyReviver = Reviver<any>;
507
+ /**
508
+ * Creates a declaration reviver while inferring its payload type from `payloadSchema`.
509
+ *
510
+ * @category constructors
511
+ * @since 4.0.0
512
+ */
513
+ export declare const makeReviverDeclaration: <P>(id: string, payloadSchema: Schema.Decoder<P>, revive: DeclarationReviver<P>["revive"]) => DeclarationReviver<P>;
514
+ /**
515
+ * Creates a filter reviver while inferring its payload type from `payloadSchema`.
516
+ *
517
+ * @category constructors
518
+ * @since 4.0.0
519
+ */
520
+ export declare const makeReviverFilter: <P>(id: string, payloadSchema: Schema.Decoder<P>, revive: FilterReviver<P>["revive"]) => FilterReviver<P>;
521
+ /**
522
+ * Creates a filter group reviver while inferring its payload type from `payloadSchema`.
523
+ *
524
+ * @category constructors
525
+ * @since 4.0.0
526
+ */
527
+ export declare const makeReviverFilterGroup: <P>(id: string, payloadSchema: Schema.Decoder<P>, revive: FilterGroupReviver<P>["revive"]) => FilterGroupReviver<P>;
528
+ type ErrorRepresentationOptions = {
529
+ readonly includeStack?: true | undefined;
530
+ readonly excludeCause?: true | undefined;
531
+ };
532
+ type ErrorRepresentationPayload = ErrorRepresentationOptions | null;
533
+ declare const ErrorRepresentationPayload: Schema.Decoder<ErrorRepresentationPayload>;
534
+ type RedactedRepresentationOptions = {
535
+ readonly label?: string | undefined;
536
+ readonly disallowJsonEncode?: true | undefined;
537
+ };
538
+ type RedactedRepresentationPayload = RedactedRepresentationOptions | null;
539
+ declare const RedactedRepresentationPayload: Schema.Decoder<RedactedRepresentationPayload>;
540
+ /**
541
+ * Reviver for persisted `isTrimmed` checks.
542
+ *
543
+ * **When to use**
544
+ *
545
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isTrimmed}.
546
+ *
547
+ * @see {@link Schema.isTrimmed} for creating the corresponding check
548
+ *
549
+ * @category validation
550
+ * @since 4.0.0
551
+ */
552
+ export declare const isTrimmedReviver: FilterReviver<null>;
553
+ /**
554
+ * Reviver for persisted `isPattern` checks.
555
+ *
556
+ * **When to use**
557
+ *
558
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isPattern}.
559
+ *
560
+ * @see {@link Schema.isPattern} for creating the corresponding check
561
+ *
562
+ * @category validation
563
+ * @since 4.0.0
564
+ */
565
+ export declare const isPatternReviver: FilterReviver<{
566
+ readonly source: string;
567
+ readonly flags: string;
568
+ }>;
569
+ /**
570
+ * Reviver for persisted `isStringFinite` checks.
571
+ *
572
+ * **When to use**
573
+ *
574
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isStringFinite}.
575
+ *
576
+ * @see {@link Schema.isStringFinite} for creating the corresponding check
577
+ *
578
+ * @category validation
579
+ * @since 4.0.0
580
+ */
581
+ export declare const isStringFiniteReviver: FilterReviver<null>;
582
+ /**
583
+ * Reviver for persisted `isStringBigInt` checks.
584
+ *
585
+ * **When to use**
586
+ *
587
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isStringBigInt}.
588
+ *
589
+ * @see {@link Schema.isStringBigInt} for creating the corresponding check
590
+ *
591
+ * @category validation
592
+ * @since 4.0.0
593
+ */
594
+ export declare const isStringBigIntReviver: FilterReviver<null>;
595
+ /**
596
+ * Reviver for persisted `isStringSymbol` checks.
597
+ *
598
+ * **When to use**
599
+ *
600
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isStringSymbol}.
601
+ *
602
+ * @see {@link Schema.isStringSymbol} for creating the corresponding check
603
+ *
604
+ * @category validation
605
+ * @since 4.0.0
606
+ */
607
+ export declare const isStringSymbolReviver: FilterReviver<null>;
608
+ /**
609
+ * Reviver for persisted `isUUID` checks.
610
+ *
611
+ * **When to use**
612
+ *
613
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isUUID}.
614
+ *
615
+ * @see {@link Schema.isUUID} for creating the corresponding check
616
+ *
617
+ * @category validation
618
+ * @since 4.0.0
619
+ */
620
+ export declare const isUUIDReviver: FilterReviver<{
621
+ readonly version: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | null;
622
+ }>;
623
+ /**
624
+ * Reviver for persisted `isGUID` checks.
625
+ *
626
+ * **When to use**
627
+ *
628
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isGUID}.
629
+ *
630
+ * @see {@link Schema.isGUID} for creating the corresponding check
631
+ *
632
+ * @category validation
633
+ * @since 4.0.0
634
+ */
635
+ export declare const isGUIDReviver: FilterReviver<null>;
636
+ /**
637
+ * Reviver for persisted `isULID` checks.
638
+ *
639
+ * **When to use**
640
+ *
641
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isULID}.
642
+ *
643
+ * @see {@link Schema.isULID} for creating the corresponding check
644
+ *
645
+ * @category validation
646
+ * @since 4.0.0
647
+ */
648
+ export declare const isULIDReviver: FilterReviver<null>;
649
+ /**
650
+ * Reviver for persisted `isBase64` checks.
651
+ *
652
+ * **When to use**
653
+ *
654
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isBase64}.
655
+ *
656
+ * @see {@link Schema.isBase64} for creating the corresponding check
657
+ *
658
+ * @category validation
659
+ * @since 4.0.0
660
+ */
661
+ export declare const isBase64Reviver: FilterReviver<null>;
662
+ /**
663
+ * Reviver for persisted `isBase64Url` checks.
664
+ *
665
+ * **When to use**
666
+ *
667
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isBase64Url}.
668
+ *
669
+ * @see {@link Schema.isBase64Url} for creating the corresponding check
670
+ *
671
+ * @category validation
672
+ * @since 4.0.0
673
+ */
674
+ export declare const isBase64UrlReviver: FilterReviver<null>;
675
+ /**
676
+ * Reviver for persisted `isStartsWith` checks.
677
+ *
678
+ * **When to use**
679
+ *
680
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isStartsWith}.
681
+ *
682
+ * @see {@link Schema.isStartsWith} for creating the corresponding check
683
+ *
684
+ * @category validation
685
+ * @since 4.0.0
686
+ */
687
+ export declare const isStartsWithReviver: FilterReviver<{
688
+ readonly startsWith: string;
689
+ }>;
690
+ /**
691
+ * Reviver for persisted `isEndsWith` checks.
692
+ *
693
+ * **When to use**
694
+ *
695
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isEndsWith}.
696
+ *
697
+ * @see {@link Schema.isEndsWith} for creating the corresponding check
698
+ *
699
+ * @category validation
700
+ * @since 4.0.0
701
+ */
702
+ export declare const isEndsWithReviver: FilterReviver<{
703
+ readonly endsWith: string;
704
+ }>;
705
+ /**
706
+ * Reviver for persisted `isIncludes` checks.
707
+ *
708
+ * **When to use**
709
+ *
710
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isIncludes}.
711
+ *
712
+ * @see {@link Schema.isIncludes} for creating the corresponding check
713
+ *
714
+ * @category validation
715
+ * @since 4.0.0
716
+ */
717
+ export declare const isIncludesReviver: FilterReviver<{
718
+ readonly includes: string;
719
+ }>;
720
+ /**
721
+ * Reviver for persisted `isUppercased` checks.
722
+ *
723
+ * **When to use**
724
+ *
725
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isUppercased}.
726
+ *
727
+ * @see {@link Schema.isUppercased} for creating the corresponding check
728
+ *
729
+ * @category validation
730
+ * @since 4.0.0
731
+ */
732
+ export declare const isUppercasedReviver: FilterReviver<null>;
733
+ /**
734
+ * Reviver for persisted `isLowercased` checks.
735
+ *
736
+ * **When to use**
737
+ *
738
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isLowercased}.
739
+ *
740
+ * @see {@link Schema.isLowercased} for creating the corresponding check
741
+ *
742
+ * @category validation
743
+ * @since 4.0.0
744
+ */
745
+ export declare const isLowercasedReviver: FilterReviver<null>;
746
+ /**
747
+ * Reviver for persisted `isCapitalized` checks.
748
+ *
749
+ * **When to use**
750
+ *
751
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isCapitalized}.
752
+ *
753
+ * @see {@link Schema.isCapitalized} for creating the corresponding check
754
+ *
755
+ * @category validation
756
+ * @since 4.0.0
757
+ */
758
+ export declare const isCapitalizedReviver: FilterReviver<null>;
759
+ /**
760
+ * Reviver for persisted `isUncapitalized` checks.
761
+ *
762
+ * **When to use**
763
+ *
764
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isUncapitalized}.
765
+ *
766
+ * @see {@link Schema.isUncapitalized} for creating the corresponding check
767
+ *
768
+ * @category validation
769
+ * @since 4.0.0
770
+ */
771
+ export declare const isUncapitalizedReviver: FilterReviver<null>;
772
+ /**
773
+ * Reviver for persisted `isFinite` checks.
774
+ *
775
+ * **When to use**
776
+ *
777
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isFinite}.
778
+ *
779
+ * @see {@link Schema.isFinite} for creating the corresponding check
780
+ *
781
+ * @category validation
782
+ * @since 4.0.0
783
+ */
784
+ export declare const isFiniteReviver: FilterReviver<null>;
785
+ /**
786
+ * Reviver for persisted `isGreaterThan` checks.
787
+ *
788
+ * **When to use**
789
+ *
790
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isGreaterThan}.
791
+ *
792
+ * @see {@link Schema.isGreaterThan} for creating the corresponding check
793
+ *
794
+ * @category validation
795
+ * @since 4.0.0
796
+ */
797
+ export declare const isGreaterThanReviver: FilterReviver<{
798
+ readonly exclusiveMinimum: number;
799
+ }>;
800
+ /**
801
+ * Reviver for persisted `isGreaterThanOrEqualTo` checks.
802
+ *
803
+ * **When to use**
804
+ *
805
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isGreaterThanOrEqualTo}.
806
+ *
807
+ * @see {@link Schema.isGreaterThanOrEqualTo} for creating the corresponding check
808
+ *
809
+ * @category validation
810
+ * @since 4.0.0
811
+ */
812
+ export declare const isGreaterThanOrEqualToReviver: FilterReviver<{
813
+ readonly minimum: number;
814
+ }>;
815
+ /**
816
+ * Reviver for persisted `isLessThan` checks.
817
+ *
818
+ * **When to use**
819
+ *
820
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isLessThan}.
821
+ *
822
+ * @see {@link Schema.isLessThan} for creating the corresponding check
823
+ *
824
+ * @category validation
825
+ * @since 4.0.0
826
+ */
827
+ export declare const isLessThanReviver: FilterReviver<{
828
+ readonly exclusiveMaximum: number;
829
+ }>;
830
+ /**
831
+ * Reviver for persisted `isLessThanOrEqualTo` checks.
832
+ *
833
+ * **When to use**
834
+ *
835
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isLessThanOrEqualTo}.
836
+ *
837
+ * @see {@link Schema.isLessThanOrEqualTo} for creating the corresponding check
838
+ *
839
+ * @category validation
840
+ * @since 4.0.0
841
+ */
842
+ export declare const isLessThanOrEqualToReviver: FilterReviver<{
843
+ readonly maximum: number;
844
+ }>;
845
+ /**
846
+ * Reviver for persisted `isBetween` checks.
847
+ *
848
+ * **When to use**
849
+ *
850
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isBetween}.
851
+ *
852
+ * @see {@link Schema.isBetween} for creating the corresponding check
853
+ *
854
+ * @category validation
855
+ * @since 4.0.0
856
+ */
857
+ export declare const isBetweenReviver: FilterReviver<{
858
+ readonly minimum: number;
859
+ readonly maximum: number;
860
+ readonly exclusiveMinimum?: true | undefined;
861
+ readonly exclusiveMaximum?: true | undefined;
862
+ }>;
863
+ /**
864
+ * Reviver for persisted `isMultipleOf` checks.
865
+ *
866
+ * **When to use**
867
+ *
868
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isMultipleOf}.
869
+ *
870
+ * @see {@link Schema.isMultipleOf} for creating the corresponding check
871
+ *
872
+ * @category validation
873
+ * @since 4.0.0
874
+ */
875
+ export declare const isMultipleOfReviver: FilterReviver<{
876
+ readonly divisor: number;
877
+ }>;
878
+ /**
879
+ * Reviver for persisted `isInt` checks.
880
+ *
881
+ * **When to use**
882
+ *
883
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isInt}.
884
+ *
885
+ * @see {@link Schema.isInt} for creating the corresponding check
886
+ *
887
+ * @category validation
888
+ * @since 4.0.0
889
+ */
890
+ export declare const isIntReviver: FilterReviver<null>;
891
+ /**
892
+ * Reviver for persisted `isMinLength` checks.
893
+ *
894
+ * **When to use**
895
+ *
896
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isMinLength}.
897
+ *
898
+ * @see {@link Schema.isMinLength} for creating the corresponding check
899
+ *
900
+ * @category validation
901
+ * @since 4.0.0
902
+ */
903
+ export declare const isMinLengthReviver: FilterReviver<{
904
+ readonly minLength: number;
905
+ }>;
906
+ /**
907
+ * Reviver for persisted `isMaxLength` checks.
908
+ *
909
+ * **When to use**
910
+ *
911
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isMaxLength}.
912
+ *
913
+ * @see {@link Schema.isMaxLength} for creating the corresponding check
914
+ *
915
+ * @category validation
916
+ * @since 4.0.0
917
+ */
918
+ export declare const isMaxLengthReviver: FilterReviver<{
919
+ readonly maxLength: number;
920
+ }>;
921
+ /**
922
+ * Reviver for persisted `isLengthBetween` checks.
923
+ *
924
+ * **When to use**
925
+ *
926
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isLengthBetween}.
927
+ *
928
+ * @see {@link Schema.isLengthBetween} for creating the corresponding check
929
+ *
930
+ * @category validation
931
+ * @since 4.0.0
932
+ */
933
+ export declare const isLengthBetweenReviver: FilterReviver<{
934
+ readonly minimum: number;
935
+ readonly maximum: number;
936
+ }>;
937
+ /**
938
+ * Reviver for persisted `isMinSize` checks.
939
+ *
940
+ * **When to use**
941
+ *
942
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isMinSize}.
943
+ *
944
+ * @see {@link Schema.isMinSize} for creating the corresponding check
945
+ *
946
+ * @category validation
947
+ * @since 4.0.0
948
+ */
949
+ export declare const isMinSizeReviver: FilterReviver<{
950
+ readonly minSize: number;
951
+ }>;
952
+ /**
953
+ * Reviver for persisted `isMaxSize` checks.
954
+ *
955
+ * **When to use**
956
+ *
957
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isMaxSize}.
958
+ *
959
+ * @see {@link Schema.isMaxSize} for creating the corresponding check
960
+ *
961
+ * @category validation
962
+ * @since 4.0.0
963
+ */
964
+ export declare const isMaxSizeReviver: FilterReviver<{
965
+ readonly maxSize: number;
966
+ }>;
967
+ /**
968
+ * Reviver for persisted `isSizeBetween` checks.
969
+ *
970
+ * **When to use**
971
+ *
972
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isSizeBetween}.
973
+ *
974
+ * @see {@link Schema.isSizeBetween} for creating the corresponding check
975
+ *
976
+ * @category validation
977
+ * @since 4.0.0
978
+ */
979
+ export declare const isSizeBetweenReviver: FilterReviver<{
980
+ readonly minimum: number;
981
+ readonly maximum: number;
982
+ }>;
983
+ /**
984
+ * Reviver for persisted `isMinProperties` checks.
985
+ *
986
+ * **When to use**
987
+ *
988
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isMinProperties}.
989
+ *
990
+ * @see {@link Schema.isMinProperties} for creating the corresponding check
991
+ *
992
+ * @category validation
993
+ * @since 4.0.0
994
+ */
995
+ export declare const isMinPropertiesReviver: FilterReviver<{
996
+ readonly minProperties: number;
997
+ }>;
998
+ /**
999
+ * Reviver for persisted `isMaxProperties` checks.
1000
+ *
1001
+ * **When to use**
1002
+ *
1003
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isMaxProperties}.
1004
+ *
1005
+ * @see {@link Schema.isMaxProperties} for creating the corresponding check
1006
+ *
1007
+ * @category validation
1008
+ * @since 4.0.0
1009
+ */
1010
+ export declare const isMaxPropertiesReviver: FilterReviver<{
1011
+ readonly maxProperties: number;
1012
+ }>;
1013
+ /**
1014
+ * Reviver for persisted `isPropertiesLengthBetween` checks.
1015
+ *
1016
+ * **When to use**
1017
+ *
1018
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isPropertiesLengthBetween}.
1019
+ *
1020
+ * @see {@link Schema.isPropertiesLengthBetween} for creating the corresponding check
1021
+ *
1022
+ * @category validation
1023
+ * @since 4.0.0
1024
+ */
1025
+ export declare const isPropertiesLengthBetweenReviver: FilterReviver<{
1026
+ readonly minimum: number;
1027
+ readonly maximum: number;
1028
+ }>;
1029
+ /**
1030
+ * Reviver for persisted `isPropertyNames` checks.
1031
+ *
1032
+ * **When to use**
1033
+ *
1034
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isPropertyNames}.
1035
+ *
1036
+ * @see {@link Schema.isPropertyNames} for creating the corresponding check
1037
+ *
1038
+ * @category validation
1039
+ * @since 4.0.0
1040
+ */
1041
+ export declare const isPropertyNamesReviver: FilterReviver<null>;
1042
+ /**
1043
+ * Reviver for persisted `isUnique` checks.
1044
+ *
1045
+ * **When to use**
1046
+ *
1047
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isUnique}.
1048
+ *
1049
+ * @see {@link Schema.isUnique} for creating the corresponding check
1050
+ *
1051
+ * @category validation
1052
+ * @since 4.0.0
1053
+ */
1054
+ export declare const isUniqueReviver: FilterReviver<null>;
1055
+ /**
1056
+ * Reviver for persisted `isUniqueKey` checks.
1057
+ *
1058
+ * **When to use**
1059
+ *
1060
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isUniqueKey}.
1061
+ *
1062
+ * @see {@link Schema.isUniqueKey} for creating the corresponding check
1063
+ * @category validation
1064
+ * @since 4.0.0
1065
+ */
1066
+ export declare const isUniqueKeyReviver: FilterReviver<null>;
1067
+ /**
1068
+ * Reviver for persisted `Option` declarations.
1069
+ *
1070
+ * **When to use**
1071
+ *
1072
+ * Use when reconstructing documents that may contain schemas created by {@link Schema.Option}.
1073
+ *
1074
+ * @see {@link Schema.Option} for creating the corresponding schema
1075
+ *
1076
+ * @category schemas
1077
+ * @since 4.0.0
1078
+ */
1079
+ export declare const OptionReviver: DeclarationReviver<null>;
1080
+ /**
1081
+ * Reviver for persisted {@link Schema.Result} declarations.
1082
+ *
1083
+ * **When to use**
1084
+ *
1085
+ * Use when reconstructing documents that may contain schemas created by {@link Schema.Result}.
1086
+ *
1087
+ * @see {@link Schema.Result} for creating the corresponding schema
1088
+ *
1089
+ * @category schemas
1090
+ * @since 4.0.0
1091
+ */
1092
+ export declare const ResultReviver: DeclarationReviver<null>;
1093
+ /**
1094
+ * Reviver for persisted {@link Schema.Redacted} declarations.
1095
+ *
1096
+ * **When to use**
1097
+ *
1098
+ * Use when reconstructing documents that may contain schemas created by {@link Schema.Redacted}.
1099
+ *
1100
+ * @see {@link Schema.Redacted} for creating the corresponding schema
1101
+ *
1102
+ * @category schemas
1103
+ * @since 4.0.0
1104
+ */
1105
+ export declare const RedactedReviver: DeclarationReviver<RedactedRepresentationPayload>;
1106
+ /**
1107
+ * Reviver for persisted `CauseReason` declarations.
1108
+ *
1109
+ * **When to use**
1110
+ *
1111
+ * Use when reconstructing documents that may contain schemas created by {@link Schema.CauseReason}.
1112
+ *
1113
+ * @see {@link Schema.CauseReason} for creating the corresponding schema
1114
+ *
1115
+ * @category schemas
1116
+ * @since 4.0.0
1117
+ */
1118
+ export declare const CauseReasonReviver: DeclarationReviver<null>;
1119
+ /**
1120
+ * Reviver for persisted `Cause` declarations.
1121
+ *
1122
+ * **When to use**
1123
+ *
1124
+ * Use when reconstructing documents that may contain schemas created by {@link Schema.Cause}.
1125
+ *
1126
+ * @see {@link Schema.Cause} for creating the corresponding schema
1127
+ *
1128
+ * @category schemas
1129
+ * @since 4.0.0
1130
+ */
1131
+ export declare const CauseReviver: DeclarationReviver<null>;
1132
+ /**
1133
+ * Reviver for persisted {@link Schema.ErrorInstance} declarations.
1134
+ *
1135
+ * **When to use**
1136
+ *
1137
+ * Use when reconstructing documents that may contain schemas created by {@link Schema.ErrorInstance}.
1138
+ *
1139
+ * @see {@link Schema.ErrorInstance} for creating the corresponding schema
1140
+ *
1141
+ * @category schemas
1142
+ * @since 4.0.0
1143
+ */
1144
+ export declare const ErrorInstanceReviver: DeclarationReviver<ErrorRepresentationPayload>;
1145
+ /**
1146
+ * Reviver for persisted `Exit` declarations.
1147
+ *
1148
+ * **When to use**
1149
+ *
1150
+ * Use when reconstructing documents that may contain schemas created by {@link Schema.Exit}.
1151
+ *
1152
+ * @see {@link Schema.Exit} for creating the corresponding schema
1153
+ *
1154
+ * @category schemas
1155
+ * @since 4.0.0
1156
+ */
1157
+ export declare const ExitReviver: DeclarationReviver<null>;
1158
+ /**
1159
+ * Reviver for persisted {@link Schema.ReadonlyMap} declarations.
1160
+ *
1161
+ * **When to use**
1162
+ *
1163
+ * Use when reconstructing documents that may contain schemas created by {@link Schema.ReadonlyMap}.
1164
+ *
1165
+ * @see {@link Schema.ReadonlyMap} for creating the corresponding schema
1166
+ *
1167
+ * @category schemas
1168
+ * @since 4.0.0
1169
+ */
1170
+ export declare const ReadonlyMapReviver: DeclarationReviver<null>;
1171
+ /**
1172
+ * Reviver for persisted {@link Schema.Graph} declarations.
1173
+ *
1174
+ * @category schemas
1175
+ * @since 4.0.0
1176
+ */
1177
+ export declare const GraphReviver: DeclarationReviver<"directed" | "undirected">;
1178
+ /**
1179
+ * Reviver for persisted `HashMap` declarations.
1180
+ *
1181
+ * **When to use**
1182
+ *
1183
+ * Use when reconstructing documents that may contain schemas created by {@link Schema.HashMap}.
1184
+ *
1185
+ * @see {@link Schema.HashMap} for creating the corresponding schema
1186
+ *
1187
+ * @category schemas
1188
+ * @since 4.0.0
1189
+ */
1190
+ export declare const HashMapReviver: DeclarationReviver<null>;
1191
+ /**
1192
+ * Reviver for persisted {@link Schema.ReadonlySet} declarations.
1193
+ *
1194
+ * **When to use**
1195
+ *
1196
+ * Use when reconstructing documents that may contain schemas created by {@link Schema.ReadonlySet}.
1197
+ *
1198
+ * @see {@link Schema.ReadonlySet} for creating the corresponding schema
1199
+ *
1200
+ * @category schemas
1201
+ * @since 4.0.0
1202
+ */
1203
+ export declare const ReadonlySetReviver: DeclarationReviver<null>;
1204
+ /**
1205
+ * Reviver for persisted `HashSet` declarations.
1206
+ *
1207
+ * **When to use**
1208
+ *
1209
+ * Use when reconstructing documents that may contain schemas created by {@link Schema.HashSet}.
1210
+ *
1211
+ * @see {@link Schema.HashSet} for creating the corresponding schema
1212
+ *
1213
+ * @category schemas
1214
+ * @since 4.0.0
1215
+ */
1216
+ export declare const HashSetReviver: DeclarationReviver<null>;
1217
+ /**
1218
+ * Reviver for persisted {@link Schema.Chunk} declarations.
1219
+ *
1220
+ * **When to use**
1221
+ *
1222
+ * Use when reconstructing documents that may contain schemas created by {@link Schema.Chunk}.
1223
+ *
1224
+ * @see {@link Schema.Chunk} for creating the corresponding schema
1225
+ *
1226
+ * @category schemas
1227
+ * @since 4.0.0
1228
+ */
1229
+ export declare const ChunkReviver: DeclarationReviver<null>;
1230
+ /**
1231
+ * Reviver for persisted `RegExp` declarations.
1232
+ *
1233
+ * **When to use**
1234
+ *
1235
+ * Use when reconstructing documents that may contain the {@link Schema.RegExp} schema.
1236
+ *
1237
+ * @see {@link Schema.RegExp} for the corresponding schema
1238
+ *
1239
+ * @category schemas
1240
+ * @since 4.0.0
1241
+ */
1242
+ export declare const RegExpReviver: DeclarationReviver<null>;
264
1243
  /**
265
- * The object keyword representation.
1244
+ * Reviver for persisted `URL` declarations.
266
1245
  *
267
- * @category models
1246
+ * **When to use**
1247
+ *
1248
+ * Use when reconstructing documents that may contain the {@link Schema.URL} schema.
1249
+ *
1250
+ * @see {@link Schema.URL} for the corresponding schema
1251
+ *
1252
+ * @category schemas
268
1253
  * @since 4.0.0
269
1254
  */
270
- export interface ObjectKeyword extends Keyword<"ObjectKeyword"> {
271
- }
1255
+ export declare const URLReviver: DeclarationReviver<null>;
272
1256
  /**
273
- * An enum representation.
1257
+ * Reviver for persisted `Date` declarations.
274
1258
  *
275
- * **Details**
1259
+ * **When to use**
276
1260
  *
277
- * Enum members are stored as native string or number values. Persistent
278
- * codecs add an explicit type discriminator when encoding them.
1261
+ * Use when reconstructing documents that may contain the {@link Schema.Date} schema.
279
1262
  *
280
- * @category models
1263
+ * @see {@link Schema.Date} for the corresponding schema
1264
+ *
1265
+ * @category schemas
281
1266
  * @since 4.0.0
282
1267
  */
283
- export interface Enum extends Keyword<"Enum"> {
284
- readonly enums: ReadonlyArray<readonly [string, string | number]>;
285
- }
1268
+ export declare const DateReviver: DeclarationReviver<null>;
286
1269
  /**
287
- * A template literal representation.
1270
+ * Reviver for persisted {@link Schema.Duration} declarations.
288
1271
  *
289
- * @category models
1272
+ * **When to use**
1273
+ *
1274
+ * Use when reconstructing documents that may contain the {@link Schema.Duration} schema.
1275
+ *
1276
+ * @see {@link Schema.Duration} for the corresponding schema
1277
+ *
1278
+ * @category schemas
290
1279
  * @since 4.0.0
291
1280
  */
292
- export interface TemplateLiteral extends Keyword<"TemplateLiteral"> {
293
- readonly parts: ReadonlyArray<Representation>;
294
- }
1281
+ export declare const DurationReviver: DeclarationReviver<null>;
295
1282
  /**
296
- * A tuple element.
1283
+ * Reviver for persisted {@link Schema.ByteSize} declarations.
297
1284
  *
298
- * @category models
1285
+ * @category schemas
299
1286
  * @since 4.0.0
300
1287
  */
301
- export interface Element {
302
- readonly isOptional: boolean;
303
- readonly type: Representation;
304
- readonly annotations?: Schema.Annotations.Annotations | undefined;
305
- }
1288
+ export declare const ByteSizeReviver: DeclarationReviver<null>;
306
1289
  /**
307
- * An array or tuple representation.
1290
+ * Reviver for persisted {@link Schema.BigDecimal} declarations.
308
1291
  *
309
- * @category models
1292
+ * **When to use**
1293
+ *
1294
+ * Use when reconstructing documents that may contain the {@link Schema.BigDecimal} schema.
1295
+ *
1296
+ * @see {@link Schema.BigDecimal} for the corresponding schema
1297
+ *
1298
+ * @category schemas
310
1299
  * @since 4.0.0
311
1300
  */
312
- export interface Arrays extends Keyword<"Arrays"> {
313
- readonly elements: ReadonlyArray<Element>;
314
- readonly rest: ReadonlyArray<Representation>;
315
- }
1301
+ export declare const BigDecimalReviver: DeclarationReviver<null>;
316
1302
  /**
317
- * A property signature.
1303
+ * Reviver for persisted `File` declarations.
318
1304
  *
319
- * **Details**
1305
+ * **When to use**
320
1306
  *
321
- * The live representation stores the native property key. Persistent codecs
322
- * add an explicit type discriminator when encoding it.
1307
+ * Use when reconstructing documents that may contain the {@link Schema.File} schema.
323
1308
  *
324
- * **Gotchas**
1309
+ * @see {@link Schema.File} for the corresponding schema
325
1310
  *
326
- * Local symbols can be represented while the schema is live, but persistent
327
- * codecs reject them because they cannot be reconstructed by identity.
1311
+ * @category schemas
1312
+ * @since 4.0.0
1313
+ */
1314
+ export declare const FileReviver: DeclarationReviver<null>;
1315
+ /**
1316
+ * Reviver for persisted `FormData` declarations.
328
1317
  *
329
- * @category models
1318
+ * **When to use**
1319
+ *
1320
+ * Use when reconstructing documents that may contain the {@link Schema.FormData} schema.
1321
+ *
1322
+ * @see {@link Schema.FormData} for the corresponding schema
1323
+ *
1324
+ * @category schemas
330
1325
  * @since 4.0.0
331
1326
  */
332
- export interface PropertySignature {
333
- readonly name: PropertyKey;
334
- readonly type: Representation;
335
- readonly isOptional: boolean;
336
- readonly isMutable: boolean;
337
- readonly annotations?: Schema.Annotations.Annotations | undefined;
338
- }
1327
+ export declare const FormDataReviver: DeclarationReviver<null>;
339
1328
  /**
340
- * An index signature.
1329
+ * Reviver for persisted `URLSearchParams` declarations.
341
1330
  *
342
- * @category models
1331
+ * **When to use**
1332
+ *
1333
+ * Use when reconstructing documents that may contain the {@link Schema.URLSearchParams} schema.
1334
+ *
1335
+ * @see {@link Schema.URLSearchParams} for the corresponding schema
1336
+ *
1337
+ * @category schemas
343
1338
  * @since 4.0.0
344
1339
  */
345
- export interface IndexSignature {
346
- readonly parameter: Representation;
347
- readonly type: Representation;
348
- }
1340
+ export declare const URLSearchParamsReviver: DeclarationReviver<null>;
349
1341
  /**
350
- * An object representation.
1342
+ * Reviver for persisted `Uint8Array` declarations.
351
1343
  *
352
- * @category models
1344
+ * **When to use**
1345
+ *
1346
+ * Use when reconstructing documents that may contain the {@link Schema.Uint8Array} schema.
1347
+ *
1348
+ * @see {@link Schema.Uint8Array} for the corresponding schema
1349
+ *
1350
+ * @category schemas
353
1351
  * @since 4.0.0
354
1352
  */
355
- export interface Objects extends Keyword<"Objects"> {
356
- readonly propertySignatures: ReadonlyArray<PropertySignature>;
357
- readonly indexSignatures: ReadonlyArray<IndexSignature>;
358
- }
1353
+ export declare const Uint8ArrayReviver: DeclarationReviver<null>;
359
1354
  /**
360
- * A union representation.
1355
+ * Reviver for persisted {@link Schema.DateTimeUtc} declarations.
361
1356
  *
362
- * @category models
1357
+ * **When to use**
1358
+ *
1359
+ * Use when reconstructing documents that may contain the {@link Schema.DateTimeUtc} schema.
1360
+ *
1361
+ * @see {@link Schema.DateTimeUtc} for the corresponding schema
1362
+ *
1363
+ * @category schemas
363
1364
  * @since 4.0.0
364
1365
  */
365
- export interface Union extends Keyword<"Union"> {
366
- readonly types: ReadonlyArray<Representation>;
367
- readonly mode: "anyOf" | "oneOf";
368
- }
1366
+ export declare const DateTimeUtcReviver: DeclarationReviver<null>;
369
1367
  /**
370
- * The structural schema representation.
1368
+ * Reviver for persisted {@link Schema.TimeZoneOffset} declarations.
371
1369
  *
372
- * @category models
1370
+ * **When to use**
1371
+ *
1372
+ * Use when reconstructing documents that may contain the {@link Schema.TimeZoneOffset} schema.
1373
+ *
1374
+ * @see {@link Schema.TimeZoneOffset} for the corresponding schema
1375
+ *
1376
+ * @category schemas
373
1377
  * @since 4.0.0
374
1378
  */
375
- export type Representation = Declaration | Reference | Suspend | Null | Undefined | Void | Never | Unknown | Any | String | Number | Boolean | BigInt | Symbol | Literal | UniqueSymbol | ObjectKeyword | Enum | TemplateLiteral | Arrays | Objects | Union;
1379
+ export declare const TimeZoneOffsetReviver: DeclarationReviver<null>;
376
1380
  /**
377
- * A structural check.
1381
+ * Reviver for persisted {@link Schema.TimeZoneNamed} declarations.
378
1382
  *
379
- * @category models
1383
+ * **When to use**
1384
+ *
1385
+ * Use when reconstructing documents that may contain the {@link Schema.TimeZoneNamed} schema.
1386
+ *
1387
+ * @see {@link Schema.TimeZoneNamed} for the corresponding schema
1388
+ *
1389
+ * @category schemas
380
1390
  * @since 4.0.0
381
1391
  */
382
- export type Check = Filter | FilterGroup;
1392
+ export declare const TimeZoneNamedReviver: DeclarationReviver<null>;
383
1393
  /**
384
- * An opaque leaf check.
1394
+ * Reviver for persisted {@link Schema.TimeZone} declarations.
385
1395
  *
386
- * @category models
1396
+ * **When to use**
1397
+ *
1398
+ * Use when reconstructing documents that may contain the {@link Schema.TimeZone} schema.
1399
+ *
1400
+ * @see {@link Schema.TimeZone} for the corresponding schema
1401
+ *
1402
+ * @category schemas
387
1403
  * @since 4.0.0
388
1404
  */
389
- export interface Filter {
390
- readonly _tag: "Filter";
391
- readonly representation?: CheckRepresentationAnnotation<Representation> | undefined;
392
- readonly annotations?: Schema.Annotations.Annotations | undefined;
393
- readonly aborted: boolean;
394
- }
1405
+ export declare const TimeZoneReviver: DeclarationReviver<null>;
395
1406
  /**
396
- * A non-empty group of checks.
1407
+ * Reviver for persisted {@link Schema.DateTimeZoned} declarations.
397
1408
  *
398
- * @category models
1409
+ * **When to use**
1410
+ *
1411
+ * Use when reconstructing documents that may contain the {@link Schema.DateTimeZoned} schema.
1412
+ *
1413
+ * @see {@link Schema.DateTimeZoned} for the corresponding schema
1414
+ *
1415
+ * @category schemas
399
1416
  * @since 4.0.0
400
1417
  */
401
- export interface FilterGroup {
402
- readonly _tag: "FilterGroup";
403
- readonly representation?: CheckRepresentationAnnotation<Representation> | undefined;
404
- readonly annotations?: Schema.Annotations.Annotations | undefined;
405
- readonly checks: readonly [Check, ...Array<Check>];
406
- }
1418
+ export declare const DateTimeZonedReviver: DeclarationReviver<null>;
407
1419
  /**
408
- * Named representation definitions.
1420
+ * Reviver for persisted `isGreaterThanDate` checks.
409
1421
  *
410
- * @category models
1422
+ * **When to use**
1423
+ *
1424
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isGreaterThanDate}.
1425
+ *
1426
+ * @see {@link Schema.isGreaterThanDate} for creating the corresponding check
1427
+ *
1428
+ * @category validation
411
1429
  * @since 4.0.0
412
1430
  */
413
- export interface References {
414
- readonly [$ref: string]: Representation;
415
- }
1431
+ export declare const isGreaterThanDateReviver: FilterReviver<{
1432
+ readonly exclusiveMinimum: globalThis.Date;
1433
+ }>;
416
1434
  /**
417
- * A single representation and its definitions.
1435
+ * Reviver for persisted `isGreaterThanOrEqualToDate` checks.
418
1436
  *
419
- * @category models
1437
+ * **When to use**
1438
+ *
1439
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isGreaterThanOrEqualToDate}.
1440
+ *
1441
+ * @see {@link Schema.isGreaterThanOrEqualToDate} for creating the corresponding check
1442
+ *
1443
+ * @category validation
420
1444
  * @since 4.0.0
421
1445
  */
422
- export interface Document {
423
- readonly representation: Representation;
424
- readonly references: References;
425
- }
1446
+ export declare const isGreaterThanOrEqualToDateReviver: FilterReviver<{
1447
+ readonly minimum: globalThis.Date;
1448
+ }>;
426
1449
  /**
427
- * Multiple representations sharing definitions.
1450
+ * Reviver for persisted `isLessThanDate` checks.
428
1451
  *
429
- * @category models
1452
+ * **When to use**
1453
+ *
1454
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isLessThanDate}.
1455
+ *
1456
+ * @see {@link Schema.isLessThanDate} for creating the corresponding check
1457
+ *
1458
+ * @category validation
430
1459
  * @since 4.0.0
431
1460
  */
432
- export interface MultiDocument {
433
- readonly representations: readonly [Representation, ...Array<Representation>];
434
- readonly references: References;
435
- }
1461
+ export declare const isLessThanDateReviver: FilterReviver<{
1462
+ readonly exclusiveMaximum: globalThis.Date;
1463
+ }>;
436
1464
  /**
437
- * Reviver for a declaration.
1465
+ * Reviver for persisted `isLessThanOrEqualToDate` checks.
438
1466
  *
439
- * @category models
1467
+ * **When to use**
1468
+ *
1469
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isLessThanOrEqualToDate}.
1470
+ *
1471
+ * @see {@link Schema.isLessThanOrEqualToDate} for creating the corresponding check
1472
+ *
1473
+ * @category validation
440
1474
  * @since 4.0.0
441
1475
  */
442
- export interface DeclarationReviver<P> {
443
- readonly id: string;
444
- readonly payloadSchema: Schema.Decoder<P>;
445
- readonly revive: (input: {
446
- readonly payload: P;
447
- readonly typeParameters: ReadonlyArray<Schema.Top>;
448
- readonly annotations: Schema.Annotations.Annotations | undefined;
449
- }) => Schema.Top;
450
- }
1476
+ export declare const isLessThanOrEqualToDateReviver: FilterReviver<{
1477
+ readonly maximum: globalThis.Date;
1478
+ }>;
451
1479
  /**
452
- * Reviver for a leaf check.
1480
+ * Reviver for persisted `isBetweenDate` checks.
453
1481
  *
454
- * @category models
1482
+ * **When to use**
1483
+ *
1484
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isBetweenDate}.
1485
+ *
1486
+ * @see {@link Schema.isBetweenDate} for creating the corresponding check
1487
+ *
1488
+ * @category validation
455
1489
  * @since 4.0.0
456
1490
  */
457
- export interface FilterReviver<P> {
458
- readonly id: string;
459
- readonly payloadSchema: Schema.Decoder<P>;
460
- readonly revive: (input: {
461
- readonly payload: P;
462
- readonly schemas: ReadonlyArray<Schema.Top>;
463
- readonly annotations: Schema.Annotations.Filter | undefined;
464
- }) => SchemaAST.Filter<any>;
465
- }
1491
+ export declare const isBetweenDateReviver: FilterReviver<{
1492
+ readonly minimum: globalThis.Date;
1493
+ readonly maximum: globalThis.Date;
1494
+ readonly exclusiveMinimum?: true | undefined;
1495
+ readonly exclusiveMaximum?: true | undefined;
1496
+ }>;
466
1497
  /**
467
- * Reviver for a check group.
1498
+ * Reviver for persisted `isGreaterThanBigInt` checks.
468
1499
  *
469
- * @category models
1500
+ * **When to use**
1501
+ *
1502
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isGreaterThanBigInt}.
1503
+ *
1504
+ * @see {@link Schema.isGreaterThanBigInt} for creating the corresponding check
1505
+ *
1506
+ * @category validation
470
1507
  * @since 4.0.0
471
1508
  */
472
- export interface FilterGroupReviver<P> {
473
- readonly id: string;
474
- readonly payloadSchema: Schema.Decoder<P>;
475
- readonly revive: (input: {
476
- readonly payload: P;
477
- readonly schemas: ReadonlyArray<Schema.Top>;
478
- readonly annotations: Schema.Annotations.Filter | undefined;
479
- }) => SchemaAST.FilterGroup<any>;
480
- }
1509
+ export declare const isGreaterThanBigIntReviver: FilterReviver<{
1510
+ readonly exclusiveMinimum: bigint;
1511
+ }>;
481
1512
  /**
482
- * A check reviver.
1513
+ * Reviver for persisted `isGreaterThanOrEqualToBigInt` checks.
483
1514
  *
484
- * @category models
1515
+ * **When to use**
1516
+ *
1517
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isGreaterThanOrEqualToBigInt}.
1518
+ *
1519
+ * @see {@link Schema.isGreaterThanOrEqualToBigInt} for creating the corresponding check
1520
+ *
1521
+ * @category validation
485
1522
  * @since 4.0.0
486
1523
  */
487
- export type CheckReviver<P> = FilterReviver<P> | FilterGroupReviver<P>;
1524
+ export declare const isGreaterThanOrEqualToBigIntReviver: FilterReviver<{
1525
+ readonly minimum: bigint;
1526
+ }>;
488
1527
  /**
489
- * A typed reviver.
1528
+ * Reviver for persisted `isLessThanBigInt` checks.
490
1529
  *
491
- * @category models
1530
+ * **When to use**
1531
+ *
1532
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isLessThanBigInt}.
1533
+ *
1534
+ * @see {@link Schema.isLessThanBigInt} for creating the corresponding check
1535
+ *
1536
+ * @category validation
492
1537
  * @since 4.0.0
493
1538
  */
494
- export type Reviver<P> = DeclarationReviver<P> | CheckReviver<P>;
1539
+ export declare const isLessThanBigIntReviver: FilterReviver<{
1540
+ readonly exclusiveMaximum: bigint;
1541
+ }>;
495
1542
  /**
496
- * A reviver erased only at collection boundaries.
1543
+ * Reviver for persisted `isLessThanOrEqualToBigInt` checks.
497
1544
  *
498
- * @category models
1545
+ * **When to use**
1546
+ *
1547
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isLessThanOrEqualToBigInt}.
1548
+ *
1549
+ * @see {@link Schema.isLessThanOrEqualToBigInt} for creating the corresponding check
1550
+ *
1551
+ * @category validation
499
1552
  * @since 4.0.0
500
1553
  */
501
- export type AnyReviver = Reviver<any>;
1554
+ export declare const isLessThanOrEqualToBigIntReviver: FilterReviver<{
1555
+ readonly maximum: bigint;
1556
+ }>;
502
1557
  /**
503
- * Creates a declaration reviver while inferring its payload type from `payloadSchema`.
1558
+ * Reviver for persisted `isBetweenBigInt` checks.
504
1559
  *
505
- * @category constructors
1560
+ * **When to use**
1561
+ *
1562
+ * Use when reconstructing documents that may contain checks created by {@link Schema.isBetweenBigInt}.
1563
+ *
1564
+ * @see {@link Schema.isBetweenBigInt} for creating the corresponding check
1565
+ *
1566
+ * @category validation
506
1567
  * @since 4.0.0
507
1568
  */
508
- export declare const makeDeclarationReviver: <P>(id: string, payloadSchema: Schema.Decoder<P>, revive: DeclarationReviver<P>["revive"]) => DeclarationReviver<P>;
1569
+ export declare const isBetweenBigIntReviver: FilterReviver<{
1570
+ readonly minimum: bigint;
1571
+ readonly maximum: bigint;
1572
+ readonly exclusiveMinimum?: true | undefined;
1573
+ readonly exclusiveMaximum?: true | undefined;
1574
+ }>;
509
1575
  /**
510
- * Creates a filter reviver while inferring its payload type from `payloadSchema`.
1576
+ * Reviver for persisted `Json` declarations.
511
1577
  *
512
- * @category constructors
1578
+ * **When to use**
1579
+ *
1580
+ * Use when reconstructing documents that may contain the {@link Schema.Json} schema.
1581
+ *
1582
+ * @see {@link Schema.Json} for the corresponding immutable JSON schema
1583
+ *
1584
+ * @category schemas
513
1585
  * @since 4.0.0
514
1586
  */
515
- export declare const makeFilterReviver: <P>(id: string, payloadSchema: Schema.Decoder<P>, revive: FilterReviver<P>["revive"]) => FilterReviver<P>;
1587
+ export declare const JsonReviver: DeclarationReviver<null>;
516
1588
  /**
517
- * Creates a filter group reviver while inferring its payload type from `payloadSchema`.
1589
+ * Reviver for persisted `MutableJson` declarations.
518
1590
  *
519
- * @category constructors
1591
+ * **When to use**
1592
+ *
1593
+ * Use when reconstructing documents that may contain the {@link Schema.MutableJson} schema.
1594
+ *
1595
+ * @see {@link Schema.MutableJson} for the corresponding mutable JSON schema
1596
+ *
1597
+ * @category schemas
520
1598
  * @since 4.0.0
521
1599
  */
522
- export declare const makeFilterGroupReviver: <P>(id: string, payloadSchema: Schema.Decoder<P>, revive: FilterGroupReviver<P>["revive"]) => FilterGroupReviver<P>;
1600
+ export declare const MutableJsonReviver: DeclarationReviver<null>;
523
1601
  /**
524
1602
  * Options for importing JSON Schema Draft 2020-12 documents.
525
1603
  *
@@ -728,21 +1806,24 @@ export declare function toMultiDocument(document: Document): MultiDocument;
728
1806
  *
729
1807
  * **Details**
730
1808
  *
731
- * For representation documents whose validation semantics can be expressed exactly in JSON Schema, importing the
732
- * emitted document with {@link fromJsonSchemaDocument} reconstructs a schema that accepts the same JSON values. This
733
- * is a semantic round-trip guarantee; the emitted document and reconstructed representation may have different shapes.
1809
+ * The generated document is intended for preliminary validation. JSON Schema
1810
+ * and Effect checks do not always have identical semantics, so the Effect
1811
+ * decoder remains the final authority. Passing JSON Schema validation does not
1812
+ * guarantee that Effect decoding will succeed.
734
1813
  *
735
1814
  * **Gotchas**
736
1815
  *
737
1816
  * - Reference allocation is already fixed in the input `Document`. The inherited `referencePolicy` option has no effect
738
1817
  * here; pass it to {@link toRepresentation} when creating the document.
739
- * - Opaque declarations are represented by an unconstrained JSON Schema and are outside the exact round-trip subset.
1818
+ * - String length, RegExp flags, decoded-object property checks, and `oneOf` can differ from Effect validation.
1819
+ * - Opaque declarations are represented by an unconstrained JSON Schema.
740
1820
  * - Check callback results are used directly, and exceptions raised by a callback pass through unchanged. Callbacks
741
1821
  * must treat their input schemas as immutable. Each returned value must be a valid JSON Schema object graph and must
742
- * not be mutated after the callback returns.
1822
+ * not be mutated after the callback returns. The callback author is responsible for the emitted semantics.
743
1823
  * - Local definition references returned by callbacks are resolved together with compiler-generated references.
744
- * - Effect decoding may discard excess object properties by default. Use `onExcessProperty: "error"` when comparing
745
- * validation semantics with the emitted JSON Schema.
1824
+ * Invalid JSON Pointer URI fragments throw an `Error`.
1825
+ * - The default `onExcessProperty: "ignore"` matches the decoder default. Use `onExcessProperty: "error"` in both
1826
+ * places when a closed object contract is required.
746
1827
  *
747
1828
  * @see {@link toJsonSchemaMultiDocument} for multiple roots sharing definitions
748
1829
  *
@@ -764,7 +1845,9 @@ export declare function toJsonSchemaDocument(document: Document, options?: Schem
764
1845
  * - Every definition is compiled, including definitions that are not reachable from a root. Check callbacks must treat
765
1846
  * their input schemas as immutable. Each returned value must be a valid JSON Schema object graph and must not be
766
1847
  * mutated after the callback returns. Local definition references returned by callbacks are resolved together with
767
- * compiler-generated references.
1848
+ * compiler-generated references. Invalid JSON Pointer URI fragments throw an `Error`.
1849
+ * - String length, RegExp flags, decoded-object property checks, `oneOf`, and custom check callbacks can differ from
1850
+ * Effect validation, as described by {@link toJsonSchemaDocument}.
768
1851
  *
769
1852
  * @see {@link toJsonSchemaDocument} for a single root
770
1853
  *
@@ -930,8 +2013,18 @@ export declare function fromRepresentations(document: MultiDocument, options: {
930
2013
  *
931
2014
  * **Gotchas**
932
2015
  *
933
- * - Import is best-effort outside the exactly translated subset. Unsupported or ignored keywords are not covered by the
934
- * round-trip guarantee.
2016
+ * - `$dynamicRef`, `contains`, `dependentRequired`, `dependentSchemas`, `not`, active `if` / `then` / `else`,
2017
+ * `unevaluatedItems`, and `unevaluatedProperties` throw an `Unsupported JSON Schema keyword` error. Inactive
2018
+ * conditional keywords and `minContains` / `maxContains` without `contains` have no validation effect and are ignored.
2019
+ * - Objects and arrays used as `const` values or `enum` members throw an `Unsupported structured JSON Schema value`
2020
+ * error.
2021
+ * - Intersections of overlapping unions are limited to disjoint root-type partitions and finite primitive `anyOf`
2022
+ * literal sets. Other union intersections, including cases that would duplicate a nested choice, throw an
2023
+ * `Unsupported intersection of overlapping unions` error.
2024
+ * - Unknown extension keywords are ignored and their semantics are not enforced.
2025
+ * - Only direct local references to top-level definitions in the form `#/$defs/<escaped-token>` are supported. Root
2026
+ * references, external references, and pointers below a definition throw an `Unsupported reference` error. A direct
2027
+ * reference to a missing definition throws an `Invalid reference` error.
935
2028
  * - Built-in declarations and checks are reconstructed with importer-owned revivers.
936
2029
  * - Pattern constraints reached during translation cause an error by default. Use `patterns: "apply"` only for trusted
937
2030
  * documents, or `patterns: "ignore"` to weaken validation explicitly; ignored patterns are outside the round-trip
@@ -956,9 +2049,20 @@ export declare function fromJsonSchemaDocument(document: JsonSchema.Document<"dr
956
2049
  *
957
2050
  * **Gotchas**
958
2051
  *
959
- * Only definitions reachable from a root are translated. Pattern constraints reached during translation cause an error
960
- * by default. Use `patterns: "apply"` only for trusted documents, or `patterns: "ignore"` to weaken validation explicitly.
961
- * Callback results are used directly, and exceptions raised by a callback pass through unchanged.
2052
+ * - Only definitions reachable from a root are translated.
2053
+ * - Unsupported standard validation and applicator keywords throw an `Unsupported JSON Schema keyword` error. Unknown
2054
+ * extension keywords are ignored and their semantics are not enforced.
2055
+ * - Objects and arrays used as `const` values or `enum` members throw an `Unsupported structured JSON Schema value`
2056
+ * error.
2057
+ * - Intersections of overlapping unions are limited to disjoint root-type partitions and finite primitive `anyOf`
2058
+ * literal sets. Other union intersections, including cases that would duplicate a nested choice, throw an
2059
+ * `Unsupported intersection of overlapping unions` error.
2060
+ * - Only direct local references to top-level definitions in the form `#/$defs/<escaped-token>` are supported. Root
2061
+ * references, external references, and pointers below a definition throw an `Unsupported reference` error. A direct
2062
+ * reference to a missing definition throws an `Invalid reference` error.
2063
+ * - Pattern constraints reached during translation cause an error by default. Use `patterns: "apply"` only for trusted
2064
+ * documents, or `patterns: "ignore"` to weaken validation explicitly.
2065
+ * - Callback results are used directly, and exceptions raised by a callback pass through unchanged.
962
2066
  *
963
2067
  * @see {@link fromJsonSchemaDocument} for a single root
964
2068
  * @see {@link toRepresentations} for converting the returned schema ASTs to a representation document