effect 4.0.0-beta.70 → 4.0.0-beta.71
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/dist/Array.d.ts +1428 -138
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +595 -126
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +594 -8
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +307 -8
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +457 -3
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +279 -3
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +229 -7
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +155 -5
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +51 -5
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +80 -8
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +64 -3
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +50 -12
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +475 -183
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +336 -114
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +398 -59
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +166 -47
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +78 -3
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +44 -3
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +112 -0
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +32 -0
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +57 -0
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js +30 -0
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +15 -11
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +8 -8
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +126 -40
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +102 -29
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +48 -25
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +17 -17
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +22 -1
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +22 -1
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +491 -36
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +185 -11
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +110 -1
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +86 -1
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +29 -0
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +29 -0
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +77 -26
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +10 -7
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +149 -6
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +81 -2
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +340 -74
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +128 -9
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +5 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Duration.d.ts +164 -11
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +91 -11
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +1822 -537
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +684 -224
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +14 -0
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +14 -0
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +89 -0
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +131 -1
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +7 -7
- package/dist/Equal.js +5 -5
- package/dist/Equivalence.d.ts +41 -24
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +38 -21
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +123 -5
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +85 -5
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +89 -24
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +21 -0
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +128 -82
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +106 -69
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +317 -68
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +150 -1
- package/dist/Fiber.js.map +1 -1
- package/dist/FileSystem.d.ts +69 -10
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +85 -29
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +221 -2
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +155 -2
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +3 -3
- package/dist/Formatter.js +2 -2
- package/dist/Function.d.ts +152 -6
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +104 -3
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +275 -3
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +63 -0
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +55 -23
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +92 -16
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +116 -14
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +2 -2
- package/dist/HashMap.js +2 -2
- package/dist/HashRing.d.ts +203 -0
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +92 -0
- package/dist/HashRing.js.map +1 -1
- package/dist/Inspectable.d.ts +43 -0
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +70 -13
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +179 -25
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +95 -23
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +33 -18
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +51 -43
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +2 -2
- package/dist/JsonPointer.js +2 -2
- package/dist/JsonSchema.d.ts +64 -10
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +32 -8
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +156 -11
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +77 -2
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +250 -74
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +71 -21
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +8 -0
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js.map +1 -1
- package/dist/LogLevel.d.ts +93 -18
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +65 -6
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +19 -5
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +24 -11
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +81 -9
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +32 -1
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +185 -7
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +212 -24
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +33 -20
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +26 -13
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +272 -21
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +123 -0
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +107 -0
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +96 -37
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +10 -2
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +10 -2
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +136 -0
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +70 -0
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +20 -11
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +6 -6
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +20 -4
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +5 -0
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +417 -2
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +255 -2
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +17 -17
- package/dist/Optic.js +12 -12
- package/dist/Option.d.ts +168 -129
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +67 -63
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +82 -82
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +138 -109
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +32 -0
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +19 -0
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +238 -11
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +107 -5
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +35 -4
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +21 -4
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +27 -2
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +14 -2
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +53 -4
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +45 -4
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +140 -14
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +63 -8
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +96 -87
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +107 -73
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +74 -8
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +69 -8
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +94 -20
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +94 -20
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +147 -2
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +68 -1
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +127 -35
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +127 -35
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +71 -16
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +35 -0
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +168 -6
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +48 -2
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +73 -18
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js +23 -3
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +95 -1
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +95 -1
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +20 -16
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +15 -11
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +82 -4
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +64 -4
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +17 -5
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +2 -2
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +156 -20
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +125 -20
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +208 -12
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +144 -5
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts +13 -0
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +47 -1
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +215 -32
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +54 -7
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +202 -15
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +94 -5
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +62 -3
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +52 -3
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +328 -23
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +132 -12
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +123 -13
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +149 -24
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +418 -93
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +334 -97
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +50 -1
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +39 -0
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +467 -42
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +248 -48
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +205 -2
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +205 -2
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +123 -123
- package/dist/SchemaGetter.js +111 -111
- package/dist/SchemaIssue.d.ts +25 -24
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +19 -19
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +238 -3
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +279 -21
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +61 -17
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +58 -14
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +76 -38
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +73 -35
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +9 -0
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +38 -11
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +79 -14
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +63 -14
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +352 -7
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +151 -3
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +67 -5
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +47 -3
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +347 -28
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +102 -7
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +307 -4
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +173 -2
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +69 -15
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +60 -15
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +516 -65
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +234 -33
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +173 -2
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +149 -2
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +19 -10
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +13 -4
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +73 -14
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +72 -13
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +24 -6
- package/dist/Symbol.d.ts.map +1 -1
- package/dist/Symbol.js +24 -6
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +502 -2
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +184 -2
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Take.d.ts +36 -13
- package/dist/Take.d.ts.map +1 -1
- package/dist/Take.js +5 -0
- package/dist/Take.js.map +1 -1
- package/dist/Terminal.d.ts +68 -17
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +33 -2
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +49 -0
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +49 -0
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +48 -9
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +70 -35
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +32 -21
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +40 -7
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +40 -7
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +85 -2
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +56 -2
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +29 -2
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +29 -2
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +94 -4
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +66 -4
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +48 -7
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +40 -4
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +40 -4
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +112 -7
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +81 -7
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +173 -14
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +130 -14
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +205 -2
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +110 -2
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +60 -6
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts +171 -30
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +115 -30
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +120 -12
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +36 -12
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +20 -14
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +13 -4
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +0 -5205
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -5205
- package/dist/index.js.map +1 -1
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/request.js +3 -1
- package/dist/internal/request.js.map +1 -1
- package/dist/internal/schema/arbitrary.js +11 -1
- package/dist/internal/schema/arbitrary.js.map +1 -1
- package/dist/internal/schema/representation.js +21 -12
- package/dist/internal/schema/representation.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +69 -0
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +73 -9
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +81 -24
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +71 -25
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/testing/index.d.ts +0 -107
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +0 -107
- package/dist/testing/index.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +24 -1
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +24 -1
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +9 -0
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js +43 -11
- package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +25 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +53 -28
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +100 -5
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +100 -5
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +1 -1
- package/dist/unstable/ai/IdGenerator.js +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +41 -2
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +40 -1
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +10 -2
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +10 -2
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +59 -1
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +59 -1
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +35 -13
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +34 -12
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +48 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +23 -2
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +22 -1
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +71 -13
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +35 -1
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +34 -12
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +33 -11
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +40 -27
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +34 -26
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +34 -23
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +34 -23
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +82 -21
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +81 -20
- 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 +1 -1
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/ai/index.d.ts +0 -560
- package/dist/unstable/ai/index.d.ts.map +1 -1
- package/dist/unstable/ai/index.js +0 -560
- package/dist/unstable/ai/index.js.map +1 -1
- package/dist/unstable/cli/Argument.js +1 -1
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +133 -5
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +49 -3
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Completions.d.ts +13 -0
- package/dist/unstable/cli/Completions.d.ts.map +1 -1
- package/dist/unstable/cli/Completions.js +41 -1
- package/dist/unstable/cli/Completions.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +15 -3
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +15 -3
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +28 -4
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +28 -4
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +126 -0
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +57 -5
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +2 -2
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +58 -9
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +26 -1
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +25 -0
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/index.d.ts +0 -220
- package/dist/unstable/cli/index.d.ts.map +1 -1
- package/dist/unstable/cli/index.js +0 -220
- package/dist/unstable/cli/index.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +1 -1
- package/dist/unstable/cluster/ClusterError.d.ts +61 -22
- package/dist/unstable/cluster/ClusterError.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterError.js +61 -22
- package/dist/unstable/cluster/ClusterError.js.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.d.ts +53 -0
- package/dist/unstable/cluster/ClusterMetrics.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.js +53 -0
- package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +76 -24
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +76 -24
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +18 -1
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +17 -0
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityAddress.d.ts +19 -0
- package/dist/unstable/cluster/EntityAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityAddress.js +19 -0
- package/dist/unstable/cluster/EntityAddress.js.map +1 -1
- package/dist/unstable/cluster/EntityId.d.ts +44 -7
- package/dist/unstable/cluster/EntityId.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityId.js +44 -7
- package/dist/unstable/cluster/EntityId.js.map +1 -1
- package/dist/unstable/cluster/EntityType.d.ts +19 -0
- package/dist/unstable/cluster/EntityType.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityType.js +19 -0
- package/dist/unstable/cluster/EntityType.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +26 -14
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +26 -14
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +33 -14
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/MachineId.d.ts +35 -9
- package/dist/unstable/cluster/MachineId.d.ts.map +1 -1
- package/dist/unstable/cluster/MachineId.js +35 -9
- package/dist/unstable/cluster/MachineId.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +1 -1
- package/dist/unstable/cluster/Message.js +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +31 -17
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +31 -17
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +46 -13
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +46 -13
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts +45 -9
- package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js +45 -9
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +30 -13
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +30 -13
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +15 -1
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +15 -1
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +24 -0
- package/dist/unstable/cluster/Runners.d.ts.map +1 -1
- package/dist/unstable/cluster/Runners.js +24 -0
- package/dist/unstable/cluster/Runners.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +22 -0
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +22 -0
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +19 -0
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +55 -17
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +57 -13
- package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.js +58 -14
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +26 -12
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js +27 -13
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts +25 -0
- package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SingleRunner.js +25 -0
- package/dist/unstable/cluster/SingleRunner.js.map +1 -1
- package/dist/unstable/cluster/Singleton.d.ts +51 -9
- package/dist/unstable/cluster/Singleton.d.ts.map +1 -1
- package/dist/unstable/cluster/Singleton.js +51 -9
- package/dist/unstable/cluster/Singleton.js.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +27 -13
- package/dist/unstable/cluster/SingletonAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +27 -13
- package/dist/unstable/cluster/SingletonAddress.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +13 -0
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +13 -0
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +21 -0
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +21 -0
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.d.ts +38 -0
- package/dist/unstable/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js +73 -13
- package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts +20 -0
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.js +20 -0
- package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +27 -16
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +27 -16
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/cluster/index.d.ts +0 -790
- package/dist/unstable/cluster/index.d.ts.map +1 -1
- package/dist/unstable/cluster/index.js +0 -790
- package/dist/unstable/cluster/index.js.map +1 -1
- package/dist/unstable/devtools/DevTools.d.ts +41 -11
- package/dist/unstable/devtools/DevTools.d.ts.map +1 -1
- package/dist/unstable/devtools/DevTools.js +41 -11
- package/dist/unstable/devtools/DevTools.js.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.d.ts +38 -0
- package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +68 -11
- package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +24 -16
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +20 -13
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +20 -13
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/devtools/index.d.ts +0 -58
- package/dist/unstable/devtools/index.d.ts.map +1 -1
- package/dist/unstable/devtools/index.js +0 -58
- package/dist/unstable/devtools/index.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +30 -15
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +28 -14
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +28 -14
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +35 -14
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/encoding/index.d.ts +0 -49
- package/dist/unstable/encoding/index.d.ts.map +1 -1
- package/dist/unstable/encoding/index.js +0 -49
- package/dist/unstable/encoding/index.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js +28 -13
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +22 -14
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +21 -13
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +31 -14
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +52 -15
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +52 -15
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +21 -12
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +17 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +17 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +45 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +82 -15
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +33 -15
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts +21 -0
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +50 -14
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +39 -15
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +39 -15
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +30 -11
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/index.d.ts +0 -240
- package/dist/unstable/eventlog/index.d.ts.map +1 -1
- package/dist/unstable/eventlog/index.js +0 -240
- package/dist/unstable/eventlog/index.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +59 -13
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +59 -13
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +43 -13
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js +43 -13
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +53 -16
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +53 -16
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +52 -15
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +52 -15
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +53 -13
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +37 -21
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +2 -2
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientError.js +27 -11
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +38 -17
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +38 -17
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +35 -16
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +33 -14
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +30 -15
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +30 -15
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +1 -1
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +40 -17
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +30 -17
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +30 -17
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +32 -19
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +32 -19
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +33 -16
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +28 -14
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +49 -27
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +43 -21
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +30 -13
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +29 -12
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +28 -15
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +28 -15
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +37 -17
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +37 -17
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +27 -14
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +25 -12
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +29 -13
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +29 -13
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +33 -18
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +34 -19
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/http/index.d.ts +0 -452
- package/dist/unstable/http/index.d.ts.map +1 -1
- package/dist/unstable/http/index.js +0 -452
- package/dist/unstable/http/index.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +48 -24
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +1 -1
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +37 -23
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +28 -16
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +51 -23
- 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 +36 -16
- package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +34 -23
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +49 -25
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +49 -25
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +4 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +28 -16
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +39 -36
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +39 -36
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +54 -24
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +54 -24
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +28 -16
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +36 -24
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/httpapi/index.d.ts +0 -311
- package/dist/unstable/httpapi/index.d.ts.map +1 -1
- package/dist/unstable/httpapi/index.js +0 -311
- package/dist/unstable/httpapi/index.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +31 -16
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +30 -14
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +33 -15
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.d.ts +27 -16
- package/dist/unstable/observability/OtlpSerialization.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.js +27 -16
- package/dist/unstable/observability/OtlpSerialization.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +1 -1
- package/dist/unstable/observability/index.d.ts +0 -183
- package/dist/unstable/observability/index.d.ts.map +1 -1
- package/dist/unstable/observability/index.js +0 -183
- package/dist/unstable/observability/index.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +4 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +4 -1
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +29 -16
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +27 -14
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +33 -15
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/persistence/index.d.ts +0 -147
- package/dist/unstable/persistence/index.d.ts.map +1 -1
- package/dist/unstable/persistence/index.js +0 -147
- package/dist/unstable/persistence/index.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +15 -3
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +15 -3
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/process/index.d.ts +0 -45
- package/dist/unstable/process/index.d.ts.map +1 -1
- package/dist/unstable/process/index.js +0 -45
- package/dist/unstable/process/index.js.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.d.ts +40 -19
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +40 -19
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +36 -22
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +36 -22
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +32 -16
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +52 -25
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +74 -18
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +74 -18
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +29 -14
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +38 -20
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +38 -20
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/reactivity/index.d.ts +0 -166
- package/dist/unstable/reactivity/index.d.ts.map +1 -1
- package/dist/unstable/reactivity/index.js +0 -166
- package/dist/unstable/reactivity/index.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +29 -18
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +29 -15
- package/dist/unstable/rpc/RpcClientError.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClientError.js +29 -15
- package/dist/unstable/rpc/RpcClientError.js.map +1 -1
- package/dist/unstable/rpc/RpcGroup.d.ts +29 -18
- package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcGroup.js.map +1 -1
- package/dist/unstable/rpc/RpcMessage.d.ts +34 -16
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +31 -21
- package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +31 -21
- package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +29 -19
- package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSchema.js +29 -19
- package/dist/unstable/rpc/RpcSchema.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +33 -23
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +31 -21
- 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.map +1 -1
- package/dist/unstable/rpc/RpcTest.d.ts +31 -15
- package/dist/unstable/rpc/RpcTest.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcTest.js +31 -15
- package/dist/unstable/rpc/RpcTest.js.map +1 -1
- package/dist/unstable/rpc/RpcWorker.d.ts +29 -14
- package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcWorker.js.map +1 -1
- package/dist/unstable/rpc/index.d.ts +0 -272
- package/dist/unstable/rpc/index.d.ts.map +1 -1
- package/dist/unstable/rpc/index.js +0 -272
- package/dist/unstable/rpc/index.js.map +1 -1
- package/dist/unstable/schema/index.d.ts +0 -37
- package/dist/unstable/schema/index.d.ts.map +1 -1
- package/dist/unstable/schema/index.js +0 -37
- package/dist/unstable/schema/index.js.map +1 -1
- package/dist/unstable/socket/index.d.ts +0 -44
- package/dist/unstable/socket/index.d.ts.map +1 -1
- package/dist/unstable/socket/index.js +0 -44
- package/dist/unstable/socket/index.js.map +1 -1
- package/dist/unstable/sql/Migrator.d.ts.map +1 -1
- package/dist/unstable/sql/Migrator.js +39 -18
- package/dist/unstable/sql/Migrator.js.map +1 -1
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js +31 -15
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +30 -15
- package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
- package/dist/unstable/sql/SqlSchema.js +30 -15
- package/dist/unstable/sql/SqlSchema.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +1 -1
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +34 -14
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/sql/index.d.ts +0 -178
- package/dist/unstable/sql/index.d.ts.map +1 -1
- package/dist/unstable/sql/index.js +0 -178
- package/dist/unstable/sql/index.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +29 -15
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +29 -15
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +36 -23
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +34 -21
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerError.js +32 -16
- package/dist/unstable/workers/WorkerError.js.map +1 -1
- package/dist/unstable/workers/WorkerRunner.d.ts +31 -20
- package/dist/unstable/workers/WorkerRunner.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerRunner.js +31 -20
- package/dist/unstable/workers/WorkerRunner.js.map +1 -1
- package/dist/unstable/workers/index.d.ts +0 -80
- package/dist/unstable/workers/index.d.ts.map +1 -1
- package/dist/unstable/workers/index.js +0 -80
- package/dist/unstable/workers/index.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableClock.js +23 -11
- package/dist/unstable/workflow/DurableClock.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +33 -15
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +33 -15
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/index.d.ts +0 -160
- package/dist/unstable/workflow/index.d.ts.map +1 -1
- package/dist/unstable/workflow/index.js +0 -160
- package/dist/unstable/workflow/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +1504 -211
- package/src/BigDecimal.ts +594 -8
- package/src/BigInt.ts +457 -3
- package/src/Boolean.ts +229 -7
- package/src/Brand.ts +100 -8
- package/src/Cache.ts +87 -15
- package/src/Cause.ts +475 -183
- package/src/Channel.ts +498 -84
- package/src/ChannelSchema.ts +96 -3
- package/src/Chunk.ts +120 -0
- package/src/Clock.ts +57 -0
- package/src/Combiner.ts +15 -11
- package/src/Config.ts +126 -40
- package/src/ConfigProvider.ts +48 -25
- package/src/Console.ts +22 -1
- package/src/Context.ts +503 -37
- package/src/Cron.ts +110 -1
- package/src/Crypto.ts +29 -0
- package/src/Data.ts +77 -26
- package/src/DateTime.ts +149 -6
- package/src/Deferred.ts +340 -74
- package/src/Differ.ts +5 -0
- package/src/Duration.ts +164 -11
- package/src/Effect.ts +1860 -543
- package/src/Effectable.ts +14 -0
- package/src/Encoding.ts +135 -1
- package/src/Equal.ts +7 -7
- package/src/Equivalence.ts +44 -27
- package/src/ErrorReporter.ts +123 -5
- package/src/ExecutionPlan.ts +89 -24
- package/src/Exit.ts +128 -82
- package/src/Fiber.ts +317 -68
- package/src/FileSystem.ts +109 -33
- package/src/Filter.ts +221 -2
- package/src/Formatter.ts +3 -3
- package/src/Function.ts +152 -6
- package/src/Graph.ts +275 -3
- package/src/HKT.ts +55 -23
- package/src/Hash.ts +140 -20
- package/src/HashMap.ts +2 -2
- package/src/HashRing.ts +203 -0
- package/src/Inspectable.ts +82 -13
- package/src/Iterable.ts +179 -25
- package/src/JsonPatch.ts +78 -55
- package/src/JsonPointer.ts +2 -2
- package/src/JsonSchema.ts +64 -10
- package/src/Latch.ts +162 -11
- package/src/Layer.ts +250 -74
- package/src/LayerMap.ts +8 -0
- package/src/LogLevel.ts +93 -18
- package/src/Logger.ts +25 -9
- package/src/ManagedRuntime.ts +81 -9
- package/src/Match.ts +220 -24
- package/src/Metric.ts +33 -20
- package/src/MutableHashMap.ts +360 -21
- package/src/MutableHashSet.ts +141 -37
- package/src/MutableList.ts +10 -2
- package/src/MutableRef.ts +136 -0
- package/src/Newtype.ts +20 -11
- package/src/NonEmptyIterable.ts +20 -4
- package/src/Number.ts +417 -2
- package/src/Optic.ts +17 -17
- package/src/Option.ts +168 -129
- package/src/Order.ts +152 -123
- package/src/Ordering.ts +32 -0
- package/src/PartitionedSemaphore.ts +238 -11
- package/src/Path.ts +35 -4
- package/src/Pipeable.ts +27 -2
- package/src/PlatformError.ts +53 -4
- package/src/Pool.ts +174 -32
- package/src/Predicate.ts +149 -115
- package/src/PrimaryKey.ts +74 -8
- package/src/PubSub.ts +94 -20
- package/src/Pull.ts +147 -2
- package/src/Queue.ts +127 -35
- package/src/Random.ts +71 -16
- package/src/RcMap.ts +168 -6
- package/src/RcRef.ts +73 -18
- package/src/Record.ts +95 -1
- package/src/Redactable.ts +20 -16
- package/src/Redacted.ts +82 -4
- package/src/Reducer.ts +17 -5
- package/src/Ref.ts +300 -22
- package/src/References.ts +208 -12
- package/src/RegExp.ts +47 -1
- package/src/Request.ts +215 -32
- package/src/RequestResolver.ts +257 -22
- package/src/Resource.ts +62 -3
- package/src/Result.ts +328 -23
- package/src/Runtime.ts +171 -31
- package/src/Schedule.ts +484 -111
- package/src/Scheduler.ts +50 -1
- package/src/Schema.ts +508 -67
- package/src/SchemaAST.ts +205 -2
- package/src/SchemaGetter.ts +123 -123
- package/src/SchemaIssue.ts +25 -24
- package/src/SchemaParser.ts +279 -21
- package/src/SchemaRepresentation.ts +61 -17
- package/src/SchemaTransformation.ts +76 -38
- package/src/SchemaUtils.ts +38 -11
- package/src/Scope.ts +79 -14
- package/src/ScopedCache.ts +404 -7
- package/src/ScopedRef.ts +67 -5
- package/src/Semaphore.ts +347 -28
- package/src/Sink.ts +307 -4
- package/src/Stdio.ts +69 -15
- package/src/Stream.ts +611 -72
- package/src/String.ts +173 -2
- package/src/Struct.ts +19 -10
- package/src/SubscriptionRef.ts +73 -14
- package/src/Symbol.ts +24 -6
- package/src/SynchronizedRef.ts +502 -2
- package/src/Take.ts +36 -13
- package/src/Terminal.ts +68 -17
- package/src/Tracer.ts +49 -0
- package/src/Trie.ts +48 -9
- package/src/Tuple.ts +70 -35
- package/src/TxChunk.ts +40 -7
- package/src/TxDeferred.ts +85 -2
- package/src/TxPriorityQueue.ts +29 -2
- package/src/TxPubSub.ts +94 -4
- package/src/TxQueue.ts +48 -7
- package/src/TxReentrantLock.ts +40 -4
- package/src/TxRef.ts +112 -7
- package/src/TxSemaphore.ts +173 -14
- package/src/TxSubscriptionRef.ts +205 -2
- package/src/Types.ts +60 -6
- package/src/UndefinedOr.ts +171 -30
- package/src/Unify.ts +120 -12
- package/src/Utils.ts +20 -14
- package/src/index.ts +0 -5205
- package/src/internal/effect.ts +59 -29
- package/src/internal/request.ts +3 -1
- package/src/internal/schema/arbitrary.ts +14 -1
- package/src/internal/schema/representation.ts +37 -14
- package/src/testing/TestConsole.ts +105 -9
- package/src/testing/TestSchema.ts +83 -25
- package/src/testing/index.ts +0 -107
- package/src/unstable/ai/AiError.ts +24 -1
- package/src/unstable/ai/AnthropicStructuredOutput.ts +43 -11
- package/src/unstable/ai/Chat.ts +62 -28
- package/src/unstable/ai/EmbeddingModel.ts +100 -5
- package/src/unstable/ai/IdGenerator.ts +1 -1
- package/src/unstable/ai/LanguageModel.ts +41 -2
- package/src/unstable/ai/McpSchema.ts +10 -2
- package/src/unstable/ai/McpServer.ts +59 -1
- package/src/unstable/ai/Model.ts +35 -13
- package/src/unstable/ai/OpenAiStructuredOutput.ts +48 -1
- package/src/unstable/ai/Prompt.ts +23 -2
- package/src/unstable/ai/Response.ts +71 -13
- package/src/unstable/ai/ResponseIdTracker.ts +34 -12
- package/src/unstable/ai/Telemetry.ts +40 -27
- package/src/unstable/ai/Tokenizer.ts +34 -23
- package/src/unstable/ai/Tool.ts +82 -21
- package/src/unstable/ai/Toolkit.ts +32 -4
- package/src/unstable/ai/index.ts +0 -560
- package/src/unstable/cli/Argument.ts +1 -1
- package/src/unstable/cli/Command.ts +133 -5
- package/src/unstable/cli/Completions.ts +41 -1
- package/src/unstable/cli/Flag.ts +15 -3
- package/src/unstable/cli/GlobalFlag.ts +28 -4
- package/src/unstable/cli/Param.ts +135 -9
- package/src/unstable/cli/Primitive.ts +58 -9
- package/src/unstable/cli/Prompt.ts +26 -1
- package/src/unstable/cli/index.ts +0 -220
- package/src/unstable/cluster/ClusterCron.ts +1 -1
- package/src/unstable/cluster/ClusterError.ts +61 -22
- package/src/unstable/cluster/ClusterMetrics.ts +53 -0
- package/src/unstable/cluster/ClusterSchema.ts +76 -24
- package/src/unstable/cluster/Entity.ts +18 -1
- package/src/unstable/cluster/EntityAddress.ts +19 -0
- package/src/unstable/cluster/EntityId.ts +44 -7
- package/src/unstable/cluster/EntityType.ts +19 -0
- package/src/unstable/cluster/HttpRunner.ts +26 -14
- package/src/unstable/cluster/K8sHttpClient.ts +32 -13
- package/src/unstable/cluster/MachineId.ts +35 -9
- package/src/unstable/cluster/Message.ts +1 -1
- package/src/unstable/cluster/MessageStorage.ts +31 -17
- package/src/unstable/cluster/Runner.ts +46 -13
- package/src/unstable/cluster/RunnerAddress.ts +45 -9
- package/src/unstable/cluster/RunnerHealth.ts +30 -13
- package/src/unstable/cluster/RunnerServer.ts +15 -1
- package/src/unstable/cluster/Runners.ts +24 -0
- package/src/unstable/cluster/ShardId.ts +22 -0
- package/src/unstable/cluster/Sharding.ts +55 -17
- package/src/unstable/cluster/ShardingConfig.ts +57 -13
- package/src/unstable/cluster/ShardingRegistrationEvent.ts +26 -12
- package/src/unstable/cluster/SingleRunner.ts +25 -0
- package/src/unstable/cluster/Singleton.ts +51 -9
- package/src/unstable/cluster/SingletonAddress.ts +27 -13
- package/src/unstable/cluster/Snowflake.ts +13 -0
- package/src/unstable/cluster/SocketRunner.ts +21 -0
- package/src/unstable/cluster/SqlMessageStorage.ts +73 -13
- package/src/unstable/cluster/SqlRunnerStorage.ts +20 -0
- package/src/unstable/cluster/TestRunner.ts +27 -16
- package/src/unstable/cluster/index.ts +0 -790
- package/src/unstable/devtools/DevTools.ts +41 -11
- package/src/unstable/devtools/DevToolsClient.ts +68 -11
- package/src/unstable/devtools/DevToolsSchema.ts +24 -16
- package/src/unstable/devtools/DevToolsServer.ts +18 -11
- package/src/unstable/devtools/index.ts +0 -58
- package/src/unstable/encoding/Msgpack.ts +30 -15
- package/src/unstable/encoding/Ndjson.ts +28 -14
- package/src/unstable/encoding/Sse.ts +35 -14
- package/src/unstable/encoding/index.ts +0 -49
- package/src/unstable/eventlog/Event.ts +30 -15
- package/src/unstable/eventlog/EventGroup.ts +22 -14
- package/src/unstable/eventlog/EventJournal.ts +31 -14
- package/src/unstable/eventlog/EventLog.ts +52 -15
- package/src/unstable/eventlog/EventLogMessage.ts +21 -12
- package/src/unstable/eventlog/EventLogServer.ts +27 -13
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +17 -0
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +82 -15
- package/src/unstable/eventlog/EventLogSessionAuth.ts +35 -17
- package/src/unstable/eventlog/SqlEventJournal.ts +50 -14
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +39 -15
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +30 -11
- package/src/unstable/eventlog/index.ts +0 -240
- package/src/unstable/http/Cookies.ts +59 -13
- package/src/unstable/http/Etag.ts +43 -13
- package/src/unstable/http/FetchHttpClient.ts +53 -16
- package/src/unstable/http/Headers.ts +52 -15
- package/src/unstable/http/HttpBody.ts +53 -13
- package/src/unstable/http/HttpClient.ts +88 -22
- package/src/unstable/http/HttpClientError.ts +26 -10
- package/src/unstable/http/HttpClientRequest.ts +36 -15
- package/src/unstable/http/HttpClientResponse.ts +33 -14
- package/src/unstable/http/HttpEffect.ts +32 -15
- package/src/unstable/http/HttpMethod.ts +30 -15
- package/src/unstable/http/HttpRouter.ts +40 -17
- package/src/unstable/http/HttpServer.ts +30 -17
- package/src/unstable/http/HttpServerError.ts +32 -19
- package/src/unstable/http/HttpServerRequest.ts +31 -14
- package/src/unstable/http/HttpServerRespondable.ts +28 -14
- package/src/unstable/http/HttpServerResponse.ts +51 -29
- package/src/unstable/http/HttpStaticServer.ts +29 -12
- package/src/unstable/http/HttpTraceContext.ts +28 -15
- package/src/unstable/http/Multipart.ts +37 -17
- package/src/unstable/http/Template.ts +25 -12
- package/src/unstable/http/Url.ts +29 -13
- package/src/unstable/http/UrlParams.ts +33 -18
- package/src/unstable/http/index.ts +0 -452
- package/src/unstable/httpapi/HttpApi.ts +46 -22
- package/src/unstable/httpapi/HttpApiBuilder.ts +37 -23
- package/src/unstable/httpapi/HttpApiClient.ts +28 -16
- package/src/unstable/httpapi/HttpApiEndpoint.ts +51 -23
- package/src/unstable/httpapi/HttpApiError.ts +36 -16
- package/src/unstable/httpapi/HttpApiGroup.ts +34 -23
- package/src/unstable/httpapi/HttpApiMiddleware.ts +49 -25
- package/src/unstable/httpapi/HttpApiScalar.ts +32 -17
- package/src/unstable/httpapi/HttpApiSchema.ts +39 -36
- package/src/unstable/httpapi/HttpApiSecurity.ts +54 -24
- package/src/unstable/httpapi/HttpApiSwagger.ts +28 -16
- package/src/unstable/httpapi/OpenApi.ts +38 -26
- package/src/unstable/httpapi/index.ts +0 -311
- package/src/unstable/observability/Otlp.ts +31 -16
- package/src/unstable/observability/OtlpLogger.ts +30 -14
- package/src/unstable/observability/OtlpResource.ts +33 -15
- package/src/unstable/observability/OtlpSerialization.ts +25 -14
- package/src/unstable/observability/PrometheusMetrics.ts +1 -1
- package/src/unstable/observability/index.ts +0 -183
- package/src/unstable/persistence/KeyValueStore.ts +4 -1
- package/src/unstable/persistence/PersistedCache.ts +27 -14
- package/src/unstable/persistence/Redis.ts +33 -15
- package/src/unstable/persistence/index.ts +0 -147
- package/src/unstable/process/ChildProcessSpawner.ts +15 -3
- package/src/unstable/process/index.ts +0 -45
- package/src/unstable/reactivity/AsyncResult.ts +38 -17
- package/src/unstable/reactivity/Atom.ts +36 -22
- package/src/unstable/reactivity/AtomRef.ts +58 -25
- package/src/unstable/reactivity/AtomRegistry.ts +72 -16
- package/src/unstable/reactivity/Hydration.ts +31 -16
- package/src/unstable/reactivity/Reactivity.ts +36 -18
- package/src/unstable/reactivity/index.ts +0 -166
- package/src/unstable/rpc/Rpc.ts +29 -18
- package/src/unstable/rpc/RpcClient.ts +31 -22
- package/src/unstable/rpc/RpcClientError.ts +27 -13
- package/src/unstable/rpc/RpcGroup.ts +28 -17
- package/src/unstable/rpc/RpcMessage.ts +34 -16
- package/src/unstable/rpc/RpcMiddleware.ts +31 -21
- package/src/unstable/rpc/RpcSchema.ts +29 -19
- package/src/unstable/rpc/RpcSerialization.ts +31 -21
- package/src/unstable/rpc/RpcServer.ts +31 -23
- package/src/unstable/rpc/RpcTest.ts +29 -13
- package/src/unstable/rpc/RpcWorker.ts +29 -14
- package/src/unstable/rpc/index.ts +0 -272
- package/src/unstable/schema/index.ts +0 -37
- package/src/unstable/socket/index.ts +0 -44
- package/src/unstable/sql/Migrator.ts +39 -18
- package/src/unstable/sql/SqlError.ts +31 -15
- package/src/unstable/sql/SqlSchema.ts +30 -15
- package/src/unstable/sql/Statement.ts +35 -15
- package/src/unstable/sql/index.ts +0 -178
- package/src/unstable/workers/Transferable.ts +29 -15
- package/src/unstable/workers/Worker.ts +34 -21
- package/src/unstable/workers/WorkerError.ts +34 -18
- package/src/unstable/workers/WorkerRunner.ts +29 -18
- package/src/unstable/workers/index.ts +0 -80
- package/src/unstable/workflow/DurableClock.ts +23 -11
- package/src/unstable/workflow/DurableQueue.ts +31 -13
- package/src/unstable/workflow/index.ts +0 -160
package/dist/Schema.d.ts
CHANGED
|
@@ -153,7 +153,7 @@ export type ConstructorDefault = "no-default" | "with-default";
|
|
|
153
153
|
*
|
|
154
154
|
* **When to use**
|
|
155
155
|
*
|
|
156
|
-
*
|
|
156
|
+
* Use when passing `disableChecks: true` to skip validation when you trust the data.
|
|
157
157
|
* - Pass `parseOptions` to control error reporting behavior.
|
|
158
158
|
*
|
|
159
159
|
* @see {@link Bottom.makeEffect}
|
|
@@ -179,7 +179,7 @@ export interface MakeOptions {
|
|
|
179
179
|
*
|
|
180
180
|
* **When to use**
|
|
181
181
|
*
|
|
182
|
-
*
|
|
182
|
+
* Use when you are writing advanced generic schema utilities or performing schema
|
|
183
183
|
* introspection.
|
|
184
184
|
* - In user code, prefer {@link Schema}, {@link Codec}, {@link Decoder}, or
|
|
185
185
|
* {@link Encoder} instead.
|
|
@@ -213,10 +213,57 @@ export interface Bottom<out T, out E, out RD, out RE, out Ast extends AST.AST, o
|
|
|
213
213
|
check(...checks: readonly [AST.Check<this["Type"]>, ...Array<AST.Check<this["Type"]>>]): this["Rebuild"];
|
|
214
214
|
rebuild(ast: this["ast"]): this["Rebuild"];
|
|
215
215
|
/**
|
|
216
|
-
* Constructs a value from the make input representation.
|
|
216
|
+
* Constructs a value from the make input representation synchronously.
|
|
217
|
+
*
|
|
218
|
+
* **When to use**
|
|
219
|
+
*
|
|
220
|
+
* Use when constructor input is trusted or when validation failure
|
|
221
|
+
* should abort with a thrown `Error`.
|
|
222
|
+
*
|
|
223
|
+
* **Details**
|
|
224
|
+
*
|
|
225
|
+
* Applies constructor defaults and type-side validation according to
|
|
226
|
+
* `MakeOptions`.
|
|
227
|
+
*
|
|
228
|
+
* **Gotchas**
|
|
229
|
+
*
|
|
230
|
+
* Throws an `Error` with the schema issue in its `cause` when validation
|
|
231
|
+
* fails.
|
|
232
|
+
*
|
|
233
|
+
* @see {@link Bottom.makeOption} — construct synchronously and discard validation details
|
|
234
|
+
* @see {@link Bottom.makeEffect} — construct through `Effect` when validation failure should stay in the error channel
|
|
217
235
|
*/
|
|
218
236
|
make(input: this["~type.make.in"], options?: MakeOptions): this["Type"];
|
|
237
|
+
/**
|
|
238
|
+
* Constructs a value from the make input representation, returning `Option.none`
|
|
239
|
+
* when validation fails.
|
|
240
|
+
*
|
|
241
|
+
* **When to use**
|
|
242
|
+
*
|
|
243
|
+
* Use when you only need to know whether construction succeeds
|
|
244
|
+
* and do not need validation details.
|
|
245
|
+
*
|
|
246
|
+
* **Details**
|
|
247
|
+
*
|
|
248
|
+
* Applies constructor defaults and type-side validation according to
|
|
249
|
+
* `MakeOptions`.
|
|
250
|
+
*
|
|
251
|
+
* @see {@link Bottom.make} — construct synchronously when validation failure should throw
|
|
252
|
+
* @see {@link Bottom.makeEffect} — construct through `Effect` when validation details should stay in the error channel
|
|
253
|
+
*/
|
|
219
254
|
makeOption(input: this["~type.make.in"], options?: MakeOptions): Option_.Option<this["Type"]>;
|
|
255
|
+
/**
|
|
256
|
+
* Constructs a value from the make input representation, returning validation
|
|
257
|
+
* failures in the `Effect` error channel.
|
|
258
|
+
*
|
|
259
|
+
* **When to use**
|
|
260
|
+
*
|
|
261
|
+
* Use when constructor input may fail validation and you want to
|
|
262
|
+
* compose that failure with other `Effect` operations instead of throwing.
|
|
263
|
+
*
|
|
264
|
+
* @see {@link Bottom.make} — construct synchronously when validation failure should throw
|
|
265
|
+
* @see {@link Bottom.makeOption} — construct synchronously and discard validation details
|
|
266
|
+
*/
|
|
220
267
|
makeEffect(input: this["~type.make.in"], options?: MakeOptions): Effect.Effect<this["Type"], SchemaError>;
|
|
221
268
|
}
|
|
222
269
|
/**
|
|
@@ -1840,6 +1887,12 @@ export interface Boolean extends Bottom<boolean, boolean, never, never, AST.Bool
|
|
|
1840
1887
|
/**
|
|
1841
1888
|
* Schema for `boolean` values. Validates that the input is `typeof` `"boolean"`.
|
|
1842
1889
|
*
|
|
1890
|
+
* **When to use**
|
|
1891
|
+
*
|
|
1892
|
+
* Use to validate values that are already JavaScript booleans.
|
|
1893
|
+
*
|
|
1894
|
+
* @see {@link BooleanFromBit} for a schema that decodes bit literals `0` or `1` into a boolean
|
|
1895
|
+
*
|
|
1843
1896
|
* @category Boolean
|
|
1844
1897
|
* @since 4.0.0
|
|
1845
1898
|
*/
|
|
@@ -1873,6 +1926,13 @@ export interface BigInt extends Bottom<bigint, bigint, never, never, AST.BigInt,
|
|
|
1873
1926
|
/**
|
|
1874
1927
|
* Schema for `bigint` values. Validates that the input is `typeof` `"bigint"`.
|
|
1875
1928
|
*
|
|
1929
|
+
* **When to use**
|
|
1930
|
+
*
|
|
1931
|
+
* Use when the input is already a bigint and the schema should validate and
|
|
1932
|
+
* preserve bigint values without parsing from another representation.
|
|
1933
|
+
*
|
|
1934
|
+
* @see {@link BigIntFromString} for parsing string input into a bigint
|
|
1935
|
+
*
|
|
1876
1936
|
* @category schemas
|
|
1877
1937
|
* @since 4.0.0
|
|
1878
1938
|
*/
|
|
@@ -2440,6 +2500,14 @@ export declare namespace Record {
|
|
|
2440
2500
|
* Companion type for a key-value record (map) with a typed key and value schema.
|
|
2441
2501
|
* Produced by {@link Record}.
|
|
2442
2502
|
*
|
|
2503
|
+
* **When to use**
|
|
2504
|
+
*
|
|
2505
|
+
* Use as the concrete schema type returned by `Record` when an API needs to
|
|
2506
|
+
* accept or return a record schema with typed property keys and values.
|
|
2507
|
+
*
|
|
2508
|
+
* @see {@link Record} for constructing record schemas
|
|
2509
|
+
* @see {@link StructWithRest} for combining fixed struct fields with record index signatures
|
|
2510
|
+
*
|
|
2443
2511
|
* @category models
|
|
2444
2512
|
* @since 4.0.0
|
|
2445
2513
|
*/
|
|
@@ -2570,6 +2638,14 @@ export declare namespace StructWithRest {
|
|
|
2570
2638
|
* Companion type for a struct combined with one or more record schemas. Produced
|
|
2571
2639
|
* by {@link StructWithRest}.
|
|
2572
2640
|
*
|
|
2641
|
+
* **When to use**
|
|
2642
|
+
*
|
|
2643
|
+
* Use as the schema type returned by `StructWithRest` when generic code needs to
|
|
2644
|
+
* retain the base struct schema and all rest record schemas.
|
|
2645
|
+
*
|
|
2646
|
+
* @see {@link StructWithRest} for constructing this schema type
|
|
2647
|
+
* @see {@link Record} for constructing record schemas used as rest index signatures
|
|
2648
|
+
*
|
|
2573
2649
|
* @category models
|
|
2574
2650
|
* @since 4.0.0
|
|
2575
2651
|
*/
|
|
@@ -2911,17 +2987,22 @@ export declare function TupleWithRest<S extends Tuple<Tuple.Elements>, const Res
|
|
|
2911
2987
|
/**
|
|
2912
2988
|
* Schema interface produced by `Schema.Array` for readonly arrays.
|
|
2913
2989
|
*
|
|
2990
|
+
* **When to use**
|
|
2991
|
+
*
|
|
2992
|
+
* Use as the public companion type returned by `Schema.Array` when you need to
|
|
2993
|
+
* refer to a readonly array schema built from an element schema.
|
|
2994
|
+
*
|
|
2914
2995
|
* **Details**
|
|
2915
2996
|
*
|
|
2916
2997
|
* The decoded type is `ReadonlyArray<S["Type"]>`, the encoded type is
|
|
2917
2998
|
* `ReadonlyArray<S["Encoded"]>`, and the element schema is available as
|
|
2918
|
-
* `
|
|
2999
|
+
* `value`.
|
|
2919
3000
|
*
|
|
2920
3001
|
* @category models
|
|
2921
3002
|
* @since 4.0.0
|
|
2922
3003
|
*/
|
|
2923
3004
|
export interface $Array<S extends Top> extends Bottom<ReadonlyArray<S["Type"]>, ReadonlyArray<S["Encoded"]>, S["DecodingServices"], S["EncodingServices"], AST.Arrays, $Array<S>, ReadonlyArray<S["~type.make"]>, ReadonlyArray<S["Iso"]>> {
|
|
2924
|
-
readonly
|
|
3005
|
+
readonly value: S;
|
|
2925
3006
|
}
|
|
2926
3007
|
interface ArrayLambda extends Lambda {
|
|
2927
3008
|
<S extends Top>(self: S): $Array<S>;
|
|
@@ -2955,11 +3036,17 @@ ArraySchema as Array };
|
|
|
2955
3036
|
/**
|
|
2956
3037
|
* Companion type for a non-empty `ReadonlyArray`. Produced by {@link NonEmptyArray}.
|
|
2957
3038
|
*
|
|
3039
|
+
* **Details**
|
|
3040
|
+
*
|
|
3041
|
+
* The decoded type is `readonly [S["Type"], ...Array<S["Type"]>]`, the encoded type is
|
|
3042
|
+
* `readonly [S["Encoded"], ...Array<S["Encoded"]>]`, and the element schema is available as
|
|
3043
|
+
* `value`.
|
|
3044
|
+
*
|
|
2958
3045
|
* @category models
|
|
2959
3046
|
* @since 3.10.0
|
|
2960
3047
|
*/
|
|
2961
3048
|
export interface NonEmptyArray<S extends Top> extends Bottom<readonly [S["Type"], ...Array<S["Type"]>], readonly [S["Encoded"], ...Array<S["Encoded"]>], S["DecodingServices"], S["EncodingServices"], AST.Arrays, NonEmptyArray<S>, readonly [S["~type.make"], ...Array<S["~type.make"]>], readonly [S["Iso"], ...Array<S["Iso"]>]> {
|
|
2962
|
-
readonly
|
|
3049
|
+
readonly value: S;
|
|
2963
3050
|
}
|
|
2964
3051
|
interface NonEmptyArrayLambda extends Lambda {
|
|
2965
3052
|
<S extends Top>(self: S): NonEmptyArray<S>;
|
|
@@ -2988,12 +3075,19 @@ export declare const NonEmptyArray: NonEmptyArrayLambda;
|
|
|
2988
3075
|
* Schema interface returned by `ArrayEnsure`, which normalizes a single item or
|
|
2989
3076
|
* an array of items into a readonly array.
|
|
2990
3077
|
*
|
|
3078
|
+
* **When to use**
|
|
3079
|
+
*
|
|
3080
|
+
* Use as the schema type returned by `ArrayEnsure` when generic code needs to
|
|
3081
|
+
* retain the original item schema.
|
|
3082
|
+
*
|
|
2991
3083
|
* **Details**
|
|
2992
3084
|
*
|
|
2993
3085
|
* The schema decodes from `S` or `Schema.Array(S)` and produces
|
|
2994
3086
|
* `ReadonlyArray<S["Type"]>`.
|
|
2995
3087
|
*
|
|
2996
|
-
* @
|
|
3088
|
+
* @see {@link ArrayEnsure} for constructing this schema type
|
|
3089
|
+
*
|
|
3090
|
+
* @category constructors
|
|
2997
3091
|
* @since 3.10.0
|
|
2998
3092
|
*/
|
|
2999
3093
|
export interface ArrayEnsure<S extends Top> extends decodeTo<$Array<toType<S>>, Union<readonly [S, $Array<S>]>> {
|
|
@@ -3003,16 +3097,26 @@ export interface ArrayEnsure<S extends Top> extends decodeTo<$Array<toType<S>>,
|
|
|
3003
3097
|
* Creates a schema that accepts either a value decoded by `schema` or an array
|
|
3004
3098
|
* decoded by `Schema.Array(schema)`, then returns an array.
|
|
3005
3099
|
*
|
|
3100
|
+
* **When to use**
|
|
3101
|
+
*
|
|
3102
|
+
* Use to accept input that may be provided either as one item or as an array,
|
|
3103
|
+
* while normalizing decoded values to a readonly array.
|
|
3104
|
+
*
|
|
3006
3105
|
* **Details**
|
|
3007
3106
|
*
|
|
3107
|
+
* During encoding, one-element arrays are encoded as the single element. Empty
|
|
3108
|
+
* arrays and arrays with two or more elements are encoded as arrays.
|
|
3109
|
+
*
|
|
3110
|
+
* **Gotchas**
|
|
3111
|
+
*
|
|
3008
3112
|
* The single-value branch is tried before the array branch. If `schema` itself
|
|
3009
3113
|
* accepts arrays, an array input can be treated as one value and wrapped in a
|
|
3010
3114
|
* one-element array.
|
|
3011
3115
|
*
|
|
3012
|
-
*
|
|
3013
|
-
*
|
|
3116
|
+
* @see {@link Array} for accepting only array input
|
|
3117
|
+
* @see {@link NonEmptyArray} for requiring at least one decoded element
|
|
3014
3118
|
*
|
|
3015
|
-
* @category
|
|
3119
|
+
* @category constructors
|
|
3016
3120
|
* @since 3.10.0
|
|
3017
3121
|
*/
|
|
3018
3122
|
export declare function ArrayEnsure<S extends Top>(schema: S): ArrayEnsure<S>;
|
|
@@ -3326,6 +3430,13 @@ type DistributeBrands<B> = UnionToIntersection<B extends infer U extends string
|
|
|
3326
3430
|
* The output type of {@link brand}, intersecting the schema's `Type` with one or
|
|
3327
3431
|
* more {@link Brand.Brand} tags.
|
|
3328
3432
|
*
|
|
3433
|
+
* **When to use**
|
|
3434
|
+
*
|
|
3435
|
+
* Use as the schema type returned by `brand` when generic code needs to retain
|
|
3436
|
+
* the wrapped schema and nominal brand type.
|
|
3437
|
+
*
|
|
3438
|
+
* @see {@link brand} for adding the brand tag to an existing schema
|
|
3439
|
+
*
|
|
3329
3440
|
* @category branding
|
|
3330
3441
|
* @since 3.10.0
|
|
3331
3442
|
*/
|
|
@@ -3337,6 +3448,18 @@ export interface brand<S extends Top, B> extends Bottom<S["Type"] & DistributeBr
|
|
|
3337
3448
|
* Adds a nominal brand to a schema, intersecting the output type with
|
|
3338
3449
|
* `Brand.Brand<B>` to prevent accidental mixing of structurally identical types.
|
|
3339
3450
|
*
|
|
3451
|
+
* **When to use**
|
|
3452
|
+
*
|
|
3453
|
+
* Use to make values decoded by an existing schema nominally distinct when the
|
|
3454
|
+
* schema already carries the runtime validation you need.
|
|
3455
|
+
*
|
|
3456
|
+
* **Gotchas**
|
|
3457
|
+
*
|
|
3458
|
+
* `brand` adds brand metadata and narrows the TypeScript output type, but it
|
|
3459
|
+
* does not add runtime checks.
|
|
3460
|
+
*
|
|
3461
|
+
* @see {@link fromBrand} for applying a Brand constructor's checks along with the brand tag
|
|
3462
|
+
*
|
|
3340
3463
|
* @category branding
|
|
3341
3464
|
* @since 3.10.0
|
|
3342
3465
|
*/
|
|
@@ -3459,6 +3582,19 @@ export declare function catchDecoding<S extends Top>(f: (issue: Issue.Issue) =>
|
|
|
3459
3582
|
/**
|
|
3460
3583
|
* Like {@link catchDecoding}, but the handler may require Effect services (`R`).
|
|
3461
3584
|
*
|
|
3585
|
+
* **When to use**
|
|
3586
|
+
*
|
|
3587
|
+
* Use when decoding fallback logic needs services from the Effect context.
|
|
3588
|
+
*
|
|
3589
|
+
* **Details**
|
|
3590
|
+
*
|
|
3591
|
+
* The handler receives the `Issue` and returns an `Effect` that either succeeds
|
|
3592
|
+
* with a fallback value or re-fails with a (possibly different) issue. The
|
|
3593
|
+
* handler's services are added to the schema's decoding services.
|
|
3594
|
+
*
|
|
3595
|
+
* @see {@link catchDecoding} for recovery handlers that do not require services
|
|
3596
|
+
* @see {@link middlewareDecoding} for intercepting or replacing the full decoding pipeline
|
|
3597
|
+
*
|
|
3462
3598
|
* @category error handling
|
|
3463
3599
|
* @since 4.0.0
|
|
3464
3600
|
*/
|
|
@@ -3479,6 +3615,19 @@ export declare function catchEncoding<S extends Top>(f: (issue: Issue.Issue) =>
|
|
|
3479
3615
|
/**
|
|
3480
3616
|
* Like {@link catchEncoding}, but the handler may require Effect services (`R`).
|
|
3481
3617
|
*
|
|
3618
|
+
* **When to use**
|
|
3619
|
+
*
|
|
3620
|
+
* Use when encoding fallback logic needs services from the Effect context.
|
|
3621
|
+
*
|
|
3622
|
+
* **Details**
|
|
3623
|
+
*
|
|
3624
|
+
* The handler receives the `Issue` and returns an `Effect` that either succeeds
|
|
3625
|
+
* with a fallback encoded value or re-fails with a (possibly different) issue.
|
|
3626
|
+
* The handler's services are added to the schema's encoding services.
|
|
3627
|
+
*
|
|
3628
|
+
* @see {@link catchEncoding} for recovery handlers that do not require services
|
|
3629
|
+
* @see {@link middlewareEncoding} for intercepting or replacing the full encoding pipeline
|
|
3630
|
+
*
|
|
3482
3631
|
* @category error handling
|
|
3483
3632
|
* @since 4.0.0
|
|
3484
3633
|
*/
|
|
@@ -4913,9 +5062,9 @@ export declare function isDateValid(annotations?: Annotations.Filter): AST.Filte
|
|
|
4913
5062
|
*
|
|
4914
5063
|
* Arbitrary:
|
|
4915
5064
|
*
|
|
4916
|
-
* When generating test data with fast-check, this applies a `min` constraint
|
|
4917
|
-
*
|
|
4918
|
-
*
|
|
5065
|
+
* When generating test data with fast-check, this applies a `min` constraint of
|
|
5066
|
+
* one millisecond after the specified value to ensure generated Date objects are
|
|
5067
|
+
* greater than it.
|
|
4919
5068
|
*
|
|
4920
5069
|
* @category Date checks
|
|
4921
5070
|
* @since 4.0.0
|
|
@@ -4949,9 +5098,9 @@ export declare const isGreaterThanOrEqualToDate: (minimum: globalThis.Date, anno
|
|
|
4949
5098
|
*
|
|
4950
5099
|
* Arbitrary:
|
|
4951
5100
|
*
|
|
4952
|
-
* When generating test data with fast-check, this applies a `max` constraint
|
|
4953
|
-
*
|
|
4954
|
-
*
|
|
5101
|
+
* When generating test data with fast-check, this applies a `max` constraint of
|
|
5102
|
+
* one millisecond before the specified value to ensure generated Date objects
|
|
5103
|
+
* are less than it.
|
|
4955
5104
|
*
|
|
4956
5105
|
* @category Date checks
|
|
4957
5106
|
* @since 4.0.0
|
|
@@ -4992,7 +5141,8 @@ export declare const isLessThanOrEqualToDate: (maximum: globalThis.Date, annotat
|
|
|
4992
5141
|
* Arbitrary:
|
|
4993
5142
|
*
|
|
4994
5143
|
* When generating test data with fast-check, this applies `min` and `max`
|
|
4995
|
-
* constraints to ensure generated Date objects fall within the specified range
|
|
5144
|
+
* constraints to ensure generated Date objects fall within the specified range,
|
|
5145
|
+
* shifting exclusive bounds by one millisecond.
|
|
4996
5146
|
*
|
|
4997
5147
|
* @category Date checks
|
|
4998
5148
|
* @since 4.0.0
|
|
@@ -5010,8 +5160,8 @@ export declare const isBetweenDate: (options: {
|
|
|
5010
5160
|
*
|
|
5011
5161
|
* Arbitrary:
|
|
5012
5162
|
*
|
|
5013
|
-
* When generating test data with fast-check, this applies a `min` constraint
|
|
5014
|
-
*
|
|
5163
|
+
* When generating test data with fast-check, this applies a `min` constraint of
|
|
5164
|
+
* `exclusiveMinimum + 1n` to ensure generated BigInts are greater than the
|
|
5015
5165
|
* specified value.
|
|
5016
5166
|
*
|
|
5017
5167
|
* @category BigInt checks
|
|
@@ -5041,8 +5191,8 @@ export declare const isGreaterThanOrEqualToBigInt: (minimum: bigint, annotations
|
|
|
5041
5191
|
*
|
|
5042
5192
|
* Arbitrary:
|
|
5043
5193
|
*
|
|
5044
|
-
* When generating test data with fast-check, this applies a `max` constraint
|
|
5045
|
-
*
|
|
5194
|
+
* When generating test data with fast-check, this applies a `max` constraint of
|
|
5195
|
+
* `exclusiveMaximum - 1n` to ensure generated BigInts are less than the
|
|
5046
5196
|
* specified value.
|
|
5047
5197
|
*
|
|
5048
5198
|
* @category BigInt checks
|
|
@@ -5428,7 +5578,20 @@ export interface Char extends String {
|
|
|
5428
5578
|
readonly "Rebuild": Char;
|
|
5429
5579
|
}
|
|
5430
5580
|
/**
|
|
5431
|
-
* A schema
|
|
5581
|
+
* A schema for strings whose JavaScript `length` is exactly `1`.
|
|
5582
|
+
*
|
|
5583
|
+
* **When to use**
|
|
5584
|
+
*
|
|
5585
|
+
* Use to validate string values that must have `length === 1`.
|
|
5586
|
+
*
|
|
5587
|
+
* **Gotchas**
|
|
5588
|
+
*
|
|
5589
|
+
* This schema uses JavaScript `String.length`, so visible characters made from
|
|
5590
|
+
* multiple UTF-16 code units do not satisfy `length === 1`.
|
|
5591
|
+
*
|
|
5592
|
+
* @see {@link String} for unconstrained string values
|
|
5593
|
+
* @see {@link NonEmptyString} for strings with length greater than zero
|
|
5594
|
+
* @see {@link isLengthBetween} for the underlying length check
|
|
5432
5595
|
*
|
|
5433
5596
|
* @category String
|
|
5434
5597
|
* @since 3.10.0
|
|
@@ -5719,17 +5882,16 @@ export interface Redacted<S extends Top> extends declareConstructor<Redacted_.Re
|
|
|
5719
5882
|
* - The default JSON serializer will deserialize into a `Redacted` instance with the label
|
|
5720
5883
|
* - The arbitrary generator will produce a `Redacted` instance with the label
|
|
5721
5884
|
* - The formatter will return the label
|
|
5722
|
-
*
|
|
5723
|
-
*
|
|
5724
|
-
*
|
|
5725
|
-
* The default JSON serializer will fail when attempting to serialize a `Redacted` value,
|
|
5726
|
-
* but it will deserialize a value into a `Redacted` instance.
|
|
5885
|
+
* - `disallowJsonEncode`: When set to `true`, when attempting to encode a `Redacted` instance
|
|
5886
|
+
* into JSON, it will fail with an error. This is useful when the wrapped schema is
|
|
5887
|
+
* sensitive and should not be exposed in JSON.
|
|
5727
5888
|
*
|
|
5728
5889
|
* @category Redacted
|
|
5729
5890
|
* @since 3.10.0
|
|
5730
5891
|
*/
|
|
5731
5892
|
export declare function Redacted<S extends Top>(value: S, options?: {
|
|
5732
5893
|
readonly label?: string | undefined;
|
|
5894
|
+
readonly disallowJsonEncode?: boolean | undefined;
|
|
5733
5895
|
}): Redacted<S>;
|
|
5734
5896
|
/**
|
|
5735
5897
|
* Type-level representation of a schema that decodes a raw value with the
|
|
@@ -5759,17 +5921,26 @@ export declare function redact<S extends Top>(schema: S): middlewareDecoding<S,
|
|
|
5759
5921
|
*/
|
|
5760
5922
|
export declare function RedactedFromValue<S extends Top>(value: S, options?: {
|
|
5761
5923
|
readonly label?: string | undefined;
|
|
5924
|
+
readonly disallowEncode?: boolean | undefined;
|
|
5762
5925
|
}): RedactedFromValue<S>;
|
|
5763
5926
|
/**
|
|
5764
5927
|
* Schema for a single `Cause.Reason`, representing one reason a fiber may fail:
|
|
5765
5928
|
* a typed error (`Fail`), an unexpected defect (`Die`), or an interrupt
|
|
5766
5929
|
* (`Interrupt`).
|
|
5767
5930
|
*
|
|
5931
|
+
* **When to use**
|
|
5932
|
+
*
|
|
5933
|
+
* Use as the schema type returned by `CauseReason` when generic code needs to
|
|
5934
|
+
* retain the typed failure and defect schemas.
|
|
5935
|
+
*
|
|
5768
5936
|
* **Details**
|
|
5769
5937
|
*
|
|
5770
5938
|
* The `error` schema validates typed failures and the `defect` schema validates
|
|
5771
5939
|
* unexpected defects.
|
|
5772
5940
|
*
|
|
5941
|
+
* @see {@link CauseReason} for constructing this schema type
|
|
5942
|
+
* @see {@link CauseReasonIso} for the ISO shape of each cause reason
|
|
5943
|
+
*
|
|
5773
5944
|
* @category CauseReason
|
|
5774
5945
|
* @since 4.0.0
|
|
5775
5946
|
*/
|
|
@@ -5803,6 +5974,19 @@ export type CauseReasonIso<E extends Top, D extends Top> = {
|
|
|
5803
5974
|
* Creates a schema for `Cause.Reason` values using separate schemas for typed
|
|
5804
5975
|
* failures and unexpected defects.
|
|
5805
5976
|
*
|
|
5977
|
+
* **When to use**
|
|
5978
|
+
*
|
|
5979
|
+
* Use to validate, transform, or serialize individual `Cause.Reason` values
|
|
5980
|
+
* when typed failures and unexpected defects need separate schemas.
|
|
5981
|
+
*
|
|
5982
|
+
* **Details**
|
|
5983
|
+
*
|
|
5984
|
+
* `Fail` reasons use the `error` schema, `Die` reasons use the `defect` schema,
|
|
5985
|
+
* and `Interrupt` reasons carry only an optional fiber id.
|
|
5986
|
+
*
|
|
5987
|
+
* @see {@link Cause} for constructing schemas for full Cause values
|
|
5988
|
+
* @see {@link CauseReasonIso} for the ISO shape of each cause reason
|
|
5989
|
+
*
|
|
5806
5990
|
* @category CauseReason
|
|
5807
5991
|
* @since 4.0.0
|
|
5808
5992
|
*/
|
|
@@ -5811,11 +5995,19 @@ export declare function CauseReason<E extends Top, D extends Top>(error: E, defe
|
|
|
5811
5995
|
* Schema for `Cause` values, represented as an ordered collection of failure
|
|
5812
5996
|
* reasons combining typed errors, defects, and interrupts.
|
|
5813
5997
|
*
|
|
5998
|
+
* **When to use**
|
|
5999
|
+
*
|
|
6000
|
+
* Use as the schema type returned by `Cause` when generic code needs to retain
|
|
6001
|
+
* the typed failure and defect schemas.
|
|
6002
|
+
*
|
|
5814
6003
|
* **Details**
|
|
5815
6004
|
*
|
|
5816
6005
|
* The `error` schema validates typed failures and the `defect` schema validates
|
|
5817
6006
|
* unexpected defects.
|
|
5818
6007
|
*
|
|
6008
|
+
* @see {@link Cause} for constructing this schema type
|
|
6009
|
+
* @see {@link CauseIso} for the ordered array representation used by the schema ISO
|
|
6010
|
+
*
|
|
5819
6011
|
* @category Cause
|
|
5820
6012
|
* @since 3.10.0
|
|
5821
6013
|
*/
|
|
@@ -5828,6 +6020,14 @@ export interface Cause<E extends Top, D extends Top> extends declareConstructor<
|
|
|
5828
6020
|
* Iso representation used for `Cause` schemas: an ordered array of
|
|
5829
6021
|
* `CauseReasonIso` values.
|
|
5830
6022
|
*
|
|
6023
|
+
* **When to use**
|
|
6024
|
+
*
|
|
6025
|
+
* Use when working with the ISO shape of a `Cause` schema, such as `toIso`
|
|
6026
|
+
* optics or codecs that expose a cause as its ordered array of encoded reasons.
|
|
6027
|
+
*
|
|
6028
|
+
* @see {@link Cause} for constructing schemas for full Cause values
|
|
6029
|
+
* @see {@link CauseReasonIso} for the ISO shape of each array element
|
|
6030
|
+
*
|
|
5831
6031
|
* @category Cause
|
|
5832
6032
|
* @since 4.0.0
|
|
5833
6033
|
*/
|
|
@@ -5836,6 +6036,20 @@ export type CauseIso<E extends Top, D extends Top> = ReadonlyArray<CauseReasonIs
|
|
|
5836
6036
|
* Creates a schema for `Cause` values using separate schemas for typed failures
|
|
5837
6037
|
* and unexpected defects.
|
|
5838
6038
|
*
|
|
6039
|
+
* **When to use**
|
|
6040
|
+
*
|
|
6041
|
+
* Use to validate, transform, or serialize Effect failure causes when typed
|
|
6042
|
+
* failures and unexpected defects need separate schemas.
|
|
6043
|
+
*
|
|
6044
|
+
* **Details**
|
|
6045
|
+
*
|
|
6046
|
+
* The `error` schema is applied to `Fail` reasons and the `defect` schema is
|
|
6047
|
+
* applied to `Die` reasons. Interrupt reasons do not use either schema and
|
|
6048
|
+
* carry only an optional fiber id.
|
|
6049
|
+
*
|
|
6050
|
+
* @see {@link CauseReason} for the schema used by each individual cause reason
|
|
6051
|
+
* @see {@link CauseIso} for the ordered array representation used by the schema ISO
|
|
6052
|
+
*
|
|
5839
6053
|
* @category Cause
|
|
5840
6054
|
* @since 3.10.0
|
|
5841
6055
|
*/
|
|
@@ -5959,6 +6173,15 @@ export declare function Exit<A extends Top, E extends Top, D extends Top>(value:
|
|
|
5959
6173
|
* Type-level representation of a `ReadonlyMap` schema whose keys and values are
|
|
5960
6174
|
* validated by the provided schemas.
|
|
5961
6175
|
*
|
|
6176
|
+
* **When to use**
|
|
6177
|
+
*
|
|
6178
|
+
* Use as a type annotation for a `ReadonlyMap` schema when exposing or returning
|
|
6179
|
+
* the schema while preserving its key schema, value schema, and ISO
|
|
6180
|
+
* representation.
|
|
6181
|
+
*
|
|
6182
|
+
* @see {@link ReadonlyMap} for constructing this schema type from key and value schemas
|
|
6183
|
+
* @see {@link ReadonlyMapIso} for the readonly tuple-array ISO representation used by this schema
|
|
6184
|
+
*
|
|
5962
6185
|
* @category ReadonlyMap
|
|
5963
6186
|
* @since 4.0.0
|
|
5964
6187
|
*/
|
|
@@ -6015,6 +6238,14 @@ export declare function HashMap<Key extends Top, Value extends Top>(key: Key, va
|
|
|
6015
6238
|
* Type-level representation of a `ReadonlySet` schema whose values are validated
|
|
6016
6239
|
* by the provided element schema.
|
|
6017
6240
|
*
|
|
6241
|
+
* **When to use**
|
|
6242
|
+
*
|
|
6243
|
+
* Use to name or constrain the schema type produced by `ReadonlySet` when
|
|
6244
|
+
* generic code needs to retain the element schema type.
|
|
6245
|
+
*
|
|
6246
|
+
* @see {@link ReadonlySet} for constructing this schema type
|
|
6247
|
+
* @see {@link ReadonlySetIso} for the array representation used by this schema's ISO
|
|
6248
|
+
*
|
|
6018
6249
|
* @category ReadonlySet
|
|
6019
6250
|
* @since 4.0.0
|
|
6020
6251
|
*/
|
|
@@ -6080,6 +6311,13 @@ export interface Chunk<Value extends Top> extends declareConstructor<Chunk_.Chun
|
|
|
6080
6311
|
* Iso representation used for `Chunk` schemas: an array of element values using
|
|
6081
6312
|
* the element schema's `Iso` type.
|
|
6082
6313
|
*
|
|
6314
|
+
* **When to use**
|
|
6315
|
+
*
|
|
6316
|
+
* Use when annotating type-level helpers that work with the readonly-array ISO
|
|
6317
|
+
* shape of a `Chunk` schema.
|
|
6318
|
+
*
|
|
6319
|
+
* @see {@link Chunk} for the schema interface and constructor that use this ISO representation
|
|
6320
|
+
*
|
|
6083
6321
|
* @category Chunk
|
|
6084
6322
|
* @since 4.0.0
|
|
6085
6323
|
*/
|
|
@@ -6172,12 +6410,16 @@ export interface Date extends instanceOf<globalThis.Date> {
|
|
|
6172
6410
|
/**
|
|
6173
6411
|
* A schema for JavaScript `Date` objects.
|
|
6174
6412
|
*
|
|
6413
|
+
* **When to use**
|
|
6414
|
+
*
|
|
6415
|
+
* Use to validate in-memory values that must already be JavaScript `Date`
|
|
6416
|
+
* instances.
|
|
6417
|
+
*
|
|
6175
6418
|
* **Details**
|
|
6176
6419
|
*
|
|
6177
|
-
* This schema accepts any `Date` instance, including invalid dates.
|
|
6178
|
-
*
|
|
6179
|
-
*
|
|
6180
|
-
* `"Invalid Date"`.
|
|
6420
|
+
* This schema accepts any `Date` instance, including invalid dates. The default
|
|
6421
|
+
* JSON serializer encodes valid dates as ISO 8601 strings; invalid dates encode
|
|
6422
|
+
* as `"Invalid Date"`.
|
|
6181
6423
|
*
|
|
6182
6424
|
* **Example** (Date schema)
|
|
6183
6425
|
*
|
|
@@ -6188,6 +6430,8 @@ export interface Date extends instanceOf<globalThis.Date> {
|
|
|
6188
6430
|
* // => Date { 2024-01-01T00:00:00.000Z }
|
|
6189
6431
|
* ```
|
|
6190
6432
|
*
|
|
6433
|
+
* @see {@link DateValid} for accepting only valid Date instances
|
|
6434
|
+
*
|
|
6191
6435
|
* @category Date
|
|
6192
6436
|
* @since 4.0.0
|
|
6193
6437
|
*/
|
|
@@ -6205,16 +6449,27 @@ export interface DateFromString extends decodeTo<Date, String> {
|
|
|
6205
6449
|
/**
|
|
6206
6450
|
* A transformation schema that decodes a string into a JavaScript `Date`.
|
|
6207
6451
|
*
|
|
6452
|
+
* **When to use**
|
|
6453
|
+
*
|
|
6454
|
+
* Use to model string-encoded dates that decode to JavaScript `Date` objects
|
|
6455
|
+
* and encode back to strings.
|
|
6456
|
+
*
|
|
6208
6457
|
* **Details**
|
|
6209
6458
|
*
|
|
6210
6459
|
* Decoding:
|
|
6211
|
-
* The string is passed to JavaScript `Date` construction
|
|
6212
|
-
* invalid `Date`. Compose with `DateValid` when invalid dates should be rejected.
|
|
6460
|
+
* The string is passed to JavaScript `Date` construction.
|
|
6213
6461
|
*
|
|
6214
6462
|
* Encoding:
|
|
6215
6463
|
* A valid `Date` is encoded as an ISO string; an invalid `Date` is encoded as
|
|
6216
6464
|
* `"Invalid Date"`.
|
|
6217
6465
|
*
|
|
6466
|
+
* **Gotchas**
|
|
6467
|
+
*
|
|
6468
|
+
* Invalid date strings can decode to invalid `Date` instances.
|
|
6469
|
+
*
|
|
6470
|
+
* @see {@link Date} for accepting Date instances directly
|
|
6471
|
+
* @see {@link DateValid} for rejecting invalid Date instances
|
|
6472
|
+
*
|
|
6218
6473
|
* @category Date
|
|
6219
6474
|
* @since 3.10.0
|
|
6220
6475
|
*/
|
|
@@ -6367,12 +6622,19 @@ export interface BigDecimal extends declare<BigDecimal_.BigDecimal> {
|
|
|
6367
6622
|
/**
|
|
6368
6623
|
* A schema for `BigDecimal` values.
|
|
6369
6624
|
*
|
|
6625
|
+
* **When to use**
|
|
6626
|
+
*
|
|
6627
|
+
* Use when values are already `BigDecimal` instances and need schema validation,
|
|
6628
|
+
* formatting, equivalence, and JSON string serialization.
|
|
6629
|
+
*
|
|
6370
6630
|
* **Details**
|
|
6371
6631
|
*
|
|
6372
6632
|
* Default JSON serializer:
|
|
6373
6633
|
*
|
|
6374
6634
|
* - encodes `BigDecimal` as a `string`
|
|
6375
6635
|
*
|
|
6636
|
+
* @see {@link BigDecimalFromString} for parsing string input into a BigDecimal
|
|
6637
|
+
*
|
|
6376
6638
|
* @category BigDecimal
|
|
6377
6639
|
* @since 3.10.0
|
|
6378
6640
|
*/
|
|
@@ -6390,13 +6652,26 @@ export interface BigDecimalFromString extends decodeTo<BigDecimal, String> {
|
|
|
6390
6652
|
/**
|
|
6391
6653
|
* A transformation schema that parses a string into a `BigDecimal`.
|
|
6392
6654
|
*
|
|
6655
|
+
* **When to use**
|
|
6656
|
+
*
|
|
6657
|
+
* Use to parse decimal or exponent-notation strings into arbitrary-precision
|
|
6658
|
+
* BigDecimal values while encoding them back to strings.
|
|
6659
|
+
*
|
|
6393
6660
|
* **Details**
|
|
6394
6661
|
*
|
|
6395
6662
|
* Decoding:
|
|
6396
|
-
* - A `string` is decoded
|
|
6663
|
+
* - A `string` is decoded with `BigDecimal.fromString`.
|
|
6397
6664
|
*
|
|
6398
6665
|
* Encoding:
|
|
6399
|
-
* - A `BigDecimal` is encoded
|
|
6666
|
+
* - A `BigDecimal` is encoded with `BigDecimal.format`.
|
|
6667
|
+
*
|
|
6668
|
+
* **Gotchas**
|
|
6669
|
+
*
|
|
6670
|
+
* An empty string decodes as zero.
|
|
6671
|
+
*
|
|
6672
|
+
* @see {@link BigDecimal} for validating values that are already BigDecimal values
|
|
6673
|
+
* @see {@link BigIntFromString} for parsing base-10 integer strings into bigint values
|
|
6674
|
+
* @see {@link NumberFromString} for parsing JavaScript number strings
|
|
6400
6675
|
*
|
|
6401
6676
|
* @category BigDecimal
|
|
6402
6677
|
* @since 4.0.0
|
|
@@ -6865,6 +7140,11 @@ export interface BigIntFromString extends decodeTo<BigInt, String> {
|
|
|
6865
7140
|
/**
|
|
6866
7141
|
* A transformation schema that parses a string into a `bigint`.
|
|
6867
7142
|
*
|
|
7143
|
+
* **When to use**
|
|
7144
|
+
*
|
|
7145
|
+
* Use to parse signed base-10 integer strings into bigint values while encoding
|
|
7146
|
+
* bigint values back to decimal strings.
|
|
7147
|
+
*
|
|
6868
7148
|
* **Details**
|
|
6869
7149
|
*
|
|
6870
7150
|
* Decoding:
|
|
@@ -6873,6 +7153,15 @@ export interface BigIntFromString extends decodeTo<BigInt, String> {
|
|
|
6873
7153
|
* Encoding:
|
|
6874
7154
|
* - A `bigint` is encoded as a `string`.
|
|
6875
7155
|
*
|
|
7156
|
+
* **Gotchas**
|
|
7157
|
+
*
|
|
7158
|
+
* Decoding accepts only strings matching `^-?\d+$`.
|
|
7159
|
+
*
|
|
7160
|
+
* @see {@link isStringBigInt} for the string predicate used by this schema
|
|
7161
|
+
* @see {@link BigInt} for validating values that are already bigint values
|
|
7162
|
+
* @see {@link NumberFromString} for parsing JavaScript number strings, including non-finite values
|
|
7163
|
+
* @see {@link BigDecimalFromString} for parsing decimal number strings
|
|
7164
|
+
*
|
|
6876
7165
|
* @category BigInt
|
|
6877
7166
|
* @since 4.0.0
|
|
6878
7167
|
*/
|
|
@@ -7078,6 +7367,19 @@ export interface BooleanFromBit extends decodeTo<Boolean, Literals<readonly [0,
|
|
|
7078
7367
|
/**
|
|
7079
7368
|
* A boolean parsed from 0 or 1.
|
|
7080
7369
|
*
|
|
7370
|
+
* **When to use**
|
|
7371
|
+
*
|
|
7372
|
+
* Use when decoding data sources that represent booleans as `0 | 1` while
|
|
7373
|
+
* keeping boolean values in the decoded model.
|
|
7374
|
+
*
|
|
7375
|
+
* **Details**
|
|
7376
|
+
*
|
|
7377
|
+
* Decoding accepts only `0 | 1`, maps `1` to `true`, and maps `0` to `false`.
|
|
7378
|
+
* Encoding maps `true` to `1` and `false` to `0`.
|
|
7379
|
+
*
|
|
7380
|
+
* @see {@link Boolean} for validating values that are already booleans
|
|
7381
|
+
* @see {@link Literals} for keeping bit literals instead of decoding them
|
|
7382
|
+
*
|
|
7081
7383
|
* @category Boolean
|
|
7082
7384
|
* @since 4.0.0
|
|
7083
7385
|
*/
|
|
@@ -7196,11 +7498,20 @@ export interface DateTimeUtc extends declare<DateTime.Utc> {
|
|
|
7196
7498
|
/**
|
|
7197
7499
|
* A schema for `DateTime.Utc` values.
|
|
7198
7500
|
*
|
|
7501
|
+
* **When to use**
|
|
7502
|
+
*
|
|
7503
|
+
* Use to validate existing `DateTime.Utc` schema values and use the default JSON
|
|
7504
|
+
* codec that represents them as UTC ISO strings.
|
|
7505
|
+
*
|
|
7199
7506
|
* **Details**
|
|
7200
7507
|
*
|
|
7201
|
-
*
|
|
7508
|
+
* The default JSON codec decodes UTC ISO strings into `DateTime.Utc` values and
|
|
7509
|
+
* encodes `DateTime.Utc` values as UTC ISO strings.
|
|
7202
7510
|
*
|
|
7203
|
-
*
|
|
7511
|
+
* @see {@link DateTimeUtcFromString} for decoding date-time strings into UTC values
|
|
7512
|
+
* @see {@link DateTimeUtcFromDate} for decoding JavaScript Date values into UTC values
|
|
7513
|
+
* @see {@link DateTimeUtcFromMillis} for decoding epoch milliseconds into UTC values
|
|
7514
|
+
* @see {@link DateTimeZoned} for preserving zoned DateTime values
|
|
7204
7515
|
*
|
|
7205
7516
|
* @category DateTime
|
|
7206
7517
|
* @since 3.10.0
|
|
@@ -7219,6 +7530,11 @@ export interface DateTimeUtcFromDate extends decodeTo<DateTimeUtc, Date> {
|
|
|
7219
7530
|
/**
|
|
7220
7531
|
* A transformation schema that decodes a `Date` into a `DateTime.Utc`.
|
|
7221
7532
|
*
|
|
7533
|
+
* **When to use**
|
|
7534
|
+
*
|
|
7535
|
+
* Use when a boundary provides valid JavaScript `Date` objects but the decoded
|
|
7536
|
+
* model should use `DateTime.Utc`.
|
|
7537
|
+
*
|
|
7222
7538
|
* **Details**
|
|
7223
7539
|
*
|
|
7224
7540
|
* Decoding:
|
|
@@ -7227,6 +7543,11 @@ export interface DateTimeUtcFromDate extends decodeTo<DateTimeUtc, Date> {
|
|
|
7227
7543
|
* Encoding:
|
|
7228
7544
|
* - A `DateTime.Utc` is encoded as a `Date`
|
|
7229
7545
|
*
|
|
7546
|
+
* @see {@link DateTimeUtc} for validating values that are already `DateTime.Utc`
|
|
7547
|
+
* @see {@link DateTimeUtcFromString} for decoding date-time strings into UTC values
|
|
7548
|
+
* @see {@link DateTimeUtcFromMillis} for decoding epoch milliseconds into UTC values
|
|
7549
|
+
* @see {@link DateValid} for validating Date instances without converting them
|
|
7550
|
+
*
|
|
7230
7551
|
* @category DateTime
|
|
7231
7552
|
* @since 3.12.0
|
|
7232
7553
|
*/
|
|
@@ -7501,13 +7822,23 @@ type MissingSelfGeneric<Usage extends string> = `Missing \`Self\` generic - use
|
|
|
7501
7822
|
/**
|
|
7502
7823
|
* Creates a schema-backed class whose constructor validates input against a
|
|
7503
7824
|
* {@link Struct} schema. Construction throws a {@link SchemaError} on invalid
|
|
7504
|
-
* input
|
|
7825
|
+
* input.
|
|
7826
|
+
*
|
|
7827
|
+
* **When to use**
|
|
7828
|
+
*
|
|
7829
|
+
* Use to define a schema-backed data class when you want validated
|
|
7830
|
+
* construction, schema-derived decoding/encoding, and class-style methods or
|
|
7831
|
+
* inheritance.
|
|
7505
7832
|
*
|
|
7506
7833
|
* **Details**
|
|
7507
7834
|
*
|
|
7508
7835
|
* Pass the desired class type as the first type parameter. The second optional
|
|
7509
7836
|
* type parameter can be used to add nominal brands.
|
|
7510
7837
|
*
|
|
7838
|
+
* **Gotchas**
|
|
7839
|
+
*
|
|
7840
|
+
* Passing `disableChecks` in the options skips constructor validation.
|
|
7841
|
+
*
|
|
7511
7842
|
* **Example** (Basic class)
|
|
7512
7843
|
*
|
|
7513
7844
|
* ```ts
|
|
@@ -7541,6 +7872,10 @@ type MissingSelfGeneric<Usage extends string> = `Missing \`Self\` generic - use
|
|
|
7541
7872
|
* console.log(dog.breed) // "Labrador"
|
|
7542
7873
|
* ```
|
|
7543
7874
|
*
|
|
7875
|
+
* @see {@link TaggedClass} for adding a `_tag` literal field to the class schema
|
|
7876
|
+
* @see {@link ErrorClass} for defining schema-backed error classes
|
|
7877
|
+
* @see {@link TaggedErrorClass} for defining tagged schema-backed error classes
|
|
7878
|
+
*
|
|
7544
7879
|
* @category constructors
|
|
7545
7880
|
* @since 3.10.0
|
|
7546
7881
|
*/
|
|
@@ -7548,13 +7883,23 @@ export declare const Class: {
|
|
|
7548
7883
|
/**
|
|
7549
7884
|
* Creates a schema-backed class whose constructor validates input against a
|
|
7550
7885
|
* {@link Struct} schema. Construction throws a {@link SchemaError} on invalid
|
|
7551
|
-
* input
|
|
7886
|
+
* input.
|
|
7887
|
+
*
|
|
7888
|
+
* **When to use**
|
|
7889
|
+
*
|
|
7890
|
+
* Use to define a schema-backed data class when you want validated
|
|
7891
|
+
* construction, schema-derived decoding/encoding, and class-style methods or
|
|
7892
|
+
* inheritance.
|
|
7552
7893
|
*
|
|
7553
7894
|
* **Details**
|
|
7554
7895
|
*
|
|
7555
7896
|
* Pass the desired class type as the first type parameter. The second optional
|
|
7556
7897
|
* type parameter can be used to add nominal brands.
|
|
7557
7898
|
*
|
|
7899
|
+
* **Gotchas**
|
|
7900
|
+
*
|
|
7901
|
+
* Passing `disableChecks` in the options skips constructor validation.
|
|
7902
|
+
*
|
|
7558
7903
|
* **Example** (Basic class)
|
|
7559
7904
|
*
|
|
7560
7905
|
* ```ts
|
|
@@ -7588,6 +7933,10 @@ export declare const Class: {
|
|
|
7588
7933
|
* console.log(dog.breed) // "Labrador"
|
|
7589
7934
|
* ```
|
|
7590
7935
|
*
|
|
7936
|
+
* @see {@link TaggedClass} for adding a `_tag` literal field to the class schema
|
|
7937
|
+
* @see {@link ErrorClass} for defining schema-backed error classes
|
|
7938
|
+
* @see {@link TaggedErrorClass} for defining tagged schema-backed error classes
|
|
7939
|
+
*
|
|
7591
7940
|
* @category constructors
|
|
7592
7941
|
* @since 3.10.0
|
|
7593
7942
|
*/
|
|
@@ -7595,13 +7944,23 @@ export declare const Class: {
|
|
|
7595
7944
|
/**
|
|
7596
7945
|
* Creates a schema-backed class whose constructor validates input against a
|
|
7597
7946
|
* {@link Struct} schema. Construction throws a {@link SchemaError} on invalid
|
|
7598
|
-
* input
|
|
7947
|
+
* input.
|
|
7948
|
+
*
|
|
7949
|
+
* **When to use**
|
|
7950
|
+
*
|
|
7951
|
+
* Use to define a schema-backed data class when you want validated
|
|
7952
|
+
* construction, schema-derived decoding/encoding, and class-style methods or
|
|
7953
|
+
* inheritance.
|
|
7599
7954
|
*
|
|
7600
7955
|
* **Details**
|
|
7601
7956
|
*
|
|
7602
7957
|
* Pass the desired class type as the first type parameter. The second optional
|
|
7603
7958
|
* type parameter can be used to add nominal brands.
|
|
7604
7959
|
*
|
|
7960
|
+
* **Gotchas**
|
|
7961
|
+
*
|
|
7962
|
+
* Passing `disableChecks` in the options skips constructor validation.
|
|
7963
|
+
*
|
|
7605
7964
|
* **Example** (Basic class)
|
|
7606
7965
|
*
|
|
7607
7966
|
* ```ts
|
|
@@ -7635,6 +7994,10 @@ export declare const Class: {
|
|
|
7635
7994
|
* console.log(dog.breed) // "Labrador"
|
|
7636
7995
|
* ```
|
|
7637
7996
|
*
|
|
7997
|
+
* @see {@link TaggedClass} for adding a `_tag` literal field to the class schema
|
|
7998
|
+
* @see {@link ErrorClass} for defining schema-backed error classes
|
|
7999
|
+
* @see {@link TaggedErrorClass} for defining tagged schema-backed error classes
|
|
8000
|
+
*
|
|
7638
8001
|
* @category constructors
|
|
7639
8002
|
* @since 3.10.0
|
|
7640
8003
|
*/
|
|
@@ -7642,13 +8005,23 @@ export declare const Class: {
|
|
|
7642
8005
|
/**
|
|
7643
8006
|
* Creates a schema-backed class whose constructor validates input against a
|
|
7644
8007
|
* {@link Struct} schema. Construction throws a {@link SchemaError} on invalid
|
|
7645
|
-
* input
|
|
8008
|
+
* input.
|
|
8009
|
+
*
|
|
8010
|
+
* **When to use**
|
|
8011
|
+
*
|
|
8012
|
+
* Use to define a schema-backed data class when you want validated
|
|
8013
|
+
* construction, schema-derived decoding/encoding, and class-style methods or
|
|
8014
|
+
* inheritance.
|
|
7646
8015
|
*
|
|
7647
8016
|
* **Details**
|
|
7648
8017
|
*
|
|
7649
8018
|
* Pass the desired class type as the first type parameter. The second optional
|
|
7650
8019
|
* type parameter can be used to add nominal brands.
|
|
7651
8020
|
*
|
|
8021
|
+
* **Gotchas**
|
|
8022
|
+
*
|
|
8023
|
+
* Passing `disableChecks` in the options skips constructor validation.
|
|
8024
|
+
*
|
|
7652
8025
|
* **Example** (Basic class)
|
|
7653
8026
|
*
|
|
7654
8027
|
* ```ts
|
|
@@ -7682,6 +8055,10 @@ export declare const Class: {
|
|
|
7682
8055
|
* console.log(dog.breed) // "Labrador"
|
|
7683
8056
|
* ```
|
|
7684
8057
|
*
|
|
8058
|
+
* @see {@link TaggedClass} for adding a `_tag` literal field to the class schema
|
|
8059
|
+
* @see {@link ErrorClass} for defining schema-backed error classes
|
|
8060
|
+
* @see {@link TaggedErrorClass} for defining tagged schema-backed error classes
|
|
8061
|
+
*
|
|
7685
8062
|
* @category constructors
|
|
7686
8063
|
* @since 3.10.0
|
|
7687
8064
|
*/
|
|
@@ -8116,7 +8493,7 @@ export declare function toRepresentation(schema: Top): SchemaRepresentation.Docu
|
|
|
8116
8493
|
/**
|
|
8117
8494
|
* Options for {@link toJsonSchemaDocument}.
|
|
8118
8495
|
*
|
|
8119
|
-
* @category
|
|
8496
|
+
* @category JsonSchema
|
|
8120
8497
|
* @since 4.0.0
|
|
8121
8498
|
*/
|
|
8122
8499
|
export interface ToJsonSchemaOptions {
|
|
@@ -8137,6 +8514,54 @@ export interface ToJsonSchemaOptions {
|
|
|
8137
8514
|
* provided them) based on the `expected` annotation of the check.
|
|
8138
8515
|
*/
|
|
8139
8516
|
readonly generateDescriptions?: boolean | undefined;
|
|
8517
|
+
/**
|
|
8518
|
+
* A predicate that controls which additional annotation keys (beyond the
|
|
8519
|
+
* standard JSON Schema keys) are included in the generated output.
|
|
8520
|
+
*
|
|
8521
|
+
* **When to use**
|
|
8522
|
+
*
|
|
8523
|
+
* Use when you need to include non-standard annotation keys in the generated
|
|
8524
|
+
* JSON Schema, such as Monaco Editor properties (`markdownDescription`,
|
|
8525
|
+
* `defaultSnippets`) or vendor extensions (`x-*`).
|
|
8526
|
+
*
|
|
8527
|
+
* **Details**
|
|
8528
|
+
*
|
|
8529
|
+
* Standard JSON Schema keys (`title`, `description`, `default`, `examples`,
|
|
8530
|
+
* `readOnly`, `writeOnly`, `format`, `contentEncoding`, `contentMediaType`,
|
|
8531
|
+
* `contentSchema`) are always included. This predicate is checked for any
|
|
8532
|
+
* *other* annotation key.
|
|
8533
|
+
*
|
|
8534
|
+
* **Gotchas**
|
|
8535
|
+
*
|
|
8536
|
+
* Prefer whitelisting the custom annotation keys you want to emit instead of
|
|
8537
|
+
* using a broad predicate such as `() => true`, because broad predicates can
|
|
8538
|
+
* include Effect-specific annotations that are preserved for internal schema
|
|
8539
|
+
* generation.
|
|
8540
|
+
*
|
|
8541
|
+
* **Example** (Including custom annotations)
|
|
8542
|
+
*
|
|
8543
|
+
* ```ts
|
|
8544
|
+
* import { Schema } from "effect"
|
|
8545
|
+
*
|
|
8546
|
+
* const schema = Schema.String.annotate({
|
|
8547
|
+
* description: "A name",
|
|
8548
|
+
* markdownDescription: "The **name** field"
|
|
8549
|
+
* })
|
|
8550
|
+
*
|
|
8551
|
+
* const doc = Schema.toJsonSchemaDocument(schema, {
|
|
8552
|
+
* includeAnnotationKey: (key) =>
|
|
8553
|
+
* key === "markdownDescription" || key.startsWith("x-")
|
|
8554
|
+
* })
|
|
8555
|
+
*
|
|
8556
|
+
* console.log(doc.schema)
|
|
8557
|
+
* // {
|
|
8558
|
+
* // type: "string",
|
|
8559
|
+
* // description: "A name",
|
|
8560
|
+
* // markdownDescription: "The **name** field"
|
|
8561
|
+
* // }
|
|
8562
|
+
* ```
|
|
8563
|
+
*/
|
|
8564
|
+
readonly includeAnnotationKey?: ((key: string) => boolean) | undefined;
|
|
8140
8565
|
}
|
|
8141
8566
|
/**
|
|
8142
8567
|
* Returns a JSON Schema document using draft 2020-12.
|