effect 4.0.0-beta.6 → 4.0.0-beta.8

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 (283) hide show
  1. package/dist/Cache.d.ts +2 -2
  2. package/dist/Cache.d.ts.map +1 -1
  3. package/dist/Cache.js +1 -1
  4. package/dist/Cache.js.map +1 -1
  5. package/dist/Combiner.d.ts +280 -13
  6. package/dist/Combiner.d.ts.map +1 -1
  7. package/dist/Combiner.js +198 -7
  8. package/dist/Combiner.js.map +1 -1
  9. package/dist/Config.d.ts +2 -2
  10. package/dist/Config.js +3 -3
  11. package/dist/Config.js.map +1 -1
  12. package/dist/DateTime.d.ts +23 -161
  13. package/dist/DateTime.d.ts.map +1 -1
  14. package/dist/DateTime.js +6 -51
  15. package/dist/DateTime.js.map +1 -1
  16. package/dist/Duration.d.ts +12 -12
  17. package/dist/Duration.d.ts.map +1 -1
  18. package/dist/Duration.js +12 -12
  19. package/dist/Duration.js.map +1 -1
  20. package/dist/Effect.d.ts +13 -13
  21. package/dist/Effect.d.ts.map +1 -1
  22. package/dist/Effect.js +1 -1
  23. package/dist/Effect.js.map +1 -1
  24. package/dist/Formatter.d.ts +131 -47
  25. package/dist/Formatter.d.ts.map +1 -1
  26. package/dist/Formatter.js +228 -50
  27. package/dist/Formatter.js.map +1 -1
  28. package/dist/JsonSchema.d.ts +299 -10
  29. package/dist/JsonSchema.d.ts.map +1 -1
  30. package/dist/JsonSchema.js +323 -4
  31. package/dist/JsonSchema.js.map +1 -1
  32. package/dist/LayerMap.d.ts +4 -4
  33. package/dist/LayerMap.d.ts.map +1 -1
  34. package/dist/LogLevel.d.ts +27 -0
  35. package/dist/LogLevel.d.ts.map +1 -1
  36. package/dist/LogLevel.js +28 -100
  37. package/dist/LogLevel.js.map +1 -1
  38. package/dist/Logger.d.ts +4 -4
  39. package/dist/Logger.d.ts.map +1 -1
  40. package/dist/Metric.d.ts +2 -2
  41. package/dist/Metric.d.ts.map +1 -1
  42. package/dist/Metric.js +1 -1
  43. package/dist/Metric.js.map +1 -1
  44. package/dist/Pool.d.ts +1 -1
  45. package/dist/Pool.d.ts.map +1 -1
  46. package/dist/Pool.js +1 -1
  47. package/dist/Pool.js.map +1 -1
  48. package/dist/Random.d.ts +1 -1
  49. package/dist/Random.d.ts.map +1 -1
  50. package/dist/Random.js +3 -12
  51. package/dist/Random.js.map +1 -1
  52. package/dist/RcMap.d.ts +2 -2
  53. package/dist/RcMap.d.ts.map +1 -1
  54. package/dist/RcMap.js +1 -1
  55. package/dist/RcMap.js.map +1 -1
  56. package/dist/RcRef.d.ts +1 -1
  57. package/dist/RcRef.d.ts.map +1 -1
  58. package/dist/Reducer.d.ts +166 -7
  59. package/dist/Reducer.d.ts.map +1 -1
  60. package/dist/Reducer.js +135 -1
  61. package/dist/Reducer.js.map +1 -1
  62. package/dist/RequestResolver.d.ts +6 -6
  63. package/dist/RequestResolver.d.ts.map +1 -1
  64. package/dist/RequestResolver.js.map +1 -1
  65. package/dist/Schedule.d.ts +20 -11
  66. package/dist/Schedule.d.ts.map +1 -1
  67. package/dist/Schedule.js +23 -9
  68. package/dist/Schedule.js.map +1 -1
  69. package/dist/Schema.d.ts +4 -4
  70. package/dist/Schema.d.ts.map +1 -1
  71. package/dist/ScopedCache.d.ts +2 -2
  72. package/dist/ScopedCache.d.ts.map +1 -1
  73. package/dist/ScopedCache.js +1 -1
  74. package/dist/ScopedCache.js.map +1 -1
  75. package/dist/Stream.d.ts +19 -19
  76. package/dist/Stream.d.ts.map +1 -1
  77. package/dist/Stream.js +3 -3
  78. package/dist/Stream.js.map +1 -1
  79. package/dist/index.d.ts +258 -0
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +258 -0
  82. package/dist/index.js.map +1 -1
  83. package/dist/internal/dateTime.js +3 -11
  84. package/dist/internal/dateTime.js.map +1 -1
  85. package/dist/internal/effect.js +2 -2
  86. package/dist/internal/effect.js.map +1 -1
  87. package/dist/internal/random.d.ts +2 -0
  88. package/dist/internal/random.d.ts.map +1 -0
  89. package/dist/internal/random.js +13 -0
  90. package/dist/internal/random.js.map +1 -0
  91. package/dist/internal/rcRef.js +1 -1
  92. package/dist/internal/rcRef.js.map +1 -1
  93. package/dist/testing/TestClock.d.ts +4 -4
  94. package/dist/testing/TestClock.d.ts.map +1 -1
  95. package/dist/testing/TestClock.js +1 -1
  96. package/dist/testing/TestClock.js.map +1 -1
  97. package/dist/testing/TestSchema.d.ts +6 -6
  98. package/dist/testing/TestSchema.d.ts.map +1 -1
  99. package/dist/unstable/ai/AiError.d.ts +10 -10
  100. package/dist/unstable/ai/AiError.d.ts.map +1 -1
  101. package/dist/unstable/ai/Chat.d.ts +3 -3
  102. package/dist/unstable/ai/Chat.d.ts.map +1 -1
  103. package/dist/unstable/ai/Chat.js +2 -2
  104. package/dist/unstable/ai/Chat.js.map +1 -1
  105. package/dist/unstable/ai/LanguageModel.d.ts +2 -2
  106. package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
  107. package/dist/unstable/ai/McpServer.d.ts +1 -1
  108. package/dist/unstable/ai/McpServer.d.ts.map +1 -1
  109. package/dist/unstable/ai/McpServer.js.map +1 -1
  110. package/dist/unstable/ai/Prompt.d.ts +17 -17
  111. package/dist/unstable/ai/Prompt.d.ts.map +1 -1
  112. package/dist/unstable/ai/Response.d.ts +23 -23
  113. package/dist/unstable/ai/Response.d.ts.map +1 -1
  114. package/dist/unstable/ai/Response.js +1 -1
  115. package/dist/unstable/ai/Response.js.map +1 -1
  116. package/dist/unstable/cluster/ClusterCron.d.ts +1 -1
  117. package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
  118. package/dist/unstable/cluster/ClusterCron.js +1 -1
  119. package/dist/unstable/cluster/ClusterCron.js.map +1 -1
  120. package/dist/unstable/cluster/Entity.d.ts +3 -3
  121. package/dist/unstable/cluster/Entity.d.ts.map +1 -1
  122. package/dist/unstable/cluster/EntityResource.d.ts +2 -2
  123. package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
  124. package/dist/unstable/cluster/K8sHttpClient.js +1 -1
  125. package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
  126. package/dist/unstable/cluster/MessageStorage.js.map +1 -1
  127. package/dist/unstable/cluster/Sharding.d.ts +2 -2
  128. package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
  129. package/dist/unstable/cluster/Sharding.js +1 -1
  130. package/dist/unstable/cluster/Sharding.js.map +1 -1
  131. package/dist/unstable/cluster/ShardingConfig.d.ts +21 -21
  132. package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
  133. package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
  134. package/dist/unstable/cluster/SqlRunnerStorage.js +1 -1
  135. package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
  136. package/dist/unstable/cluster/internal/entityManager.js +1 -1
  137. package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
  138. package/dist/unstable/encoding/Sse.d.ts +2 -2
  139. package/dist/unstable/encoding/Sse.d.ts.map +1 -1
  140. package/dist/unstable/encoding/Sse.js.map +1 -1
  141. package/dist/unstable/http/Cookies.d.ts +1 -1
  142. package/dist/unstable/http/Cookies.d.ts.map +1 -1
  143. package/dist/unstable/http/Cookies.js +2 -2
  144. package/dist/unstable/http/Cookies.js.map +1 -1
  145. package/dist/unstable/http/HttpClient.d.ts +4 -4
  146. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  147. package/dist/unstable/http/HttpClientRequest.d.ts +11 -11
  148. package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
  149. package/dist/unstable/http/HttpClientRequest.js +8 -1
  150. package/dist/unstable/http/HttpClientRequest.js.map +1 -1
  151. package/dist/unstable/http/HttpMethod.d.ts +4 -4
  152. package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
  153. package/dist/unstable/http/HttpMethod.js +3 -3
  154. package/dist/unstable/http/HttpMethod.js.map +1 -1
  155. package/dist/unstable/observability/Otlp.d.ts +12 -12
  156. package/dist/unstable/observability/Otlp.d.ts.map +1 -1
  157. package/dist/unstable/observability/OtlpExporter.d.ts +2 -2
  158. package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
  159. package/dist/unstable/observability/OtlpExporter.js +1 -1
  160. package/dist/unstable/observability/OtlpExporter.js.map +1 -1
  161. package/dist/unstable/observability/OtlpLogger.d.ts +4 -4
  162. package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
  163. package/dist/unstable/observability/OtlpMetrics.d.ts +4 -4
  164. package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
  165. package/dist/unstable/observability/OtlpTracer.d.ts +4 -4
  166. package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
  167. package/dist/unstable/persistence/Persistable.d.ts +2 -2
  168. package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
  169. package/dist/unstable/persistence/PersistedQueue.d.ts +12 -12
  170. package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
  171. package/dist/unstable/persistence/PersistedQueue.js +6 -6
  172. package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
  173. package/dist/unstable/persistence/Persistence.d.ts +1 -1
  174. package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
  175. package/dist/unstable/persistence/Persistence.js +2 -2
  176. package/dist/unstable/persistence/Persistence.js.map +1 -1
  177. package/dist/unstable/persistence/RateLimiter.d.ts +3 -3
  178. package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
  179. package/dist/unstable/persistence/RateLimiter.js +1 -1
  180. package/dist/unstable/persistence/RateLimiter.js.map +1 -1
  181. package/dist/unstable/process/ChildProcess.d.ts +2 -2
  182. package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
  183. package/dist/unstable/reactivity/Atom.d.ts +6 -6
  184. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  185. package/dist/unstable/reactivity/Atom.js +3 -3
  186. package/dist/unstable/reactivity/Atom.js.map +1 -1
  187. package/dist/unstable/reactivity/AtomHttpApi.d.ts +1 -1
  188. package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
  189. package/dist/unstable/reactivity/AtomHttpApi.js +1 -1
  190. package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
  191. package/dist/unstable/reactivity/AtomRpc.d.ts +1 -1
  192. package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
  193. package/dist/unstable/reactivity/AtomRpc.js +1 -1
  194. package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
  195. package/dist/unstable/rpc/Rpc.d.ts +2 -2
  196. package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
  197. package/dist/unstable/rpc/RpcClient.d.ts +5 -26
  198. package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
  199. package/dist/unstable/rpc/RpcClient.js +3 -11
  200. package/dist/unstable/rpc/RpcClient.js.map +1 -1
  201. package/dist/unstable/socket/Socket.d.ts +4 -4
  202. package/dist/unstable/socket/Socket.d.ts.map +1 -1
  203. package/dist/unstable/sql/SqlModel.d.ts +2 -2
  204. package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
  205. package/dist/unstable/sql/SqlModel.js +3 -3
  206. package/dist/unstable/sql/SqlModel.js.map +1 -1
  207. package/dist/unstable/sql/SqlSchema.d.ts +16 -5
  208. package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
  209. package/dist/unstable/sql/SqlSchema.js +17 -7
  210. package/dist/unstable/sql/SqlSchema.js.map +1 -1
  211. package/dist/unstable/workflow/DurableClock.d.ts +3 -3
  212. package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
  213. package/dist/unstable/workflow/DurableClock.js +3 -3
  214. package/dist/unstable/workflow/DurableClock.js.map +1 -1
  215. package/package.json +1 -1
  216. package/src/Cache.ts +3 -3
  217. package/src/Combiner.ts +280 -13
  218. package/src/Config.ts +3 -3
  219. package/src/DateTime.ts +24 -164
  220. package/src/Duration.ts +15 -15
  221. package/src/Effect.ts +15 -15
  222. package/src/Formatter.ts +252 -50
  223. package/src/JsonSchema.ts +383 -10
  224. package/src/LayerMap.ts +5 -5
  225. package/src/LogLevel.ts +31 -0
  226. package/src/Logger.ts +5 -5
  227. package/src/Metric.ts +4 -4
  228. package/src/Pool.ts +4 -4
  229. package/src/Random.ts +5 -14
  230. package/src/RcMap.ts +5 -5
  231. package/src/RcRef.ts +1 -1
  232. package/src/Reducer.ts +166 -7
  233. package/src/RequestResolver.ts +9 -9
  234. package/src/Schedule.ts +44 -25
  235. package/src/Schema.ts +4 -4
  236. package/src/ScopedCache.ts +3 -3
  237. package/src/Stream.ts +34 -34
  238. package/src/index.ts +258 -0
  239. package/src/internal/dateTime.ts +9 -30
  240. package/src/internal/effect.ts +21 -21
  241. package/src/internal/random.ts +20 -0
  242. package/src/internal/rcRef.ts +2 -2
  243. package/src/testing/TestClock.ts +5 -5
  244. package/src/testing/TestSchema.ts +8 -8
  245. package/src/unstable/ai/AiError.ts +1 -1
  246. package/src/unstable/ai/Chat.ts +10 -10
  247. package/src/unstable/ai/LanguageModel.ts +3 -3
  248. package/src/unstable/ai/McpServer.ts +2 -2
  249. package/src/unstable/ai/Prompt.ts +17 -17
  250. package/src/unstable/ai/Response.ts +23 -23
  251. package/src/unstable/cluster/ClusterCron.ts +2 -2
  252. package/src/unstable/cluster/Entity.ts +5 -5
  253. package/src/unstable/cluster/EntityResource.ts +4 -4
  254. package/src/unstable/cluster/K8sHttpClient.ts +1 -1
  255. package/src/unstable/cluster/MessageStorage.ts +1 -4
  256. package/src/unstable/cluster/Sharding.ts +3 -3
  257. package/src/unstable/cluster/ShardingConfig.ts +10 -11
  258. package/src/unstable/cluster/SqlRunnerStorage.ts +1 -1
  259. package/src/unstable/cluster/internal/entityManager.ts +3 -3
  260. package/src/unstable/encoding/Sse.ts +2 -4
  261. package/src/unstable/http/Cookies.ts +3 -3
  262. package/src/unstable/http/HttpClient.ts +4 -4
  263. package/src/unstable/http/HttpClientRequest.ts +15 -11
  264. package/src/unstable/http/HttpMethod.ts +16 -4
  265. package/src/unstable/observability/Otlp.ts +12 -12
  266. package/src/unstable/observability/OtlpExporter.ts +3 -3
  267. package/src/unstable/observability/OtlpLogger.ts +4 -4
  268. package/src/unstable/observability/OtlpMetrics.ts +4 -4
  269. package/src/unstable/observability/OtlpTracer.ts +4 -4
  270. package/src/unstable/persistence/Persistable.ts +2 -2
  271. package/src/unstable/persistence/PersistedQueue.ts +18 -18
  272. package/src/unstable/persistence/Persistence.ts +3 -3
  273. package/src/unstable/persistence/RateLimiter.ts +4 -4
  274. package/src/unstable/process/ChildProcess.ts +2 -2
  275. package/src/unstable/reactivity/Atom.ts +13 -13
  276. package/src/unstable/reactivity/AtomHttpApi.ts +3 -3
  277. package/src/unstable/reactivity/AtomRpc.ts +3 -3
  278. package/src/unstable/rpc/Rpc.ts +3 -3
  279. package/src/unstable/rpc/RpcClient.ts +8 -51
  280. package/src/unstable/socket/Socket.ts +4 -4
  281. package/src/unstable/sql/SqlModel.ts +5 -5
  282. package/src/unstable/sql/SqlSchema.ts +41 -25
  283. package/src/unstable/workflow/DurableClock.ts +8 -8
