effect 4.0.1 → 4.0.3

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 (1085) hide show
  1. package/ai-docs/package.json +2 -2
  2. package/ai-docs/tsconfig.json +2 -1
  3. package/dist/Array.d.ts +339 -0
  4. package/dist/Array.d.ts.map +1 -1
  5. package/dist/Array.js +143 -3
  6. package/dist/Array.js.map +1 -1
  7. package/dist/BigDecimal.d.ts +88 -0
  8. package/dist/BigDecimal.d.ts.map +1 -1
  9. package/dist/BigDecimal.js +44 -0
  10. package/dist/BigDecimal.js.map +1 -1
  11. package/dist/BigInt.d.ts +68 -0
  12. package/dist/BigInt.d.ts.map +1 -1
  13. package/dist/BigInt.js +36 -0
  14. package/dist/BigInt.js.map +1 -1
  15. package/dist/Boolean.d.ts +34 -0
  16. package/dist/Boolean.d.ts.map +1 -1
  17. package/dist/Boolean.js +18 -0
  18. package/dist/Boolean.js.map +1 -1
  19. package/dist/Brand.d.ts +9 -0
  20. package/dist/Brand.d.ts.map +1 -1
  21. package/dist/Brand.js +6 -0
  22. package/dist/Brand.js.map +1 -1
  23. package/dist/ByteSize.d.ts +86 -0
  24. package/dist/ByteSize.d.ts.map +1 -1
  25. package/dist/ByteSize.js +51 -0
  26. package/dist/ByteSize.js.map +1 -1
  27. package/dist/Cache.d.ts +38 -1
  28. package/dist/Cache.d.ts.map +1 -1
  29. package/dist/Cache.js +27 -7
  30. package/dist/Cache.js.map +1 -1
  31. package/dist/Cause.d.ts +82 -0
  32. package/dist/Cause.d.ts.map +1 -1
  33. package/dist/Cause.js +60 -0
  34. package/dist/Cause.js.map +1 -1
  35. package/dist/Channel.d.ts +327 -4
  36. package/dist/Channel.d.ts.map +1 -1
  37. package/dist/Channel.js +168 -8
  38. package/dist/Channel.js.map +1 -1
  39. package/dist/ChannelSchema.d.ts +11 -0
  40. package/dist/ChannelSchema.d.ts.map +1 -1
  41. package/dist/ChannelSchema.js +6 -0
  42. package/dist/ChannelSchema.js.map +1 -1
  43. package/dist/Chunk.d.ts +192 -0
  44. package/dist/Chunk.d.ts.map +1 -1
  45. package/dist/Chunk.js +78 -0
  46. package/dist/Chunk.js.map +1 -1
  47. package/dist/Clock.d.ts +7 -0
  48. package/dist/Clock.d.ts.map +1 -1
  49. package/dist/Clock.js +5 -0
  50. package/dist/Clock.js.map +1 -1
  51. package/dist/Combiner.d.ts +10 -0
  52. package/dist/Combiner.d.ts.map +1 -1
  53. package/dist/Combiner.js +8 -0
  54. package/dist/Combiner.js.map +1 -1
  55. package/dist/Config.d.ts +52 -12
  56. package/dist/Config.d.ts.map +1 -1
  57. package/dist/Config.js +55 -5
  58. package/dist/Config.js.map +1 -1
  59. package/dist/ConfigProvider.d.ts +28 -0
  60. package/dist/ConfigProvider.d.ts.map +1 -1
  61. package/dist/ConfigProvider.js +19 -0
  62. package/dist/ConfigProvider.js.map +1 -1
  63. package/dist/Console.d.ts +22 -0
  64. package/dist/Console.d.ts.map +1 -1
  65. package/dist/Console.js +20 -0
  66. package/dist/Console.js.map +1 -1
  67. package/dist/Context.d.ts +50 -0
  68. package/dist/Context.d.ts.map +1 -1
  69. package/dist/Context.js +24 -3
  70. package/dist/Context.js.map +1 -1
  71. package/dist/Cron.d.ts +16 -0
  72. package/dist/Cron.d.ts.map +1 -1
  73. package/dist/Cron.js +26 -1
  74. package/dist/Cron.js.map +1 -1
  75. package/dist/Crypto.d.ts +38 -5
  76. package/dist/Crypto.d.ts.map +1 -1
  77. package/dist/Crypto.js +11 -2
  78. package/dist/Crypto.js.map +1 -1
  79. package/dist/Data.d.ts +13 -0
  80. package/dist/Data.d.ts.map +1 -1
  81. package/dist/Data.js +5 -0
  82. package/dist/Data.js.map +1 -1
  83. package/dist/DateTime.d.ts +180 -6
  84. package/dist/DateTime.d.ts.map +1 -1
  85. package/dist/DateTime.js +98 -6
  86. package/dist/DateTime.js.map +1 -1
  87. package/dist/Deferred.d.ts +51 -0
  88. package/dist/Deferred.d.ts.map +1 -1
  89. package/dist/Deferred.js +22 -0
  90. package/dist/Deferred.js.map +1 -1
  91. package/dist/Differ.d.ts +2 -0
  92. package/dist/Differ.d.ts.map +1 -1
  93. package/dist/Differ.js +1 -0
  94. package/dist/Duration.d.ts +96 -6
  95. package/dist/Duration.d.ts.map +1 -1
  96. package/dist/Duration.js +80 -8
  97. package/dist/Duration.js.map +1 -1
  98. package/dist/Effect.d.ts +527 -0
  99. package/dist/Effect.d.ts.map +1 -1
  100. package/dist/Effect.js +240 -5
  101. package/dist/Effect.js.map +1 -1
  102. package/dist/Effectable.d.ts +4 -0
  103. package/dist/Effectable.d.ts.map +1 -1
  104. package/dist/Effectable.js +3 -0
  105. package/dist/Effectable.js.map +1 -1
  106. package/dist/Equal.d.ts +8 -0
  107. package/dist/Equal.d.ts.map +1 -1
  108. package/dist/Equal.js +9 -1
  109. package/dist/Equal.js.map +1 -1
  110. package/dist/Equivalence.d.ts +21 -0
  111. package/dist/Equivalence.d.ts.map +1 -1
  112. package/dist/Equivalence.js +16 -0
  113. package/dist/Equivalence.js.map +1 -1
  114. package/dist/ErrorReporter.d.ts +36 -0
  115. package/dist/ErrorReporter.d.ts.map +1 -1
  116. package/dist/ErrorReporter.js +11 -0
  117. package/dist/ErrorReporter.js.map +1 -1
  118. package/dist/ExecutionPlan.d.ts +49 -8
  119. package/dist/ExecutionPlan.d.ts.map +1 -1
  120. package/dist/ExecutionPlan.js +7 -0
  121. package/dist/ExecutionPlan.js.map +1 -1
  122. package/dist/Exit.d.ts +40 -0
  123. package/dist/Exit.d.ts.map +1 -1
  124. package/dist/Exit.js +27 -0
  125. package/dist/Exit.js.map +1 -1
  126. package/dist/Fiber.d.ts +20 -0
  127. package/dist/Fiber.d.ts.map +1 -1
  128. package/dist/Fiber.js +11 -0
  129. package/dist/Fiber.js.map +1 -1
  130. package/dist/FiberHandle.d.ts +21 -0
  131. package/dist/FiberHandle.d.ts.map +1 -1
  132. package/dist/FiberHandle.js +21 -4
  133. package/dist/FiberHandle.js.map +1 -1
  134. package/dist/FiberMap.d.ts +35 -0
  135. package/dist/FiberMap.d.ts.map +1 -1
  136. package/dist/FiberMap.js +19 -0
  137. package/dist/FiberMap.js.map +1 -1
  138. package/dist/FiberSet.d.ts +20 -0
  139. package/dist/FiberSet.d.ts.map +1 -1
  140. package/dist/FiberSet.js +14 -0
  141. package/dist/FiberSet.js.map +1 -1
  142. package/dist/FileSystem.d.ts +59 -2
  143. package/dist/FileSystem.d.ts.map +1 -1
  144. package/dist/FileSystem.js +8 -0
  145. package/dist/FileSystem.js.map +1 -1
  146. package/dist/Filter.d.ts +55 -0
  147. package/dist/Filter.d.ts.map +1 -1
  148. package/dist/Filter.js +28 -0
  149. package/dist/Filter.js.map +1 -1
  150. package/dist/Formatter.d.ts +3 -0
  151. package/dist/Formatter.d.ts.map +1 -1
  152. package/dist/Formatter.js +39 -1
  153. package/dist/Formatter.js.map +1 -1
  154. package/dist/Function.d.ts +30 -0
  155. package/dist/Function.d.ts.map +1 -1
  156. package/dist/Function.js +20 -0
  157. package/dist/Function.js.map +1 -1
  158. package/dist/Graph.d.ts +247 -12
  159. package/dist/Graph.d.ts.map +1 -1
  160. package/dist/Graph.js +149 -28
  161. package/dist/Graph.js.map +1 -1
  162. package/dist/HKT.d.ts +5 -0
  163. package/dist/HKT.d.ts.map +1 -1
  164. package/dist/Hash.d.ts +14 -0
  165. package/dist/Hash.d.ts.map +1 -1
  166. package/dist/Hash.js +12 -0
  167. package/dist/Hash.js.map +1 -1
  168. package/dist/HashMap.d.ts +91 -0
  169. package/dist/HashMap.d.ts.map +1 -1
  170. package/dist/HashMap.js +39 -0
  171. package/dist/HashMap.js.map +1 -1
  172. package/dist/HashRing.d.ts +17 -0
  173. package/dist/HashRing.d.ts.map +1 -1
  174. package/dist/HashRing.js +9 -0
  175. package/dist/HashRing.js.map +1 -1
  176. package/dist/HashSet.d.ts +49 -0
  177. package/dist/HashSet.d.ts.map +1 -1
  178. package/dist/HashSet.js +19 -0
  179. package/dist/HashSet.js.map +1 -1
  180. package/dist/Inspectable.d.ts +7 -0
  181. package/dist/Inspectable.d.ts.map +1 -1
  182. package/dist/Inspectable.js +6 -0
  183. package/dist/Inspectable.js.map +1 -1
  184. package/dist/Iterable.d.ts +127 -0
  185. package/dist/Iterable.d.ts.map +1 -1
  186. package/dist/Iterable.js +51 -0
  187. package/dist/Iterable.js.map +1 -1
  188. package/dist/JsonPatch.d.ts +4 -0
  189. package/dist/JsonPatch.d.ts.map +1 -1
  190. package/dist/JsonPatch.js +3 -0
  191. package/dist/JsonPatch.js.map +1 -1
  192. package/dist/JsonPointer.d.ts +5 -0
  193. package/dist/JsonPointer.d.ts.map +1 -1
  194. package/dist/JsonPointer.js +5 -0
  195. package/dist/JsonPointer.js.map +1 -1
  196. package/dist/JsonSchema.d.ts +16 -0
  197. package/dist/JsonSchema.d.ts.map +1 -1
  198. package/dist/JsonSchema.js +11 -0
  199. package/dist/JsonSchema.js.map +1 -1
  200. package/dist/Latch.d.ts +14 -0
  201. package/dist/Latch.d.ts.map +1 -1
  202. package/dist/Latch.js +10 -0
  203. package/dist/Latch.js.map +1 -1
  204. package/dist/Layer.d.ts +100 -0
  205. package/dist/Layer.d.ts.map +1 -1
  206. package/dist/Layer.js +45 -1
  207. package/dist/Layer.js.map +1 -1
  208. package/dist/LayerMap.d.ts +7 -0
  209. package/dist/LayerMap.d.ts.map +1 -1
  210. package/dist/LayerMap.js +4 -0
  211. package/dist/LayerMap.js.map +1 -1
  212. package/dist/LayerRef.d.ts +5 -0
  213. package/dist/LayerRef.d.ts.map +1 -1
  214. package/dist/LayerRef.js +3 -0
  215. package/dist/LayerRef.js.map +1 -1
  216. package/dist/LogLevel.d.ts +20 -0
  217. package/dist/LogLevel.d.ts.map +1 -1
  218. package/dist/LogLevel.js +9 -0
  219. package/dist/LogLevel.js.map +1 -1
  220. package/dist/Logger.d.ts +25 -0
  221. package/dist/Logger.d.ts.map +1 -1
  222. package/dist/Logger.js +30 -4
  223. package/dist/Logger.js.map +1 -1
  224. package/dist/ManagedRuntime.d.ts +5 -0
  225. package/dist/ManagedRuntime.d.ts.map +1 -1
  226. package/dist/ManagedRuntime.js +9 -1
  227. package/dist/ManagedRuntime.js.map +1 -1
  228. package/dist/Match.d.ts +51 -0
  229. package/dist/Match.d.ts.map +1 -1
  230. package/dist/Match.js +39 -0
  231. package/dist/Match.js.map +1 -1
  232. package/dist/Metric.d.ts +59 -0
  233. package/dist/Metric.d.ts.map +1 -1
  234. package/dist/Metric.js +31 -0
  235. package/dist/Metric.js.map +1 -1
  236. package/dist/MutableHashMap.d.ts +32 -0
  237. package/dist/MutableHashMap.d.ts.map +1 -1
  238. package/dist/MutableHashMap.js +16 -0
  239. package/dist/MutableHashMap.js.map +1 -1
  240. package/dist/MutableHashSet.d.ts +16 -0
  241. package/dist/MutableHashSet.d.ts.map +1 -1
  242. package/dist/MutableHashSet.js +10 -0
  243. package/dist/MutableHashSet.js.map +1 -1
  244. package/dist/MutableList.d.ts +20 -0
  245. package/dist/MutableList.d.ts.map +1 -1
  246. package/dist/MutableList.js +18 -0
  247. package/dist/MutableList.js.map +1 -1
  248. package/dist/MutableRef.d.ts +31 -0
  249. package/dist/MutableRef.d.ts.map +1 -1
  250. package/dist/MutableRef.js +17 -0
  251. package/dist/MutableRef.js.map +1 -1
  252. package/dist/Newtype.d.ts +9 -0
  253. package/dist/Newtype.d.ts.map +1 -1
  254. package/dist/Newtype.js +6 -0
  255. package/dist/Newtype.js.map +1 -1
  256. package/dist/NonEmptyIterable.d.ts +4 -0
  257. package/dist/NonEmptyIterable.d.ts.map +1 -1
  258. package/dist/NonEmptyIterable.js +2 -0
  259. package/dist/NonEmptyIterable.js.map +1 -1
  260. package/dist/Number.d.ts +61 -0
  261. package/dist/Number.d.ts.map +1 -1
  262. package/dist/Number.js +31 -0
  263. package/dist/Number.js.map +1 -1
  264. package/dist/Optic.d.ts +41 -0
  265. package/dist/Optic.d.ts.map +1 -1
  266. package/dist/Optic.js +20 -0
  267. package/dist/Optic.js.map +1 -1
  268. package/dist/Option.d.ts +134 -0
  269. package/dist/Option.d.ts.map +1 -1
  270. package/dist/Option.js +61 -0
  271. package/dist/Option.js.map +1 -1
  272. package/dist/Order.d.ts +29 -0
  273. package/dist/Order.d.ts.map +1 -1
  274. package/dist/Order.js +24 -0
  275. package/dist/Order.js.map +1 -1
  276. package/dist/Ordering.d.ts +7 -0
  277. package/dist/Ordering.d.ts.map +1 -1
  278. package/dist/Ordering.js +3 -0
  279. package/dist/Ordering.js.map +1 -1
  280. package/dist/PartitionedSemaphore.d.ts +24 -0
  281. package/dist/PartitionedSemaphore.d.ts.map +1 -1
  282. package/dist/PartitionedSemaphore.js +47 -21
  283. package/dist/PartitionedSemaphore.js.map +1 -1
  284. package/dist/Path.d.ts +6 -0
  285. package/dist/Path.d.ts.map +1 -1
  286. package/dist/Path.js +4 -0
  287. package/dist/Path.js.map +1 -1
  288. package/dist/Pipeable.d.ts +7 -0
  289. package/dist/Pipeable.d.ts.map +1 -1
  290. package/dist/Pipeable.js +5 -0
  291. package/dist/Pipeable.js.map +1 -1
  292. package/dist/PlatformError.d.ts +8 -0
  293. package/dist/PlatformError.d.ts.map +1 -1
  294. package/dist/PlatformError.js +7 -0
  295. package/dist/PlatformError.js.map +1 -1
  296. package/dist/Pool.d.ts +19 -0
  297. package/dist/Pool.d.ts.map +1 -1
  298. package/dist/Pool.js +8 -1
  299. package/dist/Pool.js.map +1 -1
  300. package/dist/Predicate.d.ts +84 -0
  301. package/dist/Predicate.d.ts.map +1 -1
  302. package/dist/Predicate.js +48 -0
  303. package/dist/Predicate.js.map +1 -1
  304. package/dist/PrimaryKey.d.ts +5 -0
  305. package/dist/PrimaryKey.d.ts.map +1 -1
  306. package/dist/PrimaryKey.js +4 -0
  307. package/dist/PrimaryKey.js.map +1 -1
  308. package/dist/PubSub.d.ts +67 -5
  309. package/dist/PubSub.d.ts.map +1 -1
  310. package/dist/PubSub.js +60 -8
  311. package/dist/PubSub.js.map +1 -1
  312. package/dist/Pull.d.ts +20 -0
  313. package/dist/Pull.d.ts.map +1 -1
  314. package/dist/Pull.js +10 -0
  315. package/dist/Pull.js.map +1 -1
  316. package/dist/Queue.d.ts +60 -0
  317. package/dist/Queue.d.ts.map +1 -1
  318. package/dist/Queue.js +58 -8
  319. package/dist/Queue.js.map +1 -1
  320. package/dist/Random.d.ts +13 -0
  321. package/dist/Random.d.ts.map +1 -1
  322. package/dist/Random.js +9 -0
  323. package/dist/Random.js.map +1 -1
  324. package/dist/RcMap.d.ts +23 -0
  325. package/dist/RcMap.d.ts.map +1 -1
  326. package/dist/RcMap.js +8 -0
  327. package/dist/RcMap.js.map +1 -1
  328. package/dist/RcRef.d.ts +6 -0
  329. package/dist/RcRef.d.ts.map +1 -1
  330. package/dist/RcRef.js +3 -0
  331. package/dist/RcRef.js.map +1 -1
  332. package/dist/Record.d.ts +100 -0
  333. package/dist/Record.d.ts.map +1 -1
  334. package/dist/Record.js +43 -0
  335. package/dist/Record.js.map +1 -1
  336. package/dist/Redactable.d.ts +6 -0
  337. package/dist/Redactable.d.ts.map +1 -1
  338. package/dist/Redactable.js +4 -0
  339. package/dist/Redactable.js.map +1 -1
  340. package/dist/Redacted.d.ts +8 -0
  341. package/dist/Redacted.d.ts.map +1 -1
  342. package/dist/Redacted.js +6 -0
  343. package/dist/Redacted.js.map +1 -1
  344. package/dist/Reducer.d.ts +4 -0
  345. package/dist/Reducer.d.ts.map +1 -1
  346. package/dist/Reducer.js +3 -0
  347. package/dist/Reducer.js.map +1 -1
  348. package/dist/Ref.d.ts +20 -0
  349. package/dist/Ref.d.ts.map +1 -1
  350. package/dist/Ref.js +16 -0
  351. package/dist/Ref.js.map +1 -1
  352. package/dist/References.d.ts +21 -0
  353. package/dist/References.d.ts.map +1 -1
  354. package/dist/References.js +19 -0
  355. package/dist/References.js.map +1 -1
  356. package/dist/RegExp.d.ts +3 -0
  357. package/dist/RegExp.d.ts.map +1 -1
  358. package/dist/RegExp.js +4 -0
  359. package/dist/RegExp.js.map +1 -1
  360. package/dist/Request.d.ts +32 -0
  361. package/dist/Request.d.ts.map +1 -1
  362. package/dist/Request.js +12 -0
  363. package/dist/Request.js.map +1 -1
  364. package/dist/RequestResolver.d.ts +42 -0
  365. package/dist/RequestResolver.d.ts.map +1 -1
  366. package/dist/RequestResolver.js +27 -6
  367. package/dist/RequestResolver.js.map +1 -1
  368. package/dist/Resource.d.ts +6 -0
  369. package/dist/Resource.d.ts.map +1 -1
  370. package/dist/Resource.js +6 -0
  371. package/dist/Resource.js.map +1 -1
  372. package/dist/Result.d.ts +91 -0
  373. package/dist/Result.d.ts.map +1 -1
  374. package/dist/Result.js +41 -0
  375. package/dist/Result.js.map +1 -1
  376. package/dist/Runtime.d.ts +9 -0
  377. package/dist/Runtime.d.ts.map +1 -1
  378. package/dist/Runtime.js +7 -0
  379. package/dist/Runtime.js.map +1 -1
  380. package/dist/Schedule.d.ts +57 -0
  381. package/dist/Schedule.d.ts.map +1 -1
  382. package/dist/Schedule.js +32 -0
  383. package/dist/Schedule.js.map +1 -1
  384. package/dist/Scheduler.d.ts +7 -0
  385. package/dist/Scheduler.d.ts.map +1 -1
  386. package/dist/Scheduler.js +5 -0
  387. package/dist/Scheduler.js.map +1 -1
  388. package/dist/Schema.d.ts +969 -2
  389. package/dist/Schema.d.ts.map +1 -1
  390. package/dist/Schema.js +635 -5
  391. package/dist/Schema.js.map +1 -1
  392. package/dist/SchemaAST.d.ts +107 -0
  393. package/dist/SchemaAST.d.ts.map +1 -1
  394. package/dist/SchemaAST.js +81 -1
  395. package/dist/SchemaAST.js.map +1 -1
  396. package/dist/SchemaGetter.d.ts +69 -2
  397. package/dist/SchemaGetter.d.ts.map +1 -1
  398. package/dist/SchemaGetter.js +63 -4
  399. package/dist/SchemaGetter.js.map +1 -1
  400. package/dist/SchemaIssue.d.ts +33 -0
  401. package/dist/SchemaIssue.d.ts.map +1 -1
  402. package/dist/SchemaIssue.js +18 -0
  403. package/dist/SchemaIssue.js.map +1 -1
  404. package/dist/SchemaParser.d.ts +25 -0
  405. package/dist/SchemaParser.d.ts.map +1 -1
  406. package/dist/SchemaParser.js +26 -0
  407. package/dist/SchemaParser.js.map +1 -1
  408. package/dist/SchemaRepresentation.d.ts +147 -0
  409. package/dist/SchemaRepresentation.d.ts.map +1 -1
  410. package/dist/SchemaRepresentation.js +99 -0
  411. package/dist/SchemaRepresentation.js.map +1 -1
  412. package/dist/SchemaTransformation.d.ts +53 -0
  413. package/dist/SchemaTransformation.d.ts.map +1 -1
  414. package/dist/SchemaTransformation.js +46 -0
  415. package/dist/SchemaTransformation.js.map +1 -1
  416. package/dist/Scope.d.ts +19 -0
  417. package/dist/Scope.d.ts.map +1 -1
  418. package/dist/Scope.js +12 -0
  419. package/dist/Scope.js.map +1 -1
  420. package/dist/ScopedCache.d.ts +34 -0
  421. package/dist/ScopedCache.d.ts.map +1 -1
  422. package/dist/ScopedCache.js +26 -3
  423. package/dist/ScopedCache.js.map +1 -1
  424. package/dist/ScopedRef.d.ts +9 -0
  425. package/dist/ScopedRef.d.ts.map +1 -1
  426. package/dist/ScopedRef.js +6 -0
  427. package/dist/ScopedRef.js.map +1 -1
  428. package/dist/Semaphore.d.ts +26 -0
  429. package/dist/Semaphore.d.ts.map +1 -1
  430. package/dist/Semaphore.js +10 -0
  431. package/dist/Semaphore.js.map +1 -1
  432. package/dist/Sink.d.ts +125 -1
  433. package/dist/Sink.d.ts.map +1 -1
  434. package/dist/Sink.js +75 -1
  435. package/dist/Sink.js.map +1 -1
  436. package/dist/StandardSchema.d.ts +1 -0
  437. package/dist/StandardSchema.d.ts.map +1 -1
  438. package/dist/StandardSchema.js +1 -0
  439. package/dist/Stdio.d.ts +14 -1
  440. package/dist/Stdio.d.ts.map +1 -1
  441. package/dist/Stdio.js +6 -0
  442. package/dist/Stdio.js.map +1 -1
  443. package/dist/Stream.d.ts +569 -11
  444. package/dist/Stream.d.ts.map +1 -1
  445. package/dist/Stream.js +266 -18
  446. package/dist/Stream.js.map +1 -1
  447. package/dist/String.d.ts +87 -0
  448. package/dist/String.d.ts.map +1 -1
  449. package/dist/String.js +61 -0
  450. package/dist/String.js.map +1 -1
  451. package/dist/Struct.d.ts +46 -0
  452. package/dist/Struct.d.ts.map +1 -1
  453. package/dist/Struct.js +19 -0
  454. package/dist/Struct.js.map +1 -1
  455. package/dist/SubscriptionRef.d.ts +65 -0
  456. package/dist/SubscriptionRef.d.ts.map +1 -1
  457. package/dist/SubscriptionRef.js +25 -0
  458. package/dist/SubscriptionRef.js.map +1 -1
  459. package/dist/Symbol.d.ts +2 -0
  460. package/dist/Symbol.d.ts.map +1 -1
  461. package/dist/Symbol.js +2 -0
  462. package/dist/Symbol.js.map +1 -1
  463. package/dist/SynchronizedRef.d.ts +63 -0
  464. package/dist/SynchronizedRef.d.ts.map +1 -1
  465. package/dist/SynchronizedRef.js +24 -0
  466. package/dist/SynchronizedRef.js.map +1 -1
  467. package/dist/Take.d.ts +3 -0
  468. package/dist/Take.d.ts.map +1 -1
  469. package/dist/Take.js +1 -0
  470. package/dist/Take.js.map +1 -1
  471. package/dist/Terminal.d.ts +8 -0
  472. package/dist/Terminal.d.ts.map +1 -1
  473. package/dist/Terminal.js +4 -0
  474. package/dist/Terminal.js.map +1 -1
  475. package/dist/Tracer.d.ts +23 -0
  476. package/dist/Tracer.d.ts.map +1 -1
  477. package/dist/Tracer.js +12 -0
  478. package/dist/Tracer.js.map +1 -1
  479. package/dist/Trie.d.ts +68 -0
  480. package/dist/Trie.d.ts.map +1 -1
  481. package/dist/Trie.js +28 -0
  482. package/dist/Trie.js.map +1 -1
  483. package/dist/Tuple.d.ts +38 -0
  484. package/dist/Tuple.d.ts.map +1 -1
  485. package/dist/Tuple.js +18 -0
  486. package/dist/Tuple.js.map +1 -1
  487. package/dist/TxChunk.d.ts +52 -0
  488. package/dist/TxChunk.d.ts.map +1 -1
  489. package/dist/TxChunk.js +23 -0
  490. package/dist/TxChunk.js.map +1 -1
  491. package/dist/TxDeferred.d.ts +15 -0
  492. package/dist/TxDeferred.d.ts.map +1 -1
  493. package/dist/TxDeferred.js +8 -0
  494. package/dist/TxDeferred.js.map +1 -1
  495. package/dist/TxHashMap.d.ts +83 -0
  496. package/dist/TxHashMap.d.ts.map +1 -1
  497. package/dist/TxHashMap.js +52 -7
  498. package/dist/TxHashMap.js.map +1 -1
  499. package/dist/TxHashSet.d.ts +51 -0
  500. package/dist/TxHashSet.d.ts.map +1 -1
  501. package/dist/TxHashSet.js +29 -4
  502. package/dist/TxHashSet.js.map +1 -1
  503. package/dist/TxPriorityQueue.d.ts +30 -0
  504. package/dist/TxPriorityQueue.d.ts.map +1 -1
  505. package/dist/TxPriorityQueue.js +22 -1
  506. package/dist/TxPriorityQueue.js.map +1 -1
  507. package/dist/TxPubSub.d.ts +25 -0
  508. package/dist/TxPubSub.d.ts.map +1 -1
  509. package/dist/TxPubSub.js +19 -0
  510. package/dist/TxPubSub.js.map +1 -1
  511. package/dist/TxQueue.d.ts +51 -0
  512. package/dist/TxQueue.d.ts.map +1 -1
  513. package/dist/TxQueue.js +30 -0
  514. package/dist/TxQueue.js.map +1 -1
  515. package/dist/TxReentrantLock.d.ts +24 -0
  516. package/dist/TxReentrantLock.d.ts.map +1 -1
  517. package/dist/TxReentrantLock.js +32 -18
  518. package/dist/TxReentrantLock.js.map +1 -1
  519. package/dist/TxRef.d.ts +14 -0
  520. package/dist/TxRef.d.ts.map +1 -1
  521. package/dist/TxRef.js +7 -0
  522. package/dist/TxRef.js.map +1 -1
  523. package/dist/TxSemaphore.d.ts +25 -0
  524. package/dist/TxSemaphore.d.ts.map +1 -1
  525. package/dist/TxSemaphore.js +29 -13
  526. package/dist/TxSemaphore.js.map +1 -1
  527. package/dist/TxSubscriptionRef.d.ts +25 -0
  528. package/dist/TxSubscriptionRef.d.ts.map +1 -1
  529. package/dist/TxSubscriptionRef.js +12 -0
  530. package/dist/TxSubscriptionRef.js.map +1 -1
  531. package/dist/Types.d.ts +36 -0
  532. package/dist/Types.d.ts.map +1 -1
  533. package/dist/Types.js +1 -0
  534. package/dist/UndefinedOr.d.ts +15 -0
  535. package/dist/UndefinedOr.d.ts.map +1 -1
  536. package/dist/UndefinedOr.js +9 -0
  537. package/dist/UndefinedOr.js.map +1 -1
  538. package/dist/Unify.d.ts +15 -0
  539. package/dist/Unify.d.ts.map +1 -1
  540. package/dist/Unify.js +2 -0
  541. package/dist/Unify.js.map +1 -1
  542. package/dist/Utils.d.ts +4 -0
  543. package/dist/Utils.d.ts.map +1 -1
  544. package/dist/Utils.js +1 -0
  545. package/dist/Utils.js.map +1 -1
  546. package/dist/Version.d.ts +26 -0
  547. package/dist/Version.d.ts.map +1 -0
  548. package/dist/Version.js +36 -0
  549. package/dist/Version.js.map +1 -0
  550. package/dist/ai/Chat.js +1 -1
  551. package/dist/ai/Chat.js.map +1 -1
  552. package/dist/ai/DecisionModel.d.ts +22 -0
  553. package/dist/ai/DecisionModel.d.ts.map +1 -1
  554. package/dist/ai/DecisionModel.js +22 -4
  555. package/dist/ai/DecisionModel.js.map +1 -1
  556. package/dist/ai/LanguageModel.d.ts.map +1 -1
  557. package/dist/ai/LanguageModel.js +14 -13
  558. package/dist/ai/LanguageModel.js.map +1 -1
  559. package/dist/ai/McpServer.d.ts +38 -11
  560. package/dist/ai/McpServer.d.ts.map +1 -1
  561. package/dist/ai/McpServer.js +276 -190
  562. package/dist/ai/McpServer.js.map +1 -1
  563. package/dist/ai/Telemetry.d.ts +49 -41
  564. package/dist/ai/Telemetry.d.ts.map +1 -1
  565. package/dist/ai/Telemetry.js +6 -8
  566. package/dist/ai/Telemetry.js.map +1 -1
  567. package/dist/ai/internal/mcpProtocol/v2026_07_28.js +5 -0
  568. package/dist/ai/internal/mcpProtocol/v2026_07_28.js.map +1 -1
  569. package/dist/ai/internal/mcpProtocol.js.map +1 -1
  570. package/dist/ai/internal/mcpRuntime.js +80 -46
  571. package/dist/ai/internal/mcpRuntime.js.map +1 -1
  572. package/dist/ai/internal/mcpStatefulRuntime.js +1 -0
  573. package/dist/ai/internal/mcpStatefulRuntime.js.map +1 -1
  574. package/dist/cli/CliOutput.d.ts +27 -0
  575. package/dist/cli/CliOutput.d.ts.map +1 -1
  576. package/dist/cli/CliOutput.js +33 -10
  577. package/dist/cli/CliOutput.js.map +1 -1
  578. package/dist/cli/Command.d.ts.map +1 -1
  579. package/dist/cli/Command.js +6 -3
  580. package/dist/cli/Command.js.map +1 -1
  581. package/dist/cli/Completions.d.ts +3 -3
  582. package/dist/cli/Completions.d.ts.map +1 -1
  583. package/dist/cli/Completions.js +8 -5
  584. package/dist/cli/Completions.js.map +1 -1
  585. package/dist/cli/GlobalFlag.d.ts +5 -4
  586. package/dist/cli/GlobalFlag.d.ts.map +1 -1
  587. package/dist/cli/GlobalFlag.js +3 -3
  588. package/dist/cli/GlobalFlag.js.map +1 -1
  589. package/dist/cli/Prompt.d.ts +17 -1
  590. package/dist/cli/Prompt.d.ts.map +1 -1
  591. package/dist/cli/Prompt.js +119 -114
  592. package/dist/cli/Prompt.js.map +1 -1
  593. package/dist/cli/internal/ansi.d.ts +0 -1
  594. package/dist/cli/internal/ansi.d.ts.map +1 -1
  595. package/dist/cli/internal/ansi.js +20 -3
  596. package/dist/cli/internal/ansi.js.map +1 -1
  597. package/dist/cli/internal/completions/powershell.d.ts +2 -0
  598. package/dist/cli/internal/completions/powershell.d.ts.map +1 -0
  599. package/dist/cli/internal/completions/powershell.js +273 -0
  600. package/dist/cli/internal/completions/powershell.js.map +1 -0
  601. package/dist/cli/internal/completions/zsh.js +3 -2
  602. package/dist/cli/internal/completions/zsh.js.map +1 -1
  603. package/dist/cli/internal/wizard.d.ts +3 -3
  604. package/dist/cli/internal/wizard.d.ts.map +1 -1
  605. package/dist/cli/internal/wizard.js +21 -18
  606. package/dist/cli/internal/wizard.js.map +1 -1
  607. package/dist/cluster/ClusterSchema.d.ts +28 -0
  608. package/dist/cluster/ClusterSchema.d.ts.map +1 -1
  609. package/dist/cluster/ClusterSchema.js +30 -0
  610. package/dist/cluster/ClusterSchema.js.map +1 -1
  611. package/dist/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  612. package/dist/cluster/ClusterWorkflowEngine.js +10 -18
  613. package/dist/cluster/ClusterWorkflowEngine.js.map +1 -1
  614. package/dist/cluster/K8sHttpClient.d.ts.map +1 -1
  615. package/dist/cluster/K8sHttpClient.js +5 -2
  616. package/dist/cluster/K8sHttpClient.js.map +1 -1
  617. package/dist/cluster/MessageStorage.d.ts +18 -3
  618. package/dist/cluster/MessageStorage.d.ts.map +1 -1
  619. package/dist/cluster/MessageStorage.js +31 -11
  620. package/dist/cluster/MessageStorage.js.map +1 -1
  621. package/dist/cluster/Runners.d.ts.map +1 -1
  622. package/dist/cluster/Runners.js +8 -2
  623. package/dist/cluster/Runners.js.map +1 -1
  624. package/dist/cluster/Sharding.d.ts.map +1 -1
  625. package/dist/cluster/Sharding.js +181 -62
  626. package/dist/cluster/Sharding.js.map +1 -1
  627. package/dist/cluster/SqlMessageStorage.d.ts +59 -19
  628. package/dist/cluster/SqlMessageStorage.d.ts.map +1 -1
  629. package/dist/cluster/SqlMessageStorage.js +84 -55
  630. package/dist/cluster/SqlMessageStorage.js.map +1 -1
  631. package/dist/cluster/SqlRunnerStorage.d.ts +68 -19
  632. package/dist/cluster/SqlRunnerStorage.d.ts.map +1 -1
  633. package/dist/cluster/SqlRunnerStorage.js +191 -113
  634. package/dist/cluster/SqlRunnerStorage.js.map +1 -1
  635. package/dist/cluster/internal/entityManager.js +104 -37
  636. package/dist/cluster/internal/entityManager.js.map +1 -1
  637. package/dist/encoding/Base64.d.ts +4 -0
  638. package/dist/encoding/Base64.d.ts.map +1 -1
  639. package/dist/encoding/Base64.js +4 -0
  640. package/dist/encoding/Base64.js.map +1 -1
  641. package/dist/encoding/Base64Url.d.ts +4 -0
  642. package/dist/encoding/Base64Url.d.ts.map +1 -1
  643. package/dist/encoding/Base64Url.js +4 -0
  644. package/dist/encoding/Base64Url.js.map +1 -1
  645. package/dist/encoding/EncodingError.d.ts +4 -0
  646. package/dist/encoding/EncodingError.d.ts.map +1 -1
  647. package/dist/encoding/EncodingError.js +4 -0
  648. package/dist/encoding/EncodingError.js.map +1 -1
  649. package/dist/encoding/Hex.d.ts +5 -0
  650. package/dist/encoding/Hex.d.ts.map +1 -1
  651. package/dist/encoding/Hex.js +5 -0
  652. package/dist/encoding/Hex.js.map +1 -1
  653. package/dist/encoding/Toml.js +2 -2
  654. package/dist/encoding/Toml.js.map +1 -1
  655. package/dist/encoding/Yaml.d.ts.map +1 -1
  656. package/dist/encoding/Yaml.js +6 -4
  657. package/dist/encoding/Yaml.js.map +1 -1
  658. package/dist/encoding/index.d.ts +4 -0
  659. package/dist/encoding/index.d.ts.map +1 -1
  660. package/dist/encoding/index.js +4 -0
  661. package/dist/encoding/index.js.map +1 -1
  662. package/dist/eventlog/SqlEventJournal.js +8 -4
  663. package/dist/eventlog/SqlEventJournal.js.map +1 -1
  664. package/dist/eventlog/SqlEventLogServerUnencrypted.d.ts +27 -10
  665. package/dist/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
  666. package/dist/eventlog/SqlEventLogServerUnencrypted.js +49 -7
  667. package/dist/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
  668. package/dist/http/FindMyWay/internal/router.js +3 -6
  669. package/dist/http/FindMyWay/internal/router.js.map +1 -1
  670. package/dist/http/Headers.d.ts +3 -1
  671. package/dist/http/Headers.d.ts.map +1 -1
  672. package/dist/http/Headers.js +4 -2
  673. package/dist/http/Headers.js.map +1 -1
  674. package/dist/http/HttpClient.d.ts +15 -0
  675. package/dist/http/HttpClient.d.ts.map +1 -1
  676. package/dist/http/HttpClient.js +79 -23
  677. package/dist/http/HttpClient.js.map +1 -1
  678. package/dist/http/HttpClientResponse.js +3 -1
  679. package/dist/http/HttpClientResponse.js.map +1 -1
  680. package/dist/http/HttpEffect.d.ts +3 -0
  681. package/dist/http/HttpEffect.d.ts.map +1 -1
  682. package/dist/http/HttpEffect.js +5 -2
  683. package/dist/http/HttpEffect.js.map +1 -1
  684. package/dist/http/HttpMiddleware.d.ts +17 -0
  685. package/dist/http/HttpMiddleware.d.ts.map +1 -1
  686. package/dist/http/HttpMiddleware.js +56 -39
  687. package/dist/http/HttpMiddleware.js.map +1 -1
  688. package/dist/http/HttpServer.d.ts +1 -1
  689. package/dist/http/HttpServer.d.ts.map +1 -1
  690. package/dist/http/HttpTraceContext.d.ts.map +1 -1
  691. package/dist/http/HttpTraceContext.js +4 -2
  692. package/dist/http/HttpTraceContext.js.map +1 -1
  693. package/dist/http/internal/tracing.d.ts +2 -0
  694. package/dist/http/internal/tracing.d.ts.map +1 -0
  695. package/dist/http/internal/tracing.js +37 -0
  696. package/dist/http/internal/tracing.js.map +1 -0
  697. package/dist/http-api/HttpApiBuilder.js +2 -1
  698. package/dist/http-api/HttpApiBuilder.js.map +1 -1
  699. package/dist/http-api/HttpApiClient.d.ts +12 -3
  700. package/dist/http-api/HttpApiClient.d.ts.map +1 -1
  701. package/dist/http-api/HttpApiClient.js.map +1 -1
  702. package/dist/http-api/HttpApiError.d.ts +4 -3
  703. package/dist/http-api/HttpApiError.d.ts.map +1 -1
  704. package/dist/http-api/HttpApiError.js +7 -4
  705. package/dist/http-api/HttpApiError.js.map +1 -1
  706. package/dist/http-api/HttpApiSecurity.d.ts +8 -8
  707. package/dist/http-api/HttpApiSecurity.js +8 -8
  708. package/dist/index.d.ts +155 -0
  709. package/dist/index.d.ts.map +1 -1
  710. package/dist/index.js +155 -0
  711. package/dist/index.js.map +1 -1
  712. package/dist/internal/arbitrary/array.js +3 -3
  713. package/dist/internal/arbitrary/array.js.map +1 -1
  714. package/dist/internal/arbitrary/model.js +26 -11
  715. package/dist/internal/arbitrary/model.js.map +1 -1
  716. package/dist/internal/arbitrary/runner.js +8 -8
  717. package/dist/internal/arbitrary/runner.js.map +1 -1
  718. package/dist/internal/arbitrary/schema.js +4 -5
  719. package/dist/internal/arbitrary/schema.js.map +1 -1
  720. package/dist/internal/effect.js +53 -46
  721. package/dist/internal/effect.js.map +1 -1
  722. package/dist/internal/schedule.js +7 -5
  723. package/dist/internal/schedule.js.map +1 -1
  724. package/dist/internal/schema/standardSchema.js +2 -2
  725. package/dist/internal/schema/standardSchema.js.map +1 -1
  726. package/dist/internal/version.d.ts +2 -0
  727. package/dist/internal/version.d.ts.map +1 -0
  728. package/dist/internal/version.js +3 -0
  729. package/dist/internal/version.js.map +1 -0
  730. package/dist/net/AddressResolver.d.ts +145 -0
  731. package/dist/net/AddressResolver.d.ts.map +1 -0
  732. package/dist/net/AddressResolver.js +114 -0
  733. package/dist/net/AddressResolver.js.map +1 -0
  734. package/dist/net/Dns.d.ts +596 -0
  735. package/dist/net/Dns.d.ts.map +1 -0
  736. package/dist/net/Dns.js +549 -0
  737. package/dist/net/Dns.js.map +1 -0
  738. package/dist/net/Host.d.ts +320 -0
  739. package/dist/net/Host.d.ts.map +1 -0
  740. package/dist/net/Host.js +342 -0
  741. package/dist/net/Host.js.map +1 -0
  742. package/dist/net/IpInterface.d.ts +76 -3
  743. package/dist/net/IpInterface.d.ts.map +1 -1
  744. package/dist/net/IpInterface.js +53 -4
  745. package/dist/net/IpInterface.js.map +1 -1
  746. package/dist/net/IpNetwork.d.ts +82 -8
  747. package/dist/net/IpNetwork.d.ts.map +1 -1
  748. package/dist/net/IpNetwork.js +60 -4
  749. package/dist/net/IpNetwork.js.map +1 -1
  750. package/dist/net/NetAddress.d.ts +388 -35
  751. package/dist/net/NetAddress.d.ts.map +1 -1
  752. package/dist/net/NetAddress.js +350 -34
  753. package/dist/net/NetAddress.js.map +1 -1
  754. package/dist/net/index.d.ts +15 -0
  755. package/dist/net/index.d.ts.map +1 -1
  756. package/dist/net/index.js +15 -0
  757. package/dist/net/index.js.map +1 -1
  758. package/dist/observability/OtlpExporter.d.ts.map +1 -1
  759. package/dist/observability/OtlpExporter.js +5 -6
  760. package/dist/observability/OtlpExporter.js.map +1 -1
  761. package/dist/observability/OtlpLogger.d.ts.map +1 -1
  762. package/dist/observability/OtlpLogger.js +23 -27
  763. package/dist/observability/OtlpLogger.js.map +1 -1
  764. package/dist/observability/OtlpMetrics.d.ts +5 -3
  765. package/dist/observability/OtlpMetrics.d.ts.map +1 -1
  766. package/dist/observability/OtlpMetrics.js +36 -115
  767. package/dist/observability/OtlpMetrics.js.map +1 -1
  768. package/dist/observability/OtlpResource.d.ts +4 -3
  769. package/dist/observability/OtlpResource.d.ts.map +1 -1
  770. package/dist/observability/OtlpResource.js +20 -23
  771. package/dist/observability/OtlpResource.js.map +1 -1
  772. package/dist/observability/OtlpTracer.d.ts +1 -0
  773. package/dist/observability/OtlpTracer.d.ts.map +1 -1
  774. package/dist/observability/OtlpTracer.js +32 -36
  775. package/dist/observability/OtlpTracer.js.map +1 -1
  776. package/dist/observability/PrometheusMetrics.js +1 -0
  777. package/dist/observability/PrometheusMetrics.js.map +1 -1
  778. package/dist/observability/internal/otlpProtobuf.js +32 -1
  779. package/dist/observability/internal/otlpProtobuf.js.map +1 -1
  780. package/dist/persistence/PersistedQueue.d.ts +32 -3
  781. package/dist/persistence/PersistedQueue.d.ts.map +1 -1
  782. package/dist/persistence/PersistedQueue.js +75 -16
  783. package/dist/persistence/PersistedQueue.js.map +1 -1
  784. package/dist/reactivity/AsyncResult.d.ts +1 -1
  785. package/dist/reactivity/Atom.d.ts +5 -5
  786. package/dist/reactivity/Atom.d.ts.map +1 -1
  787. package/dist/reactivity/Atom.js +9 -5
  788. package/dist/reactivity/Atom.js.map +1 -1
  789. package/dist/reactivity/AtomHttpApi.d.ts +2 -2
  790. package/dist/reactivity/AtomHttpApi.d.ts.map +1 -1
  791. package/dist/reactivity/AtomRegistry.d.ts +8 -0
  792. package/dist/reactivity/AtomRegistry.d.ts.map +1 -1
  793. package/dist/reactivity/AtomRegistry.js.map +1 -1
  794. package/dist/rpc/RpcClient.d.ts +41 -7
  795. package/dist/rpc/RpcClient.d.ts.map +1 -1
  796. package/dist/rpc/RpcClient.js +50 -25
  797. package/dist/rpc/RpcClient.js.map +1 -1
  798. package/dist/rpc/RpcServer.d.ts +6 -0
  799. package/dist/rpc/RpcServer.d.ts.map +1 -1
  800. package/dist/rpc/RpcServer.js +59 -40
  801. package/dist/rpc/RpcServer.js.map +1 -1
  802. package/dist/rpc/internal/tracing.d.ts +2 -0
  803. package/dist/rpc/internal/tracing.d.ts.map +1 -0
  804. package/dist/rpc/internal/tracing.js +18 -0
  805. package/dist/rpc/internal/tracing.js.map +1 -0
  806. package/dist/schema/SchemaCompiler/runtime.js +9 -1
  807. package/dist/schema/SchemaCompiler/runtime.js.map +1 -1
  808. package/dist/socket/DatagramSocket.d.ts +456 -0
  809. package/dist/socket/DatagramSocket.d.ts.map +1 -0
  810. package/dist/socket/DatagramSocket.js +535 -0
  811. package/dist/socket/DatagramSocket.js.map +1 -0
  812. package/dist/socket/Socket.d.ts +14 -1
  813. package/dist/socket/Socket.d.ts.map +1 -1
  814. package/dist/socket/Socket.js +9 -1
  815. package/dist/socket/Socket.js.map +1 -1
  816. package/dist/socket/index.d.ts +5 -0
  817. package/dist/socket/index.d.ts.map +1 -1
  818. package/dist/socket/index.js +5 -0
  819. package/dist/socket/index.js.map +1 -1
  820. package/dist/sql/Migrator.d.ts.map +1 -1
  821. package/dist/sql/Migrator.js +7 -2
  822. package/dist/sql/Migrator.js.map +1 -1
  823. package/dist/sql/SqlClient.d.ts +7 -1
  824. package/dist/sql/SqlClient.d.ts.map +1 -1
  825. package/dist/sql/SqlClient.js +35 -10
  826. package/dist/sql/SqlClient.js.map +1 -1
  827. package/dist/sql/Statement.d.ts +21 -1
  828. package/dist/sql/Statement.d.ts.map +1 -1
  829. package/dist/sql/Statement.js +55 -7
  830. package/dist/sql/Statement.js.map +1 -1
  831. package/dist/testing/TestClock.d.ts +8 -0
  832. package/dist/testing/TestClock.d.ts.map +1 -1
  833. package/dist/testing/TestClock.js +7 -0
  834. package/dist/testing/TestClock.js.map +1 -1
  835. package/dist/testing/TestConsole.d.ts +7 -0
  836. package/dist/testing/TestConsole.d.ts.map +1 -1
  837. package/dist/testing/TestConsole.js +6 -0
  838. package/dist/testing/TestConsole.js.map +1 -1
  839. package/dist/testing/TestCrypto.d.ts +73 -0
  840. package/dist/testing/TestCrypto.d.ts.map +1 -0
  841. package/dist/testing/TestCrypto.js +87 -0
  842. package/dist/testing/TestCrypto.js.map +1 -0
  843. package/dist/testing/index.d.ts +8 -0
  844. package/dist/testing/index.d.ts.map +1 -1
  845. package/dist/testing/index.js +8 -0
  846. package/dist/testing/index.js.map +1 -1
  847. package/dist/workflow/DurableDeferred.d.ts +54 -0
  848. package/dist/workflow/DurableDeferred.d.ts.map +1 -1
  849. package/dist/workflow/DurableDeferred.js +78 -49
  850. package/dist/workflow/DurableDeferred.js.map +1 -1
  851. package/dist/workflow/WorkflowEngine.d.ts.map +1 -1
  852. package/dist/workflow/WorkflowEngine.js +2 -1
  853. package/dist/workflow/WorkflowEngine.js.map +1 -1
  854. package/package.json +3 -3
  855. package/src/Array.ts +351 -3
  856. package/src/BigDecimal.ts +88 -0
  857. package/src/BigInt.ts +68 -0
  858. package/src/Boolean.ts +34 -0
  859. package/src/Brand.ts +10 -0
  860. package/src/ByteSize.ts +87 -0
  861. package/src/Cache.ts +50 -8
  862. package/src/Cause.ts +82 -0
  863. package/src/Channel.ts +368 -18
  864. package/src/ChannelSchema.ts +13 -0
  865. package/src/Chunk.ts +193 -0
  866. package/src/Clock.ts +7 -0
  867. package/src/Combiner.ts +10 -0
  868. package/src/Config.ts +82 -8
  869. package/src/ConfigProvider.ts +28 -0
  870. package/src/Console.ts +26 -0
  871. package/src/Context.ts +53 -3
  872. package/src/Cron.ts +32 -1
  873. package/src/Crypto.ts +48 -9
  874. package/src/Data.ts +13 -0
  875. package/src/DateTime.ts +180 -6
  876. package/src/Deferred.ts +51 -0
  877. package/src/Differ.ts +2 -0
  878. package/src/Duration.ts +126 -16
  879. package/src/Effect.ts +539 -5
  880. package/src/Effectable.ts +4 -0
  881. package/src/Equal.ts +12 -1
  882. package/src/Equivalence.ts +22 -0
  883. package/src/ErrorReporter.ts +36 -0
  884. package/src/ExecutionPlan.ts +58 -14
  885. package/src/Exit.ts +40 -0
  886. package/src/Fiber.ts +20 -0
  887. package/src/FiberHandle.ts +29 -4
  888. package/src/FiberMap.ts +38 -0
  889. package/src/FiberSet.ts +21 -0
  890. package/src/FileSystem.ts +64 -2
  891. package/src/Filter.ts +55 -0
  892. package/src/Formatter.ts +42 -1
  893. package/src/Function.ts +30 -0
  894. package/src/Graph.ts +317 -36
  895. package/src/HKT.ts +5 -0
  896. package/src/Hash.ts +15 -0
  897. package/src/HashMap.ts +91 -0
  898. package/src/HashRing.ts +18 -0
  899. package/src/HashSet.ts +53 -0
  900. package/src/Inspectable.ts +8 -0
  901. package/src/Iterable.ts +127 -0
  902. package/src/JsonPatch.ts +5 -0
  903. package/src/JsonPointer.ts +5 -0
  904. package/src/JsonSchema.ts +17 -0
  905. package/src/Latch.ts +14 -0
  906. package/src/Layer.ts +101 -1
  907. package/src/LayerMap.ts +7 -0
  908. package/src/LayerRef.ts +5 -0
  909. package/src/LogLevel.ts +20 -0
  910. package/src/Logger.ts +41 -5
  911. package/src/ManagedRuntime.ts +12 -1
  912. package/src/Match.ts +52 -0
  913. package/src/Metric.ts +69 -0
  914. package/src/MutableHashMap.ts +44 -0
  915. package/src/MutableHashSet.ts +17 -0
  916. package/src/MutableList.ts +21 -0
  917. package/src/MutableRef.ts +32 -0
  918. package/src/Newtype.ts +9 -0
  919. package/src/NonEmptyIterable.ts +4 -0
  920. package/src/Number.ts +61 -0
  921. package/src/Optic.ts +57 -0
  922. package/src/Option.ts +134 -0
  923. package/src/Order.ts +30 -0
  924. package/src/Ordering.ts +7 -0
  925. package/src/PartitionedSemaphore.ts +61 -22
  926. package/src/Path.ts +6 -0
  927. package/src/Pipeable.ts +7 -0
  928. package/src/PlatformError.ts +8 -0
  929. package/src/Pool.ts +20 -1
  930. package/src/Predicate.ts +85 -0
  931. package/src/PrimaryKey.ts +5 -0
  932. package/src/PubSub.ts +90 -9
  933. package/src/Pull.ts +20 -0
  934. package/src/Queue.ts +80 -10
  935. package/src/Random.ts +13 -0
  936. package/src/RcMap.ts +23 -0
  937. package/src/RcRef.ts +6 -0
  938. package/src/Record.ts +100 -0
  939. package/src/Redactable.ts +6 -0
  940. package/src/Redacted.ts +8 -0
  941. package/src/Reducer.ts +4 -0
  942. package/src/Ref.ts +42 -0
  943. package/src/References.ts +21 -0
  944. package/src/RegExp.ts +4 -0
  945. package/src/Request.ts +32 -0
  946. package/src/RequestResolver.ts +59 -10
  947. package/src/Resource.ts +7 -0
  948. package/src/Result.ts +93 -0
  949. package/src/Runtime.ts +10 -0
  950. package/src/Schedule.ts +61 -0
  951. package/src/Scheduler.ts +7 -0
  952. package/src/Schema.ts +1168 -9
  953. package/src/SchemaAST.ts +115 -1
  954. package/src/SchemaGetter.ts +80 -4
  955. package/src/SchemaIssue.ts +34 -0
  956. package/src/SchemaParser.ts +26 -0
  957. package/src/SchemaRepresentation.ts +148 -0
  958. package/src/SchemaTransformation.ts +53 -0
  959. package/src/Scope.ts +19 -0
  960. package/src/ScopedCache.ts +55 -3
  961. package/src/ScopedRef.ts +9 -0
  962. package/src/Semaphore.ts +26 -0
  963. package/src/Sink.ts +126 -2
  964. package/src/StandardSchema.ts +1 -0
  965. package/src/Stdio.ts +16 -2
  966. package/src/Stream.ts +633 -26
  967. package/src/String.ts +87 -0
  968. package/src/Struct.ts +46 -0
  969. package/src/SubscriptionRef.ts +65 -0
  970. package/src/Symbol.ts +2 -0
  971. package/src/SynchronizedRef.ts +63 -0
  972. package/src/Take.ts +3 -0
  973. package/src/Terminal.ts +8 -0
  974. package/src/Tracer.ts +23 -0
  975. package/src/Trie.ts +68 -0
  976. package/src/Tuple.ts +38 -0
  977. package/src/TxChunk.ts +52 -0
  978. package/src/TxDeferred.ts +15 -0
  979. package/src/TxHashMap.ts +97 -6
  980. package/src/TxHashSet.ts +83 -3
  981. package/src/TxPriorityQueue.ts +34 -2
  982. package/src/TxPubSub.ts +26 -0
  983. package/src/TxQueue.ts +51 -0
  984. package/src/TxReentrantLock.ts +53 -36
  985. package/src/TxRef.ts +14 -0
  986. package/src/TxSemaphore.ts +47 -31
  987. package/src/TxSubscriptionRef.ts +25 -0
  988. package/src/Types.ts +36 -0
  989. package/src/UndefinedOr.ts +15 -0
  990. package/src/Unify.ts +15 -0
  991. package/src/Utils.ts +4 -0
  992. package/src/Version.ts +38 -0
  993. package/src/ai/Chat.ts +1 -1
  994. package/src/ai/DecisionModel.ts +42 -1
  995. package/src/ai/LanguageModel.ts +16 -19
  996. package/src/ai/McpServer.ts +169 -58
  997. package/src/ai/Telemetry.ts +62 -58
  998. package/src/ai/internal/mcpProtocol/v2026_07_28.ts +5 -0
  999. package/src/ai/internal/mcpProtocol.ts +3 -0
  1000. package/src/ai/internal/mcpRuntime.ts +86 -43
  1001. package/src/ai/internal/mcpStatefulRuntime.ts +2 -0
  1002. package/src/cli/CliOutput.ts +33 -16
  1003. package/src/cli/Command.ts +4 -3
  1004. package/src/cli/Completions.ts +9 -6
  1005. package/src/cli/GlobalFlag.ts +19 -11
  1006. package/src/cli/Prompt.ts +159 -149
  1007. package/src/cli/internal/ansi.ts +26 -3
  1008. package/src/cli/internal/completions/powershell.ts +322 -0
  1009. package/src/cli/internal/completions/zsh.ts +4 -2
  1010. package/src/cli/internal/wizard.ts +34 -26
  1011. package/src/cluster/ClusterSchema.ts +32 -0
  1012. package/src/cluster/ClusterWorkflowEngine.ts +13 -24
  1013. package/src/cluster/K8sHttpClient.ts +12 -2
  1014. package/src/cluster/MessageStorage.ts +45 -14
  1015. package/src/cluster/Runners.ts +8 -2
  1016. package/src/cluster/Sharding.ts +207 -49
  1017. package/src/cluster/SqlMessageStorage.ts +118 -84
  1018. package/src/cluster/SqlRunnerStorage.ts +224 -128
  1019. package/src/cluster/internal/entityManager.ts +151 -55
  1020. package/src/encoding/Base64.ts +4 -0
  1021. package/src/encoding/Base64Url.ts +4 -0
  1022. package/src/encoding/EncodingError.ts +5 -0
  1023. package/src/encoding/Hex.ts +5 -0
  1024. package/src/encoding/Toml.ts +2 -2
  1025. package/src/encoding/Yaml.ts +8 -4
  1026. package/src/encoding/index.ts +4 -0
  1027. package/src/eventlog/SqlEventJournal.ts +18 -4
  1028. package/src/eventlog/SqlEventLogServerUnencrypted.ts +282 -235
  1029. package/src/http/FindMyWay/internal/router.ts +4 -7
  1030. package/src/http/Headers.ts +8 -2
  1031. package/src/http/HttpClient.ts +100 -29
  1032. package/src/http/HttpClientResponse.ts +3 -1
  1033. package/src/http/HttpEffect.ts +11 -2
  1034. package/src/http/HttpMiddleware.ts +60 -45
  1035. package/src/http/HttpServer.ts +1 -1
  1036. package/src/http/HttpTraceContext.ts +8 -2
  1037. package/src/http/internal/tracing.ts +52 -0
  1038. package/src/http-api/HttpApiBuilder.ts +5 -1
  1039. package/src/http-api/HttpApiClient.ts +13 -4
  1040. package/src/http-api/HttpApiError.ts +8 -4
  1041. package/src/http-api/HttpApiSecurity.ts +8 -8
  1042. package/src/index.ts +156 -0
  1043. package/src/internal/arbitrary/array.ts +3 -3
  1044. package/src/internal/arbitrary/model.ts +37 -14
  1045. package/src/internal/arbitrary/runner.ts +7 -7
  1046. package/src/internal/arbitrary/schema.ts +4 -3
  1047. package/src/internal/effect.ts +62 -58
  1048. package/src/internal/schedule.ts +23 -17
  1049. package/src/internal/schema/standardSchema.ts +2 -2
  1050. package/src/internal/version.ts +2 -0
  1051. package/src/net/AddressResolver.ts +222 -0
  1052. package/src/net/Dns.ts +1035 -0
  1053. package/src/net/Host.ts +472 -0
  1054. package/src/net/IpInterface.ts +117 -7
  1055. package/src/net/IpNetwork.ts +116 -17
  1056. package/src/net/NetAddress.ts +611 -76
  1057. package/src/net/index.ts +18 -0
  1058. package/src/observability/OtlpExporter.ts +9 -6
  1059. package/src/observability/OtlpLogger.ts +20 -21
  1060. package/src/observability/OtlpMetrics.ts +46 -116
  1061. package/src/observability/OtlpResource.ts +18 -27
  1062. package/src/observability/OtlpTracer.ts +34 -40
  1063. package/src/observability/PrometheusMetrics.ts +1 -0
  1064. package/src/observability/internal/otlpProtobuf.ts +60 -0
  1065. package/src/persistence/PersistedQueue.ts +146 -53
  1066. package/src/reactivity/AsyncResult.ts +1 -1
  1067. package/src/reactivity/Atom.ts +10 -6
  1068. package/src/reactivity/AtomHttpApi.ts +2 -4
  1069. package/src/reactivity/AtomRegistry.ts +7 -0
  1070. package/src/rpc/RpcClient.ts +87 -41
  1071. package/src/rpc/RpcServer.ts +85 -48
  1072. package/src/rpc/internal/tracing.ts +22 -0
  1073. package/src/schema/SchemaCompiler/runtime.ts +4 -1
  1074. package/src/socket/DatagramSocket.ts +919 -0
  1075. package/src/socket/Socket.ts +22 -2
  1076. package/src/socket/index.ts +6 -0
  1077. package/src/sql/Migrator.ts +21 -5
  1078. package/src/sql/SqlClient.ts +43 -19
  1079. package/src/sql/Statement.ts +59 -7
  1080. package/src/testing/TestClock.ts +9 -0
  1081. package/src/testing/TestConsole.ts +8 -0
  1082. package/src/testing/TestCrypto.ts +94 -0
  1083. package/src/testing/index.ts +9 -0
  1084. package/src/workflow/DurableDeferred.ts +123 -48
  1085. package/src/workflow/WorkflowEngine.ts +2 -1
