effect 4.1.4 → 4.1.6

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 (890) hide show
  1. package/THIRD_PARTY_NOTICES.md +88 -0
  2. package/ai-docs/package.json +2 -2
  3. package/dist/Arbitrary.d.ts +44 -2
  4. package/dist/Arbitrary.d.ts.map +1 -1
  5. package/dist/Arbitrary.js +9 -1
  6. package/dist/Arbitrary.js.map +1 -1
  7. package/dist/BigInt.d.ts +200 -1
  8. package/dist/BigInt.d.ts.map +1 -1
  9. package/dist/BigInt.js +105 -9
  10. package/dist/BigInt.js.map +1 -1
  11. package/dist/Cache.d.ts.map +1 -1
  12. package/dist/Cache.js +4 -2
  13. package/dist/Cache.js.map +1 -1
  14. package/dist/Cause.d.ts +3 -3
  15. package/dist/Cause.js +1 -1
  16. package/dist/Channel.d.ts +104 -7
  17. package/dist/Channel.d.ts.map +1 -1
  18. package/dist/Channel.js +73 -4
  19. package/dist/Channel.js.map +1 -1
  20. package/dist/Chunk.d.ts +5 -0
  21. package/dist/Chunk.d.ts.map +1 -1
  22. package/dist/Chunk.js +7 -2
  23. package/dist/Chunk.js.map +1 -1
  24. package/dist/Clock.d.ts +5 -2
  25. package/dist/Clock.d.ts.map +1 -1
  26. package/dist/Clock.js +2 -1
  27. package/dist/Clock.js.map +1 -1
  28. package/dist/Codegen.d.ts +300 -0
  29. package/dist/Codegen.d.ts.map +1 -0
  30. package/dist/Codegen.js +526 -0
  31. package/dist/Codegen.js.map +1 -0
  32. package/dist/Config.d.ts +31 -2
  33. package/dist/Config.d.ts.map +1 -1
  34. package/dist/Config.js +12 -1
  35. package/dist/Config.js.map +1 -1
  36. package/dist/ConfigProvider.d.ts +11 -1
  37. package/dist/ConfigProvider.d.ts.map +1 -1
  38. package/dist/ConfigProvider.js +17 -6
  39. package/dist/ConfigProvider.js.map +1 -1
  40. package/dist/Effect.d.ts +1008 -127
  41. package/dist/Effect.d.ts.map +1 -1
  42. package/dist/Effect.js +410 -49
  43. package/dist/Effect.js.map +1 -1
  44. package/dist/Equal.d.ts +4 -4
  45. package/dist/Equal.d.ts.map +1 -1
  46. package/dist/Equal.js +78 -65
  47. package/dist/Equal.js.map +1 -1
  48. package/dist/Equivalence.d.ts +11 -9
  49. package/dist/Equivalence.d.ts.map +1 -1
  50. package/dist/Equivalence.js +15 -12
  51. package/dist/Equivalence.js.map +1 -1
  52. package/dist/Fiber.d.ts +58 -8
  53. package/dist/Fiber.d.ts.map +1 -1
  54. package/dist/Fiber.js +28 -4
  55. package/dist/Fiber.js.map +1 -1
  56. package/dist/FiberHandle.d.ts +81 -10
  57. package/dist/FiberHandle.d.ts.map +1 -1
  58. package/dist/FiberHandle.js +40 -8
  59. package/dist/FiberHandle.js.map +1 -1
  60. package/dist/FiberMap.d.ts +80 -10
  61. package/dist/FiberMap.d.ts.map +1 -1
  62. package/dist/FiberMap.js +37 -6
  63. package/dist/FiberMap.js.map +1 -1
  64. package/dist/FiberSet.d.ts +93 -8
  65. package/dist/FiberSet.d.ts.map +1 -1
  66. package/dist/FiberSet.js +46 -4
  67. package/dist/FiberSet.js.map +1 -1
  68. package/dist/Formatter.d.ts +2 -0
  69. package/dist/Formatter.d.ts.map +1 -1
  70. package/dist/Formatter.js +2 -0
  71. package/dist/Formatter.js.map +1 -1
  72. package/dist/Hash.d.ts.map +1 -1
  73. package/dist/Hash.js +24 -17
  74. package/dist/Hash.js.map +1 -1
  75. package/dist/LayerMap.d.ts +12 -3
  76. package/dist/LayerMap.d.ts.map +1 -1
  77. package/dist/LayerMap.js +12 -2
  78. package/dist/LayerMap.js.map +1 -1
  79. package/dist/LayerRef.d.ts +3 -3
  80. package/dist/LayerRef.d.ts.map +1 -1
  81. package/dist/LayerRef.js +3 -3
  82. package/dist/LayerRef.js.map +1 -1
  83. package/dist/Logger.d.ts +37 -13
  84. package/dist/Logger.d.ts.map +1 -1
  85. package/dist/Logger.js +39 -10
  86. package/dist/Logger.js.map +1 -1
  87. package/dist/Match.d.ts +35 -23
  88. package/dist/Match.d.ts.map +1 -1
  89. package/dist/Match.js +16 -0
  90. package/dist/Match.js.map +1 -1
  91. package/dist/Metric.js +1 -1
  92. package/dist/Metric.js.map +1 -1
  93. package/dist/Option.d.ts +4 -1
  94. package/dist/Option.d.ts.map +1 -1
  95. package/dist/Option.js +6 -2
  96. package/dist/Option.js.map +1 -1
  97. package/dist/Order.d.ts +7 -5
  98. package/dist/Order.d.ts.map +1 -1
  99. package/dist/Order.js +8 -3
  100. package/dist/Order.js.map +1 -1
  101. package/dist/Pool.d.ts +4 -3
  102. package/dist/Pool.d.ts.map +1 -1
  103. package/dist/Pool.js +21 -18
  104. package/dist/Pool.js.map +1 -1
  105. package/dist/Predicate.d.ts +4 -1
  106. package/dist/Predicate.d.ts.map +1 -1
  107. package/dist/Predicate.js +5 -1
  108. package/dist/Predicate.js.map +1 -1
  109. package/dist/Queue.d.ts +69 -22
  110. package/dist/Queue.d.ts.map +1 -1
  111. package/dist/Queue.js +40 -18
  112. package/dist/Queue.js.map +1 -1
  113. package/dist/Rational.d.ts +179 -0
  114. package/dist/Rational.d.ts.map +1 -1
  115. package/dist/Rational.js +63 -0
  116. package/dist/Rational.js.map +1 -1
  117. package/dist/Request.d.ts +20 -0
  118. package/dist/Request.d.ts.map +1 -1
  119. package/dist/Request.js +20 -0
  120. package/dist/Request.js.map +1 -1
  121. package/dist/Result.d.ts +3 -1
  122. package/dist/Result.d.ts.map +1 -1
  123. package/dist/Result.js +5 -2
  124. package/dist/Result.js.map +1 -1
  125. package/dist/Schema.d.ts +90 -19
  126. package/dist/Schema.d.ts.map +1 -1
  127. package/dist/Schema.js +92 -414
  128. package/dist/Schema.js.map +1 -1
  129. package/dist/SchemaAST.d.ts.map +1 -1
  130. package/dist/SchemaAST.js +11 -7
  131. package/dist/SchemaAST.js.map +1 -1
  132. package/dist/SchemaGetter.d.ts +5 -6
  133. package/dist/SchemaGetter.d.ts.map +1 -1
  134. package/dist/SchemaGetter.js +14 -10
  135. package/dist/SchemaGetter.js.map +1 -1
  136. package/dist/SchemaRepresentation.d.ts +19 -64
  137. package/dist/SchemaRepresentation.d.ts.map +1 -1
  138. package/dist/SchemaRepresentation.js +1 -28
  139. package/dist/SchemaRepresentation.js.map +1 -1
  140. package/dist/SchemaTransformation.d.ts +11 -10
  141. package/dist/SchemaTransformation.d.ts.map +1 -1
  142. package/dist/SchemaTransformation.js +12 -11
  143. package/dist/SchemaTransformation.js.map +1 -1
  144. package/dist/Scope.d.ts +12 -6
  145. package/dist/Scope.d.ts.map +1 -1
  146. package/dist/Scope.js +12 -6
  147. package/dist/Scope.js.map +1 -1
  148. package/dist/ScopedCache.d.ts.map +1 -1
  149. package/dist/ScopedCache.js +8 -5
  150. package/dist/ScopedCache.js.map +1 -1
  151. package/dist/Semaphore.d.ts.map +1 -1
  152. package/dist/Semaphore.js +18 -4
  153. package/dist/Semaphore.js.map +1 -1
  154. package/dist/Stream.d.ts +128 -5
  155. package/dist/Stream.d.ts.map +1 -1
  156. package/dist/Stream.js +179 -43
  157. package/dist/Stream.js.map +1 -1
  158. package/dist/String.d.ts +57 -3
  159. package/dist/String.d.ts.map +1 -1
  160. package/dist/String.js +63 -5
  161. package/dist/String.js.map +1 -1
  162. package/dist/Struct.d.ts +135 -1
  163. package/dist/Struct.d.ts.map +1 -1
  164. package/dist/Struct.js +64 -5
  165. package/dist/Struct.js.map +1 -1
  166. package/dist/TextDiff.d.ts +105 -0
  167. package/dist/TextDiff.d.ts.map +1 -1
  168. package/dist/TextDiff.js +137 -24
  169. package/dist/TextDiff.js.map +1 -1
  170. package/dist/Tracer.d.ts +10 -0
  171. package/dist/Tracer.d.ts.map +1 -1
  172. package/dist/Tracer.js +2 -0
  173. package/dist/Tracer.js.map +1 -1
  174. package/dist/TxPriorityQueue.js +2 -2
  175. package/dist/TxPriorityQueue.js.map +1 -1
  176. package/dist/ai/LanguageModel.d.ts.map +1 -1
  177. package/dist/ai/LanguageModel.js +1 -1
  178. package/dist/ai/LanguageModel.js.map +1 -1
  179. package/dist/ai/McpServer.d.ts +199 -4
  180. package/dist/ai/McpServer.d.ts.map +1 -1
  181. package/dist/ai/McpServer.js +143 -18
  182. package/dist/ai/McpServer.js.map +1 -1
  183. package/dist/ai/Prompt.d.ts +3 -1
  184. package/dist/ai/Prompt.d.ts.map +1 -1
  185. package/dist/ai/Prompt.js +17 -3
  186. package/dist/ai/Prompt.js.map +1 -1
  187. package/dist/ai/Skill.d.ts +172 -0
  188. package/dist/ai/Skill.d.ts.map +1 -0
  189. package/dist/ai/Skill.js +209 -0
  190. package/dist/ai/Skill.js.map +1 -0
  191. package/dist/ai/Tool.d.ts +3 -2
  192. package/dist/ai/Tool.d.ts.map +1 -1
  193. package/dist/ai/Tool.js +3 -2
  194. package/dist/ai/Tool.js.map +1 -1
  195. package/dist/ai/Toolkit.d.ts.map +1 -1
  196. package/dist/ai/Toolkit.js +5 -1
  197. package/dist/ai/Toolkit.js.map +1 -1
  198. package/dist/ai/index.d.ts +5 -0
  199. package/dist/ai/index.d.ts.map +1 -1
  200. package/dist/ai/index.js +5 -0
  201. package/dist/ai/index.js.map +1 -1
  202. package/dist/chat/Chat.d.ts +90 -0
  203. package/dist/chat/Chat.d.ts.map +1 -0
  204. package/dist/chat/Chat.js +127 -0
  205. package/dist/chat/Chat.js.map +1 -0
  206. package/dist/chat/ChatAdapter.d.ts +386 -0
  207. package/dist/chat/ChatAdapter.d.ts.map +1 -0
  208. package/dist/chat/ChatAdapter.js +110 -0
  209. package/dist/chat/ChatAdapter.js.map +1 -0
  210. package/dist/chat/ChatError.d.ts +500 -0
  211. package/dist/chat/ChatError.d.ts.map +1 -0
  212. package/dist/chat/ChatError.js +521 -0
  213. package/dist/chat/ChatError.js.map +1 -0
  214. package/dist/chat/ChatEvent.d.ts +321 -0
  215. package/dist/chat/ChatEvent.d.ts.map +1 -0
  216. package/dist/chat/ChatEvent.js +163 -0
  217. package/dist/chat/ChatEvent.js.map +1 -0
  218. package/dist/chat/ChatHandler.d.ts +81 -0
  219. package/dist/chat/ChatHandler.d.ts.map +1 -0
  220. package/dist/chat/ChatHandler.js +85 -0
  221. package/dist/chat/ChatHandler.js.map +1 -0
  222. package/dist/chat/ChatInteraction.d.ts +1519 -0
  223. package/dist/chat/ChatInteraction.d.ts.map +1 -0
  224. package/dist/chat/ChatInteraction.js +1052 -0
  225. package/dist/chat/ChatInteraction.js.map +1 -0
  226. package/dist/chat/ChatMarkdown.d.ts +280 -0
  227. package/dist/chat/ChatMarkdown.d.ts.map +1 -0
  228. package/dist/chat/ChatMarkdown.js +1172 -0
  229. package/dist/chat/ChatMarkdown.js.map +1 -0
  230. package/dist/chat/ChatMessage.d.ts +224 -0
  231. package/dist/chat/ChatMessage.d.ts.map +1 -0
  232. package/dist/chat/ChatMessage.js +172 -0
  233. package/dist/chat/ChatMessage.js.map +1 -0
  234. package/dist/chat/ChatTest.d.ts +407 -0
  235. package/dist/chat/ChatTest.d.ts.map +1 -0
  236. package/dist/chat/ChatTest.js +2145 -0
  237. package/dist/chat/ChatTest.js.map +1 -0
  238. package/dist/chat/ChatThread.d.ts +92 -0
  239. package/dist/chat/ChatThread.d.ts.map +1 -0
  240. package/dist/chat/ChatThread.js +116 -0
  241. package/dist/chat/ChatThread.js.map +1 -0
  242. package/dist/chat/ChatUi.d.ts +362 -0
  243. package/dist/chat/ChatUi.d.ts.map +1 -0
  244. package/dist/chat/ChatUi.js +209 -0
  245. package/dist/chat/ChatUi.js.map +1 -0
  246. package/dist/chat/index.d.ts +60 -0
  247. package/dist/chat/index.d.ts.map +1 -0
  248. package/dist/chat/index.js +61 -0
  249. package/dist/chat/index.js.map +1 -0
  250. package/dist/chat/internal/retries.d.ts +2 -0
  251. package/dist/chat/internal/retries.d.ts.map +1 -0
  252. package/dist/chat/internal/retries.js +7 -0
  253. package/dist/chat/internal/retries.js.map +1 -0
  254. package/dist/cli/CliOutput.d.ts.map +1 -1
  255. package/dist/cli/CliOutput.js +6 -7
  256. package/dist/cli/CliOutput.js.map +1 -1
  257. package/dist/cli/Command.d.ts +20 -2
  258. package/dist/cli/Command.d.ts.map +1 -1
  259. package/dist/cli/Command.js +4 -0
  260. package/dist/cli/Command.js.map +1 -1
  261. package/dist/cli/Prompt.d.ts +5 -6
  262. package/dist/cli/Prompt.d.ts.map +1 -1
  263. package/dist/cli/Prompt.js +9 -4
  264. package/dist/cli/Prompt.js.map +1 -1
  265. package/dist/cli/internal/command.d.ts +1 -1
  266. package/dist/cli/internal/command.d.ts.map +1 -1
  267. package/dist/cli/internal/config.d.ts +1 -1
  268. package/dist/cli/internal/config.d.ts.map +1 -1
  269. package/dist/cli/internal/config.js +3 -3
  270. package/dist/cli/internal/config.js.map +1 -1
  271. package/dist/cluster/ClusterCron.d.ts +21 -1
  272. package/dist/cluster/ClusterCron.d.ts.map +1 -1
  273. package/dist/cluster/ClusterCron.js +24 -6
  274. package/dist/cluster/ClusterCron.js.map +1 -1
  275. package/dist/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  276. package/dist/cluster/ClusterWorkflowEngine.js +183 -103
  277. package/dist/cluster/ClusterWorkflowEngine.js.map +1 -1
  278. package/dist/cluster/MessageStorage.d.ts +56 -0
  279. package/dist/cluster/MessageStorage.d.ts.map +1 -1
  280. package/dist/cluster/MessageStorage.js +18 -2
  281. package/dist/cluster/MessageStorage.js.map +1 -1
  282. package/dist/cluster/Sharding.d.ts.map +1 -1
  283. package/dist/cluster/Sharding.js +15 -3
  284. package/dist/cluster/Sharding.js.map +1 -1
  285. package/dist/cluster/ShardingConfig.d.ts +6 -0
  286. package/dist/cluster/ShardingConfig.d.ts.map +1 -1
  287. package/dist/cluster/ShardingConfig.js.map +1 -1
  288. package/dist/cluster/SqlMessageStorage.d.ts.map +1 -1
  289. package/dist/cluster/SqlMessageStorage.js +58 -37
  290. package/dist/cluster/SqlMessageStorage.js.map +1 -1
  291. package/dist/cluster/SqlRunnerStorage.d.ts.map +1 -1
  292. package/dist/cluster/SqlRunnerStorage.js +18 -8
  293. package/dist/cluster/SqlRunnerStorage.js.map +1 -1
  294. package/dist/cluster/internal/entityActivation.js +2 -0
  295. package/dist/cluster/internal/entityActivation.js.map +1 -1
  296. package/dist/cluster/internal/entityManager.js +20 -13
  297. package/dist/cluster/internal/entityManager.js.map +1 -1
  298. package/dist/cluster/internal/entityReaper.js +1 -1
  299. package/dist/cluster/internal/entityReaper.js.map +1 -1
  300. package/dist/crypto/Kdf.d.ts +2 -1
  301. package/dist/crypto/Kdf.d.ts.map +1 -1
  302. package/dist/crypto/Kdf.js +2 -1
  303. package/dist/crypto/Kdf.js.map +1 -1
  304. package/dist/crypto/Password.d.ts +162 -0
  305. package/dist/crypto/Password.d.ts.map +1 -0
  306. package/dist/crypto/Password.js +217 -0
  307. package/dist/crypto/Password.js.map +1 -0
  308. package/dist/crypto/index.d.ts +5 -0
  309. package/dist/crypto/index.d.ts.map +1 -1
  310. package/dist/crypto/index.js +5 -0
  311. package/dist/crypto/index.js.map +1 -1
  312. package/dist/encoding/Base64.d.ts +63 -0
  313. package/dist/encoding/Base64.d.ts.map +1 -1
  314. package/dist/encoding/Base64.js +82 -1
  315. package/dist/encoding/Base64.js.map +1 -1
  316. package/dist/encoding/Base64Url.d.ts +1 -0
  317. package/dist/encoding/Base64Url.d.ts.map +1 -1
  318. package/dist/encoding/Base64Url.js +7 -1
  319. package/dist/encoding/Base64Url.js.map +1 -1
  320. package/dist/encoding/Csv.d.ts.map +1 -1
  321. package/dist/encoding/Csv.js +44 -16
  322. package/dist/encoding/Csv.js.map +1 -1
  323. package/dist/encoding/Hex.d.ts +5 -0
  324. package/dist/encoding/Hex.d.ts.map +1 -1
  325. package/dist/encoding/Hex.js +5 -0
  326. package/dist/encoding/Hex.js.map +1 -1
  327. package/dist/encoding/SchemaBinary.d.ts.map +1 -1
  328. package/dist/encoding/SchemaBinary.js +13 -124
  329. package/dist/encoding/SchemaBinary.js.map +1 -1
  330. package/dist/encoding/Sse.d.ts +1 -0
  331. package/dist/encoding/Sse.d.ts.map +1 -1
  332. package/dist/encoding/Sse.js +7 -5
  333. package/dist/encoding/Sse.js.map +1 -1
  334. package/dist/encoding/Xml.d.ts +153 -18
  335. package/dist/encoding/Xml.d.ts.map +1 -1
  336. package/dist/encoding/Xml.js +379 -57
  337. package/dist/encoding/Xml.js.map +1 -1
  338. package/dist/eventlog/EventJournal.d.ts.map +1 -1
  339. package/dist/eventlog/EventJournal.js +3 -8
  340. package/dist/eventlog/EventJournal.js.map +1 -1
  341. package/dist/eventlog/SqlEventLogServerEncrypted.js +6 -8
  342. package/dist/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
  343. package/dist/http/FetchHttpClient.d.ts +2 -1
  344. package/dist/http/FetchHttpClient.d.ts.map +1 -1
  345. package/dist/http/FetchHttpClient.js +14 -10
  346. package/dist/http/FetchHttpClient.js.map +1 -1
  347. package/dist/http/FindMyWay/internal/router.js +163 -116
  348. package/dist/http/FindMyWay/internal/router.js.map +1 -1
  349. package/dist/http/FindMyWay.d.ts +99 -0
  350. package/dist/http/FindMyWay.d.ts.map +1 -1
  351. package/dist/http/FindMyWay.js +39 -0
  352. package/dist/http/FindMyWay.js.map +1 -1
  353. package/dist/http/Headers.d.ts +201 -3
  354. package/dist/http/Headers.d.ts.map +1 -1
  355. package/dist/http/Headers.js +205 -3
  356. package/dist/http/Headers.js.map +1 -1
  357. package/dist/http/HttpClient.d.ts.map +1 -1
  358. package/dist/http/HttpClient.js +12 -8
  359. package/dist/http/HttpClient.js.map +1 -1
  360. package/dist/http/HttpClientError.d.ts +1 -0
  361. package/dist/http/HttpClientError.d.ts.map +1 -1
  362. package/dist/http/HttpClientError.js +32 -9
  363. package/dist/http/HttpClientError.js.map +1 -1
  364. package/dist/http/HttpClientRequest.d.ts +46 -0
  365. package/dist/http/HttpClientRequest.d.ts.map +1 -1
  366. package/dist/http/HttpClientRequest.js +15 -0
  367. package/dist/http/HttpClientRequest.js.map +1 -1
  368. package/dist/http/HttpClientResponse.d.ts +132 -0
  369. package/dist/http/HttpClientResponse.d.ts.map +1 -1
  370. package/dist/http/HttpClientResponse.js +83 -0
  371. package/dist/http/HttpClientResponse.js.map +1 -1
  372. package/dist/http/HttpMiddleware.d.ts.map +1 -1
  373. package/dist/http/HttpMiddleware.js +16 -9
  374. package/dist/http/HttpMiddleware.js.map +1 -1
  375. package/dist/http/HttpRouter.d.ts +49 -1
  376. package/dist/http/HttpRouter.d.ts.map +1 -1
  377. package/dist/http/HttpRouter.js +70 -20
  378. package/dist/http/HttpRouter.js.map +1 -1
  379. package/dist/http/HttpServerResponse.d.ts +118 -0
  380. package/dist/http/HttpServerResponse.d.ts.map +1 -1
  381. package/dist/http/HttpServerResponse.js +67 -58
  382. package/dist/http/HttpServerResponse.js.map +1 -1
  383. package/dist/http/Mime.d.ts.map +1 -1
  384. package/dist/http/Mime.js +3 -2
  385. package/dist/http/Mime.js.map +1 -1
  386. package/dist/http/Multipart.d.ts.map +1 -1
  387. package/dist/http/Multipart.js +0 -5
  388. package/dist/http/Multipart.js.map +1 -1
  389. package/dist/http/MultipartParser/internal/contentType.d.ts +6 -0
  390. package/dist/http/MultipartParser/internal/contentType.d.ts.map +1 -1
  391. package/dist/http/MultipartParser/internal/contentType.js +1 -1
  392. package/dist/http/MultipartParser/internal/contentType.js.map +1 -1
  393. package/dist/http/internal/clientPath.d.ts +2 -0
  394. package/dist/http/internal/clientPath.d.ts.map +1 -0
  395. package/dist/http/internal/clientPath.js +24 -0
  396. package/dist/http/internal/clientPath.js.map +1 -0
  397. package/dist/http/internal/compression.d.ts.map +1 -1
  398. package/dist/http/internal/compression.js +2 -2
  399. package/dist/http/internal/compression.js.map +1 -1
  400. package/dist/http/internal/mediaType.d.ts.map +1 -0
  401. package/dist/{http-api → http}/internal/mediaType.js +4 -0
  402. package/dist/{http-api → http}/internal/mediaType.js.map +1 -1
  403. package/dist/http/internal/redactedPath.d.ts +2 -0
  404. package/dist/http/internal/redactedPath.d.ts.map +1 -0
  405. package/dist/http/internal/redactedPath.js +140 -0
  406. package/dist/http/internal/redactedPath.js.map +1 -0
  407. package/dist/http/internal/requestState.js +1 -0
  408. package/dist/http/internal/requestState.js.map +1 -1
  409. package/dist/http/internal/tracing.js +5 -3
  410. package/dist/http/internal/tracing.js.map +1 -1
  411. package/dist/http-api/HttpApi.d.ts +13 -2
  412. package/dist/http-api/HttpApi.d.ts.map +1 -1
  413. package/dist/http-api/HttpApi.js +43 -6
  414. package/dist/http-api/HttpApi.js.map +1 -1
  415. package/dist/http-api/HttpApiBuilder.d.ts.map +1 -1
  416. package/dist/http-api/HttpApiBuilder.js +7 -3
  417. package/dist/http-api/HttpApiBuilder.js.map +1 -1
  418. package/dist/http-api/HttpApiClient.d.ts.map +1 -1
  419. package/dist/http-api/HttpApiClient.js +29 -12
  420. package/dist/http-api/HttpApiClient.js.map +1 -1
  421. package/dist/http-api/HttpApiEndpoint.d.ts.map +1 -1
  422. package/dist/http-api/HttpApiEndpoint.js +1 -1
  423. package/dist/http-api/HttpApiEndpoint.js.map +1 -1
  424. package/dist/http-api/HttpApiScalar.d.ts +4 -0
  425. package/dist/http-api/HttpApiScalar.d.ts.map +1 -1
  426. package/dist/http-api/HttpApiScalar.js +10 -1
  427. package/dist/http-api/HttpApiScalar.js.map +1 -1
  428. package/dist/http-api/HttpApiSchema.d.ts.map +1 -1
  429. package/dist/http-api/HttpApiSchema.js +1 -1
  430. package/dist/http-api/HttpApiSchema.js.map +1 -1
  431. package/dist/http-api/OpenApi.d.ts +2 -0
  432. package/dist/http-api/OpenApi.d.ts.map +1 -1
  433. package/dist/http-api/internal/httpApiScalar.js +5 -2
  434. package/dist/http-api/internal/httpApiScalar.js.map +1 -1
  435. package/dist/http-api/internal/redactedKeys.d.ts +2 -0
  436. package/dist/http-api/internal/redactedKeys.d.ts.map +1 -0
  437. package/dist/http-api/internal/redactedKeys.js +37 -0
  438. package/dist/http-api/internal/redactedKeys.js.map +1 -0
  439. package/dist/index.d.ts +5 -0
  440. package/dist/index.d.ts.map +1 -1
  441. package/dist/index.js +5 -0
  442. package/dist/index.js.map +1 -1
  443. package/dist/internal/arbitrary/model.js +0 -5
  444. package/dist/internal/arbitrary/model.js.map +1 -1
  445. package/dist/internal/arbitrary/regexp.js +2 -1
  446. package/dist/internal/arbitrary/regexp.js.map +1 -1
  447. package/dist/internal/arbitrary/runner.d.ts.map +1 -1
  448. package/dist/internal/arbitrary/runner.js +21 -16
  449. package/dist/internal/arbitrary/runner.js.map +1 -1
  450. package/dist/internal/arbitrary/schema.js +140 -23
  451. package/dist/internal/arbitrary/schema.js.map +1 -1
  452. package/dist/internal/base64.js +34 -2
  453. package/dist/internal/base64.js.map +1 -1
  454. package/dist/internal/codegen.d.ts +2 -0
  455. package/dist/internal/codegen.d.ts.map +1 -0
  456. package/dist/internal/codegen.js +59 -0
  457. package/dist/internal/codegen.js.map +1 -0
  458. package/dist/internal/core.js +3 -3
  459. package/dist/internal/core.js.map +1 -1
  460. package/dist/internal/dateTime.js +61 -29
  461. package/dist/internal/dateTime.js.map +1 -1
  462. package/dist/internal/effect.js +30 -8
  463. package/dist/internal/effect.js.map +1 -1
  464. package/dist/internal/equal.js +14 -13
  465. package/dist/internal/equal.js.map +1 -1
  466. package/dist/internal/hash.js +4 -1
  467. package/dist/internal/hash.js.map +1 -1
  468. package/dist/internal/hashMap.js +7 -7
  469. package/dist/internal/hashMap.js.map +1 -1
  470. package/dist/internal/matcher.js +19 -18
  471. package/dist/internal/matcher.js.map +1 -1
  472. package/dist/internal/record.js +18 -4
  473. package/dist/internal/record.js.map +1 -1
  474. package/dist/internal/result.js +1 -1
  475. package/dist/internal/result.js.map +1 -1
  476. package/dist/internal/schema/codeExpression.d.ts +4 -0
  477. package/dist/internal/schema/codeExpression.d.ts.map +1 -0
  478. package/dist/internal/schema/codeExpression.js +179 -0
  479. package/dist/internal/schema/codeExpression.js.map +1 -0
  480. package/dist/internal/schema/codeImports.d.ts +8 -0
  481. package/dist/internal/schema/codeImports.d.ts.map +1 -0
  482. package/dist/internal/schema/codeImports.js +135 -0
  483. package/dist/internal/schema/codeImports.js.map +1 -0
  484. package/dist/internal/schema/codeTokens.d.ts +8 -0
  485. package/dist/internal/schema/codeTokens.d.ts.map +1 -0
  486. package/dist/internal/schema/codeTokens.js +17 -0
  487. package/dist/internal/schema/codeTokens.js.map +1 -0
  488. package/dist/internal/schema/passthrough.d.ts +2 -0
  489. package/dist/internal/schema/passthrough.d.ts.map +1 -0
  490. package/dist/internal/schema/passthrough.js +8 -0
  491. package/dist/internal/schema/passthrough.js.map +1 -0
  492. package/dist/internal/schema/schemaCodegen.d.ts +2 -0
  493. package/dist/internal/schema/schemaCodegen.d.ts.map +1 -0
  494. package/dist/internal/schema/schemaCodegen.js +378 -0
  495. package/dist/internal/schema/schemaCodegen.js.map +1 -0
  496. package/dist/internal/schema/schemaCodegenBuiltIns.d.ts +2 -0
  497. package/dist/internal/schema/schemaCodegenBuiltIns.d.ts.map +1 -0
  498. package/dist/internal/schema/schemaCodegenBuiltIns.js +425 -0
  499. package/dist/internal/schema/schemaCodegenBuiltIns.js.map +1 -0
  500. package/dist/internal/schema/toEquivalence.js +3 -4
  501. package/dist/internal/schema/toEquivalence.js.map +1 -1
  502. package/dist/internal/schema/toJsonSchemaDocument.js +11 -4
  503. package/dist/internal/schema/toJsonSchemaDocument.js.map +1 -1
  504. package/dist/internal/trie.js +51 -64
  505. package/dist/internal/trie.js.map +1 -1
  506. package/dist/internal/utf8.d.ts +2 -0
  507. package/dist/internal/utf8.d.ts.map +1 -0
  508. package/dist/internal/utf8.js +151 -0
  509. package/dist/internal/utf8.js.map +1 -0
  510. package/dist/internal/version.js +1 -1
  511. package/dist/jose/JoseError.d.ts +51 -1
  512. package/dist/jose/JoseError.d.ts.map +1 -1
  513. package/dist/jose/JoseError.js +25 -18
  514. package/dist/jose/JoseError.js.map +1 -1
  515. package/dist/jose/Jwks.d.ts +13 -0
  516. package/dist/jose/Jwks.d.ts.map +1 -1
  517. package/dist/jose/Jwks.js +10 -2
  518. package/dist/jose/Jwks.js.map +1 -1
  519. package/dist/jose/internal/compact.js +10 -5
  520. package/dist/jose/internal/compact.js.map +1 -1
  521. package/dist/observability/Otlp.d.ts +19 -0
  522. package/dist/observability/Otlp.d.ts.map +1 -1
  523. package/dist/observability/Otlp.js +10 -0
  524. package/dist/observability/Otlp.js.map +1 -1
  525. package/dist/observability/OtlpExporter.d.ts +49 -13
  526. package/dist/observability/OtlpExporter.d.ts.map +1 -1
  527. package/dist/observability/OtlpExporter.js +133 -50
  528. package/dist/observability/OtlpExporter.js.map +1 -1
  529. package/dist/observability/OtlpLogger.d.ts +14 -0
  530. package/dist/observability/OtlpLogger.d.ts.map +1 -1
  531. package/dist/observability/OtlpLogger.js +15 -5
  532. package/dist/observability/OtlpLogger.js.map +1 -1
  533. package/dist/observability/OtlpMetrics.d.ts.map +1 -1
  534. package/dist/observability/OtlpMetrics.js +2 -0
  535. package/dist/observability/OtlpMetrics.js.map +1 -1
  536. package/dist/observability/OtlpTracer.d.ts +14 -0
  537. package/dist/observability/OtlpTracer.d.ts.map +1 -1
  538. package/dist/observability/OtlpTracer.js +10 -2
  539. package/dist/observability/OtlpTracer.js.map +1 -1
  540. package/dist/observability/internal/otlpProtobuf.d.ts +4 -2
  541. package/dist/observability/internal/otlpProtobuf.d.ts.map +1 -1
  542. package/dist/observability/internal/otlpProtobuf.js +238 -156
  543. package/dist/observability/internal/otlpProtobuf.js.map +1 -1
  544. package/dist/persistence/KeyValueStore.d.ts.map +1 -1
  545. package/dist/persistence/KeyValueStore.js +6 -4
  546. package/dist/persistence/KeyValueStore.js.map +1 -1
  547. package/dist/persistence/PersistedQueue.d.ts.map +1 -1
  548. package/dist/persistence/PersistedQueue.js +20 -3
  549. package/dist/persistence/PersistedQueue.js.map +1 -1
  550. package/dist/protobuf/ProtobufDescriptor.d.ts +377 -0
  551. package/dist/protobuf/ProtobufDescriptor.d.ts.map +1 -0
  552. package/dist/protobuf/ProtobufDescriptor.js +135 -0
  553. package/dist/protobuf/ProtobufDescriptor.js.map +1 -0
  554. package/dist/protobuf/ProtobufDescriptorProto.d.ts +2083 -0
  555. package/dist/protobuf/ProtobufDescriptorProto.d.ts.map +1 -0
  556. package/dist/protobuf/ProtobufDescriptorProto.js +2674 -0
  557. package/dist/protobuf/ProtobufDescriptorProto.js.map +1 -0
  558. package/dist/protobuf/ProtobufMessage.d.ts +183 -0
  559. package/dist/protobuf/ProtobufMessage.d.ts.map +1 -0
  560. package/dist/protobuf/ProtobufMessage.js +232 -0
  561. package/dist/protobuf/ProtobufMessage.js.map +1 -0
  562. package/dist/protobuf/ProtobufReader.d.ts +350 -0
  563. package/dist/protobuf/ProtobufReader.d.ts.map +1 -0
  564. package/dist/protobuf/ProtobufReader.js +698 -0
  565. package/dist/protobuf/ProtobufReader.js.map +1 -0
  566. package/dist/protobuf/ProtobufWriter.d.ts +224 -0
  567. package/dist/protobuf/ProtobufWriter.d.ts.map +1 -0
  568. package/dist/protobuf/ProtobufWriter.js +483 -0
  569. package/dist/protobuf/ProtobufWriter.js.map +1 -0
  570. package/dist/protobuf/index.d.ts +30 -0
  571. package/dist/protobuf/index.d.ts.map +1 -0
  572. package/dist/protobuf/index.js +31 -0
  573. package/dist/protobuf/index.js.map +1 -0
  574. package/dist/protobuf/internal/binary.d.ts +2 -0
  575. package/dist/protobuf/internal/binary.d.ts.map +1 -0
  576. package/dist/protobuf/internal/binary.js +966 -0
  577. package/dist/protobuf/internal/binary.js.map +1 -0
  578. package/dist/protobuf/internal/resolve.d.ts +2 -0
  579. package/dist/protobuf/internal/resolve.d.ts.map +1 -0
  580. package/dist/protobuf/internal/resolve.js +463 -0
  581. package/dist/protobuf/internal/resolve.js.map +1 -0
  582. package/dist/protobuf/internal/wireType.d.ts +2 -0
  583. package/dist/protobuf/internal/wireType.d.ts.map +1 -0
  584. package/dist/protobuf/internal/wireType.js +10 -0
  585. package/dist/protobuf/internal/wireType.js.map +1 -0
  586. package/dist/reactivity/AsyncResult.d.ts +3 -0
  587. package/dist/reactivity/AsyncResult.d.ts.map +1 -1
  588. package/dist/reactivity/AsyncResult.js +4 -1
  589. package/dist/reactivity/AsyncResult.js.map +1 -1
  590. package/dist/reactivity/Atom.d.ts +10 -4
  591. package/dist/reactivity/Atom.d.ts.map +1 -1
  592. package/dist/reactivity/Atom.js +48 -22
  593. package/dist/reactivity/Atom.js.map +1 -1
  594. package/dist/reactivity/AtomHttpApi.d.ts +5 -0
  595. package/dist/reactivity/AtomHttpApi.d.ts.map +1 -1
  596. package/dist/reactivity/AtomHttpApi.js +5 -1
  597. package/dist/reactivity/AtomHttpApi.js.map +1 -1
  598. package/dist/reactivity/AtomRegistry.js +13 -0
  599. package/dist/reactivity/AtomRegistry.js.map +1 -1
  600. package/dist/reactivity/AtomRpc.d.ts +5 -0
  601. package/dist/reactivity/AtomRpc.d.ts.map +1 -1
  602. package/dist/reactivity/AtomRpc.js +6 -1
  603. package/dist/reactivity/AtomRpc.js.map +1 -1
  604. package/dist/rpc/Rpc.d.ts +25 -0
  605. package/dist/rpc/Rpc.d.ts.map +1 -1
  606. package/dist/rpc/Rpc.js +18 -0
  607. package/dist/rpc/Rpc.js.map +1 -1
  608. package/dist/rpc/RpcClient.d.ts.map +1 -1
  609. package/dist/rpc/RpcClient.js +70 -22
  610. package/dist/rpc/RpcClient.js.map +1 -1
  611. package/dist/rpc/RpcGroup.d.ts +6 -1
  612. package/dist/rpc/RpcGroup.d.ts.map +1 -1
  613. package/dist/rpc/RpcGroup.js +4 -0
  614. package/dist/rpc/RpcGroup.js.map +1 -1
  615. package/dist/rpc/RpcMiddleware.d.ts +9 -0
  616. package/dist/rpc/RpcMiddleware.d.ts.map +1 -1
  617. package/dist/rpc/RpcMiddleware.js.map +1 -1
  618. package/dist/rpc/RpcSerialization.d.ts +7 -1
  619. package/dist/rpc/RpcSerialization.d.ts.map +1 -1
  620. package/dist/rpc/RpcSerialization.js +22 -5
  621. package/dist/rpc/RpcSerialization.js.map +1 -1
  622. package/dist/rpc/RpcServer.d.ts.map +1 -1
  623. package/dist/rpc/RpcServer.js +33 -18
  624. package/dist/rpc/RpcServer.js.map +1 -1
  625. package/dist/schema/SchemaCompiler/runtime.js +2 -1
  626. package/dist/schema/SchemaCompiler/runtime.js.map +1 -1
  627. package/dist/schema/VariantSchema.d.ts +10 -2
  628. package/dist/schema/VariantSchema.d.ts.map +1 -1
  629. package/dist/schema/VariantSchema.js +7 -1
  630. package/dist/schema/VariantSchema.js.map +1 -1
  631. package/dist/socket/Socket.d.ts +24 -10
  632. package/dist/socket/Socket.d.ts.map +1 -1
  633. package/dist/socket/Socket.js +52 -17
  634. package/dist/socket/Socket.js.map +1 -1
  635. package/dist/sql/Migrator.d.ts +3 -0
  636. package/dist/sql/Migrator.d.ts.map +1 -1
  637. package/dist/sql/Migrator.js +12 -6
  638. package/dist/sql/Migrator.js.map +1 -1
  639. package/dist/sql/SqlClient.d.ts.map +1 -1
  640. package/dist/sql/SqlClient.js +5 -1
  641. package/dist/sql/SqlClient.js.map +1 -1
  642. package/dist/sql/SqlModel.d.ts.map +1 -1
  643. package/dist/sql/SqlModel.js +1 -0
  644. package/dist/sql/SqlModel.js.map +1 -1
  645. package/dist/testing/TestConsole.d.ts +96 -0
  646. package/dist/testing/TestConsole.d.ts.map +1 -1
  647. package/dist/testing/TestConsole.js +78 -6
  648. package/dist/testing/TestConsole.js.map +1 -1
  649. package/dist/testing/TestSchema.d.ts +5 -1
  650. package/dist/testing/TestSchema.d.ts.map +1 -1
  651. package/dist/testing/TestSchema.js +7 -2
  652. package/dist/testing/TestSchema.js.map +1 -1
  653. package/dist/workers/SharedMemory.d.ts +115 -0
  654. package/dist/workers/SharedMemory.d.ts.map +1 -0
  655. package/dist/workers/SharedMemory.js +149 -0
  656. package/dist/workers/SharedMemory.js.map +1 -0
  657. package/dist/workers/Transferable.d.ts.map +1 -1
  658. package/dist/workers/Transferable.js +1 -4
  659. package/dist/workers/Transferable.js.map +1 -1
  660. package/dist/workers/index.d.ts +5 -0
  661. package/dist/workers/index.d.ts.map +1 -1
  662. package/dist/workers/index.js +5 -0
  663. package/dist/workers/index.js.map +1 -1
  664. package/dist/workflow/Activity.d.ts +18 -0
  665. package/dist/workflow/Activity.d.ts.map +1 -1
  666. package/dist/workflow/Activity.js +13 -4
  667. package/dist/workflow/Activity.js.map +1 -1
  668. package/dist/workflow/Workflow.d.ts +10 -9
  669. package/dist/workflow/Workflow.d.ts.map +1 -1
  670. package/dist/workflow/Workflow.js +33 -22
  671. package/dist/workflow/Workflow.js.map +1 -1
  672. package/dist/workflow/WorkflowEngine.d.ts.map +1 -1
  673. package/dist/workflow/WorkflowEngine.js +28 -12
  674. package/dist/workflow/WorkflowEngine.js.map +1 -1
  675. package/dist/workflow/internal/retry.d.ts +2 -0
  676. package/dist/workflow/internal/retry.d.ts.map +1 -0
  677. package/dist/workflow/internal/retry.js +11 -0
  678. package/dist/workflow/internal/retry.js.map +1 -0
  679. package/dist/workflow/internal/scope.d.ts +2 -0
  680. package/dist/workflow/internal/scope.d.ts.map +1 -0
  681. package/dist/workflow/internal/scope.js +26 -0
  682. package/dist/workflow/internal/scope.js.map +1 -0
  683. package/package.json +8 -5
  684. package/src/Arbitrary.ts +60 -3
  685. package/src/BigInt.ts +247 -9
  686. package/src/Cache.ts +4 -2
  687. package/src/Cause.ts +3 -3
  688. package/src/Channel.ts +105 -8
  689. package/src/Chunk.ts +7 -3
  690. package/src/Clock.ts +5 -2
  691. package/src/Codegen.ts +746 -0
  692. package/src/Config.ts +35 -4
  693. package/src/ConfigProvider.ts +24 -7
  694. package/src/Effect.ts +1095 -157
  695. package/src/Equal.ts +85 -79
  696. package/src/Equivalence.ts +16 -13
  697. package/src/Fiber.ts +58 -8
  698. package/src/FiberHandle.ts +86 -12
  699. package/src/FiberMap.ts +83 -10
  700. package/src/FiberSet.ts +96 -8
  701. package/src/Formatter.ts +2 -0
  702. package/src/Hash.ts +30 -22
  703. package/src/LayerMap.ts +14 -4
  704. package/src/LayerRef.ts +8 -6
  705. package/src/Logger.ts +68 -25
  706. package/src/Match.ts +94 -50
  707. package/src/Metric.ts +1 -1
  708. package/src/Option.ts +9 -5
  709. package/src/Order.ts +10 -5
  710. package/src/Pool.ts +22 -17
  711. package/src/Predicate.ts +7 -3
  712. package/src/Queue.ts +84 -31
  713. package/src/Rational.ts +198 -0
  714. package/src/Request.ts +20 -0
  715. package/src/Result.ts +9 -6
  716. package/src/Schema.ts +145 -325
  717. package/src/SchemaAST.ts +15 -5
  718. package/src/SchemaGetter.ts +17 -10
  719. package/src/SchemaRepresentation.ts +19 -74
  720. package/src/SchemaTransformation.ts +12 -11
  721. package/src/Scope.ts +12 -6
  722. package/src/ScopedCache.ts +8 -5
  723. package/src/Semaphore.ts +18 -4
  724. package/src/Stream.ts +233 -53
  725. package/src/String.ts +84 -7
  726. package/src/Struct.ts +138 -5
  727. package/src/TextDiff.ts +186 -30
  728. package/src/Tracer.ts +10 -0
  729. package/src/TxPriorityQueue.ts +2 -2
  730. package/src/ai/LanguageModel.ts +2 -1
  731. package/src/ai/McpServer.ts +306 -26
  732. package/src/ai/Prompt.ts +20 -3
  733. package/src/ai/Skill.ts +236 -0
  734. package/src/ai/Tool.ts +3 -2
  735. package/src/ai/Toolkit.ts +3 -1
  736. package/src/ai/index.ts +6 -0
  737. package/src/chat/Chat.ts +164 -0
  738. package/src/chat/ChatAdapter.ts +444 -0
  739. package/src/chat/ChatError.ts +684 -0
  740. package/src/chat/ChatEvent.ts +221 -0
  741. package/src/chat/ChatHandler.ts +102 -0
  742. package/src/chat/ChatInteraction.ts +1979 -0
  743. package/src/chat/ChatMarkdown.ts +1406 -0
  744. package/src/chat/ChatMessage.ts +213 -0
  745. package/src/chat/ChatTest.ts +2606 -0
  746. package/src/chat/ChatThread.ts +132 -0
  747. package/src/chat/ChatUi.ts +320 -0
  748. package/src/chat/index.ts +72 -0
  749. package/src/chat/internal/retries.ts +7 -0
  750. package/src/cli/CliOutput.ts +4 -5
  751. package/src/cli/Command.ts +20 -2
  752. package/src/cli/Prompt.ts +15 -9
  753. package/src/cli/internal/config.ts +8 -8
  754. package/src/cluster/ClusterCron.ts +33 -10
  755. package/src/cluster/ClusterWorkflowEngine.ts +214 -119
  756. package/src/cluster/MessageStorage.ts +51 -2
  757. package/src/cluster/Sharding.ts +17 -3
  758. package/src/cluster/ShardingConfig.ts +3 -0
  759. package/src/cluster/SqlMessageStorage.ts +97 -54
  760. package/src/cluster/SqlRunnerStorage.ts +21 -8
  761. package/src/cluster/internal/entityActivation.ts +6 -0
  762. package/src/cluster/internal/entityManager.ts +27 -14
  763. package/src/cluster/internal/entityReaper.ts +1 -1
  764. package/src/crypto/Kdf.ts +2 -1
  765. package/src/crypto/Password.ts +258 -0
  766. package/src/crypto/index.ts +6 -0
  767. package/src/encoding/Base64.ts +84 -1
  768. package/src/encoding/Base64Url.ts +7 -1
  769. package/src/encoding/Csv.ts +47 -20
  770. package/src/encoding/Hex.ts +5 -0
  771. package/src/encoding/SchemaBinary.ts +13 -79
  772. package/src/encoding/Sse.ts +7 -5
  773. package/src/encoding/Xml.ts +485 -68
  774. package/src/eventlog/EventJournal.ts +3 -8
  775. package/src/eventlog/SqlEventLogServerEncrypted.ts +9 -9
  776. package/src/http/FetchHttpClient.ts +8 -5
  777. package/src/http/FindMyWay/internal/router.ts +181 -129
  778. package/src/http/FindMyWay.ts +106 -0
  779. package/src/http/Headers.ts +309 -3
  780. package/src/http/HttpClient.ts +21 -8
  781. package/src/http/HttpClientError.ts +42 -9
  782. package/src/http/HttpClientRequest.ts +51 -0
  783. package/src/http/HttpClientResponse.ts +156 -0
  784. package/src/http/HttpMiddleware.ts +23 -10
  785. package/src/http/HttpRouter.ts +84 -20
  786. package/src/http/HttpServerResponse.ts +159 -61
  787. package/src/http/Mime.ts +3 -2
  788. package/src/http/Multipart.ts +0 -5
  789. package/src/http/MultipartParser/internal/contentType.ts +1 -1
  790. package/src/http/internal/clientPath.ts +39 -0
  791. package/src/http/internal/compression.ts +2 -2
  792. package/src/{http-api → http}/internal/mediaType.ts +4 -0
  793. package/src/http/internal/redactedPath.ts +148 -0
  794. package/src/http/internal/requestState.ts +2 -0
  795. package/src/http/internal/tracing.ts +6 -3
  796. package/src/http-api/HttpApi.ts +50 -6
  797. package/src/http-api/HttpApiBuilder.ts +11 -3
  798. package/src/http-api/HttpApiClient.ts +40 -13
  799. package/src/http-api/HttpApiEndpoint.ts +1 -1
  800. package/src/http-api/HttpApiScalar.ts +9 -1
  801. package/src/http-api/HttpApiSchema.ts +1 -1
  802. package/src/http-api/OpenApi.ts +2 -0
  803. package/src/http-api/internal/httpApiScalar.ts +5 -1
  804. package/src/http-api/internal/redactedKeys.ts +40 -0
  805. package/src/index.ts +6 -0
  806. package/src/internal/arbitrary/model.ts +3 -9
  807. package/src/internal/arbitrary/regexp.ts +3 -1
  808. package/src/internal/arbitrary/runner.ts +28 -14
  809. package/src/internal/arbitrary/schema.ts +140 -35
  810. package/src/internal/base64.ts +57 -2
  811. package/src/internal/codegen.ts +53 -0
  812. package/src/internal/core.ts +3 -3
  813. package/src/internal/dateTime.ts +73 -37
  814. package/src/internal/effect.ts +56 -111
  815. package/src/internal/equal.ts +37 -17
  816. package/src/internal/hash.ts +5 -1
  817. package/src/internal/hashMap.ts +8 -7
  818. package/src/internal/matcher.ts +36 -114
  819. package/src/internal/record.ts +19 -4
  820. package/src/internal/result.ts +1 -1
  821. package/src/internal/schema/codeExpression.ts +179 -0
  822. package/src/internal/schema/codeImports.ts +142 -0
  823. package/src/internal/schema/codeTokens.ts +39 -0
  824. package/src/internal/schema/passthrough.ts +8 -0
  825. package/src/internal/schema/schemaCodegen.ts +544 -0
  826. package/src/internal/schema/schemaCodegenBuiltIns.ts +343 -0
  827. package/src/internal/schema/toEquivalence.ts +3 -5
  828. package/src/internal/schema/toJsonSchemaDocument.ts +13 -4
  829. package/src/internal/trie.ts +46 -60
  830. package/src/internal/utf8.ts +106 -0
  831. package/src/internal/version.ts +1 -1
  832. package/src/jose/JoseError.ts +34 -0
  833. package/src/jose/Jwks.ts +23 -4
  834. package/src/jose/internal/compact.ts +14 -5
  835. package/src/observability/Otlp.ts +29 -0
  836. package/src/observability/OtlpExporter.ts +209 -76
  837. package/src/observability/OtlpLogger.ts +29 -5
  838. package/src/observability/OtlpMetrics.ts +2 -0
  839. package/src/observability/OtlpTracer.ts +24 -3
  840. package/src/observability/internal/otlpProtobuf.ts +386 -457
  841. package/src/persistence/KeyValueStore.ts +17 -14
  842. package/src/persistence/PersistedQueue.ts +21 -4
  843. package/src/protobuf/ProtobufDescriptor.ts +503 -0
  844. package/src/protobuf/ProtobufDescriptorProto.ts +3611 -0
  845. package/src/protobuf/ProtobufMessage.ts +277 -0
  846. package/src/protobuf/ProtobufReader.ts +756 -0
  847. package/src/protobuf/ProtobufWriter.ts +530 -0
  848. package/src/protobuf/index.ts +36 -0
  849. package/src/protobuf/internal/binary.ts +1215 -0
  850. package/src/protobuf/internal/resolve.ts +533 -0
  851. package/src/protobuf/internal/wireType.ts +9 -0
  852. package/src/reactivity/AsyncResult.ts +6 -1
  853. package/src/reactivity/Atom.ts +67 -34
  854. package/src/reactivity/AtomHttpApi.ts +10 -1
  855. package/src/reactivity/AtomRegistry.ts +16 -0
  856. package/src/reactivity/AtomRpc.ts +11 -1
  857. package/src/rpc/Rpc.ts +31 -0
  858. package/src/rpc/RpcClient.ts +56 -22
  859. package/src/rpc/RpcGroup.ts +9 -1
  860. package/src/rpc/RpcMiddleware.ts +9 -0
  861. package/src/rpc/RpcSerialization.ts +26 -6
  862. package/src/rpc/RpcServer.ts +33 -20
  863. package/src/schema/SchemaCompiler/runtime.ts +2 -3
  864. package/src/schema/VariantSchema.ts +12 -4
  865. package/src/socket/Socket.ts +67 -20
  866. package/src/sql/Migrator.ts +10 -12
  867. package/src/sql/SqlClient.ts +14 -8
  868. package/src/sql/SqlModel.ts +4 -0
  869. package/src/testing/TestConsole.ts +119 -9
  870. package/src/testing/TestSchema.ts +8 -3
  871. package/src/workers/SharedMemory.ts +227 -0
  872. package/src/workers/Transferable.ts +1 -5
  873. package/src/workers/index.ts +6 -0
  874. package/src/workflow/Activity.ts +28 -4
  875. package/src/workflow/Workflow.ts +68 -44
  876. package/src/workflow/WorkflowEngine.ts +41 -16
  877. package/src/workflow/internal/retry.ts +12 -0
  878. package/src/workflow/internal/scope.ts +36 -0
  879. package/dist/http-api/internal/mediaType.d.ts.map +0 -1
  880. package/dist/internal/schema/toCodeDocument.d.ts +0 -2
  881. package/dist/internal/schema/toCodeDocument.d.ts.map +0 -1
  882. package/dist/internal/schema/toCodeDocument.js +0 -447
  883. package/dist/internal/schema/toCodeDocument.js.map +0 -1
  884. package/dist/observability/internal/protobuf.d.ts +0 -2
  885. package/dist/observability/internal/protobuf.d.ts.map +0 -1
  886. package/dist/observability/internal/protobuf.js +0 -169
  887. package/dist/observability/internal/protobuf.js.map +0 -1
  888. package/src/internal/schema/toCodeDocument.ts +0 -578
  889. package/src/observability/internal/protobuf.ts +0 -225
  890. /package/dist/{http-api → http}/internal/mediaType.d.ts +0 -0
