effect 4.0.0-rc.112 → 4.0.0-rc.113
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.
- package/AGENTS.md +24 -9
- package/CLAUDE.md +24 -9
- package/ai-docs/package.json +2 -2
- package/ai-docs/src/01_effect/01_basics/02_effect-fn.ts +18 -5
- package/ai-docs/src/01_effect/01_basics/index.md +5 -3
- package/ai-docs/src/01_effect/03_services/20_layer-composition.ts +1 -1
- package/ai-docs/src/01_effect/03_services/20_layer-unwrap.ts +2 -2
- package/ai-docs/src/01_effect/05_resources/10_acquire-release.ts +2 -2
- package/ai-docs/src/03_stream/30_encoding.ts +5 -7
- package/ai-docs/src/08_observability/10_logging.ts +1 -1
- package/ai-docs/src/70_cli/10_basics.ts +7 -7
- package/ai-docs/src/71_ai/10_language-model.ts +2 -2
- package/ai-docs/src/71_ai/20_tools.ts +1 -1
- package/ai-docs/src/71_ai/30_chat.ts +1 -1
- package/dist/Array.d.ts +86 -50
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +58 -32
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +5 -1
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +40 -23
- package/dist/BigDecimal.js.map +1 -1
- package/dist/ByteSize.d.ts +633 -0
- package/dist/ByteSize.d.ts.map +1 -0
- package/dist/ByteSize.js +524 -0
- package/dist/ByteSize.js.map +1 -0
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +17 -3
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +1 -1
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Channel.d.ts +97 -24
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +66 -39
- package/dist/Channel.js.map +1 -1
- package/dist/Chunk.d.ts +49 -28
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +27 -18
- package/dist/Chunk.js.map +1 -1
- package/dist/Config.d.ts +162 -201
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +103 -212
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +4 -4
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +7 -7
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Context.d.ts +31 -0
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +2 -2
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +2 -2
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +1 -1
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +3 -2
- package/dist/Crypto.js.map +1 -1
- package/dist/DateTime.d.ts +2 -2
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +6 -6
- package/dist/Deferred.js.map +1 -1
- package/dist/Duration.d.ts +1 -1
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +1 -1
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +220 -113
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +27 -26
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +58 -2
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +58 -6
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +3 -1
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +40 -10
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +1 -1
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +1 -1
- package/dist/Equal.js.map +1 -1
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +1 -0
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Fiber.d.ts +32 -8
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.js +3 -3
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +12 -6
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +11 -6
- package/dist/FiberMap.js.map +1 -1
- package/dist/FileSystem.d.ts +42 -210
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +16 -148
- package/dist/FileSystem.js.map +1 -1
- package/dist/Formatter.d.ts +1 -0
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +19 -3
- package/dist/Formatter.js.map +1 -1
- package/dist/Graph.d.ts +48 -20
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +20 -5
- package/dist/Graph.js.map +1 -1
- package/dist/Hash.d.ts +1 -1
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +5 -14
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +1 -1
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashRing.d.ts +6 -1
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +9 -2
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +1 -1
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js.map +1 -1
- package/dist/Iterable.d.ts +33 -15
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +58 -45
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.js +4 -4
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +68 -4
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +90 -4
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.js +8 -22
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Layer.d.ts +47 -4
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +4 -6
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +1 -3
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +7 -5
- package/dist/LayerMap.js.map +1 -1
- package/dist/LayerRef.d.ts.map +1 -1
- package/dist/LayerRef.js +7 -5
- package/dist/LayerRef.js.map +1 -1
- package/dist/Logger.d.ts +114 -9
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +109 -9
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.js +1 -1
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +43 -31
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +5 -2
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +11 -4
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +14 -18
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +1 -1
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +1 -1
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +1 -1
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +1 -1
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +13 -2
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +18 -2
- package/dist/MutableList.js.map +1 -1
- package/dist/Number.d.ts +6 -0
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +3 -1
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +5 -4
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +1 -1
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +1 -1
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +1 -0
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +3 -1
- package/dist/Order.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +1 -2
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +1 -1
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +1 -1
- package/dist/Path.js.map +1 -1
- package/dist/PlatformError.d.ts +1 -1
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +1 -1
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +38 -1
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +81 -5
- package/dist/Pool.js.map +1 -1
- package/dist/PrimaryKey.d.ts +1 -1
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +1 -1
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +21 -9
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +18 -14
- package/dist/PubSub.js.map +1 -1
- package/dist/Queue.d.ts +82 -6
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +116 -27
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +17 -4
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +1 -1
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +15 -9
- package/dist/RcMap.js.map +1 -1
- package/dist/Redacted.d.ts +1 -1
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +1 -1
- package/dist/Redacted.js.map +1 -1
- package/dist/RequestResolver.d.ts +15 -9
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +33 -15
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Result.d.ts +1 -1
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +1 -1
- package/dist/Result.js.map +1 -1
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +19 -10
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +2155 -2415
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +2755 -4174
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +354 -183
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +277 -601
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +46 -22
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +56 -53
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +122 -188
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +48 -263
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.js +2 -9
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +1099 -16
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +1341 -20
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +49 -16
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +75 -98
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +10 -3
- package/dist/ScopedCache.js.map +1 -1
- package/dist/Sink.d.ts +9 -4
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +49 -31
- package/dist/Sink.js.map +1 -1
- package/dist/Stream.d.ts +221 -35
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +168 -84
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +16 -6
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +12 -5
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +7 -4
- package/dist/Struct.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +3 -2
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Terminal.d.ts +3 -3
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +3 -3
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +27 -7
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +38 -13
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +1 -1
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Tuple.d.ts +2 -1
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +1 -1
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +1 -1
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +1 -1
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +1 -1
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +1 -1
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +1 -1
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +1 -1
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +1 -1
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +1 -1
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +1 -1
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +1 -1
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +1 -1
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +9 -9
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +93 -86
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +29 -1
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +29 -1
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +1 -1
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +1 -1
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +1 -1
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +1 -1
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +1 -1
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +1 -1
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +33 -19
- package/dist/Types.d.ts.map +1 -1
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +2 -1
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/internal/arbitrary/model.d.ts +2 -0
- package/dist/internal/arbitrary/model.d.ts.map +1 -0
- package/dist/internal/arbitrary/model.js +495 -0
- package/dist/internal/arbitrary/model.js.map +1 -0
- package/dist/internal/arbitrary/regexp.d.ts +2 -0
- package/dist/internal/arbitrary/regexp.d.ts.map +1 -0
- package/dist/internal/arbitrary/regexp.js +789 -0
- package/dist/internal/arbitrary/regexp.js.map +1 -0
- package/dist/internal/arbitrary/runner.d.ts +2 -0
- package/dist/internal/arbitrary/runner.d.ts.map +1 -0
- package/dist/internal/arbitrary/runner.js +496 -0
- package/dist/internal/arbitrary/runner.js.map +1 -0
- package/dist/internal/arbitrary/schema.d.ts.map +1 -0
- package/dist/internal/arbitrary/schema.js +1340 -0
- package/dist/internal/arbitrary/schema.js.map +1 -0
- package/dist/internal/core.js +27 -13
- package/dist/internal/core.js.map +1 -1
- package/dist/internal/count.d.ts +2 -0
- package/dist/internal/count.d.ts.map +1 -0
- package/dist/internal/count.js +14 -0
- package/dist/internal/count.js.map +1 -0
- package/dist/internal/dateTime.js +4 -10
- package/dist/internal/dateTime.js.map +1 -1
- package/dist/internal/effect.js +386 -251
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/graph.js +3 -1
- package/dist/internal/graph.js.map +1 -1
- package/dist/internal/hashMap.js +5 -3
- package/dist/internal/hashMap.js.map +1 -1
- package/dist/internal/hashSet.js +1 -1
- package/dist/internal/hashSet.js.map +1 -1
- package/dist/internal/matcher.js +1 -1
- package/dist/internal/matcher.js.map +1 -1
- package/dist/internal/metric.js +1 -1
- package/dist/internal/metric.js.map +1 -1
- package/dist/internal/option.js +6 -5
- package/dist/internal/option.js.map +1 -1
- package/dist/internal/random.js +17 -0
- package/dist/internal/random.js.map +1 -1
- package/dist/internal/rcRef.js +10 -7
- package/dist/internal/rcRef.js.map +1 -1
- package/dist/internal/references.js +1 -0
- package/dist/internal/references.js.map +1 -1
- package/dist/internal/request.js +13 -6
- package/dist/internal/request.js.map +1 -1
- package/dist/internal/result.js +11 -9
- package/dist/internal/result.js.map +1 -1
- package/dist/internal/schema/annotations.js +1 -1
- package/dist/internal/schema/annotations.js.map +1 -1
- package/dist/internal/schema/fromJsonSchemaDocument.js +14 -12
- package/dist/internal/schema/fromJsonSchemaDocument.js.map +1 -1
- package/dist/internal/schema/fromRepresentation.js +5 -5
- package/dist/internal/schema/fromRepresentation.js.map +1 -1
- package/dist/internal/schema/make.d.ts +2 -0
- package/dist/internal/schema/make.d.ts.map +1 -0
- package/dist/internal/schema/{schema.js → make.js} +1 -25
- package/dist/internal/schema/make.js.map +1 -0
- package/dist/internal/schema/parser.d.ts +0 -12
- package/dist/internal/schema/parser.d.ts.map +1 -1
- package/dist/internal/schema/parser.js +7 -0
- package/dist/internal/schema/parser.js.map +1 -1
- package/dist/internal/schema/standardSchema.d.ts +2 -0
- package/dist/internal/schema/standardSchema.d.ts.map +1 -0
- package/dist/internal/schema/standardSchema.js +112 -0
- package/dist/internal/schema/standardSchema.js.map +1 -0
- package/dist/internal/schema/toCodeDocument.js +34 -22
- package/dist/internal/schema/toCodeDocument.js.map +1 -1
- package/dist/internal/schema/toCodec.d.ts +2 -0
- package/dist/internal/schema/toCodec.d.ts.map +1 -0
- package/dist/internal/schema/toCodec.js +242 -0
- package/dist/internal/schema/toCodec.js.map +1 -0
- package/dist/internal/schema/toDifferJsonPatch.d.ts +2 -0
- package/dist/internal/schema/toDifferJsonPatch.d.ts.map +1 -0
- package/dist/internal/schema/toDifferJsonPatch.js +20 -0
- package/dist/internal/schema/toDifferJsonPatch.js.map +1 -0
- package/dist/internal/schema/toEncoderXml.d.ts +2 -0
- package/dist/internal/schema/toEncoderXml.d.ts.map +1 -0
- package/dist/internal/schema/toEncoderXml.js +104 -0
- package/dist/internal/schema/toEncoderXml.js.map +1 -0
- package/dist/internal/schema/toEquivalence.js +66 -0
- package/dist/internal/schema/toEquivalence.js.map +1 -1
- package/dist/internal/schema/toFormatter.d.ts +2 -0
- package/dist/internal/schema/toFormatter.d.ts.map +1 -0
- package/dist/internal/schema/toFormatter.js +227 -0
- package/dist/internal/schema/toFormatter.js.map +1 -0
- package/dist/internal/schema/toIso.d.ts +2 -0
- package/dist/internal/schema/toIso.d.ts.map +1 -0
- package/dist/internal/schema/toIso.js +17 -0
- package/dist/internal/schema/toIso.js.map +1 -0
- package/dist/internal/schema/toJsonSchemaDocument.js +122 -71
- package/dist/internal/schema/toJsonSchemaDocument.js.map +1 -1
- package/dist/internal/schema/toRepresentation.js +3 -1
- package/dist/internal/schema/toRepresentation.js.map +1 -1
- package/dist/internal/schemaError.d.ts +4 -0
- package/dist/internal/schemaError.d.ts.map +1 -0
- package/dist/internal/schemaError.js +6 -0
- package/dist/internal/schemaError.js.map +1 -0
- package/dist/internal/stream.js +5 -6
- package/dist/internal/stream.js.map +1 -1
- package/dist/internal/tracer.d.ts +1 -3
- package/dist/internal/tracer.d.ts.map +1 -1
- package/dist/internal/tracer.js +6 -0
- package/dist/internal/tracer.js.map +1 -1
- package/dist/internal/trie.js +2 -2
- package/dist/internal/trie.js.map +1 -1
- package/dist/internal/uuid.d.ts +1 -2
- package/dist/internal/uuid.d.ts.map +1 -1
- package/dist/internal/uuid.js +2 -0
- package/dist/internal/uuid.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +9 -11
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +20 -18
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/testing/index.d.ts +0 -4
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +0 -4
- package/dist/testing/index.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +74 -23
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +59 -5
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js +2 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +27 -32
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +10 -13
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +23 -16
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +13 -11
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +48 -37
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +150 -47
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +2 -2
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +21 -12
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +2 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +1 -1
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +15 -4
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +37 -94
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +46 -96
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +4 -5
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +38 -20
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +27 -1
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +1 -1
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +30 -18
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/ai/internal/structured-output.js +8 -5
- package/dist/unstable/ai/internal/structured-output.js.map +1 -1
- package/dist/unstable/arbitrary/Arbitrary.d.ts +626 -0
- package/dist/unstable/arbitrary/Arbitrary.d.ts.map +1 -0
- package/dist/unstable/arbitrary/Arbitrary.js +238 -0
- package/dist/unstable/arbitrary/Arbitrary.js.map +1 -0
- package/dist/unstable/arbitrary/index.d.ts +8 -0
- package/dist/unstable/arbitrary/index.d.ts.map +1 -0
- package/dist/unstable/arbitrary/index.js +9 -0
- package/dist/unstable/arbitrary/index.js.map +1 -0
- package/dist/unstable/cli/Argument.d.ts +104 -108
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js +56 -57
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +2 -0
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +2 -0
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/CliOutput.js +26 -3
- package/dist/unstable/cli/CliOutput.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +73 -73
- package/dist/unstable/cli/Command.js +18 -18
- package/dist/unstable/cli/Completions.d.ts +4 -4
- package/dist/unstable/cli/Completions.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +150 -161
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +79 -90
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +3 -3
- package/dist/unstable/cli/GlobalFlag.js +13 -13
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +118 -126
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +104 -113
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +69 -58
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +65 -66
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +23 -24
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +68 -63
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/completions/descriptor.js +23 -11
- package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
- package/dist/unstable/cli/internal/completions/zsh.js +2 -2
- package/dist/unstable/cli/internal/completions/zsh.js.map +1 -1
- package/dist/unstable/cli/internal/config.js +4 -4
- package/dist/unstable/cli/internal/parser.js +1 -1
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cli/internal/wizard.d.ts.map +1 -1
- package/dist/unstable/cli/internal/wizard.js +14 -13
- package/dist/unstable/cli/internal/wizard.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +13 -0
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +16 -1
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +57 -14
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +2 -0
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +2 -2
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +4 -4
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +2 -3
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +5 -2
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +34 -4
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +28 -9
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +1 -1
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +32 -17
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.js +23 -23
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +2 -2
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +4 -3
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js +11 -8
- package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.js +11 -4
- package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/internal/clusterAbandon.d.ts +5 -0
- package/dist/unstable/cluster/internal/clusterAbandon.d.ts.map +1 -0
- package/dist/unstable/cluster/internal/clusterAbandon.js +9 -0
- package/dist/unstable/cluster/internal/clusterAbandon.js.map +1 -0
- package/dist/unstable/cluster/internal/entityManager.js +7 -4
- package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
- package/dist/unstable/cluster/internal/interruptors.js +30 -1
- package/dist/unstable/cluster/internal/interruptors.js.map +1 -1
- package/dist/unstable/cluster/internal/resourceRef.js +12 -7
- package/dist/unstable/cluster/internal/resourceRef.js.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +12 -7
- package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
- package/dist/unstable/encoding/Ini.d.ts +2 -0
- package/dist/unstable/encoding/Ini.d.ts.map +1 -1
- package/dist/unstable/encoding/Ini.js +2 -0
- package/dist/unstable/encoding/Ini.js.map +1 -1
- package/dist/unstable/encoding/SchemaBinary.d.ts +27 -3
- package/dist/unstable/encoding/SchemaBinary.d.ts.map +1 -1
- package/dist/unstable/encoding/SchemaBinary.js +108 -39
- package/dist/unstable/encoding/SchemaBinary.js.map +1 -1
- package/dist/unstable/encoding/Sse.js +1 -1
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/encoding/Toml.d.ts +2 -0
- package/dist/unstable/encoding/Toml.d.ts.map +1 -1
- package/dist/unstable/encoding/Toml.js +6 -4
- package/dist/unstable/encoding/Toml.js.map +1 -1
- package/dist/unstable/encoding/Yaml.d.ts +2 -0
- package/dist/unstable/encoding/Yaml.d.ts.map +1 -1
- package/dist/unstable/encoding/Yaml.js +16 -5
- package/dist/unstable/encoding/Yaml.js.map +1 -1
- package/dist/unstable/encoding/index.d.ts +0 -4
- package/dist/unstable/encoding/index.d.ts.map +1 -1
- package/dist/unstable/encoding/index.js +0 -4
- package/dist/unstable/encoding/index.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +5 -5
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js +3 -3
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +7 -7
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +9 -9
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +4 -4
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +11 -5
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +25 -15
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +7 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +13 -3
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +2 -2
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +26 -13
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +5 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +1 -45
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +2 -64
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +1 -1
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/FindMyWay/internal/router.js +124 -33
- package/dist/unstable/http/FindMyWay/internal/router.js.map +1 -1
- package/dist/unstable/http/FindMyWay.d.ts +15 -5
- package/dist/unstable/http/FindMyWay.d.ts.map +1 -1
- package/dist/unstable/http/FindMyWay.js +3 -1
- package/dist/unstable/http/FindMyWay.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +0 -22
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +3 -34
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +41 -10
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +64 -10
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +1 -1
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +28 -18
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +28 -6
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +8 -19
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +6 -1
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +10 -6
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +16 -0
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +121 -65
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.d.ts +3 -3
- package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.js +1 -13
- package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.js +29 -21
- package/dist/unstable/http/HttpMiddleware.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +12 -11
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +36 -10
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +5 -1
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +22 -8
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +11 -42
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +16 -20
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +11 -11
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +1 -1
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +9 -13
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +34 -44
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +2 -2
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +19 -19
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/Mime.d.ts +28 -0
- package/dist/unstable/http/Mime.d.ts.map +1 -0
- package/dist/unstable/http/Mime.js +72 -0
- package/dist/unstable/http/Mime.js.map +1 -0
- package/dist/unstable/http/Multipart.d.ts +22 -9
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +26 -10
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/MultipartParser/internal/multipart.d.ts +1 -1
- package/dist/unstable/http/MultipartParser/internal/multipart.d.ts.map +1 -1
- package/dist/unstable/http/MultipartParser/internal/multipart.js +8 -3
- package/dist/unstable/http/MultipartParser/internal/multipart.js.map +1 -1
- package/dist/unstable/http/MultipartParser.d.ts +4 -3
- package/dist/unstable/http/MultipartParser.d.ts.map +1 -1
- package/dist/unstable/http/MultipartParser.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +0 -97
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +3 -104
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/http/index.d.ts +4 -0
- package/dist/unstable/http/index.d.ts.map +1 -1
- package/dist/unstable/http/index.js +4 -0
- package/dist/unstable/http/index.js.map +1 -1
- package/dist/unstable/http/internal/compression.js +8 -11
- package/dist/unstable/http/internal/compression.js.map +1 -1
- package/dist/unstable/http/internal/headers.d.ts +2 -0
- package/dist/unstable/http/internal/headers.d.ts.map +1 -0
- package/dist/unstable/http/internal/headers.js +5 -0
- package/dist/unstable/http/internal/headers.js.map +1 -0
- package/dist/unstable/http/internal/httpBody.js +8 -0
- package/dist/unstable/http/internal/httpBody.js.map +1 -1
- package/dist/unstable/http/internal/mimeTypes.d.ts +361 -0
- package/dist/unstable/http/internal/mimeTypes.d.ts.map +1 -0
- package/dist/unstable/http/internal/mimeTypes.js +363 -0
- package/dist/unstable/http/internal/mimeTypes.js.map +1 -0
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +13 -0
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +23 -6
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts +4 -3
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +25 -13
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +8 -3
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +9 -6
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.js +3 -1
- package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +7 -5
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +12 -0
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +8 -10
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +8 -2
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +31 -20
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/net/IpInterface.d.ts +140 -0
- package/dist/unstable/net/IpInterface.d.ts.map +1 -0
- package/dist/unstable/net/IpInterface.js +149 -0
- package/dist/unstable/net/IpInterface.js.map +1 -0
- package/dist/unstable/net/IpNetwork.d.ts +227 -0
- package/dist/unstable/net/IpNetwork.d.ts.map +1 -0
- package/dist/unstable/net/IpNetwork.js +239 -0
- package/dist/unstable/net/IpNetwork.js.map +1 -0
- package/dist/unstable/net/NetAddress.d.ts +705 -0
- package/dist/unstable/net/NetAddress.d.ts.map +1 -0
- package/dist/unstable/net/NetAddress.js +956 -0
- package/dist/unstable/net/NetAddress.js.map +1 -0
- package/dist/unstable/net/index.d.ts +16 -0
- package/dist/unstable/net/index.d.ts.map +1 -0
- package/dist/unstable/net/index.js +17 -0
- package/dist/unstable/net/index.js.map +1 -0
- package/dist/unstable/observability/OtlpExporter.d.ts +1 -0
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +4 -6
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +9 -9
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +9 -8
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +2 -2
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +82 -55
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/internal/otlpEnv.d.ts +1 -1
- package/dist/unstable/observability/internal/otlpEnv.d.ts.map +1 -1
- package/dist/unstable/observability/internal/otlpEnv.js +5 -9
- package/dist/unstable/observability/internal/otlpEnv.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +1 -1
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +114 -14
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +799 -234
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +28 -15
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +33 -41
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +8 -2
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +7 -2
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +6 -3
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +3 -6
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +6 -3
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +2 -3
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +2 -2
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +1 -1
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -4
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +20 -6
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +26 -26
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +10 -12
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +64 -64
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +1 -1
- package/dist/unstable/rpc/RpcMessage.d.ts +3 -1
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js +1 -1
- package/dist/unstable/rpc/RpcMessage.js.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +7 -5
- package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +5 -39
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +22 -115
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +104 -57
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +7 -6
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
- package/dist/unstable/schema/VariantSchema.js +3 -0
- package/dist/unstable/schema/VariantSchema.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +287 -102
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +408 -215
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.d.ts +5 -32
- package/dist/unstable/socket/SocketServer.d.ts.map +1 -1
- package/dist/unstable/socket/SocketServer.js +3 -3
- package/dist/unstable/socket/SocketServer.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +20 -0
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +14 -7
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +15 -0
- package/dist/unstable/sql/SqlConnection.d.ts.map +1 -1
- package/dist/unstable/sql/SqlConnection.js.map +1 -1
- package/dist/unstable/sql/SqlModel.d.ts +1 -1
- package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +13 -5
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +29 -15
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/workers/Transferable.js +1 -1
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +3 -1
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workflow/Activity.d.ts +7 -0
- package/dist/unstable/workflow/Activity.d.ts.map +1 -1
- package/dist/unstable/workflow/Activity.js +14 -4
- package/dist/unstable/workflow/Activity.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.js +1 -1
- package/dist/unstable/workflow/DurableClock.js.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +2 -2
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +8 -0
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +8 -0
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +5 -0
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +70 -12
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +6 -0
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +11 -0
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/package.json +7 -9
- package/src/Array.ts +118 -67
- package/src/BigDecimal.ts +50 -28
- package/src/ByteSize.ts +838 -0
- package/src/Cache.ts +17 -3
- package/src/Cause.ts +1 -1
- package/src/Channel.ts +183 -48
- package/src/Chunk.ts +65 -36
- package/src/Config.ts +237 -248
- package/src/ConfigProvider.ts +7 -8
- package/src/Context.ts +31 -0
- package/src/Cron.ts +2 -2
- package/src/Crypto.ts +3 -2
- package/src/Deferred.ts +7 -6
- package/src/Duration.ts +1 -1
- package/src/Effect.ts +226 -122
- package/src/Effectable.ts +78 -9
- package/src/Encoding.ts +101 -11
- package/src/Equal.ts +1 -1
- package/src/ExecutionPlan.ts +3 -0
- package/src/Fiber.ts +33 -8
- package/src/FiberHandle.ts +3 -3
- package/src/FiberMap.ts +19 -10
- package/src/FileSystem.ts +55 -230
- package/src/Formatter.ts +21 -3
- package/src/Graph.ts +55 -25
- package/src/Hash.ts +5 -16
- package/src/HashRing.ts +9 -2
- package/src/HashSet.ts +56 -0
- package/src/Iterable.ts +66 -41
- package/src/JsonPatch.ts +4 -4
- package/src/JsonPointer.ts +97 -4
- package/src/JsonSchema.ts +8 -26
- package/src/Layer.ts +59 -18
- package/src/LayerMap.ts +8 -6
- package/src/LayerRef.ts +7 -5
- package/src/Logger.ts +125 -18
- package/src/ManagedRuntime.ts +1 -1
- package/src/Match.ts +33 -14
- package/src/Metric.ts +24 -21
- package/src/MutableHashMap.ts +1 -1
- package/src/MutableHashSet.ts +1 -1
- package/src/MutableList.ts +18 -2
- package/src/Number.ts +7 -1
- package/src/Optic.ts +8 -4
- package/src/Option.ts +1 -1
- package/src/Order.ts +3 -1
- package/src/PartitionedSemaphore.ts +1 -2
- package/src/Path.ts +1 -1
- package/src/PlatformError.ts +1 -1
- package/src/Pool.ts +125 -8
- package/src/PrimaryKey.ts +1 -1
- package/src/PubSub.ts +32 -20
- package/src/Queue.ts +119 -28
- package/src/Random.ts +20 -6
- package/src/RcMap.ts +20 -13
- package/src/Redacted.ts +1 -1
- package/src/RequestResolver.ts +49 -26
- package/src/Result.ts +1 -1
- package/src/Scheduler.ts +21 -11
- package/src/Schema.ts +4809 -6368
- package/src/SchemaAST.ts +1031 -284
- package/src/SchemaGetter.ts +75 -21
- package/src/SchemaIssue.ts +259 -15
- package/src/SchemaParser.ts +2 -12
- package/src/SchemaRepresentation.ts +1593 -29
- package/src/SchemaTransformation.ts +145 -22
- package/src/ScopedCache.ts +10 -3
- package/src/Sink.ts +31 -15
- package/src/Stream.ts +294 -76
- package/src/String.ts +20 -9
- package/src/Struct.ts +8 -4
- package/src/SynchronizedRef.ts +3 -5
- package/src/Terminal.ts +3 -3
- package/src/Tracer.ts +43 -14
- package/src/Tuple.ts +3 -1
- package/src/TxChunk.ts +1 -1
- package/src/TxDeferred.ts +1 -1
- package/src/TxHashMap.ts +1 -1
- package/src/TxHashSet.ts +92 -11
- package/src/TxPriorityQueue.ts +1 -1
- package/src/TxPubSub.ts +1 -1
- package/src/TxQueue.ts +22 -17
- package/src/TxReentrantLock.ts +29 -1
- package/src/TxRef.ts +1 -1
- package/src/TxSemaphore.ts +1 -1
- package/src/TxSubscriptionRef.ts +1 -1
- package/src/Types.ts +40 -17
- package/src/Utils.ts +3 -1
- package/src/index.ts +5 -0
- package/src/internal/arbitrary/model.ts +701 -0
- package/src/internal/arbitrary/regexp.ts +855 -0
- package/src/internal/arbitrary/runner.ts +608 -0
- package/src/internal/arbitrary/schema.ts +1800 -0
- package/src/internal/core.ts +48 -22
- package/src/internal/count.ts +14 -0
- package/src/internal/dateTime.ts +8 -10
- package/src/internal/effect.ts +475 -295
- package/src/internal/graph.ts +6 -1
- package/src/internal/hashMap.ts +5 -3
- package/src/internal/hashSet.ts +1 -1
- package/src/internal/matcher.ts +34 -19
- package/src/internal/metric.ts +1 -1
- package/src/internal/option.ts +8 -6
- package/src/internal/random.ts +20 -7
- package/src/internal/rcRef.ts +10 -7
- package/src/internal/references.ts +1 -0
- package/src/internal/request.ts +12 -7
- package/src/internal/result.ts +15 -11
- package/src/internal/schema/annotations.ts +3 -3
- package/src/internal/schema/fromJsonSchemaDocument.ts +14 -29
- package/src/internal/schema/fromRepresentation.ts +5 -3
- package/src/internal/schema/{schema.ts → make.ts} +0 -40
- package/src/internal/schema/parser.ts +8 -0
- package/src/internal/schema/standardSchema.ts +125 -0
- package/src/internal/schema/toCodeDocument.ts +58 -44
- package/src/internal/schema/toCodec.ts +312 -0
- package/src/internal/schema/toDifferJsonPatch.ts +24 -0
- package/src/internal/schema/toEncoderXml.ts +110 -0
- package/src/internal/schema/toEquivalence.ts +76 -0
- package/src/internal/schema/toFormatter.ts +230 -0
- package/src/internal/schema/toIso.ts +20 -0
- package/src/internal/schema/toJsonSchemaDocument.ts +125 -67
- package/src/internal/schema/toRepresentation.ts +1 -1
- package/src/internal/schemaError.ts +8 -0
- package/src/internal/stream.ts +14 -6
- package/src/internal/tracer.ts +4 -0
- package/src/internal/trie.ts +5 -2
- package/src/internal/uuid.ts +4 -0
- package/src/testing/TestSchema.ts +36 -30
- package/src/testing/index.ts +0 -5
- package/src/unstable/ai/AiError.ts +69 -5
- package/src/unstable/ai/AnthropicStructuredOutput.ts +4 -1
- package/src/unstable/ai/Chat.ts +35 -36
- package/src/unstable/ai/EmbeddingModel.ts +27 -15
- package/src/unstable/ai/LanguageModel.ts +283 -100
- package/src/unstable/ai/McpServer.ts +36 -20
- package/src/unstable/ai/OpenAiStructuredOutput.ts +4 -1
- package/src/unstable/ai/Prompt.ts +19 -4
- package/src/unstable/ai/Response.ts +107 -189
- package/src/unstable/ai/Tokenizer.ts +4 -5
- package/src/unstable/ai/Tool.ts +58 -35
- package/src/unstable/ai/Toolkit.ts +43 -37
- package/src/unstable/ai/internal/structured-output.ts +5 -5
- package/src/unstable/arbitrary/Arbitrary.ts +715 -0
- package/src/unstable/arbitrary/index.ts +10 -0
- package/src/unstable/cli/Argument.ts +111 -115
- package/src/unstable/cli/CliError.ts +2 -0
- package/src/unstable/cli/CliOutput.ts +40 -3
- package/src/unstable/cli/Command.ts +74 -74
- package/src/unstable/cli/Completions.ts +4 -4
- package/src/unstable/cli/Flag.ts +158 -169
- package/src/unstable/cli/GlobalFlag.ts +13 -13
- package/src/unstable/cli/Param.ts +150 -159
- package/src/unstable/cli/Primitive.ts +75 -76
- package/src/unstable/cli/Prompt.ts +88 -87
- package/src/unstable/cli/internal/completions/descriptor.ts +23 -11
- package/src/unstable/cli/internal/completions/zsh.ts +2 -2
- package/src/unstable/cli/internal/config.ts +4 -4
- package/src/unstable/cli/internal/parser.ts +1 -1
- package/src/unstable/cli/internal/wizard.ts +18 -13
- package/src/unstable/cluster/ClusterSchema.ts +19 -1
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +66 -16
- package/src/unstable/cluster/Entity.ts +3 -0
- package/src/unstable/cluster/EntityProxyServer.ts +6 -2
- package/src/unstable/cluster/Envelope.ts +3 -3
- package/src/unstable/cluster/HttpRunner.ts +7 -2
- package/src/unstable/cluster/MessageStorage.ts +62 -21
- package/src/unstable/cluster/Reply.ts +2 -2
- package/src/unstable/cluster/Sharding.ts +44 -19
- package/src/unstable/cluster/ShardingConfig.ts +23 -23
- package/src/unstable/cluster/SocketRunner.ts +5 -4
- package/src/unstable/cluster/SqlMessageStorage.ts +12 -8
- package/src/unstable/cluster/SqlRunnerStorage.ts +18 -10
- package/src/unstable/cluster/internal/clusterAbandon.ts +14 -0
- package/src/unstable/cluster/internal/entityManager.ts +12 -4
- package/src/unstable/cluster/internal/interruptors.ts +58 -1
- package/src/unstable/cluster/internal/resourceRef.ts +15 -7
- package/src/unstable/devtools/DevToolsClient.ts +13 -3
- package/src/unstable/encoding/Ini.ts +2 -0
- package/src/unstable/encoding/SchemaBinary.ts +150 -44
- package/src/unstable/encoding/Sse.ts +1 -1
- package/src/unstable/encoding/Toml.ts +7 -5
- package/src/unstable/encoding/Yaml.ts +18 -5
- package/src/unstable/encoding/index.ts +0 -5
- package/src/unstable/eventlog/Event.ts +7 -7
- package/src/unstable/eventlog/EventJournal.ts +9 -9
- package/src/unstable/eventlog/EventLog.ts +5 -5
- package/src/unstable/eventlog/EventLogMessage.ts +25 -15
- package/src/unstable/eventlog/EventLogRemote.ts +15 -4
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +2 -2
- package/src/unstable/eventlog/SqlEventJournal.ts +32 -9
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +11 -1
- package/src/unstable/http/Cookies.ts +2 -102
- package/src/unstable/http/FetchHttpClient.ts +1 -1
- package/src/unstable/http/FindMyWay/internal/router.ts +139 -33
- package/src/unstable/http/FindMyWay.ts +15 -5
- package/src/unstable/http/Headers.ts +3 -48
- package/src/unstable/http/HttpBody.ts +107 -36
- package/src/unstable/http/HttpClient.ts +41 -30
- package/src/unstable/http/HttpClientRequest.ts +32 -18
- package/src/unstable/http/HttpClientResponse.ts +16 -3
- package/src/unstable/http/HttpEffect.ts +145 -73
- package/src/unstable/http/HttpIncomingMessage.ts +4 -4
- package/src/unstable/http/HttpMiddleware.ts +43 -24
- package/src/unstable/http/HttpPlatform.ts +62 -20
- package/src/unstable/http/HttpRouter.ts +27 -16
- package/src/unstable/http/HttpServer.ts +18 -57
- package/src/unstable/http/HttpServerRequest.ts +17 -15
- package/src/unstable/http/HttpServerRespondable.ts +1 -1
- package/src/unstable/http/HttpServerResponse.ts +49 -40
- package/src/unstable/http/HttpStaticServer.ts +30 -28
- package/src/unstable/http/Mime.ts +76 -0
- package/src/unstable/http/Multipart.ts +35 -18
- package/src/unstable/http/MultipartParser/internal/multipart.ts +10 -3
- package/src/unstable/http/MultipartParser.ts +4 -3
- package/src/unstable/http/UrlParams.ts +3 -161
- package/src/unstable/http/index.ts +5 -0
- package/src/unstable/http/internal/compression.ts +11 -12
- package/src/unstable/http/internal/headers.ts +7 -0
- package/src/unstable/http/internal/httpBody.ts +9 -0
- package/src/unstable/http/internal/mimeTypes.ts +395 -0
- package/src/unstable/httpapi/HttpApiBuilder.ts +52 -6
- package/src/unstable/httpapi/HttpApiClient.ts +44 -24
- package/src/unstable/httpapi/HttpApiEndpoint.ts +24 -11
- package/src/unstable/httpapi/HttpApiError.ts +3 -1
- package/src/unstable/httpapi/HttpApiMiddleware.ts +7 -5
- package/src/unstable/httpapi/HttpApiSchema.ts +14 -7
- package/src/unstable/httpapi/HttpApiTest.ts +6 -1
- package/src/unstable/httpapi/OpenApi.ts +32 -22
- package/src/unstable/net/IpInterface.ts +242 -0
- package/src/unstable/net/IpNetwork.ts +357 -0
- package/src/unstable/net/NetAddress.ts +1271 -0
- package/src/unstable/net/index.ts +20 -0
- package/src/unstable/observability/OtlpExporter.ts +5 -6
- package/src/unstable/observability/OtlpLogger.ts +9 -9
- package/src/unstable/observability/OtlpMetrics.ts +9 -8
- package/src/unstable/observability/OtlpResource.ts +5 -4
- package/src/unstable/observability/OtlpTracer.ts +103 -81
- package/src/unstable/observability/internal/otlpEnv.ts +10 -13
- package/src/unstable/persistence/PersistedCache.ts +1 -1
- package/src/unstable/persistence/PersistedQueue.ts +1100 -291
- package/src/unstable/persistence/RateLimiter.ts +64 -58
- package/src/unstable/process/ChildProcess.ts +15 -4
- package/src/unstable/process/ChildProcessSpawner.ts +1 -1
- package/src/unstable/reactivity/Atom.ts +6 -3
- package/src/unstable/reactivity/AtomHttpApi.ts +21 -10
- package/src/unstable/reactivity/AtomRegistry.ts +2 -4
- package/src/unstable/reactivity/AtomRpc.ts +6 -5
- package/src/unstable/reactivity/Hydration.ts +26 -7
- package/src/unstable/reactivity/Reactivity.ts +49 -36
- package/src/unstable/rpc/RpcClient.ts +62 -59
- package/src/unstable/rpc/RpcMessage.ts +3 -1
- package/src/unstable/rpc/RpcMiddleware.ts +7 -5
- package/src/unstable/rpc/RpcSerialization.ts +27 -117
- package/src/unstable/rpc/RpcServer.ts +143 -80
- package/src/unstable/schema/Model.ts +8 -7
- package/src/unstable/schema/VariantSchema.ts +3 -0
- package/src/unstable/socket/Socket.ts +714 -383
- package/src/unstable/socket/SocketServer.ts +5 -35
- package/src/unstable/sql/SqlClient.ts +42 -7
- package/src/unstable/sql/SqlConnection.ts +18 -0
- package/src/unstable/sql/SqlModel.ts +1 -1
- package/src/unstable/sql/Statement.ts +46 -20
- package/src/unstable/workers/Transferable.ts +1 -1
- package/src/unstable/workers/Worker.ts +3 -1
- package/src/unstable/workflow/Activity.ts +20 -9
- package/src/unstable/workflow/DurableClock.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +6 -0
- package/src/unstable/workflow/DurableQueue.ts +8 -0
- package/src/unstable/workflow/Workflow.ts +105 -28
- package/src/unstable/workflow/WorkflowEngine.ts +22 -0
- package/dist/internal/schema/schema.d.ts.map +0 -1
- package/dist/internal/schema/schema.js.map +0 -1
- package/dist/internal/schema/toArbitrary.d.ts +0 -2
- package/dist/internal/schema/toArbitrary.d.ts.map +0 -1
- package/dist/internal/schema/toArbitrary.js +0 -705
- package/dist/internal/schema/toArbitrary.js.map +0 -1
- package/dist/testing/FastCheck.d.ts +0 -90
- package/dist/testing/FastCheck.d.ts.map +0 -1
- package/dist/testing/FastCheck.js +0 -90
- package/dist/testing/FastCheck.js.map +0 -1
- package/dist/unstable/encoding/Msgpack.d.ts +0 -185
- package/dist/unstable/encoding/Msgpack.d.ts.map +0 -1
- package/dist/unstable/encoding/Msgpack.js +0 -227
- package/dist/unstable/encoding/Msgpack.js.map +0 -1
- package/src/internal/schema/toArbitrary.ts +0 -843
- package/src/testing/FastCheck.ts +0 -90
- package/src/unstable/encoding/Msgpack.ts +0 -432
- /package/dist/internal/{schema → arbitrary}/schema.d.ts +0 -0
package/dist/Config.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @since 4.0.0
|
|
9
9
|
*/
|
|
10
|
-
import type { SourceError } from "./ConfigProvider.ts";
|
|
10
|
+
import type { Path, SourceError } from "./ConfigProvider.ts";
|
|
11
11
|
import * as ConfigProvider from "./ConfigProvider.ts";
|
|
12
12
|
import * as Effect from "./Effect.ts";
|
|
13
13
|
import * as LogLevel_ from "./LogLevel.ts";
|
|
@@ -28,7 +28,7 @@ declare const TypeId = "~effect/Config";
|
|
|
28
28
|
* ```ts import.meta.vitest
|
|
29
29
|
* import { Config } from "effect"
|
|
30
30
|
*
|
|
31
|
-
* Config.isConfig(Config.
|
|
31
|
+
* Config.isConfig(Config.String("HOST")) // => true
|
|
32
32
|
* Config.isConfig("not a config") // => false
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
@@ -102,7 +102,7 @@ export interface Config<out T> extends Effect.Effect<T, ConfigError> {
|
|
|
102
102
|
* ```ts import.meta.vitest
|
|
103
103
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
104
104
|
*
|
|
105
|
-
* const upper = Config.
|
|
105
|
+
* const upper = Config.String("name").pipe(
|
|
106
106
|
* Config.map((s) => s.toUpperCase())
|
|
107
107
|
* )
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ export interface Config<out T> extends Effect.Effect<T, ConfigError> {
|
|
|
110
110
|
* Effect.runSync(upper.parse(provider)) // => "ALICE"
|
|
111
111
|
* ```
|
|
112
112
|
*
|
|
113
|
-
* @see {@link
|
|
113
|
+
* @see {@link mapEffect} – when the transformation can fail
|
|
114
114
|
*
|
|
115
115
|
* @category mapping
|
|
116
116
|
* @since 2.0.0
|
|
@@ -129,7 +129,7 @@ export declare const map: {
|
|
|
129
129
|
* ```ts import.meta.vitest
|
|
130
130
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
131
131
|
*
|
|
132
|
-
* const upper = Config.
|
|
132
|
+
* const upper = Config.String("name").pipe(
|
|
133
133
|
* Config.map((s) => s.toUpperCase())
|
|
134
134
|
* )
|
|
135
135
|
*
|
|
@@ -137,7 +137,7 @@ export declare const map: {
|
|
|
137
137
|
* Effect.runSync(upper.parse(provider)) // => "ALICE"
|
|
138
138
|
* ```
|
|
139
139
|
*
|
|
140
|
-
* @see {@link
|
|
140
|
+
* @see {@link mapEffect} – when the transformation can fail
|
|
141
141
|
*
|
|
142
142
|
* @category mapping
|
|
143
143
|
* @since 2.0.0
|
|
@@ -156,7 +156,7 @@ export declare const map: {
|
|
|
156
156
|
* ```ts import.meta.vitest
|
|
157
157
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
158
158
|
*
|
|
159
|
-
* const upper = Config.
|
|
159
|
+
* const upper = Config.String("name").pipe(
|
|
160
160
|
* Config.map((s) => s.toUpperCase())
|
|
161
161
|
* )
|
|
162
162
|
*
|
|
@@ -164,7 +164,7 @@ export declare const map: {
|
|
|
164
164
|
* Effect.runSync(upper.parse(provider)) // => "ALICE"
|
|
165
165
|
* ```
|
|
166
166
|
*
|
|
167
|
-
* @see {@link
|
|
167
|
+
* @see {@link mapEffect} – when the transformation can fail
|
|
168
168
|
*
|
|
169
169
|
* @category mapping
|
|
170
170
|
* @since 2.0.0
|
|
@@ -184,8 +184,8 @@ export declare const map: {
|
|
|
184
184
|
* ```ts import.meta.vitest
|
|
185
185
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
186
186
|
*
|
|
187
|
-
* const trimmed = Config.
|
|
188
|
-
* Config.
|
|
187
|
+
* const trimmed = Config.String("name").pipe(
|
|
188
|
+
* Config.mapEffect((s) => Effect.succeed(s.trim()))
|
|
189
189
|
* )
|
|
190
190
|
* const provider = ConfigProvider.fromUnknown({ name: " Alice " })
|
|
191
191
|
* Effect.runSync(trimmed.parse(provider)) // => "Alice"
|
|
@@ -196,7 +196,7 @@ export declare const map: {
|
|
|
196
196
|
* @category mapping
|
|
197
197
|
* @since 2.0.0
|
|
198
198
|
*/
|
|
199
|
-
export declare const
|
|
199
|
+
export declare const mapEffect: {
|
|
200
200
|
/**
|
|
201
201
|
* Transforms the parsed value with a function that may fail.
|
|
202
202
|
*
|
|
@@ -210,8 +210,8 @@ export declare const mapOrFail: {
|
|
|
210
210
|
* ```ts import.meta.vitest
|
|
211
211
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
212
212
|
*
|
|
213
|
-
* const trimmed = Config.
|
|
214
|
-
* Config.
|
|
213
|
+
* const trimmed = Config.String("name").pipe(
|
|
214
|
+
* Config.mapEffect((s) => Effect.succeed(s.trim()))
|
|
215
215
|
* )
|
|
216
216
|
* const provider = ConfigProvider.fromUnknown({ name: " Alice " })
|
|
217
217
|
* Effect.runSync(trimmed.parse(provider)) // => "Alice"
|
|
@@ -236,8 +236,8 @@ export declare const mapOrFail: {
|
|
|
236
236
|
* ```ts import.meta.vitest
|
|
237
237
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
238
238
|
*
|
|
239
|
-
* const trimmed = Config.
|
|
240
|
-
* Config.
|
|
239
|
+
* const trimmed = Config.String("name").pipe(
|
|
240
|
+
* Config.mapEffect((s) => Effect.succeed(s.trim()))
|
|
241
241
|
* )
|
|
242
242
|
* const provider = ConfigProvider.fromUnknown({ name: " Alice " })
|
|
243
243
|
* Effect.runSync(trimmed.parse(provider)) // => "Alice"
|
|
@@ -276,7 +276,7 @@ export declare const mapOrFail: {
|
|
|
276
276
|
* ```ts import.meta.vitest
|
|
277
277
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
278
278
|
*
|
|
279
|
-
* const hostConfig = Config.
|
|
279
|
+
* const hostConfig = Config.String("HOST").pipe(
|
|
280
280
|
* Config.orElse(() => Config.succeed("localhost"))
|
|
281
281
|
* )
|
|
282
282
|
* const provider = ConfigProvider.fromUnknown({})
|
|
@@ -315,7 +315,7 @@ export declare const orElse: {
|
|
|
315
315
|
* ```ts import.meta.vitest
|
|
316
316
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
317
317
|
*
|
|
318
|
-
* const hostConfig = Config.
|
|
318
|
+
* const hostConfig = Config.String("HOST").pipe(
|
|
319
319
|
* Config.orElse(() => Config.succeed("localhost"))
|
|
320
320
|
* )
|
|
321
321
|
* const provider = ConfigProvider.fromUnknown({})
|
|
@@ -354,7 +354,7 @@ export declare const orElse: {
|
|
|
354
354
|
* ```ts import.meta.vitest
|
|
355
355
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
356
356
|
*
|
|
357
|
-
* const hostConfig = Config.
|
|
357
|
+
* const hostConfig = Config.String("HOST").pipe(
|
|
358
358
|
* Config.orElse(() => Config.succeed("localhost"))
|
|
359
359
|
* )
|
|
360
360
|
* const provider = ConfigProvider.fromUnknown({})
|
|
@@ -396,8 +396,8 @@ export declare const orElse: {
|
|
|
396
396
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
397
397
|
*
|
|
398
398
|
* const dbConfig = Config.all({
|
|
399
|
-
* host: Config.
|
|
400
|
-
* port: Config.
|
|
399
|
+
* host: Config.String("host"),
|
|
400
|
+
* port: Config.Number("port")
|
|
401
401
|
* })
|
|
402
402
|
*
|
|
403
403
|
* const provider = ConfigProvider.fromUnknown({ host: "localhost", port: 5432 })
|
|
@@ -435,7 +435,7 @@ export declare function all<const Arg extends Iterable<Config<any>> | Record<str
|
|
|
435
435
|
* ```ts import.meta.vitest
|
|
436
436
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
437
437
|
*
|
|
438
|
-
* const port = Config.
|
|
438
|
+
* const port = Config.Number("port").pipe(Config.withDefault(3000))
|
|
439
439
|
*
|
|
440
440
|
* const provider = ConfigProvider.fromUnknown({})
|
|
441
441
|
* Effect.runSync(port.parse(provider)) // => 3000
|
|
@@ -469,7 +469,7 @@ export declare const withDefault: {
|
|
|
469
469
|
* ```ts import.meta.vitest
|
|
470
470
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
471
471
|
*
|
|
472
|
-
* const port = Config.
|
|
472
|
+
* const port = Config.Number("port").pipe(Config.withDefault(3000))
|
|
473
473
|
*
|
|
474
474
|
* const provider = ConfigProvider.fromUnknown({})
|
|
475
475
|
* Effect.runSync(port.parse(provider)) // => 3000
|
|
@@ -503,7 +503,7 @@ export declare const withDefault: {
|
|
|
503
503
|
* ```ts import.meta.vitest
|
|
504
504
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
505
505
|
*
|
|
506
|
-
* const port = Config.
|
|
506
|
+
* const port = Config.Number("port").pipe(Config.withDefault(3000))
|
|
507
507
|
*
|
|
508
508
|
* const provider = ConfigProvider.fromUnknown({})
|
|
509
509
|
* Effect.runSync(port.parse(provider)) // => 3000
|
|
@@ -538,7 +538,7 @@ export declare const withDefault: {
|
|
|
538
538
|
* ```ts import.meta.vitest
|
|
539
539
|
* import { Config, ConfigProvider, Effect, Option } from "effect"
|
|
540
540
|
*
|
|
541
|
-
* const maybePort = Config.option(Config.
|
|
541
|
+
* const maybePort = Config.option(Config.Number("port"))
|
|
542
542
|
*
|
|
543
543
|
* const provider = ConfigProvider.fromUnknown({})
|
|
544
544
|
* Effect.runSync(maybePort.parse(provider)) // => Option.none()
|
|
@@ -612,7 +612,7 @@ type IsPlainObject<A> = [A] extends [Record<string, any>] ? [keyof A] extends [n
|
|
|
612
612
|
* const makeConfig = (config: Config.Wrap<Options>): Config.Config<Options> =>
|
|
613
613
|
* Config.unwrap(config)
|
|
614
614
|
*
|
|
615
|
-
* const config = makeConfig({ key: Config.
|
|
615
|
+
* const config = makeConfig({ key: Config.String("key") })
|
|
616
616
|
* const provider = ConfigProvider.fromUnknown({ key: "value" })
|
|
617
617
|
* Effect.runSync(config.parse(provider)) // => { key: "value" }
|
|
618
618
|
* ```
|
|
@@ -637,7 +637,7 @@ export declare const unwrap: <T>(wrapped: Wrap<T>) => Config<T>;
|
|
|
637
637
|
* {@link nested} calls. Pass a single string for a flat key or an array for
|
|
638
638
|
* nested paths.
|
|
639
639
|
*
|
|
640
|
-
* Convenience constructors such as `
|
|
640
|
+
* Convenience constructors such as `String`, `Number`, and `Boolean` delegate
|
|
641
641
|
* to this API.
|
|
642
642
|
*
|
|
643
643
|
* The codec is converted to its canonical `StringTree` form. Its encoded shape
|
|
@@ -698,133 +698,20 @@ export declare const unwrap: <T>(wrapped: Wrap<T>) => Config<T>;
|
|
|
698
698
|
* Effect.runSync(DbConfig.parse(provider)) // => { host: "localhost", port: 5432 }
|
|
699
699
|
* ```
|
|
700
700
|
*
|
|
701
|
-
* @see {@link
|
|
701
|
+
* @see {@link String} / {@link Number} / {@link Boolean} – shortcuts for
|
|
702
702
|
* single-value configs
|
|
703
703
|
*
|
|
704
704
|
* @category schemas
|
|
705
705
|
* @since 4.0.0
|
|
706
706
|
*/
|
|
707
707
|
export declare function schema<T>(codec: Schema.ConstraintCodec<T, unknown>, path?: string | ConfigProvider.Path): Config<T>;
|
|
708
|
-
|
|
709
|
-
* Schema for boolean values encoded as strings.
|
|
710
|
-
*
|
|
711
|
-
* **When to use**
|
|
712
|
-
*
|
|
713
|
-
* Use when you need the reusable boolean schema value for `Config.schema` with
|
|
714
|
-
* custom paths.
|
|
715
|
-
*
|
|
716
|
-
* **Details**
|
|
717
|
-
*
|
|
718
|
-
* Accepted string values: `true`, `false`, `yes`, `no`, `on`, `off`, `1`,
|
|
719
|
-
* `0`, `y`, `n` (case-sensitive).
|
|
720
|
-
*
|
|
721
|
-
* @see {@link boolean} – convenience constructor
|
|
722
|
-
*
|
|
723
|
-
* @category schemas
|
|
724
|
-
* @since 4.0.0
|
|
725
|
-
*/
|
|
726
|
-
export declare const Boolean: Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "yes", "on", "1", "y", "false", "no", "off", "0", "n"]>, never, never>;
|
|
727
|
-
/**
|
|
728
|
-
* Schema for port numbers (integers in 1–65535).
|
|
729
|
-
*
|
|
730
|
-
* **When to use**
|
|
731
|
-
*
|
|
732
|
-
* Use when you need the reusable port schema value for `Config.schema` with
|
|
733
|
-
* custom paths.
|
|
734
|
-
*
|
|
735
|
-
* @see {@link port} – convenience constructor
|
|
736
|
-
*
|
|
737
|
-
* @category schemas
|
|
738
|
-
* @since 4.0.0
|
|
739
|
-
*/
|
|
740
|
-
export declare const Port: Schema.Int;
|
|
741
|
-
/**
|
|
742
|
-
* Schema for `LogLevel` string literals.
|
|
743
|
-
*
|
|
744
|
-
* **When to use**
|
|
745
|
-
*
|
|
746
|
-
* Use when you need the reusable log-level schema value for `Config.schema`
|
|
747
|
-
* with custom paths.
|
|
748
|
-
*
|
|
749
|
-
* **Details**
|
|
750
|
-
*
|
|
751
|
-
* Accepted values: `"All"`, `"Fatal"`, `"Error"`, `"Warn"`, `"Info"`,
|
|
752
|
-
* `"Debug"`, `"Trace"`, `"None"`.
|
|
753
|
-
*
|
|
754
|
-
* @see {@link logLevel} – convenience constructor
|
|
755
|
-
*
|
|
756
|
-
* @category schemas
|
|
757
|
-
* @since 4.0.0
|
|
758
|
-
*/
|
|
759
|
-
export declare const LogLevel: Schema.Literals<readonly LogLevel_.LogLevel[]>;
|
|
760
|
-
/**
|
|
761
|
-
* Schema for key-value record types that can also be parsed from
|
|
762
|
-
* a flat comma-separated string.
|
|
763
|
-
*
|
|
764
|
-
* **When to use**
|
|
765
|
-
*
|
|
766
|
-
* Use when reading key-value maps from a single env var (e.g. OpenTelemetry
|
|
767
|
-
* resource attributes).
|
|
768
|
-
*
|
|
769
|
-
* **Details**
|
|
770
|
-
*
|
|
771
|
-
* Accepts either a JSON-like record from the provider or a flat string like
|
|
772
|
-
* `"key1=val1,key2=val2"`. The `separator` (default `","`) and
|
|
773
|
-
* `keyValueSeparator` (default `"="`) can be customized.
|
|
774
|
-
*
|
|
775
|
-
* **Example** (Parsing a comma-separated record)
|
|
776
|
-
*
|
|
777
|
-
* ```ts import.meta.vitest
|
|
778
|
-
* import { Config, ConfigProvider, Effect, Schema } from "effect"
|
|
779
|
-
*
|
|
780
|
-
* const schema = Config.Record(Schema.String, Schema.String)
|
|
781
|
-
* const config = Config.schema(schema, "OTEL_RESOURCE_ATTRIBUTES")
|
|
782
|
-
*
|
|
783
|
-
* const provider = ConfigProvider.fromEnv({
|
|
784
|
-
* env: {
|
|
785
|
-
* OTEL_RESOURCE_ATTRIBUTES:
|
|
786
|
-
* "service.name=my-service,service.version=1.0.0,custom.attribute=value"
|
|
787
|
-
* }
|
|
788
|
-
* })
|
|
789
|
-
*
|
|
790
|
-
* const result = Effect.runSync(config.parse(provider))
|
|
791
|
-
* result["service.name"] // => "my-service"
|
|
792
|
-
* result["service.version"] // => "1.0.0"
|
|
793
|
-
* result["custom.attribute"] // => "value"
|
|
794
|
-
* ```
|
|
795
|
-
*
|
|
796
|
-
* @see {@link Array} for separated or structural array input
|
|
797
|
-
*
|
|
798
|
-
* @category schemas
|
|
799
|
-
* @since 4.0.0
|
|
800
|
-
*/
|
|
801
|
-
export declare const Record: <K extends Schema.Record.Key, V extends Schema.Constraint>(key: K, value: V, options?: {
|
|
708
|
+
interface ArrayOptions {
|
|
802
709
|
readonly separator?: string | undefined;
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
declare const ArrayConfig: <V extends Schema.Constraint>(value: V, options?: {
|
|
710
|
+
}
|
|
711
|
+
interface RecordOptions {
|
|
806
712
|
readonly separator?: string | undefined;
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
/**
|
|
810
|
-
* Schema for array types that can also be parsed from a flat separated string.
|
|
811
|
-
*
|
|
812
|
-
* **When to use**
|
|
813
|
-
*
|
|
814
|
-
* Use when reading array values from a single env var, such as comma-separated
|
|
815
|
-
* exporter names.
|
|
816
|
-
*
|
|
817
|
-
* **Details**
|
|
818
|
-
*
|
|
819
|
-
* Accepts either a JSON-like array from the provider or a flat string like
|
|
820
|
-
* `"a,b,c"`. The `separator` defaults to `","` and can be customized.
|
|
821
|
-
*
|
|
822
|
-
* @see {@link Record} for separated or structural record input
|
|
823
|
-
*
|
|
824
|
-
* @category schemas
|
|
825
|
-
* @since 4.0.0
|
|
826
|
-
*/
|
|
827
|
-
ArrayConfig as Array };
|
|
713
|
+
readonly keyValueSeparator?: string | undefined;
|
|
714
|
+
}
|
|
828
715
|
/**
|
|
829
716
|
* Creates a config that always fails with the given error.
|
|
830
717
|
*
|
|
@@ -851,7 +738,7 @@ export declare function fail(err: SourceError | Schema.SchemaError): Config<unkn
|
|
|
851
738
|
* ```ts import.meta.vitest
|
|
852
739
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
853
740
|
*
|
|
854
|
-
* const host = Config.
|
|
741
|
+
* const host = Config.String("HOST").pipe(
|
|
855
742
|
* Config.orElse(() => Config.succeed("localhost"))
|
|
856
743
|
* )
|
|
857
744
|
* const provider = ConfigProvider.fromUnknown({})
|
|
@@ -878,19 +765,19 @@ export declare function succeed<T>(value: T): Config<T>;
|
|
|
878
765
|
* ```ts import.meta.vitest
|
|
879
766
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
880
767
|
*
|
|
881
|
-
* const host = Config.
|
|
768
|
+
* const host = Config.String("HOST")
|
|
882
769
|
*
|
|
883
770
|
* const provider = ConfigProvider.fromUnknown({ HOST: "localhost" })
|
|
884
771
|
* Effect.runSync(host.parse(provider)) // => "localhost"
|
|
885
772
|
* ```
|
|
886
773
|
*
|
|
887
|
-
* @see {@link
|
|
774
|
+
* @see {@link NonEmptyString} – rejects empty strings
|
|
888
775
|
* @see {@link schema} – for more complex types
|
|
889
776
|
*
|
|
890
777
|
* @category constructors
|
|
891
778
|
* @since 2.0.0
|
|
892
779
|
*/
|
|
893
|
-
export declare function
|
|
780
|
+
export declare function String(name?: string): Config<string>;
|
|
894
781
|
/**
|
|
895
782
|
* Creates a config for a non-empty string value. Fails if the value is an
|
|
896
783
|
* empty string.
|
|
@@ -903,12 +790,12 @@ export declare function string(name?: string): Config<string>;
|
|
|
903
790
|
*
|
|
904
791
|
* Shortcut for `Config.schema(Schema.NonEmptyString, name)`.
|
|
905
792
|
*
|
|
906
|
-
* @see {@link
|
|
793
|
+
* @see {@link String} for allowing empty strings
|
|
907
794
|
*
|
|
908
795
|
* @category constructors
|
|
909
796
|
* @since 3.7.0
|
|
910
797
|
*/
|
|
911
|
-
export declare function
|
|
798
|
+
export declare function NonEmptyString(name?: string): Config<string>;
|
|
912
799
|
/**
|
|
913
800
|
* Creates a config for a numeric value (including `NaN`, `Infinity`).
|
|
914
801
|
*
|
|
@@ -921,13 +808,13 @@ export declare function nonEmptyString(name?: string): Config<string>;
|
|
|
921
808
|
*
|
|
922
809
|
* Shortcut for `Config.schema(Schema.Number, name)`.
|
|
923
810
|
*
|
|
924
|
-
* @see {@link
|
|
925
|
-
* @see {@link
|
|
811
|
+
* @see {@link Finite} for rejecting `NaN` and `Infinity`
|
|
812
|
+
* @see {@link Int} for accepting only integers
|
|
926
813
|
*
|
|
927
814
|
* @category constructors
|
|
928
815
|
* @since 2.0.0
|
|
929
816
|
*/
|
|
930
|
-
export declare function
|
|
817
|
+
export declare function Number(name?: string): Config<number>;
|
|
931
818
|
/**
|
|
932
819
|
* Creates a config for a finite number (rejects `NaN` and `Infinity`).
|
|
933
820
|
*
|
|
@@ -939,13 +826,13 @@ export declare function number(name?: string): Config<number>;
|
|
|
939
826
|
*
|
|
940
827
|
* Shortcut for `Config.schema(Schema.Finite, name)`.
|
|
941
828
|
*
|
|
942
|
-
* @see {@link
|
|
943
|
-
* @see {@link
|
|
829
|
+
* @see {@link Number} for accepting `NaN` and `Infinity`
|
|
830
|
+
* @see {@link Int} for accepting only integers
|
|
944
831
|
*
|
|
945
832
|
* @category constructors
|
|
946
833
|
* @since 4.0.0
|
|
947
834
|
*/
|
|
948
|
-
export declare function
|
|
835
|
+
export declare function Finite(name?: string): Config<number>;
|
|
949
836
|
/**
|
|
950
837
|
* Creates a config for an integer value. Rejects floats.
|
|
951
838
|
*
|
|
@@ -957,13 +844,13 @@ export declare function finite(name?: string): Config<number>;
|
|
|
957
844
|
*
|
|
958
845
|
* Shortcut for `Config.schema(Schema.Int, name)`.
|
|
959
846
|
*
|
|
960
|
-
* @see {@link
|
|
961
|
-
* @see {@link
|
|
847
|
+
* @see {@link Number} for accepting any number
|
|
848
|
+
* @see {@link Port} for accepting only integers in `1` through `65535`
|
|
962
849
|
*
|
|
963
850
|
* @category constructors
|
|
964
851
|
* @since 4.0.0
|
|
965
852
|
*/
|
|
966
|
-
export declare function
|
|
853
|
+
export declare function Int(name?: string): Config<number>;
|
|
967
854
|
/**
|
|
968
855
|
* Creates a config that only accepts a specific literal value.
|
|
969
856
|
*
|
|
@@ -980,16 +867,16 @@ export declare function int(name?: string): Config<number>;
|
|
|
980
867
|
* ```ts import.meta.vitest
|
|
981
868
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
982
869
|
*
|
|
983
|
-
* const env = Config.
|
|
870
|
+
* const env = Config.Literal("production", "ENV")
|
|
984
871
|
* const provider = ConfigProvider.fromUnknown({ ENV: "production" })
|
|
985
872
|
* Effect.runSync(env.parse(provider)) // => "production"
|
|
986
873
|
* ```
|
|
987
874
|
*
|
|
988
|
-
* @see {@link
|
|
875
|
+
* @see {@link Literals} – accepts multiple literal values
|
|
989
876
|
* @category constructors
|
|
990
877
|
* @since 2.0.0
|
|
991
878
|
*/
|
|
992
|
-
export declare function
|
|
879
|
+
export declare function Literal<L extends SchemaAST.LiteralValue>(literal: L, name?: string): Config<L>;
|
|
993
880
|
/**
|
|
994
881
|
* Creates a config that only accepts one of the specified literal values.
|
|
995
882
|
*
|
|
@@ -1006,17 +893,87 @@ export declare function literal<L extends SchemaAST.LiteralValue>(literal: L, na
|
|
|
1006
893
|
* ```ts import.meta.vitest
|
|
1007
894
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1008
895
|
*
|
|
1009
|
-
* const env = Config.
|
|
896
|
+
* const env = Config.Literals(["development", "production"], "ENV")
|
|
1010
897
|
* const provider = ConfigProvider.fromUnknown({ ENV: "development" })
|
|
1011
898
|
* Effect.runSync(env.parse(provider)) // => "development"
|
|
1012
899
|
* ```
|
|
1013
900
|
*
|
|
1014
|
-
* @see {@link
|
|
901
|
+
* @see {@link Literal} for accepting one specific literal value
|
|
1015
902
|
*
|
|
1016
903
|
* @category constructors
|
|
1017
904
|
* @since 4.0.0
|
|
1018
905
|
*/
|
|
1019
|
-
export declare function
|
|
906
|
+
export declare function Literals<const L extends ReadonlyArray<SchemaAST.LiteralValue>>(literals: L, name?: string): Config<L[number]>;
|
|
907
|
+
/**
|
|
908
|
+
* Creates a config for array values that may also be read from a separated string.
|
|
909
|
+
*
|
|
910
|
+
* **When to use**
|
|
911
|
+
*
|
|
912
|
+
* Use when you need to read either structural array input or a flat value such as
|
|
913
|
+
* `"otlp,console"` from an environment variable.
|
|
914
|
+
*
|
|
915
|
+
* **Details**
|
|
916
|
+
*
|
|
917
|
+
* Pass a string or `ConfigProvider.Path` as the second argument to set the lookup
|
|
918
|
+
* path. When no path is needed, pass the options object directly. The `separator`
|
|
919
|
+
* defaults to `","`.
|
|
920
|
+
*
|
|
921
|
+
* **Example** (Reading a comma-separated array)
|
|
922
|
+
*
|
|
923
|
+
* ```ts import.meta.vitest
|
|
924
|
+
* import { Config, ConfigProvider, Effect, Schema } from "effect"
|
|
925
|
+
*
|
|
926
|
+
* const config = Config.Array(Schema.String, "EXPORTERS")
|
|
927
|
+
* const provider = ConfigProvider.fromEnv({ env: { EXPORTERS: "otlp,console" } })
|
|
928
|
+
*
|
|
929
|
+
* Effect.runSync(config.parse(provider)) // => ["otlp", "console"]
|
|
930
|
+
* ```
|
|
931
|
+
*
|
|
932
|
+
* @see {@link Record} for key-value input from structural records or separated strings.
|
|
933
|
+
* @category constructors
|
|
934
|
+
* @since 4.0.0
|
|
935
|
+
*/
|
|
936
|
+
export declare function Array<V extends Schema.ConstraintCodec<unknown, unknown>>(value: V, options?: ArrayOptions): Config<ReadonlyArray<V["Type"]>>;
|
|
937
|
+
export declare function Array<V extends Schema.ConstraintCodec<unknown, unknown>>(value: V, path: string | Path, options?: ArrayOptions): Config<ReadonlyArray<V["Type"]>>;
|
|
938
|
+
/**
|
|
939
|
+
* Creates a config for record values that may also be read from a separated key-value string.
|
|
940
|
+
*
|
|
941
|
+
* **When to use**
|
|
942
|
+
*
|
|
943
|
+
* Use when you need to read either structural record input or a flat value such as
|
|
944
|
+
* `"service.name=my-service,service.version=1.0.0"` from an environment variable.
|
|
945
|
+
*
|
|
946
|
+
* **Details**
|
|
947
|
+
*
|
|
948
|
+
* Pass a string or `ConfigProvider.Path` as the third argument to set the lookup
|
|
949
|
+
* path. When no path is needed, pass the options object directly. The `separator`
|
|
950
|
+
* defaults to `","` and `keyValueSeparator` defaults to `"="`.
|
|
951
|
+
*
|
|
952
|
+
* **Example** (Reading a comma-separated record)
|
|
953
|
+
*
|
|
954
|
+
* ```ts import.meta.vitest
|
|
955
|
+
* import { Config, ConfigProvider, Effect, Schema } from "effect"
|
|
956
|
+
*
|
|
957
|
+
* const config = Config.Record(Schema.String, Schema.String, "OTEL_RESOURCE_ATTRIBUTES")
|
|
958
|
+
* const provider = ConfigProvider.fromEnv({
|
|
959
|
+
* env: {
|
|
960
|
+
* OTEL_RESOURCE_ATTRIBUTES:
|
|
961
|
+
* "service.name=my-service,service.version=1.0.0,custom.attribute=value"
|
|
962
|
+
* }
|
|
963
|
+
* })
|
|
964
|
+
*
|
|
965
|
+
* const result = Effect.runSync(config.parse(provider))
|
|
966
|
+
* result["service.name"] // => "my-service"
|
|
967
|
+
* result["service.version"] // => "1.0.0"
|
|
968
|
+
* result["custom.attribute"] // => "value"
|
|
969
|
+
* ```
|
|
970
|
+
*
|
|
971
|
+
* @see {@link Array} for array input from structural arrays or separated strings.
|
|
972
|
+
* @category constructors
|
|
973
|
+
* @since 4.0.0
|
|
974
|
+
*/
|
|
975
|
+
export declare function Record<K extends Schema.Record.Key & Schema.ConstraintCodec<unknown, unknown>, V extends Schema.ConstraintCodec<unknown, unknown>>(key: K, value: V, options?: RecordOptions): Config<Schema.Record.Type<K, V>>;
|
|
976
|
+
export declare function Record<K extends Schema.Record.Key & Schema.ConstraintCodec<unknown, unknown>, V extends Schema.ConstraintCodec<unknown, unknown>>(key: K, value: V, path: string | Path, options?: RecordOptions): Config<Schema.Record.Type<K, V>>;
|
|
1020
977
|
/**
|
|
1021
978
|
* Creates a config for a boolean value parsed from common string
|
|
1022
979
|
* representations.
|
|
@@ -1027,8 +984,6 @@ export declare function literals<const L extends ReadonlyArray<SchemaAST.Literal
|
|
|
1027
984
|
*
|
|
1028
985
|
* **Details**
|
|
1029
986
|
*
|
|
1030
|
-
* Shortcut for `Config.schema(Config.Boolean, name)`.
|
|
1031
|
-
*
|
|
1032
987
|
* Accepted values: `true`, `false`, `yes`, `no`, `on`, `off`, `1`, `0`,
|
|
1033
988
|
* `y`, `n`.
|
|
1034
989
|
*
|
|
@@ -1037,7 +992,7 @@ export declare function literals<const L extends ReadonlyArray<SchemaAST.Literal
|
|
|
1037
992
|
* ```ts import.meta.vitest
|
|
1038
993
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1039
994
|
*
|
|
1040
|
-
* const program = Config.
|
|
995
|
+
* const program = Config.Boolean("FEATURE_FLAG")
|
|
1041
996
|
*
|
|
1042
997
|
* const provider = ConfigProvider.fromEnv({
|
|
1043
998
|
* env: {
|
|
@@ -1050,12 +1005,10 @@ export declare function literals<const L extends ReadonlyArray<SchemaAST.Literal
|
|
|
1050
1005
|
* ) // => true
|
|
1051
1006
|
* ```
|
|
1052
1007
|
*
|
|
1053
|
-
* @see {@link Boolean} for the underlying boolean codec
|
|
1054
|
-
*
|
|
1055
1008
|
* @category constructors
|
|
1056
1009
|
* @since 2.0.0
|
|
1057
1010
|
*/
|
|
1058
|
-
export declare function
|
|
1011
|
+
export declare function Boolean(name?: string): Config<boolean>;
|
|
1059
1012
|
/**
|
|
1060
1013
|
* Creates a config for a `Duration` value parsed from a human-readable
|
|
1061
1014
|
* string.
|
|
@@ -1076,7 +1029,7 @@ export declare function boolean(name?: string): Config<boolean>;
|
|
|
1076
1029
|
* ```ts import.meta.vitest
|
|
1077
1030
|
* import { Config, ConfigProvider, Duration, Effect } from "effect"
|
|
1078
1031
|
*
|
|
1079
|
-
* const program = Config.
|
|
1032
|
+
* const program = Config.Duration("DURATION").pipe(Effect.map(Duration.toMillis))
|
|
1080
1033
|
*
|
|
1081
1034
|
* const provider = ConfigProvider.fromEnv({
|
|
1082
1035
|
* env: {
|
|
@@ -1094,7 +1047,19 @@ export declare function boolean(name?: string): Config<boolean>;
|
|
|
1094
1047
|
* @category constructors
|
|
1095
1048
|
* @since 2.5.0
|
|
1096
1049
|
*/
|
|
1097
|
-
export declare function
|
|
1050
|
+
export declare function Duration(name?: string): Config<import("./Duration.ts").Duration>;
|
|
1051
|
+
/**
|
|
1052
|
+
* Creates a config for an exact, human-readable byte-size value.
|
|
1053
|
+
*
|
|
1054
|
+
* **Details**
|
|
1055
|
+
*
|
|
1056
|
+
* Decimal symbols such as `kB` use powers of 1,000, while binary symbols such
|
|
1057
|
+
* as `KiB` use powers of 1,024.
|
|
1058
|
+
*
|
|
1059
|
+
* @category constructors
|
|
1060
|
+
* @since 4.0.0
|
|
1061
|
+
*/
|
|
1062
|
+
export declare function ByteSize(name?: string): Config<import("./ByteSize.ts").ByteSize>;
|
|
1098
1063
|
/**
|
|
1099
1064
|
* Creates a config for a port number (integer in 1–65535).
|
|
1100
1065
|
*
|
|
@@ -1104,14 +1069,14 @@ export declare function duration(name?: string): Config<import("./Duration.ts").
|
|
|
1104
1069
|
*
|
|
1105
1070
|
* **Details**
|
|
1106
1071
|
*
|
|
1107
|
-
*
|
|
1072
|
+
* Accepts integers from `1` through `65535`.
|
|
1108
1073
|
*
|
|
1109
1074
|
* **Example** (Reading a port)
|
|
1110
1075
|
*
|
|
1111
1076
|
* ```ts import.meta.vitest
|
|
1112
1077
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1113
1078
|
*
|
|
1114
|
-
* const program = Config.
|
|
1079
|
+
* const program = Config.Port("PORT")
|
|
1115
1080
|
*
|
|
1116
1081
|
* const provider = ConfigProvider.fromEnv({
|
|
1117
1082
|
* env: {
|
|
@@ -1124,13 +1089,12 @@ export declare function duration(name?: string): Config<import("./Duration.ts").
|
|
|
1124
1089
|
* ) // => 8080
|
|
1125
1090
|
* ```
|
|
1126
1091
|
*
|
|
1127
|
-
* @see {@link
|
|
1128
|
-
* @see {@link Port} for the underlying port codec
|
|
1092
|
+
* @see {@link Int} for integer config values outside the port range
|
|
1129
1093
|
*
|
|
1130
1094
|
* @category constructors
|
|
1131
1095
|
* @since 3.16.0
|
|
1132
1096
|
*/
|
|
1133
|
-
export declare function
|
|
1097
|
+
export declare function Port(name?: string): Config<number>;
|
|
1134
1098
|
/**
|
|
1135
1099
|
* Creates a config for a log level string.
|
|
1136
1100
|
*
|
|
@@ -1140,8 +1104,6 @@ export declare function port(name?: string): Config<number>;
|
|
|
1140
1104
|
*
|
|
1141
1105
|
* **Details**
|
|
1142
1106
|
*
|
|
1143
|
-
* Shortcut for `Config.schema(Config.LogLevel, name)`.
|
|
1144
|
-
*
|
|
1145
1107
|
* Accepted values: `"All"`, `"Fatal"`, `"Error"`, `"Warn"`, `"Info"`,
|
|
1146
1108
|
* `"Debug"`, `"Trace"`, `"None"`.
|
|
1147
1109
|
*
|
|
@@ -1150,7 +1112,7 @@ export declare function port(name?: string): Config<number>;
|
|
|
1150
1112
|
* ```ts import.meta.vitest
|
|
1151
1113
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1152
1114
|
*
|
|
1153
|
-
* const program = Config.
|
|
1115
|
+
* const program = Config.LogLevel("LOG_LEVEL")
|
|
1154
1116
|
*
|
|
1155
1117
|
* const provider = ConfigProvider.fromEnv({
|
|
1156
1118
|
* env: {
|
|
@@ -1163,12 +1125,10 @@ export declare function port(name?: string): Config<number>;
|
|
|
1163
1125
|
* ) // => "Info"
|
|
1164
1126
|
* ```
|
|
1165
1127
|
*
|
|
1166
|
-
* @see {@link LogLevel} for the underlying log-level codec
|
|
1167
|
-
*
|
|
1168
1128
|
* @category constructors
|
|
1169
1129
|
* @since 2.0.0
|
|
1170
1130
|
*/
|
|
1171
|
-
export declare function
|
|
1131
|
+
export declare function LogLevel(name?: string): Config<LogLevel_.LogLevel>;
|
|
1172
1132
|
/**
|
|
1173
1133
|
* Creates a config for a redacted string value. The parsed result is wrapped
|
|
1174
1134
|
* in a `Redacted` container that hides the value from logs and `toString`.
|
|
@@ -1187,7 +1147,7 @@ export declare function logLevel(name?: string): Config<LogLevel_.LogLevel>;
|
|
|
1187
1147
|
* ```ts import.meta.vitest
|
|
1188
1148
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1189
1149
|
*
|
|
1190
|
-
* const program = Config.
|
|
1150
|
+
* const program = Config.Redacted("API_KEY").pipe(Effect.map(String))
|
|
1191
1151
|
*
|
|
1192
1152
|
* const provider = ConfigProvider.fromEnv({
|
|
1193
1153
|
* env: {
|
|
@@ -1200,12 +1160,12 @@ export declare function logLevel(name?: string): Config<LogLevel_.LogLevel>;
|
|
|
1200
1160
|
* ) // => "<redacted>"
|
|
1201
1161
|
* ```
|
|
1202
1162
|
*
|
|
1203
|
-
* @see {@link
|
|
1163
|
+
* @see {@link String} for non-secret string settings
|
|
1204
1164
|
*
|
|
1205
1165
|
* @category constructors
|
|
1206
1166
|
* @since 2.0.0
|
|
1207
1167
|
*/
|
|
1208
|
-
export declare function
|
|
1168
|
+
export declare function Redacted(name?: string): Config<import("./Redacted.ts").Redacted<string>>;
|
|
1209
1169
|
/**
|
|
1210
1170
|
* Creates a config for a `URL` value parsed from a string.
|
|
1211
1171
|
*
|
|
@@ -1226,7 +1186,7 @@ export declare function redacted(name?: string): Config<import("./Redacted.ts").
|
|
|
1226
1186
|
* ```ts import.meta.vitest
|
|
1227
1187
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1228
1188
|
*
|
|
1229
|
-
* const program = Config.
|
|
1189
|
+
* const program = Config.URL("URL").pipe(Effect.map((url) => url.href))
|
|
1230
1190
|
*
|
|
1231
1191
|
* const provider = ConfigProvider.fromEnv({
|
|
1232
1192
|
* env: {
|
|
@@ -1244,7 +1204,7 @@ export declare function redacted(name?: string): Config<import("./Redacted.ts").
|
|
|
1244
1204
|
* @category constructors
|
|
1245
1205
|
* @since 3.11.0
|
|
1246
1206
|
*/
|
|
1247
|
-
export declare function
|
|
1207
|
+
export declare function URL(name?: string): Config<URL>;
|
|
1248
1208
|
/**
|
|
1249
1209
|
* Creates a config for a `Date` value parsed from a string.
|
|
1250
1210
|
*
|
|
@@ -1265,7 +1225,7 @@ export declare function url(name?: string): Config<URL>;
|
|
|
1265
1225
|
* ```ts import.meta.vitest
|
|
1266
1226
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1267
1227
|
*
|
|
1268
|
-
* const createdAt = Config.
|
|
1228
|
+
* const createdAt = Config.Date("CREATED_AT")
|
|
1269
1229
|
*
|
|
1270
1230
|
* const provider = ConfigProvider.fromUnknown({ CREATED_AT: "2024-01-15" })
|
|
1271
1231
|
* Effect.runSync(createdAt.parse(provider)).toISOString() // => "2024-01-15T00:00:00.000Z"
|
|
@@ -1274,7 +1234,7 @@ export declare function url(name?: string): Config<URL>;
|
|
|
1274
1234
|
* @category constructors
|
|
1275
1235
|
* @since 2.0.0
|
|
1276
1236
|
*/
|
|
1277
|
-
export declare function
|
|
1237
|
+
export declare function Date(name?: string): Config<Date>;
|
|
1278
1238
|
/**
|
|
1279
1239
|
* Scopes a config under a named prefix.
|
|
1280
1240
|
*
|
|
@@ -1297,8 +1257,8 @@ export declare function date(name?: string): Config<Date>;
|
|
|
1297
1257
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1298
1258
|
*
|
|
1299
1259
|
* const dbConfig = Config.all({
|
|
1300
|
-
* host: Config.
|
|
1301
|
-
* port: Config.
|
|
1260
|
+
* host: Config.String("host"),
|
|
1261
|
+
* port: Config.Number("port")
|
|
1302
1262
|
* }).pipe(Config.nested("database"))
|
|
1303
1263
|
*
|
|
1304
1264
|
* const provider = ConfigProvider.fromUnknown({
|
|
@@ -1312,7 +1272,7 @@ export declare function date(name?: string): Config<Date>;
|
|
|
1312
1272
|
* ```ts import.meta.vitest
|
|
1313
1273
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1314
1274
|
*
|
|
1315
|
-
* const host = Config.
|
|
1275
|
+
* const host = Config.String("host").pipe(Config.nested("database"))
|
|
1316
1276
|
*
|
|
1317
1277
|
* const provider = ConfigProvider.fromEnv({
|
|
1318
1278
|
* env: { database_host: "localhost" }
|
|
@@ -1349,8 +1309,8 @@ export declare const nested: {
|
|
|
1349
1309
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1350
1310
|
*
|
|
1351
1311
|
* const dbConfig = Config.all({
|
|
1352
|
-
* host: Config.
|
|
1353
|
-
* port: Config.
|
|
1312
|
+
* host: Config.String("host"),
|
|
1313
|
+
* port: Config.Number("port")
|
|
1354
1314
|
* }).pipe(Config.nested("database"))
|
|
1355
1315
|
*
|
|
1356
1316
|
* const provider = ConfigProvider.fromUnknown({
|
|
@@ -1364,7 +1324,7 @@ export declare const nested: {
|
|
|
1364
1324
|
* ```ts import.meta.vitest
|
|
1365
1325
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1366
1326
|
*
|
|
1367
|
-
* const host = Config.
|
|
1327
|
+
* const host = Config.String("host").pipe(Config.nested("database"))
|
|
1368
1328
|
*
|
|
1369
1329
|
* const provider = ConfigProvider.fromEnv({
|
|
1370
1330
|
* env: { database_host: "localhost" }
|
|
@@ -1401,8 +1361,8 @@ export declare const nested: {
|
|
|
1401
1361
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1402
1362
|
*
|
|
1403
1363
|
* const dbConfig = Config.all({
|
|
1404
|
-
* host: Config.
|
|
1405
|
-
* port: Config.
|
|
1364
|
+
* host: Config.String("host"),
|
|
1365
|
+
* port: Config.Number("port")
|
|
1406
1366
|
* }).pipe(Config.nested("database"))
|
|
1407
1367
|
*
|
|
1408
1368
|
* const provider = ConfigProvider.fromUnknown({
|
|
@@ -1416,7 +1376,7 @@ export declare const nested: {
|
|
|
1416
1376
|
* ```ts import.meta.vitest
|
|
1417
1377
|
* import { Config, ConfigProvider, Effect } from "effect"
|
|
1418
1378
|
*
|
|
1419
|
-
* const host = Config.
|
|
1379
|
+
* const host = Config.String("host").pipe(Config.nested("database"))
|
|
1420
1380
|
*
|
|
1421
1381
|
* const provider = ConfigProvider.fromEnv({
|
|
1422
1382
|
* env: { database_host: "localhost" }
|
|
@@ -1432,4 +1392,5 @@ export declare const nested: {
|
|
|
1432
1392
|
*/
|
|
1433
1393
|
<A>(self: Config<A>, name: string): Config<A>;
|
|
1434
1394
|
};
|
|
1395
|
+
export {};
|
|
1435
1396
|
//# sourceMappingURL=Config.d.ts.map
|