package/dist/Schema.js CHANGED
@@ -9,6 +9,7 @@
9
9
  * generation, formatting, equivalence, optics, and differs derived from schema
10
10
  * definitions.
11
11
  *
12
+ * @stability stable
12
13
  * @since 4.0.0
13
14
  */
14
15
  import * as Arr from "./Array.js";
@@ -30,6 +31,7 @@ import * as HashSet_ from "./HashSet.js";
30
31
  import * as Cookies_ from "./http/Cookies.js";
31
32
  import * as Headers_ from "./http/Headers.js";
32
33
  import * as UrlParams_ from "./http/UrlParams.js";
34
+ import { NodeInspectSymbol } from "./Inspectable.js";
33
35
  import * as core from "./internal/core.js";
34
36
  import { effectIsExit } from "./internal/effect.js";
35
37
  import * as InternalGraph from "./internal/graph.js";
@@ -47,6 +49,8 @@ import * as InternalToJsonSchemaDocument from "./internal/schema/toJsonSchemaDoc
47
49
  import * as InternalToRepresentation from "./internal/schema/toRepresentation.js";
48
50
  import { isSchemaError as isSchemaErrorInternal, SchemaErrorTypeId } from "./internal/schemaError.js";
49
51
  import { getStackTraceLimit, setStackTraceLimit } from "./internal/stackTraceLimit.js";