package/dist/Schema.js CHANGED
@@ -68,7 +68,6 @@ import * as Order from "./Order.js";
68
68
  import * as Pipeable from "./Pipeable.js";
69
69
  import * as Predicate from "./Predicate.js";
70
70
  import * as Rational_ from "./Rational.js";
71
- import * as Record_ from "./Record.js";
72
71
  import * as Redacted_ from "./Redacted.js";
73
72
  import * as RegExp_ from "./RegExp.js";
74
73
  import * as Result_ from "./Result.js";
@@ -1944,11 +1943,14 @@ function makeStruct(ast, fields) {
1944
1943
  *
1945
1944
  * Each field value is a schema. Use {@link optionalKey} or {@link optional} to
1946
1945
  * mark fields as optional, and {@link mutableKey} to mark them as mutable.
1946
+ * Field definitions are discovered from own enumerable string and symbol
1947
+ * properties of `fields`. Non-enumerable and inherited definitions are ignored.
1947
1948
  *
1948
1949
  * The resulting schema's `Type` is a readonly object type with the fields'
1949
1950
  * decoded types. The `Encoded` form mirrors the field schemas' encoded types.
1950
- * Declared fields may be inherited and are copied to own properties in the
1951
- * output. The `__proto__` field is accepted only when it is an own property.
1951
+ * Declared fields on the input may be non-enumerable or inherited and are copied
1952
+ * to own properties in the output. The `__proto__` field is accepted only when
1953
+ * it is an own property.
1952
1954
  * Parsing does not guarantee that output keys retain their input order.
1953
1955
  *
1954
1956
  * **Example** (Defining a basic struct)
@@ -2018,6 +2020,10 @@ const canonicalPropertyKey = key => typeof key === "symbol" ? key : globalThis.S
2018
2020
  * the renamed keys. Keys not present in the mapping are left unchanged.
2019
2021
  * If two existing fields would produce the same encoded key, construction
2020
2022
  * fails.
2023
+ * Only own enumerable string and symbol properties of the schema's `fields`
2024
+ * define fields to rename. Non-enumerable and inherited field definitions are
2025
+ * ignored. For each selected field, an own entry in `mapping` is used even if
2026
+ * that entry is non-enumerable; inherited mapping entries are ignored.
2021
2027
  *
2022
2028
  * **Example** (Renaming `name` to `full_name` in the encoded form)
2023
2029
  *
@@ -2041,7 +2047,7 @@ export function encodeKeys(mapping) {
2041
2047
  const appliedMapping = Object.create(null);
2042
2048
  const reverseMapping = Object.create(null);
2043
2049
  const seenEncodedKeys = new Set();
2044
- for (const k of Reflect.ownKeys(self.fields)) {
2050
+ for (const k of InternalRecord.ownEnumerableKeys(self.fields)) {
2045
2051
  const encoded = toEncoded(self.fields[k]);
2046
2052
  const hasMapping = Object.hasOwn(mapping, k);
2047
2053
  const encodedKey = hasMapping ? mapping[k] : k;
@@ -2071,6 +2077,10 @@ export function encodeKeys(mapping) {
2071
2077
  * returns `Option`. On encoding the derived fields are stripped. This allows
2072
2078
  * computed or enriched fields to live in the decoded type without appearing in
2073
2079
  * the encoded form.
2080
+ * Existing and added field definitions use own enumerable string and symbol
2081
+ * properties; non-enumerable and inherited definitions are ignored. Derivation
2082
+ * functions are looked up by the selected field names and may be non-enumerable
2083
+ * or inherited.
2074
2084
  *
2075
2085
  * **Example** (Adding a computed `fullName` field)
2076
2086
  *
@@ -2095,17 +2105,18 @@ export function encodeKeys(mapping) {
2095
2105
  */
2096
2106
  export function extendTo(fields, derive) {
2097
2107
  return self => {
2098
- const f = Record_.map(self.fields, toType);
2108
+ const f = Struct_.map(self.fields, toType);
2099
2109
  const to = Struct({
2100
2110
  ...f,
2101
2111
  ...fields
2102
2112
  });
2113
+ const keys = InternalRecord.ownEnumerableKeys(fields);
2103
2114
  return self.pipe(decodeTo(to, SchemaTransformation.transform({
2104
2115
  decode: input => {
2105
2116
  const out = {
2106
2117
  ...input
2107
2118
  };
2108
- for (const k in fields) {
2119
+ for (const k of keys) {
2109
2120
  const f = derive[k];
2110
2121
  const o = f(input);
2111
2122
  if (Option_.isSome(o)) {
@@ -2118,7 +2129,7 @@ export function extendTo(fields, derive) {
2118
2129
  const out = {
2119
2130
  ...input
2120
2131
  };
2121
- for (const k in fields) {
2132
+ for (const k of keys) {
2122
2133
  delete out[k];
2123
2134
  }
2124
2135
  return out;
@@ -3575,9 +3586,6 @@ export function isTrimmed(annotations) {
3575
3586
  toJsonSchema: () => ({
3576
3587
  pattern: regExp.source
3577
3588
  }),
3578
- toCode: () => ({
3579
- runtime: "Schema.isTrimmed()"
3580
- }),
3581
3589
  arbitraryConstraint: {
3582
3590
  patterns: [{
3583
3591
  source: TRIMMED_PATTERN,
@@ -3611,14 +3619,10 @@ export function isPattern(regExp, annotations) {
3611
3619
  const source = regExp.source;
3612
3620
  const flags = regExp.flags;
3613
3621
  const canExport = /^[dg]*uy?$/.test(flags);
3614
- const runtimeRegExp = flags === "" ? `new globalThis.RegExp(${format(source)})` : `new globalThis.RegExp(${format(source)}, ${format(flags)})`;
3615
3622
  return SchemaAST.isPattern(regExp, {
3616
3623
  toJsonSchema: () => canExport ? {
3617
3624
  pattern: flags.endsWith("y") ? `^(?:${source})` : source
3618
3625
  } : [{}, true],
3619
- toCode: () => ({
3620
- runtime: `Schema.isPattern(${runtimeRegExp})`
3621
- }),
3622
3626
  ...annotations
3623
3627
  });
3624
3628
  }
@@ -3642,12 +3646,7 @@ export function isPattern(regExp, annotations) {
3642
3646
  * @since 4.0.0
3643
3647
  */
3644
3648
  export function isStringFinite(annotations) {
3645
- return SchemaAST.isStringFinite({
3646
- toCode: () => ({
3647
- runtime: "Schema.isStringFinite()"
3648
- }),
3649
- ...annotations
3650
- });
3649
+ return SchemaAST.isStringFinite(annotations);
3651
3650
  }
3652
3651
  /**
3653
3652
  * Validates that a string is a signed base-10 integer literal for Effect's
@@ -3668,12 +3667,7 @@ export function isStringFinite(annotations) {
3668
3667
  * @since 4.0.0
3669
3668
  */
3670
3669
  export function isStringBigInt(annotations) {
3671
- return SchemaAST.isStringBigInt({
3672
- toCode: () => ({
3673
- runtime: "Schema.isStringBigInt()"
3674
- }),
3675
- ...annotations
3676
- });
3670
+ return SchemaAST.isStringBigInt(annotations);
3677
3671
  }
3678
3672
  /**
3679
3673
  * Validates that a string has the `Symbol(description)` format used by Effect's
@@ -3689,12 +3683,7 @@ export function isStringBigInt(annotations) {
3689
3683
  * @since 4.0.0
3690
3684
  */
3691
3685
  export function isStringSymbol(annotations) {
3692
- return SchemaAST.isStringSymbol({
3693
- toCode: () => ({
3694
- runtime: "Schema.isStringSymbol()"
3695
- }),
3696
- ...annotations
3697
- });
3686
+ return SchemaAST.isStringSymbol(annotations);
3698
3687
  }
3699
3688
  const getUUIDRegExp = version => {
3700
3689
  if (version) {
@@ -3747,9 +3736,6 @@ export function isUUID(version, annotations) {
3747
3736
  pattern: regExp.source,
3748
3737
  format: "uuid"
3749
3738
  }),
3750
- toCode: () => ({
3751
- runtime: version === undefined ? "Schema.isUUID()" : `Schema.isUUID(${version})`
3752
- }),
3753
3739
  ...annotations
3754
3740
  });
3755
3741
  }
@@ -3786,9 +3772,6 @@ export function isGUID(annotations) {
3786
3772
  id: "effect/schema/isGUID",
3787
3773
  payload: null
3788
3774
  },
3789
- toCode: () => ({
3790
- runtime: "Schema.isGUID()"
3791
- }),
3792
3775
  ...annotations
3793
3776
  });
3794
3777
  }
@@ -3822,9 +3805,6 @@ export function isULID(annotations) {
3822
3805
  id: "effect/schema/isULID",
3823
3806
  payload: null
3824
3807
  },
3825
- toCode: () => ({
3826
- runtime: "Schema.isULID()"
3827
- }),
3828
3808
  ...annotations
3829
3809
  });
3830
3810
  }
@@ -3865,9 +3845,6 @@ export function isAscii(annotations) {
3865
3845
  id: "effect/schema/isAscii",
3866
3846
  payload: null
3867
3847
  },
3868
- toCode: () => ({
3869
- runtime: "Schema.isAscii()"
3870
- }),
3871
3848
  ...annotations
3872
3849
  });
3873
3850
  }
@@ -3909,9 +3886,6 @@ export function isBase64(annotations) {
3909
3886
  flags: ""
3910
3887
  }]
3911
3888
  },
3912
- toCode: () => ({
3913
- runtime: "Schema.isBase64()"
3914
- }),
3915
3889
  ...annotations
3916
3890
  });
3917
3891
  }
@@ -3954,9 +3928,6 @@ export function isBase64Url(annotations) {
3954
3928
  flags: ""
3955
3929
  }]
3956
3930
  },
3957
- toCode: () => ({
3958
- runtime: "Schema.isBase64Url()"
3959
- }),
3960
3931
  ...annotations
3961
3932
  });
3962
3933
  }
@@ -3993,9 +3964,6 @@ export function isStartingWith(startsWith, annotations) {
3993
3964
  }
3994
3965
  },
3995
3966
  toJsonSchema: () => literalToJsonSchema(jsonSchemaLiteral, startsWith, `^${RegExp_.escape(jsonSchemaLiteral)}`),
3996
- toCode: () => ({
3997
- runtime: `Schema.isStartingWith(${format(startsWith)})`
3998
- }),
3999
3967
  arbitraryConstraint: {
4000
3968
  patterns: [{
4001
3969
  source: regExp.source,
@@ -4031,9 +3999,6 @@ export function isEndingWith(endsWith, annotations) {
4031
3999
  }
4032
4000
  },
4033
4001
  toJsonSchema: () => literalToJsonSchema(jsonSchemaLiteral, endsWith, `${RegExp_.escape(jsonSchemaLiteral)}$`),
4034
- toCode: () => ({
4035
- runtime: `Schema.isEndingWith(${format(endsWith)})`
4036
- }),
4037
4002
  arbitraryConstraint: {
4038
4003
  patterns: [{
4039
4004
  source: regExp.source,
@@ -4070,9 +4035,6 @@ export function isIncluding(includes, annotations) {
4070
4035
  }
4071
4036
  },
4072
4037
  toJsonSchema: () => literalToJsonSchema(jsonSchemaLiteral, includes, RegExp_.escape(jsonSchemaLiteral)),
4073
- toCode: () => ({
4074
- runtime: `Schema.isIncluding(${format(includes)})`
4075
- }),
4076
4038
  arbitraryConstraint: {
4077
4039
  patterns: [{
4078
4040
  source: regExp.source,
@@ -4107,9 +4069,6 @@ export function isUppercased(annotations) {
4107
4069
  toJsonSchema: () => [{
4108
4070
  pattern: regExp.source
4109
4071
  }, true],
4110
- toCode: () => ({
4111
- runtime: "Schema.isUppercased()"
4112
- }),
4113
4072
  arbitraryConstraint: {
4114
4073
  patterns: [{
4115
4074
  source: UPPERCASED_PATTERN,
@@ -4144,9 +4103,6 @@ export function isLowercased(annotations) {
4144
4103
  toJsonSchema: () => [{
4145
4104
  pattern: regExp.source
4146
4105
  }, true],
4147
- toCode: () => ({
4148
- runtime: "Schema.isLowercased()"
4149
- }),
4150
4106
  arbitraryConstraint: {
4151
4107
  patterns: [{
4152
4108
  source: LOWERCASED_PATTERN,
@@ -4183,9 +4139,6 @@ export function isCapitalized(annotations) {
4183
4139
  toJsonSchema: () => [{
4184
4140
  pattern: CAPITALIZED_PATTERN
4185
4141
  }, true],
4186
- toCode: () => ({
4187
- runtime: "Schema.isCapitalized()"
4188
- }),
4189
4142
  arbitraryConstraint: {
4190
4143
  patterns: [{
4191
4144
  source: CAPITALIZED_PATTERN,
@@ -4222,9 +4175,6 @@ export function isUncapitalized(annotations) {
4222
4175
  toJsonSchema: () => [{
4223
4176
  pattern: UNCAPITALIZED_PATTERN
4224
4177
  }, true],
4225
- toCode: () => ({
4226
- runtime: "Schema.isUncapitalized()"
4227
- }),
4228
4178
  arbitraryConstraint: {
4229
4179
  patterns: [{
4230
4180
  source: UNCAPITALIZED_PATTERN,
@@ -4444,9 +4394,6 @@ export const isGreaterThan = /*#__PURE__*/makeIsGreaterThan({
4444
4394
  },
4445
4395
  toJsonSchema: () => ({
4446
4396
  exclusiveMinimum
4447
- }),
4448
- toCode: () => ({
4449
- runtime: `Schema.isGreaterThan(${format(exclusiveMinimum)})`
4450
4397
  })
4451
4398
  })
4452
4399
  });
@@ -4480,9 +4427,6 @@ export const isGreaterThanOrEqualTo = /*#__PURE__*/makeIsGreaterThanOrEqualTo({
4480
4427
  },
4481
4428
  toJsonSchema: () => ({
4482
4429
  minimum
4483
- }),
4484
- toCode: () => ({
4485
- runtime: `Schema.isGreaterThanOrEqualTo(${format(minimum)})`
4486
4430
  })
4487
4431
  })
4488
4432
  });
@@ -4516,9 +4460,6 @@ export const isLessThan = /*#__PURE__*/makeIsLessThan({
4516
4460
  },
4517
4461
  toJsonSchema: () => ({
4518
4462
  exclusiveMaximum
4519
- }),
4520
- toCode: () => ({
4521
- runtime: `Schema.isLessThan(${format(exclusiveMaximum)})`
4522
4463
  })
4523
4464
  })
4524
4465
  });
@@ -4552,9 +4493,6 @@ export const isLessThanOrEqualTo = /*#__PURE__*/makeIsLessThanOrEqualTo({
4552
4493
  },
4553
4494
  toJsonSchema: () => ({
4554
4495
  maximum
4555
- }),
4556
- toCode: () => ({
4557
- runtime: `Schema.isLessThanOrEqualTo(${format(maximum)})`
4558
4496
  })
4559
4497
  })
4560
4498
  });
@@ -4603,9 +4541,6 @@ export const isBetween = /*#__PURE__*/makeIsBetween({
4603
4541
  toJsonSchema: () => ({
4604
4542
  [exclusiveMinimum ? "exclusiveMinimum" : "minimum"]: options.minimum,
4605
4543
  [exclusiveMaximum ? "exclusiveMaximum" : "maximum"]: options.maximum
4606
- }),
4607
- toCode: () => ({
4608
- runtime: `Schema.isBetween({ minimum: ${format(options.minimum)}, maximum: ${format(options.maximum)}, exclusiveMinimum: ${format(exclusiveMinimum)}, exclusiveMaximum: ${format(exclusiveMaximum)} })`
4609
4544
  })
4610
4545
  };
4611
4546
  }
@@ -4645,9 +4580,6 @@ export function isMultipleOf(divisor, annotations) {
4645
4580
  toJsonSchema: () => ({
4646
4581
  multipleOf: divisor
4647
4582
  }),
4648
- toCode: () => ({
4649
- runtime: `Schema.isMultipleOf(${format(divisor)})`
4650
- }),
4651
4583
  ...annotations
4652
4584
  });
4653
4585
  }
@@ -4682,9 +4614,6 @@ export function isInt(annotations) {
4682
4614
  minimum: globalThis.Number.MIN_SAFE_INTEGER,
4683
4615
  maximum: globalThis.Number.MAX_SAFE_INTEGER
4684
4616
  }),
4685
- toCode: () => ({
4686
- runtime: "Schema.isInt()"
4687
- }),
4688
4617
  arbitraryConstraint: {
4689
4618
  number: "integer"
4690
4619
  },
@@ -4777,9 +4706,6 @@ function encodeDatePayload(date) {
4777
4706
  }
4778
4707
  return date.toISOString();
4779
4708
  }
4780
- function formatDateRuntime(date) {
4781
- return `new globalThis.Date(${format(date.getTime())})`;
4782
- }
4783
4709
  /**
4784
4710
  * Validates that a Date is greater than the specified value (exclusive).
4785
4711
  *
@@ -4804,10 +4730,7 @@ export const isGreaterThanDate = /*#__PURE__*/makeIsGreaterThan({
4804
4730
  exclusiveMinimum: encoded
4805
4731
  }
4806
4732
  },
4807
- toJsonSchema: () => [{}, true],
4808
- toCode: () => ({
4809
- runtime: `Schema.isGreaterThanDate(${formatDateRuntime(exclusiveMinimum)})`
4810
- })
4733
+ toJsonSchema: () => [{}, true]
4811
4734
  };
4812
4735
  }
4813
4736
  });
@@ -4841,10 +4764,7 @@ export const isGreaterThanOrEqualToDate = /*#__PURE__*/makeIsGreaterThanOrEqualT
4841
4764
  minimum: encoded
4842
4765
  }
4843
4766
  },
4844
- toJsonSchema: () => [{}, true],
4845
- toCode: () => ({
4846
- runtime: `Schema.isGreaterThanOrEqualToDate(${formatDateRuntime(minimum)})`
4847
- })
4767
+ toJsonSchema: () => [{}, true]
4848
4768
  };
4849
4769
  }
