effect 4.0.0-beta.78 → 4.0.0-beta.79

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 (1508) hide show
  1. package/dist/Array.d.ts.map +1 -1
  2. package/dist/Array.js +6 -81
  3. package/dist/Array.js.map +1 -1
  4. package/dist/BigDecimal.d.ts +5 -55
  5. package/dist/BigDecimal.d.ts.map +1 -1
  6. package/dist/BigDecimal.js +5 -55
  7. package/dist/BigDecimal.js.map +1 -1
  8. package/dist/BigInt.d.ts +5 -64
  9. package/dist/BigInt.d.ts.map +1 -1
  10. package/dist/BigInt.js +5 -64
  11. package/dist/BigInt.js.map +1 -1
  12. package/dist/Boolean.d.ts +5 -52
  13. package/dist/Boolean.d.ts.map +1 -1
  14. package/dist/Boolean.js +5 -52
  15. package/dist/Boolean.js.map +1 -1
  16. package/dist/Brand.d.ts.map +1 -1
  17. package/dist/Brand.js +0 -44
  18. package/dist/Brand.js.map +1 -1
  19. package/dist/Cache.d.ts.map +1 -1
  20. package/dist/Cache.js +5 -44
  21. package/dist/Cache.js.map +1 -1
  22. package/dist/Cause.d.ts +6 -72
  23. package/dist/Cause.d.ts.map +1 -1
  24. package/dist/Cause.js +6 -72
  25. package/dist/Cause.js.map +1 -1
  26. package/dist/Channel.d.ts +6 -67
  27. package/dist/Channel.d.ts.map +1 -1
  28. package/dist/Channel.js +6 -67
  29. package/dist/Channel.js.map +1 -1
  30. package/dist/ChannelSchema.d.ts +5 -41
  31. package/dist/ChannelSchema.d.ts.map +1 -1
  32. package/dist/ChannelSchema.js.map +1 -1
  33. package/dist/Chunk.d.ts +6 -67
  34. package/dist/Chunk.d.ts.map +1 -1
  35. package/dist/Chunk.js +6 -67
  36. package/dist/Chunk.js.map +1 -1
  37. package/dist/Clock.d.ts +4 -56
  38. package/dist/Clock.d.ts.map +1 -1
  39. package/dist/Clock.js.map +1 -1
  40. package/dist/Combiner.d.ts +6 -57
  41. package/dist/Combiner.d.ts.map +1 -1
  42. package/dist/Combiner.js.map +1 -1
  43. package/dist/Config.d.ts +5 -69
  44. package/dist/Config.d.ts.map +1 -1
  45. package/dist/Config.js.map +1 -1
  46. package/dist/ConfigProvider.d.ts +6 -75
  47. package/dist/ConfigProvider.d.ts.map +1 -1
  48. package/dist/ConfigProvider.js +6 -75
  49. package/dist/ConfigProvider.js.map +1 -1
  50. package/dist/Console.d.ts +6 -70
  51. package/dist/Console.d.ts.map +1 -1
  52. package/dist/Console.js.map +1 -1
  53. package/dist/Context.d.ts +8 -47
  54. package/dist/Context.d.ts.map +1 -1
  55. package/dist/Context.js.map +1 -1
  56. package/dist/Cron.d.ts.map +1 -1
  57. package/dist/Cron.js +5 -41
  58. package/dist/Cron.js.map +1 -1
  59. package/dist/Crypto.d.ts +6 -50
  60. package/dist/Crypto.d.ts.map +1 -1
  61. package/dist/Crypto.js +6 -50
  62. package/dist/Crypto.js.map +1 -1
  63. package/dist/Data.d.ts +5 -72
  64. package/dist/Data.d.ts.map +1 -1
  65. package/dist/Data.js.map +1 -1
  66. package/dist/DateTime.d.ts +8 -48
  67. package/dist/DateTime.d.ts.map +1 -1
  68. package/dist/DateTime.js.map +1 -1
  69. package/dist/Deferred.d.ts +5 -58
  70. package/dist/Deferred.d.ts.map +1 -1
  71. package/dist/Deferred.js.map +1 -1
  72. package/dist/Differ.d.ts +4 -35
  73. package/dist/Differ.d.ts.map +1 -1
  74. package/dist/Differ.js +4 -35
  75. package/dist/Duration.d.ts +6 -46
  76. package/dist/Duration.d.ts.map +1 -1
  77. package/dist/Duration.js +6 -46
  78. package/dist/Duration.js.map +1 -1
  79. package/dist/Effect.d.ts +227 -103
  80. package/dist/Effect.d.ts.map +1 -1
  81. package/dist/Effect.js +172 -18
  82. package/dist/Effect.js.map +1 -1
  83. package/dist/Effectable.d.ts +4 -34
  84. package/dist/Effectable.d.ts.map +1 -1
  85. package/dist/Effectable.js.map +1 -1
  86. package/dist/Encoding.d.ts.map +1 -1
  87. package/dist/Encoding.js +5 -46
  88. package/dist/Encoding.js.map +1 -1
  89. package/dist/Equal.d.ts +6 -66
  90. package/dist/Equal.d.ts.map +1 -1
  91. package/dist/Equal.js.map +1 -1
  92. package/dist/Equivalence.d.ts.map +1 -1
  93. package/dist/Equivalence.js +6 -48
  94. package/dist/Equivalence.js.map +1 -1
  95. package/dist/ErrorReporter.d.ts +8 -47
  96. package/dist/ErrorReporter.d.ts.map +1 -1
  97. package/dist/ErrorReporter.js.map +1 -1
  98. package/dist/ExecutionPlan.d.ts +6 -79
  99. package/dist/ExecutionPlan.d.ts.map +1 -1
  100. package/dist/ExecutionPlan.js.map +1 -1
  101. package/dist/Exit.d.ts +6 -53
  102. package/dist/Exit.d.ts.map +1 -1
  103. package/dist/Exit.js.map +1 -1
  104. package/dist/Fiber.d.ts +5 -52
  105. package/dist/Fiber.d.ts.map +1 -1
  106. package/dist/Fiber.js.map +1 -1
  107. package/dist/FiberHandle.d.ts.map +1 -1
  108. package/dist/FiberHandle.js +8 -38
  109. package/dist/FiberHandle.js.map +1 -1
  110. package/dist/FiberMap.d.ts.map +1 -1
  111. package/dist/FiberMap.js +7 -34
  112. package/dist/FiberMap.js.map +1 -1
  113. package/dist/FiberSet.d.ts.map +1 -1
  114. package/dist/FiberSet.js +6 -36
  115. package/dist/FiberSet.js.map +1 -1
  116. package/dist/FileSystem.d.ts.map +1 -1
  117. package/dist/FileSystem.js +8 -51
  118. package/dist/FileSystem.js.map +1 -1
  119. package/dist/Filter.d.ts +8 -33
  120. package/dist/Filter.d.ts.map +1 -1
  121. package/dist/Filter.js.map +1 -1
  122. package/dist/Formatter.d.ts.map +1 -1
  123. package/dist/Formatter.js +6 -49
  124. package/dist/Formatter.js.map +1 -1
  125. package/dist/Function.d.ts +5 -43
  126. package/dist/Function.d.ts.map +1 -1
  127. package/dist/Function.js.map +1 -1
  128. package/dist/Graph.d.ts +5 -48
  129. package/dist/Graph.d.ts.map +1 -1
  130. package/dist/Graph.js +69 -61
  131. package/dist/Graph.js.map +1 -1
  132. package/dist/HKT.d.ts +6 -48
  133. package/dist/HKT.d.ts.map +1 -1
  134. package/dist/Hash.d.ts.map +1 -1
  135. package/dist/Hash.js +7 -49
  136. package/dist/Hash.js.map +1 -1
  137. package/dist/HashMap.d.ts +6 -69
  138. package/dist/HashMap.d.ts.map +1 -1
  139. package/dist/HashMap.js +6 -69
  140. package/dist/HashMap.js.map +1 -1
  141. package/dist/HashRing.d.ts.map +1 -1
  142. package/dist/HashRing.js +6 -56
  143. package/dist/HashRing.js.map +1 -1
  144. package/dist/HashSet.d.ts +7 -36
  145. package/dist/HashSet.d.ts.map +1 -1
  146. package/dist/HashSet.js +7 -36
  147. package/dist/HashSet.js.map +1 -1
  148. package/dist/Inspectable.d.ts.map +1 -1
  149. package/dist/Inspectable.js +6 -60
  150. package/dist/Inspectable.js.map +1 -1
  151. package/dist/Iterable.d.ts +5 -50
  152. package/dist/Iterable.d.ts.map +1 -1
  153. package/dist/Iterable.js +5 -50
  154. package/dist/Iterable.js.map +1 -1
  155. package/dist/JsonPatch.d.ts.map +1 -1
  156. package/dist/JsonPatch.js +0 -53
  157. package/dist/JsonPatch.js.map +1 -1
  158. package/dist/JsonPointer.d.ts +4 -49
  159. package/dist/JsonPointer.d.ts.map +1 -1
  160. package/dist/JsonPointer.js +4 -49
  161. package/dist/JsonPointer.js.map +1 -1
  162. package/dist/JsonSchema.d.ts.map +1 -1
  163. package/dist/JsonSchema.js +6 -82
  164. package/dist/JsonSchema.js.map +1 -1
  165. package/dist/Latch.d.ts +5 -31
  166. package/dist/Latch.d.ts.map +1 -1
  167. package/dist/Latch.js.map +1 -1
  168. package/dist/Layer.d.ts +6 -38
  169. package/dist/Layer.d.ts.map +1 -1
  170. package/dist/Layer.js.map +1 -1
  171. package/dist/LayerMap.d.ts +7 -32
  172. package/dist/LayerMap.d.ts.map +1 -1
  173. package/dist/LayerMap.js +7 -32
  174. package/dist/LayerMap.js.map +1 -1
  175. package/dist/LogLevel.d.ts +4 -35
  176. package/dist/LogLevel.d.ts.map +1 -1
  177. package/dist/LogLevel.js.map +1 -1
  178. package/dist/Logger.d.ts.map +1 -1
  179. package/dist/Logger.js +6 -80
  180. package/dist/Logger.js.map +1 -1
  181. package/dist/ManagedRuntime.d.ts +6 -36
  182. package/dist/ManagedRuntime.d.ts.map +1 -1
  183. package/dist/ManagedRuntime.js.map +1 -1
  184. package/dist/Match.d.ts.map +1 -1
  185. package/dist/Match.js +8 -42
  186. package/dist/Match.js.map +1 -1
  187. package/dist/Metric.d.ts +8 -81
  188. package/dist/Metric.d.ts.map +1 -1
  189. package/dist/Metric.js +8 -81
  190. package/dist/Metric.js.map +1 -1
  191. package/dist/MutableHashMap.d.ts +6 -35
  192. package/dist/MutableHashMap.d.ts.map +1 -1
  193. package/dist/MutableHashMap.js.map +1 -1
  194. package/dist/MutableHashSet.d.ts.map +1 -1
  195. package/dist/MutableHashSet.js +5 -63
  196. package/dist/MutableHashSet.js.map +1 -1
  197. package/dist/MutableList.d.ts.map +1 -1
  198. package/dist/MutableList.js +6 -46
  199. package/dist/MutableList.js.map +1 -1
  200. package/dist/MutableRef.d.ts.map +1 -1
  201. package/dist/MutableRef.js +7 -30
  202. package/dist/MutableRef.js.map +1 -1
  203. package/dist/Newtype.d.ts +8 -61
  204. package/dist/Newtype.d.ts.map +1 -1
  205. package/dist/Newtype.js.map +1 -1
  206. package/dist/NonEmptyIterable.d.ts +0 -135
  207. package/dist/NonEmptyIterable.d.ts.map +1 -1
  208. package/dist/NonEmptyIterable.js +0 -135
  209. package/dist/NonEmptyIterable.js.map +1 -1
  210. package/dist/Number.d.ts +4 -55
  211. package/dist/Number.d.ts.map +1 -1
  212. package/dist/Number.js +4 -55
  213. package/dist/Number.js.map +1 -1
  214. package/dist/Optic.d.ts +9 -91
  215. package/dist/Optic.d.ts.map +1 -1
  216. package/dist/Optic.js +9 -91
  217. package/dist/Optic.js.map +1 -1
  218. package/dist/Option.d.ts +8 -69
  219. package/dist/Option.d.ts.map +1 -1
  220. package/dist/Option.js +8 -69
  221. package/dist/Option.js.map +1 -1
  222. package/dist/Order.d.ts.map +1 -1
  223. package/dist/Order.js +8 -76
  224. package/dist/Order.js.map +1 -1
  225. package/dist/Ordering.d.ts +5 -31
  226. package/dist/Ordering.d.ts.map +1 -1
  227. package/dist/Ordering.js.map +1 -1
  228. package/dist/PartitionedSemaphore.d.ts +0 -28
  229. package/dist/PartitionedSemaphore.d.ts.map +1 -1
  230. package/dist/PartitionedSemaphore.js +0 -28
  231. package/dist/PartitionedSemaphore.js.map +1 -1
  232. package/dist/Path.d.ts +7 -29
  233. package/dist/Path.d.ts.map +1 -1
  234. package/dist/Path.js +6 -28
  235. package/dist/Path.js.map +1 -1
  236. package/dist/Pipeable.d.ts +0 -11
  237. package/dist/Pipeable.d.ts.map +1 -1
  238. package/dist/Pipeable.js +0 -11
  239. package/dist/Pipeable.js.map +1 -1
  240. package/dist/PlatformError.d.ts +7 -29
  241. package/dist/PlatformError.d.ts.map +1 -1
  242. package/dist/PlatformError.js +7 -29
  243. package/dist/PlatformError.js.map +1 -1
  244. package/dist/Pool.d.ts.map +1 -1
  245. package/dist/Pool.js.map +1 -1
  246. package/dist/Predicate.d.ts.map +1 -1
  247. package/dist/Predicate.js +6 -61
  248. package/dist/Predicate.js.map +1 -1
  249. package/dist/PrimaryKey.d.ts +0 -40
  250. package/dist/PrimaryKey.d.ts.map +1 -1
  251. package/dist/PrimaryKey.js +0 -40
  252. package/dist/PrimaryKey.js.map +1 -1
  253. package/dist/PubSub.d.ts +8 -56
  254. package/dist/PubSub.d.ts.map +1 -1
  255. package/dist/PubSub.js +8 -56
  256. package/dist/PubSub.js.map +1 -1
  257. package/dist/Pull.d.ts +8 -25
  258. package/dist/Pull.d.ts.map +1 -1
  259. package/dist/Pull.js +8 -25
  260. package/dist/Pull.js.map +1 -1
  261. package/dist/Queue.d.ts +5 -62
  262. package/dist/Queue.d.ts.map +1 -1
  263. package/dist/Queue.js +5 -62
  264. package/dist/Queue.js.map +1 -1
  265. package/dist/Random.d.ts +5 -39
  266. package/dist/Random.d.ts.map +1 -1
  267. package/dist/Random.js +6 -74
  268. package/dist/Random.js.map +1 -1
  269. package/dist/RcMap.d.ts +9 -17
  270. package/dist/RcMap.d.ts.map +1 -1
  271. package/dist/RcMap.js +9 -17
  272. package/dist/RcMap.js.map +1 -1
  273. package/dist/RcRef.d.ts +6 -36
  274. package/dist/RcRef.d.ts.map +1 -1
  275. package/dist/RcRef.js.map +1 -1
  276. package/dist/Record.d.ts +6 -71
  277. package/dist/Record.d.ts.map +1 -1
  278. package/dist/Record.js +6 -71
  279. package/dist/Record.js.map +1 -1
  280. package/dist/Redactable.d.ts +0 -58
  281. package/dist/Redactable.d.ts.map +1 -1
  282. package/dist/Redactable.js.map +1 -1
  283. package/dist/Redacted.d.ts +8 -41
  284. package/dist/Redacted.d.ts.map +1 -1
  285. package/dist/Redacted.js +8 -41
  286. package/dist/Redacted.js.map +1 -1
  287. package/dist/Reducer.d.ts +5 -64
  288. package/dist/Reducer.d.ts.map +1 -1
  289. package/dist/Reducer.js +5 -64
  290. package/dist/Reducer.js.map +1 -1
  291. package/dist/Ref.d.ts +8 -49
  292. package/dist/Ref.d.ts.map +1 -1
  293. package/dist/Ref.js +8 -49
  294. package/dist/Ref.js.map +1 -1
  295. package/dist/References.d.ts +0 -49
  296. package/dist/References.d.ts.map +1 -1
  297. package/dist/References.js.map +1 -1
  298. package/dist/RegExp.d.ts.map +1 -1
  299. package/dist/RegExp.js +0 -26
  300. package/dist/RegExp.js.map +1 -1
  301. package/dist/Request.d.ts +6 -41
  302. package/dist/Request.d.ts.map +1 -1
  303. package/dist/Request.js.map +1 -1
  304. package/dist/RequestResolver.d.ts +6 -41
  305. package/dist/RequestResolver.d.ts.map +1 -1
  306. package/dist/RequestResolver.js.map +1 -1
  307. package/dist/Resource.d.ts.map +1 -1
  308. package/dist/Resource.js +5 -30
  309. package/dist/Resource.js.map +1 -1
  310. package/dist/Result.d.ts +6 -64
  311. package/dist/Result.d.ts.map +1 -1
  312. package/dist/Result.js +6 -64
  313. package/dist/Result.js.map +1 -1
  314. package/dist/Runtime.d.ts.map +1 -1
  315. package/dist/Runtime.js +7 -55
  316. package/dist/Runtime.js.map +1 -1
  317. package/dist/Schedule.d.ts.map +1 -1
  318. package/dist/Schedule.js +5 -61
  319. package/dist/Schedule.js.map +1 -1
  320. package/dist/Scheduler.d.ts +6 -17
  321. package/dist/Scheduler.d.ts.map +1 -1
  322. package/dist/Scheduler.js +6 -17
  323. package/dist/Scheduler.js.map +1 -1
  324. package/dist/Schema.d.ts +257 -166
  325. package/dist/Schema.d.ts.map +1 -1
  326. package/dist/Schema.js +347 -361
  327. package/dist/Schema.js.map +1 -1
  328. package/dist/SchemaAST.d.ts +18 -73
  329. package/dist/SchemaAST.d.ts.map +1 -1
  330. package/dist/SchemaAST.js +83 -89
  331. package/dist/SchemaAST.js.map +1 -1
  332. package/dist/SchemaGetter.d.ts +9 -83
  333. package/dist/SchemaGetter.d.ts.map +1 -1
  334. package/dist/SchemaGetter.js +9 -83
  335. package/dist/SchemaGetter.js.map +1 -1
  336. package/dist/SchemaIssue.d.ts +8 -76
  337. package/dist/SchemaIssue.d.ts.map +1 -1
  338. package/dist/SchemaIssue.js.map +1 -1
  339. package/dist/SchemaParser.d.ts.map +1 -1
  340. package/dist/SchemaParser.js +23 -43
  341. package/dist/SchemaParser.js.map +1 -1
  342. package/dist/SchemaRepresentation.d.ts.map +1 -1
  343. package/dist/SchemaRepresentation.js +10 -84
  344. package/dist/SchemaRepresentation.js.map +1 -1
  345. package/dist/SchemaTransformation.d.ts +9 -82
  346. package/dist/SchemaTransformation.d.ts.map +1 -1
  347. package/dist/SchemaTransformation.js +9 -82
  348. package/dist/SchemaTransformation.js.map +1 -1
  349. package/dist/SchemaUtils.d.ts.map +1 -1
  350. package/dist/SchemaUtils.js +5 -33
  351. package/dist/SchemaUtils.js.map +1 -1
  352. package/dist/Scope.d.ts +6 -41
  353. package/dist/Scope.d.ts.map +1 -1
  354. package/dist/Scope.js +6 -41
  355. package/dist/Scope.js.map +1 -1
  356. package/dist/ScopedCache.d.ts.map +1 -1
  357. package/dist/ScopedCache.js +8 -23
  358. package/dist/ScopedCache.js.map +1 -1
  359. package/dist/ScopedRef.d.ts +6 -18
  360. package/dist/ScopedRef.d.ts.map +1 -1
  361. package/dist/ScopedRef.js +6 -18
  362. package/dist/ScopedRef.js.map +1 -1
  363. package/dist/Semaphore.d.ts +8 -30
  364. package/dist/Semaphore.d.ts.map +1 -1
  365. package/dist/Semaphore.js.map +1 -1
  366. package/dist/Sink.d.ts +6 -29
  367. package/dist/Sink.d.ts.map +1 -1
  368. package/dist/Sink.js.map +1 -1
  369. package/dist/Stdio.d.ts +7 -26
  370. package/dist/Stdio.d.ts.map +1 -1
  371. package/dist/Stdio.js +7 -26
  372. package/dist/Stdio.js.map +1 -1
  373. package/dist/Stream.d.ts +8 -79
  374. package/dist/Stream.d.ts.map +1 -1
  375. package/dist/Stream.js +8 -79
  376. package/dist/Stream.js.map +1 -1
  377. package/dist/String.d.ts +5 -63
  378. package/dist/String.d.ts.map +1 -1
  379. package/dist/String.js +5 -63
  380. package/dist/String.js.map +1 -1
  381. package/dist/Struct.d.ts +8 -71
  382. package/dist/Struct.d.ts.map +1 -1
  383. package/dist/Struct.js +9 -71
  384. package/dist/Struct.js.map +1 -1
  385. package/dist/SubscriptionRef.d.ts +6 -53
  386. package/dist/SubscriptionRef.d.ts.map +1 -1
  387. package/dist/SubscriptionRef.js +6 -53
  388. package/dist/SubscriptionRef.js.map +1 -1
  389. package/dist/Symbol.d.ts +0 -17
  390. package/dist/Symbol.d.ts.map +1 -1
  391. package/dist/Symbol.js +0 -17
  392. package/dist/Symbol.js.map +1 -1
  393. package/dist/SynchronizedRef.d.ts +8 -21
  394. package/dist/SynchronizedRef.d.ts.map +1 -1
  395. package/dist/SynchronizedRef.js +8 -21
  396. package/dist/SynchronizedRef.js.map +1 -1
  397. package/dist/Take.d.ts +0 -24
  398. package/dist/Take.d.ts.map +1 -1
  399. package/dist/Take.js.map +1 -1
  400. package/dist/Terminal.d.ts +7 -28
  401. package/dist/Terminal.d.ts.map +1 -1
  402. package/dist/Terminal.js.map +1 -1
  403. package/dist/Tracer.d.ts +6 -36
  404. package/dist/Tracer.d.ts.map +1 -1
  405. package/dist/Tracer.js +6 -36
  406. package/dist/Tracer.js.map +1 -1
  407. package/dist/Trie.d.ts +6 -49
  408. package/dist/Trie.d.ts.map +1 -1
  409. package/dist/Trie.js.map +1 -1
  410. package/dist/Tuple.d.ts +8 -66
  411. package/dist/Tuple.d.ts.map +1 -1
  412. package/dist/Tuple.js +8 -66
  413. package/dist/Tuple.js.map +1 -1
  414. package/dist/TxChunk.d.ts +8 -40
  415. package/dist/TxChunk.d.ts.map +1 -1
  416. package/dist/TxChunk.js +8 -40
  417. package/dist/TxChunk.js.map +1 -1
  418. package/dist/TxDeferred.d.ts +0 -18
  419. package/dist/TxDeferred.d.ts.map +1 -1
  420. package/dist/TxDeferred.js +0 -18
  421. package/dist/TxDeferred.js.map +1 -1
  422. package/dist/TxHashMap.d.ts +6 -23
  423. package/dist/TxHashMap.d.ts.map +1 -1
  424. package/dist/TxHashMap.js +6 -23
  425. package/dist/TxHashMap.js.map +1 -1
  426. package/dist/TxHashSet.d.ts +10 -19
  427. package/dist/TxHashSet.d.ts.map +1 -1
  428. package/dist/TxHashSet.js +10 -19
  429. package/dist/TxHashSet.js.map +1 -1
  430. package/dist/TxPriorityQueue.d.ts +9 -29
  431. package/dist/TxPriorityQueue.d.ts.map +1 -1
  432. package/dist/TxPriorityQueue.js +9 -29
  433. package/dist/TxPriorityQueue.js.map +1 -1
  434. package/dist/TxPubSub.d.ts +6 -44
  435. package/dist/TxPubSub.d.ts.map +1 -1
  436. package/dist/TxPubSub.js +6 -44
  437. package/dist/TxPubSub.js.map +1 -1
  438. package/dist/TxQueue.d.ts +8 -48
  439. package/dist/TxQueue.d.ts.map +1 -1
  440. package/dist/TxQueue.js.map +1 -1
  441. package/dist/TxReentrantLock.d.ts +8 -40
  442. package/dist/TxReentrantLock.d.ts.map +1 -1
  443. package/dist/TxReentrantLock.js +8 -40
  444. package/dist/TxReentrantLock.js.map +1 -1
  445. package/dist/TxRef.d.ts +9 -59
  446. package/dist/TxRef.d.ts.map +1 -1
  447. package/dist/TxRef.js +9 -59
  448. package/dist/TxRef.js.map +1 -1
  449. package/dist/TxSemaphore.d.ts +6 -34
  450. package/dist/TxSemaphore.d.ts.map +1 -1
  451. package/dist/TxSemaphore.js +6 -34
  452. package/dist/TxSemaphore.js.map +1 -1
  453. package/dist/TxSubscriptionRef.d.ts +7 -35
  454. package/dist/TxSubscriptionRef.d.ts.map +1 -1
  455. package/dist/TxSubscriptionRef.js +7 -35
  456. package/dist/TxSubscriptionRef.js.map +1 -1
  457. package/dist/Types.d.ts +6 -48
  458. package/dist/Types.d.ts.map +1 -1
  459. package/dist/Types.js +5 -47
  460. package/dist/UndefinedOr.d.ts +8 -55
  461. package/dist/UndefinedOr.d.ts.map +1 -1
  462. package/dist/UndefinedOr.js +8 -55
  463. package/dist/UndefinedOr.js.map +1 -1
  464. package/dist/Unify.d.ts +8 -29
  465. package/dist/Unify.d.ts.map +1 -1
  466. package/dist/Unify.js +8 -29
  467. package/dist/Unify.js.map +1 -1
  468. package/dist/Utils.d.ts +8 -55
  469. package/dist/Utils.d.ts.map +1 -1
  470. package/dist/Utils.js +20 -14
  471. package/dist/Utils.js.map +1 -1
  472. package/dist/internal/effect.js +5 -3
  473. package/dist/internal/effect.js.map +1 -1
  474. package/dist/internal/option.js +5 -3
  475. package/dist/internal/option.js.map +1 -1
  476. package/dist/internal/schema/arbitrary.d.ts +4 -1
  477. package/dist/internal/schema/arbitrary.d.ts.map +1 -1
  478. package/dist/internal/schema/arbitrary.js +655 -170
  479. package/dist/internal/schema/arbitrary.js.map +1 -1
  480. package/dist/internal/schema/representation.js +1 -1
  481. package/dist/internal/schema/representation.js.map +1 -1
  482. package/dist/testing/FastCheck.d.ts +5 -6
  483. package/dist/testing/FastCheck.d.ts.map +1 -1
  484. package/dist/testing/FastCheck.js +5 -6
  485. package/dist/testing/FastCheck.js.map +1 -1
  486. package/dist/testing/TestClock.d.ts.map +1 -1
  487. package/dist/testing/TestClock.js +8 -23
  488. package/dist/testing/TestClock.js.map +1 -1
  489. package/dist/testing/TestConsole.d.ts.map +1 -1
  490. package/dist/testing/TestConsole.js +7 -36
  491. package/dist/testing/TestConsole.js.map +1 -1
  492. package/dist/testing/TestSchema.d.ts.map +1 -1
  493. package/dist/testing/TestSchema.js +6 -63
  494. package/dist/testing/TestSchema.js.map +1 -1
  495. package/dist/unstable/ai/AiError.d.ts +9 -78
  496. package/dist/unstable/ai/AiError.d.ts.map +1 -1
  497. package/dist/unstable/ai/AiError.js +9 -78
  498. package/dist/unstable/ai/AiError.js.map +1 -1
  499. package/dist/unstable/ai/AnthropicStructuredOutput.d.ts.map +1 -1
  500. package/dist/unstable/ai/AnthropicStructuredOutput.js +7 -32
  501. package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
  502. package/dist/unstable/ai/Chat.d.ts.map +1 -1
  503. package/dist/unstable/ai/Chat.js +0 -46
  504. package/dist/unstable/ai/Chat.js.map +1 -1
  505. package/dist/unstable/ai/EmbeddingModel.d.ts +8 -45
  506. package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
  507. package/dist/unstable/ai/EmbeddingModel.js +8 -45
  508. package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
  509. package/dist/unstable/ai/IdGenerator.d.ts +6 -44
  510. package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
  511. package/dist/unstable/ai/IdGenerator.js +6 -44
  512. package/dist/unstable/ai/IdGenerator.js.map +1 -1
  513. package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
  514. package/dist/unstable/ai/LanguageModel.js.map +1 -1
  515. package/dist/unstable/ai/McpSchema.d.ts +8 -27
  516. package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
  517. package/dist/unstable/ai/McpSchema.js +8 -27
  518. package/dist/unstable/ai/McpSchema.js.map +1 -1
  519. package/dist/unstable/ai/McpServer.d.ts.map +1 -1
  520. package/dist/unstable/ai/McpServer.js +8 -22
  521. package/dist/unstable/ai/McpServer.js.map +1 -1
  522. package/dist/unstable/ai/Model.d.ts +8 -49
  523. package/dist/unstable/ai/Model.d.ts.map +1 -1
  524. package/dist/unstable/ai/Model.js +8 -49
  525. package/dist/unstable/ai/Model.js.map +1 -1
  526. package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
  527. package/dist/unstable/ai/OpenAiStructuredOutput.js +9 -50
  528. package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
  529. package/dist/unstable/ai/Prompt.d.ts.map +1 -1
  530. package/dist/unstable/ai/Prompt.js +6 -50
  531. package/dist/unstable/ai/Prompt.js.map +1 -1
  532. package/dist/unstable/ai/Response.d.ts +8 -49
  533. package/dist/unstable/ai/Response.d.ts.map +1 -1
  534. package/dist/unstable/ai/Response.js.map +1 -1
  535. package/dist/unstable/ai/ResponseIdTracker.d.ts +0 -26
  536. package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
  537. package/dist/unstable/ai/ResponseIdTracker.js +0 -26
  538. package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
  539. package/dist/unstable/ai/Telemetry.d.ts +6 -30
  540. package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
  541. package/dist/unstable/ai/Telemetry.js +6 -30
  542. package/dist/unstable/ai/Telemetry.js.map +1 -1
  543. package/dist/unstable/ai/Tokenizer.d.ts +8 -46
  544. package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
  545. package/dist/unstable/ai/Tokenizer.js +8 -46
  546. package/dist/unstable/ai/Tokenizer.js.map +1 -1
  547. package/dist/unstable/ai/Tool.d.ts +9 -54
  548. package/dist/unstable/ai/Tool.d.ts.map +1 -1
  549. package/dist/unstable/ai/Tool.js +9 -54
  550. package/dist/unstable/ai/Tool.js.map +1 -1
  551. package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
  552. package/dist/unstable/ai/Toolkit.js.map +1 -1
  553. package/dist/unstable/cli/Argument.d.ts +6 -20
  554. package/dist/unstable/cli/Argument.d.ts.map +1 -1
  555. package/dist/unstable/cli/Argument.js.map +1 -1
  556. package/dist/unstable/cli/CliError.d.ts.map +1 -1
  557. package/dist/unstable/cli/CliError.js +8 -23
  558. package/dist/unstable/cli/CliError.js.map +1 -1
  559. package/dist/unstable/cli/CliOutput.d.ts +6 -19
  560. package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
  561. package/dist/unstable/cli/CliOutput.js +6 -19
  562. package/dist/unstable/cli/CliOutput.js.map +1 -1
  563. package/dist/unstable/cli/Command.d.ts +8 -27
  564. package/dist/unstable/cli/Command.d.ts.map +1 -1
  565. package/dist/unstable/cli/Command.js.map +1 -1
  566. package/dist/unstable/cli/Completions.d.ts.map +1 -1
  567. package/dist/unstable/cli/Completions.js +0 -24
  568. package/dist/unstable/cli/Completions.js.map +1 -1
  569. package/dist/unstable/cli/Flag.d.ts +8 -18
  570. package/dist/unstable/cli/Flag.d.ts.map +1 -1
  571. package/dist/unstable/cli/Flag.js.map +1 -1
  572. package/dist/unstable/cli/GlobalFlag.d.ts +8 -22
  573. package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
  574. package/dist/unstable/cli/GlobalFlag.js +9 -23
  575. package/dist/unstable/cli/GlobalFlag.js.map +1 -1
  576. package/dist/unstable/cli/HelpDoc.d.ts +6 -19
  577. package/dist/unstable/cli/HelpDoc.d.ts.map +1 -1
  578. package/dist/unstable/cli/HelpDoc.js +6 -19
  579. package/dist/unstable/cli/Param.d.ts +8 -25
  580. package/dist/unstable/cli/Param.d.ts.map +1 -1
  581. package/dist/unstable/cli/Param.js +8 -25
  582. package/dist/unstable/cli/Param.js.map +1 -1
  583. package/dist/unstable/cli/Primitive.d.ts.map +1 -1
  584. package/dist/unstable/cli/Primitive.js +8 -58
  585. package/dist/unstable/cli/Primitive.js.map +1 -1
  586. package/dist/unstable/cli/Prompt.d.ts.map +1 -1
  587. package/dist/unstable/cli/Prompt.js +7 -22
  588. package/dist/unstable/cli/Prompt.js.map +1 -1
  589. package/dist/unstable/cluster/ClusterCron.d.ts +6 -26
  590. package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
  591. package/dist/unstable/cluster/ClusterCron.js +6 -26
  592. package/dist/unstable/cluster/ClusterCron.js.map +1 -1
  593. package/dist/unstable/cluster/ClusterError.d.ts +5 -40
  594. package/dist/unstable/cluster/ClusterError.d.ts.map +1 -1
  595. package/dist/unstable/cluster/ClusterError.js +5 -40
  596. package/dist/unstable/cluster/ClusterError.js.map +1 -1
  597. package/dist/unstable/cluster/ClusterMetrics.d.ts +6 -20
  598. package/dist/unstable/cluster/ClusterMetrics.d.ts.map +1 -1
  599. package/dist/unstable/cluster/ClusterMetrics.js +6 -20
  600. package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
  601. package/dist/unstable/cluster/ClusterSchema.d.ts +0 -38
  602. package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
  603. package/dist/unstable/cluster/ClusterSchema.js +0 -38
  604. package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
  605. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  606. package/dist/unstable/cluster/ClusterWorkflowEngine.js +0 -16
  607. package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
  608. package/dist/unstable/cluster/DeliverAt.d.ts +0 -17
  609. package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
  610. package/dist/unstable/cluster/DeliverAt.js.map +1 -1
  611. package/dist/unstable/cluster/Entity.d.ts.map +1 -1
  612. package/dist/unstable/cluster/Entity.js +8 -31
  613. package/dist/unstable/cluster/Entity.js.map +1 -1
  614. package/dist/unstable/cluster/EntityAddress.d.ts +0 -13
  615. package/dist/unstable/cluster/EntityAddress.d.ts.map +1 -1
  616. package/dist/unstable/cluster/EntityAddress.js +0 -13
  617. package/dist/unstable/cluster/EntityAddress.js.map +1 -1
  618. package/dist/unstable/cluster/EntityId.d.ts +0 -24
  619. package/dist/unstable/cluster/EntityId.d.ts.map +1 -1
  620. package/dist/unstable/cluster/EntityId.js +0 -24
  621. package/dist/unstable/cluster/EntityId.js.map +1 -1
  622. package/dist/unstable/cluster/EntityProxy.d.ts +7 -21
  623. package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
  624. package/dist/unstable/cluster/EntityProxy.js +6 -20
  625. package/dist/unstable/cluster/EntityProxy.js.map +1 -1
  626. package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
  627. package/dist/unstable/cluster/EntityProxyServer.js +7 -19
  628. package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
  629. package/dist/unstable/cluster/EntityResource.d.ts +8 -22
  630. package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
  631. package/dist/unstable/cluster/EntityResource.js.map +1 -1
  632. package/dist/unstable/cluster/EntityType.d.ts +0 -13
  633. package/dist/unstable/cluster/EntityType.d.ts.map +1 -1
  634. package/dist/unstable/cluster/EntityType.js +0 -13
  635. package/dist/unstable/cluster/EntityType.js.map +1 -1
  636. package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
  637. package/dist/unstable/cluster/Envelope.js +7 -22
  638. package/dist/unstable/cluster/Envelope.js.map +1 -1
  639. package/dist/unstable/cluster/HttpRunner.d.ts +5 -32
  640. package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
  641. package/dist/unstable/cluster/HttpRunner.js +5 -32
  642. package/dist/unstable/cluster/HttpRunner.js.map +1 -1
  643. package/dist/unstable/cluster/K8sHttpClient.d.ts +0 -32
  644. package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
  645. package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
  646. package/dist/unstable/cluster/MachineId.d.ts +0 -20
  647. package/dist/unstable/cluster/MachineId.d.ts.map +1 -1
  648. package/dist/unstable/cluster/MachineId.js +0 -20
  649. package/dist/unstable/cluster/MachineId.js.map +1 -1
  650. package/dist/unstable/cluster/Message.d.ts +7 -23
  651. package/dist/unstable/cluster/Message.d.ts.map +1 -1
  652. package/dist/unstable/cluster/Message.js +7 -23
  653. package/dist/unstable/cluster/Message.js.map +1 -1
  654. package/dist/unstable/cluster/MessageStorage.d.ts +8 -37
  655. package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
  656. package/dist/unstable/cluster/MessageStorage.js +7 -36
  657. package/dist/unstable/cluster/MessageStorage.js.map +1 -1
  658. package/dist/unstable/cluster/Reply.d.ts +7 -19
  659. package/dist/unstable/cluster/Reply.d.ts.map +1 -1
  660. package/dist/unstable/cluster/Reply.js.map +1 -1
  661. package/dist/unstable/cluster/Runner.d.ts +3 -35
  662. package/dist/unstable/cluster/Runner.d.ts.map +1 -1
  663. package/dist/unstable/cluster/Runner.js +3 -35
  664. package/dist/unstable/cluster/Runner.js.map +1 -1
  665. package/dist/unstable/cluster/RunnerAddress.d.ts +4 -32
  666. package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
  667. package/dist/unstable/cluster/RunnerAddress.js +4 -32
  668. package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
  669. package/dist/unstable/cluster/RunnerHealth.d.ts +6 -35
  670. package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
  671. package/dist/unstable/cluster/RunnerHealth.js +6 -35
  672. package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
  673. package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
  674. package/dist/unstable/cluster/RunnerServer.js +8 -23
  675. package/dist/unstable/cluster/RunnerServer.js.map +1 -1
  676. package/dist/unstable/cluster/RunnerStorage.d.ts +6 -21
  677. package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
  678. package/dist/unstable/cluster/RunnerStorage.js +6 -21
  679. package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
  680. package/dist/unstable/cluster/Runners.d.ts +8 -29
  681. package/dist/unstable/cluster/Runners.d.ts.map +1 -1
  682. package/dist/unstable/cluster/Runners.js +7 -28
  683. package/dist/unstable/cluster/Runners.js.map +1 -1
  684. package/dist/unstable/cluster/ShardId.d.ts +0 -17
  685. package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
  686. package/dist/unstable/cluster/ShardId.js +0 -17
  687. package/dist/unstable/cluster/ShardId.js.map +1 -1
  688. package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
  689. package/dist/unstable/cluster/Sharding.js +7 -39
  690. package/dist/unstable/cluster/Sharding.js.map +1 -1
  691. package/dist/unstable/cluster/ShardingConfig.d.ts +7 -34
  692. package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
  693. package/dist/unstable/cluster/ShardingConfig.js +8 -35
  694. package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
  695. package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +0 -22
  696. package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
  697. package/dist/unstable/cluster/ShardingRegistrationEvent.js +0 -22
  698. package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
  699. package/dist/unstable/cluster/SingleRunner.d.ts +8 -21
  700. package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
  701. package/dist/unstable/cluster/SingleRunner.js +8 -21
  702. package/dist/unstable/cluster/SingleRunner.js.map +1 -1
  703. package/dist/unstable/cluster/Singleton.d.ts +0 -23
  704. package/dist/unstable/cluster/Singleton.d.ts.map +1 -1
  705. package/dist/unstable/cluster/Singleton.js +0 -23
  706. package/dist/unstable/cluster/Singleton.js.map +1 -1
  707. package/dist/unstable/cluster/SingletonAddress.d.ts +0 -22
  708. package/dist/unstable/cluster/SingletonAddress.d.ts.map +1 -1
  709. package/dist/unstable/cluster/SingletonAddress.js +0 -22
  710. package/dist/unstable/cluster/SingletonAddress.js.map +1 -1
  711. package/dist/unstable/cluster/Snowflake.d.ts +8 -17
  712. package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
  713. package/dist/unstable/cluster/Snowflake.js.map +1 -1
  714. package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
  715. package/dist/unstable/cluster/SocketRunner.js +6 -19
  716. package/dist/unstable/cluster/SocketRunner.js.map +1 -1
  717. package/dist/unstable/cluster/SqlMessageStorage.d.ts.map +1 -1
  718. package/dist/unstable/cluster/SqlMessageStorage.js +7 -36
  719. package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
  720. package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
  721. package/dist/unstable/cluster/SqlRunnerStorage.js +6 -27
  722. package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
  723. package/dist/unstable/cluster/TestRunner.d.ts +0 -21
  724. package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
  725. package/dist/unstable/cluster/TestRunner.js +0 -21
  726. package/dist/unstable/cluster/TestRunner.js.map +1 -1
  727. package/dist/unstable/cluster/internal/entityManager.js +18 -6
  728. package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
  729. package/dist/unstable/devtools/DevTools.d.ts +0 -17
  730. package/dist/unstable/devtools/DevTools.d.ts.map +1 -1
  731. package/dist/unstable/devtools/DevTools.js +0 -17
  732. package/dist/unstable/devtools/DevTools.js.map +1 -1
  733. package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
  734. package/dist/unstable/devtools/DevToolsClient.js +0 -24
  735. package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
  736. package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
  737. package/dist/unstable/devtools/DevToolsSchema.js +0 -17
  738. package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
  739. package/dist/unstable/devtools/DevToolsServer.d.ts +0 -13
  740. package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
  741. package/dist/unstable/devtools/DevToolsServer.js +0 -13
  742. package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
  743. package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
  744. package/dist/unstable/encoding/Msgpack.js +5 -28
  745. package/dist/unstable/encoding/Msgpack.js.map +1 -1
  746. package/dist/unstable/encoding/Ndjson.d.ts +4 -28
  747. package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
  748. package/dist/unstable/encoding/Ndjson.js +4 -28
  749. package/dist/unstable/encoding/Ndjson.js.map +1 -1
  750. package/dist/unstable/encoding/Sse.d.ts +6 -37
  751. package/dist/unstable/encoding/Sse.d.ts.map +1 -1
  752. package/dist/unstable/encoding/Sse.js.map +1 -1
  753. package/dist/unstable/eventlog/Event.d.ts.map +1 -1
  754. package/dist/unstable/eventlog/Event.js +3 -25
  755. package/dist/unstable/eventlog/Event.js.map +1 -1
  756. package/dist/unstable/eventlog/EventGroup.d.ts +6 -21
  757. package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
  758. package/dist/unstable/eventlog/EventGroup.js +6 -21
  759. package/dist/unstable/eventlog/EventGroup.js.map +1 -1
  760. package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
  761. package/dist/unstable/eventlog/EventJournal.js +9 -32
  762. package/dist/unstable/eventlog/EventJournal.js.map +1 -1
  763. package/dist/unstable/eventlog/EventLog.d.ts +6 -28
  764. package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
  765. package/dist/unstable/eventlog/EventLog.js +6 -28
  766. package/dist/unstable/eventlog/EventLog.js.map +1 -1
  767. package/dist/unstable/eventlog/EventLogEncryption.d.ts +5 -18
  768. package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
  769. package/dist/unstable/eventlog/EventLogEncryption.js +5 -18
  770. package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
  771. package/dist/unstable/eventlog/EventLogMessage.d.ts +4 -20
  772. package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
  773. package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
  774. package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
  775. package/dist/unstable/eventlog/EventLogRemote.js +7 -17
  776. package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
  777. package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
  778. package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
  779. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
  780. package/dist/unstable/eventlog/EventLogServerEncrypted.js +8 -19
  781. package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
  782. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
  783. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +7 -35
  784. package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
  785. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
  786. package/dist/unstable/eventlog/EventLogSessionAuth.js +6 -35
  787. package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
  788. package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
  789. package/dist/unstable/eventlog/SqlEventJournal.js +0 -26
  790. package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
  791. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +6 -39
  792. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
  793. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +6 -39
  794. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
  795. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
  796. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +0 -29
  797. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
  798. package/dist/unstable/http/Cookies.d.ts +7 -59
  799. package/dist/unstable/http/Cookies.d.ts.map +1 -1
  800. package/dist/unstable/http/Cookies.js +7 -59
  801. package/dist/unstable/http/Cookies.js.map +1 -1
  802. package/dist/unstable/http/Etag.d.ts +0 -22
  803. package/dist/unstable/http/Etag.d.ts.map +1 -1
  804. package/dist/unstable/http/Etag.js +0 -22
  805. package/dist/unstable/http/Etag.js.map +1 -1
  806. package/dist/unstable/http/FetchHttpClient.d.ts +0 -23
  807. package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
  808. package/dist/unstable/http/FetchHttpClient.js +0 -23
  809. package/dist/unstable/http/FetchHttpClient.js.map +1 -1
  810. package/dist/unstable/http/FindMyWay.d.ts +6 -0
  811. package/dist/unstable/http/FindMyWay.d.ts.map +1 -1
  812. package/dist/unstable/http/FindMyWay.js +6 -0
  813. package/dist/unstable/http/FindMyWay.js.map +1 -1
  814. package/dist/unstable/http/Headers.d.ts +6 -52
  815. package/dist/unstable/http/Headers.d.ts.map +1 -1
  816. package/dist/unstable/http/Headers.js +9 -53
  817. package/dist/unstable/http/Headers.js.map +1 -1
  818. package/dist/unstable/http/HttpBody.d.ts.map +1 -1
  819. package/dist/unstable/http/HttpBody.js +9 -53
  820. package/dist/unstable/http/HttpBody.js.map +1 -1
  821. package/dist/unstable/http/HttpClient.d.ts +9 -34
  822. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  823. package/dist/unstable/http/HttpClient.js.map +1 -1
  824. package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
  825. package/dist/unstable/http/HttpClientError.js +0 -20
  826. package/dist/unstable/http/HttpClientError.js.map +1 -1
  827. package/dist/unstable/http/HttpClientRequest.d.ts +4 -35
  828. package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
  829. package/dist/unstable/http/HttpClientRequest.js +4 -35
  830. package/dist/unstable/http/HttpClientRequest.js.map +1 -1
  831. package/dist/unstable/http/HttpClientResponse.d.ts +6 -34
  832. package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
  833. package/dist/unstable/http/HttpClientResponse.js +6 -34
  834. package/dist/unstable/http/HttpClientResponse.js.map +1 -1
  835. package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
  836. package/dist/unstable/http/HttpEffect.js.map +1 -1
  837. package/dist/unstable/http/HttpIncomingMessage.d.ts +6 -22
  838. package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
  839. package/dist/unstable/http/HttpIncomingMessage.js +6 -22
  840. package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
  841. package/dist/unstable/http/HttpMethod.d.ts +5 -29
  842. package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
  843. package/dist/unstable/http/HttpMethod.js +5 -29
  844. package/dist/unstable/http/HttpMethod.js.map +1 -1
  845. package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
  846. package/dist/unstable/http/HttpMiddleware.js +6 -19
  847. package/dist/unstable/http/HttpMiddleware.js.map +1 -1
  848. package/dist/unstable/http/HttpPlatform.d.ts +0 -13
  849. package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
  850. package/dist/unstable/http/HttpPlatform.js +0 -13
  851. package/dist/unstable/http/HttpPlatform.js.map +1 -1
  852. package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
  853. package/dist/unstable/http/HttpRouter.js +7 -39
  854. package/dist/unstable/http/HttpRouter.js.map +1 -1
  855. package/dist/unstable/http/HttpServer.d.ts +6 -29
  856. package/dist/unstable/http/HttpServer.d.ts.map +1 -1
  857. package/dist/unstable/http/HttpServer.js +6 -29
  858. package/dist/unstable/http/HttpServer.js.map +1 -1
  859. package/dist/unstable/http/HttpServerError.d.ts +6 -30
  860. package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
  861. package/dist/unstable/http/HttpServerError.js +6 -30
  862. package/dist/unstable/http/HttpServerError.js.map +1 -1
  863. package/dist/unstable/http/HttpServerRequest.d.ts +8 -33
  864. package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
  865. package/dist/unstable/http/HttpServerRequest.js.map +1 -1
  866. package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
  867. package/dist/unstable/http/HttpServerRespondable.js +5 -29
  868. package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
  869. package/dist/unstable/http/HttpServerResponse.d.ts +8 -41
  870. package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
  871. package/dist/unstable/http/HttpServerResponse.js +8 -41
  872. package/dist/unstable/http/HttpServerResponse.js.map +1 -1
  873. package/dist/unstable/http/HttpStaticServer.d.ts +6 -31
  874. package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
  875. package/dist/unstable/http/HttpStaticServer.js +6 -31
  876. package/dist/unstable/http/HttpStaticServer.js.map +1 -1
  877. package/dist/unstable/http/HttpTraceContext.d.ts +0 -24
  878. package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
  879. package/dist/unstable/http/HttpTraceContext.js +0 -24
  880. package/dist/unstable/http/HttpTraceContext.js.map +1 -1
  881. package/dist/unstable/http/Multipart.d.ts +6 -35
  882. package/dist/unstable/http/Multipart.d.ts.map +1 -1
  883. package/dist/unstable/http/Multipart.js +6 -35
  884. package/dist/unstable/http/Multipart.js.map +1 -1
  885. package/dist/unstable/http/Multipasta/HeadersParser.d.ts +5 -0
  886. package/dist/unstable/http/Multipasta/HeadersParser.d.ts.map +1 -1
  887. package/dist/unstable/http/Multipasta/HeadersParser.js +5 -0
  888. package/dist/unstable/http/Multipasta/HeadersParser.js.map +1 -1
  889. package/dist/unstable/http/Multipasta/Node.d.ts +5 -0
  890. package/dist/unstable/http/Multipasta/Node.d.ts.map +1 -1
  891. package/dist/unstable/http/Multipasta/Node.js +5 -0
  892. package/dist/unstable/http/Multipasta/Node.js.map +1 -1
  893. package/dist/unstable/http/Multipasta/Search.d.ts +5 -0
  894. package/dist/unstable/http/Multipasta/Search.d.ts.map +1 -1
  895. package/dist/unstable/http/Multipasta/Search.js +5 -0
  896. package/dist/unstable/http/Multipasta/Search.js.map +1 -1
  897. package/dist/unstable/http/Multipasta/Web.d.ts +5 -0
  898. package/dist/unstable/http/Multipasta/Web.d.ts.map +1 -1
  899. package/dist/unstable/http/Multipasta/Web.js +5 -0
  900. package/dist/unstable/http/Multipasta/Web.js.map +1 -1
  901. package/dist/unstable/http/Multipasta.d.ts +6 -0
  902. package/dist/unstable/http/Multipasta.d.ts.map +1 -1
  903. package/dist/unstable/http/Multipasta.js +6 -0
  904. package/dist/unstable/http/Multipasta.js.map +1 -1
  905. package/dist/unstable/http/Template.d.ts +5 -26
  906. package/dist/unstable/http/Template.d.ts.map +1 -1
  907. package/dist/unstable/http/Template.js +5 -26
  908. package/dist/unstable/http/Template.js.map +1 -1
  909. package/dist/unstable/http/Url.d.ts +5 -28
  910. package/dist/unstable/http/Url.d.ts.map +1 -1
  911. package/dist/unstable/http/Url.js +5 -28
  912. package/dist/unstable/http/Url.js.map +1 -1
  913. package/dist/unstable/http/UrlParams.d.ts +4 -32
  914. package/dist/unstable/http/UrlParams.d.ts.map +1 -1
  915. package/dist/unstable/http/UrlParams.js +4 -32
  916. package/dist/unstable/http/UrlParams.js.map +1 -1
  917. package/dist/unstable/httpapi/HttpApi.d.ts +5 -45
  918. package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
  919. package/dist/unstable/httpapi/HttpApi.js.map +1 -1
  920. package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
  921. package/dist/unstable/httpapi/HttpApiBuilder.js +5 -39
  922. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  923. package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
  924. package/dist/unstable/httpapi/HttpApiClient.js +20 -43
  925. package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
  926. package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
  927. package/dist/unstable/httpapi/HttpApiEndpoint.js +9 -51
  928. package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
  929. package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
  930. package/dist/unstable/httpapi/HttpApiError.js +1 -32
  931. package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
  932. package/dist/unstable/httpapi/HttpApiGroup.d.ts +8 -34
  933. package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
  934. package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
  935. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +9 -48
  936. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
  937. package/dist/unstable/httpapi/HttpApiMiddleware.js +9 -48
  938. package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
  939. package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
  940. package/dist/unstable/httpapi/HttpApiScalar.js +0 -24
  941. package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
  942. package/dist/unstable/httpapi/HttpApiSchema.d.ts +0 -32
  943. package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
  944. package/dist/unstable/httpapi/HttpApiSchema.js +0 -32
  945. package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
  946. package/dist/unstable/httpapi/HttpApiSecurity.d.ts +0 -29
  947. package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
  948. package/dist/unstable/httpapi/HttpApiSecurity.js +0 -29
  949. package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
  950. package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
  951. package/dist/unstable/httpapi/HttpApiSwagger.js +0 -24
  952. package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
  953. package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
  954. package/dist/unstable/httpapi/HttpApiTest.js +5 -18
  955. package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
  956. package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
  957. package/dist/unstable/httpapi/OpenApi.js +5 -39
  958. package/dist/unstable/httpapi/OpenApi.js.map +1 -1
  959. package/dist/unstable/observability/Otlp.d.ts +5 -32
  960. package/dist/unstable/observability/Otlp.d.ts.map +1 -1
  961. package/dist/unstable/observability/Otlp.js.map +1 -1
  962. package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
  963. package/dist/unstable/observability/OtlpExporter.js +5 -22
  964. package/dist/unstable/observability/OtlpExporter.js.map +1 -1
  965. package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
  966. package/dist/unstable/observability/OtlpLogger.js +5 -31
  967. package/dist/unstable/observability/OtlpLogger.js.map +1 -1
  968. package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
  969. package/dist/unstable/observability/OtlpMetrics.js +8 -20
  970. package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
  971. package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
  972. package/dist/unstable/observability/OtlpResource.js +5 -35
  973. package/dist/unstable/observability/OtlpResource.js.map +1 -1
  974. package/dist/unstable/observability/OtlpSerialization.d.ts +4 -26
  975. package/dist/unstable/observability/OtlpSerialization.d.ts.map +1 -1
  976. package/dist/unstable/observability/OtlpSerialization.js +4 -26
  977. package/dist/unstable/observability/OtlpSerialization.js.map +1 -1
  978. package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
  979. package/dist/unstable/observability/OtlpTracer.js +7 -20
  980. package/dist/unstable/observability/OtlpTracer.js.map +1 -1
  981. package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -41
  982. package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
  983. package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
  984. package/dist/unstable/persistence/KeyValueStore.d.ts +8 -20
  985. package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
  986. package/dist/unstable/persistence/KeyValueStore.js +7 -19
  987. package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
  988. package/dist/unstable/persistence/Persistable.d.ts +5 -19
  989. package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
  990. package/dist/unstable/persistence/Persistable.js.map +1 -1
  991. package/dist/unstable/persistence/PersistedCache.d.ts +5 -28
  992. package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
  993. package/dist/unstable/persistence/PersistedCache.js +5 -28
  994. package/dist/unstable/persistence/PersistedCache.js.map +1 -1
  995. package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
  996. package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
  997. package/dist/unstable/persistence/Persistence.d.ts +6 -22
  998. package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
  999. package/dist/unstable/persistence/Persistence.js +5 -21
  1000. package/dist/unstable/persistence/Persistence.js.map +1 -1
  1001. package/dist/unstable/persistence/RateLimiter.d.ts +8 -24
  1002. package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
  1003. package/dist/unstable/persistence/RateLimiter.js +17 -35
  1004. package/dist/unstable/persistence/RateLimiter.js.map +1 -1
  1005. package/dist/unstable/persistence/Redis.d.ts.map +1 -1
  1006. package/dist/unstable/persistence/Redis.js +6 -32
  1007. package/dist/unstable/persistence/Redis.js.map +1 -1
  1008. package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
  1009. package/dist/unstable/process/ChildProcess.js +6 -38
  1010. package/dist/unstable/process/ChildProcess.js.map +1 -1
  1011. package/dist/unstable/process/ChildProcessSpawner.d.ts +7 -15
  1012. package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
  1013. package/dist/unstable/process/ChildProcessSpawner.js +7 -15
  1014. package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
  1015. package/dist/unstable/reactivity/AsyncResult.d.ts +8 -40
  1016. package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
  1017. package/dist/unstable/reactivity/AsyncResult.js +8 -40
  1018. package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
  1019. package/dist/unstable/reactivity/Atom.d.ts +8 -36
  1020. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  1021. package/dist/unstable/reactivity/Atom.js +8 -36
  1022. package/dist/unstable/reactivity/Atom.js.map +1 -1
  1023. package/dist/unstable/reactivity/AtomHttpApi.d.ts +6 -25
  1024. package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
  1025. package/dist/unstable/reactivity/AtomHttpApi.js +6 -25
  1026. package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
  1027. package/dist/unstable/reactivity/AtomRef.d.ts +4 -29
  1028. package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
  1029. package/dist/unstable/reactivity/AtomRef.js +4 -29
  1030. package/dist/unstable/reactivity/AtomRef.js.map +1 -1
  1031. package/dist/unstable/reactivity/AtomRegistry.d.ts +7 -74
  1032. package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
  1033. package/dist/unstable/reactivity/AtomRegistry.js +6 -73
  1034. package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
  1035. package/dist/unstable/reactivity/AtomRpc.d.ts +6 -20
  1036. package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
  1037. package/dist/unstable/reactivity/AtomRpc.js +6 -20
  1038. package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
  1039. package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
  1040. package/dist/unstable/reactivity/Hydration.js +8 -31
  1041. package/dist/unstable/reactivity/Hydration.js.map +1 -1
  1042. package/dist/unstable/reactivity/Reactivity.d.ts +6 -37
  1043. package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
  1044. package/dist/unstable/reactivity/Reactivity.js +6 -37
  1045. package/dist/unstable/reactivity/Reactivity.js.map +1 -1
  1046. package/dist/unstable/rpc/Rpc.d.ts +8 -40
  1047. package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
  1048. package/dist/unstable/rpc/Rpc.js.map +1 -1
  1049. package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
  1050. package/dist/unstable/rpc/RpcClient.js.map +1 -1
  1051. package/dist/unstable/rpc/RpcClientError.d.ts +0 -23
  1052. package/dist/unstable/rpc/RpcClientError.d.ts.map +1 -1
  1053. package/dist/unstable/rpc/RpcClientError.js +0 -23
  1054. package/dist/unstable/rpc/RpcClientError.js.map +1 -1
  1055. package/dist/unstable/rpc/RpcGroup.d.ts +5 -30
  1056. package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
  1057. package/dist/unstable/rpc/RpcGroup.js.map +1 -1
  1058. package/dist/unstable/rpc/RpcMessage.d.ts +0 -26
  1059. package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
  1060. package/dist/unstable/rpc/RpcMessage.js.map +1 -1
  1061. package/dist/unstable/rpc/RpcMiddleware.d.ts +0 -28
  1062. package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
  1063. package/dist/unstable/rpc/RpcMiddleware.js +0 -28
  1064. package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
  1065. package/dist/unstable/rpc/RpcSchema.d.ts +0 -25
  1066. package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
  1067. package/dist/unstable/rpc/RpcSchema.js +0 -25
  1068. package/dist/unstable/rpc/RpcSchema.js.map +1 -1
  1069. package/dist/unstable/rpc/RpcSerialization.d.ts +7 -33
  1070. package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
  1071. package/dist/unstable/rpc/RpcSerialization.js +6 -32
  1072. package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
  1073. package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
  1074. package/dist/unstable/rpc/RpcServer.js.map +1 -1
  1075. package/dist/unstable/rpc/RpcTest.d.ts +0 -24
  1076. package/dist/unstable/rpc/RpcTest.d.ts.map +1 -1
  1077. package/dist/unstable/rpc/RpcTest.js +0 -24
  1078. package/dist/unstable/rpc/RpcTest.js.map +1 -1
  1079. package/dist/unstable/rpc/RpcWorker.d.ts +6 -30
  1080. package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
  1081. package/dist/unstable/rpc/RpcWorker.js.map +1 -1
  1082. package/dist/unstable/rpc/Utils.d.ts.map +1 -1
  1083. package/dist/unstable/rpc/Utils.js.map +1 -1
  1084. package/dist/unstable/schema/Model.d.ts +20 -3
  1085. package/dist/unstable/schema/Model.d.ts.map +1 -1
  1086. package/dist/unstable/schema/Model.js +18 -17
  1087. package/dist/unstable/schema/Model.js.map +1 -1
  1088. package/dist/unstable/schema/VariantSchema.d.ts +5 -17
  1089. package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
  1090. package/dist/unstable/schema/VariantSchema.js.map +1 -1
  1091. package/dist/unstable/socket/Socket.d.ts +6 -21
  1092. package/dist/unstable/socket/Socket.d.ts.map +1 -1
  1093. package/dist/unstable/socket/Socket.js.map +1 -1
  1094. package/dist/unstable/socket/SocketServer.d.ts +6 -20
  1095. package/dist/unstable/socket/SocketServer.d.ts.map +1 -1
  1096. package/dist/unstable/socket/SocketServer.js +6 -20
  1097. package/dist/unstable/socket/SocketServer.js.map +1 -1
  1098. package/dist/unstable/sql/Migrator.d.ts.map +1 -1
  1099. package/dist/unstable/sql/Migrator.js +5 -40
  1100. package/dist/unstable/sql/Migrator.js.map +1 -1
  1101. package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
  1102. package/dist/unstable/sql/SqlClient.js +5 -19
  1103. package/dist/unstable/sql/SqlClient.js.map +1 -1
  1104. package/dist/unstable/sql/SqlConnection.d.ts +6 -18
  1105. package/dist/unstable/sql/SqlConnection.d.ts.map +1 -1
  1106. package/dist/unstable/sql/SqlConnection.js +6 -18
  1107. package/dist/unstable/sql/SqlConnection.js.map +1 -1
  1108. package/dist/unstable/sql/SqlError.d.ts.map +1 -1
  1109. package/dist/unstable/sql/SqlError.js +7 -32
  1110. package/dist/unstable/sql/SqlError.js.map +1 -1
  1111. package/dist/unstable/sql/SqlModel.d.ts +6 -14
  1112. package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
  1113. package/dist/unstable/sql/SqlModel.js.map +1 -1
  1114. package/dist/unstable/sql/SqlResolver.d.ts +6 -23
  1115. package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
  1116. package/dist/unstable/sql/SqlResolver.js +6 -23
  1117. package/dist/unstable/sql/SqlResolver.js.map +1 -1
  1118. package/dist/unstable/sql/SqlSchema.d.ts +3 -27
  1119. package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
  1120. package/dist/unstable/sql/SqlSchema.js +3 -27
  1121. package/dist/unstable/sql/SqlSchema.js.map +1 -1
  1122. package/dist/unstable/sql/SqlStream.d.ts.map +1 -1
  1123. package/dist/unstable/sql/SqlStream.js +0 -10
  1124. package/dist/unstable/sql/SqlStream.js.map +1 -1
  1125. package/dist/unstable/sql/Statement.d.ts.map +1 -1
  1126. package/dist/unstable/sql/Statement.js +6 -34
  1127. package/dist/unstable/sql/Statement.js.map +1 -1
  1128. package/dist/unstable/workers/Transferable.d.ts +0 -21
  1129. package/dist/unstable/workers/Transferable.d.ts.map +1 -1
  1130. package/dist/unstable/workers/Transferable.js +0 -21
  1131. package/dist/unstable/workers/Transferable.js.map +1 -1
  1132. package/dist/unstable/workers/Worker.d.ts +6 -34
  1133. package/dist/unstable/workers/Worker.d.ts.map +1 -1
  1134. package/dist/unstable/workers/Worker.js +6 -34
  1135. package/dist/unstable/workers/Worker.js.map +1 -1
  1136. package/dist/unstable/workers/WorkerError.d.ts.map +1 -1
  1137. package/dist/unstable/workers/WorkerError.js +4 -33
  1138. package/dist/unstable/workers/WorkerError.js.map +1 -1
  1139. package/dist/unstable/workers/WorkerRunner.d.ts +5 -30
  1140. package/dist/unstable/workers/WorkerRunner.d.ts.map +1 -1
  1141. package/dist/unstable/workers/WorkerRunner.js +5 -30
  1142. package/dist/unstable/workers/WorkerRunner.js.map +1 -1
  1143. package/dist/unstable/workflow/Activity.d.ts +5 -18
  1144. package/dist/unstable/workflow/Activity.d.ts.map +1 -1
  1145. package/dist/unstable/workflow/Activity.js.map +1 -1
  1146. package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
  1147. package/dist/unstable/workflow/DurableClock.js +5 -24
  1148. package/dist/unstable/workflow/DurableClock.js.map +1 -1
  1149. package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
  1150. package/dist/unstable/workflow/DurableDeferred.js +6 -18
  1151. package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
  1152. package/dist/unstable/workflow/DurableQueue.d.ts +0 -25
  1153. package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
  1154. package/dist/unstable/workflow/DurableQueue.js +0 -25
  1155. package/dist/unstable/workflow/DurableQueue.js.map +1 -1
  1156. package/dist/unstable/workflow/Workflow.d.ts +1 -1
  1157. package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
  1158. package/dist/unstable/workflow/Workflow.js +7 -19
  1159. package/dist/unstable/workflow/Workflow.js.map +1 -1
  1160. package/dist/unstable/workflow/WorkflowEngine.d.ts +8 -20
  1161. package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
  1162. package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
  1163. package/dist/unstable/workflow/WorkflowProxy.d.ts +7 -23
  1164. package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
  1165. package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
  1166. package/dist/unstable/workflow/WorkflowProxyServer.d.ts +6 -23
  1167. package/dist/unstable/workflow/WorkflowProxyServer.d.ts.map +1 -1
  1168. package/dist/unstable/workflow/WorkflowProxyServer.js.map +1 -1
  1169. package/package.json +1 -1
  1170. package/src/Array.ts +6 -81
  1171. package/src/BigDecimal.ts +5 -55
  1172. package/src/BigInt.ts +5 -64
  1173. package/src/Boolean.ts +5 -52
  1174. package/src/Brand.ts +0 -44
  1175. package/src/Cache.ts +5 -44
  1176. package/src/Cause.ts +6 -72
  1177. package/src/Channel.ts +6 -67
  1178. package/src/ChannelSchema.ts +5 -41
  1179. package/src/Chunk.ts +6 -67
  1180. package/src/Clock.ts +4 -56
  1181. package/src/Combiner.ts +6 -57
  1182. package/src/Config.ts +5 -69
  1183. package/src/ConfigProvider.ts +6 -75
  1184. package/src/Console.ts +6 -70
  1185. package/src/Context.ts +8 -47
  1186. package/src/Cron.ts +5 -41
  1187. package/src/Crypto.ts +6 -50
  1188. package/src/Data.ts +5 -72
  1189. package/src/DateTime.ts +8 -48
  1190. package/src/Deferred.ts +5 -58
  1191. package/src/Differ.ts +4 -35
  1192. package/src/Duration.ts +6 -46
  1193. package/src/Effect.ts +227 -103
  1194. package/src/Effectable.ts +4 -34
  1195. package/src/Encoding.ts +5 -46
  1196. package/src/Equal.ts +6 -66
  1197. package/src/Equivalence.ts +6 -48
  1198. package/src/ErrorReporter.ts +8 -47
  1199. package/src/ExecutionPlan.ts +6 -79
  1200. package/src/Exit.ts +6 -53
  1201. package/src/Fiber.ts +5 -52
  1202. package/src/FiberHandle.ts +8 -38
  1203. package/src/FiberMap.ts +7 -34
  1204. package/src/FiberSet.ts +6 -36
  1205. package/src/FileSystem.ts +8 -51
  1206. package/src/Filter.ts +8 -33
  1207. package/src/Formatter.ts +6 -49
  1208. package/src/Function.ts +5 -43
  1209. package/src/Graph.ts +79 -61
  1210. package/src/HKT.ts +6 -48
  1211. package/src/Hash.ts +7 -49
  1212. package/src/HashMap.ts +6 -69
  1213. package/src/HashRing.ts +6 -56
  1214. package/src/HashSet.ts +7 -36
  1215. package/src/Inspectable.ts +6 -60
  1216. package/src/Iterable.ts +5 -50
  1217. package/src/JsonPatch.ts +0 -53
  1218. package/src/JsonPointer.ts +4 -49
  1219. package/src/JsonSchema.ts +6 -82
  1220. package/src/Latch.ts +5 -31
  1221. package/src/Layer.ts +6 -38
  1222. package/src/LayerMap.ts +7 -32
  1223. package/src/LogLevel.ts +4 -35
  1224. package/src/Logger.ts +6 -80
  1225. package/src/ManagedRuntime.ts +6 -36
  1226. package/src/Match.ts +8 -42
  1227. package/src/Metric.ts +8 -81
  1228. package/src/MutableHashMap.ts +6 -35
  1229. package/src/MutableHashSet.ts +5 -63
  1230. package/src/MutableList.ts +6 -46
  1231. package/src/MutableRef.ts +7 -30
  1232. package/src/Newtype.ts +8 -61
  1233. package/src/NonEmptyIterable.ts +0 -135
  1234. package/src/Number.ts +4 -55
  1235. package/src/Optic.ts +9 -91
  1236. package/src/Option.ts +8 -69
  1237. package/src/Order.ts +8 -76
  1238. package/src/Ordering.ts +5 -31
  1239. package/src/PartitionedSemaphore.ts +0 -28
  1240. package/src/Path.ts +7 -29
  1241. package/src/Pipeable.ts +0 -11
  1242. package/src/PlatformError.ts +7 -29
  1243. package/src/Pool.ts +6 -42
  1244. package/src/Predicate.ts +6 -61
  1245. package/src/PrimaryKey.ts +0 -40
  1246. package/src/PubSub.ts +8 -56
  1247. package/src/Pull.ts +8 -25
  1248. package/src/Queue.ts +5 -62
  1249. package/src/Random.ts +18 -114
  1250. package/src/RcMap.ts +9 -17
  1251. package/src/RcRef.ts +6 -36
  1252. package/src/Record.ts +6 -71
  1253. package/src/Redactable.ts +0 -58
  1254. package/src/Redacted.ts +8 -41
  1255. package/src/Reducer.ts +5 -64
  1256. package/src/Ref.ts +8 -49
  1257. package/src/References.ts +0 -49
  1258. package/src/RegExp.ts +0 -26
  1259. package/src/Request.ts +6 -41
  1260. package/src/RequestResolver.ts +6 -41
  1261. package/src/Resource.ts +5 -30
  1262. package/src/Result.ts +6 -64
  1263. package/src/Runtime.ts +7 -55
  1264. package/src/Schedule.ts +5 -61
  1265. package/src/Scheduler.ts +6 -17
  1266. package/src/Schema.ts +697 -397
  1267. package/src/SchemaAST.ts +115 -91
  1268. package/src/SchemaGetter.ts +9 -83
  1269. package/src/SchemaIssue.ts +8 -76
  1270. package/src/SchemaParser.ts +27 -43
  1271. package/src/SchemaRepresentation.ts +10 -84
  1272. package/src/SchemaTransformation.ts +9 -82
  1273. package/src/SchemaUtils.ts +5 -33
  1274. package/src/Scope.ts +6 -41
  1275. package/src/ScopedCache.ts +8 -23
  1276. package/src/ScopedRef.ts +6 -18
  1277. package/src/Semaphore.ts +8 -30
  1278. package/src/Sink.ts +6 -29
  1279. package/src/Stdio.ts +7 -26
  1280. package/src/Stream.ts +8 -79
  1281. package/src/String.ts +5 -63
  1282. package/src/Struct.ts +9 -71
  1283. package/src/SubscriptionRef.ts +6 -53
  1284. package/src/Symbol.ts +0 -17
  1285. package/src/SynchronizedRef.ts +8 -21
  1286. package/src/Take.ts +0 -24
  1287. package/src/Terminal.ts +7 -28
  1288. package/src/Tracer.ts +6 -36
  1289. package/src/Trie.ts +6 -49
  1290. package/src/Tuple.ts +8 -66
  1291. package/src/TxChunk.ts +8 -40
  1292. package/src/TxDeferred.ts +0 -18
  1293. package/src/TxHashMap.ts +6 -23
  1294. package/src/TxHashSet.ts +10 -19
  1295. package/src/TxPriorityQueue.ts +9 -29
  1296. package/src/TxPubSub.ts +6 -44
  1297. package/src/TxQueue.ts +8 -48
  1298. package/src/TxReentrantLock.ts +8 -40
  1299. package/src/TxRef.ts +9 -59
  1300. package/src/TxSemaphore.ts +6 -34
  1301. package/src/TxSubscriptionRef.ts +7 -35
  1302. package/src/Types.ts +6 -48
  1303. package/src/UndefinedOr.ts +8 -55
  1304. package/src/Unify.ts +8 -29
  1305. package/src/Utils.ts +28 -68
  1306. package/src/internal/effect.ts +9 -8
  1307. package/src/internal/option.ts +31 -26
  1308. package/src/internal/schema/arbitrary.ts +740 -173
  1309. package/src/internal/schema/representation.ts +1 -1
  1310. package/src/testing/FastCheck.ts +5 -6
  1311. package/src/testing/TestClock.ts +8 -23
  1312. package/src/testing/TestConsole.ts +7 -36
  1313. package/src/testing/TestSchema.ts +6 -63
  1314. package/src/unstable/ai/AiError.ts +9 -78
  1315. package/src/unstable/ai/AnthropicStructuredOutput.ts +7 -32
  1316. package/src/unstable/ai/Chat.ts +0 -46
  1317. package/src/unstable/ai/EmbeddingModel.ts +8 -45
  1318. package/src/unstable/ai/IdGenerator.ts +6 -44
  1319. package/src/unstable/ai/LanguageModel.ts +9 -48
  1320. package/src/unstable/ai/McpSchema.ts +8 -27
  1321. package/src/unstable/ai/McpServer.ts +7 -21
  1322. package/src/unstable/ai/Model.ts +8 -49
  1323. package/src/unstable/ai/OpenAiStructuredOutput.ts +9 -49
  1324. package/src/unstable/ai/Prompt.ts +6 -50
  1325. package/src/unstable/ai/Response.ts +8 -49
  1326. package/src/unstable/ai/ResponseIdTracker.ts +0 -26
  1327. package/src/unstable/ai/Telemetry.ts +6 -30
  1328. package/src/unstable/ai/Tokenizer.ts +8 -46
  1329. package/src/unstable/ai/Tool.ts +9 -54
  1330. package/src/unstable/ai/Toolkit.ts +6 -75
  1331. package/src/unstable/cli/Argument.ts +6 -20
  1332. package/src/unstable/cli/CliError.ts +8 -23
  1333. package/src/unstable/cli/CliOutput.ts +6 -19
  1334. package/src/unstable/cli/Command.ts +8 -27
  1335. package/src/unstable/cli/Completions.ts +0 -24
  1336. package/src/unstable/cli/Flag.ts +8 -18
  1337. package/src/unstable/cli/GlobalFlag.ts +10 -22
  1338. package/src/unstable/cli/HelpDoc.ts +6 -19
  1339. package/src/unstable/cli/Param.ts +8 -25
  1340. package/src/unstable/cli/Primitive.ts +8 -58
  1341. package/src/unstable/cli/Prompt.ts +8 -23
  1342. package/src/unstable/cluster/ClusterCron.ts +6 -26
  1343. package/src/unstable/cluster/ClusterError.ts +5 -40
  1344. package/src/unstable/cluster/ClusterMetrics.ts +6 -20
  1345. package/src/unstable/cluster/ClusterSchema.ts +0 -38
  1346. package/src/unstable/cluster/ClusterWorkflowEngine.ts +0 -16
  1347. package/src/unstable/cluster/DeliverAt.ts +0 -17
  1348. package/src/unstable/cluster/Entity.ts +8 -31
  1349. package/src/unstable/cluster/EntityAddress.ts +0 -13
  1350. package/src/unstable/cluster/EntityId.ts +0 -24
  1351. package/src/unstable/cluster/EntityProxy.ts +6 -20
  1352. package/src/unstable/cluster/EntityProxyServer.ts +7 -19
  1353. package/src/unstable/cluster/EntityResource.ts +8 -22
  1354. package/src/unstable/cluster/EntityType.ts +0 -13
  1355. package/src/unstable/cluster/Envelope.ts +7 -22
  1356. package/src/unstable/cluster/HttpRunner.ts +5 -32
  1357. package/src/unstable/cluster/K8sHttpClient.ts +0 -32
  1358. package/src/unstable/cluster/MachineId.ts +0 -20
  1359. package/src/unstable/cluster/Message.ts +7 -23
  1360. package/src/unstable/cluster/MessageStorage.ts +7 -36
  1361. package/src/unstable/cluster/Reply.ts +7 -19
  1362. package/src/unstable/cluster/Runner.ts +3 -35
  1363. package/src/unstable/cluster/RunnerAddress.ts +4 -32
  1364. package/src/unstable/cluster/RunnerHealth.ts +6 -35
  1365. package/src/unstable/cluster/RunnerServer.ts +8 -23
  1366. package/src/unstable/cluster/RunnerStorage.ts +6 -21
  1367. package/src/unstable/cluster/Runners.ts +7 -28
  1368. package/src/unstable/cluster/ShardId.ts +0 -17
  1369. package/src/unstable/cluster/Sharding.ts +7 -39
  1370. package/src/unstable/cluster/ShardingConfig.ts +7 -34
  1371. package/src/unstable/cluster/ShardingRegistrationEvent.ts +0 -22
  1372. package/src/unstable/cluster/SingleRunner.ts +7 -20
  1373. package/src/unstable/cluster/Singleton.ts +0 -23
  1374. package/src/unstable/cluster/SingletonAddress.ts +0 -22
  1375. package/src/unstable/cluster/Snowflake.ts +7 -16
  1376. package/src/unstable/cluster/SocketRunner.ts +6 -19
  1377. package/src/unstable/cluster/SqlMessageStorage.ts +7 -36
  1378. package/src/unstable/cluster/SqlRunnerStorage.ts +6 -27
  1379. package/src/unstable/cluster/TestRunner.ts +0 -21
  1380. package/src/unstable/cluster/internal/entityManager.ts +23 -5
  1381. package/src/unstable/devtools/DevTools.ts +0 -17
  1382. package/src/unstable/devtools/DevToolsClient.ts +0 -24
  1383. package/src/unstable/devtools/DevToolsSchema.ts +0 -17
  1384. package/src/unstable/devtools/DevToolsServer.ts +0 -13
  1385. package/src/unstable/encoding/Msgpack.ts +5 -28
  1386. package/src/unstable/encoding/Ndjson.ts +4 -28
  1387. package/src/unstable/encoding/Sse.ts +6 -37
  1388. package/src/unstable/eventlog/Event.ts +3 -25
  1389. package/src/unstable/eventlog/EventGroup.ts +6 -21
  1390. package/src/unstable/eventlog/EventJournal.ts +9 -32
  1391. package/src/unstable/eventlog/EventLog.ts +6 -28
  1392. package/src/unstable/eventlog/EventLogEncryption.ts +5 -18
  1393. package/src/unstable/eventlog/EventLogMessage.ts +4 -20
  1394. package/src/unstable/eventlog/EventLogRemote.ts +7 -17
  1395. package/src/unstable/eventlog/EventLogServer.ts +3 -26
  1396. package/src/unstable/eventlog/EventLogServerEncrypted.ts +7 -18
  1397. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +7 -35
  1398. package/src/unstable/eventlog/EventLogSessionAuth.ts +6 -35
  1399. package/src/unstable/eventlog/SqlEventJournal.ts +0 -26
  1400. package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +6 -39
  1401. package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +0 -29
  1402. package/src/unstable/http/Cookies.ts +6 -58
  1403. package/src/unstable/http/Etag.ts +0 -22
  1404. package/src/unstable/http/FetchHttpClient.ts +0 -23
  1405. package/src/unstable/http/FindMyWay.ts +6 -0
  1406. package/src/unstable/http/Headers.ts +9 -54
  1407. package/src/unstable/http/HttpBody.ts +9 -53
  1408. package/src/unstable/http/HttpClient.ts +9 -34
  1409. package/src/unstable/http/HttpClientError.ts +0 -20
  1410. package/src/unstable/http/HttpClientRequest.ts +4 -35
  1411. package/src/unstable/http/HttpClientResponse.ts +6 -34
  1412. package/src/unstable/http/HttpEffect.ts +5 -33
  1413. package/src/unstable/http/HttpIncomingMessage.ts +6 -22
  1414. package/src/unstable/http/HttpMethod.ts +5 -29
  1415. package/src/unstable/http/HttpMiddleware.ts +6 -19
  1416. package/src/unstable/http/HttpPlatform.ts +0 -13
  1417. package/src/unstable/http/HttpRouter.ts +7 -39
  1418. package/src/unstable/http/HttpServer.ts +6 -29
  1419. package/src/unstable/http/HttpServerError.ts +6 -30
  1420. package/src/unstable/http/HttpServerRequest.ts +7 -32
  1421. package/src/unstable/http/HttpServerRespondable.ts +5 -29
  1422. package/src/unstable/http/HttpServerResponse.ts +8 -41
  1423. package/src/unstable/http/HttpStaticServer.ts +6 -31
  1424. package/src/unstable/http/HttpTraceContext.ts +0 -24
  1425. package/src/unstable/http/Multipart.ts +6 -35
  1426. package/src/unstable/http/Multipasta/HeadersParser.ts +5 -0
  1427. package/src/unstable/http/Multipasta/Node.ts +5 -0
  1428. package/src/unstable/http/Multipasta/Search.ts +5 -0
  1429. package/src/unstable/http/Multipasta/Web.ts +5 -0
  1430. package/src/unstable/http/Multipasta.ts +6 -0
  1431. package/src/unstable/http/Template.ts +5 -26
  1432. package/src/unstable/http/Url.ts +5 -28
  1433. package/src/unstable/http/UrlParams.ts +4 -32
  1434. package/src/unstable/httpapi/HttpApi.ts +5 -45
  1435. package/src/unstable/httpapi/HttpApiBuilder.ts +5 -39
  1436. package/src/unstable/httpapi/HttpApiClient.ts +20 -43
  1437. package/src/unstable/httpapi/HttpApiEndpoint.ts +9 -51
  1438. package/src/unstable/httpapi/HttpApiError.ts +1 -32
  1439. package/src/unstable/httpapi/HttpApiGroup.ts +8 -34
  1440. package/src/unstable/httpapi/HttpApiMiddleware.ts +9 -48
  1441. package/src/unstable/httpapi/HttpApiScalar.ts +0 -24
  1442. package/src/unstable/httpapi/HttpApiSchema.ts +0 -32
  1443. package/src/unstable/httpapi/HttpApiSecurity.ts +0 -29
  1444. package/src/unstable/httpapi/HttpApiSwagger.ts +0 -24
  1445. package/src/unstable/httpapi/HttpApiTest.ts +5 -18
  1446. package/src/unstable/httpapi/OpenApi.ts +6 -40
  1447. package/src/unstable/observability/Otlp.ts +5 -32
  1448. package/src/unstable/observability/OtlpExporter.ts +5 -22
  1449. package/src/unstable/observability/OtlpLogger.ts +5 -31
  1450. package/src/unstable/observability/OtlpMetrics.ts +8 -20
  1451. package/src/unstable/observability/OtlpResource.ts +5 -35
  1452. package/src/unstable/observability/OtlpSerialization.ts +4 -26
  1453. package/src/unstable/observability/OtlpTracer.ts +7 -20
  1454. package/src/unstable/observability/PrometheusMetrics.ts +4 -41
  1455. package/src/unstable/persistence/KeyValueStore.ts +8 -20
  1456. package/src/unstable/persistence/Persistable.ts +4 -18
  1457. package/src/unstable/persistence/PersistedCache.ts +5 -28
  1458. package/src/unstable/persistence/PersistedQueue.ts +6 -22
  1459. package/src/unstable/persistence/Persistence.ts +5 -21
  1460. package/src/unstable/persistence/RateLimiter.ts +17 -35
  1461. package/src/unstable/persistence/Redis.ts +6 -32
  1462. package/src/unstable/process/ChildProcess.ts +6 -38
  1463. package/src/unstable/process/ChildProcessSpawner.ts +7 -15
  1464. package/src/unstable/reactivity/AsyncResult.ts +7 -39
  1465. package/src/unstable/reactivity/Atom.ts +8 -36
  1466. package/src/unstable/reactivity/AtomHttpApi.ts +6 -25
  1467. package/src/unstable/reactivity/AtomRef.ts +4 -29
  1468. package/src/unstable/reactivity/AtomRegistry.ts +6 -73
  1469. package/src/unstable/reactivity/AtomRpc.ts +6 -20
  1470. package/src/unstable/reactivity/Hydration.ts +8 -31
  1471. package/src/unstable/reactivity/Reactivity.ts +6 -37
  1472. package/src/unstable/rpc/Rpc.ts +8 -40
  1473. package/src/unstable/rpc/RpcClient.ts +6 -32
  1474. package/src/unstable/rpc/RpcClientError.ts +0 -23
  1475. package/src/unstable/rpc/RpcGroup.ts +5 -30
  1476. package/src/unstable/rpc/RpcMessage.ts +0 -26
  1477. package/src/unstable/rpc/RpcMiddleware.ts +0 -28
  1478. package/src/unstable/rpc/RpcSchema.ts +0 -25
  1479. package/src/unstable/rpc/RpcSerialization.ts +6 -32
  1480. package/src/unstable/rpc/RpcServer.ts +7 -40
  1481. package/src/unstable/rpc/RpcTest.ts +0 -24
  1482. package/src/unstable/rpc/RpcWorker.ts +6 -30
  1483. package/src/unstable/rpc/Utils.ts +5 -21
  1484. package/src/unstable/schema/Model.ts +28 -19
  1485. package/src/unstable/schema/VariantSchema.ts +5 -17
  1486. package/src/unstable/socket/Socket.ts +6 -21
  1487. package/src/unstable/socket/SocketServer.ts +6 -20
  1488. package/src/unstable/sql/Migrator.ts +5 -40
  1489. package/src/unstable/sql/SqlClient.ts +5 -19
  1490. package/src/unstable/sql/SqlConnection.ts +6 -18
  1491. package/src/unstable/sql/SqlError.ts +7 -32
  1492. package/src/unstable/sql/SqlModel.ts +6 -14
  1493. package/src/unstable/sql/SqlResolver.ts +6 -23
  1494. package/src/unstable/sql/SqlSchema.ts +3 -27
  1495. package/src/unstable/sql/SqlStream.ts +0 -10
  1496. package/src/unstable/sql/Statement.ts +6 -34
  1497. package/src/unstable/workers/Transferable.ts +0 -21
  1498. package/src/unstable/workers/Worker.ts +6 -34
  1499. package/src/unstable/workers/WorkerError.ts +4 -33
  1500. package/src/unstable/workers/WorkerRunner.ts +5 -30
  1501. package/src/unstable/workflow/Activity.ts +5 -18
  1502. package/src/unstable/workflow/DurableClock.ts +5 -24
  1503. package/src/unstable/workflow/DurableDeferred.ts +6 -18
  1504. package/src/unstable/workflow/DurableQueue.ts +0 -25
  1505. package/src/unstable/workflow/Workflow.ts +9 -21
  1506. package/src/unstable/workflow/WorkflowEngine.ts +7 -19
  1507. package/src/unstable/workflow/WorkflowProxy.ts +7 -23
  1508. package/src/unstable/workflow/WorkflowProxyServer.ts +6 -23