@@ -3404,24 +3404,24 @@ export const isSuccess: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect
3404
3404
  /** @internal */
3405
3405
  export const delay: {
3406
3406
  (
3407
- duration: Duration.DurationInput
3407
+ duration: Duration.Input
3408
3408
  ): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
3409
3409
  <A, E, R>(
3410
3410
  self: Effect.Effect<A, E, R>,
3411
- duration: Duration.DurationInput
3411
+ duration: Duration.Input
3412
3412
  ): Effect.Effect<A, E, R>
3413
3413
  } = dual(
3414
3414
  2,
3415
3415
  <A, E, R>(
3416
3416
  self: Effect.Effect<A, E, R>,
3417
- duration: Duration.DurationInput
3417
+ duration: Duration.Input
3418
3418
  ): Effect.Effect<A, E, R> => andThen(sleep(duration), self)
3419
3419
  )
3420
3420
 
3421
3421
  /** @internal */
3422
3422
  export const timeoutOrElse: {
3423
3423
  <A2, E2, R2>(options: {
3424
- readonly duration: Duration.DurationInput
3424
+ readonly duration: Duration.Input
3425
3425
  readonly onTimeout: LazyArg<Effect.Effect<A2, E2, R2>>
3426
3426
  }): <A, E, R>(
3427
3427
  self: Effect.Effect<A, E, R>
@@ -3429,7 +3429,7 @@ export const timeoutOrElse: {
3429
3429
  <A, E, R, A2, E2, R2>(
3430
3430
  self: Effect.Effect<A, E, R>,
3431
3431
  options: {
3432
- readonly duration: Duration.DurationInput
3432
+ readonly duration: Duration.Input
3433
3433
  readonly onTimeout: LazyArg<Effect.Effect<A2, E2, R2>>
3434
3434
  }
3435
3435
  ): Effect.Effect<A | A2, E | E2, R | R2>
@@ -3438,7 +3438,7 @@ export const timeoutOrElse: {
3438
3438
  <A, E, R, A2, E2, R2>(
3439
3439
  self: Effect.Effect<A, E, R>,
3440
3440
  options: {
3441
- readonly duration: Duration.DurationInput
3441
+ readonly duration: Duration.Input
3442
3442
  readonly onTimeout: LazyArg<Effect.Effect<A2, E2, R2>>
3443
3443
  }
3444
3444
  ): Effect.Effect<A | A2, E | E2, R | R2> =>
@@ -3451,19 +3451,19 @@ export const timeoutOrElse: {
3451
3451
  /** @internal */
3452
3452
  export const timeout: {
3453
3453
  (
3454
- duration: Duration.DurationInput
3454
+ duration: Duration.Input
3455
3455
  ): <A, E, R>(
3456
3456
  self: Effect.Effect<A, E, R>
3457
3457
  ) => Effect.Effect<A, E | Cause.TimeoutError, R>
3458
3458
  <A, E, R>(
3459
3459
  self: Effect.Effect<A, E, R>,
3460
- duration: Duration.DurationInput
3460
+ duration: Duration.Input
3461
3461
  ): Effect.Effect<A, E | Cause.TimeoutError, R>
3462
3462
  } = dual(
3463
3463
  2,
3464
3464
  <A, E, R>(
3465
3465
  self: Effect.Effect<A, E, R>,
3466
- duration: Duration.DurationInput
3466
+ duration: Duration.Input
3467
3467
  ): Effect.Effect<A, E | TimeoutError, R> =>
3468
3468
  timeoutOrElse(self, {
3469
3469
  duration,
@@ -3474,19 +3474,19 @@ export const timeout: {
3474
3474
  /** @internal */
3475
3475
  export const timeoutOption: {
3476
3476
  (
3477
- duration: Duration.DurationInput
3477
+ duration: Duration.Input
3478
3478
  ): <A, E, R>(
3479
3479
  self: Effect.Effect<A, E, R>
3480
3480
  ) => Effect.Effect<Option.Option<A>, E, R>
3481
3481
  <A, E, R>(
3482
3482
  self: Effect.Effect<A, E, R>,
3483
- duration: Duration.DurationInput
3483
+ duration: Duration.Input
3484
3484
  ): Effect.Effect<Option.Option<A>, E, R>
3485
3485
  } = dual(
3486
3486
  2,
3487
3487
  <A, E, R>(
3488
3488
  self: Effect.Effect<A, E, R>,
3489
- duration: Duration.DurationInput
3489
+ duration: Duration.Input
3490
3490
  ): Effect.Effect<Option.Option<A>, E, R> =>
3491
3491
  raceFirst(
3492
3492
  asSome(self),
@@ -3874,19 +3874,19 @@ export const acquireUseRelease = <Resource, E, R, A, E2, R2, E3, R3>(
3874
3874
 
3875
3875
  /** @internal */
3876
3876
  export const cachedInvalidateWithTTL: {
3877
- (timeToLive: Duration.DurationInput): <A, E, R>(
3877
+ (timeToLive: Duration.Input): <A, E, R>(
3878
3878
  self: Effect.Effect<A, E, R>
3879
3879
  ) => Effect.Effect<[Effect.Effect<A, E, R>, Effect.Effect<void>]>
3880
3880
  <A, E, R>(
3881
3881
  self: Effect.Effect<A, E, R>,
3882
- timeToLive: Duration.DurationInput
3882
+ timeToLive: Duration.Input
3883
3883
  ): Effect.Effect<[Effect.Effect<A, E, R>, Effect.Effect<void>]>
3884
3884
  } = dual(2, <A, E, R>(
3885
3885
  self: Effect.Effect<A, E, R>,
3886
- ttl: Duration.DurationInput
3886
+ ttl: Duration.Input
3887
3887
  ): Effect.Effect<[Effect.Effect<A, E, R>, Effect.Effect<void>]> =>
3888
3888
  sync(() => {
3889
- const ttlMillis = Duration.toMillis(Duration.fromDurationInputUnsafe(ttl))
3889
+ const ttlMillis = Duration.toMillis(Duration.fromInputUnsafe(ttl))
3890
3890
  const isFinite = Number.isFinite(ttlMillis)
3891
3891
  const latch = makeLatchUnsafe(false)
3892
3892
  let expiresAt = 0
@@ -3919,17 +3919,17 @@ export const cachedInvalidateWithTTL: {
3919
3919
  /** @internal */
3920
3920
  export const cachedWithTTL: {
3921
3921
  (
3922
- timeToLive: Duration.DurationInput
3922
+ timeToLive: Duration.Input
3923
3923
  ): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<Effect.Effect<A, E, R>>
3924
3924
  <A, E, R>(
3925
3925
  self: Effect.Effect<A, E, R>,
3926
- timeToLive: Duration.DurationInput
3926
+ timeToLive: Duration.Input
3927
3927
  ): Effect.Effect<Effect.Effect<A, E, R>>
3928
3928
  } = dual(
3929
3929
  2,
3930
3930
  <A, E, R>(
3931
3931
  self: Effect.Effect<A, E, R>,
3932
- timeToLive: Duration.DurationInput
3932
+ timeToLive: Duration.Input
3933
3933
  ): Effect.Effect<Effect.Effect<A, E, R>> => map(cachedInvalidateWithTTL(self, timeToLive), (tuple) => tuple[0])
3934
3934
  )
3935
3935
 
@@ -5345,8 +5345,8 @@ export const clockWith = <A, E, R>(f: (clock: Clock.Clock) => Effect.Effect<A, E
5345
5345
  withFiber((fiber) => f(fiber.getRef(ClockRef)))
5346
5346
 
5347
5347
  /** @internal */
5348
- export const sleep = (duration: Duration.DurationInput): Effect.Effect<void> =>
5349
- clockWith((clock) => clock.sleep(Duration.fromDurationInputUnsafe(duration)))
5348
+ export const sleep = (duration: Duration.Input): Effect.Effect<void> =>
5349
+ clockWith((clock) => clock.sleep(Duration.fromInputUnsafe(duration)))
5350
5350
 
5351
5351
  /** @internal */
5352
5352
  export const currentTimeMillis: Effect.Effect<number> = clockWith((clock) => clock.currentTimeMillis)
@@ -0,0 +1,20 @@
1
+ import * as ServiceMap from "../ServiceMap.ts"
2
+
3
+ /** @internal */
4
+ export interface Random {
5
+ nextIntUnsafe(): number
6
+ nextDoubleUnsafe(): number
7
+ }
8
+
9
+ /** @internal */
10
+ export const Random: ServiceMap.Reference<Random> = ServiceMap.Reference<Random>("effect/Random", {
11
+ defaultValue: () => ({
12
+ nextIntUnsafe() {
13
+ return Math.floor(Math.random() * (Number.MAX_SAFE_INTEGER - Number.MIN_SAFE_INTEGER + 1)) +
14
+ Number.MIN_SAFE_INTEGER
15
+ },
16
+ nextDoubleUnsafe() {
17
+ return Math.random()
18
+ }
19
+ })
20
+ })
@@ -70,7 +70,7 @@ class RcRefImpl<A, E> implements RcRef.RcRef<A, E> {
70
70
  /** @internal */
71
71
  export const make = <A, E, R>(options: {
72
72
  readonly acquire: Effect.Effect<A, E, R>
73
- readonly idleTimeToLive?: Duration.DurationInput | undefined
73
+ readonly idleTimeToLive?: Duration.Input | undefined
74
74
  }) =>
75
75
  Effect.withFiber<RcRef.RcRef<A, E>, never, R | Scope.Scope>((fiber) => {
76
76
  const services = fiber.services as ServiceMap.ServiceMap<R | Scope.Scope>
@@ -79,7 +79,7 @@ export const make = <A, E, R>(options: {
79
79
  options.acquire as Effect.Effect<A, E>,
80
80
  services,
81
81
  scope,
82
- options.idleTimeToLive ? Duration.fromDurationInputUnsafe(options.idleTimeToLive) : undefined
82
+ options.idleTimeToLive ? Duration.fromInputUnsafe(options.idleTimeToLive) : undefined
83
83
  )
84
84
  return Effect.as(
85
85
  Scope.addFinalizerExit(scope, () => {
@@ -81,7 +81,7 @@ export interface TestClock extends Clock.Clock {
81
81
  * that were scheduled to occur on or before the new time will be run in
82
82
  * order.
83
83
  */
84
- adjust(duration: Duration.DurationInput): Effect.Effect<void>
84
+ adjust(duration: Duration.Input): Effect.Effect<void>
85
85
  /**
86
86
  * Sets the current clock time to the specified `timestamp`. Any effects that
87
87
  * were scheduled to occur on or before the new time will be run in order.
@@ -141,7 +141,7 @@ export declare namespace TestClock {
141
141
  * The amount of time to wait before displaying a warning message when a
142
142
  * test is using time but is not advancing the `TestClock`.
143
143
  */
144
- readonly warningDelay?: Duration.DurationInput
144
+ readonly warningDelay?: Duration.Input
145
145
  }
146
146
 
147
147
  /**
@@ -319,8 +319,8 @@ export const make = Effect.fnUntraced(function*(
319
319
  currentTimestamp = endTimestamp
320
320
  }, runSemaphore.withPermits(1))
321
321
 
322
- function adjust(duration: Duration.DurationInput) {
323
- const millis = Duration.toMillis(Duration.fromDurationInputUnsafe(duration))
322
+ function adjust(duration: Duration.Input) {
323
+ const millis = Duration.toMillis(Duration.fromInputUnsafe(duration))
324
324
  return warningDone.pipe(Effect.andThen(run((timestamp) => timestamp + millis)))
325
325
  }
326
326
 
@@ -431,7 +431,7 @@ export const testClockWith = <A, E, R>(
431
431
  * @since 2.0.0
432
432
  * @category utils
433
433
  */
434
- export const adjust = (duration: Duration.DurationInput): Effect.Effect<void> =>
434
+ export const adjust = (duration: Duration.Input): Effect.Effect<void> =>
435
435
  testClockWith((testClock) => testClock.adjust(duration))
436
436
 
437
437
  /**
@@ -156,16 +156,16 @@ export class Decoding<S extends Schema.Top> {
156
156
  /**
157
157
  * Asserts that decoding succeeds with the expected value.
158
158
  */
159
- async succeed<S extends Schema.Codec<unknown, unknown, never, unknown>>(
159
+ async succeed<S extends Schema.Decoder<unknown, never>>(
160
160
  this: Decoding<S>,
161
161
  input: unknown
162
162
  ): Promise<void>
163
- async succeed<S extends Schema.Codec<unknown, unknown, never, unknown>>(
163
+ async succeed<S extends Schema.Decoder<unknown, never>>(
164
164
  this: Decoding<S>,
165
165
  input: unknown,
166
166
  expected: S["Type"]
167
167
  ): Promise<void>
168
- async succeed<S extends Schema.Codec<unknown, unknown, never, unknown>>(
168
+ async succeed<S extends Schema.Decoder<unknown, never>>(
169
169
  this: Decoding<S>,
170
170
  input: unknown,
171
171
  expected?: S["Type"]
@@ -182,7 +182,7 @@ export class Decoding<S extends Schema.Top> {
182
182
  /**
183
183
  * Asserts that decoding fails with the expected error message.
184
184
  */
185
- async fail<S extends Schema.Codec<unknown, unknown, never, unknown>>(
185
+ async fail<S extends Schema.Decoder<unknown, never>>(
186
186
  this: Decoding<S>,
187
187
  input: unknown,
188
188
  message: string
@@ -232,16 +232,16 @@ class Encoding<S extends Schema.Top> {
232
232
  /**
233
233
  * Asserts that encoding succeeds with the expected value.
234
234
  */
235
- async succeed<S extends Schema.Codec<unknown, unknown, unknown, never>>(
235
+ async succeed<S extends Schema.Encoder<unknown, never>>(
236
236
  this: Encoding<S>,
237
237
  input: unknown
238
238
  ): Promise<void>
239
- async succeed<S extends Schema.Codec<unknown, unknown, unknown, never>>(
239
+ async succeed<S extends Schema.Encoder<unknown, never>>(
240
240
  this: Encoding<S>,
241
241
  input: unknown,
242
242
  expected: S["Encoded"]
243
243
  ): Promise<void>
244
- async succeed<S extends Schema.Codec<unknown, unknown, unknown, never>>(
244
+ async succeed<S extends Schema.Encoder<unknown, never>>(
245
245
  this: Encoding<S>,
246
246
  input: unknown,
247
247
  expected?: S["Encoded"]
@@ -258,7 +258,7 @@ class Encoding<S extends Schema.Top> {
258
258
  /**
259
259
  * Asserts that encoding fails with the expected error message.
260
260
  */
261
- async fail<S extends Schema.Codec<unknown, unknown, unknown, never>>(
261
+ async fail<S extends Schema.Encoder<unknown, never>>(
262
262
  this: Encoding<S>,
263
263
  input: unknown,
264
264
  message: string
@@ -249,7 +249,7 @@ export class NetworkError extends Schema.ErrorClass<NetworkError>(
249
249
  */
250
250
  export const ProviderMetadata: Schema.$Record<
251
251
  Schema.String,
252
- Schema.NullOr<Schema.Codec<Schema.MutableJson, Schema.MutableJson, never, never>>
252
+ Schema.NullOr<Schema.Codec<Schema.MutableJson>>
253
253
  > = Schema.Record(Schema.String, Schema.NullOr(Schema.MutableJson))
254
254
 
255
255
  /**
@@ -277,7 +277,7 @@ export interface Service {
277
277
  */
278
278
  readonly generateObject: <
279
279
  ObjectEncoded extends Record<string, any>,
280
- ObjectSchema extends Schema.Codec<any, ObjectEncoded, any, any>,
280
+ ObjectSchema extends Schema.Encoder<ObjectEncoded, unknown>,
281
281
  Options extends NoExcessProperties<LanguageModel.GenerateObjectOptions<any, ObjectSchema>, Options>,
282
282
  Tools extends Record<string, Tool.Any> = {}
283
283
  >(options: Options & LanguageModel.GenerateObjectOptions<Tools, ObjectSchema>) => Effect.Effect<
@@ -628,7 +628,7 @@ export declare namespace Persistence {
628
628
  * the persistence store, a `ChatNotFoundError` will be returned.
629
629
  */
630
630
  readonly get: (chatId: string, options?: {
631
- readonly timeToLive?: Duration.DurationInput | undefined
631
+ readonly timeToLive?: Duration.Input | undefined
632
632
  }) => Effect.Effect<Persisted, ChatNotFoundError | PersistenceError>
633
633
 
634
634
  /**
@@ -638,7 +638,7 @@ export declare namespace Persistence {
638
638
  * returned.
639
639
  */
640
640
  readonly getOrCreate: (chatId: string, options?: {
641
- readonly timeToLive?: Duration.DurationInput | undefined
641
+ readonly timeToLive?: Duration.Input | undefined
642
642
  }) => Effect.Effect<Persisted, AiError.AiError | PersistenceError>
643
643
  }
644
644
  }
@@ -681,7 +681,7 @@ export const makePersisted = Effect.fnUntraced(function*(options: {
681
681
  const store = yield* persistence.make(options.storeId)
682
682
 
683
683
  const toPersisted = Effect.fnUntraced(
684
- function*(chatId: string, chat: Service, ttl: Duration.DurationInput | undefined) {
684
+ function*(chatId: string, chat: Service, ttl: Duration.Input | undefined) {
685
685
  const idGenerator = yield* Effect.serviceOption(IdGenerator.IdGenerator).pipe(
686
686
  Effect.map(Option.getOrElse(() => IdGenerator.defaultIdGenerator))
687
687
  )
@@ -713,7 +713,7 @@ export const makePersisted = Effect.fnUntraced(function*(options: {
713
713
  yield* Ref.set(chat.history, history)
714
714
  // Export the chat history
715
715
  const exported = yield* Effect.orDie(chat.export)
716
- const timeToLive = Predicate.isNotUndefined(ttl) ? Duration.fromDurationInput(ttl) : undefined
716
+ const timeToLive = Predicate.isNotUndefined(ttl) ? Duration.fromInput(ttl) : undefined
717
717
  // Save the chat to the backing store
718
718
  yield* store.set(chatId, exported as object, timeToLive)
719
719
  }
@@ -749,13 +749,13 @@ export const makePersisted = Effect.fnUntraced(function*(options: {
749
749
  )
750
750
 
751
751
  const createChat = Effect.fnUntraced(
752
- function*(chatId: string, ttl: Duration.DurationInput | undefined) {
752
+ function*(chatId: string, ttl: Duration.Input | undefined) {
753
753
  // Create an empty chat
754
754
  const chat = yield* empty
755
755
  // Export the chat history
756
756
  const history = yield* Effect.orDie(chat.export)
757
757
  // Save the history for the newly created chat
758
- const timeToLive = Predicate.isNotUndefined(ttl) ? Duration.fromDurationInput(ttl) : undefined
758
+ const timeToLive = Predicate.isNotUndefined(ttl) ? Duration.fromInput(ttl) : undefined
759
759
  yield* store.set(chatId, history as object, timeToLive)
760
760
  // Convert the chat to a persisted chat
761
761
  return yield* toPersisted(chatId, chat, ttl)
@@ -763,7 +763,7 @@ export const makePersisted = Effect.fnUntraced(function*(options: {
763
763
  )
764
764
 
765
765
  const getChat = Effect.fnUntraced(
766
- function*(chatId: string, ttl: Duration.DurationInput | undefined) {
766
+ function*(chatId: string, ttl: Duration.Input | undefined) {
767
767
  // Create an empty chat
768
768
  const chat = yield* empty
769
769
  // Attempt to retrieve the previous history from the store
@@ -784,7 +784,7 @@ export const makePersisted = Effect.fnUntraced(function*(options: {
784
784
 
785
785
  const get = Effect.fnUntraced(
786
786
  function*(chatId: string, options?: {
787
- readonly timeToLive?: Duration.DurationInput | undefined
787
+ readonly timeToLive?: Duration.Input | undefined
788
788
  }) {
789
789
  return yield* getChat(chatId, options?.timeToLive)
790
790
  },
@@ -796,7 +796,7 @@ export const makePersisted = Effect.fnUntraced(function*(options: {
796
796
 
797
797
  const getOrCreate = Effect.fnUntraced(
798
798
  function*(chatId: string, options?: {
799
- readonly timeToLive?: Duration.DurationInput | undefined
799
+ readonly timeToLive?: Duration.Input | undefined
800
800
  }) {
801
801
  return yield* getChat(chatId, options?.timeToLive).pipe(
802
802
  Effect.catchTag("ChatNotFoundError", () => createChat(chatId, options?.timeToLive))
@@ -135,7 +135,7 @@ export interface Service {
135
135
  */
136
136
  readonly generateObject: <
137
137
  ObjectEncoded extends Record<string, any>,
138
- StructuredOutputSchema extends Schema.Codec<any, ObjectEncoded, any, any>,
138
+ StructuredOutputSchema extends Schema.Encoder<ObjectEncoded, unknown>,
139
139
  Options extends NoExcessProperties<
140
140
  GenerateObjectOptions<any, StructuredOutputSchema>,
141
141
  Options
@@ -728,7 +728,7 @@ export const make: (params: ConstructorParams) => Effect.Effect<Service> = Effec
728
728
 
729
729
  const generateObject = <
730
730
  ObjectEncoded extends Record<string, any>,
731
- StructuredOutputSchema extends Schema.Codec<any, ObjectEncoded, any, any>,
731
+ StructuredOutputSchema extends Schema.Encoder<ObjectEncoded, unknown>,
732
732
  Options extends NoExcessProperties<
733
733
  GenerateObjectOptions<any, StructuredOutputSchema>,
734
734
  Options
@@ -1359,7 +1359,7 @@ export const generateText = <
1359
1359
  */
1360
1360
  export const generateObject = <
1361
1361
  ObjectEncoded extends Record<string, any>,
1362
- StructuredOutputSchema extends Schema.Codec<any, ObjectEncoded, any, any>,
1362
+ StructuredOutputSchema extends Schema.Encoder<ObjectEncoded, unknown>,
1363
1363
  Options extends NoExcessProperties<
1364
1364
  GenerateObjectOptions<any, StructuredOutputSchema>,
1365
1365
  Options
@@ -992,14 +992,14 @@ export const prompt = <
992
992
  * @since 4.0.0
993
993
  * @category elicitation
994
994
  */
995
- export const elicit: <S extends Schema.Codec<any, Record<string, unknown>, any, any>>(options: {
995
+ export const elicit: <S extends Schema.Encoder<Record<string, unknown>, unknown>>(options: {
996
996
  readonly message: string
997
997
  readonly schema: S
998
998
  }) => Effect.Effect<
999
999
  S["Type"],
1000
1000
  ElicitationDeclined,
1001
1001
  McpServerClient | S["DecodingServices"]
1002
- > = Effect.fnUntraced(function*<S extends Schema.Codec<any, Record<string, unknown>, any, any>>(options: {
1002
+ > = Effect.fnUntraced(function*<S extends Schema.Encoder<Record<string, unknown>, unknown>>(options: {
1003
1003
  readonly message: string
1004
1004
  readonly schema: S
1005
1005
  }) {
@@ -88,7 +88,7 @@ const constEmptyObject = () => ({})
88
88
  */
89
89
  export const ProviderOptions: Schema.$Record<
90
90
  Schema.String,
91
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
91
+ Schema.NullOr<Schema.Codec<Schema.Json>>
92
92
  > = Schema.Record(Schema.String, Schema.NullOr(Schema.Json))
93
93
 
94
94
  /**
@@ -311,7 +311,7 @@ export const TextPart: Schema.Struct<
311
311
  readonly options: Schema.withDecodingDefault<
312
312
  Schema.$Record<
313
313
  Schema.String,
314
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
314
+ Schema.NullOr<Schema.Codec<Schema.Json>>
315
315
  >
316
316
  >
317
317
  }
@@ -391,7 +391,7 @@ export const ReasoningPart: Schema.Struct<{
391
391
  readonly options: Schema.withDecodingDefault<
392
392
  Schema.$Record<
393
393
  Schema.String,
394
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
394
+ Schema.NullOr<Schema.Codec<Schema.Json>>
395
395
  >
396
396
  >
397
397
  }> = Schema.Struct({
@@ -499,7 +499,7 @@ export const FilePart: Schema.Struct<{
499
499
  readonly options: Schema.withDecodingDefault<
500
500
  Schema.$Record<
501
501
  Schema.String,
502
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
502
+ Schema.NullOr<Schema.Codec<Schema.Json>>
503
503
  >
504
504
  >
505
505
  }> = Schema.Struct({
@@ -609,7 +609,7 @@ export const ToolCallPart: Schema.Struct<{
609
609
  readonly options: Schema.withDecodingDefault<
610
610
  Schema.$Record<
611
611
  Schema.String,
612
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
612
+ Schema.NullOr<Schema.Codec<Schema.Json>>
613
613
  >
614
614
  >
615
615
  }> = Schema.Struct({
@@ -725,7 +725,7 @@ export const ToolResultPart: Schema.Struct<{
725
725
  readonly options: Schema.withDecodingDefault<
726
726
  Schema.$Record<
727
727
  Schema.String,
728
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
728
+ Schema.NullOr<Schema.Codec<Schema.Json>>
729
729
  >
730
730
  >
731
731
  }> = Schema.Struct({
@@ -843,7 +843,7 @@ export const ToolApprovalResponsePart: Schema.Struct<{
843
843
  readonly options: Schema.withDecodingDefault<
844
844
  Schema.$Record<
845
845
  Schema.String,
846
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
846
+ Schema.NullOr<Schema.Codec<Schema.Json>>
847
847
  >
848
848
  >
849
849
  }> = Schema.Struct({
@@ -944,7 +944,7 @@ export const ToolApprovalRequestPart: Schema.Struct<{
944
944
  readonly options: Schema.withDecodingDefault<
945
945
  Schema.$Record<
946
946
  Schema.String,
947
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
947
+ Schema.NullOr<Schema.Codec<Schema.Json>>
948
948
  >
949
949
  >
950
950
  }> = Schema.Struct({
@@ -1089,7 +1089,7 @@ export const ContentFromString: Schema.decodeTo<
1089
1089
  readonly options: Schema.withDecodingDefault<
1090
1090
  Schema.$Record<
1091
1091
  Schema.String,
1092
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
1092
+ Schema.NullOr<Schema.Codec<Schema.Json>>
1093
1093
  >
1094
1094
  >
1095
1095
  }>
@@ -1168,7 +1168,7 @@ export const SystemMessage: Schema.Struct<{
1168
1168
  readonly options: Schema.withDecodingDefault<
1169
1169
  Schema.$Record<
1170
1170
  Schema.String,
1171
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
1171
+ Schema.NullOr<Schema.Codec<Schema.Json>>
1172
1172
  >
1173
1173
  >
1174
1174
  }> = Schema.Struct({
@@ -1287,7 +1287,7 @@ export const UserMessage: Schema.Struct<{
1287
1287
  readonly options: Schema.withDecodingDefault<
1288
1288
  Schema.$Record<
1289
1289
  Schema.String,
1290
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
1290
+ Schema.NullOr<Schema.Codec<Schema.Json>>
1291
1291
  >
1292
1292
  >
1293
1293
  }>
@@ -1307,7 +1307,7 @@ export const UserMessage: Schema.Struct<{
1307
1307
  readonly options: Schema.withDecodingDefault<
1308
1308
  Schema.$Record<
1309
1309
  Schema.String,
1310
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
1310
+ Schema.NullOr<Schema.Codec<Schema.Json>>
1311
1311
  >
1312
1312
  >
1313
1313
  }>,
@@ -1320,7 +1320,7 @@ export const UserMessage: Schema.Struct<{
1320
1320
  readonly options: Schema.withDecodingDefault<
1321
1321
  Schema.$Record<
1322
1322
  Schema.String,
1323
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
1323
+ Schema.NullOr<Schema.Codec<Schema.Json>>
1324
1324
  >
1325
1325
  >
1326
1326
  }>
@@ -1333,7 +1333,7 @@ export const UserMessage: Schema.Struct<{
1333
1333
  readonly options: Schema.withDecodingDefault<
1334
1334
  Schema.$Record<
1335
1335
  Schema.String,
1336
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
1336
+ Schema.NullOr<Schema.Codec<Schema.Json>>
1337
1337
  >
1338
1338
  >
1339
1339
  }> = Schema.Struct({
@@ -1472,7 +1472,7 @@ export const AssistantMessage: Schema.Struct<{
1472
1472
  readonly options: Schema.withDecodingDefault<
1473
1473
  Schema.$Record<
1474
1474
  Schema.String,
1475
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
1475
+ Schema.NullOr<Schema.Codec<Schema.Json>>
1476
1476
  >
1477
1477
  >
1478
1478
  }>
@@ -1500,7 +1500,7 @@ export const AssistantMessage: Schema.Struct<{
1500
1500
  readonly options: Schema.withDecodingDefault<
1501
1501
  Schema.$Record<
1502
1502
  Schema.String,
1503
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
1503
+ Schema.NullOr<Schema.Codec<Schema.Json>>
1504
1504
  >
1505
1505
  >
1506
1506
  }> = Schema.Struct({
@@ -1620,7 +1620,7 @@ export const ToolMessage: Schema.Struct<{
1620
1620
  readonly options: Schema.withDecodingDefault<
1621
1621
  Schema.$Record<
1622
1622
  Schema.String,
1623
- Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>
1623
+ Schema.NullOr<Schema.Codec<Schema.Json>>
1624
1624
  >
1625
1625
  >
1626
1626
  }> = Schema.Struct({