4850
4770
  });
@@ -4872,10 +4792,7 @@ export const isLessThanDate = /*#__PURE__*/makeIsLessThan({
4872
4792
  exclusiveMaximum: encoded
4873
4793
  }
4874
4794
  },
4875
- toJsonSchema: () => [{}, true],
4876
- toCode: () => ({
4877
- runtime: `Schema.isLessThanDate(${formatDateRuntime(exclusiveMaximum)})`
4878
- })
4795
+ toJsonSchema: () => [{}, true]
4879
4796
  };
4880
4797
  }
4881
4798
  });
@@ -4909,10 +4826,7 @@ export const isLessThanOrEqualToDate = /*#__PURE__*/makeIsLessThanOrEqualTo({
4909
4826
  maximum: encoded
4910
4827
  }
4911
4828
  },
4912
- toJsonSchema: () => [{}, true],
4913
- toCode: () => ({
4914
- runtime: `Schema.isLessThanOrEqualToDate(${formatDateRuntime(maximum)})`
4915
- })
4829
+ toJsonSchema: () => [{}, true]
4916
4830
  };
4917
4831
  }
4918
4832
  });
@@ -4955,10 +4869,7 @@ export const isBetweenDate = /*#__PURE__*/makeIsBetween({
4955
4869
  id: "effect/schema/isBetweenDate",
4956
4870
  payload
4957
4871
  },
4958
- toJsonSchema: () => [{}, true],
4959
- toCode: () => ({
4960
- runtime: `Schema.isBetweenDate({ minimum: ${formatDateRuntime(options.minimum)}, maximum: ${formatDateRuntime(options.maximum)}, exclusiveMinimum: ${format(exclusiveMinimum)}, exclusiveMaximum: ${format(exclusiveMaximum)} })`
4961
- })
4872
+ toJsonSchema: () => [{}, true]
4962
4873
  };