@@ -1,37 +1,12 @@
1
1
  /**
2
- * Structured SQL failures for unstable SQL clients and driver integrations.
2
+ * Defines structured failures for SQL clients and driver integrations.
3
3
  *
4
- * This module provides the top-level `SqlError` wrapper, the concrete
5
- * `SqlErrorReason` variants used by adapters, schemas for encoding or decoding
6
- * those errors, guards for recognizing them, and a SQLite classifier for native
7
- * driver causes. The model keeps query mistakes, authentication and
8
- * authorization failures, constraint violations, connection failures, lock
9
- * waits, deadlocks, serialization conflicts, statement timeouts, and unknown
10
- * failures distinguishable in the Effect error channel.
11
- *
12
- * **Mental model**
13
- *
14
- * `SqlError` wraps exactly one reason. Its `message`, `cause`, and
15
- * `isRetryable` values are delegated to that reason, so recovery code can branch
16
- * on either the reason tag or the retryability flag without losing the original
17
- * native cause. Reasons are intentionally driver-neutral; adapters translate
18
- * database-specific error codes into this shared vocabulary.
19
- *
20
- * **Common tasks**
21
- *
22
- * Construct a reason when adapting a driver failure, wrap it in `SqlError` for
23
- * client APIs, use `isSqlError` or `isSqlErrorReason` at boundaries that receive
24
- * unknown failures, and use `classifySqliteError` when mapping SQLite `code` or
25
- * `errno` values.
26
- *
27
- * **Gotchas**
28
- *
29
- * Preserve the native `cause` and `operation` metadata when constructing these
30
- * errors; they are often the only way to diagnose dialect-specific failures.
31
- * Retryable reasons represent transient infrastructure or concurrency problems,
32
- * while syntax, credential, permission, and constraint failures generally need a
33
- * changed query, configuration, or data set. SQLite unique violations include a
34
- * best-effort constraint name when one can be extracted.
4
+ * `SqlError` wraps the different reasons a SQL operation can fail, such as
5
+ * connection, authentication, authorization, syntax, constraint, or transaction
6
+ * problems. Each reason keeps the original cause, optional message and
7
+ * operation metadata, and whether retrying may succeed. This module also
8
+ * includes schemas, guards, a SQLite error classifier, and the
9
+ * `ResultLengthMismatch` error used by ordered batched SQL resolvers.
35
10
  *
36
11
  * @since 4.0.0
37
12
  */
