effect 4.0.0-beta.72 → 4.0.0-beta.74

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 (361) hide show
  1. package/dist/Array.d.ts +16 -16
  2. package/dist/Array.js +4 -4
  3. package/dist/Boolean.d.ts +2 -2
  4. package/dist/Boolean.js +2 -2
  5. package/dist/Channel.d.ts +63 -63
  6. package/dist/Channel.js +25 -25
  7. package/dist/Chunk.d.ts +17 -17
  8. package/dist/Chunk.js +5 -5
  9. package/dist/Context.d.ts +3 -3
  10. package/dist/Context.js +1 -1
  11. package/dist/Cron.d.ts +4 -4
  12. package/dist/Cron.js +4 -4
  13. package/dist/Deferred.d.ts +37 -37
  14. package/dist/Deferred.js +13 -13
  15. package/dist/Duration.d.ts +6 -6
  16. package/dist/Duration.js +2 -2
  17. package/dist/Effect.d.ts +58 -58
  18. package/dist/Effect.js +39 -39
  19. package/dist/Equal.d.ts +2 -2
  20. package/dist/Equal.js +2 -2
  21. package/dist/Equivalence.d.ts +1 -1
  22. package/dist/Equivalence.js +1 -1
  23. package/dist/ExecutionPlan.d.ts +2 -2
  24. package/dist/ExecutionPlan.js +1 -1
  25. package/dist/FileSystem.d.ts +6 -6
  26. package/dist/FileSystem.js +2 -2
  27. package/dist/Function.d.ts +5 -5
  28. package/dist/Function.js +5 -5
  29. package/dist/Graph.d.ts +11 -11
  30. package/dist/Graph.js +5 -5
  31. package/dist/HKT.d.ts +1 -1
  32. package/dist/HashMap.d.ts +3 -3
  33. package/dist/HashSet.d.ts +1 -1
  34. package/dist/Iterable.d.ts +15 -15
  35. package/dist/Iterable.js +5 -5
  36. package/dist/Layer.d.ts +16 -16
  37. package/dist/Layer.js +5 -5
  38. package/dist/Logger.d.ts +5 -5
  39. package/dist/Logger.js +4 -4
  40. package/dist/ManagedRuntime.d.ts +2 -2
  41. package/dist/Match.d.ts +20 -20
  42. package/dist/Match.js +16 -16
  43. package/dist/Metric.d.ts +16 -16
  44. package/dist/Metric.js +3 -3
  45. package/dist/Option.d.ts +36 -36
  46. package/dist/Option.js +17 -17
  47. package/dist/Order.d.ts +1 -1
  48. package/dist/Order.js +1 -1
  49. package/dist/Path.d.ts +1 -1
  50. package/dist/Path.js +1 -1
  51. package/dist/Pipeable.d.ts +1 -1
  52. package/dist/Pipeable.js +1 -1
  53. package/dist/Predicate.d.ts +5 -5
  54. package/dist/PubSub.d.ts +9 -9
  55. package/dist/PubSub.js +5 -5
  56. package/dist/Queue.d.ts +24 -24
  57. package/dist/Queue.js +20 -20
  58. package/dist/Record.d.ts +15 -15
  59. package/dist/Record.js +5 -5
  60. package/dist/Redacted.d.ts +2 -2
  61. package/dist/Redacted.js +1 -1
  62. package/dist/Ref.d.ts +6 -6
  63. package/dist/Ref.js +6 -6
  64. package/dist/RegExp.d.ts +1 -1
  65. package/dist/RegExp.js +1 -1
  66. package/dist/Request.d.ts +4 -4
  67. package/dist/RequestResolver.d.ts +6 -6
  68. package/dist/RequestResolver.js +2 -2
  69. package/dist/Resource.d.ts +1 -1
  70. package/dist/Resource.js +1 -1
  71. package/dist/Result.d.ts +18 -18
  72. package/dist/Result.js +11 -11
  73. package/dist/Schedule.d.ts +44 -44
  74. package/dist/Schedule.js +18 -18
  75. package/dist/Schema.d.ts +177 -459
  76. package/dist/Schema.d.ts.map +1 -1
  77. package/dist/Schema.js +25 -25
  78. package/dist/Schema.js.map +1 -1
  79. package/dist/SchemaAST.d.ts +1 -1
  80. package/dist/SchemaGetter.d.ts +13 -13
  81. package/dist/SchemaGetter.js +12 -12
  82. package/dist/SchemaParser.d.ts +3 -3
  83. package/dist/SchemaParser.js +3 -3
  84. package/dist/Scope.d.ts +1 -1
  85. package/dist/Scope.js +1 -1
  86. package/dist/Sink.d.ts +5 -5
  87. package/dist/Sink.js +3 -3
  88. package/dist/Stream.d.ts +55 -55
  89. package/dist/Stream.js +21 -21
  90. package/dist/String.d.ts +5 -5
  91. package/dist/String.js +3 -3
  92. package/dist/Struct.d.ts +8 -8
  93. package/dist/Struct.js +3 -3
  94. package/dist/SynchronizedRef.d.ts +57 -57
  95. package/dist/SynchronizedRef.js +19 -19
  96. package/dist/Terminal.d.ts +1 -1
  97. package/dist/Terminal.js +1 -1
  98. package/dist/Tracer.d.ts +5 -5
  99. package/dist/Tracer.js +2 -2
  100. package/dist/Tuple.d.ts +14 -14
  101. package/dist/Tuple.js +6 -6
  102. package/dist/TxHashMap.d.ts +3 -3
  103. package/dist/TxHashSet.d.ts +1 -1
  104. package/dist/Unify.d.ts +7 -7
  105. package/dist/Unify.js +1 -1
  106. package/dist/testing/TestClock.d.ts +5 -5
  107. package/dist/testing/TestClock.js +4 -4
  108. package/dist/testing/TestConsole.d.ts +3 -3
  109. package/dist/testing/TestConsole.js +3 -3
  110. package/dist/unstable/ai/Chat.d.ts +2 -2
  111. package/dist/unstable/ai/Chat.js +2 -2
  112. package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
  113. package/dist/unstable/ai/IdGenerator.d.ts +2 -2
  114. package/dist/unstable/ai/IdGenerator.js +1 -1
  115. package/dist/unstable/ai/LanguageModel.d.ts +4 -4
  116. package/dist/unstable/ai/LanguageModel.js +1 -1
  117. package/dist/unstable/ai/Prompt.d.ts +15 -15
  118. package/dist/unstable/ai/Prompt.js +1 -1
  119. package/dist/unstable/ai/Telemetry.d.ts +5 -5
  120. package/dist/unstable/ai/Telemetry.js +2 -2
  121. package/dist/unstable/ai/Tokenizer.d.ts +1 -1
  122. package/dist/unstable/ai/Tokenizer.js +1 -1
  123. package/dist/unstable/ai/Tool.d.ts +6 -6
  124. package/dist/unstable/ai/Tool.js +6 -6
  125. package/dist/unstable/cli/Command.d.ts.map +1 -1
  126. package/dist/unstable/cli/Command.js +1 -1
  127. package/dist/unstable/cli/Command.js.map +1 -1
  128. package/dist/unstable/cli/Param.d.ts +1 -1
  129. package/dist/unstable/cli/Primitive.d.ts +3 -3
  130. package/dist/unstable/cli/Primitive.js +1 -1
  131. package/dist/unstable/cli/Prompt.d.ts +11 -11
  132. package/dist/unstable/cli/internal/parser.js +145 -10
  133. package/dist/unstable/cli/internal/parser.js.map +1 -1
  134. package/dist/unstable/cluster/Entity.d.ts +1 -1
  135. package/dist/unstable/cluster/Entity.js +1 -1
  136. package/dist/unstable/cluster/EntityResource.d.ts +1 -0
  137. package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
  138. package/dist/unstable/cluster/EntityResource.js +5 -3
  139. package/dist/unstable/cluster/EntityResource.js.map +1 -1
  140. package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
  141. package/dist/unstable/cluster/HttpRunner.js +2 -2
  142. package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
  143. package/dist/unstable/cluster/K8sHttpClient.js +1 -1
  144. package/dist/unstable/cluster/Runners.d.ts +1 -1
  145. package/dist/unstable/cluster/Runners.js +1 -1
  146. package/dist/unstable/cluster/Sharding.d.ts +1 -1
  147. package/dist/unstable/cluster/Sharding.js +1 -1
  148. package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
  149. package/dist/unstable/cluster/SingletonAddress.js +1 -1
  150. package/dist/unstable/cluster/Snowflake.d.ts +5 -5
  151. package/dist/unstable/cluster/Snowflake.js +5 -5
  152. package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
  153. package/dist/unstable/devtools/DevToolsClient.js +1 -1
  154. package/dist/unstable/eventlog/EventLog.d.ts +1 -1
  155. package/dist/unstable/eventlog/EventLog.js +1 -1
  156. package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
  157. package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
  158. package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
  159. package/dist/unstable/eventlog/EventLogRemote.js +1 -1
  160. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
  161. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
  162. package/dist/unstable/http/Cookies.d.ts +1 -1
  163. package/dist/unstable/http/Etag.d.ts +1 -1
  164. package/dist/unstable/http/Etag.js +1 -1
  165. package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
  166. package/dist/unstable/http/FetchHttpClient.js +2 -2
  167. package/dist/unstable/http/HttpClient.d.ts +1 -1
  168. package/dist/unstable/http/HttpClient.js +1 -1
  169. package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
  170. package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
  171. package/dist/unstable/http/HttpMiddleware.js +1 -1
  172. package/dist/unstable/http/HttpPlatform.d.ts +1 -1
  173. package/dist/unstable/http/HttpPlatform.js +1 -1
  174. package/dist/unstable/http/HttpRouter.d.ts +4 -4
  175. package/dist/unstable/http/HttpRouter.js +4 -4
  176. package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
  177. package/dist/unstable/http/Url.d.ts +33 -33
  178. package/dist/unstable/http/Url.js +11 -11
  179. package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
  180. package/dist/unstable/httpapi/HttpApi.js +1 -1
  181. package/dist/unstable/httpapi/HttpApiBuilder.js +2 -3
  182. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  183. package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
  184. package/dist/unstable/httpapi/HttpApiError.js +13 -13
  185. package/dist/unstable/httpapi/HttpApiSecurity.d.ts +27 -5
  186. package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
  187. package/dist/unstable/httpapi/HttpApiSecurity.js +26 -3
  188. package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
  189. package/dist/unstable/httpapi/OpenApi.js +2 -2
  190. package/dist/unstable/httpapi/OpenApi.js.map +1 -1
  191. package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
  192. package/dist/unstable/observability/PrometheusMetrics.js +2 -2
  193. package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
  194. package/dist/unstable/persistence/KeyValueStore.js +1 -1
  195. package/dist/unstable/persistence/Persistable.d.ts +2 -2
  196. package/dist/unstable/persistence/Persistable.js +2 -2
  197. package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
  198. package/dist/unstable/persistence/PersistedQueue.js +8 -8
  199. package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
  200. package/dist/unstable/persistence/RateLimiter.js +1 -1
  201. package/dist/unstable/process/ChildProcess.d.ts +5 -5
  202. package/dist/unstable/process/ChildProcess.js +2 -2
  203. package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
  204. package/dist/unstable/reactivity/AsyncResult.js +1 -1
  205. package/dist/unstable/reactivity/Atom.d.ts +1 -1
  206. package/dist/unstable/reactivity/Atom.js +1 -1
  207. package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
  208. package/dist/unstable/reactivity/AtomRegistry.js +1 -1
  209. package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
  210. package/dist/unstable/reactivity/Reactivity.js +1 -1
  211. package/dist/unstable/rpc/Rpc.d.ts +5 -5
  212. package/dist/unstable/rpc/Rpc.js +1 -1
  213. package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
  214. package/dist/unstable/rpc/RpcMiddleware.js +1 -1
  215. package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
  216. package/dist/unstable/rpc/RpcSchema.js +2 -2
  217. package/dist/unstable/schema/Model.d.ts +2 -2
  218. package/dist/unstable/schema/Model.js +1 -1
  219. package/dist/unstable/socket/Socket.d.ts +3 -3
  220. package/dist/unstable/socket/Socket.js +3 -3
  221. package/dist/unstable/socket/SocketServer.d.ts +1 -1
  222. package/dist/unstable/socket/SocketServer.js +1 -1
  223. package/dist/unstable/sql/Migrator.d.ts +1 -1
  224. package/dist/unstable/sql/SqlClient.d.ts +3 -3
  225. package/dist/unstable/sql/SqlClient.js +2 -2
  226. package/dist/unstable/sql/SqlConnection.d.ts +1 -1
  227. package/dist/unstable/sql/SqlConnection.js +1 -1
  228. package/dist/unstable/sql/Statement.d.ts +2 -2
  229. package/dist/unstable/sql/Statement.js +2 -2
  230. package/dist/unstable/workers/Transferable.d.ts +1 -1
  231. package/dist/unstable/workers/Transferable.js +1 -1
  232. package/dist/unstable/workers/Worker.d.ts +1 -1
  233. package/dist/unstable/workers/Worker.js +1 -1
  234. package/dist/unstable/workflow/Activity.d.ts +1 -1
  235. package/dist/unstable/workflow/Activity.js +1 -1
  236. package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
  237. package/dist/unstable/workflow/DurableDeferred.js +1 -1
  238. package/package.json +1 -1
  239. package/src/Array.ts +16 -16
  240. package/src/Boolean.ts +2 -2
  241. package/src/Channel.ts +67 -67
  242. package/src/Chunk.ts +18 -18
  243. package/src/Context.ts +4 -4
  244. package/src/Cron.ts +4 -4
  245. package/src/Deferred.ts +37 -37
  246. package/src/Duration.ts +6 -6
  247. package/src/Effect.ts +58 -58
  248. package/src/Equal.ts +2 -2
  249. package/src/Equivalence.ts +1 -1
  250. package/src/ExecutionPlan.ts +2 -2
  251. package/src/FileSystem.ts +6 -6
  252. package/src/Function.ts +5 -5
  253. package/src/Graph.ts +11 -11
  254. package/src/HKT.ts +1 -1
  255. package/src/HashMap.ts +3 -3
  256. package/src/HashSet.ts +1 -1
  257. package/src/Iterable.ts +15 -15
  258. package/src/Layer.ts +16 -16
  259. package/src/Logger.ts +7 -7
  260. package/src/ManagedRuntime.ts +2 -2
  261. package/src/Match.ts +20 -20
  262. package/src/Metric.ts +20 -20
  263. package/src/Option.ts +36 -36
  264. package/src/Order.ts +1 -1
  265. package/src/Path.ts +1 -1
  266. package/src/Pipeable.ts +1 -1
  267. package/src/Predicate.ts +5 -5
  268. package/src/PubSub.ts +9 -9
  269. package/src/Queue.ts +24 -24
  270. package/src/Record.ts +15 -15
  271. package/src/Redacted.ts +2 -2
  272. package/src/Ref.ts +18 -18
  273. package/src/RegExp.ts +1 -1
  274. package/src/Request.ts +4 -4
  275. package/src/RequestResolver.ts +8 -8
  276. package/src/Resource.ts +1 -1
  277. package/src/Result.ts +18 -18
  278. package/src/Schedule.ts +45 -45
  279. package/src/Schema.ts +177 -459
  280. package/src/SchemaAST.ts +1 -1
  281. package/src/SchemaGetter.ts +13 -13
  282. package/src/SchemaParser.ts +3 -3
  283. package/src/Scope.ts +1 -1
  284. package/src/Sink.ts +5 -5
  285. package/src/Stream.ts +57 -57
  286. package/src/String.ts +5 -5
  287. package/src/Struct.ts +8 -8
  288. package/src/SynchronizedRef.ts +57 -57
  289. package/src/Terminal.ts +1 -1
  290. package/src/Tracer.ts +5 -5
  291. package/src/Tuple.ts +14 -14
  292. package/src/TxHashMap.ts +3 -3
  293. package/src/TxHashSet.ts +1 -1
  294. package/src/Unify.ts +7 -7
  295. package/src/testing/TestClock.ts +5 -5
  296. package/src/testing/TestConsole.ts +3 -3
  297. package/src/unstable/ai/Chat.ts +2 -2
  298. package/src/unstable/ai/EmbeddingModel.ts +1 -1
  299. package/src/unstable/ai/IdGenerator.ts +2 -2
  300. package/src/unstable/ai/LanguageModel.ts +4 -4
  301. package/src/unstable/ai/Prompt.ts +15 -15
  302. package/src/unstable/ai/Telemetry.ts +5 -5
  303. package/src/unstable/ai/Tokenizer.ts +1 -1
  304. package/src/unstable/ai/Tool.ts +6 -6
  305. package/src/unstable/cli/Command.ts +5 -1
  306. package/src/unstable/cli/Param.ts +1 -1
  307. package/src/unstable/cli/Primitive.ts +3 -3
  308. package/src/unstable/cli/Prompt.ts +11 -11
  309. package/src/unstable/cli/internal/parser.ts +204 -10
  310. package/src/unstable/cluster/Entity.ts +1 -1
  311. package/src/unstable/cluster/EntityResource.ts +8 -4
  312. package/src/unstable/cluster/HttpRunner.ts +2 -2
  313. package/src/unstable/cluster/K8sHttpClient.ts +1 -1
  314. package/src/unstable/cluster/Runners.ts +1 -1
  315. package/src/unstable/cluster/Sharding.ts +1 -1
  316. package/src/unstable/cluster/SingletonAddress.ts +1 -1
  317. package/src/unstable/cluster/Snowflake.ts +5 -5
  318. package/src/unstable/devtools/DevToolsClient.ts +1 -1
  319. package/src/unstable/eventlog/EventLog.ts +1 -1
  320. package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
  321. package/src/unstable/eventlog/EventLogRemote.ts +1 -1
  322. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
  323. package/src/unstable/http/Cookies.ts +1 -1
  324. package/src/unstable/http/Etag.ts +1 -1
  325. package/src/unstable/http/FetchHttpClient.ts +2 -2
  326. package/src/unstable/http/HttpClient.ts +1 -1
  327. package/src/unstable/http/HttpClientRequest.ts +2 -2
  328. package/src/unstable/http/HttpMiddleware.ts +1 -1
  329. package/src/unstable/http/HttpPlatform.ts +1 -1
  330. package/src/unstable/http/HttpRouter.ts +4 -4
  331. package/src/unstable/http/HttpServerResponse.ts +3 -3
  332. package/src/unstable/http/Url.ts +33 -33
  333. package/src/unstable/httpapi/HttpApi.ts +1 -1
  334. package/src/unstable/httpapi/HttpApiBuilder.ts +2 -3
  335. package/src/unstable/httpapi/HttpApiError.ts +13 -13
  336. package/src/unstable/httpapi/HttpApiSecurity.ts +36 -8
  337. package/src/unstable/httpapi/OpenApi.ts +2 -2
  338. package/src/unstable/observability/PrometheusMetrics.ts +4 -4
  339. package/src/unstable/persistence/KeyValueStore.ts +3 -3
  340. package/src/unstable/persistence/Persistable.ts +2 -2
  341. package/src/unstable/persistence/PersistedQueue.ts +8 -8
  342. package/src/unstable/persistence/RateLimiter.ts +1 -1
  343. package/src/unstable/process/ChildProcess.ts +5 -5
  344. package/src/unstable/reactivity/AsyncResult.ts +4 -4
  345. package/src/unstable/reactivity/Atom.ts +1 -1
  346. package/src/unstable/reactivity/AtomRegistry.ts +1 -1
  347. package/src/unstable/reactivity/Reactivity.ts +1 -1
  348. package/src/unstable/rpc/Rpc.ts +5 -5
  349. package/src/unstable/rpc/RpcMiddleware.ts +1 -1
  350. package/src/unstable/rpc/RpcSchema.ts +3 -3
  351. package/src/unstable/schema/Model.ts +2 -2
  352. package/src/unstable/socket/Socket.ts +3 -3
  353. package/src/unstable/socket/SocketServer.ts +1 -1
  354. package/src/unstable/sql/Migrator.ts +1 -1
  355. package/src/unstable/sql/SqlClient.ts +3 -3
  356. package/src/unstable/sql/SqlConnection.ts +1 -1
  357. package/src/unstable/sql/Statement.ts +2 -2
  358. package/src/unstable/workers/Transferable.ts +1 -1
  359. package/src/unstable/workers/Worker.ts +1 -1
  360. package/src/unstable/workflow/Activity.ts +1 -1
  361. package/src/unstable/workflow/DurableDeferred.ts +1 -1