4963
4874
  }
4964
4875
  });
@@ -4986,10 +4897,7 @@ export const isGreaterThanBigInt = /*#__PURE__*/makeIsGreaterThan({
4986
4897
  exclusiveMinimum: encoded
4987
4898
  }
4988
4899
  },
4989
- toJsonSchema: () => [{}, true],
4990
- toCode: () => ({
4991
- runtime: `Schema.isGreaterThanBigInt(${format(exclusiveMinimum)})`
4992
- })
4900
+ toJsonSchema: () => [{}, true]
4993
4901
  };
4994
4902
  }
4995
4903
  });
@@ -5018,10 +4926,7 @@ export const isGreaterThanOrEqualToBigInt = /*#__PURE__*/makeIsGreaterThanOrEqua
5018
4926
  minimum: encoded
5019
4927
  }
5020
4928
  },
5021
- toJsonSchema: () => [{}, true],
5022
- toCode: () => ({
5023
- runtime: `Schema.isGreaterThanOrEqualToBigInt(${format(minimum)})`
5024
- })
4929
+ toJsonSchema: () => [{}, true]
5025
4930
  };
5026
4931
  }
5027
4932
  });
@@ -5049,10 +4954,7 @@ export const isLessThanBigInt = /*#__PURE__*/makeIsLessThan({
5049
4954
  exclusiveMaximum: encoded
5050
4955
  }
5051
4956
  },