@@ -1,20 +1,12 @@
1
1
  /**
2
2
  * Builds SQL repositories and request resolvers from Effect schema models.
3
3
  *
4
- * Use this module when a `Model` describes rows in a concrete SQL table and
5
- * you want the common insert, update, find-by-id, and delete operations without
6
- * hand-writing the schema encoding, row decoding, and resolver batching each
7
- * time. The helpers are intended for model-backed tables where the model field
8
- * names line up with the encoded table columns and the chosen `idColumn` is
9
- * present in both the model fields and update schema.
10
- *
11
- * Returned rows are decoded with the full model schema, while insert and update
12
- * requests are encoded with the model's dedicated input schemas. Soft deletes
13
- * are opt-in via `softDeleteColumn`: reads and updates only see rows where that
14
- * column is `null`, and deletes set it to `CURRENT_TIMESTAMP` instead of
15
- * removing the row. Dialects with `returning` support return changed rows
16
- * directly; MySQL performs a follow-up `select`, so generated ids, defaults,
17
- * and trigger-updated values must be observable from that query.
4
+ * Use this module when a schema `Model` represents rows in a SQL table and the
5
+ * usual insert, update, find-by-id, delete, and batching behavior should be
6
+ * derived from that model. The helpers encode insert and update input with the
7
+ * model's input schemas and decode returned rows with the full model schema.
8
+ * Soft deletes are optional, and SQL dialect differences such as `returning`
9
+ * support are handled by the repository implementation.
18
10
  *
19
11
  * @since 4.0.0
20
12
  */