52
+ import * as Dns_ from "./net/Dns.js";
53
+ import * as Host_ from "./net/Host.js";
50
54
  import * as IpInterface_ from "./net/IpInterface.js";
51
55
  import * as IpNetwork_ from "./net/IpNetwork.js";
52
56
  import * as NetAddress_ from "./net/NetAddress.js";
@@ -118,6 +122,7 @@ const TypeId = InternalMake.TypeId;
118
122
  * Effect.runSync(Schema.decodeUnknownEffect(schema)({ value: 1 })) // => { value: 1 }
119
123
  * ```
120
124
  *
125
+ * @stability stable
121
126
  * @category constructors
122
127
  * @since 4.0.0
123
128
  */
@@ -155,6 +160,7 @@ export function declareConstructor() {
155
160
  *
156
161
  * @see {@link declareConstructor} for creating schemas for parametric types.
157
162
  *
163
+ * @stability stable
158
164
  * @category constructors
159
165
  * @since 3.10.0
160
166
  */
@@ -187,6 +193,7 @@ export function declare(is, annotations) {
187
193
  * type E = typeof bottom["Encoded"] // string
188
194
  * ```
189
195
  *
196
+ * @stability stable
190
197
  * @category utility types
191
198
  * @since 4.0.0
192
199
  */