5052
- toJsonSchema: () => [{}, true],
5053
- toCode: () => ({
5054
- runtime: `Schema.isLessThanBigInt(${format(exclusiveMaximum)})`
5055
- })
4957
+ toJsonSchema: () => [{}, true]
5056
4958
  };
5057
4959
  }
5058
4960
  });
@@ -5081,10 +4983,7 @@ export const isLessThanOrEqualToBigInt = /*#__PURE__*/makeIsLessThanOrEqualTo({
5081
4983
  maximum: encoded
5082
4984
  }
5083
4985
  },
5084
- toJsonSchema: () => [{}, true],
5085
- toCode: () => ({
5086
- runtime: `Schema.isLessThanOrEqualToBigInt(${format(maximum)})`
5087
- })
4986
+ toJsonSchema: () => [{}, true]
5088
4987
  };
5089
4988
  }
5090
4989
  });
@@ -5122,10 +5021,7 @@ export const isBetweenBigInt = /*#__PURE__*/makeIsBetween({
5122
5021
  id: "effect/schema/isBetweenBigInt",
5123
5022
  payload
5124
5023
  },
5125
- toJsonSchema: () => [{}, true],
5126
- toCode: () => ({
5127
- runtime: `Schema.isBetweenBigInt({ minimum: ${format(options.minimum)}, maximum: ${format(options.maximum)}, exclusiveMinimum: ${format(exclusiveMinimum)}, exclusiveMaximum: ${format(exclusiveMaximum)} })`
5128
- })
5024
+ toJsonSchema: () => [{}, true]
5129
5025
  };