@@ -1,29 +1,12 @@
1
1
  /**
2
2
  * Schema-aware `RequestResolver` helpers for SQL-backed data loading.
3
3
  *
4
- * This module bridges `Effect.request` with `SqlClient` by representing each
5
- * lookup or mutation as a `SqlRequest` and batching concurrent requests into a
6
- * single SQL operation. Request payloads are encoded with the request schema
7
- * before `execute` is called, and rows returned by the query are decoded with
8
- * the result schema before entries are completed.
9
- *
10
- * Use `ordered` when a query returns exactly one row per request in the same
11
- * order, `findById` for `where id in (...)` lookups, `grouped` for one-to-many
12
- * relationships, and `void` for inserts, updates, deletes, or other
13
- * side-effecting statements where no row is needed.
14
- *
15
- * **Gotchas**
16
- *
17
- * - `ordered` requires the result count and order to match the request batch.
18
- * - `grouped` and `findById` rely on stable request/result keys and fail
19
- * missing requests with `NoSuchElementError`.
20
- * - Equal payloads are equal `SqlRequest`s, which enables request batching,
21
- * deduplication, and cache reuse; model payload identity deliberately.
22
- * - Batches are split by the active SQL transaction connection, so requests
23
- * made in different transactions are not resolved together.
24
- * - Queries like `where id in (...)` often return rows in database order; use
25
- * `findById` or `grouped`, or preserve input order explicitly before choosing
26
- * `ordered`.
4
+ * This module represents each lookup or mutation as a `SqlRequest` and batches
5
+ * concurrent requests into SQL operations. Request payloads are encoded with the
6
+ * request schema before `execute` is called, and returned rows are decoded with
7
+ * the result schema before requests are completed. It provides ordered,
8
+ * grouped, id-based, and side-effect-only resolver constructors, and keeps
9
+ * batches separated by the active SQL transaction connection.
27
10
  *
28
11
  * @since 4.0.0
29
12
  */