package/dist/Effect.d.ts CHANGED
@@ -1218,7 +1218,7 @@ export declare const whileLoop: <A, E, R>(options: {
1218
1218
  * ```
1219
1219
  *
1220
1220
  * @see {@link tryPromise} for a version that can handle failures.
1221
- * @category creating effects
1221
+ * @category constructors
1222
1222
  * @since 2.0.0
1223
1223
  */
1224
1224
  export declare const promise: <A>(evaluate: (signal: AbortSignal) => PromiseLike<A>) => Effect<A>;
@@ -1284,7 +1284,7 @@ export declare const promise: <A>(evaluate: (signal: AbortSignal) => PromiseLike
1284
1284
  * ```
1285
1285
  *
1286
1286
  * @see {@link promise} if the effectful computation is asynchronous and does not throw errors.
1287
- * @category creating effects
1287
+ * @category constructors
1288
1288
  * @since 2.0.0
1289
1289
  */
1290
1290
  export declare const tryPromise: <A, E = Cause.UnknownError>(options: {
@@ -1312,7 +1312,7 @@ export declare const tryPromise: <A, E = Cause.UnknownError>(options: {
1312
1312
  * ```
1313
1313
  *
1314
1314
  * @see {@link fail} to create an effect that represents a failure.
1315
- * @category creating effects
1315
+ * @category constructors
1316
1316
  * @since 2.0.0
1317
1317
  */
1318
1318
  export declare const succeed: <A>(value: A) => Effect<A>;
@@ -1330,7 +1330,7 @@ export declare const succeed: <A>(value: A) => Effect<A>;
1330
1330
  * // Output: { _id: 'Option', _tag: 'None' }
1331
1331
  * ```
1332
1332
  *
1333
- * @category creating effects
1333
+ * @category constructors
1334
1334
  * @since 2.0.0
1335
1335
  */
1336
1336
  export declare const succeedNone: Effect<Option<never>>;
@@ -1348,7 +1348,7 @@ export declare const succeedNone: Effect<Option<never>>;
1348
1348
  * // Output: { _id: 'Option', _tag: 'Some', value: 42 }
1349
1349
  * ```
1350
1350
  *
1351
- * @category creating effects
1351
+ * @category constructors
1352
1352
  * @since 2.0.0
1353
1353
  */
1354
1354
  export declare const succeedSome: <A>(value: A) => Effect<Option<A>>;
@@ -1435,7 +1435,7 @@ export declare const succeedSome: <A>(value: A) => Effect<Option<A>>;
1435
1435
  * )
1436
1436
  * ```
1437
1437
  *
1438
- * @category creating effects
1438
+ * @category constructors
1439
1439
  * @since 2.0.0
1440
1440
  */
1441
1441
  export declare const suspend: <A, E, R>(effect: LazyArg<Effect<A, E, R>>) => Effect<A, E, R>;
@@ -1471,7 +1471,7 @@ export declare const suspend: <A, E, R>(effect: LazyArg<Effect<A, E, R>>) => Eff
1471
1471
  * ```
1472
1472
  *
1473
1473
  * @see {@link try_ | try} for a version that can handle failures.
1474
- * @category creating effects
1474
+ * @category constructors
1475
1475
  * @since 2.0.0
1476
1476
  */
1477
1477
  export declare const sync: <A>(thunk: LazyArg<A>) => Effect<A>;
@@ -1480,7 +1480,7 @@ export {
1480
1480
  /**
1481
1481
  * Returns an effect that succeeds with `void`.
1482
1482
  *
1483
- * @category creating effects
1483
+ * @category constructors
1484
1484
  * @since 2.0.0
1485
1485
  */
1486
1486
  void_ as void };
@@ -1489,7 +1489,7 @@ export {
1489
1489
  /**
1490
1490
  * Returns an effect that succeeds with `undefined`.
1491
1491
  *
1492
- * @category creating effects
1492
+ * @category constructors
1493
1493
  * @since 4.0.0
1494
1494
  */
1495
1495
  undefined_ as undefined };
@@ -1525,7 +1525,7 @@ undefined_ as undefined };
1525
1525
  * const program = delay(1000)
1526
1526
  * ```
1527
1527
  *
1528
- * @category creating effects
1528
+ * @category constructors
1529
1529
  * @since 4.0.0
1530
1530
  */
1531
1531
  export declare const callback: <A, E = never, R = never>(register: (this: Scheduler, resume: (effect: Effect<A, E, R>) => void, signal: AbortSignal) => void | Effect<void, never, R>) => Effect<A, E, R>;
@@ -1548,7 +1548,7 @@ export declare const callback: <A, E = never, R = never>(register: (this: Schedu
1548
1548
  * const timedProgram = Effect.timeout(program, "1 second")
1549
1549
  * ```
1550
1550
  *
1551
- * @category creating effects
1551
+ * @category constructors
1552
1552
  * @since 2.0.0
1553
1553
  */
1554
1554
  export declare const never: Effect<never>;
@@ -1787,7 +1787,7 @@ export declare const bind: {
1787
1787
  * })
1788
1788
  * ```
1789
1789
  *
1790
- * @category creating effects
1790
+ * @category constructors
1791
1791
  * @since 2.0.0
1792
1792
  */
1793
1793
  export declare const gen: {
@@ -1839,7 +1839,7 @@ export declare const gen: {
1839
1839
  * })
1840
1840
  * ```
1841
1841
  *
1842
- * @category creating effects
1842
+ * @category constructors
1843
1843
  * @since 2.0.0
1844
1844
  */
1845
1845
  <Eff extends Effect<any, any, any>, AEff>(f: () => Generator<Eff, AEff, never>): Effect<AEff, [
@@ -1895,7 +1895,7 @@ export declare const gen: {
1895
1895
  * })
1896
1896
  * ```
1897
1897
  *
1898
- * @category creating effects
1898
+ * @category constructors
1899
1899
  * @since 2.0.0
1900
1900
  */
1901
1901
  <Self, Eff extends Effect<any, any, any>, AEff>(options: {
@@ -1915,7 +1915,7 @@ export declare namespace gen {
1915
1915
  /**
1916
1916
  * Generator return type accepted by `Effect.gen`.
1917
1917
  *
1918
- * @category creating effects
1918
+ * @category constructors
1919
1919
  * @since 4.0.0
1920
1920
  */
1921
1921
  type Return<A, E = never, R = never> = Generator<Effect<any, E, R>, A, any>;
@@ -1944,7 +1944,7 @@ export declare namespace gen {
1944
1944
  * ```
1945
1945
  *
1946
1946
  * @see {@link succeed} to create an effect that represents a successful value.
1947
- * @category creating effects
1947
+ * @category constructors
1948
1948
  * @since 2.0.0
1949
1949
  */
1950
1950
  export declare const fail: <E>(error: E) => Effect<never, E>;
@@ -1972,7 +1972,7 @@ export declare const fail: <E>(error: E) => Effect<never, E>;
1972
1972
  * // Output: { _id: 'Exit', _tag: 'Failure', cause: ... }
1973
1973
  * ```
1974
1974
  *
1975
- * @category creating effects
1975
+ * @category constructors
1976
1976
  * @since 2.0.0
1977
1977
  */
1978
1978
  export declare const failSync: <E>(evaluate: LazyArg<E>) => Effect<never, E>;
@@ -1997,7 +1997,7 @@ export declare const failSync: <E>(evaluate: LazyArg<E>) => Effect<never, E>;
1997
1997
  * // Output: { _id: 'Exit', _tag: 'Failure', cause: ... }
1998
1998
  * ```
1999
1999
  *
2000
- * @category creating effects
2000
+ * @category constructors
2001
2001
  * @since 2.0.0
2002
2002
  */
2003
2003
  export declare const failCause: <E>(cause: Cause.Cause<E>) => Effect<never, E>;
@@ -2025,7 +2025,7 @@ export declare const failCause: <E>(cause: Cause.Cause<E>) => Effect<never, E>;
2025
2025
  * // Output: { _id: 'Exit', _tag: 'Failure', cause: ... }
2026
2026
  * ```
2027
2027
  *
2028
- * @category creating effects
2028
+ * @category constructors
2029
2029
  * @since 2.0.0
2030
2030
  */
2031
2031
  export declare const failCauseSync: <E>(evaluate: LazyArg<Cause.Cause<E>>) => Effect<never, E>;
@@ -2066,7 +2066,7 @@ export declare const failCauseSync: <E>(evaluate: LazyArg<Cause.Cause<E>>) => Ef
2066
2066
  * // ...stack trace...
2067
2067
  * ```
2068
2068
  *
2069
- * @category creating effects
2069
+ * @category constructors
2070
2070
  * @since 2.0.0
2071
2071
  */
2072
2072
  export declare const die: (defect: unknown) => Effect<never>;
@@ -2136,7 +2136,7 @@ export {
2136
2136
  *
2137
2137
  * @see {@link sync} if the effectful computation is synchronous and does not
2138
2138
  * throw errors.
2139
- * @category creating effects
2139
+ * @category constructors
2140
2140
  * @since 2.0.0
2141
2141
  */
2142
2142
  try_ as try };
@@ -2157,7 +2157,7 @@ try_ as try };
2157
2157
  * Effect.runPromise(program)
2158
2158
  * ```
2159
2159
  *
2160
- * @category creating effects
2160
+ * @category constructors
2161
2161
  * @since 2.0.0
2162
2162
  */
2163
2163
  export declare const yieldNow: Effect<void>;
@@ -2178,7 +2178,7 @@ export declare const yieldNow: Effect<void>;
2178
2178
  * Effect.runPromise(program)
2179
2179
  * ```
2180
2180
  *
2181
- * @category creating effects
2181
+ * @category constructors
2182
2182
  * @since 4.0.0
2183
2183
  */
2184
2184
  export declare const yieldNowWith: (priority?: number) => Effect<void>;
@@ -2198,7 +2198,7 @@ export declare const yieldNowWith: (priority?: number) => Effect<void>;
2198
2198
  * // Output: Fiber ID: 1
2199
2199
  * ```
2200
2200
  *
2201
- * @category creating effects
2201
+ * @category constructors
2202
2202
  * @since 4.0.0
2203
2203
  */
2204
2204
  export declare const withFiber: <A, E = never, R = never>(evaluate: (fiber: Fiber<unknown, unknown>) => Effect<A, E, R>) => Effect<A, E, R>;
@@ -6405,7 +6405,7 @@ export declare const tapDefect: {
6405
6405
  * // Ready
6406
6406
  * ```
6407
6407
  *
6408
- * @category repetition / recursion
6408
+ * @category repetition
6409
6409
  * @since 2.0.0
6410
6410
  */
6411
6411
  export declare const eventually: <A, E, R>(self: Effect<A, E, R>) => Effect<A, never, R>;
@@ -13324,7 +13324,7 @@ export declare namespace Repeat {
13324
13324
  /**
13325
13325
  * Computes the result type of `Effect.repeat` from the original effect and repeat options.
13326
13326
  *
13327
- * @category repetition / recursion
13327
+ * @category repetition
13328
13328
  * @since 2.0.0
13329
13329
  */
13330
13330
  type Return<R, E, A, O extends Options<A>> = Effect<O extends {
@@ -13347,7 +13347,7 @@ export declare namespace Repeat {
13347
13347
  /**
13348
13348
  * Options that control whether and how an effect is repeated.
13349
13349
  *
13350
- * @category repetition / recursion
13350
+ * @category repetition
13351
13351
  * @since 2.0.0
13352
13352
  */
13353
13353
  interface Options<A> {
@@ -13384,7 +13384,7 @@ export declare namespace Repeat {
13384
13384
  * })
13385
13385
  * ```
13386
13386
  *
13387
- * @category repetition / recursion
13387
+ * @category repetition
13388
13388
  * @since 2.0.0
13389
13389
  */
13390
13390
  export declare const forever: <Arg extends Effect<any, any, any> | {
@@ -13467,7 +13467,7 @@ export declare const forever: <Arg extends Effect<any, any, any> | {
13467
13467
  * @see {@link retry} for failure-based repetition
13468
13468
  * @see {@link repeatOrElse} for fallback handling when repetition fails
13469
13469
  *
13470
- * @category repetition / recursion
13470
+ * @category repetition
13471
13471
  * @since 2.0.0
13472
13472
  */
13473
13473
  export declare const repeat: {
@@ -13544,7 +13544,7 @@ export declare const repeat: {
13544
13544
  * @see {@link retry} for failure-based repetition
13545
13545
  * @see {@link repeatOrElse} for fallback handling when repetition fails
13546
13546
  *
13547
- * @category repetition / recursion
13547
+ * @category repetition
13548
13548
  * @since 2.0.0
13549
13549
  */
13550
13550
  <O extends Repeat.Options<A>, A>(options: O): <E, R>(self: Effect<A, E, R>) => Repeat.Return<R, E, A, O>;
@@ -13621,7 +13621,7 @@ export declare const repeat: {
13621
13621
  * @see {@link retry} for failure-based repetition
13622
13622
  * @see {@link repeatOrElse} for fallback handling when repetition fails
13623
13623
  *
13624
- * @category repetition / recursion
13624
+ * @category repetition
13625
13625
  * @since 2.0.0
13626
13626
  */
13627
13627
  <Output, Input, Error, Env>(schedule: Schedule<Output, NoInfer<Input>, Error, Env>): <E, R>(self: Effect<Input, E, R>) => Effect<Output, E | Error, R | Env>;
@@ -13698,7 +13698,7 @@ export declare const repeat: {
13698
13698
  * @see {@link retry} for failure-based repetition
13699
13699
  * @see {@link repeatOrElse} for fallback handling when repetition fails
13700
13700
  *
13701
- * @category repetition / recursion
13701
+ * @category repetition
13702
13702
  * @since 2.0.0
13703
13703
  */
13704
13704
  <Output, Input, Error, Env>(builder: ($: <O, E, R>(_: Schedule<O, NoInfer<Input>, E, R>) => Schedule<O, Input, E, R>) => Schedule<Output, NoInfer<Input>, Error, Env>): <E, R>(self: Effect<Input, E, R>) => Effect<Output, E | Error, R | Env>;
@@ -13775,7 +13775,7 @@ export declare const repeat: {
13775
13775
  * @see {@link retry} for failure-based repetition
13776
13776
  * @see {@link repeatOrElse} for fallback handling when repetition fails
13777
13777
  *
13778
- * @category repetition / recursion
13778
+ * @category repetition
13779
13779
  * @since 2.0.0
13780
13780
  */
13781
13781
  <A, E, R, O extends Repeat.Options<A>>(self: Effect<A, E, R>, options: O): Repeat.Return<R, E, A, O>;
@@ -13852,7 +13852,7 @@ export declare const repeat: {
13852
13852
  * @see {@link retry} for failure-based repetition
13853
13853
  * @see {@link repeatOrElse} for fallback handling when repetition fails
13854
13854
  *
13855
- * @category repetition / recursion
13855
+ * @category repetition
13856
13856
  * @since 2.0.0
13857
13857
  */
13858
13858
  <Input, E, R, Output, Error, Env>(self: Effect<Input, E, R>, schedule: Schedule<Output, NoInfer<Input>, Error, Env>): Effect<Output, E | Error, R | Env>;
@@ -13929,7 +13929,7 @@ export declare const repeat: {
13929
13929
  * @see {@link retry} for failure-based repetition
13930
13930
  * @see {@link repeatOrElse} for fallback handling when repetition fails
13931
13931
  *
13932
- * @category repetition / recursion
13932
+ * @category repetition
13933
13933
  * @since 2.0.0
13934
13934
  */
13935
13935
  <Input, E, R, Output, Error, Env>(self: Effect<Input, E, R>, builder: ($: <O, E, R>(_: Schedule<O, NoInfer<Input>, E, R>) => Schedule<O, Input, E, R>) => Schedule<Output, NoInfer<Input>, Error, Env>): Effect<Output, E | Error, R | Env>;
@@ -13973,7 +13973,7 @@ export declare const repeat: {
13973
13973
  * )
13974
13974
  * ```
13975
13975
  *
13976
- * @category repetition / recursion
13976
+ * @category repetition
13977
13977
  * @since 2.0.0
13978
13978
  */
13979
13979
  export declare const repeatOrElse: {
@@ -14016,7 +14016,7 @@ export declare const repeatOrElse: {
14016
14016
  * )
14017
14017
  * ```
14018
14018
  *
14019
- * @category repetition / recursion
14019
+ * @category repetition
14020
14020
  * @since 2.0.0
14021
14021
  */
14022
14022
  <R2, A, B, E, E2, E3, R3>(schedule: Schedule<B, A, E2, R2>, orElse: (error: E | E2, option: Option<B>) => Effect<B, E3, R3>): <R>(self: Effect<A, E, R>) => Effect<B, E3, R | R2 | R3>;
@@ -14059,7 +14059,7 @@ export declare const repeatOrElse: {
14059
14059
  * )
14060
14060
  * ```
14061
14061
  *
14062
- * @category repetition / recursion
14062
+ * @category repetition
14063
14063
  * @since 2.0.0
14064
14064
  */
14065
14065
  <A, E, R, R2, B, E2, E3, R3>(self: Effect<A, E, R>, schedule: Schedule<B, A, E2, R2>, orElse: (error: E | E2, option: Option<B>) => Effect<B, E3, R3>): Effect<B, E3, R | R2 | R3>;
@@ -14292,7 +14292,7 @@ export declare const replicateEffect: {
14292
14292
  * @see {@link scheduleFrom} for a variant that allows the schedule's decision
14293
14293
  * to depend on the result of this effect.
14294
14294
  *
14295
- * @category repetition / recursion
14295
+ * @category repetition
14296
14296
  * @since 2.0.0
14297
14297
  */
14298
14298
  export declare const schedule: {
@@ -14340,7 +14340,7 @@ export declare const schedule: {
14340
14340
  * @see {@link scheduleFrom} for a variant that allows the schedule's decision
14341
14341
  * to depend on the result of this effect.
14342
14342
  *
14343
- * @category repetition / recursion
14343
+ * @category repetition
14344
14344
  * @since 2.0.0
14345
14345
  */
14346
14346
  <Output, Error, Env>(schedule: Schedule<Output, unknown, Error, Env>): <A, E, R>(self: Effect<A, E, R>) => Effect<Output, E, R | Env>;
@@ -14388,7 +14388,7 @@ export declare const schedule: {
14388
14388
  * @see {@link scheduleFrom} for a variant that allows the schedule's decision
14389
14389
  * to depend on the result of this effect.
14390
14390
  *
14391
- * @category repetition / recursion
14391
+ * @category repetition
14392
14392
  * @since 2.0.0
14393
14393
  */
14394
14394
  <A, E, R, Output, Error, Env>(self: Effect<A, E, R>, schedule: Schedule<Output, unknown, Error, Env>): Effect<Output, E, R | Env>;
@@ -14427,7 +14427,7 @@ export declare const schedule: {
14427
14427
  * // Returns the schedule count
14428
14428
  * ```
14429
14429
  *
14430
- * @category repetition / recursion
14430
+ * @category repetition
14431
14431
  * @since 2.0.0
14432
14432
  */
14433
14433
  export declare const scheduleFrom: {
@@ -14465,7 +14465,7 @@ export declare const scheduleFrom: {
14465
14465
  * // Returns the schedule count
14466
14466
  * ```
14467
14467
  *
14468
- * @category repetition / recursion
14468
+ * @category repetition
14469
14469
  * @since 2.0.0
14470
14470
  */
14471
14471
  <Input, Output, Error, Env>(initial: Input, schedule: Schedule<Output, Input, Error, Env>): <E, R>(self: Effect<Input, E, R>) => Effect<Output, E, R | Env>;
@@ -14503,7 +14503,7 @@ export declare const scheduleFrom: {
14503
14503
  * // Returns the schedule count
14504
14504
  * ```
14505
14505
  *
14506
- * @category repetition / recursion
14506
+ * @category repetition
14507
14507
  * @since 2.0.0
14508
14508
  */
14509
14509
  <Input, E, R, Output, Error, Env>(self: Effect<Input, E, R>, initial: Input, schedule: Schedule<Output, Input, Error, Env>): Effect<Output, E, R | Env>;
@@ -16029,7 +16029,7 @@ export declare const fiberId: Effect<number>;
16029
16029
  * @see {@link runPromise} for promise-based running with these options
16030
16030
  * @see {@link runPromiseExit} for promise-based running that returns an `Exit`
16031
16031
  *
16032
- * @category running effects
16032
+ * @category running
16033
16033
  * @since 4.0.0
16034
16034
  */
16035
16035
  export interface RunOptions {
@@ -16069,7 +16069,7 @@ export interface RunOptions {
16069
16069
  * }, 500)
16070
16070
  * ```
16071
16071
  *
16072
- * @category running effects
16072
+ * @category running
16073
16073
  * @since 2.0.0
16074
16074
  */
16075
16075
  export declare const runFork: <A, E>(effect: Effect<A, E, never>, options?: RunOptions | undefined) => Fiber<A, E>;
@@ -16100,7 +16100,7 @@ export declare const runFork: <A, E>(effect: Effect<A, E, never>, options?: RunO
16100
16100
  * const fiber = Effect.runForkWith(services)(program)
16101
16101
  * ```
16102
16102
  *
16103
- * @category running effects
16103
+ * @category running
16104
16104
  * @since 4.0.0
16105
16105
  */
16106
16106
  export declare const runForkWith: <R>(context: Context.Context<R>) => <A, E>(effect: Effect<A, E, R>, options?: RunOptions | undefined) => Fiber<A, E>;
@@ -16144,7 +16144,7 @@ export declare const runForkWith: <R>(context: Context.Context<R>) => <A, E>(eff
16144
16144
  * interrupt()
16145
16145
  * ```
16146
16146
  *
16147
- * @category running effects
16147
+ * @category running
16148
16148
  * @since 4.0.0
16149
16149
  */
16150
16150
  export declare const runCallbackWith: <R>(context: Context.Context<R>) => <A, E>(effect: Effect<A, E, R>, options?: (RunOptions & {
@@ -16187,7 +16187,7 @@ export declare const runCallbackWith: <R>(context: Context.Context<R>) => <A, E>
16187
16187
  * // interrupt() to cancel the fiber if needed
16188
16188
  * ```
16189
16189
  *
16190
- * @category running effects
16190
+ * @category running
16191
16191
  * @since 2.0.0
16192
16192
  */
16193
16193
  export declare const runCallback: <A, E>(effect: Effect<A, E, never>, options?: (RunOptions & {
@@ -16226,7 +16226,7 @@ export declare const runCallback: <A, E>(effect: Effect<A, E, never>, options?:
16226
16226
  * ```
16227
16227
  *
16228
16228
  * @see {@link runPromiseExit} for a version that returns an `Exit` type instead of rejecting.
16229
- * @category running effects
16229
+ * @category running
16230
16230
  * @since 2.0.0
16231
16231
  */
16232
16232
  export declare const runPromise: <A, E>(effect: Effect<A, E>, options?: RunOptions | undefined) => Promise<A>;
@@ -16256,7 +16256,7 @@ export declare const runPromise: <A, E>(effect: Effect<A, E>, options?: RunOptio
16256
16256
  * Effect.runPromiseWith(context)(program).then(console.log)
16257
16257
  * ```
16258
16258
  *
16259
- * @category running effects
16259
+ * @category running
16260
16260
  * @since 4.0.0
16261
16261
  */
16262
16262
  export declare const runPromiseWith: <R>(context: Context.Context<R>) => <A, E>(effect: Effect<A, E, R>, options?: RunOptions | undefined) => Promise<A>;
@@ -16306,7 +16306,7 @@ export declare const runPromiseWith: <R>(context: Context.Context<R>) => <A, E>(
16306
16306
  *
16307
16307
  * @see {@link runPromise} for a version that rejects on failure.
16308
16308
  *
16309
- * @category running effects
16309
+ * @category running
16310
16310
  * @since 2.0.0
16311
16311
  */
16312
16312
  export declare const runPromiseExit: <A, E>(effect: Effect<A, E>, options?: RunOptions | undefined) => Promise<Exit.Exit<A, E>>;
@@ -16340,7 +16340,7 @@ export declare const runPromiseExit: <A, E>(effect: Effect<A, E>, options?: RunO
16340
16340
  * })
16341
16341
  * ```
16342
16342
  *
16343
- * @category running effects
16343
+ * @category running
16344
16344
  * @since 4.0.0
16345
16345
  */
16346
16346
  export declare const runPromiseExitWith: <R>(context: Context.Context<R>) => <A, E>(effect: Effect<A, E, R>, options?: RunOptions | undefined) => Promise<Exit.Exit<A, E>>;
@@ -16401,7 +16401,7 @@ export declare const runPromiseExitWith: <R>(context: Context.Context<R>) => <A,
16401
16401
  *
16402
16402
  * @see {@link runSyncExit} for a version that returns an `Exit` type instead of
16403
16403
  * throwing an error.
16404
- * @category running effects
16404
+ * @category running
16405
16405
  * @since 2.0.0
16406
16406
  */
16407
16407
  export declare const runSync: <A, E>(effect: Effect<A, E>) => A;
@@ -16432,7 +16432,7 @@ export declare const runSync: <A, E>(effect: Effect<A, E>) => A;
16432
16432
  * console.log(result) // 5
16433
16433
  * ```
16434
16434
  *
16435
- * @category running effects
16435
+ * @category running
16436
16436
  * @since 4.0.0
16437
16437
  */
16438
16438
  export declare const runSyncWith: <R>(context: Context.Context<R>) => <A, E>(effect: Effect<A, E, R>) => A;
@@ -16506,7 +16506,7 @@ export declare const runSyncWith: <R>(context: Context.Context<R>) => <A, E>(eff
16506
16506
  *
16507
16507
  * @see {@link runSync} for a version that throws on failure.
16508
16508
  *
16509
- * @category running effects
16509
+ * @category running
16510
16510
  * @since 2.0.0
16511
16511
  */
16512
16512
  export declare const runSyncExit: <A, E>(effect: Effect<A, E>) => Exit.Exit<A, E>;
@@ -16546,7 +16546,7 @@ export declare const runSyncExit: <A, E>(effect: Effect<A, E>) => Exit.Exit<A, E
16546
16546
  * // Success: 42
16547
16547
  * ```
16548
16548
  *
16549
- * @category running effects
16549
+ * @category running
16550
16550
  * @since 4.0.0
16551
16551
  */
16552
16552
  export declare const runSyncExitWith: <R>(context: Context.Context<R>) => <A, E>(effect: Effect<A, E, R>) => Exit.Exit<A, E>;
@@ -19230,7 +19230,7 @@ export declare namespace Effectify {
19230
19230
  /**
19231
19231
  * Extracts the callback error type from a callback-based function type.
19232
19232
  *
19233
- * @category utils
19233
+ * @category effectify
19234
19234
  * @since 4.0.0
19235
19235
  */
19236
19236
  type EffectifyError<T> = T extends {