5130
5026
  }
5131
5027
  });
@@ -5189,9 +5085,6 @@ function makeIsMinLength(minLength, minCodePoints, annotations) {
5189
5085
  minLength: minCodePoints,
5190
5086
  minItems: minLength
5191
5087
  }, true] : [{}, true],
5192
- toCode: () => ({
5193
- runtime: `Schema.isMinLength(${minLength})`
5194
- }),
5195
5088
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5196
5089
  arbitraryConstraint: {
5197
5090
  minLength
@@ -5267,9 +5160,6 @@ export function isMaxLength(maxLength, annotations) {
5267
5160
  maxLength,
5268
5161
  maxItems: maxLength
5269
5162
  }, true] : [{}, true],
5270
- toCode: () => ({
5271
- runtime: `Schema.isMaxLength(${maxLength})`
5272
- }),
5273
5163
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5274
5164
  arbitraryConstraint: {
5275
5165
  maxLength
@@ -5330,9 +5220,6 @@ export function isBetweenLength(minimum, maximum, annotations) {
5330
5220
  minItems: minimum,
5331
5221
  maxItems: maximum
5332
5222
  }, true] : [{}, true],
5333
- toCode: () => ({
5334
- runtime: `Schema.isBetweenLength(${minimum}, ${maximum})`
5335
- }),
5336
5223
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5337
5224
  arbitraryConstraint: {
5338
5225
  minLength: minimum,
@@ -5376,9 +5263,6 @@ export function isMinCodePoints(minCodePoints, annotations) {
5376
5263
  toJsonSchema: () => ({
5377
5264
  minLength: minCodePoints
5378
5265
  }),
5379
- toCode: () => ({
5380
- runtime: `Schema.isMinCodePoints(${minCodePoints})`
5381
- }),
5382
5266
  arbitraryConstraint: {
5383
5267
  minCodePoints
5384
5268
  },
@@ -5420,9 +5304,6 @@ export function isMaxCodePoints(maxCodePoints, annotations) {
5420
5304
  toJsonSchema: () => ({
5421
5305
  maxLength: maxCodePoints
5422
5306
  }),
5423
- toCode: () => ({
5424
- runtime: `Schema.isMaxCodePoints(${maxCodePoints})`
5425
- }),
5426
5307
  arbitraryConstraint: {
5427
5308
  maxCodePoints
5428
5309
  },
@@ -5473,9 +5354,6 @@ export function isBetweenCodePoints(minimum, maximum, annotations) {
5473
5354
  maxLength: maximum
5474
5355
  }]
5475
5356
  }),
5476
- toCode: () => ({
5477
- runtime: `Schema.isBetweenCodePoints(${minimum}, ${maximum})`
5478
- }),
5479
5357
  arbitraryConstraint: {
5480
5358
  minCodePoints: minimum,
5481
5359
  maxCodePoints: maximum
@@ -5529,9 +5407,6 @@ export function isMinSize(minSize, annotations) {
5529
5407
  }
5530
5408
  },
5531
5409
  toJsonSchema: () => [{}, true],
5532
- toCode: () => ({
5533
- runtime: `Schema.isMinSize(${minSize})`
5534
- }),
5535
5410
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5536
5411
  arbitraryConstraint: {
5537
5412
  minSize
@@ -5571,9 +5446,6 @@ export function isMaxSize(maxSize, annotations) {
5571
5446
  }
5572
5447
  },
5573
5448
  toJsonSchema: () => [{}, true],
5574
- toCode: () => ({
5575
- runtime: `Schema.isMaxSize(${maxSize})`
5576
- }),
5577
5449
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5578
5450
  arbitraryConstraint: {
5579
5451
  maxSize
@@ -5615,9 +5487,6 @@ export function isBetweenSize(minimum, maximum, annotations) {
5615
5487
  }
5616
5488
  },
5617
5489
  toJsonSchema: () => [{}, true],