@@ -4,33 +4,9 @@
4
4
  * `SqlSchema` is a small adapter between Effect Schema and SQL statements. Each
5
5
  * helper builds a function that accepts the decoded request type used by
6
6
  * application code, encodes it before calling `execute`, and decodes unknown
7
- * driver rows into the result schema. The helpers differ only in how many rows
8
- * they expect and how they represent an empty result set.
9
- *
10
- * **Mental model**
11
- *
12
- * The request schema protects the boundary going into SQL, and the result
13
- * schema protects the boundary coming back out. `execute` still owns statement
14
- * construction and database execution; this module only shapes the values that
15
- * cross that boundary.
16
- *
17
- * **Common tasks**
18
- *
19
- * - Use {@link findAll} for queries that may return any number of rows.
20
- * - Use {@link findNonEmpty} when an empty result is a failure.
21
- * - Use {@link findOne} when the first row is required.
22
- * - Use {@link findOneOption} when the first row is optional.
23
- * - Use `void` for writes where the encoded request matters but the driver
24
- * result should be discarded.
25
- *
26
- * **Gotchas**
27
- *
28
- * `execute` receives `Req["Encoded"]`, not `Req["Type"]`. Any schema
29
- * transformations, encoding services, nullable columns, JSON values, dates, and
30
- * bigint representations must match the SQL builder and dialect in use. Result
31
- * schemas decode rows after SQL client row transforms have run. {@link findOne}
32
- * and {@link findOneOption} only inspect the first returned row; they do not
33
- * assert that the query returned exactly one row.
7
+ * driver rows into the result schema. The helpers cover returning all rows, a
8
+ * non-empty row list, the first row, an optional first row, or discarding the
9
+ * SQL result for side-effect-only statements.
34
10
  *