@@ -219,6 +226,7 @@ export function revealBottom(bottom) {
219
226
  *
220
227
  * @see {@link annotateEncoded} to annotate the encoded side instead.
221
228
  *
229
+ * @stability stable
222
230
  * @category annotations
223
231
  * @since 4.0.0
224
232
  */
@@ -251,6 +259,7 @@ export function annotate(annotations) {
251
259
  *
252
260
  * @see {@link annotate} to annotate the type side instead.
253
261
  *
262
+ * @stability stable
254
263
  * @category annotations
255
264
  * @since 4.0.0
256
265
  */
@@ -285,6 +294,7 @@ export function annotateEncoded(annotations) {
285
294
  * schema.fields.username.ast.context?.annotations?.messageMissingKey // => "Username is required"
286
295
  * ```
287
296
  *
297
+ * @stability stable
288
298
  * @category annotations
289
299
  * @since 4.0.0
290
300
  */
@@ -315,6 +325,7 @@ export function annotateKey(annotations) {
315
325
  * type Enc = typeof codec["Encoded"] // string
316
326
  * ```
317
327
  *
328
+ * @stability stable
318
329
  * @category utility types
319
330
  * @since 4.0.0
320
331
  */
@@ -348,6 +359,7 @@ export function revealCodec(codec) {
348
359
  * ```
349
360
  *
350
361
  * @see {@link isSchemaError} for narrowing unknown values
362
+ * @stability stable
351
363
  * @category errors
352
364
  * @since 4.0.0
353
365
  */
@@ -367,6 +379,15 @@ export class SchemaError extends /*#__PURE__*/Data.TaggedError("SchemaError") {
367
379
  get message() {
368
380
  return SchemaIssue.defaultFormatter(this.issue);
369
381
  }
382
+ toJSON() {
383
+ return {
384
+ _tag: this._tag,
385
+ message: this.message
386
+ };
387
+ }
388
+ [NodeInspectSymbol]() {
389
+ return this.toJSON();
390
+ }
370
391
  toString() {
371
392
  return `SchemaError(${this.message})`;
372
393
  }
@@ -388,6 +409,7 @@ export class SchemaError extends /*#__PURE__*/Data.TaggedError("SchemaError") {
388
409
  * Schema.isSchemaError(error) // => true
389
410
  * ```
390
411
  *
412
+ * @stability stable
391
413
  * @category guards
392
414
  * @since 4.0.0
393
415
  */
@@ -500,6 +522,7 @@ function runSchemaErrorSync(self) {
500
522
  * invalidResult.issues?.map((issue) => issue.path) // => [["name"], ["age"]]
501
523
  * ```
502
524
  *
525
+ * @stability stable
503
526
  * @category converting
504
527
  * @since 4.0.0
505
528
  */
@@ -513,6 +536,7 @@ export function toStandardSchemaV1(self, options) {
513
536
  *
514
537
  * https://github.com/standard-schema/standard-schema/pull/134
515
538
  *
539
+ * @stability stable
516
540
  * @category converting
517
541
  * @since 4.0.0
518
542
  */
@@ -553,6 +577,7 @@ export function toStandardJSONSchemaV1(self) {
553
577
  * }
554
578
  * ```
555
579
  *
580
+ * @stability stable
556
581
  * @category guards
557
582
  * @since 3.10.0
558
583
  */
@@ -602,6 +627,7 @@ export const is = SchemaParser.is;
602
627
  * }
603
628
  * ```
604
629
  *
630
+ * @stability stable
605
631
  * @category guards
606
632
  * @since 4.0.0
607
633
  */
@@ -624,6 +650,7 @@ export const asserts = SchemaParser.asserts;
624
650
  *
625
651
  * @see {@link SchemaParser.decodeUnknownEffect} for the adapter that fails with `SchemaIssue.Issue` directly
626
652
  *
653
+ * @stability stable
627
654
  * @category decoding
628
655
  * @since 4.0.0
629
656
  */
@@ -651,6 +678,7 @@ export function decodeUnknownEffect(schema, options) {
651
678
  *
652
679
  * @see {@link SchemaParser.decodeEffect} for the adapter that fails with `SchemaIssue.Issue` directly
653
680
  *
681
+ * @stability stable
654
682
  * @category decoding
655
683
  * @since 4.0.0
656
684
  */
@@ -682,6 +710,7 @@ export const decodeEffect = decodeUnknownEffect;
682
710
  *
683
711
  * @see {@link SchemaParser.decodeUnknownExit} for the adapter whose failure contains `SchemaIssue.Issue` directly
684
712
  *
713
+ * @stability stable
685
714
  * @category decoding
686
715
  * @since 4.0.0
687
716
  */
@@ -718,6 +747,7 @@ export function decodeUnknownExit(schema, options) {
718
747
  *
719
748
  * @see {@link SchemaParser.decodeExit} for the adapter whose failure contains `SchemaIssue.Issue` directly
720
749
  *
750
+ * @stability stable
721
751
  * @category decoding
722
752
  * @since 4.0.0
723
753
  */
@@ -745,6 +775,7 @@ export const decodeExit = decodeUnknownExit;
745
775
  * that contain defects, interruptions, or other non-schema reasons throw
746
776
  * instead.
747
777
  *
778
+ * @stability stable
748
779
  * @category decoding
749
780
  * @since 3.10.0
750
781
  */
@@ -771,6 +802,7 @@ export const decodeUnknownOption = SchemaParser.decodeUnknownOption;
771
802
  * that contain defects, interruptions, or other non-schema reasons throw
772
803
  * instead.
773
804
  *
805
+ * @stability stable
774
806
  * @category decoding
775
807
  * @since 3.10.0
776
808
  */
@@ -801,6 +833,7 @@ export const decodeOption = SchemaParser.decodeOption;
801
833
  *
802
834
  * @see {@link SchemaParser.decodeUnknownResult} for the adapter that fails with `SchemaIssue.Issue` directly
803
835
  *
836
+ * @stability stable
804
837
  * @category decoding
805
838
  * @since 4.0.0
806
839
  */
@@ -835,6 +868,7 @@ export function decodeUnknownResult(schema, options) {
835
868
  *
836
869
  * @see {@link SchemaParser.decodeResult} for the adapter that fails with `SchemaIssue.Issue` directly
837
870
  *
871
+ * @stability stable
838
872
  * @category decoding
839
873
  * @since 4.0.0
840
874
  */
@@ -863,6 +897,7 @@ export const decodeResult = decodeUnknownResult;
863
897
  *
864
898
  * @see {@link SchemaParser.decodeUnknownPromise} for the adapter that rejects with an `Error` whose cause is `SchemaIssue.Issue`
865
899
  *
900
+ * @stability stable
866
901
  * @category decoding
867
902
  * @since 3.10.0
868
903
  */
@@ -896,6 +931,7 @@ export function decodeUnknownPromise(schema, options) {
896
931
  *
897
932
  * @see {@link SchemaParser.decodePromise} for the adapter that rejects with an `Error` whose cause is `SchemaIssue.Issue`
898
933
  *
934
+ * @stability stable
899
935
  * @category decoding
900
936
  * @since 3.10.0
901
937
  */
@@ -934,6 +970,7 @@ export const decodePromise = decodeUnknownPromise;
934
970
  *
935
971
  * @see {@link SchemaParser.decodeUnknownSync} for the adapter that throws an `Error` whose cause is `SchemaIssue.Issue`
936
972
  *
973
+ * @stability stable
937
974
  * @category decoding
938
975
  * @since 4.0.0
939
976
  */
@@ -966,6 +1003,7 @@ export function decodeUnknownSync(schema, options) {
966
1003
  *
967
1004
  * @see {@link SchemaParser.decodeSync} for the adapter that throws an `Error` whose cause is `SchemaIssue.Issue`
968
1005
  *
1006
+ * @stability stable
969
1007
  * @category decoding
970
1008
  * @since 4.0.0
971
1009
  */
@@ -998,6 +1036,7 @@ export const decodeSync = decodeUnknownSync;
998
1036
  *
999
1037
  * @see {@link SchemaParser.encodeUnknownEffect} for the adapter that fails with `SchemaIssue.Issue` directly
1000
1038
  *
1039
+ * @stability stable
1001
1040
  * @category encoding
1002
1041
  * @since 4.0.0
1003
1042
  */
@@ -1025,6 +1064,7 @@ export function encodeUnknownEffect(schema, options) {
1025
1064
  *
1026
1065
  * @see {@link SchemaParser.encodeEffect} for the adapter that fails with `SchemaIssue.Issue` directly
1027
1066
  *
1067
+ * @stability stable
1028
1068
  * @category encoding
1029
1069
  * @since 4.0.0
1030
1070
  */
@@ -1055,6 +1095,7 @@ export const encodeEffect = encodeUnknownEffect;
1055
1095
  *
1056
1096
  * @see {@link SchemaParser.encodeUnknownExit} for the adapter whose failure contains `SchemaIssue.Issue` directly
1057
1097
  *
1098
+ * @stability stable
1058
1099
  * @category encoding
1059
1100
  * @since 4.0.0
1060
1101
  */
@@ -1091,6 +1132,7 @@ export function encodeUnknownExit(schema, options) {
1091
1132
  *
1092
1133
  * @see {@link SchemaParser.encodeExit} for the adapter whose failure contains `SchemaIssue.Issue` directly
1093
1134
  *
1135
+ * @stability stable
1094
1136
  * @category encoding
1095
1137
  * @since 4.0.0
1096
1138
  */
@@ -1118,6 +1160,7 @@ export const encodeExit = encodeUnknownExit;
1118
1160
  * that contain defects, interruptions, or other non-schema reasons throw
1119
1161
  * instead.
1120
1162
  *
1163
+ * @stability stable
1121
1164
  * @category encoding
1122
1165
  * @since 3.10.0
1123
1166
  */
@@ -1144,6 +1187,7 @@ export const encodeUnknownOption = SchemaParser.encodeUnknownOption;
1144
1187
  * that contain defects, interruptions, or other non-schema reasons throw
1145
1188
  * instead.
1146
1189
  *
1190
+ * @stability stable
1147
1191
  * @category encoding
1148
1192
  * @since 3.10.0
1149
1193
  */
@@ -1173,6 +1217,7 @@ export const encodeOption = SchemaParser.encodeOption;
1173
1217
  *
1174
1218
  * @see {@link SchemaParser.encodeUnknownResult} for the adapter that fails with `SchemaIssue.Issue` directly
1175
1219
  *
1220
+ * @stability stable
1176
1221
  * @category encoding
1177
1222
  * @since 4.0.0
1178
1223
  */
@@ -1207,6 +1252,7 @@ export function encodeUnknownResult(schema, options) {
1207
1252
  *
1208
1253
  * @see {@link SchemaParser.encodeResult} for the adapter that fails with `SchemaIssue.Issue` directly
1209
1254
  *
1255
+ * @stability stable
1210
1256
  * @category encoding
1211
1257
  * @since 4.0.0
1212
1258
  */
@@ -1234,6 +1280,7 @@ export const encodeResult = encodeUnknownResult;
1234
1280
  *
1235
1281
  * @see {@link SchemaParser.encodeUnknownPromise} for the adapter that rejects with an `Error` whose cause is `SchemaIssue.Issue`
1236
1282
  *
1283
+ * @stability stable
1237
1284
  * @category encoding
1238
1285
  * @since 3.10.0
1239
1286
  */
@@ -1267,6 +1314,7 @@ export function encodeUnknownPromise(schema, options) {
1267
1314
  *
1268
1315
  * @see {@link SchemaParser.encodePromise} for the adapter that rejects with an `Error` whose cause is `SchemaIssue.Issue`
1269
1316
  *
1317
+ * @stability stable
1270
1318
  * @category encoding
1271
1319
  * @since 3.10.0
1272
1320
  */
@@ -1294,6 +1342,7 @@ export const encodePromise = encodeUnknownPromise;
1294
1342
  *
1295
1343
  * @see {@link SchemaParser.encodeUnknownSync} for the adapter that throws an `Error` whose cause is `SchemaIssue.Issue`
1296
1344
  *
1345
+ * @stability stable
1297
1346
  * @category encoding
1298
1347
  * @since 4.0.0
1299
1348
  */
@@ -1324,6 +1373,7 @@ export function encodeUnknownSync(schema, options) {
1324
1373
  *
1325
1374
  * @see {@link SchemaParser.encodeSync} for the adapter that throws an `Error` whose cause is `SchemaIssue.Issue`
1326
1375
  *
1376
+ * @stability stable
1327
1377
  * @category encoding
1328
1378
  * @since 4.0.0
1329
1379
  */
@@ -1342,6 +1392,7 @@ export const encodeSync = encodeUnknownSync;
1342
1392
  * the bridge between the untyped AST representation and the strongly-typed
1343
1393
  * schema.
1344
1394
  *
1395
+ * @stability stable
1345
1396
  * @category constructors
1346
1397
  * @since 3.10.0
1347
1398
  */
@@ -1349,6 +1400,7 @@ export const make = InternalMake.make;
1349
1400
  /**
1350
1401
  * Checks whether a value is a `Schema`.
1351
1402
  *
1403
+ * @stability stable
1352
1404
  * @category guards
1353
1405
  * @since 3.10.0
1354
1406
  */
@@ -1374,6 +1426,7 @@ export function isSchema(u) {
1374
1426
  * type Person = typeof schema["Type"]
1375
1427
  * ```
1376
1428
  *
1429
+ * @stability stable
1377
1430
  * @category combinators
1378
1431
  * @since 4.0.0
1379
1432
  */
@@ -1388,6 +1441,7 @@ export const optionalKey = /*#__PURE__*/Struct_.lambda(schema => make(SchemaAST.
1388
1441
  * Use to remove optional-key wrapping from a schema field that was previously
1389
1442
  * wrapped with {@link optionalKey}.
1390
1443
  *
1444
+ * @stability stable
1391
1445
  * @category combinators
1392
1446
  * @since 4.0.0
1393
1447
  */
@@ -1418,6 +1472,7 @@ export const requiredKey = /*#__PURE__*/Struct_.lambda(self => self.schema);
1418
1472
  * type Person = typeof schema.Type
1419
1473
  * ```
1420
1474
  *
1475
+ * @stability stable
1421
1476
  * @category combinators
1422
1477
  * @since 3.10.0
1423
1478
  */
@@ -1439,6 +1494,7 @@ export const optional = /*#__PURE__*/Struct_.lambda(self => {
1439
1494
  *
1440
1495
  * This also unwraps the `UndefinedOr` member added by `optional`.
1441
1496
  *
1497
+ * @stability stable
1442
1498
  * @category combinators
1443
1499
  * @since 3.10.0
1444
1500
  */
@@ -1447,6 +1503,7 @@ export const required = /*#__PURE__*/Struct_.lambda(self => self.schema.members[
1447
1503
  * Makes a struct field mutable (removes the `readonly` modifier on the property).
1448
1504
  * Use {@link readonlyKey} to reverse.
1449
1505
  *
1506
+ * @stability stable
1450
1507
  * @category combinators
1451
1508
  * @since 4.0.0
1452
1509
  */
@@ -1461,6 +1518,7 @@ export const mutableKey = /*#__PURE__*/Struct_.lambda(schema => make(SchemaAST.m
1461
1518
  * Use to remove mutable-key wrapping from a schema field that was previously
1462
1519
  * wrapped with {@link mutableKey}.
1463
1520
  *
1521
+ * @stability stable
1464
1522
  * @category combinators
1465
1523
  * @since 4.0.0
1466
1524
  */
@@ -1469,6 +1527,7 @@ export const readonlyKey = /*#__PURE__*/Struct_.lambda(self => self.schema);
1469
1527
  * Extracts the type-side schema: sets `Encoded` to equal the decoded `Type`,
1470
1528
  * discarding the encoding transformation path.
1471
1529
  *
1530
+ * @stability stable
1472
1531
  * @category transforming
1473
1532
  * @since 4.0.0
1474
1533
  */
@@ -1479,6 +1538,7 @@ export const toType = /*#__PURE__*/Struct_.lambda(schema => make(SchemaAST.toTyp
1479
1538
  * Extracts the encoded-side schema: sets `Type` to equal the `Encoded`,
1480
1539
  * discarding the decoding transformation path.
1481
1540
  *
1541
+ * @stability stable
1482
1542
  * @category transforming
1483
1543
  * @since 4.0.0
1484
1544
  */
@@ -1514,6 +1574,7 @@ export function flip(schema) {
1514
1574
  * @see {@link Literals} for a schema that represents a union of literals.
1515
1575
  * @see {@link tag} for a schema that represents a literal value that can be
1516
1576
  * used as a discriminator field in tagged unions and has a constructor default.
1577
+ * @stability stable
1517
1578
  * @category constructors
1518
1579
  * @since 3.10.0
1519
1580
  */
@@ -1564,6 +1625,7 @@ function templateLiteralParts(parts) {
1564
1625
  * ```
1565
1626
  *
1566
1627
  * @see {@link TemplateLiteralParser} for a schema that also parses matched parts into a tuple.
1628
+ * @stability stable
1567
1629
  * @category constructors
1568
1630
  * @since 3.10.0
1569
1631
  */
@@ -1604,6 +1666,7 @@ export function TemplateLiteral(parts) {
1604
1666
  * ```
1605
1667
  *
1606
1668
  * @see {@link TemplateLiteral} for a validation-only version that keeps the string encoded.
1669
+ * @stability stable
1607
1670
  * @category constructors
1608
1671
  * @since 3.10.0
1609
1672
  */
@@ -1634,6 +1697,7 @@ export function TemplateLiteralParser(parts) {
1634
1697
  * Schema.decodeSync(schema)(Direction.Up) // => "Up"
1635
1698
  * ```
1636
1699
  *
1700
+ * @stability stable
1637
1701
  * @category constructors
1638
1702
  * @since 4.0.0
1639
1703
  */
@@ -1645,6 +1709,7 @@ export function Enum(enums) {
1645
1709
  /**
1646
1710
  * Schema for the `never` type. Always fails validation — no value satisfies it.
1647
1711
  *
1712
+ * @stability stable
1648
1713
  * @category schemas
1649
1714
  * @since 3.10.0
1650
1715
  */
@@ -1653,6 +1718,7 @@ export const Never = /*#__PURE__*/make(SchemaAST.never);
1653
1718
  * Schema for the `any` type. Accepts any value without validation.
1654
1719
  *
1655
1720
  * @see {@link Unknown} for a safer alternative that uses `unknown`.
1721
+ * @stability stable
1656
1722
  * @category schemas
1657
1723
  * @since 3.10.0
1658
1724
  */
@@ -1666,6 +1732,7 @@ export const Any = /*#__PURE__*/make(SchemaAST.any);
1666
1732
  * TypeScript's `unknown` safety at use sites.
1667
1733
  *
1668
1734
  * @see {@link Any} for the `any` variant.
1735
+ * @stability stable
1669
1736
  * @category schemas
1670
1737
  * @since 3.10.0
1671
1738
  */
@@ -1674,6 +1741,7 @@ export const Unknown = /*#__PURE__*/make(SchemaAST.unknown);
1674
1741
  * Schema for the `null` literal. Validates that the input is strictly `null`.
1675
1742
  *
1676
1743
  * @see {@link NullOr} for a union with another schema.
1744
+ * @stability stable
1677
1745
  * @category schemas
1678
1746
  * @since 3.10.0
1679
1747
  */
@@ -1682,6 +1750,7 @@ export const Null = /*#__PURE__*/make(SchemaAST.null);
1682
1750
  * Schema for the `undefined` literal. Validates that the input is strictly `undefined`.
1683
1751
  *
1684
1752
  * @see {@link UndefinedOr} for a union with another schema.
1753
+ * @stability stable
1685
1754
  * @category schemas
1686
1755
  * @since 3.10.0
1687
1756
  */
@@ -1689,6 +1758,7 @@ export const Undefined = /*#__PURE__*/make(SchemaAST.undefined);
1689
1758
  /**
1690
1759
  * Schema for `string` values. Validates that the input is `typeof` `"string"`.
1691
1760
  *
1761
+ * @stability stable
1692
1762
  * @category schemas
1693
1763
  * @since 4.0.0
1694
1764
  */
@@ -1724,6 +1794,7 @@ export const String = /*#__PURE__*/make(SchemaAST.string);
1724
1794
  *
1725
1795
  * @see {@link String} for a schema whose type is plain `string`.
1726
1796
  * @see {@link Literals} for the known literals to include in the union.
1797
+ * @stability stable
1727
1798
  * @category schemas
1728
1799
  * @since 4.0.0
1729
1800
  */
@@ -1739,6 +1810,7 @@ export const StringForLiteralAutocomplete = String;
1739
1810
  * - Non-finite values are serialized as strings (`"NaN"`, `"Infinity"`, `"-Infinity"`).
1740
1811
  *
1741
1812
  * @see {@link Finite} for a schema that excludes non-finite values.
1813
+ * @stability stable
1742
1814
  * @category schemas
1743
1815
  * @since 4.0.0
1744
1816
  */
@@ -1752,6 +1824,7 @@ export const Number = /*#__PURE__*/make(SchemaAST.number);
1752
1824
  *
1753
1825
  * @see {@link BooleanFromBit} for a schema that decodes bit literals `0` or `1` into a boolean
1754
1826
  *
1827
+ * @stability stable
1755
1828
  * @category schemas
1756
1829
  * @since 4.0.0
1757
1830
  */
@@ -1760,6 +1833,7 @@ export const Boolean = /*#__PURE__*/make(SchemaAST.boolean);
1760
1833
  * Schema for `symbol` values. Validates that the input is `typeof` `"symbol"`.
1761
1834
  *
1762
1835
  * @see {@link UniqueSymbol} for a schema that matches a specific symbol.
1836
+ * @stability stable
1763
1837
  * @category schemas
1764
1838
  * @since 4.0.0
1765
1839
  */
@@ -1774,6 +1848,7 @@ export const Symbol = /*#__PURE__*/make(SchemaAST.symbol);
1774
1848
  *
1775
1849
  * @see {@link BigIntFromString} for parsing string input into a bigint
1776
1850
  *
1851
+ * @stability stable
1777
1852
  * @category schemas
1778
1853
  * @since 4.0.0
1779
1854
  */
@@ -1794,6 +1869,7 @@ export const BigInt = /*#__PURE__*/make(SchemaAST.bigInt);
1794
1869
  * as `void`.
1795
1870
  *
1796
1871
  * @see {@link Undefined} for a schema that matches only the exact `undefined` value.
1872
+ * @stability stable
1797
1873
  * @category schemas
1798
1874
  * @since 3.10.0
1799
1875
  */
@@ -1802,6 +1878,7 @@ export const Void = /*#__PURE__*/make(SchemaAST.void);
1802
1878
  * Schema for the `object` type. Validates that the input is a non-null object or function
1803
1879
  * (i.e. `typeof value === "object" && value !== null || typeof value === "function"`).
1804
1880
  *
1881
+ * @stability stable
1805
1882
  * @category schemas
1806
1883
  * @since 4.0.0
1807
1884
  */
@@ -1826,6 +1903,7 @@ export const ObjectKeyword = /*#__PURE__*/make(SchemaAST.objectKeyword);
1826
1903
  * ```
1827
1904
  *
1828
1905
  * @see {@link Symbol} for a schema that accepts any symbol.
1906
+ * @stability stable
1829
1907
  * @category constructors
1830
1908
  * @since 4.0.0
1831
1909
  */
@@ -1872,6 +1950,7 @@ function makeStruct(ast, fields) {
1872
1950
  * Schema.decodeUnknownSync(Person)({ name: "Alice", age: 30 }) // => { name: "Alice", age: 30 }
1873
1951
  * ```
1874
1952
  *
1953
+ * @stability stable
1875
1954
  * @category constructors
1876
1955
  * @since 3.10.0
1877
1956
  */
@@ -1903,6 +1982,7 @@ export function Struct(fields) {
1903
1982
  * Schema.decodeSync(schema)({ a: "a", c: 1 }) // => { a: "a", c: 1 }
1904
1983
  * ```
1905
1984
  *
1985
+ * @stability stable
1906
1986
  * @category combinators
1907
1987
  * @since 4.0.0
1908
1988
  */
@@ -1933,6 +2013,7 @@ const canonicalPropertyKey = key => typeof key === "symbol" ? key : globalThis.S
1933
2013
  * Schema.decodeUnknownSync(Encoded)({ full_name: "Alice", age: 30 }) // => { name: "Alice", age: 30 }
1934
2014
  * ```
1935
2015
  *
2016
+ * @stability stable
1936
2017
  * @category transforming
1937
2018
  * @since 4.0.0
1938
2019
  */
@@ -1990,6 +2071,7 @@ export function encodeKeys(mapping) {
1990
2071
  * alice.fullName // => "Alice Smith"
1991
2072
  * ```
1992
2073
  *
2074
+ * @stability stable
1993
2075
  * @category transforming
1994
2076
  * @since 4.0.0
1995
2077
  */
@@ -2061,6 +2143,7 @@ export function extendTo(fields, derive) {
2061
2143
  * Schema.decodeUnknownSync(schema)({ a: 1, b: 2 }) // => { a: 1, b: 2 }
2062
2144
  * ```
2063
2145
  *
2146
+ * @stability stable
2064
2147
  * @category constructors
2065
2148
  * @since 3.10.0
2066
2149
  */
@@ -2095,6 +2178,7 @@ export function Record(key, value) {
2095
2178
  * type T = typeof schema.Type
2096
2179
  * ```
2097
2180
  *
2181
+ * @stability stable
2098
2182
  * @category constructors
2099
2183
  * @since 4.0.0
2100
2184
  */
@@ -2126,6 +2210,7 @@ function makeTuple(ast, elements) {
2126
2210
  * Schema.decodeUnknownSync(schema)(["hello", 42]) // => ["hello", 42]
2127
2211
  * ```
2128
2212
  *
2213
+ * @stability stable
2129
2214
  * @category constructors
2130
2215
  * @since 3.10.0
2131
2216
  */
@@ -2157,6 +2242,7 @@ export function Tuple(elements) {
2157
2242
  * Schema.decodeUnknownSync(schema)(["hello", 1, true, false]) // => ["hello", 1, true, false]
2158
2243
  * ```
2159
2244
  *
2245
+ * @stability stable
2160
2246
  * @category constructors
2161
2247
  * @since 4.0.0
2162
2248
  */
@@ -2187,6 +2273,7 @@ export {
2187
2273
  * Schema.decodeUnknownSync(schema)(["a", "b", "c"]) // => ["a", "b", "c"]
2188
2274
  * ```
2189
2275
  *
2276
+ * @stability stable
2190
2277
  * @category constructors
2191
2278
  * @since 4.0.0
2192
2279
  */
@@ -2214,6 +2301,7 @@ export function withArrayLengthConstraints(self, minimum, maximum) {
2214
2301
  * Schema.decodeUnknownSync(schema)([1, 2, 3]) // => [1, 2, 3]
2215
2302
  * ```
2216
2303
  *
2304
+ * @stability stable
2217
2305
  * @category constructors
2218
2306
  * @since 3.10.0
2219
2307
  */
@@ -2243,6 +2331,7 @@ export const NonEmptyArray = /*#__PURE__*/Struct_.lambda(schema => make(new Sche
2243
2331
  * @see {@link Array} for accepting only array input
2244
2332
  * @see {@link NonEmptyArray} for requiring at least one decoded element
2245
2333
  *
2334
+ * @stability stable
2246
2335
  * @category constructors
2247
2336
  * @since 3.10.0
2248
2337
  */
@@ -2266,6 +2355,7 @@ export function ArrayEnsure(schema) {
2266
2355
  * The equivalence used to determine uniqueness is the one provided by
2267
2356
  * `Schema.toEquivalence(item)`.
2268
2357
  *
2358
+ * @stability stable
2269
2359
  * @category constructors
2270
2360
  * @since 4.0.0
2271
2361
  */
@@ -2295,6 +2385,7 @@ export function UniqueArray(item) {
2295
2385
  * value // => [1, 2, 3]
2296
2386
  * ```
2297
2387
  *
2388
+ * @stability stable
2298
2389
  * @category transforming
2299
2390
  * @since 3.10.0
2300
2391
  */
@@ -2331,6 +2422,7 @@ function makeUnion(ast, members) {
2331
2422
  * Schema.decodeUnknownSync(schema)(42) // => 42
2332
2423
  * ```
2333
2424
  *
2425
+ * @stability stable
2334
2426
  * @category constructors
2335
2427
  * @since 3.10.0
2336
2428
  */
@@ -2350,6 +2442,7 @@ export function Union(members, options) {
2350
2442
  * ```
2351
2443
  *
2352
2444
  * @see {@link Literal} for a schema that represents a single literal.
2445
+ * @stability stable
2353
2446
  * @category constructors
2354
2447
  * @since 4.0.0
2355
2448
  */
@@ -2372,6 +2465,7 @@ export function Literals(literals) {
2372
2465
  /**
2373
2466
  * Creates a union schema of `S | null`.
2374
2467
  *
2468
+ * @stability stable
2375
2469
  * @category constructors
2376
2470
  * @since 3.10.0
2377
2471
  */
@@ -2379,6 +2473,7 @@ export const NullOr = /*#__PURE__*/Struct_.lambda(self => Union([self, Null]));
2379
2473
  /**
2380
2474
  * Creates a union schema of `S | undefined`.
2381
2475
  *
2476
+ * @stability stable
2382
2477
  * @category constructors
2383
2478
  * @since 3.10.0
2384
2479
  */
@@ -2386,6 +2481,7 @@ export const UndefinedOr = /*#__PURE__*/Struct_.lambda(self => Union([self, Unde
2386
2481
  /**
2387
2482
  * Creates a union schema of `S | null | undefined`.
2388
2483
  *
2484
+ * @stability stable
2389
2485
  * @category constructors
2390
2486
  * @since 3.10.0
2391
2487
  */
@@ -2412,6 +2508,7 @@ export const NullishOr = /*#__PURE__*/Struct_.lambda(self => Union([self, Null,
2412
2508
  * Schema.decodeSync(Tree)({ value: 1, children: [] }) // => { value: 1, children: [] }
2413
2509
  * ```
2414
2510
  *
2511
+ * @stability stable
2415
2512
  * @category constructors
2416
2513
  * @since 3.10.0
2417
2514
  */
@@ -2434,6 +2531,7 @@ export function suspend(f) {
2434
2531
  * Schema.is(AgeSchema)(121) // => false
2435
2532
  * ```
2436
2533
  *
2534
+ * @stability stable
2437
2535
  * @category filtering
2438
2536
  * @since 4.0.0
2439
2537
  */
@@ -2452,6 +2550,7 @@ export function check(...checks) {
2452
2550
  * names type-level failures before the refinement runs; it does not name the
2453
2551
  * failed refinement itself.
2454
2552
  *
2553
+ * @stability stable
2455
2554
  * @category filtering
2456
2555
  * @since 3.10.0
2457
2556
  */
@@ -2481,6 +2580,7 @@ export function refine(refinement, annotations) {
2481
2580
  *
2482
2581
  * @see {@link fromBrand} for applying a Brand constructor's checks along with its branded type
2483
2582
  *
2583
+ * @stability stable
2484
2584
  * @category branding
2485
2585
  * @since 3.10.0
2486
2586
  */
@@ -2506,6 +2606,7 @@ export function brand(identifier) {
2506
2606
  *
2507
2607
  * @see {@link brand} for adding a brand without constructor checks
2508
2608
  *
2609
+ * @stability stable
2509
2610
  * @category branding
2510
2611
  * @since 3.10.0
2511
2612
  */
@@ -2539,6 +2640,7 @@ export function fromBrand(identifier, ctor) {
2539
2640
  * ```
2540
2641
  *
2541
2642
  * @see {@link catchDecoding} for a simpler error-recovery variant
2643
+ * @stability stable
2542
2644
  * @category decoding
2543
2645
  * @since 4.0.0
2544
2646
  */
@@ -2572,6 +2674,7 @@ export function middlewareDecoding(decode) {
2572
2674
  * ```
2573
2675
  *
2574
2676
  * @see {@link catchEncoding} for a simpler error-recovery variant
2677
+ * @stability stable
2575
2678
  * @category encoding
2576
2679
  * @since 4.0.0
2577
2680
  */
@@ -2600,6 +2703,7 @@ export function middlewareEncoding(encode) {
2600
2703
  * ```
2601
2704
  *
2602
2705
  * @see {@link catchDecodingWithContext} to add service requirements to the handler
2706
+ * @stability stable
2603
2707
  * @category error handling
2604
2708
  * @since 4.0.0
2605
2709
  */
@@ -2623,6 +2727,7 @@ export function catchDecoding(f) {
2623
2727
  * @see {@link catchDecoding} for recovery handlers that do not require services
2624
2728
  * @see {@link middlewareDecoding} for intercepting or replacing the full decoding pipeline
2625
2729
  *
2730
+ * @stability stable
2626
2731
  * @category error handling
2627
2732
  * @since 4.0.0
2628
2733
  */
@@ -2638,6 +2743,7 @@ export function catchDecodingWithContext(f) {
2638
2743
  * succeeds with a fallback value or re-fails with a (possibly different) issue.
2639
2744
  *
2640
2745
  * @see {@link catchEncodingWithContext} to add service requirements to the handler
2746
+ * @stability stable
2641
2747
  * @category error handling
2642
2748
  * @since 4.0.0
2643
2749
  */
@@ -2661,6 +2767,7 @@ export function catchEncoding(f) {
2661
2767
  * @see {@link catchEncoding} for recovery handlers that do not require services
2662
2768
  * @see {@link middlewareEncoding} for intercepting or replacing the full encoding pipeline
2663
2769
  *
2770
+ * @stability stable
2664
2771
  * @category error handling
2665
2772
  * @since 4.0.0
2666
2773
  */
@@ -2734,6 +2841,7 @@ export const BooleanLiterals = /*#__PURE__*/Literals([...TrueLiterals.literals,
2734
2841
  * Schema.decodeUnknownSync(Trimmed)(" hello ") // => "hello"
2735
2842
  * ```
2736
2843
  *
2844
+ * @stability stable
2737
2845
  * @category transforming
2738
2846
  * @since 4.0.0
2739
2847
  */
@@ -2770,6 +2878,7 @@ export function encodeTo(to, transformation) {
2770
2878
  * Schema.encodeSync(UpperFromLower)("hello") // => "HELLO"
2771
2879
  * ```
2772
2880
  *
2881
+ * @stability stable
2773
2882
  * @category transforming
2774
2883
  * @since 4.0.0
2775
2884
  */
@@ -2801,6 +2910,7 @@ export function encode(transformation) {
2801
2910
  * MySchema.make({}).name // => "anonymous"
2802
2911
  * ```
2803
2912
  *
2913
+ * @stability stable
2804
2914
  * @category constructors
2805
2915
  * @since 3.10.0
2806
2916
  */
@@ -2845,6 +2955,7 @@ function toIssueEffect(self) {
2845
2955
  *
2846
2956
  * @see {@link withDecodingDefault} for the value-level variant (key absent **or** `undefined`)
2847
2957
  * @see {@link withDecodingDefaultTypeKey} for the variant where the default is a `Type` value
2958
+ * @stability stable
2848
2959
  * @category decoding
2849
2960
  * @since 4.0.0
2850
2961
  */
@@ -2876,6 +2987,7 @@ export function withDecodingDefaultKey(defaultValue, options) {
2876
2987
  *
2877
2988
  * @see {@link withDecodingDefaultKey} for the variant where the default is an `Encoded` value
2878
2989
  * @see {@link withDecodingDefaultType} for the value-level variant
2990
+ * @stability stable
2879
2991
  * @category decoding
2880
2992
  * @since 4.0.0
2881
2993
  */
@@ -2919,6 +3031,7 @@ export function withDecodingDefaultTypeKey(defaultValue, options) {
2919
3031
  *
2920
3032
  * @see {@link withDecodingDefaultKey} for the key-level variant (key absent only, not `undefined`)
2921
3033
  * @see {@link withDecodingDefaultType} for the variant where the default is a `Type` value
3034
+ * @stability stable
2922
3035
  * @category decoding
2923
3036
  * @since 3.10.0
2924
3037
  */
@@ -2955,6 +3068,7 @@ export function withDecodingDefault(defaultValue, options) {
2955
3068
  *
2956
3069
  * @see {@link withDecodingDefault} for the variant where the default is an `Encoded` value
2957
3070
  * @see {@link withDecodingDefaultTypeKey} for the key-level variant
3071
+ * @stability stable
2958
3072
  * @category decoding
2959
3073
  * @since 4.0.0
2960
3074
  */
@@ -2982,6 +3096,7 @@ export function withDecodingDefaultType(defaultValue, options) {
2982
3096
  *
2983
3097
  * @see {@link tagDefaultOmit} to also omit the tag during encoding
2984
3098
  * @see {@link TaggedStruct} for a shorthand that adds `_tag` automatically
3099
+ * @stability stable
2985
3100
  * @category constructors
2986
3101
  * @since 3.10.0
2987
3102
  */
@@ -3016,6 +3131,7 @@ export function tag(literal) {
3016
3131
  * ```
3017
3132
  *
3018
3133
  * @see {@link tag} for the variant that keeps the tag during encoding
3134
+ * @stability stable
3019
3135
  * @category constructors
3020
3136
  * @since 4.0.0
3021
3137
  */
@@ -3068,6 +3184,7 @@ export function tagDefaultOmit(literal) {
3068
3184
  * tagged.fields._tag.schema.literal // => "A"
3069
3185
  * ```
3070
3186
  *
3187
+ * @stability stable
3071
3188
  * @category constructors
3072
3189
  * @since 3.10.0
3073
3190
  */
@@ -3104,6 +3221,7 @@ export function TaggedStruct(value, fields) {
3104
3221
  * ```
3105
3222
  *
3106
3223
  * @see {@link TaggedUnion} for a shorthand that builds the union from scratch
3224
+ * @stability stable
3107
3225
  * @category combinators
3108
3226
  * @since 4.0.0
3109
3227
  */
@@ -3116,6 +3234,7 @@ export function toTaggedUnion(tag) {
3116
3234
  const isAnyOf = keys => value => keys.includes(value[tag]);
3117
3235
  walk(self);
3118
3236
  return Object.assign(self, {
3237
+ tag,
3119
3238
  cases,
3120
3239
  discriminants,
3121
3240
  isAnyOf,
@@ -3182,7 +3301,7 @@ export function toTaggedUnion(tag) {
3182
3301
  /**
3183
3302
  * Builds a discriminated union from a record of field sets, one per variant.
3184
3303
  * Each key becomes the `_tag` literal and the value is passed to {@link TaggedStruct}.
3185
- * The result includes `cases`, `guards`, `isAnyOf`, `match`, and `matchOrElse` utilities.
3304
+ * The result includes `tag`, `cases`, `guards`, `isAnyOf`, `match`, and `matchOrElse` utilities.
3186
3305
  *
3187
3306
  * **Example** (Pattern matching a discriminated union)
3188
3307
  *
@@ -3203,6 +3322,7 @@ export function toTaggedUnion(tag) {
3203
3322
  * ```
3204
3323
  *
3205
3324
  * @see {@link toTaggedUnion} to augment an existing union instead
3325
+ * @stability stable
3206
3326
  * @category constructors
3207
3327
  * @since 4.0.0
3208
3328
  */
@@ -3216,12 +3336,14 @@ export function TaggedUnion(casesByTag) {
3216
3336
  }
3217
3337
  const union = Union(members);
3218
3338
  const {
3339
+ tag,
3219
3340
  guards,
3220
3341
  isAnyOf,
3221
3342
  match,
3222
3343
  matchOrElse
3223
3344
  } = toTaggedUnion("_tag")(union);
3224
3345
  return make(union.ast, {
3346
+ tag,
3225
3347
  cases,
3226
3348
  isAnyOf,
3227
3349
  guards,
@@ -3250,6 +3372,7 @@ export function TaggedUnion(casesByTag) {
3250
3372
  * person.name // => "Alice"
3251
3373
  * ```
3252
3374
  *
3375
+ * @stability stable
3253
3376
  * @category constructors
3254
3377
  * @since 4.0.0
3255
3378
  */
@@ -3271,6 +3394,7 @@ export function Opaque() {
3271
3394
  * decoded.toISOString() // => "2024-01-01T00:00:00.000Z"
3272
3395
  * ```
3273
3396
  *
3397
+ * @stability stable
3274
3398
  * @category constructors
3275
3399
  * @since 3.10.0
3276
3400
  */
@@ -3281,6 +3405,7 @@ export function instanceOf(constructor, annotations) {
3281
3405
  * Constructs an `SchemaAST.Link` that describes how a value of type `T` encodes to and decodes from a `To` schema.
3282
3406
  * Used when building low-level AST transformations that bridge two schema types.
3283
3407
  *
3408
+ * @stability stable
3284
3409
  * @category transforming
3285
3410
  * @since 4.0.0
3286
3411
  */
@@ -3344,6 +3469,7 @@ export function link() {
3344
3469
  * }
3345
3470
  * ```
3346
3471
  *
3472
+ * @stability stable
3347
3473
  * @category constructors
3348
3474
  * @since 4.0.0
3349
3475
  */
@@ -3352,6 +3478,7 @@ export const makeFilter = SchemaAST.makeFilter;
3352
3478
  * Groups multiple checks into a single {@link SchemaAST.FilterGroup}, applying
3353
3479
  * optional shared annotations to the group as a whole.
3354
3480
  *
3481
+ * @stability stable
3355
3482
  * @category constructors
3356
3483
  * @since 4.0.0
3357
3484
  */
@@ -3374,6 +3501,7 @@ const TRIMMED_PATTERN = "^\\S[\\s\\S]*\\S$|^\\S$|^$";
3374
3501
  * During arbitrary generation, this applies a `patterns`
3375
3502
  * constraint to ensure generated strings match the trimmed pattern.
3376
3503
  *
3504
+ * @stability stable
3377
3505
  * @category validation
3378
3506
  * @since 4.0.0
3379
3507
  */
@@ -3416,6 +3544,7 @@ export function isTrimmed(annotations) {
3416
3544
  * During arbitrary generation, this applies a `patterns`
3417
3545
  * constraint to ensure generated strings match the specified RegExp pattern.
3418
3546
  *
3547
+ * @stability stable
3419
3548
  * @category validation
3420
3549
  * @since 4.0.0
3421
3550
  */
@@ -3449,6 +3578,7 @@ export function isPattern(regExp, annotations) {
3449
3578
  * During arbitrary generation, this applies a `patterns`
3450
3579
  * constraint to ensure generated strings match the number string pattern.
3451
3580
  *
3581
+ * @stability stable
3452
3582
  * @category validation
3453
3583
  * @since 4.0.0
3454
3584
  */
@@ -3474,6 +3604,7 @@ export function isStringFinite(annotations) {
3474
3604
  * This check corresponds to a `pattern` constraint with the same signed
3475
3605
  * base-10 integer pattern.
3476
3606
  *
3607
+ * @stability stable
3477
3608
  * @category validation
3478
3609
  * @since 4.0.0
3479
3610
  */
@@ -3494,6 +3625,7 @@ export function isStringBigInt(annotations) {
3494
3625
  * The check uses the pattern `^Symbol\((.*)\)$`. It is not a general test for
3495
3626
  * whether a string can be passed to JavaScript's `Symbol()` function.
3496
3627
  *
3628
+ * @stability stable
3497
3629
  * @category validation
3498
3630
  * @since 4.0.0
3499
3631
  */
@@ -3538,6 +3670,7 @@ const getUUIDRegExp = version => {
3538
3670
  * constraint to ensure generated strings match the UUID pattern.
3539
3671
  *
3540
3672
  * @see {@link isGUID} for shape-only GUID validation.
3673
+ * @stability stable
3541
3674
  * @category validation
3542
3675
  * @since 4.0.0
3543
3676
  */
@@ -3583,6 +3716,7 @@ const GUID_REGEXP = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{
3583
3716
  * constraint to ensure generated strings match the GUID pattern.
3584
3717
  *
3585
3718
  * @see {@link isUUID} for strict UUID validation.
3719
+ * @stability stable
3586
3720
  * @category validation
3587
3721
  * @since 4.0.0
3588
3722
  */
@@ -3618,6 +3752,7 @@ export function isGUID(annotations) {
3618
3752
  * During arbitrary generation, this applies a `patterns`
3619
3753
  * constraint to ensure generated strings match the ULID pattern.
3620
3754
  *
3755
+ * @stability stable
3621
3756
  * @category validation
3622
3757
  * @since 4.0.0
3623
3758
  */
@@ -3652,6 +3787,7 @@ export function isULID(annotations) {
3652
3787
  * During arbitrary generation, this applies a `patterns`
3653
3788
  * constraint to ensure generated strings match the Base64 pattern.
3654
3789
  *
3790
+ * @stability stable
3655
3791
  * @category validation
3656
3792
  * @since 4.0.0
3657
3793
  */
@@ -3688,6 +3824,7 @@ export function isBase64(annotations) {
3688
3824
  * During arbitrary generation, this applies a `patterns`
3689
3825
  * constraint to ensure generated strings match the Base64URL pattern.
3690
3826
  *
3827
+ * @stability stable
3691
3828
  * @category validation
3692
3829
  * @since 4.0.0
3693
3830
  */
@@ -3724,6 +3861,7 @@ function literalToJsonSchema(literal, original, pattern) {
3724
3861
  * metadata. If the prefix ends with a high surrogate, the JSON Schema pattern
3725
3862
  * omits that code unit so Unicode matching cannot reject a valid string.
3726
3863
  *
3864
+ * @stability stable
3727
3865
  * @category validation
3728
3866
  * @since 4.0.0
3729
3867
  */
@@ -3761,6 +3899,7 @@ export function isStartingWith(startsWith, annotations) {
3761
3899
  * metadata. If the suffix begins with a low surrogate, the JSON Schema pattern
3762
3900
  * omits that code unit so Unicode matching cannot reject a valid string.
3763
3901
  *
3902
+ * @stability stable
3764
3903
  * @category validation
3765
3904
  * @since 4.0.0
3766
3905
  */
@@ -3799,6 +3938,7 @@ export function isEndingWith(endsWith, annotations) {
3799
3938
  * omitted from the JSON Schema pattern so Unicode matching cannot reject a
3800
3939
  * valid string.
3801
3940
  *
3941
+ * @stability stable
3802
3942
  * @category validation
3803
3943
  * @since 4.0.0
3804
3944
  */
@@ -3837,6 +3977,7 @@ const UPPERCASED_PATTERN = "^[^a-z]*$";
3837
3977
  * such as digits, punctuation, and whitespace. It rejects strings that would
3838
3978
  * change when uppercased.
3839
3979
  *
3980
+ * @stability stable
3840
3981
  * @category validation
3841
3982
  * @since 4.0.0
3842
3983
  */
@@ -3873,6 +4014,7 @@ const LOWERCASED_PATTERN = "^[^A-Z]*$";
3873
4014
  * such as digits, punctuation, and whitespace. It rejects strings that would
3874
4015
  * change when lowercased.
3875
4016
  *
4017
+ * @stability stable
3876
4018
  * @category validation
3877
4019
  * @since 4.0.0
3878
4020
  */
@@ -3909,6 +4051,7 @@ const CAPITALIZED_PATTERN = "^(?:[^a-z][\\s\\S]*)?$";
3909
4051
  * Empty strings pass. Strings whose first character has no lowercase form, such
3910
4052
  * as a digit, punctuation mark, or whitespace, also pass.
3911
4053
  *
4054
+ * @stability stable
3912
4055
  * @category validation
3913
4056
  * @since 4.0.0
3914
4057
  */
@@ -3945,6 +4088,7 @@ const UNCAPITALIZED_PATTERN = "^(?:[^A-Z][\\s\\S]*)?$";
3945
4088
  * Empty strings pass. Strings whose first character has no uppercase form, such
3946
4089
  * as a digit, punctuation mark, or whitespace, also pass.
3947
4090
  *
4091
+ * @stability stable
3948
4092
  * @category validation
3949
4093
  * @since 4.0.0
3950
4094
  */
@@ -3974,6 +4118,7 @@ export function isUncapitalized(annotations) {
3974
4118
  /**
3975
4119
  * Schema for finite numbers, rejecting `NaN`, `Infinity`, and `-Infinity`.
3976
4120
  *
4121
+ * @stability stable
3977
4122
  * @category schemas
3978
4123
  * @since 3.10.0
3979
4124
  */
@@ -3992,6 +4137,7 @@ export const Finite = /*#__PURE__*/make(SchemaAST.finite);
3992
4137
  *
3993
4138
  * During arbitrary generation, this applies a finite-number constraint.
3994
4139
  *
4140
+ * @stability stable
3995
4141
  * @category validation
3996
4142
  * @since 4.0.0
3997
4143
  */
@@ -4000,6 +4146,7 @@ export const isFinite = SchemaAST.isFinite;
4000
4146
  * Creates a greater-than (`>`) check for any ordered type from an
4001
4147
  * `Order.Order` instance.
4002
4148
  *
4149
+ * @stability stable
4003
4150
  * @category validation
4004
4151
  * @since 4.0.0
4005
4152
  */
@@ -4023,6 +4170,7 @@ export function makeIsGreaterThan(options) {
4023
4170
  * Creates a greater-than-or-equal-to (`>=`) check for any ordered type from an
4024
4171
  * `Order.Order` instance.
4025
4172
  *
4173
+ * @stability stable
4026
4174
  * @category validation
4027
4175
  * @since 4.0.0
4028
4176
  */
@@ -4045,6 +4193,7 @@ export function makeIsGreaterThanOrEqualTo(options) {
4045
4193
  * Creates a less-than (`<`) check for any ordered type from an `Order.Order`
4046
4194
  * instance.
4047
4195
  *
4196
+ * @stability stable
4048
4197
  * @category validation
4049
4198
  * @since 4.0.0
4050
4199
  */
@@ -4068,6 +4217,7 @@ export function makeIsLessThan(options) {
4068
4217
  * Creates a less-than-or-equal-to (`<=`) check for any ordered type from an
4069
4218
  * `Order.Order` instance.
4070
4219
  *
4220
+ * @stability stable
4071
4221
  * @category validation
4072
4222
  * @since 4.0.0
4073
4223
  */
@@ -4090,6 +4240,7 @@ export function makeIsLessThanOrEqualTo(options) {
4090
4240
  * Creates an inclusive or exclusive range check for any ordered type from an
4091
4241
  * `Order.Order` instance.
4092
4242
  *
4243
+ * @stability stable
4093
4244
  * @category validation
4094
4245
  * @since 4.0.0
4095
4246
  */
@@ -4124,6 +4275,7 @@ export function makeIsBetween(deriveOptions) {
4124
4275
  * Creates a divisibility check for any numeric type from a remainder function
4125
4276
  * and a zero value.
4126
4277
  *
4278
+ * @stability stable
4127
4279
  * @category validation
4128
4280
  * @since 4.0.0
4129
4281
  */
@@ -4158,6 +4310,7 @@ function encodeNumberPayload(number) {
4158
4310
  * `exclusiveMinimum` constraint to ensure generated numbers are greater than
4159
4311
  * the specified value.
4160
4312
  *
4313
+ * @stability stable
4161
4314
  * @category validation
4162
4315
  * @since 4.0.0
4163
4316
  */
@@ -4193,6 +4346,7 @@ export const isGreaterThan = /*#__PURE__*/makeIsGreaterThan({
4193
4346
  * During arbitrary generation, this applies a `minimum` constraint
4194
4347
  * to ensure generated numbers are greater than or equal to the specified value.
4195
4348
  *
4349
+ * @stability stable
4196
4350
  * @category validation
4197
4351
  * @since 4.0.0
4198
4352
  */
@@ -4228,6 +4382,7 @@ export const isGreaterThanOrEqualTo = /*#__PURE__*/makeIsGreaterThanOrEqualTo({
4228
4382
  * `exclusiveMaximum` constraint to ensure generated numbers are less than the
4229
4383
  * specified value.
4230
4384
  *
4385
+ * @stability stable
4231
4386
  * @category validation
4232
4387
  * @since 4.0.0
4233
4388
  */
@@ -4263,6 +4418,7 @@ export const isLessThan = /*#__PURE__*/makeIsLessThan({
4263
4418
  * During arbitrary generation, this applies a `maximum` constraint
4264
4419
  * to ensure generated numbers are less than or equal to the specified value.
4265
4420
  *
4421
+ * @stability stable
4266
4422
  * @category validation
4267
4423
  * @since 4.0.0
4268
4424
  */
@@ -4301,6 +4457,7 @@ export const isLessThanOrEqualTo = /*#__PURE__*/makeIsLessThanOrEqualTo({
4301
4457
  * `exclusiveMaximum` flags to ensure generated numbers fall within the
4302
4458
  * specified range.
4303
4459
  *
4460
+ * @stability stable
4304
4461
  * @category validation
4305
4462
  * @since 4.0.0
4306
4463
  */
@@ -4349,6 +4506,7 @@ export const isBetween = /*#__PURE__*/makeIsBetween({
4349
4506
  *
4350
4507
  * Throws a `RangeError` when `divisor` is zero or is not finite.
4351
4508
  *
4509
+ * @stability stable
4352
4510
  * @category validation
4353
4511
  * @since 4.0.0
4354
4512
  */
@@ -4382,12 +4540,14 @@ export function isMultipleOf(divisor, annotations) {
4382
4540
  *
4383
4541
  * JSON Schema:
4384
4542
  *
4385
- * This check corresponds to the `type: "integer"` constraint in JSON Schema.
4543
+ * This check corresponds to `type: "integer"` with `minimum: Number.MIN_SAFE_INTEGER`
4544
+ * and `maximum: Number.MAX_SAFE_INTEGER` in JSON Schema.
4386
4545
  *
4387
4546
  * Arbitrary:
4388
4547
  *
4389
4548
  * During arbitrary generation, this applies an integer constraint.
4390
4549
  *
4550
+ * @stability stable
4391
4551
  * @category validation
4392
4552
  * @since 4.0.0
4393
4553
  */
@@ -4398,9 +4558,11 @@ export function isInt(annotations) {
4398
4558
  id: "effect/schema/isInt",
4399
4559
  payload: null
4400
4560
  },
4401
- toJsonSchema: () => [{
4402
- type: "integer"
4403
- }, true],
4561
+ toJsonSchema: () => ({
4562
+ type: "integer",
4563
+ minimum: globalThis.Number.MIN_SAFE_INTEGER,
4564
+ maximum: globalThis.Number.MAX_SAFE_INTEGER
4565
+ }),
4404
4566
  toCode: () => ({
4405
4567
  runtime: "Schema.isInt()"
4406
4568
  }),
@@ -4413,6 +4575,7 @@ export function isInt(annotations) {
4413
4575
  /**
4414
4576
  * Schema for integers, rejecting `NaN`, `Infinity`, and `-Infinity`.
4415
4577
  *
4578
+ * @stability stable
4416
4579
  * @category schemas
4417
4580
  * @since 3.10.0
4418
4581
  */
@@ -4426,6 +4589,7 @@ export const Int = /*#__PURE__*/Number.check(/*#__PURE__*/isInt());
4426
4589
  *
4427
4590
  * @see {@link Int} for safe integers that may be negative
4428
4591
  *
4592
+ * @stability stable
4429
4593
  * @category schemas
4430
4594
  * @since 4.0.0
4431
4595
  */
@@ -4446,6 +4610,7 @@ export const Natural = /*#__PURE__*/Int.check(/*#__PURE__*/isGreaterThanOrEqualT
4446
4610
  * During arbitrary generation, this applies integer and range
4447
4611
  * constraints to ensure generated numbers are 32-bit signed integers.
4448
4612
  *
4613
+ * @stability stable
4449
4614
  * @category validation
4450
4615
  * @since 4.0.0
4451
4616
  */
@@ -4474,6 +4639,7 @@ export function isInt32(annotations) {
4474
4639
  * During arbitrary generation, this applies integer and range
4475
4640
  * constraints to ensure generated numbers are 32-bit unsigned integers.
4476
4641
  *
4642
+ * @stability stable
4477
4643
  * @category validation
4478
4644
  * @since 4.0.0
4479
4645
  */
@@ -4504,6 +4670,7 @@ function formatDateRuntime(date) {
4504
4670
  *
4505
4671
  * During arbitrary generation, this applies an exclusive lower bound.
4506
4672
  *
4673
+ * @stability stable
4507
4674
  * @category validation
4508
4675
  * @since 4.0.0
4509
4676
  */
@@ -4540,6 +4707,7 @@ export const isGreaterThanDate = /*#__PURE__*/makeIsGreaterThan({
4540
4707
  *
4541
4708
  * During arbitrary generation, this applies an inclusive lower bound.
4542
4709
  *
4710
+ * @stability stable
4543
4711
  * @category validation
4544
4712
  * @since 4.0.0
4545
4713
  */
@@ -4570,6 +4738,7 @@ export const isGreaterThanOrEqualToDate = /*#__PURE__*/makeIsGreaterThanOrEqualT
4570
4738
  *
4571
4739
  * During arbitrary generation, this applies an exclusive upper bound.
4572
4740
  *
4741
+ * @stability stable
4573
4742
  * @category validation
4574
4743
  * @since 4.0.0
4575
4744
  */
@@ -4606,6 +4775,7 @@ export const isLessThanDate = /*#__PURE__*/makeIsLessThan({
4606
4775
  *
4607
4776
  * During arbitrary generation, this applies an inclusive upper bound.
4608
4777
  *
4778
+ * @stability stable
4609
4779
  * @category validation
4610
4780
  * @since 4.0.0
4611
4781
  */
@@ -4642,6 +4812,7 @@ export const isLessThanOrEqualToDate = /*#__PURE__*/makeIsLessThanOrEqualTo({
4642
4812
  *
4643
4813
  * During arbitrary generation, this applies the specified lower and upper bounds.
4644
4814
  *
4815
+ * @stability stable
4645
4816
  * @category validation
4646
4817
  * @since 4.0.0
4647
4818
  */
@@ -4681,6 +4852,7 @@ export const isBetweenDate = /*#__PURE__*/makeIsBetween({
4681
4852
  *
4682
4853
  * During arbitrary generation, this applies an exclusive lower bound.
4683
4854
  *
4855
+ * @stability stable
4684
4856
  * @category validation
4685
4857
  * @since 4.0.0
4686
4858
  */
@@ -4712,6 +4884,7 @@ export const isGreaterThanBigInt = /*#__PURE__*/makeIsGreaterThan({
4712
4884
  *
4713
4885
  * During arbitrary generation, this applies an inclusive lower bound.
4714
4886
  *
4887
+ * @stability stable
4715
4888
  * @category validation
4716
4889
  * @since 4.0.0
4717
4890
  */
@@ -4742,6 +4915,7 @@ export const isGreaterThanOrEqualToBigInt = /*#__PURE__*/makeIsGreaterThanOrEqua
4742
4915
  *
4743
4916
  * During arbitrary generation, this applies an exclusive upper bound.
4744
4917
  *
4918
+ * @stability stable
4745
4919
  * @category validation
4746
4920
  * @since 4.0.0
4747
4921
  */
@@ -4773,6 +4947,7 @@ export const isLessThanBigInt = /*#__PURE__*/makeIsLessThan({
4773
4947
  *
4774
4948
  * During arbitrary generation, this applies an inclusive upper bound.
4775
4949
  *
4950
+ * @stability stable
4776
4951
  * @category validation
4777
4952
  * @since 4.0.0
4778
4953
  */
@@ -4804,6 +4979,7 @@ export const isLessThanOrEqualToBigInt = /*#__PURE__*/makeIsLessThanOrEqualTo({
4804
4979
  *
4805
4980
  * During arbitrary generation, this applies the specified lower and upper bounds.
4806
4981
  *
4982
+ * @stability stable
4807
4983
  * @category validation
4808
4984
  * @since 4.0.0
4809
4985
  */
@@ -4865,6 +5041,7 @@ export const isBetweenBigInt = /*#__PURE__*/makeIsBetween({
4865
5041
  * Schema.is(NonEmptyArraySchema)([1]) // => true
4866
5042
  * ```
4867
5043
  *
5044
+ * @stability stable
4868
5045
  * @category validation
4869
5046
  * @since 4.0.0
4870
5047
  */
@@ -4919,6 +5096,7 @@ function makeIsMinLength(minLength, minCodePoints, annotations) {
4919
5096
  * During arbitrary generation, this applies a `minLength: 1`
4920
5097
  * constraint to ensure generated strings or arrays are non-empty.
4921
5098
  *
5099
+ * @stability stable
4922
5100
  * @category validation
4923
5101
  * @since 4.0.0
4924
5102
  */
@@ -4944,6 +5122,7 @@ export function isNonEmpty(annotations) {
4944
5122
  * constraint to ensure generated strings or arrays have at most the required
4945
5123
  * length.
4946
5124
  *
5125
+ * @stability stable
4947
5126
  * @category validation
4948
5127
  * @since 4.0.0
4949
5128
  */
@@ -4999,6 +5178,7 @@ export function isMaxLength(maxLength, annotations) {
4999
5178
  * `maxLength` constraints to ensure generated strings or arrays have a length
5000
5179
  * within the specified range.
5001
5180
  *
5181
+ * @stability stable
5002
5182
  * @category validation
5003
5183
  * @since 4.0.0
5004
5184
  */
@@ -5060,6 +5240,7 @@ export function isBetweenLength(minimum, maximum, annotations) {
5060
5240
  * @see {@link isMinLength} for counting UTF-16 code units
5061
5241
  * @see {@link isMaxCodePoints}
5062
5242
  * @see {@link isBetweenCodePoints}
5243
+ * @stability stable
5063
5244
  * @category validation
5064
5245
  * @since 4.0.0
5065
5246
  */
@@ -5103,6 +5284,7 @@ export function isMinCodePoints(minCodePoints, annotations) {
5103
5284
  * @see {@link isMaxLength} for counting UTF-16 code units
5104
5285
  * @see {@link isMinCodePoints}
5105
5286
  * @see {@link isBetweenCodePoints}
5287
+ * @stability stable
5106
5288
  * @category validation
5107
5289
  * @since 4.0.0
5108
5290
  */
@@ -5146,6 +5328,7 @@ export function isMaxCodePoints(maxCodePoints, annotations) {
5146
5328
  * @see {@link isBetweenLength} for counting UTF-16 code units
5147
5329
  * @see {@link isMinCodePoints}
5148
5330
  * @see {@link isMaxCodePoints}
5331
+ * @stability stable
5149
5332
  * @category validation
5150
5333
  * @since 4.0.0
5151
5334
  */
@@ -5212,6 +5395,7 @@ function normalizeCardinality(value) {
5212
5395
  *
5213
5396
  * During arbitrary generation, this applies a node-local `minSize` constraint.
5214
5397
  *
5398
+ * @stability stable
5215
5399
  * @category validation
5216
5400
  * @since 4.0.0
5217
5401
  */
@@ -5253,6 +5437,7 @@ export function isMinSize(minSize, annotations) {
5253
5437
  *
5254
5438
  * During arbitrary generation, this applies a node-local `maxSize` constraint.
5255
5439
  *
5440
+ * @stability stable
5256
5441
  * @category validation
5257
5442
  * @since 4.0.0
5258
5443
  */
@@ -5294,6 +5479,7 @@ export function isMaxSize(maxSize, annotations) {
5294
5479
  *
5295
5480
  * During arbitrary generation, this applies node-local `minSize` and `maxSize` constraints.
5296
5481
  *
5482
+ * @stability stable
5297
5483
  * @category validation
5298
5484
  * @since 4.0.0
5299
5485
  */
@@ -5341,6 +5527,7 @@ export function isBetweenSize(minimum, maximum, annotations) {
5341
5527
  *
5342
5528
  * During arbitrary generation, this applies a node-local `minProperties` constraint.
5343
5529
  *
5530
+ * @stability stable
5344
5531
  * @category validation
5345
5532
  * @since 4.0.0
5346
5533
  */
@@ -5390,6 +5577,7 @@ export function isMinProperties(minProperties, annotations) {
5390
5577
  *
5391
5578
  * During arbitrary generation, this applies a node-local `maxProperties` constraint.
5392
5579
  *
5580
+ * @stability stable
5393
5581
  * @category validation
5394
5582
  * @since 4.0.0
5395
5583
  */
@@ -5439,6 +5627,7 @@ export function isMaxProperties(maxProperties, annotations) {
5439
5627
  *
5440
5628
  * During arbitrary generation, this applies node-local `minProperties` and `maxProperties` constraints.
5441
5629
  *
5630
+ * @stability stable
5442
5631
  * @category validation
5443
5632
  * @since 4.0.0
5444
5633
  */
@@ -5489,6 +5678,7 @@ export function isBetweenProperties(minimum, maximum, annotations) {
5489
5678
  * names in the original input. Property transformations and excess-property
5490
5679
  * handling can therefore produce different results.
5491
5680
  *
5681
+ * @stability stable
5492
5682
  * @category validation
5493
5683
  * @since 4.0.0
5494
5684
  */
@@ -5545,6 +5735,7 @@ export function isPropertyNames(keySchema, annotations) {
5545
5735
  * During arbitrary generation, this applies a node-local identity selector
5546
5736
  * for constructive uniqueness using Effect equality.
5547
5737
  *
5738
+ * @stability stable
5548
5739
  * @category validation
5549
5740
  * @since 4.0.0
5550
5741
  */
@@ -5579,6 +5770,7 @@ export function isUnique(annotations) {
5579
5770
  * JSON Schema has no equivalent constraint, so this check is omitted from generated documents.
5580
5771
  *
5581
5772
  * @see {@link isUnique} for validating uniqueness of complete array elements
5773
+ * @stability stable
5582
5774
  * @category validation
5583
5775
  * @since 4.0.0
5584
5776
  */
@@ -5602,6 +5794,7 @@ export function isUniqueKey(annotations) {
5602
5794
  * Schema for non-empty strings. Validates that a string has at least one
5603
5795
  * character.
5604
5796
  *
5797
+ * @stability stable
5605
5798
  * @category schemas
5606
5799
  * @since 3.10.0
5607
5800
  */
@@ -5622,6 +5815,7 @@ export const NonEmptyString = /*#__PURE__*/String.check(/*#__PURE__*/isNonEmpty(
5622
5815
  * @see {@link NonEmptyString} for strings with length greater than zero
5623
5816
  * @see {@link isBetweenLength} for the underlying length check
5624
5817
  *
5818
+ * @stability stable
5625
5819
  * @category schemas
5626
5820
  * @since 3.10.0
5627
5821
  */
@@ -5659,6 +5853,7 @@ const errorSchemaCache = [];
5659
5853
  * traces are omitted by default for security. Pass `{ includeStack: true }` to
5660
5854
  * include stack traces, or `{ excludeCause: true }` to omit causes.
5661
5855
  *
5856
+ * @stability stable
5662
5857
  * @category schemas
5663
5858
  * @since 4.0.0
5664
5859
  */
@@ -5723,6 +5918,7 @@ const defectSchemaCache = [];
5723
5918
  * string representation.
5724
5919
  *
5725
5920
  * @see {@link ErrorInstance} for a schema that only accepts JavaScript `Error` values.
5921
+ * @stability stable
5726
5922
  * @category schemas
5727
5923
  * @since 4.0.0
5728
5924
  */
@@ -5740,6 +5936,7 @@ export function Defect(options) {
5740
5936
  * Schema for readonly maps whose keys and values conform to the provided
5741
5937
  * schemas.
5742
5938
  *
5939
+ * @stability stable
5743
5940
  * @category schemas
5744
5941
  * @since 3.10.0
5745
5942
  */
@@ -5780,6 +5977,7 @@ export function ReadonlyMap(key, value) {
5780
5977
  /**
5781
5978
  * Schema for readonly sets whose values conform to the provided element schema.
5782
5979
  *
5980
+ * @stability stable
5783
5981
  * @category schemas
5784
5982
  * @since 3.10.0
5785
5983
  */
@@ -5823,6 +6021,7 @@ export function ReadonlySet(value) {
5823
6021
  *
5824
6022
  * The default JSON serializer encodes a `RegExp` as `{ source, flags }`.
5825
6023
  *
6024
+ * @stability stable
5826
6025
  * @category schemas
5827
6026
  * @since 4.0.0
5828
6027
  */
@@ -5864,6 +6063,7 @@ const URLString = /*#__PURE__*/String.annotate({
5864
6063
  *
5865
6064
  * - encodes `URL` as a `string`
5866
6065
  *
6066
+ * @stability stable
5867
6067
  * @category schemas
5868
6068
  * @since 4.0.0
5869
6069
  */
@@ -5890,6 +6090,7 @@ export const URL = /*#__PURE__*/instanceOf(globalThis.URL, {
5890
6090
  * Encoding:
5891
6091
  * - A `URL` is encoded as a `string`
5892
6092
  *
6093
+ * @stability stable
5893
6094
  * @category schemas
5894
6095
  * @since 4.0.0
5895
6096
  */
@@ -5922,6 +6123,7 @@ const DateString = /*#__PURE__*/String.annotate({
5922
6123
  * @see {@link DateFromString} for decoding strings into Date instances
5923
6124
  * @see {@link DateFromMillis} for decoding epoch milliseconds into Date instances
5924
6125
  *
6126
+ * @stability stable
5925
6127
  * @category schemas
5926
6128
  * @since 4.0.0
5927
6129
  */
@@ -5959,6 +6161,7 @@ export const Date = /*#__PURE__*/declare(input => input instanceof globalThis.Da
5959
6161
  * @see {@link DateTimeUtcFromString} for decoding date-time strings into UTC values
5960
6162
  * @see {@link Date} for accepting Date instances directly
5961
6163
  *
6164
+ * @stability stable
5962
6165
  * @category schemas
5963
6166
  * @since 3.10.0
5964
6167
  */
@@ -5988,6 +6191,7 @@ export const DateFromString = /*#__PURE__*/DateString.pipe(/*#__PURE__*/decodeTo
5988
6191
  * @see {@link DateFromString} for decoding string-encoded dates
5989
6192
  * @see {@link DateTimeUtcFromMillis} for decoding epoch milliseconds into UTC values
5990
6193
  *
6194
+ * @stability stable
5991
6195
  * @category schemas
5992
6196
  * @since 4.0.0
5993
6197
  */
@@ -6022,6 +6226,7 @@ const JsonString = /*#__PURE__*/String.annotate({
6022
6226
  * Schema.encodeSync(schemaFromJsonString)({ a: 1 }) // => "{\n \"a\": 1\n}"
6023
6227
  * ```
6024
6228
  *
6229
+ * @stability stable
6025
6230
  * @category schemas
6026
6231
  * @since 4.0.0
6027
6232
  */
@@ -6038,6 +6243,7 @@ export const UnknownFromJsonString = /*#__PURE__*/fromJsonString(Unknown);
6038
6243
  * The default JSON serializer encodes a `File` as `{ data, type, name, lastModified }`
6039
6244
  * where `data` is base64-encoded.
6040
6245
  *
6246
+ * @stability stable
6041
6247
  * @category schemas
6042
6248
  * @since 4.0.0
6043
6249
  */
@@ -6093,6 +6299,7 @@ export const File = /*#__PURE__*/instanceOf(globalThis.File, {
6093
6299
  * The default JSON serializer encodes a `FormData` as an array of `[key, entry]`
6094
6300
  * pairs where each entry is tagged as `"String"` or `"File"`.
6095
6301
  *
6302
+ * @stability stable
6096
6303
  * @category schemas
6097
6304
  * @since 4.0.0
6098
6305
  */
@@ -6216,6 +6423,7 @@ export const FormData = /*#__PURE__*/instanceOf(globalThis.FormData, {
6216
6423
  * Schema.decodeUnknownSync(schema)(formData) // => { a: 1 }
6217
6424
  * ```
6218
6425
  *
6426
+ * @stability stable
6219
6427
  * @category decoding
6220
6428
  * @since 4.0.0
6221
6429
  */
@@ -6229,6 +6437,7 @@ export function fromFormData(schema) {
6229
6437
  *
6230
6438
  * The default JSON serializer encodes a `URLSearchParams` as a query string.
6231
6439
  *
6440
+ * @stability stable
6232
6441
  * @category schemas
6233
6442
  * @since 4.0.0
6234
6443
  */
@@ -6323,6 +6532,7 @@ export const URLSearchParams = /*#__PURE__*/instanceOf(globalThis.URLSearchParam
6323
6532
  * Schema.decodeUnknownSync(schema)(urlSearchParams) // => { a: 1 }
6324
6533
  * ```
6325
6534
  *
6535
+ * @stability stable
6326
6536
  * @category decoding
6327
6537
  * @since 4.0.0
6328
6538
  */
@@ -6343,6 +6553,7 @@ export function fromURLSearchParams(schema) {
6343
6553
  * Encoding:
6344
6554
  * A number is encoded as a `string`.
6345
6555
  *
6556
+ * @stability stable
6346
6557
  * @category schemas
6347
6558
  * @since 3.10.0
6348
6559
  */
@@ -6361,6 +6572,7 @@ export const NumberFromString = /*#__PURE__*/String.annotate({
6361
6572
  * Encoding:
6362
6573
  * - A finite number is encoded as a `string`.
6363
6574
  *
6575
+ * @stability stable
6364
6576
  * @category schemas
6365
6577
  * @since 4.0.0
6366
6578
  */
@@ -6392,6 +6604,7 @@ export const FiniteFromString = /*#__PURE__*/String.annotate({
6392
6604
  * @see {@link NumberFromString} for parsing JavaScript number strings, including non-finite values
6393
6605
  * @see {@link BigDecimalFromString} for parsing decimal number strings
6394
6606
  *
6607
+ * @stability stable
6395
6608
  * @category schemas
6396
6609
  * @since 4.0.0
6397
6610
  */
@@ -6399,6 +6612,7 @@ export const BigIntFromString = /*#__PURE__*/make(SchemaAST.bigIntString).pipe(/
6399
6612
  /**
6400
6613
  * Schema for strings that contains no leading or trailing whitespaces.
6401
6614
  *
6615
+ * @stability stable
6402
6616
  * @category schemas
6403
6617
  * @since 3.10.0
6404
6618
  */
@@ -6414,6 +6628,7 @@ export const Trimmed = /*#__PURE__*/String.check(/*#__PURE__*/isTrimmed());
6414
6628
  * Encoding:
6415
6629
  * - The trimmed string is encoded as is.
6416
6630
  *
6631
+ * @stability stable
6417
6632
  * @category schemas
6418
6633
  * @since 3.10.0
6419
6634
  */
@@ -6431,6 +6646,7 @@ export const Trim = /*#__PURE__*/String.annotate({
6431
6646
  * Encoding:
6432
6647
  * - A `string` is encoded as a base64-encoded string.
6433
6648
  *
6649
+ * @stability stable
6434
6650
  * @category schemas
6435
6651
  * @since 3.10.0
6436
6652
  */
@@ -6448,6 +6664,7 @@ export const StringFromBase64 = /*#__PURE__*/String.annotate({
6448
6664
  * Encoding:
6449
6665
  * - A `string` is encoded as a base64 (URL) encoded string.
6450
6666
  *
6667
+ * @stability stable
6451
6668
  * @category schemas
6452
6669
  * @since 3.10.0
6453
6670
  */
@@ -6465,6 +6682,7 @@ export const StringFromBase64Url = /*#__PURE__*/String.annotate({
6465
6682
  * Encoding:
6466
6683
  * - A `string` is encoded as a hex string.
6467
6684
  *
6685
+ * @stability stable
6468
6686
  * @category schemas
6469
6687
  * @since 3.10.0
6470
6688
  */
@@ -6500,6 +6718,7 @@ export const StringFromHex = /*#__PURE__*/String.annotate({
6500
6718
  * Schema.encodeSync(UrlSchema)({ maxItemPerPage: 10, page: 1 }) // => "%7B%22maxItemPerPage%22%3A10%2C%22page%22%3A1%7D"
6501
6719
  * ```
6502
6720
  *
6721
+ * @stability stable
6503
6722
  * @category schemas
6504
6723
  * @since 3.12.0
6505
6724
  */
@@ -6510,6 +6729,7 @@ export const StringFromUriComponent = /*#__PURE__*/String.annotate({
6510
6729
  * Schema for property keys accepted by Effect schemas: finite `number`,
6511
6730
  * `symbol`, or `string`.
6512
6731
  *
6732
+ * @stability stable
6513
6733
  * @category schemas
6514
6734
  * @since 4.0.0
6515
6735
  */
@@ -6522,6 +6742,7 @@ export const PropertyKey = /*#__PURE__*/Union([Finite, Symbol, String]);
6522
6742
  * The result contains an `issues` array where each issue has a message and an
6523
6743
  * optional path made of property keys or keyed path segments.
6524
6744
  *
6745
+ * @stability stable
6525
6746
  * @category schemas
6526
6747
  * @since 4.0.0
6527
6748
  */
@@ -6549,6 +6770,7 @@ export const StandardSchemaV1FailureResult = /*#__PURE__*/Struct({
6549
6770
  * @see {@link Boolean} for validating values that are already booleans
6550
6771
  * @see {@link Literals} for keeping bit literals instead of decoding them
6551
6772
  *
6773
+ * @stability stable
6552
6774
  * @category schemas
6553
6775
  * @since 4.0.0
6554
6776
  */
@@ -6570,6 +6792,7 @@ const Base64String = /*#__PURE__*/String.annotate({
6570
6792
  *
6571
6793
  * The default JSON serializer encodes Uint8Array as a Base64 encoded string.
6572
6794
  *
6795
+ * @stability stable
6573
6796
  * @category schemas
6574
6797
  * @since 4.0.0
6575
6798
  */
@@ -6597,6 +6820,7 @@ export const Uint8Array = /*#__PURE__*/instanceOf(globalThis.Uint8Array, {
6597
6820
  * Encoding:
6598
6821
  * - A `Uint8Array` is encoded as a base64-encoded string.
6599
6822
  *
6823
+ * @stability stable
6600
6824
  * @category schemas
6601
6825
  * @since 3.10.0
6602
6826
  */
@@ -6613,6 +6837,7 @@ export const Uint8ArrayFromBase64 = /*#__PURE__*/Base64String.pipe(/*#__PURE__*/
6613
6837
  * Encoding:
6614
6838
  * - A `Uint8Array` is encoded as a base64 (URL) encoded string.
6615
6839
  *
6840
+ * @stability stable
6616
6841
  * @category schemas
6617
6842
  * @since 3.10.0
6618
6843
  */
@@ -6634,6 +6859,7 @@ export const Uint8ArrayFromBase64Url = /*#__PURE__*/String.annotate({
6634
6859
  * Encoding:
6635
6860
  * - A `Uint8Array` is encoded as a hex encoded string.
6636
6861
  *
6862
+ * @stability stable
6637
6863
  * @category schemas
6638
6864
  * @since 3.10.0
6639
6865
  */
@@ -6658,6 +6884,7 @@ const bigDecimalFromString = /*#__PURE__*/SchemaTransformation.transformEffect({
6658
6884
  /**
6659
6885
  * Validates that a BigDecimal is greater than the specified value (exclusive).
6660
6886
  *
6887
+ * @stability stable
6661
6888
  * @category validation
6662
6889
  * @since 4.0.0
6663
6890
  */
@@ -6669,6 +6896,7 @@ export const isGreaterThanBigDecimal = /*#__PURE__*/makeIsGreaterThan({
6669
6896
  * Validates that a BigDecimal is greater than or equal to the specified value
6670
6897
  * (inclusive).
6671
6898
  *
6899
+ * @stability stable
6672
6900
  * @category validation
6673
6901
  * @since 4.0.0
6674
6902
  */
@@ -6679,6 +6907,7 @@ export const isGreaterThanOrEqualToBigDecimal = /*#__PURE__*/makeIsGreaterThanOr
6679
6907
  /**
6680
6908
  * Validates that a BigDecimal is less than the specified value (exclusive).
6681
6909
  *
6910
+ * @stability stable
6682
6911
  * @category validation
6683
6912
  * @since 4.0.0
6684
6913
  */
@@ -6690,6 +6919,7 @@ export const isLessThanBigDecimal = /*#__PURE__*/makeIsLessThan({
6690
6919
  * Validates that a BigDecimal is less than or equal to the specified value
6691
6920
  * (inclusive).
6692
6921
  *
6922
+ * @stability stable
6693
6923
  * @category validation
6694
6924
  * @since 4.0.0
6695
6925
  */
@@ -6705,6 +6935,7 @@ export const isLessThanOrEqualToBigDecimal = /*#__PURE__*/makeIsLessThanOrEqualT
6705
6935
  * The minimum and maximum boundaries are inclusive by default. Pass
6706
6936
  * `exclusiveMinimum` or `exclusiveMaximum` to exclude either boundary.
6707
6937
  *
6938
+ * @stability stable
6708
6939
  * @category validation
6709
6940
  * @since 4.0.0
6710
6941
  */
@@ -6731,6 +6962,7 @@ const BigDecimalString = /*#__PURE__*/String.annotate({
6731
6962
  *
6732
6963
  * @see {@link BigDecimalFromString} for parsing string input into a BigDecimal
6733
6964
  *
6965
+ * @stability stable
6734
6966
  * @category schemas
6735
6967
  * @since 3.10.0
6736
6968
  */
@@ -6772,6 +7004,7 @@ export const BigDecimal = /*#__PURE__*/declare(BigDecimal_.isBigDecimal, {
6772
7004
  * @see {@link BigIntFromString} for parsing base-10 integer strings into bigint values
6773
7005
  * @see {@link NumberFromString} for parsing JavaScript number strings
6774
7006
  *
7007
+ * @stability stable
6775
7008
  * @category schemas
6776
7009
  * @since 4.0.0
6777
7010
  */
@@ -6785,6 +7018,7 @@ export const BigDecimalFromString = /*#__PURE__*/BigDecimalString.pipe(/*#__PURE
6785
7018
  * beyond JavaScript's safe-integer range. The StringTree codec uses the
6786
7019
  * human-readable byte-size syntax exposed by {@link ByteSizeFromString}.
6787
7020
  *
7021
+ * @stability unstable
6788
7022
  * @category schemas
6789
7023
  * @since 4.0.0
6790
7024
  */
@@ -6834,6 +7068,7 @@ const ByteSizeString = /*#__PURE__*/String.annotate({
6834
7068
  * A unit is required. Signs, exponent notation, digit separators, and ambiguous
6835
7069
  * unit spellings such as `KB`, `mb`, `Mb`, or `b` are rejected.
6836
7070
  *
7071
+ * @stability unstable
6837
7072
  * @category schemas
6838
7073
  * @since 4.0.0
6839
7074
  */
@@ -6841,6 +7076,7 @@ export const ByteSizeFromString = /*#__PURE__*/ByteSizeString.pipe(/*#__PURE__*/
6841
7076
  /**
6842
7077
  * Schema that decodes non-negative bigint byte counts.
6843
7078
  *
7079
+ * @stability unstable
6844
7080
  * @category schemas
6845
7081
  * @since 4.0.0
6846
7082
  */
@@ -6852,6 +7088,7 @@ export const ByteSizeFromBigInt = /*#__PURE__*/BigInt.pipe(/*#__PURE__*/decodeTo
6852
7088
  *
6853
7089
  * Encoding fails when the byte count exceeds `Number.MAX_SAFE_INTEGER`.
6854
7090
  *
7091
+ * @stability unstable
6855
7092
  * @category schemas
6856
7093
  * @since 4.0.0
6857
7094
  */
@@ -6873,6 +7110,7 @@ export const ByteSizeFromNumber = /*#__PURE__*/Number.pipe(/*#__PURE__*/decodeTo
6873
7110
  * @see {@link Cause} for constructing schemas for full Cause values
6874
7111
  * @see {@link CauseReasonIso} for the ISO shape of each cause reason
6875
7112
  *
7113
+ * @stability stable
6876
7114
  * @category schemas
6877
7115
  * @since 4.0.0
6878
7116
  */
@@ -6972,6 +7210,7 @@ export function CauseReason(error, defect) {
6972
7210
  * @see {@link CauseReason} for the schema used by each individual cause reason
6973
7211
  * @see {@link CauseIso} for the ordered array representation used by the schema ISO
6974
7212
  *
7213
+ * @stability stable
6975
7214
  * @category schemas
6976
7215
  * @since 3.10.0
6977
7216
  */
@@ -7024,6 +7263,7 @@ function chunkLink(values) {
7024
7263
  /**
7025
7264
  * Schema for chunks whose values conform to the provided element schema.
7026
7265
  *
7266
+ * @stability stable
7027
7267
  * @category schemas
7028
7268
  * @since 3.10.0
7029
7269
  */
@@ -7162,6 +7402,7 @@ function timeZoneArbitrarySchema() {
7162
7402
  * @see {@link DateTimeUtcFromMillis} for decoding epoch milliseconds into UTC values
7163
7403
  * @see {@link DateTimeZoned} for preserving zoned DateTime values
7164
7404
  *
7405
+ * @stability stable
7165
7406
  * @category schemas
7166
7407
  * @since 3.10.0
7167
7408
  */
@@ -7206,6 +7447,7 @@ export const DateTimeUtc = /*#__PURE__*/declare(u => DateTime.isDateTime(u) && D
7206
7447
  * @see {@link DateTimeUtcFromMillis} for decoding epoch milliseconds into UTC values
7207
7448
  * @see {@link Date} for validating Date instances without converting them
7208
7449
  *
7450
+ * @stability stable
7209
7451
  * @category schemas
7210
7452
  * @since 3.12.0
7211
7453
  */
@@ -7231,6 +7473,7 @@ export const DateTimeUtcFromDate = /*#__PURE__*/Date.pipe(/*#__PURE__*/decodeTo(
7231
7473
  * @see {@link DateTimeUtcFromMillis} for decoding epoch milliseconds into UTC values
7232
7474
  * @see {@link DateFromString} for decoding strings into JavaScript Date instances
7233
7475
  *
7476
+ * @stability stable
7234
7477
  * @category schemas
7235
7478
  * @since 4.0.0
7236
7479
  */
@@ -7252,6 +7495,7 @@ export const DateTimeUtcFromString = /*#__PURE__*/String.annotate({
7252
7495
  * @see {@link DateTimeUtcFromString} for decoding date-time strings into UTC values
7253
7496
  * @see {@link DateFromMillis} for decoding epoch milliseconds into JavaScript Date instances
7254
7497
  *
7498
+ * @stability stable
7255
7499
  * @category schemas
7256
7500
  * @since 4.0.0
7257
7501
  */
@@ -7268,6 +7512,7 @@ export const DateTimeUtcFromMillis = /*#__PURE__*/Int.pipe(/*#__PURE__*/decodeTo
7268
7512
  *
7269
7513
  * - encodes `DateTime.TimeZone.Offset` as a number (offset in milliseconds)
7270
7514
  *
7515
+ * @stability stable
7271
7516
  * @category schemas
7272
7517
  * @since 3.10.0
7273
7518
  */
@@ -7297,6 +7542,7 @@ const TimeZoneNamedString = /*#__PURE__*/String.annotate({
7297
7542
  *
7298
7543
  * - encodes `DateTime.TimeZone.Named` as a string (IANA time zone identifier)
7299
7544
  *
7545
+ * @stability stable
7300
7546
  * @category schemas
7301
7547
  * @since 3.10.0
7302
7548
  */
@@ -7326,6 +7572,7 @@ export const TimeZoneNamed = /*#__PURE__*/declare(DateTime.isTimeZoneNamed, {
7326
7572
  * Encoding:
7327
7573
  * - A `DateTime.TimeZone.Named` is encoded as a `string`.
7328
7574
  *
7575
+ * @stability stable
7329
7576
  * @category schemas
7330
7577
  * @since 4.0.0
7331
7578
  */
@@ -7343,6 +7590,7 @@ const TimeZoneString = /*#__PURE__*/String.annotate({
7343
7590
  * - encodes `DateTime.TimeZone` as a string (IANA identifier or offset like
7344
7591
  * `+03:00`)
7345
7592
  *
7593
+ * @stability stable
7346
7594
  * @category schemas
7347
7595
  * @since 3.10.0
7348
7596
  */
@@ -7372,6 +7620,7 @@ export const TimeZone = /*#__PURE__*/declare(DateTime.isTimeZone, {
7372
7620
  * Encoding:
7373
7621
  * - A `DateTime.TimeZone` is encoded as a `string`.
7374
7622
  *
7623
+ * @stability stable
7375
7624
  * @category schemas
7376
7625
  * @since 4.0.0
7377
7626
  */
@@ -7391,6 +7640,7 @@ const DateTimeZonedString = /*#__PURE__*/String.annotate({
7391
7640
  * - encodes named zones by appending the IANA identifier in brackets, such as
7392
7641
  * `YYYY-MM-DDTHH:mm:ss.sss+HH:MM[Time/Zone]`
7393
7642
  *
7643
+ * @stability stable
7394
7644
  * @category schemas
7395
7645
  * @since 3.10.0
7396
7646
  */
@@ -7434,6 +7684,7 @@ export const DateTimeZoned = /*#__PURE__*/declare(u => DateTime.isDateTime(u) &&
7434
7684
  * Encoding:
7435
7685
  * - A `DateTime.Zoned` is encoded as a `string`.
7436
7686
  *
7687
+ * @stability stable
7437
7688
  * @category schemas
7438
7689
  * @since 4.0.0
7439
7690
  */
@@ -7924,6 +8175,113 @@ export const UnixPathAddressFromString = /*#__PURE__*/String.pipe(decodeTo(UnixP
7924
8175
  export const SocketAddress = /*#__PURE__*/declare(NetAddress_.isSocketAddress, {
7925
8176
  identifier: "SocketAddress"
7926
8177
  });
8178
+ /**
8179
+ * Schema for normalized DNS domain names.
8180
+ *
8181
+ * **Details**
8182
+ *
8183
+ * Only names already in normalized form (lowercase ASCII, with
8184
+ * internationalized labels in `xn--` form) are accepted. Use
8185
+ * {@link DomainNameFromString} to normalize arbitrary input.
8186
+ *
8187
+ * @stability experimental
8188
+ * @category schemas
8189
+ * @since 4.0.0
8190
+ */
8191
+ export const DomainName = /*#__PURE__*/String.check(makeFilter(Host_.isDomainName, {
8192
+ expected: "a normalized domain name"
8193
+ })).pipe(brand("~effect/net/Host/DomainName")).annotate({
8194
+ identifier: "DomainName"
8195
+ });
8196
+ /**
8197
+ * Schema for DNS domain names decoded from strings, normalizing case and
8198
+ * converting internationalized names to their ASCII form.
8199
+ *
8200
+ * @stability experimental
8201
+ * @category schemas
8202
+ * @since 4.0.0
8203
+ */
8204
+ export const DomainNameFromString = /*#__PURE__*/netAddressFromString(DomainName, Host_.domainNameFromString, name => name, "DomainNameFromString");
8205
+ /**
8206
+ * Schema for canonical scoped IPv6 literals such as `fe80::1%eth0`.
8207
+ *
8208
+ * @stability experimental
8209
+ * @category schemas
8210
+ * @since 4.0.0
8211
+ */
8212
+ export const ScopedIpv6Literal = /*#__PURE__*/String.check(makeFilter(NetAddress_.isScopedIpv6Literal, {
8213
+ expected: "a canonical scoped IPv6 literal"
8214
+ })).pipe(brand("~effect/net/NetAddress/ScopedIpv6Literal")).annotate({
8215
+ identifier: "ScopedIpv6Literal"
8216
+ });
8217
+ /**
8218
+ * Schema for scoped IPv6 literals decoded from strings, normalizing the address
8219
+ * and numeric zones.
8220
+ *
8221
+ * @stability experimental
8222
+ * @category schemas
8223
+ * @since 4.0.0
8224
+ */
8225
+ export const ScopedIpv6LiteralFromString = /*#__PURE__*/netAddressFromString(ScopedIpv6Literal, NetAddress_.scopedIpv6LiteralFromString, literal => literal, "ScopedIpv6LiteralFromString");
8226
+ /**
8227
+ * Schema for hosts: numeric IP addresses, scoped IPv6 literals, or domain names.
8228
+ *
8229
+ * @stability experimental
8230
+ * @category schemas
8231
+ * @since 4.0.0
8232
+ */
8233
+ export const Host = /*#__PURE__*/Union([IpAddress, ScopedIpv6Literal, DomainName]).annotate({
8234
+ identifier: "Host"
8235
+ });
8236
+ /**
8237
+ * Schema for hosts decoded from strings. Numeric IP strings decode to IP
8238
+ * addresses; other strings decode to scoped IPv6 literals or domain names.
8239
+ *
8240
+ * @stability experimental
8241
+ * @category schemas
8242
+ * @since 4.0.0
8243
+ */
8244
+ export const HostFromString = /*#__PURE__*/Union([IpAddressFromString, ScopedIpv6LiteralFromString, DomainNameFromString]).annotate({
8245
+ identifier: "HostFromString"
8246
+ });
8247
+ /**
8248
+ * Schema for already-constructed unresolved host and port values.
8249
+ *
8250
+ * @stability experimental
8251
+ * @category schemas
8252
+ * @since 4.0.0
8253
+ */
8254
+ export const HostPort = /*#__PURE__*/declare(Host_.isHostPort, {
8255
+ identifier: "HostPort"
8256
+ });
8257
+ /**
8258
+ * Schema for unresolved endpoints encoded as `host:port` or `[IPv6]:port`
8259
+ * strings.
8260
+ *
8261
+ * @stability experimental
8262
+ * @category schemas
8263
+ * @since 4.0.0
8264
+ */
8265
+ export const HostPortFromString = /*#__PURE__*/netAddressFromString(HostPort, Host_.hostPortFromString, Host_.formatHostPort, "HostPortFromString");
8266
+ /**
8267
+ * Schema for TCP and UDP port numbers from 0 through 65535.
8268
+ *
8269
+ * **Details**
8270
+ *
8271
+ * Port 0 is accepted because it asks the operating system to choose a port
8272
+ * when binding, and it matches the port range of `InetAddress` and `HostPort`.
8273
+ * `Config.Port` accepts only 1 through 65535.
8274
+ *
8275
+ * @stability experimental
8276
+ * @category schemas
8277
+ * @since 4.0.0
8278
+ */
8279
+ export const Port = /*#__PURE__*/Int.check(/*#__PURE__*/isBetween({
8280
+ minimum: 0,
8281
+ maximum: 65535
8282
+ }, {
8283
+ expected: "a port number"
8284
+ }));
7927
8285
  // -----------------------------------------------------------------------------
7928
8286
  // Duration schemas
7929
8287
  // -----------------------------------------------------------------------------
@@ -7965,6 +8323,7 @@ const durationFromMillis = /*#__PURE__*/SchemaTransformation.transform({
7965
8323
  * Schema.decodeUnknownSync(Schema.Duration)(Duration.seconds(5)) // => Duration.seconds(5)
7966
8324
  * ```
7967
8325
  *
8326
+ * @stability stable
7968
8327
  * @category schemas
7969
8328
  *
7970
8329
  * @since 3.10.0
@@ -8042,6 +8401,7 @@ const DurationString = /*#__PURE__*/String.annotate({
8042
8401
  * Encoding:
8043
8402
  * - A `Duration` is encoded as a parseable `string`.
8044
8403
  *
8404
+ * @stability stable
8045
8405
  * @category schemas
8046
8406
  * @since 4.0.0
8047
8407
  */
@@ -8060,6 +8420,7 @@ export const DurationFromString = /*#__PURE__*/DurationString.pipe(/*#__PURE__*/
8060
8420
  * fails when the duration cannot be represented as nanoseconds, such as
8061
8421
  * `Duration.infinity` or `Duration.negativeInfinity`.
8062
8422
  *
8423
+ * @stability stable
8063
8424
  * @category schemas
8064
8425
  * @since 3.10.0
8065
8426
  */
@@ -8080,10 +8441,240 @@ export const DurationFromNanos = /*#__PURE__*/BigInt.pipe(/*#__PURE__*/decodeTo(
8080
8441
  *
8081
8442
  * `NaN` is decoded as `Duration.zero`, matching `Duration.millis`.
8082
8443
  *
8444
+ * @stability stable
8083
8445
  * @category schemas
8084
8446
  * @since 3.10.0
8085
8447
  */
8086
8448
  export const DurationFromMillis = /*#__PURE__*/Number.pipe(/*#__PURE__*/decodeTo(Duration, durationFromMillis));
8449
+ /**
8450
+ * Schema for supported DNS record types such as `"A"` or `"SRV"`.
8451
+ *
8452
+ * @stability experimental
8453
+ * @category schemas
8454
+ * @since 4.0.0
8455
+ */
8456
+ export const DnsRecordType = /*#__PURE__*/Literals(Dns_.recordTypes);
8457
+ // Addresses in JSON records must already be canonical; normalizing input is
8458
+ // left to the `*FromString` schemas.
8459
+ const dnsCanonicalAddress = (schema, parse) => String.pipe(decodeTo(schema, SchemaTransformation.transformEffect({
8460
+ decode: (input, options) => {
8461
+ const result = parse(input);
8462
+ if (Result_.isFailure(result)) {
8463
+ return Effect.fail(new SchemaIssue.InvalidValue({
8464
+ message: result.failure.message
8465
+ }, input, options));
8466
+ }
8467
+ return NetAddress_.formatIp(result.success) === input ? Effect.succeed(result.success) : Effect.fail(new SchemaIssue.InvalidValue({
8468
+ message: "expected a canonical address"
8469
+ }, input, options));
8470
+ },
8471
+ encode: address => Effect.succeed(NetAddress_.formatIp(address))
8472
+ })));
8473
+ const dnsUint8 = /*#__PURE__*/Int.check(/*#__PURE__*/isBetween({
8474
+ minimum: 0,
8475
+ maximum: 0xff
8476
+ }));
8477
+ const dnsUint16 = /*#__PURE__*/Int.check(/*#__PURE__*/isBetween({
8478
+ minimum: 0,
8479
+ maximum: 0xffff
8480
+ }));
8481
+ const dnsUint32 = /*#__PURE__*/Int.check(/*#__PURE__*/isBetween({
8482
+ minimum: 0,
8483
+ maximum: 0xffffffff
8484
+ }));
8485
+ // SOA timers are written as whole seconds, as in zone files.
8486
+ const dnsSeconds = /*#__PURE__*/dnsUint32.pipe(/*#__PURE__*/decodeTo(Duration, /*#__PURE__*/SchemaTransformation.transform({
8487
+ decode: Duration_.seconds,
8488
+ encode: Duration_.toSeconds
8489
+ })));
8490
+ // Each record type is an opaque value whose JSON form is a plain object tagged
8491
+ // by record type, such as `{ "_tag": "MX", "exchange": "mail.example.com", "priority": 10 }`.
8492
+ const dnsRecordOfType = (type, fields) => declare(u => Dns_.isDnsRecord(u) && u._tag === type, {
8493
+ identifier: `Dns${type.charAt(0)}${type.slice(1).toLowerCase()}Record`,
8494
+ toCodecJson: () => {
8495
+ const json = TaggedStruct(type, fields);
8496
+ return link()(json, SchemaTransformation.transformEffect({
8497
+ decode: (input, options) => {
8498
+ const {
8499
+ _tag,
8500
+ ...rest
8501
+ } = input;
8502
+ const result = Dns_.makeRecord(type, rest);
8503
+ return Result_.isSuccess(result) ? Effect.succeed(result.success) : Effect.fail(new SchemaIssue.InvalidValue({
8504
+ message: result.failure.message
8505
+ }, input, options));
8506
+ },
8507
+ // Records hold only their tag and fields as own properties.
8508
+ encode: record => Effect.succeed({
8509
+ ...record
8510
+ })
8511
+ }));
8512
+ }
8513
+ });
8514
+ /**
8515
+ * Schema for already-constructed IPv4 address (`A`) DNS records.
8516
+ *
8517
+ * @stability experimental
8518
+ * @category schemas
8519
+ * @since 4.0.0
8520
+ */
8521
+ export const DnsARecord = /*#__PURE__*/dnsRecordOfType("A", {
8522
+ address: /*#__PURE__*/dnsCanonicalAddress(Ipv4Address, NetAddress_.ipv4FromString)
8523
+ });
8524
+ /**
8525
+ * Schema for already-constructed IPv6 address (`AAAA`) DNS records.
8526
+ *
8527
+ * @stability experimental
8528
+ * @category schemas
8529
+ * @since 4.0.0
8530
+ */
8531
+ export const DnsAaaaRecord = /*#__PURE__*/dnsRecordOfType("AAAA", {
8532
+ address: /*#__PURE__*/dnsCanonicalAddress(Ipv6Address, NetAddress_.ipv6FromString)
8533
+ });
8534
+ /**
8535
+ * Schema for already-constructed certification authority authorization (`CAA`) DNS records.
8536
+ *
8537
+ * @stability experimental
8538
+ * @category schemas
8539
+ * @since 4.0.0
8540
+ */
8541
+ export const DnsCaaRecord = /*#__PURE__*/dnsRecordOfType("CAA", {
8542
+ critical: Boolean,
8543
+ tag: /*#__PURE__*/String.check(/*#__PURE__*/isPattern(/^[a-z0-9]+$/i)),
8544
+ value: String
8545
+ });
8546
+ /**
8547
+ * Schema for already-constructed canonical name (`CNAME`) DNS records.
8548
+ *
8549
+ * @stability experimental
8550
+ * @category schemas
8551
+ * @since 4.0.0
8552
+ */
8553
+ export const DnsCnameRecord = /*#__PURE__*/dnsRecordOfType("CNAME", {
8554
+ target: DomainName
8555
+ });
8556
+ /**
8557
+ * Schema for already-constructed mail exchange (`MX`) DNS records.
8558
+ *
8559
+ * @stability experimental
8560
+ * @category schemas
8561
+ * @since 4.0.0
8562
+ */
8563
+ export const DnsMxRecord = /*#__PURE__*/dnsRecordOfType("MX", {
8564
+ exchange: DomainName,
8565
+ priority: dnsUint16
8566
+ });
8567
+ /**
8568
+ * Schema for already-constructed naming authority pointer (`NAPTR`) DNS records.
8569
+ *
8570
+ * @stability experimental
8571
+ * @category schemas
8572
+ * @since 4.0.0
8573
+ */
8574
+ export const DnsNaptrRecord = /*#__PURE__*/dnsRecordOfType("NAPTR", {
8575
+ order: dnsUint16,
8576
+ preference: dnsUint16,
8577
+ flags: String,
8578
+ service: String,
8579
+ regexp: String,
8580
+ replacement: DomainName
8581
+ });
8582
+ /**
8583
+ * Schema for already-constructed name server (`NS`) DNS records.
8584
+ *
8585
+ * @stability experimental
8586
+ * @category schemas
8587
+ * @since 4.0.0
8588
+ */
8589
+ export const DnsNsRecord = /*#__PURE__*/dnsRecordOfType("NS", {
8590
+ host: DomainName
8591
+ });
8592
+ /**
8593
+ * Schema for already-constructed pointer (`PTR`) DNS records.
8594
+ *
8595
+ * @stability experimental
8596
+ * @category schemas
8597
+ * @since 4.0.0
8598
+ */
8599
+ export const DnsPtrRecord = /*#__PURE__*/dnsRecordOfType("PTR", {
8600
+ host: NonEmptyString
8601
+ });
8602
+ /**
8603
+ * Schema for already-constructed start of authority (`SOA`) DNS records.
8604
+ *
8605
+ * @stability experimental
8606
+ * @category schemas
8607
+ * @since 4.0.0
8608
+ */
8609
+ export const DnsSoaRecord = /*#__PURE__*/dnsRecordOfType("SOA", {
8610
+ primary: DomainName,
8611
+ admin: NonEmptyString,
8612
+ serial: dnsUint32,
8613
+ refresh: dnsSeconds,
8614
+ retry: dnsSeconds,
8615
+ expire: dnsSeconds,
8616
+ minimum: dnsSeconds
8617
+ });
8618
+ /**
8619
+ * Schema for already-constructed service locator (`SRV`) DNS records.
8620
+ *
8621
+ * @stability experimental
8622
+ * @category schemas
8623
+ * @since 4.0.0
8624
+ */
8625
+ export const DnsSrvRecord = /*#__PURE__*/dnsRecordOfType("SRV", {
8626
+ target: DomainName,
8627
+ port: dnsUint16,
8628
+ priority: dnsUint16,
8629
+ weight: dnsUint16
8630
+ });
8631
+ /**
8632
+ * Schema for already-constructed TLS authentication (`TLSA`) DNS records.
8633
+ *
8634
+ * **Details**
8635
+ *
8636
+ * The default JSON serializer encodes the certificate association `data` as a
8637
+ * hex string.
8638
+ *
8639
+ * @stability experimental
8640
+ * @category schemas
8641
+ * @since 4.0.0
8642
+ */
8643
+ export const DnsTlsaRecord = /*#__PURE__*/dnsRecordOfType("TLSA", {
8644
+ certUsage: dnsUint8,
8645
+ selector: dnsUint8,
8646
+ matchingType: dnsUint8,
8647
+ data: Uint8ArrayFromHex
8648
+ });
8649
+ /**
8650
+ * Schema for already-constructed text (`TXT`) DNS records.
8651
+ *
8652
+ * @stability experimental
8653
+ * @category schemas
8654
+ * @since 4.0.0
8655
+ */
8656
+ export const DnsTxtRecord = /*#__PURE__*/dnsRecordOfType("TXT", {
8657
+ chunks: /*#__PURE__*/NonEmptyArray(String)
8658
+ });
8659
+ /**
8660
+ * Schema for already-constructed DNS records of any supported record type.
8661
+ *
8662
+ * **Details**
8663
+ *
8664
+ * The default JSON serializer encodes records as objects tagged by record type,
8665
+ * with addresses and names as canonical strings, SOA timers as whole seconds,
8666
+ * and TLSA data as hex, such as
8667
+ * `{ "_tag": "SRV", "target": "db.internal", "port": 5432, "priority": 10, "weight": 5 }`.
8668
+ * Decoding accepts only canonical addresses and normalized domain names, and
8669
+ * reports invalid fields with their path.
8670
+ *
8671
+ * @stability experimental
8672
+ * @category schemas
8673
+ * @since 4.0.0
8674
+ */
8675
+ export const DnsRecord = /*#__PURE__*/Union([DnsARecord, DnsAaaaRecord, DnsCaaRecord, DnsCnameRecord, DnsMxRecord, DnsNaptrRecord, DnsNsRecord, DnsPtrRecord, DnsSoaRecord, DnsSrvRecord, DnsTlsaRecord, DnsTxtRecord]).annotate({
8676
+ identifier: "DnsRecord"
8677
+ });
8087
8678
  /**
8088
8679
  * Creates a schema for `Exit` values using schemas for the success value, typed
8089
8680
  * failure, and unexpected defect channels.
@@ -8093,6 +8684,7 @@ export const DurationFromMillis = /*#__PURE__*/Number.pipe(/*#__PURE__*/decodeTo
8093
8684
  * Use when serializing or validating an effect outcome where success, typed
8094
8685
  * failure, and defects each need their own schema.
8095
8686
  *
8687
+ * @stability stable
8096
8688
  * @category schemas
8097
8689
  * @since 3.10.0
8098
8690
  */
@@ -8302,6 +8894,7 @@ function hashMapLink(entries) {
8302
8894
  /**
8303
8895
  * Schema for hash maps whose keys and values conform to the provided schemas.
8304
8896
  *
8897
+ * @stability stable
8305
8898
  * @category schemas
8306
8899
  * @since 3.10.0
8307
8900
  */
@@ -8354,6 +8947,7 @@ function hashSetLink(values) {
8354
8947
  /**
8355
8948
  * Schema for hash sets whose values conform to the provided element schema.
8356
8949
  *
8950
+ * @stability stable
8357
8951
  * @category schemas
8358
8952
  * @since 3.10.0
8359
8953
  */
@@ -8395,6 +8989,7 @@ export function HashSet(value) {
8395
8989
  /**
8396
8990
  * Schema for `Option<A>` values.
8397
8991
  *
8992
+ * @stability stable
8398
8993
  * @category schemas
8399
8994
  * @since 3.10.0
8400
8995
  */
@@ -8450,6 +9045,7 @@ export function Option(value) {
8450
9045
  * Decoding maps `null` to `None` and all other values to `Some`. Encoding maps
8451
9046
  * `None` to `null` and maps `Some` to its value.
8452
9047
  *
9048
+ * @stability stable
8453
9049
  * @category schemas
8454
9050
  * @since 3.10.0
8455
9051
  */
@@ -8465,6 +9061,7 @@ export function OptionFromNullOr(schema) {
8465
9061
  * Decoding maps `undefined` to `None` and all other values to `Some`. Encoding
8466
9062
  * maps `None` to `undefined` and maps `Some` to its value.
8467
9063
  *
9064
+ * @stability stable
8468
9065
  * @category schemas
8469
9066
  * @since 3.10.0
8470
9067
  */
@@ -8481,6 +9078,7 @@ export function OptionFromUndefinedOr(schema) {
8481
9078
  * `options.onNoneEncoding`, which defaults to `undefined`, and maps `Some` to
8482
9079
  * its value.
8483
9080
  *
9081
+ * @stability stable
8484
9082
  * @category schemas
8485
9083
  * @since 3.10.0
8486
9084
  */
@@ -8687,6 +9285,7 @@ export const RecordFromUrlParams = /*#__PURE__*/UrlParams.pipe(/*#__PURE__*/deco
8687
9285
  * Decoding maps a missing key to `None` and a present value to `Some`.
8688
9286
  * Encoding maps `None` to a missing key and maps `Some` to its value.
8689
9287
  *
9288
+ * @stability stable
8690
9289
  * @category schemas
8691
9290
  * @since 4.0.0
8692
9291
  */
@@ -8703,6 +9302,7 @@ export function OptionFromOptionalKey(schema) {
8703
9302
  * maps all other values to `Some`. Encoding maps `None` to a missing key and
8704
9303
  * maps `Some` to its value.
8705
9304
  *
9305
+ * @stability stable
8706
9306
  * @category schemas
8707
9307
  * @since 4.0.0
8708
9308
  */
@@ -8720,6 +9320,7 @@ export function OptionFromOptional(schema) {
8720
9320
  * according to `options.onNoneEncoding`: `"omit"` encodes a missing key,
8721
9321
  * `null` encodes `null`, and `undefined` encodes `undefined`.
8722
9322
  *
9323
+ * @stability stable
8723
9324
  * @category schemas
8724
9325
  * @since 4.0.0
8725
9326
  */
@@ -8748,6 +9349,7 @@ export function OptionFromOptionalNullOr(schema, options) {
8748
9349
  * sensitive and should not be exposed in JSON.
8749
9350
  *
8750
9351
  * @see {@link RedactedFromValue} for decoding raw values and wrapping them in `Redacted`.
9352
+ * @stability stable
8751
9353
  * @category schemas
8752
9354
  * @since 3.10.0
8753
9355
  */
@@ -8807,6 +9409,7 @@ export function Redacted(value, options) {
8807
9409
  * the raw value and wraps it.
8808
9410
  *
8809
9411
  * @see {@link Redacted} for schemas whose input is already a `Redacted` value.
9412
+ * @stability stable
8810
9413
  * @category schemas
8811
9414
  * @since 4.0.0
8812
9415
  */
@@ -8824,6 +9427,7 @@ export function RedactedFromValue(value, options) {
8824
9427
  /**
8825
9428
  * Schema for `Result<A, E>` values.
8826
9429
  *
9430
+ * @stability stable
8827
9431
  * @category schemas
8828
9432
  * @since 4.0.0
8829
9433
  */
@@ -9060,6 +9664,7 @@ function isStruct(schema) {
9060
9664
  * @see {@link Error} for defining schema-backed error classes
9061
9665
  * @see {@link TaggedError} for defining tagged schema-backed error classes
9062
9666
  *
9667
+ * @stability stable
9063
9668
  * @category constructors
9064
9669
  * @since 3.10.0
9065
9670
  */
@@ -9100,6 +9705,7 @@ export const Class = identifier => (schema, annotations) => {
9100
9705
  * c.radius // => 5
9101
9706
  * ```
9102
9707
  *
9708
+ * @stability stable
9103
9709
  * @category constructors
9104
9710
  * @since 3.10.0
9105
9711
  */
@@ -9136,6 +9742,7 @@ export const TaggedClass = identifier => {
9136
9742
  * error.id // => 1
9137
9743
  * ```
9138
9744
  *
9745
+ * @stability stable
9139
9746
  * @category constructors
9140
9747
  * @since 4.0.0
9141
9748
  */
@@ -9172,6 +9779,7 @@ export const Error = identifier => (schema, annotations) => {
9172
9779
  * error.id // => 42
9173
9780
  * ```
9174
9781
  *
9782
+ * @stability stable
9175
9783
  * @category constructors
9176
9784
  * @since 3.10.0
9177
9785
  */
@@ -9195,6 +9803,7 @@ export const TaggedError = identifier => {
9195
9803
  * The annotation is applied through this helper because adding it directly to
9196
9804
  * `Annotations.Bottom` would make schemas invariant.
9197
9805
  *
9806
+ * @stability stable
9198
9807
  * @category formatting
9199
9808
  * @since 4.0.0
9200
9809
  */
@@ -9213,6 +9822,7 @@ export function overrideToFormatter(toFormatter) {
9213
9822
  * The optional `onBefore` hook lets you intercept specific AST nodes before
9214
9823
  * the default formatting logic runs.
9215
9824
  *
9825
+ * @stability stable
9216
9826
  * @category formatting
9217
9827
  * @since 4.0.0
9218
9828
  */
@@ -9228,6 +9838,7 @@ export function toFormatter(schema, options) {
9228
9838
  * Use when you need a custom equivalence instead of the default structural
9229
9839
  * equivalence derived by {@link toEquivalence}.
9230
9840
  *
9841
+ * @stability stable
9231
9842
  * @category instances
9232
9843
  * @since 4.0.0
9233
9844
  */
@@ -9252,6 +9863,7 @@ export function overrideToEquivalence(toEquivalence) {
9252
9863
  * eq({ id: 1, name: "Alice" }, { id: 2, name: "Alice" }) // => false
9253
9864
  * ```
9254
9865
  *
9866
+ * @stability stable
9255
9867
  * @category instances
9256
9868
  * @since 4.0.0
9257
9869
  */
@@ -9276,6 +9888,7 @@ export function toEquivalence(schema) {
9276
9888
  *
9277
9889
  * @see {@link SchemaRepresentation.toRepresentation} for converting a `SchemaAST.AST` directly
9278
9890
  *
9891
+ * @stability stable
9279
9892
  * @category converting
9280
9893
  * @since 4.0.0
9281
9894
  */
@@ -9350,6 +9963,7 @@ export function toRepresentation(schema, options) {
9350
9963
  * @see {@link toCodecJson} for decoding and encoding the canonical JSON representation
9351
9964
  * @see {@link SchemaRepresentation.toJsonSchemaDocument} for compiling an existing live representation document
9352
9965
  *
9966
+ * @stability stable
9353
9967
  * @category converting
9354
9968
  * @since 4.0.0
9355
9969
  */
@@ -9378,6 +9992,7 @@ export function toJsonSchemaDocument(schema, options) {
9378
9992
  * checks and annotations remain on its source node rather than being copied to
9379
9993
  * the JSON target. Source checks still run after the transformation.
9380
9994
  *
9995
+ * @stability stable
9381
9996
  * @category converting
9382
9997
  * @since 4.0.0
9383
9998
  */
@@ -9396,6 +10011,7 @@ export const toCodecJson = InternalToCodec.toCodecJson;
9396
10011
  * Links cannot require services because the returned `Codec` does not expose
9397
10012
  * service requirements.
9398
10013
  *
10014
+ * @stability stable
9399
10015
  * @category converting
9400
10016
  * @since 4.0.0
9401
10017
  */
@@ -9417,6 +10033,7 @@ export const toCodecIso = InternalToCodec.toCodecIso;
9417
10033
  * `toCodec` encoding. A callback can return `undefined` when the declaration is
9418
10034
  * already in canonical StringTree form.
9419
10035
  *
10036
+ * @stability stable
9420
10037
  * @category converting
9421
10038
  * @since 4.0.0
9422
10039
  */
@@ -9436,6 +10053,7 @@ export const toCodecStringTree = InternalToCodec.toCodecStringTree;
9436
10053
  * decoding convenience rather than a canonical StringTree representation. It
9437
10054
  * does not parse comma-separated strings.
9438
10055
  *
10056
+ * @stability stable
9439
10057
  * @category converting
9440
10058
  * @since 4.0.0
9441
10059
  */
@@ -9449,6 +10067,7 @@ export const toCodecArrayFromSingle = InternalToCodec.toCodecArrayFromSingle;
9449
10067
  * an `Effect` that succeeds with the XML string or fails with a
9450
10068
  * {@link SchemaIssue.Issue} if codec encoding fails.
9451
10069
  *
10070
+ * @stability stable
9452
10071
  * @category encoding
9453
10072
  * @since 4.0.0
9454
10073
  */
@@ -9472,6 +10091,7 @@ export function toEncoderXml(codec, options) {
9472
10091
  * `SchemaIssue.makeFormatterDefault()`. Consume {@link toCodecIso} with an
9473
10092
  * effectful parser for asynchronous execution or explicit failure handling.
9474
10093
  *
10094
+ * @stability stable
9475
10095
  * @category converting
9476
10096
  * @since 4.0.0
9477
10097
  */
@@ -9481,6 +10101,7 @@ export function toIso(schema) {
9481
10101
  /**
9482
10102
  * Returns an identity `Iso` over the schema's source (`Type`) side.
9483
10103
  *
10104
+ * @stability stable
9484
10105
  * @category constructors
9485
10106
  * @since 4.0.0
9486
10107
  */
@@ -9490,6 +10111,7 @@ export function toIsoSource(schema) {
9490
10111
  /**
9491
10112
  * Returns an identity `Iso` over the schema's focus (`Iso`) side.
9492
10113
  *
10114
+ * @stability stable
9493
10115
  * @category constructors
9494
10116
  * @since 4.0.0
9495
10117
  */
@@ -9510,6 +10132,7 @@ export function toIsoFocus(schema) {
9510
10132
  * provided `decode` and `encode` getters to transform between the schema type
9511
10133
  * and the target codec.
9512
10134
  *
10135
+ * @stability stable
9513
10136
  * @category transforming
9514
10137
  * @since 4.0.0
9515
10138
  */
@@ -9540,6 +10163,7 @@ export function overrideToCodecIso(to, transformation) {
9540
10163
  * `SchemaIssue.makeFormatterDefault()`. Invalid patch operations instead produce
9541
10164
  * {@link JsonPatch.apply} errors.
9542
10165
  *
10166
+ * @stability stable
9543
10167
  * @category converting
9544
10168
  * @since 4.0.0
9545
10169
  */
@@ -9551,6 +10175,7 @@ export function toDifferJsonPatch(schema) {
9551
10175
  * The resulting schema accepts a single node value, an array of trees, or an
9552
10176
  * object whose values are trees.
9553
10177
  *
10178
+ * @stability stable
9554
10179
  * @category schemas
9555
10180
  * @since 4.0.0
9556
10181
  */
@@ -9570,6 +10195,7 @@ export function Tree(node) {
9570
10195
  * Schema.decodeUnknownOption(Schema.Json)({ key: [1, true, null] }) // => Option.some({ key: [1, true, null] })
9571
10196
  * ```
9572
10197
  *
10198
+ * @stability stable
9573
10199
  * @category schemas
9574
10200
  * @since 4.0.0
9575
10201
  */
@@ -9596,6 +10222,7 @@ export const Json = /*#__PURE__*/make(/*#__PURE__*/SchemaAST.annotate(SchemaAST.
9596
10222
  * ```
9597
10223
  *
9598
10224
  * @see {@link Json} for a schema that also accepts JSON arrays and primitive values
10225
+ * @stability stable
9599
10226
  * @category schemas
9600
10227
  * @since 4.0.0
9601
10228
  */
@@ -9610,6 +10237,7 @@ const JsonError = /*#__PURE__*/Struct({
9610
10237
  * Schema that accepts any mutable JSON-compatible value. See {@link Json} for
9611
10238
  * the immutable variant.
9612
10239
  *
10240
+ * @stability stable
9613
10241
  * @category schemas
9614
10242
  * @since 4.0.0
9615
10243
  */
@@ -9625,6 +10253,7 @@ export const MutableJson = /*#__PURE__*/make(/*#__PURE__*/SchemaAST.annotate(Sch
9625
10253
  * annotations are taken from the last check; otherwise they are taken from
9626
10254
  * the base schema instance.
9627
10255
  *
10256
+ * @stability stable
9628
10257
  * @category getters
9629
10258
  * @since 4.0.0
9630
10259
  */
@@ -9636,6 +10265,7 @@ export function resolveAnnotations(schema) {
9636
10265
  * annotations are those attached via `annotateKey` and live on the AST's
9637
10266
  * `context` rather than on the schema node itself.
9638
10267
  *
10268
+ * @stability stable
9639
10269
  * @category getters
9640
10270
  * @since 4.0.0
9641
10271
  */