5618
- toCode: () => ({
5619
- runtime: `Schema.isBetweenSize(${minimum}, ${maximum})`
5620
- }),
5621
5490
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5622
5491
  arbitraryConstraint: {
5623
5492
  minSize: minimum,
@@ -5628,8 +5497,7 @@ export function isBetweenSize(minimum, maximum, annotations) {
5628
5497
  }
5629
5498
  /**
5630
5499
  * Validates that an object contains at least the specified number of
5631
- * properties. This includes both string and symbol keys when counting
5632
- * properties.
5500
+ * own enumerable properties, including both string and symbol keys.
5633
5501
  *
5634
5502
  * **Details**
5635
5503
  *
@@ -5652,7 +5520,7 @@ export function isBetweenSize(minimum, maximum, annotations) {
5652
5520
  */
5653
5521
  export function isMinProperties(minProperties, annotations) {
5654
5522
  minProperties = normalizeCardinality(minProperties);
5655
- return makeFilter(input => Reflect.ownKeys(input).length >= minProperties, {
5523
+ return makeFilter(input => InternalRecord.ownEnumerableKeys(input).length >= minProperties, {
5656
5524
  expected: `a value with at least ${minProperties === 1 ? "1 entry" : `${minProperties} entries`}`,
5657
5525
  representation: {
5658
5526
  id: "effect/schema/isMinProperties",
@@ -5667,9 +5535,6 @@ export function isMinProperties(minProperties, annotations) {
5667
5535
  } : [{
5668
5536
  minProperties
5669
5537
  }, true],
5670
- toCode: () => ({
5671
- runtime: `Schema.isMinProperties(${minProperties})`
5672
- }),
5673
5538
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5674
5539
  arbitraryConstraint: {
5675
5540
  minProperties
@@ -5678,8 +5543,8 @@ export function isMinProperties(minProperties, annotations) {
5678
5543
  });
5679
5544
  }
5680
5545
  /**
5681
- * Validates that an object contains at most the specified number of properties.
5682
- * This includes both string and symbol keys when counting properties.
5546
+ * Validates that an object contains at most the specified number of own
5547
+ * enumerable properties, including both string and symbol keys.
5683
5548
  *
5684
5549
  * **Details**
5685
5550
  *
@@ -5702,7 +5567,7 @@ export function isMinProperties(minProperties, annotations) {
5702
5567
  */
5703
5568
  export function isMaxProperties(maxProperties, annotations) {
5704
5569
  maxProperties = normalizeCardinality(maxProperties);
5705
- return makeFilter(input => Reflect.ownKeys(input).length <= maxProperties, {
5570
+ return makeFilter(input => InternalRecord.ownEnumerableKeys(input).length <= maxProperties, {
5706
5571
  expected: `a value with at most ${maxProperties === 1 ? "1 entry" : `${maxProperties} entries`}`,
5707
5572
  representation: {
5708
5573
  id: "effect/schema/isMaxProperties",
@@ -5717,9 +5582,6 @@ export function isMaxProperties(maxProperties, annotations) {
5717
5582
  } : [{
5718
5583
  maxProperties
5719
5584
  }, true],
5720
- toCode: () => ({
5721
- runtime: `Schema.isMaxProperties(${maxProperties})`
5722
- }),
5723
5585
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5724
5586
  arbitraryConstraint: {
5725
5587
  maxProperties
@@ -5728,8 +5590,8 @@ export function isMaxProperties(maxProperties, annotations) {
5728
5590
  });
5729
5591
  }
5730
5592
  /**
5731
- * Validates that an object contains between `minimum` and `maximum` properties (inclusive).
5732
- * This includes both string and symbol keys when counting properties.
5593
+ * Validates that an object contains between `minimum` and `maximum` own
5594
+ * enumerable properties (inclusive), including both string and symbol keys.
5733
5595
  *
5734
5596
  * **Details**
5735
5597
  *
@@ -5753,7 +5615,10 @@ export function isMaxProperties(maxProperties, annotations) {
5753
5615
  export function isBetweenProperties(minimum, maximum, annotations) {
5754
5616
  minimum = normalizeCardinality(minimum);
5755
5617
  maximum = normalizeCardinality(maximum);
5756
- return makeFilter(input => Reflect.ownKeys(input).length >= minimum && Reflect.ownKeys(input).length <= maximum, {
5618
+ return makeFilter(input => {
5619
+ const size = InternalRecord.ownEnumerableKeys(input).length;
5620
+ return size >= minimum && size <= maximum;
5621
+ }, {
5757
5622
  expected: minimum === maximum ? `a value with exactly ${minimum === 1 ? "1 entry" : `${minimum} entries`}` : `a value with between ${minimum} and ${maximum} entries`,
5758
5623
  representation: {
5759
5624
  id: "effect/schema/isBetweenProperties",
@@ -5771,9 +5636,6 @@ export function isBetweenProperties(minimum, maximum, annotations) {
5771
5636
  minProperties: minimum,
5772
5637
  maxProperties: maximum
5773
5638
  }, true],
5774
- toCode: () => ({
5775
- runtime: `Schema.isBetweenProperties(${minimum}, ${maximum})`
5776
- }),
5777
5639
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5778
5640
  arbitraryConstraint: {
5779
5641
  minProperties: minimum,
@@ -5783,13 +5645,13 @@ export function isBetweenProperties(minimum, maximum, annotations) {
5783
5645
  });
5784
5646
  }
5785
5647
  /**
5786
- * Validates that every own property key of an object satisfies the encoded side
5648
+ * Validates that every own enumerable property key of an object satisfies the encoded side
5787
5649
  * of the provided key schema.
5788
5650
  *
5789
5651
  * **Details**
5790
5652
  *
5791
- * This check uses `Reflect.ownKeys`, so symbol keys are validated in addition to
5792
- * string property names.
5653
+ * Checks both string and symbol keys. Non-enumerable and inherited properties
5654
+ * are ignored.
5793
5655
  *
5794
5656
  * JSON Schema:
5795
5657
  * This check corresponds to `propertyNames` in JSON Schema. Effect checks the
@@ -5805,7 +5667,7 @@ export function isPropertyNames(keySchema, annotations) {
5805
5667
  const propertyNames = toEncoded(keySchema);
5806
5668
  const parser = SchemaParser._issue(propertyNames.ast);
5807
5669
  return makeFilter((input, ast, options) => {
5808
- const keys = Reflect.ownKeys(input);
5670
+ const keys = InternalRecord.ownEnumerableKeys(input);
5809
5671
  const issues = [];
5810
5672
  for (const key of keys) {
5811
5673
  const issue = parser(key, options);
@@ -5833,11 +5695,6 @@ export function isPropertyNames(keySchema, annotations) {
5833
5695
  } : [{
5834
5696
  propertyNames: schemas[0]
5835
5697
  }, true],
5836
- toCode: ({
5837
- schemas
5838
- }) => ({
5839
- runtime: `Schema.isPropertyNames(${schemas[0].runtime})`
5840
- }),
5841
5698
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5842
5699
  ...annotations
5843
5700
  });
@@ -5868,9 +5725,6 @@ export function isUnique(annotations) {
5868
5725
  toJsonSchema: () => ({
5869
5726
  uniqueItems: true
5870
5727
  }),
5871
- toCode: () => ({
5872
- runtime: "Schema.isUnique()"
5873
- }),
5874
5728
  arbitraryConstraint: {
5875
5729
  uniqueBy: identity
5876
5730
  },
@@ -5900,9 +5754,6 @@ export function isUniqueKey(annotations) {
5900
5754
  id: "effect/schema/isUniqueKey",
5901
5755
  payload: null
5902
5756
  },
5903
- toCode: () => ({
5904
- runtime: "Schema.isUniqueKey()"
5905
- }),
5906
5757
  arbitraryConstraint: {
5907
5758
  uniqueBy: entry => entry[0]
5908
5759
  },
@@ -5988,10 +5839,6 @@ export function ErrorInstance(options) {
5988
5839
  id: "effect/schema/Error",
5989
5840
  payload: normalizedOptions ?? null
5990
5841
  },
5991
- toCode: () => ({
5992
- runtime: normalizedOptions !== undefined ? `Schema.ErrorInstance(${format(normalizedOptions)})` : `Schema.ErrorInstance()`,
5993
- Type: `globalThis.Error`
5994
- }),
5995
5842
  expected: "Error",
5996
5843
  toCodecJson: () => link()(JsonError, SchemaTransformation.errorFromJsonError(normalizedOptions))
5997
5844
  });
@@ -6076,12 +5923,6 @@ export function ReadonlyMap(key, value) {
6076
5923
  id: "effect/schema/ReadonlyMap",
6077
5924
  payload: null
6078
5925
  },
6079
- toCode: ({
6080
- typeParameters
6081
- }) => ({
6082
- runtime: `Schema.ReadonlyMap(${typeParameters[0].runtime}, ${typeParameters[1].runtime})`,
6083
- Type: `globalThis.ReadonlyMap<${typeParameters[0].Type}, ${typeParameters[1].Type}>`
6084
- }),
6085
5926
  expected: "ReadonlyMap",
6086
5927
  toCodec: ([key, value]) => link()(ArraySchema(Tuple([key, value])), SchemaTransformation.transform({
6087
5928
  decode: entries => new globalThis.Map(entries),
@@ -6117,12 +5958,6 @@ export function ReadonlySet(value) {
6117
5958
  id: "effect/schema/ReadonlySet",
6118
5959
  payload: null
6119
5960
  },
6120
- toCode: ({
6121
- typeParameters
6122
- }) => ({
6123
- runtime: `Schema.ReadonlySet(${typeParameters[0].runtime})`,
6124
- Type: `globalThis.ReadonlySet<${typeParameters[0].Type}>`
6125
- }),
6126
5961
  expected: "ReadonlySet",
6127
5962
  toCodec: ([value]) => link()(ArraySchema(value), SchemaTransformation.transform({
6128
5963
  decode: values => new globalThis.Set(values),
@@ -6149,10 +5984,6 @@ export const RegExp = /*#__PURE__*/instanceOf(globalThis.RegExp, {
6149
5984
  id: "effect/schema/RegExp",
6150
5985
  payload: null
6151
5986
  },
6152
- toCode: () => ({
6153
- runtime: `Schema.RegExp`,
6154
- Type: `globalThis.RegExp`
6155
- }),
6156
5987
  expected: "RegExp",
6157
5988
  toCodecJson: () => link()(Struct({
6158
5989
  source: String,
@@ -6191,10 +6022,6 @@ export const URL = /*#__PURE__*/instanceOf(globalThis.URL, {
6191
6022
  id: "effect/schema/URL",
6192
6023
  payload: null
6193
6024
  },
6194
- toCode: () => ({
6195
- runtime: `Schema.URL`,
6196
- Type: `globalThis.URL`
6197
- }),
6198
6025
  expected: "URL",
6199
6026
  toCodecJson: () => link()(URLString, SchemaTransformation.urlFromString)
6200
6027
  });
@@ -6251,10 +6078,6 @@ export const Date = /*#__PURE__*/declare(input => input instanceof globalThis.Da
6251
6078
  id: "effect/schema/Date",
6252
6079
  payload: null
6253
6080
  },
6254
- toCode: () => ({
6255
- runtime: `Schema.Date`,
6256
- Type: `globalThis.Date`
6257
- }),
6258
6081
  expected: "a valid Date",
6259
6082
  toCodecJson: () => link()(DateString, SchemaTransformation.dateFromString)
6260
6083
  });
@@ -6370,10 +6193,6 @@ export const File = /*#__PURE__*/instanceOf(globalThis.File, {
6370
6193
  id: "effect/schema/File",
6371
6194
  payload: null
6372
6195
  },
6373
- toCode: () => ({
6374
- runtime: `Schema.File`,
6375
- Type: `globalThis.File`
6376
- }),
6377
6196
  expected: "File",
6378
6197
  toCodecJson: () => link()(Struct({
6379
6198
  data: String.check(isBase64()),
@@ -6428,10 +6247,6 @@ export const FormData = /*#__PURE__*/declare(u => u instanceof globalThis.FormDa
6428
6247
  id: "effect/schema/FormData",
6429
6248
  payload: null
6430
6249
  },
6431
- toCode: () => ({
6432
- runtime: `Schema.FormData`,
6433
- Type: `globalThis.FormData`
6434
- }),
6435
6250
  expected: "FormData",
6436
6251
  toCodecJson: () => link()(ArraySchema(Tuple([String, Union([Struct({
6437
6252
  _tag: tag("String"),
@@ -6566,10 +6381,6 @@ export const URLSearchParams = /*#__PURE__*/instanceOf(globalThis.URLSearchParam
6566
6381
  id: "effect/schema/URLSearchParams",
6567
6382
  payload: null
6568
6383
  },
6569
- toCode: () => ({
6570
- runtime: `Schema.URLSearchParams`,
6571
- Type: `globalThis.URLSearchParams`
6572
- }),
6573
6384
  expected: "URLSearchParams",
6574
6385
  toCodecJson: () => link()(String.annotate({
6575
6386
  expected: "a query string that will be decoded as URLSearchParams"
@@ -6671,7 +6482,7 @@ export function fromURLSearchParams(schema) {
6671
6482
  * numbers.
6672
6483
  *
6673
6484
  * Encoding:
6674
- * A number is encoded as a `string`.
6485
+ * A number is encoded as a `string`, preserving negative zero as `"-0"`.
6675
6486
  *
6676
6487
  * @stability stable
6677
6488
  * @category schemas
@@ -6690,7 +6501,7 @@ export const NumberFromString = /*#__PURE__*/String.annotate({
6690
6501
  * `-Infinity` values.
6691
6502
  *
6692
6503
  * Encoding:
6693
- * - A finite number is encoded as a `string`.
6504
+ * - A finite number is encoded as a `string`, preserving negative zero as `"-0"`.
6694
6505
  *
6695
6506
  * @stability stable
6696
6507
  * @category schemas
@@ -6765,6 +6576,7 @@ export const Trim = /*#__PURE__*/String.annotate({
6765
6576
  *
6766
6577
  * Encoding:
6767
6578
  * - A `string` is encoded as a base64-encoded string.
6579
+ * - Encoding fails if the string contains an unpaired UTF-16 surrogate.
6768
6580
  *
6769
6581
  * @stability stable
6770
6582
  * @category schemas
@@ -6783,6 +6595,7 @@ export const StringFromBase64 = /*#__PURE__*/String.annotate({
6783
6595
  *
6784
6596
  * Encoding:
6785
6597
  * - A `string` is encoded as a base64 (URL) encoded string.
6598
+ * - Encoding fails if the string contains an unpaired UTF-16 surrogate.
6786
6599
  *
6787
6600
  * @stability stable
6788
6601
  * @category schemas
@@ -6801,6 +6614,7 @@ export const StringFromBase64Url = /*#__PURE__*/String.annotate({
6801
6614
  *
6802
6615
  * Encoding:
6803
6616
  * - A `string` is encoded as a hex string.
6617
+ * - Encoding fails if the string contains an unpaired UTF-16 surrogate.
6804
6618
  *
6805
6619
  * @stability stable
6806
6620
  * @category schemas
@@ -6820,6 +6634,7 @@ export const StringFromHex = /*#__PURE__*/String.annotate({
6820
6634
  *
6821
6635
  * Encoding:
6822
6636
  * - A `string` is encoded as a URI component encoded string.
6637
+ * - Encoding fails if the string contains an unpaired UTF-16 surrogate.
6823
6638
  *
6824
6639
  * **Example** (Decoding URI component strings)
6825
6640
  *
@@ -6921,10 +6736,6 @@ export const Uint8Array = /*#__PURE__*/instanceOf(globalThis.Uint8Array, {
6921
6736
  id: "effect/schema/Uint8Array",
6922
6737
  payload: null
6923
6738
  },
6924
- toCode: () => ({
6925
- runtime: `Schema.Uint8Array`,
6926
- Type: `globalThis.Uint8Array`
6927
- }),
6928
6739
  expected: "Uint8Array",
6929
6740
  toCodecJson: () => link()(Base64String, SchemaTransformation.uint8ArrayFromBase64String)
6930
6741
  });
@@ -7091,11 +6902,6 @@ export const BigDecimal = /*#__PURE__*/declare(BigDecimal_.isBigDecimal, {
7091
6902
  id: "effect/schema/BigDecimal",
7092
6903
  payload: null
7093
6904
  },
7094
- toCode: () => ({
7095
- runtime: `Schema.BigDecimal`,
7096
- Type: `BigDecimal.BigDecimal`,
7097
- importDeclarations: [`import * as BigDecimal from "effect/BigDecimal"`]
7098
- }),
7099
6905
  expected: "BigDecimal",
7100
6906
  toCodecJson: () => link()(BigDecimalString, bigDecimalFromString),
7101
6907
  toFormatter: () => bd => BigDecimal_.format(bd)
@@ -7164,11 +6970,6 @@ export const Rational = /*#__PURE__*/declare(Rational_.isRational, {
7164
6970
  id: "effect/schema/Rational",
7165
6971
  payload: null
7166
6972
  },
7167
- toCode: () => ({
7168
- runtime: `Schema.Rational`,
7169
- Type: `Rational.Rational`,
7170
- importDeclarations: [`import * as Rational from "effect/Rational"`]
7171
- }),
7172
6973
  expected: "Rational",
7173
6974
  toCodecArbitrary: () => linkDecoding()(Struct({
7174
6975
  numerator: BigInt,
@@ -7217,11 +7018,6 @@ export const ByteSize = /*#__PURE__*/declare(ByteSize_.isByteSize, {
7217
7018
  id: "effect/schema/ByteSize",
7218
7019
  payload: null
7219
7020
  },
7220
- toCode: () => ({
7221
- runtime: `Schema.ByteSize`,
7222
- Type: `ByteSize.ByteSize`,
7223
- importDeclarations: [`import * as ByteSize from "effect/ByteSize"`]
7224
- }),
7225
7021
  expected: "ByteSize",
7226
7022
  toCodecJson: () => link()(BigInt.check(isGreaterThanOrEqualToBigInt(globalThis.BigInt(0))), SchemaTransformation.transform({
7227
7023
  decode: ByteSize_.bytes,
@@ -7328,13 +7124,6 @@ export function CauseReason(error, defect) {
7328
7124
  id: "effect/schema/CauseReason",
7329
7125
  payload: null
7330
7126
  },
7331
- toCode: ({
7332
- typeParameters
7333
- }) => ({
7334
- runtime: `Schema.CauseReason(${typeParameters[0].runtime}, ${typeParameters[1].runtime})`,
7335
- Type: `Cause.Failure<${typeParameters[0].Type}, ${typeParameters[1].Type}>`,
7336
- importDeclarations: [`import * as Cause from "effect/Cause"`]
7337
- }),
7338
7127
  expected: "Cause.Failure",
7339
7128
  toCodec: ([error, defect]) => link()(Union([Struct({
7340
7129
  _tag: Literal("Fail"),
@@ -7421,13 +7210,6 @@ export function Cause(error, defect) {
7421
7210
  id: "effect/schema/Cause",
7422
7211
  payload: null
7423
7212
  },
7424
- toCode: ({
7425
- typeParameters
7426
- }) => ({
7427
- runtime: `Schema.Cause(${typeParameters[0].runtime}, ${typeParameters[1].runtime})`,
7428
- Type: `Cause.Cause<${typeParameters[0].Type}, ${typeParameters[1].Type}>`,
7429
- importDeclarations: [`import * as Cause from "effect/Cause"`]
7430
- }),
7431
7213
  expected: "Cause",
7432
7214
  toCodec: ([error, defect]) => link()(ArraySchema(CauseReason(error, defect)), SchemaTransformation.transform({
7433
7215
  decode: Cause_.fromReasons,
@@ -7446,7 +7228,7 @@ export function Cause(error, defect) {
7446
7228
  // -----------------------------------------------------------------------------
7447
7229
  function chunkLink(values) {
7448
7230
  return link()(values, SchemaTransformation.transform({
7449
- decode: Chunk_.fromIterable,
7231
+ decode: Chunk_.fromArrayUnsafe,
7450
7232
  encode: Arr.fromIterable
7451
7233
  }));
7452
7234
  }
@@ -7463,7 +7245,7 @@ export function Chunk(value) {
7463
7245
  return (input, ast, options) => {
7464
7246
  if (Chunk_.isChunk(input)) {
7465
7247
  return Effect.mapBothEager(SchemaParser.decodeUnknownEffect(values)(Arr.fromIterable(input), options), {
7466
- onSuccess: Chunk_.fromIterable,
7248
+ onSuccess: Chunk_.fromArrayUnsafe,
7467
7249
  onFailure: issue => SchemaIssue.makeCompositeAtKey(ast, "values", issue, input, options)
7468
7250
  });
7469
7251
  }
@@ -7474,12 +7256,6 @@ export function Chunk(value) {
7474
7256
  id: "effect/schema/Chunk",
7475
7257
  payload: null
7476
7258
  },
7477
- toCode: ({
7478
- typeParameters
7479
- }) => ({
7480
- runtime: `Schema.Chunk(${typeParameters[0].runtime})`,
7481
- Type: `Chunk.Chunk<${typeParameters[0].Type}>`
7482
- }),
7483
7259
  expected: "Chunk",
7484
7260
  toCodec: ([value]) => chunkLink(ArraySchema(value)),
7485
7261
  toCodecArbitrary: ({
@@ -7601,11 +7377,6 @@ export const DateTimeUtc = /*#__PURE__*/declare(u => DateTime.isDateTime(u) && D
7601
7377
  id: "effect/schema/DateTimeUtc",
7602
7378
  payload: null
7603
7379
  },
7604
- toCode: () => ({
7605
- runtime: `Schema.DateTimeUtc`,
7606
- Type: `DateTime.Utc`,
7607
- importDeclarations: [`import * as DateTime from "effect/DateTime"`]
7608
- }),
7609
7380
  expected: "DateTime.Utc",
7610
7381
  toCodecArbitrary: ({
7611
7382
  constraint
@@ -7748,11 +7519,6 @@ export const TimeZoneOffset = /*#__PURE__*/declare(DateTime.isTimeZoneOffset, {
7748
7519
  id: "effect/schema/TimeZoneOffset",
7749
7520
  payload: null
7750
7521
  },
7751
- toCode: () => ({
7752
- runtime: `Schema.TimeZoneOffset`,
7753
- Type: `DateTime.TimeZone.Offset`,
7754
- importDeclarations: [`import * as DateTime from "effect/DateTime"`]
7755
- }),
7756
7522
  expected: "DateTime.TimeZone.Offset",
7757
7523
  toCodecJson: () => link()(Int, timeZoneOffsetFromNumber),
7758
7524
  toFormatter: () => tz => DateTime.zoneToString(tz)
@@ -7778,11 +7544,6 @@ export const TimeZoneNamed = /*#__PURE__*/declare(DateTime.isTimeZoneNamed, {
7778
7544
  id: "effect/schema/TimeZoneNamed",
7779
7545
  payload: null
7780
7546
  },
7781
- toCode: () => ({
7782
- runtime: `Schema.TimeZoneNamed`,
7783
- Type: `DateTime.TimeZone.Named`,
7784
- importDeclarations: [`import * as DateTime from "effect/DateTime"`]
7785
- }),
7786
7547
  expected: "DateTime.TimeZone.Named",
7787
7548
  toCodecArbitrary: () => linkDecoding()(Literals(arbitraryNamedTimeZones), SchemaGetter.transform(DateTime.zoneMakeNamedUnsafe)),
7788
7549
  toCodecJson: () => link()(TimeZoneNamedString, timeZoneNamedFromString),
@@ -7826,11 +7587,6 @@ export const TimeZone = /*#__PURE__*/declare(DateTime.isTimeZone, {
7826
7587
  id: "effect/schema/TimeZone",
7827
7588
  payload: null
7828
7589
  },
7829
- toCode: () => ({
7830
- runtime: `Schema.TimeZone`,
7831
- Type: `DateTime.TimeZone`,
7832
- importDeclarations: [`import * as DateTime from "effect/DateTime"`]
7833
- }),
7834
7590
  expected: "DateTime.TimeZone",
7835
7591
  toCodecArbitrary: () => linkDecoding()(timeZoneArbitrarySchema(), SchemaGetter.transform(value => typeof value === "number" ? DateTime.zoneMakeOffset(value) : DateTime.zoneMakeNamedUnsafe(value))),
7836
7592
  toCodecJson: () => link()(TimeZoneString, timeZoneFromString),
@@ -7876,11 +7632,6 @@ export const DateTimeZoned = /*#__PURE__*/declare(u => DateTime.isDateTime(u) &&
7876
7632
  id: "effect/schema/DateTimeZoned",
7877
7633
  payload: null
7878
7634
  },
7879
- toCode: () => ({
7880
- runtime: `Schema.DateTimeZoned`,
7881
- Type: `DateTime.Zoned`,
7882
- importDeclarations: [`import * as DateTime from "effect/DateTime"`]
7883
- }),
7884
7635
  expected: "DateTime.Zoned",
7885
7636
  toCodecArbitrary: ({
7886
7637
  constraint
@@ -8574,11 +8325,6 @@ export const Duration = /*#__PURE__*/declare(Duration_.isDuration, {
8574
8325
  id: "effect/schema/Duration",
8575
8326
  payload: null
8576
8327
  },
8577
- toCode: () => ({
8578
- runtime: `Schema.Duration`,
8579
- Type: `Duration.Duration`,
8580
- importDeclarations: [`import * as Duration from "effect/Duration"`]
8581
- }),
8582
8328
  expected: "Duration",
8583
8329
  toCodecJson: () => link()(Union([Struct({
8584
8330
  _tag: Literal("Infinity")
@@ -8941,16 +8687,6 @@ export const DnsRecord = /*#__PURE__*/Union([DnsARecord, DnsAaaaRecord, DnsCaaRe
8941
8687
  identifier: "DnsRecord"
8942
8688
  });
8943
8689
  const cryptoAlgorithmEquals = (self, that) => self === that || self.name === that.name && self.hash?.name === that.hash?.name && self.saltLength === that.saltLength;
8944
- const cryptoDigestCode = hash => `Digest.${hash.name.toLowerCase().replace("-", "")}`;
8945
- const cryptoAlgorithmCode = (family, algorithm) => {
8946
- if (algorithm.modulusLength === undefined || algorithm.hash === undefined || algorithm._tag === undefined) {
8947
- const code = `${family}.${algorithm.name}`;
8948
- return algorithm.hash === undefined ? code : `{ ...${code}, hash: ${cryptoDigestCode(algorithm.hash)} }`;
8949
- }
8950
- const factory = algorithm._tag.charAt(0).toLowerCase() + algorithm._tag.slice(1);
8951
- const saltLength = algorithm.saltLength === undefined ? "" : `, saltLength: ${algorithm.saltLength}`;
8952
- return `${family}.${factory}({ hash: ${cryptoDigestCode(algorithm.hash)}, modulusLength: ${algorithm.modulusLength}${saltLength} })`;
8953
- };
8954
8690
  const cryptoAlgorithmPayload = algorithm => {
8955
8691
  const payload = {
8956
8692
  name: algorithm.name
@@ -8961,7 +8697,6 @@ const cryptoAlgorithmPayload = algorithm => {
8961
8697
  return payload;
8962
8698
  };
8963
8699
  const declareCryptoKey = (name, family, type, is, algorithm) => {
8964
- const code = cryptoAlgorithmCode(family, algorithm);
8965
8700
  const forbidden = SchemaGetter.forbidden(() => `Cannot serialize ${family}.${type} values as JSON, use Schema.${name}FromFormat to read and write keys`);
8966
8701
  return declare(u => is(u) && cryptoAlgorithmEquals(u.algorithm, algorithm), {
8967
8702
  expected: `${family}.${type} for ${algorithm.name}`,
@@ -8969,11 +8704,6 @@ const declareCryptoKey = (name, family, type, is, algorithm) => {
8969
8704
  id: `effect/crypto/${name}`,
8970
8705
  payload: cryptoAlgorithmPayload(algorithm)
8971
8706
  },
8972
- toCode: () => ({
8973
- runtime: `Schema.${name}(${code})`,
8974
- Type: `${family}.${type}`,
8975
- importDeclarations: [`import * as ${family} from "effect/crypto/${family}"`, ...(code.includes("Digest.") ? [`import * as Digest from "effect/crypto/Digest"`] : [])]
8976
- }),
8977
8707
  toCodecJson: () => link()(Unknown, {
8978
8708
  decode: forbidden,
8979
8709
  encode: forbidden
@@ -9540,13 +9270,6 @@ export function Exit(value, error, defect) {
9540
9270
  id: "effect/schema/Exit",
9541
9271
  payload: null
9542
9272
  },
9543
- toCode: ({
9544
- typeParameters
9545
- }) => ({
9546
- runtime: `Schema.Exit(${typeParameters[0].runtime}, ${typeParameters[1].runtime}, ${typeParameters[2].runtime})`,
9547
- Type: `Exit.Exit<${typeParameters[0].Type}, ${typeParameters[1].Type}, ${typeParameters[2].Type}>`,
9548
- importDeclarations: [`import * as Exit from "effect/Exit"`]
9549
- }),
9550
9273
  expected: "Exit",
9551
9274
  toCodec: ([value, error, defect]) => link()(Union([Struct({
9552
9275
  _tag: Literal("Success"),
@@ -9686,13 +9409,6 @@ export function Graph(type, node, edge) {
9686
9409
  id: "effect/schema/Graph",
9687
9410
  payload: type
9688
9411
  },
9689
- toCode: ({
9690
- typeParameters
9691
- }) => ({
9692
- runtime: `Schema.Graph(${format(type)}, ${typeParameters[0].runtime}, ${typeParameters[1].runtime})`,
9693
- Type: `Graph.Graph<${typeParameters[0].Type}, ${typeParameters[1].Type}, ${format(type)}>`,
9694
- importDeclarations: [`import * as Graph from "effect/Graph"`]
9695
- }),
9696
9412
  expected: `an immutable ${type} Graph`,
9697
9413
  toCodec: ([node, edge]) => link()(graphEncodedSchema(type, node, edge), SchemaTransformation.transformEffect({
9698
9414
  decode: graphDecode,
@@ -9742,13 +9458,6 @@ export function HashMap(key, value) {
9742
9458
  id: "effect/schema/HashMap",
9743
9459
  payload: null
9744
9460
  },
9745
- toCode: ({
9746
- typeParameters
9747
- }) => ({
9748
- runtime: `Schema.HashMap(${typeParameters[0].runtime}, ${typeParameters[1].runtime})`,
9749
- Type: `HashMap.HashMap<${typeParameters[0].Type}, ${typeParameters[1].Type}>`,
9750
- importDeclarations: [`import * as HashMap from "effect/HashMap"`]
9751
- }),
9752
9461
  expected: "HashMap",
9753
9462
  toCodec: ([key, value]) => hashMapLink(ArraySchema(Tuple([key, value]))),
9754
9463
  toCodecArbitrary: ({
@@ -9795,12 +9504,6 @@ export function HashSet(value) {
9795
9504
  id: "effect/schema/HashSet",
9796
9505
  payload: null
9797
9506
  },
9798
- toCode: ({
9799
- typeParameters
9800
- }) => ({
9801
- runtime: `Schema.HashSet(${typeParameters[0].runtime})`,
9802
- Type: `HashSet.HashSet<${typeParameters[0].Type}>`
9803
- }),
9804
9507
  expected: "HashSet",
9805
9508
  toCodec: ([value]) => hashSetLink(ArraySchema(value)),
9806
9509
  toCodecArbitrary: ({
@@ -9837,13 +9540,6 @@ export function Option(value) {
9837
9540
  id: "effect/schema/Option",
9838
9541
  payload: null
9839
9542
  },
9840
- toCode: ({
9841
- typeParameters
9842
- }) => ({
9843
- runtime: `Schema.Option(${typeParameters[0].runtime})`,
9844
- Type: `Option.Option<${typeParameters[0].Type}>`,
9845
- importDeclarations: [`import * as Option from "effect/Option"`]
9846
- }),
9847
9543
  expected: "Option",
9848
9544
  toCodec: ([value]) => link()(Union([Struct({
9849
9545
  _tag: Literal("Some"),
@@ -9924,11 +9620,6 @@ export const Cookie = /*#__PURE__*/declare(Cookies_.isCookie, {
9924
9620
  id: "effect/http/Cookie",
9925
9621
  payload: null
9926
9622
  },
9927
- toCode: () => ({
9928
- runtime: "Schema.Cookie",
9929
- Type: "Cookies.Cookie",
9930
- importDeclarations: [`import * as Cookies from "effect/http/Cookies"`]
9931
- }),
9932
9623
  expected: "Cookie"
9933
9624
  });
9934
9625
  /**
@@ -9948,11 +9639,6 @@ export const Cookies = /*#__PURE__*/declare(Cookies_.isCookies, {
9948
9639
  id: "effect/http/Cookies",
9949
9640
  payload: null
9950
9641
  },
9951
- toCode: () => ({
9952
- runtime: "Schema.Cookies",
9953
- Type: "Cookies.Cookies",
9954
- importDeclarations: [`import * as Cookies from "effect/http/Cookies"`]
9955
- }),
9956
9642
  expected: "Cookies",
9957
9643
  toCodecJson: () => link()(ArraySchema(String), SchemaTransformation.transform({
9958
9644
  decode: Cookies_.fromSetCookie,
@@ -9991,11 +9677,6 @@ export const Headers = /*#__PURE__*/declare(Headers_.isHeaders, {
9991
9677
  id: "effect/http/Headers",
9992
9678
  payload: null
9993
9679
  },
9994
- toCode: () => ({
9995
- runtime: "Schema.Headers",
9996
- Type: "Headers.Headers",
9997
- importDeclarations: [`import * as Headers from "effect/http/Headers"`]
9998
- }),
9999
9680
  expected: "Headers",
10000
9681
  toEquivalence: () => Headers_.Equivalence,
10001
9682
  toCodec: () => link()(Record(String, String), SchemaTransformation.transform({
@@ -10063,6 +9744,42 @@ const retryAfterFromString = /*#__PURE__*/SchemaTransformation.transformEffect({
10063
9744
  export const RetryAfterFromString = /*#__PURE__*/String.annotate({
10064
9745
  expected: "a Retry-After header value"
10065
9746
  }).pipe(/*#__PURE__*/decodeTo(RetryAfter, retryAfterFromString));
9747
+ /**
9748
+ * Schema for `Link` header values (RFC 8288), decoded with
9749
+ * `Headers.parseLink` and encoded with `Headers.formatLink`.
9750
+ *
9751
+ * **When to use**
9752
+ *
9753
+ * Use with `HttpClientResponse.schemaHeaders` or HTTP API header schemas
9754
+ * that carry a `Link` header.
9755
+ *
9756
+ * **Details**
9757
+ *
9758
+ * Decoding never fails on a string, because `Headers.parseLink` is lenient.
9759
+ *
9760
+ * **Example** (Decoding a Link header)
9761
+ *
9762
+ * ```ts
9763
+ * import { Schema } from "effect"
9764
+ *
9765
+ * const links = Schema.decodeSync(Schema.LinkHeaderFromString)('</items?page=2>; rel="next"')
9766
+ * // => [{ target: "/items?page=2", rel: ["next"], params: {} }]
9767
+ * ```
9768
+ *
9769
+ * @stability unstable
9770
+ * @category schemas
9771
+ * @since 4.1.6
9772
+ */
9773
+ export const LinkHeaderFromString = /*#__PURE__*/String.annotate({
9774
+ expected: "a Link header value"
9775
+ }).pipe(/*#__PURE__*/decodeTo(/*#__PURE__*/ArraySchema(/*#__PURE__*/Struct({
9776
+ target: String,
9777
+ rel: /*#__PURE__*/ArraySchema(String),
9778
+ params: /*#__PURE__*/Record(String, String)
9779
+ })), /*#__PURE__*/SchemaTransformation.transform({
9780
+ decode: Headers_.parseLink,
9781
+ encode: Headers_.formatLink
9782
+ })));
10066
9783
  /**
10067
9784
  * Schema for HTTP URL parameters.
10068
9785
  *
@@ -10079,11 +9796,6 @@ export const UrlParams = /*#__PURE__*/declare(UrlParams_.isUrlParams, {
10079
9796
  id: "effect/http/UrlParams",
10080
9797
  payload: null
10081
9798
  },
10082
- toCode: () => ({
10083
- runtime: "Schema.UrlParams",
10084
- Type: "UrlParams.UrlParams",
10085
- importDeclarations: [`import * as UrlParams from "effect/http/UrlParams"`]
10086
- }),
10087
9799
  expected: "UrlParams",
10088
9800
  toEquivalence: () => UrlParams_.Equivalence,
10089
9801
  toCodec: () => link()(ArraySchema(Tuple([String, String])), SchemaTransformation.transform({
@@ -10268,13 +9980,6 @@ export function Redacted(value, options) {
10268
9980
  id: "effect/schema/Redacted",
10269
9981
  payload: normalizedOptions ?? null
10270
9982
  },
10271
- toCode: ({
10272
- typeParameters
10273
- }) => ({
10274
- runtime: normalizedOptions !== undefined ? `Schema.Redacted(${typeParameters[0].runtime}, ${format(normalizedOptions)})` : `Schema.Redacted(${typeParameters[0].runtime})`,
10275
- Type: `Redacted.Redacted<${typeParameters[0].Type}>`,
10276
- importDeclarations: [`import * as Redacted from "effect/Redacted"`]
10277
- }),
10278
9983
  expected: "Redacted",
10279
9984
  toCodecJson: ([value]) => link()(value, {
10280
9985
  decode: SchemaGetter.transform(e => Redacted_.make(e, {
@@ -10338,13 +10043,6 @@ export function Result(success, failure) {
10338
10043
  id: "effect/schema/Result",
10339
10044
  payload: null
10340
10045
  },
10341
- toCode: ({
10342
- typeParameters
10343
- }) => ({
10344
- runtime: `Schema.Result(${typeParameters[0].runtime}, ${typeParameters[1].runtime})`,
10345
- Type: `Result.Result<${typeParameters[0].Type}, ${typeParameters[1].Type}>`,
10346
- importDeclarations: [`import * as Result from "effect/Result"`]
10347
- }),
10348
10046
  expected: "Result",
10349
10047
  toCodec: ([success, failure]) => link()(Union([Struct({
10350
10048
  _tag: Literal("Success"),
@@ -10406,11 +10104,6 @@ export const SemVer = /*#__PURE__*/declare(SemVer_.isSemVer, {
10406
10104
  id: "effect/schema/SemVer",
10407
10105
  payload: null
10408
10106
  },
10409
- toCode: () => ({
10410
- runtime: `Schema.SemVer`,
10411
- Type: `SemVer.SemVer`,
10412
- importDeclarations: [`import * as SemVer from "effect/SemVer"`]
10413
- }),
10414
10107
  expected: "SemVer",
10415
10108
  toCodecArbitrary: () => linkDecoding()(Struct({
10416
10109
  ...SemVerCoreArbitrary.fields,
@@ -10455,11 +10148,6 @@ export const SemVerRange = /*#__PURE__*/declare(SemVerRange_.isSemVerRange, {
10455
10148
  id: "effect/schema/SemVerRange",
10456
10149
  payload: null
10457
10150
  },
10458
- toCode: () => ({
10459
- runtime: `Schema.SemVerRange`,
10460
- Type: `SemVerRange.SemVerRange`,
10461
- importDeclarations: [`import * as SemVerRange from "effect/SemVerRange"`]
10462
- }),
10463
10151
  expected: "SemVerRange",
10464
10152
  toCodecArbitrary: () => linkDecoding()(ArraySchema(ArraySchema(Struct({
10465
10153
  operator: Literals(["", "=", "<", "<=", ">", ">=", "~", "^"]),
@@ -11293,12 +10981,7 @@ export function Tree(node) {
11293
10981
  * @category schemas
11294
10982
  * @since 4.0.0
11295
10983
  */
11296
- export const Json = /*#__PURE__*/make(/*#__PURE__*/SchemaAST.annotate(SchemaAST.Json, {
11297
- toCode: () => ({
11298
- runtime: "Schema.Json",
11299
- Type: "Schema.Json"
11300
- })
11301
- }));
10984
+ export const Json = /*#__PURE__*/make(SchemaAST.Json);
11302
10985
  /**
11303
10986
  * Schema for readonly string-keyed records whose values are JSON-compatible.
11304
10987
  *
@@ -11335,12 +11018,7 @@ const JsonError = /*#__PURE__*/Struct({
11335
11018
  * @category schemas
11336
11019
  * @since 4.0.0
11337
11020
  */
11338
- export const MutableJson = /*#__PURE__*/make(/*#__PURE__*/SchemaAST.annotate(SchemaAST.MutableJson, {
11339
- toCode: () => ({
11340
- runtime: "Schema.MutableJson",
11341
- Type: "Schema.MutableJson"
11342
- })
11343
- }));
11021
+ export const MutableJson = /*#__PURE__*/make(SchemaAST.MutableJson);
11344
11022
  /**
11345
11023
  * Resolves the typed annotations from a schema. The term "resolve" (rather
11346
11024
  * than "get") reflects the lookup strategy: if the schema has checks, the