35
11
  * @since 4.0.0
36
12
  */
@@ -9,16 +9,6 @@
9
9
  * `Connection.executeStream`, so callers can process large result sets
10
10
  * incrementally instead of materializing every row in memory.
11
11
  *
12
- * The adapter is scoped: driver cursors, query streams, or reserved
13
- * connections should be acquired in the registration effect and released with
14
- * finalizers. The internal queue is bounded and calls the producer's
15
- * `onPause`/`onResume` hooks when downstream consumption falls behind, but the
16
- * underlying driver still has to honor those hooks for backpressure to be
17
- * effective. Slow consumers may keep a database cursor and connection open for
18
- * the lifetime of the stream, so integrations should close or destroy driver
19
- * resources on interruption, failure, or normal completion and should signal
20
- * terminal events with `fail` or `end` exactly once.
21
- *
22
12
  * @since 4.0.0
23
13
  */
24
14
  import * as Cause from "../../Cause.ts"
@@ -1,40 +1,12 @@
1
1
  /**
2
2
  * Low-level SQL statement and fragment primitives.
3
3
  *
4
- * This module is the foundation used by SQL clients to build executable,
5
- * parameterized SQL. It defines the {@link Statement} and {@link Fragment}
6
- * models, the tagged-template {@link Constructor}, segment constructors for
7
- * identifiers, parameters, literals, arrays, records, and custom dialect data,
8
- * plus compilers that render those segments into dialect-specific SQL text and
9
- * bind parameters.
10
- *
11
- * **Mental model**
12
- *
13
- * A statement is a sequence of {@link Segment} values. In a tagged template,
14
- * nested fragments and known segments are spliced into that sequence, while
15
- * ordinary interpolated values become bound parameters. A {@link Compiler}
16
- * turns the sequence into SQL for one dialect, escaping identifiers and
17
- * formatting placeholders for that dialect. Executing a {@link Statement} uses
18
- * the connection acquirer captured by {@link make} and can return rows, raw
19
- * results, streams, values, or unprepared execution paths.
20
- *
21
- * **Common tasks**
22
- *
23
- * - Build statements with a {@link Constructor} tagged template
24
- * - Use {@link identifier} for table and column names rather than interpolating
25
- * plain strings
26
- * - Compose optional clauses with {@link and}, {@link or}, {@link csv}, and
27
- * {@link join}
28
- * - Create insert and update fragments with record helpers
29
- * - Add custom segment handling with {@link custom} and {@link makeCompiler}
30
- *
31
- * **Gotchas**
32
- *
33
- * Bound parameters protect values, not SQL syntax. Use `literal` and `unsafe`
34
- * only for trusted SQL text, and use identifiers for names that need escaping.
35
- * Compiled SQL is dialect-specific and cached on the statement;
36
- * `withoutTransform` intentionally bypasses identifier or row transforms, so
37
- * its output can differ from normal execution.
4
+ * `SqlClient` uses this module to build executable, parameterized SQL from
5
+ * reusable fragments. A statement can be executed, streamed, run without row
6
+ * transformation, or compiled to SQL text and parameters for a specific
7
+ * dialect. The module also contains helpers for identifiers, parameters,
8
+ * inserts, updates, custom dialect fragments, statement compilation, and row
9
+ * transformation.
38
10
  *
39
11
  * @since 4.0.0
40
12
  */
@@ -8,27 +8,6 @@
8
8
  * Worker platforms then pass the collected values as the transfer list for the
9
9
  * same `postMessage` call, avoiding copies for large payloads and ports.
10
10
  *
11
- * **Mental model**
12
- *
13
- * A `Collector` is an optional context service. During encoding, `getterAddAll`
14
- * and `schema` add transferable values when a collector is present and leave the
15
- * encoded value unchanged. The built-in `Uint8Array`, `ImageData`, and
16
- * `MessagePort` schemas are convenience wrappers around the same behavior.
17
- *
18
- * **Common tasks**
19
- *
20
- * Wrap a worker message field with `schema` when the transferable is nested or
21
- * derived from the encoded value. Provide a fresh collector around each message
22
- * encode, read or clear it after encoding, and pass the resulting list to the
23
- * worker transport.
24
- *
25
- * **Gotchas**
26
- *
27
- * Transfer annotations do not make unsupported values structured-cloneable.
28
- * Ownership moves to the receiver after `postMessage`, so buffers are detached
29
- * from the sender. For typed array views, collecting `view.buffer` transfers the
30
- * whole backing buffer, including bytes used by other views.
31
- *
32
11
  * @since 4.0.0
33
12
  */
34
13
  import * as Context from "../../Context.ts"
@@ -1,40 +1,12 @@
1
1
  /**
2
2
  * Client-side worker primitives shared by browser, Node, and Bun adapters.
3
3
  *
4
- * This module defines the platform-neutral {@link Worker} client and the
5
- * {@link WorkerPlatform} service that creates one for a numeric worker id.
6
- * Platform packages provide the runtime-specific spawn, setup, listen, and
7
- * cleanup logic; higher-level code uses the resulting worker to send messages
8
- * and run an Effect handler for messages coming back from the worker.
9
- *
10
- * **Mental model**
11
- *
12
- * A {@link Spawner} locates or creates the native worker value, and
13
- * {@link makePlatform} turns platform hooks into a scoped {@link Worker}.
14
- * Sending and receiving are separate: `send` queues outbound values until
15
- * `run` observes the platform ready signal, then `run` keeps the message loop
16
- * alive and owns the cleanup scope for the active port.
17
- *
18
- * **Common tasks**
19
- *
20
- * Use {@link layerSpawner} to provide the runtime's worker lookup function,
21
- * {@link makePlatform} to build browser, Node, Bun, or custom adapters, and
22
- * {@link makeUnsafe} when an adapter already exposes the low-level platform
23
- * protocol. Worker-backed RPC clients use these primitives to communicate with
24
- * dedicated workers, shared workers, `MessagePort`s, worker threads, or child
25
- * processes.
26
- *
27
- * **Gotchas**
28
- *
29
- * - Messages sent before readiness are buffered, so the returned worker must be
30
- * run or those messages never leave the client
31
- * - Values pass through `postMessage`; callers must use values supported by
32
- * the selected runtime's structured clone implementation
33
- * - Transfer lists can avoid copies, but ownership moves to the worker and
34
- * invalid transfer lists fail with `WorkerSendError`
35
- * - Incoming messages are handled concurrently in the run fiber set; add a
36
- * queue, semaphore, or protocol acknowledgement when ordering or back
37
- * pressure matters
4
+ * This module defines the platform-neutral `Worker` client, the `WorkerPlatform`
5
+ * service that creates workers by numeric id, and the `Spawner` service used to
6
+ * find platform-specific worker instances. `makePlatform` wraps platform setup
7
+ * and listen hooks into a `WorkerPlatform`, buffers outgoing messages until the
8
+ * worker is ready, runs incoming messages with Effect handlers, and ties worker
9
+ * cleanup to scope lifetime.
38
10
  *
39
11
  * @since 4.0.0
40
12
  */
@@ -1,38 +1,9 @@
1
1
  /**
2
- * The `WorkerError` module defines the typed error model shared by the
3
- * unstable worker APIs. Worker client and runner platforms use
4
- * {@link WorkerError} when platform setup, sending, receiving, or
5
- * runtime-specific worker behavior fails.
2
+ * Typed error model for worker APIs.
6
3
  *
7
- * **Mental model**
8
- *
9
- * - {@link WorkerError} is the outer error exposed in worker effect error
10
- * channels
11
- * - {@link WorkerErrorReason} records one tagged reason: spawn, send,
12
- * receive, or unknown
13
- * - The outer error delegates `message` and `cause` to the nested reason
14
- * - Reason schemas can be encoded and decoded when worker or RPC layers need
15
- * structured diagnostics
16
- *
17
- * **Common tasks**
18
- *
19
- * - Detect worker failures with {@link isWorkerError}
20
- * - Classify startup and setup problems with {@link WorkerSpawnError}
21
- * - Classify `postMessage` or transfer-list failures with
22
- * {@link WorkerSendError}
23
- * - Classify inbound event, `messageerror`, or worker-exit failures with
24
- * {@link WorkerReceiveError}
25
- * - Preserve runtime-specific failures that do not fit another case with
26
- * {@link WorkerUnknownError}
27
- *
28
- * **Gotchas**
29
- *
30
- * - The `cause` is diagnostic data and can have different shapes across
31
- * browser, Node, Bun, and child-process transports
32
- * - A `WorkerSendError` often means the payload was invalid for the selected
33
- * structured-clone or transfer-list rules
34
- * - A `WorkerSpawnError` can mean the runner code is not executing inside the
35
- * expected worker context
4
+ * This module defines the `WorkerError` wrapper, the reason variants for spawn,
5
+ * send, receive, and unknown worker failures, a schema union for those reasons,
6
+ * and a guard for recognizing worker errors at runtime.
36
7
  *
37
8
  * @since 4.0.0
38
9
  */
@@ -1,35 +1,10 @@
1
1
  /**
2
- * Platform-neutral primitives for code running inside worker-like runtimes.
2
+ * Worker-side primitives for worker-like runtimes.
3
3
  *
4
- * This module gives browser workers, shared workers, Node worker threads, Bun
5
- * workers, and child-process adapters the same server-side shape: start a
6
- * runner, receive messages tagged by a numeric port id, and send replies back
7
- * through the matching transport.
8
- *
9
- * **Mental model**
10
- *
11
- * `WorkerRunnerPlatform` is installed inside the worker-like runtime. Starting
12
- * it yields a `WorkerRunner`, and `WorkerRunner.run` attaches the message
13
- * handler. Incoming values use the small `PlatformMessage` protocol:
14
- * `[0, payload]` delivers a request and `[1]` closes a port. Higher-level
15
- * protocols, such as RPC over workers, decide how payloads are encoded before
16
- * they reach this layer.
17
- *
18
- * **Common tasks**
19
- *
20
- * - Start the current platform from the {@link WorkerRunnerPlatform} service
21
- * - Handle inbound messages with `WorkerRunner.run`
22
- * - Send responses or notifications with `WorkerRunner.send`
23
- * - Observe optional disconnect notifications through `WorkerRunner.disconnects`
24
- *
25
- * **Gotchas**
26
- *
27
- * This module does not serialize payloads; values must already be acceptable to
28
- * the selected runtime's message mechanism. Structured-clone support, transfer
29
- * lists, `messageerror` events, and single-port runtimes such as Node or Bun
30
- * all affect which payloads and resource lifetimes are safe. Handler effects
31
- * run on the runtime captured by `run`, so services required by a handler must
32
- * be provided to that running effect.
4
+ * A `WorkerRunner` receives messages tagged by a numeric port id, sends replies
5
+ * back through the same transport, and can expose disconnect notifications. The
6
+ * module also defines the small platform message shape and the
7
+ * `WorkerRunnerPlatform` service that starts a platform-specific runner.
33
8
  *
34
9
  * @since 4.0.0
35
10
  */
@@ -1,23 +1,10 @@
1
1
  /**
2
- * The `Activity` module defines named, schema-backed effects that run at the
3
- * side-effect boundary of a durable workflow. Activities are executed through a
4
- * `WorkflowEngine`, encode their success and failure values with the provided
5
- * schemas, and can be replayed from persisted results instead of rerunning the
6
- * underlying effect.
2
+ * Defines named effects whose results can be stored by a workflow engine.
7
3
  *
8
- * Use activities for work that should not be embedded directly in workflow
9
- * control flow, such as calling external services, writing to databases,
10
- * enqueueing durable jobs, short sleeps delegated by `DurableClock`, or racing
11
- * multiple external operations with `raceAll`. Keep activity names and schemas
12
- * stable because engines use them, together with the workflow execution and
13
- * retry attempt, to identify stored results.
14
- *
15
- * Activities can be interrupted and retried, and workflow resumes may observe a
16
- * completed encoded result or run the activity again depending on what the
17
- * engine has persisted. Make external side effects idempotent, use
18
- * `idempotencyKey` for stable request keys derived from the workflow execution,
19
- * and include the current attempt only when each retry must address a distinct
20
- * external operation.
4
+ * An `Activity` is an `Effect` with a stable name and schemas for its success
5
+ * and error values. `make` wraps an effect so the `WorkflowEngine` can execute
6
+ * it, store its result, or replay that result during a workflow run. This module
7
+ * also includes helpers for retry attempts, idempotency keys, and durable races.
21
8
  *
22
9
  * @since 4.0.0
23
10
  */
@@ -1,29 +1,10 @@
1
1
  /**
2
- * Workflow-safe sleeps that can be replayed, suspended, and resumed by a
3
- * workflow engine.
2
+ * Durable timers for workflow sleeps.
4
3
  *
5
- * Use this module when a workflow needs to pause for a timeout, reminder,
6
- * deadline, retry delay, or scheduled wake-up. `sleep` keeps very short delays
7
- * in the current process as an activity, and turns longer delays into durable
8
- * clocks that the engine can schedule and resume through a durable deferred.
9
- *
10
- * **Mental model**
11
- *
12
- * A `DurableClock` is a stable timer name, a normalized duration, and the
13
- * deferred completed when the timer wakes. `sleep` is the workflow-facing
14
- * helper: zero durations complete immediately, durations at or below the
15
- * in-memory threshold run with `Effect.sleep` inside an activity, and longer
16
- * durations are scheduled with the `WorkflowEngine` before awaiting the
17
- * clock's deferred.
18
- *
19
- * **Gotchas**
20
- *
21
- * Timer names, durations, and thresholds are part of workflow behavior. Keep
22
- * them deterministic for a given workflow path, avoid deriving them from
23
- * ambient wall-clock state, and give distinct logical waits distinct names so
24
- * replayed executions match the correct scheduled wake-up. Lower the in-memory
25
- * threshold when a delay must survive the current process rather than relying
26
- * on an in-process sleep.
4
+ * `make` creates a `DurableClock` with a name, duration, and deferred wake-up
5
+ * signal. `sleep` ignores zero durations, runs short sleeps through an
6
+ * in-memory activity, and schedules longer sleeps through the `WorkflowEngine`
7
+ * before awaiting the durable deferred tied to the clock.
27
8
  *
28
9
  * @since 4.0.0
29
10
  */
@@ -1,23 +1,11 @@
1
1
  /**
2
- * Durable deferreds are named workflow wait points whose result is stored by
3
- * the workflow engine as an encoded `Exit`. A workflow can `await` one and
4
- * suspend until an activity, worker, timer, or external callback completes it
5
- * with `done`, `succeed`, `fail`, or `failCause`.
2
+ * Defines named wait points for durable workflow executions.
6
3
  *
7
- * Use this module to coordinate work that finishes outside the current
8
- * workflow turn: durable races, queues that report worker results, timers,
9
- * human approvals, webhooks, and other callback-style integrations. Tokens
10
- * encode the workflow name, execution ID, and deferred name so completion can
11
- * be routed back to the correct workflow execution without keeping an
12
- * in-memory handle.
13
- *
14
- * Deferred names are part of persisted workflow state, so keep them stable
15
- * across replays and unique for each logical wait. Completion is persisted as
16
- * an `Exit` and decoded through the success and error schemas when awaited
17
- * again; changing schemas or reusing a name for a different result type can
18
- * make old completions fail to decode or resume the wrong wait. Complete a
19
- * deferred once, and use `withActivityAttempt` when an activity retry needs an
20
- * attempt-scoped completion name.
4
+ * A `DurableDeferred` has a stable name and schemas for the value that will be
5
+ * recorded later. Workflows can await it, suspend when no result exists yet, and
6
+ * resume after its result is recorded. Tokens identify the workflow name,
7
+ * execution id, and deferred name so external code can complete the correct
8
+ * wait point later.
21
9
  *
22
10
  * @since 4.0.0
23
11
  */
@@ -8,31 +8,6 @@
8
8
  * records the handler's `Exit` through that token so the original workflow can
9
9
  * continue with the typed success or error.
10
10
  *
11
- * **Mental model**
12
- *
13
- * A `DurableQueue` definition names the persisted queue and carries the payload,
14
- * success, and error schemas shared by producers and workers. The
15
- * `idempotencyKey` becomes the persisted queue item id, while `process` also
16
- * stores trace context and a deferred token alongside the payload. Worker
17
- * concurrency is local to the worker layer; delivery and retry behavior come
18
- * from the underlying `PersistedQueue`.
19
- *
20
- * **Common tasks**
21
- *
22
- * Use `make` to define the queue once, call `process` from workflow code, and
23
- * run `worker` in the service responsible for executing queued work. Tune
24
- * `process` retries for transient persistence failures, and tune worker
25
- * concurrency for the downstream system being called.
26
- *
27
- * **Gotchas**
28
- *
29
- * Queue names, schemas, result types, and idempotency keys are persisted
30
- * coordination state. Keep them deterministic and stable across deployments;
31
- * changing them is a persistence migration. Delivery is at least once according
32
- * to the backing `PersistedQueue`, so handlers should be idempotent and prepared
33
- * for retries, duplicate observations, worker restarts, and completions that are
34
- * decoded by a later version of the queue definition.
35
- *
36
11
  * @since 4.0.0
37
12
  */
38
13
  import * as Effect from "../../Effect.ts"
@@ -1,24 +1,12 @@
1
1
  /**
2
- * The `Workflow` module defines typed durable workflow descriptions and the
3
- * helpers used to execute them through a `WorkflowEngine`. A workflow combines
4
- * a stable name, a struct payload schema, success and error schemas, and an
5
- * idempotency key so callers can derive deterministic execution IDs, execute or
6
- * discard runs, poll results, interrupt or resume suspended executions, and
7
- * register handlers with `toLayer`.
8
- *
9
- * Workflows are intended for long-running business processes that coordinate
10
- * activities, durable deferreds, durable clocks, retries, and compensation.
11
- * Keep external side effects at activity boundaries so engine implementations
12
- * can safely persist, suspend, and resume execution state. Running activities
13
- * can delay workflow suspension until they finish or suspend, and compensation
14
- * registered with `withCompensation` only applies to top-level workflow
15
- * effects, not nested activities.
16
- *
17
- * When exposing workflows through `WorkflowProxy`, remember that proxy APIs are
18
- * derived from the workflow tag and schemas. Discard execution returns the
19
- * `executionId` instead of the workflow result, resume requires the persisted
20
- * `executionId`, and idempotency keys must remain stable for the same logical
21
- * request.
2
+ * Defines typed durable workflows.
3
+ *
4
+ * A `Workflow` has a stable tag, schemas for payload, success, and failure, and
5
+ * an idempotency key used to derive execution ids. Workflow definitions can be
6
+ * executed, discarded, polled, interrupted, resumed, and registered with a
7
+ * handler layer. This module also includes workflow result types, compensation
8
+ * and cleanup helpers, suspension support, and settings for defect capture or
9
+ * failure suspension.
22
10
  *
23
11
  * @since 4.0.0
24
12
  */
@@ -104,7 +92,7 @@ export interface Workflow<
104
92
  >
105
93
 
106
94
  /**
107
- * Execute the workflow with the given payload.
95
+ * Poll the current status of a workflow execution.
108
96
  */
109
97
  readonly poll: (
110
98
  executionId: string
@@ -1,23 +1,11 @@
1
1
  /**
2
- * Workflow engine service definitions and the default in-memory engine used to
3
- * run durable workflows.
2
+ * Defines workflow engine services and an in-memory implementation.
4
3
  *
5
- * This module is the runtime boundary for `Workflow` values. It registers
6
- * workflow handlers, starts or polls executions by stable execution ID, links
7
- * child workflow interruption to parents, and coordinates activities, durable
8
- * deferred values, and durable clocks. Library users usually depend on the
9
- * typed `WorkflowEngine` service, while persistence backends implement the
10
- * lower-level `Encoded` contract and pass it to `makeUnsafe`.
11
- *
12
- * Durable execution requires engine implementations to make retries and resumes
13
- * idempotent. Reusing an execution ID should observe the existing execution
14
- * instead of starting duplicate work, suspended executions are retried according
15
- * to `suspendedRetrySchedule`, and concurrent deferred completions or clock
16
- * wake-ups must be serialized by the backend. Use `interrupt` when
17
- * compensation and child workflow cleanup matter; `interruptUnsafe` can stop
18
- * work more directly but may bypass those guarantees. The provided
19
- * `layerMemory` is useful for tests and local development, but it keeps state
20
- * in process memory and does not provide production durability.
4
+ * `WorkflowEngine` registers workflow handlers, runs executions, polls results,
5
+ * resumes suspended runs, executes activities, stores durable deferred results,
6
+ * and schedules durable clocks. `WorkflowInstance` holds the runtime state for
7
+ * one workflow run. The in-memory layer is useful for tests and local
8
+ * development.
21
9
  *
22
10
  * @since 4.0.0
23
11
  */
@@ -111,7 +99,7 @@ export class WorkflowEngine extends Context.Service<
111
99
  >
112
100
 
113
101
  /**
114
- * Execute a registered workflow.
102
+ * Poll the current status of a registered workflow execution.
115
103
  */
116
104
  readonly poll: <
117
105
  Name extends string,
@@ -1,27 +1,11 @@
1
1
  /**
2
- * The `WorkflowProxy` module derives transport contracts from durable
3
- * `Workflow` definitions.
4
- *
5
- * Use it when workflows should be invoked through RPC or HTTP instead of by
6
- * importing the workflow implementation directly. `toRpcGroup` creates the
7
- * `RpcGroup` that RPC clients and servers share, while `toHttpApiGroup` creates
8
- * the `HttpApiGroup` that can be mounted in an HTTP API. Each workflow expands
9
- * into execute, discard, and resume operations so external callers can start a
10
- * workflow, start it through the discard path, or resume a suspended execution
11
- * by `executionId`.
12
- *
13
- * The generated names and schemas come from the workflow definitions, so keep
14
- * workflow names stable and pass the same workflow list to the matching
15
- * `WorkflowProxyServer` layer. RPC proxies may be prefixed, but the same prefix
16
- * must be used by the server handlers. HTTP endpoint paths are derived from the
17
- * lower-cased workflow name. Preserve workflow arrays as const tuples when you
18
- * want the generated RPC and HTTP API types to retain each workflow's literal
19
- * name, payload, success, and error types.
20
- *
21
- * Discard and resume are control operations rather than ordinary workflow
22
- * result reads. The discard proxy does not expose the normal success or error
23
- * schemas, and resume expects the persisted `executionId`; it cannot recreate
24
- * that boundary value from the original payload.
2
+ * RPC and HTTP API definitions for workflows.
3
+ *
4
+ * Given one or more `Workflow` values, `toRpcGroup` creates the RPC definitions
5
+ * for clients and servers, while `toHttpApiGroup` creates HTTP POST endpoints
6
+ * that can be mounted in an API. Each workflow gets execute, discard, and
7
+ * resume operations, so callers can start a workflow or resume a suspended run
8
+ * by `executionId` without importing the workflow handler directly.
25
9
  *
26
10
  * @since 4.0.0
27
11
  */