effect 4.0.0-beta.69 → 4.0.0-beta.70
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 +454 -0
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +152 -0
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +87 -33
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +37 -11
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +71 -14
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +35 -10
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +4 -0
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +4 -0
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +16 -11
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +16 -11
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +13 -1
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +8 -0
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +95 -3
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +56 -2
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +312 -0
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +126 -0
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +20 -0
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +12 -0
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +59 -22
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +29 -10
- package/dist/Chunk.js.map +1 -1
- package/dist/Combiner.d.ts +75 -71
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +67 -62
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +167 -46
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +108 -28
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +235 -158
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +144 -93
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +21 -79
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +20 -75
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +4 -4
- package/dist/Context.js +2 -2
- package/dist/Cron.d.ts +42 -16
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +33 -13
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +6 -0
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +132 -70
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +44 -29
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +227 -14
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +115 -6
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +94 -27
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +33 -8
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +2 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Duration.d.ts +64 -6
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +26 -2
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +907 -603
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +360 -233
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +3 -1
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +3 -1
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +16 -0
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +16 -0
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +52 -40
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +32 -26
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +190 -153
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +129 -104
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +35 -14
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +18 -6
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +10 -3
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +4 -3
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +212 -6
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +139 -2
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +8 -0
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +4 -0
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +46 -23
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +27 -11
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +43 -4
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +27 -4
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +21 -6
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +17 -6
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +64 -0
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +26 -0
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +53 -21
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +20 -9
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +21 -22
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +12 -12
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +67 -75
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +29 -19
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +51 -13
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +19 -3
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +22 -21
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +33 -10
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +27 -10
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +50 -9
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +17 -3
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +4 -0
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +2 -0
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +2 -0
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +15 -2
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +11 -2
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +104 -22
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +46 -12
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +61 -80
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +35 -42
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +16 -20
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +16 -20
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +123 -73
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +95 -53
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +28 -2
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +22 -2
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +781 -335
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +324 -129
- package/dist/Layer.js.map +1 -1
- package/dist/LogLevel.d.ts +86 -13
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +30 -4
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +63 -51
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +61 -51
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +12 -0
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +1 -0
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +83 -1
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +31 -1
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +89 -12
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +53 -8
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +14 -0
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +4 -0
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +2 -0
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +24 -6
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +22 -6
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +2 -0
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +69 -30
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +52 -22
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +6 -0
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +2 -0
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +16 -30
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +6 -12
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +90 -40
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +48 -24
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +121 -111
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +56 -54
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +169 -167
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +135 -135
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +4 -0
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +2 -0
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +7 -5
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +5 -5
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +8 -0
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +4 -0
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +10 -0
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +8 -0
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +12 -0
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +10 -0
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +30 -16
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +30 -16
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +520 -352
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +271 -184
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +4 -0
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +2 -0
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +22 -4
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +17 -3
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +16 -0
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +10 -0
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +44 -0
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +28 -0
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +25 -6
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +11 -2
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +10 -6
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +2 -2
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +3 -1
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +24 -3
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +12 -3
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +54 -41
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +42 -32
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +10 -0
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +6 -0
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +20 -11
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +10 -6
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +45 -24
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +41 -21
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +18 -1
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +17 -1
- package/dist/References.js.map +1 -1
- package/dist/Request.d.ts +3 -3
- package/dist/Request.js +2 -2
- package/dist/RequestResolver.d.ts +7 -17
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +3 -5
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +2 -0
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +2 -0
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +188 -6
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +84 -2
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +14 -11
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +11 -9
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +27 -3
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +21 -2
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +22 -19
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +14 -12
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +547 -130
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +409 -121
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +123 -65
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +90 -39
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +269 -234
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +245 -215
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +48 -46
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +34 -34
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +58 -0
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +58 -0
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +198 -96
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +107 -45
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +272 -203
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +249 -187
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +2 -0
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +2 -0
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +18 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +12 -0
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +44 -0
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +18 -0
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +9 -3
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +3 -1
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +6 -0
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +4 -0
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +108 -0
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +54 -0
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +7 -3
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +2 -0
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +416 -16
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +164 -8
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +14 -0
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +6 -0
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +371 -191
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +144 -77
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +7 -1
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +5 -1
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +2 -0
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +2 -0
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Tracer.d.ts +17 -27
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +8 -12
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +23 -9
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +13 -3
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +287 -144
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +135 -66
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +182 -93
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +68 -35
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +3 -4
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +163 -86
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +57 -30
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +24 -27
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +9 -6
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +2 -0
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +36 -35
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +22 -21
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +77 -114
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +45 -62
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxRef.d.ts +4 -0
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +2 -0
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +66 -27
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +38 -15
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/Types.d.ts +202 -75
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts +31 -29
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +27 -21
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +28 -0
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +2 -0
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +29 -35
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +11 -13
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +18 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/testing/TestClock.d.ts +17 -17
- package/dist/testing/TestClock.js +1 -1
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +2 -0
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +43 -55
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +43 -55
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +62 -11
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +58 -11
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +4 -4
- package/dist/unstable/ai/AnthropicStructuredOutput.js +4 -4
- package/dist/unstable/ai/Chat.d.ts +29 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +15 -1
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +10 -0
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +8 -0
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +32 -46
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +5 -14
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +84 -32
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +73 -28
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +8 -0
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +6 -0
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +9 -5
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +4 -0
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +3 -2
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +3 -2
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +62 -35
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +16 -15
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +40 -21
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +10 -0
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +8 -0
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +4 -0
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +30 -5
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +7 -1
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +6 -0
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +4 -0
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +68 -0
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +36 -0
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +12 -0
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +6 -0
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/cli/Argument.d.ts +14 -4
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js +4 -0
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +6 -0
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +4 -0
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +123 -12
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +57 -4
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +31 -14
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +23 -10
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +10 -0
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +46 -5
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +10 -0
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +10 -0
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +47 -40
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +25 -20
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts +1 -0
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.js +10 -2
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cli/internal/completions/descriptor.js +3 -0
- package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +8 -1
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +10 -1
- package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js +2 -0
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +8 -0
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +8 -0
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +4 -0
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +4 -0
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +3 -4
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +24 -0
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +12 -0
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +10 -4
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +6 -0
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js +4 -0
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +10 -0
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +8 -0
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +16 -0
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +10 -0
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +16 -0
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +16 -0
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +8 -0
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +8 -0
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +24 -0
- package/dist/unstable/cluster/Message.d.ts.map +1 -1
- package/dist/unstable/cluster/Message.js +18 -0
- package/dist/unstable/cluster/Message.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +64 -20
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +8 -0
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +6 -6
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +4 -3
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +2 -0
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +2 -0
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +13 -2
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +13 -2
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +8 -8
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +8 -8
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts +2 -0
- package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.js +2 -0
- package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +4 -0
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +4 -0
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +2 -0
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +2 -0
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +3 -2
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +3 -2
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts +34 -2
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +14 -0
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +4 -0
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +2 -0
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +24 -0
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +18 -0
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +46 -2
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +30 -2
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +24 -17
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +20 -11
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +16 -0
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +4 -0
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +2 -0
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +20 -0
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +18 -0
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +22 -0
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +18 -0
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +10 -0
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +10 -0
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +4 -0
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +4 -0
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +4 -0
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +4 -0
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +6 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +6 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +8 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +8 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +11 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +11 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +2 -0
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +34 -0
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +18 -0
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +4 -0
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +4 -0
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +4 -0
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +60 -0
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +24 -0
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +32 -0
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +22 -0
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +44 -0
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +14 -0
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -0
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +2 -0
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +6 -0
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +6 -0
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +4 -0
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +4 -0
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +2 -0
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +2 -0
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +54 -16
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +26 -1
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +35 -1
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +17 -1
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +17 -3
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +16 -0
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +30 -0
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +28 -0
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts +8 -0
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +6 -0
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +96 -0
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +50 -0
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +12 -0
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +10 -0
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +49 -2
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +35 -2
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +14 -0
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +4 -0
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +64 -0
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +28 -0
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +10 -4
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +4 -0
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +9 -4
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +5 -4
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +2 -0
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +23 -14
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js +6 -3
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +14 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +6 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +38 -15
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +4 -0
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +14 -3
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +10 -0
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +17 -11
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +17 -11
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts +2 -4
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +2 -4
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +2 -0
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +2 -0
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +2 -0
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +2 -0
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js +2 -0
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts +2 -0
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +2 -0
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +4 -0
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +4 -0
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +8 -9
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +3 -3
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +8 -0
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +8 -0
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts +3 -2
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +3 -2
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +6 -2
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +6 -2
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +10 -0
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +8 -0
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -0
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +2 -0
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +2 -0
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +2 -0
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +21 -6
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +10 -0
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts +14 -0
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +14 -0
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +6 -3
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +4 -0
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts +6 -0
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +4 -0
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +70 -19
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +10 -0
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +20 -4
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +105 -14
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +53 -8
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +4 -0
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +2 -0
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +8 -0
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +2 -0
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +32 -0
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +12 -0
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +8 -6
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +4 -3
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -0
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +4 -0
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +27 -3
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +15 -3
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +38 -2
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +12 -2
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +6 -0
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +6 -0
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +5 -3
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +5 -3
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +43 -12
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +41 -12
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +6 -4
- package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.js +6 -4
- package/dist/unstable/sql/SqlResolver.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +8 -4
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +3 -0
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +3 -0
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +42 -34
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +18 -19
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +454 -0
- package/src/BigDecimal.ts +87 -33
- package/src/BigInt.ts +71 -14
- package/src/Boolean.ts +4 -0
- package/src/Brand.ts +16 -11
- package/src/Cache.ts +17 -1
- package/src/Cause.ts +95 -3
- package/src/Channel.ts +326 -0
- package/src/ChannelSchema.ts +24 -0
- package/src/Chunk.ts +59 -22
- package/src/Combiner.ts +75 -71
- package/src/Config.ts +167 -46
- package/src/ConfigProvider.ts +235 -158
- package/src/Console.ts +25 -99
- package/src/Context.ts +4 -4
- package/src/Cron.ts +42 -16
- package/src/Crypto.ts +6 -0
- package/src/Data.ts +132 -70
- package/src/DateTime.ts +227 -14
- package/src/Deferred.ts +94 -27
- package/src/Differ.ts +2 -0
- package/src/Duration.ts +64 -6
- package/src/Effect.ts +909 -605
- package/src/Effectable.ts +3 -1
- package/src/Encoding.ts +16 -0
- package/src/Equal.ts +52 -40
- package/src/Equivalence.ts +190 -153
- package/src/ErrorReporter.ts +35 -14
- package/src/ExecutionPlan.ts +10 -3
- package/src/Exit.ts +212 -6
- package/src/Fiber.ts +8 -0
- package/src/FiberHandle.ts +46 -23
- package/src/FiberMap.ts +43 -4
- package/src/FiberSet.ts +21 -6
- package/src/FileSystem.ts +64 -0
- package/src/Filter.ts +53 -21
- package/src/Formatter.ts +21 -22
- package/src/Function.ts +67 -75
- package/src/Graph.ts +51 -13
- package/src/HKT.ts +22 -21
- package/src/Hash.ts +33 -10
- package/src/HashMap.ts +50 -9
- package/src/HashRing.ts +4 -0
- package/src/HashSet.ts +2 -0
- package/src/Inspectable.ts +15 -2
- package/src/Iterable.ts +104 -22
- package/src/JsonPatch.ts +61 -80
- package/src/JsonPointer.ts +16 -20
- package/src/JsonSchema.ts +123 -73
- package/src/Latch.ts +28 -2
- package/src/Layer.ts +781 -335
- package/src/LogLevel.ts +86 -13
- package/src/Logger.ts +71 -51
- package/src/ManagedRuntime.ts +12 -0
- package/src/Match.ts +83 -1
- package/src/Metric.ts +105 -12
- package/src/MutableHashMap.ts +18 -0
- package/src/MutableHashSet.ts +2 -0
- package/src/MutableList.ts +24 -6
- package/src/MutableRef.ts +2 -0
- package/src/Newtype.ts +69 -30
- package/src/NonEmptyIterable.ts +6 -0
- package/src/Number.ts +16 -30
- package/src/Optic.ts +90 -40
- package/src/Option.ts +121 -111
- package/src/Order.ts +169 -167
- package/src/Ordering.ts +4 -0
- package/src/PartitionedSemaphore.ts +7 -5
- package/src/Path.ts +8 -0
- package/src/Pipeable.ts +10 -0
- package/src/PlatformError.ts +12 -0
- package/src/Pool.ts +30 -16
- package/src/Predicate.ts +520 -352
- package/src/PrimaryKey.ts +4 -0
- package/src/PubSub.ts +23 -5
- package/src/Pull.ts +16 -0
- package/src/Queue.ts +44 -0
- package/src/Random.ts +25 -6
- package/src/RcMap.ts +10 -6
- package/src/RcRef.ts +3 -1
- package/src/Record.ts +24 -3
- package/src/Redactable.ts +54 -41
- package/src/Redacted.ts +10 -0
- package/src/Reducer.ts +20 -11
- package/src/Ref.ts +95 -58
- package/src/References.ts +18 -1
- package/src/Request.ts +3 -3
- package/src/RequestResolver.ts +8 -22
- package/src/Resource.ts +2 -0
- package/src/Result.ts +192 -6
- package/src/Runtime.ts +14 -11
- package/src/Schedule.ts +35 -3
- package/src/Scheduler.ts +22 -19
- package/src/Schema.ts +547 -130
- package/src/SchemaAST.ts +123 -65
- package/src/SchemaGetter.ts +269 -234
- package/src/SchemaIssue.ts +48 -46
- package/src/SchemaParser.ts +58 -0
- package/src/SchemaRepresentation.ts +198 -96
- package/src/SchemaTransformation.ts +272 -203
- package/src/SchemaUtils.ts +2 -0
- package/src/Scope.ts +19 -1
- package/src/ScopedCache.ts +56 -0
- package/src/ScopedRef.ts +9 -3
- package/src/Semaphore.ts +6 -0
- package/src/Sink.ts +108 -0
- package/src/Stdio.ts +7 -3
- package/src/Stream.ts +464 -16
- package/src/String.ts +14 -0
- package/src/Struct.ts +371 -191
- package/src/SubscriptionRef.ts +7 -1
- package/src/SynchronizedRef.ts +2 -0
- package/src/Tracer.ts +17 -27
- package/src/Trie.ts +23 -9
- package/src/Tuple.ts +287 -144
- package/src/TxChunk.ts +182 -93
- package/src/TxDeferred.ts +3 -4
- package/src/TxHashMap.ts +171 -90
- package/src/TxHashSet.ts +36 -35
- package/src/TxPriorityQueue.ts +2 -0
- package/src/TxPubSub.ts +36 -35
- package/src/TxQueue.ts +77 -114
- package/src/TxRef.ts +4 -0
- package/src/TxSemaphore.ts +66 -27
- package/src/Types.ts +202 -75
- package/src/UndefinedOr.ts +31 -29
- package/src/Unify.ts +28 -0
- package/src/Utils.ts +29 -35
- package/src/index.ts +18 -7
- package/src/testing/TestClock.ts +16 -16
- package/src/testing/TestConsole.ts +2 -0
- package/src/testing/TestSchema.ts +43 -55
- package/src/unstable/ai/AiError.ts +62 -11
- package/src/unstable/ai/AnthropicStructuredOutput.ts +4 -4
- package/src/unstable/ai/Chat.ts +29 -1
- package/src/unstable/ai/IdGenerator.ts +10 -0
- package/src/unstable/ai/LanguageModel.ts +32 -46
- package/src/unstable/ai/McpSchema.ts +84 -32
- package/src/unstable/ai/McpServer.ts +8 -0
- package/src/unstable/ai/Model.ts +9 -5
- package/src/unstable/ai/OpenAiStructuredOutput.ts +3 -2
- package/src/unstable/ai/Prompt.ts +62 -35
- package/src/unstable/ai/Response.ts +40 -21
- package/src/unstable/ai/ResponseIdTracker.ts +8 -0
- package/src/unstable/ai/Telemetry.ts +30 -5
- package/src/unstable/ai/Tokenizer.ts +6 -0
- package/src/unstable/ai/Tool.ts +68 -0
- package/src/unstable/ai/Toolkit.ts +12 -0
- package/src/unstable/cli/Argument.ts +14 -4
- package/src/unstable/cli/CliError.ts +6 -0
- package/src/unstable/cli/Command.ts +128 -12
- package/src/unstable/cli/Flag.ts +31 -14
- package/src/unstable/cli/Param.ts +96 -9
- package/src/unstable/cli/Primitive.ts +10 -0
- package/src/unstable/cli/Prompt.ts +47 -40
- package/src/unstable/cli/internal/command.ts +11 -2
- package/src/unstable/cli/internal/completions/descriptor.ts +3 -0
- package/src/unstable/cli/internal/parser.ts +8 -1
- package/src/unstable/cluster/ClusterCron.ts +10 -1
- package/src/unstable/cluster/ClusterSchema.ts +8 -0
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +4 -0
- package/src/unstable/cluster/DeliverAt.ts +3 -4
- package/src/unstable/cluster/Entity.ts +24 -0
- package/src/unstable/cluster/EntityProxy.ts +10 -4
- package/src/unstable/cluster/EntityProxyServer.ts +6 -0
- package/src/unstable/cluster/EntityResource.ts +10 -0
- package/src/unstable/cluster/Envelope.ts +16 -0
- package/src/unstable/cluster/HttpRunner.ts +16 -0
- package/src/unstable/cluster/K8sHttpClient.ts +8 -0
- package/src/unstable/cluster/Message.ts +24 -0
- package/src/unstable/cluster/MessageStorage.ts +44 -10
- package/src/unstable/cluster/Reply.ts +6 -6
- package/src/unstable/cluster/Runner.ts +2 -0
- package/src/unstable/cluster/RunnerHealth.ts +13 -2
- package/src/unstable/cluster/RunnerServer.ts +8 -8
- package/src/unstable/cluster/RunnerStorage.ts +2 -0
- package/src/unstable/cluster/ShardId.ts +4 -0
- package/src/unstable/cluster/Snowflake.ts +2 -0
- package/src/unstable/cluster/TestRunner.ts +3 -2
- package/src/unstable/devtools/DevToolsSchema.ts +34 -2
- package/src/unstable/devtools/DevToolsServer.ts +4 -0
- package/src/unstable/encoding/Msgpack.ts +24 -0
- package/src/unstable/encoding/Ndjson.ts +46 -2
- package/src/unstable/encoding/Sse.ts +24 -17
- package/src/unstable/eventlog/Event.ts +16 -0
- package/src/unstable/eventlog/EventGroup.ts +4 -0
- package/src/unstable/eventlog/EventJournal.ts +20 -0
- package/src/unstable/eventlog/EventLog.ts +22 -0
- package/src/unstable/eventlog/EventLogMessage.ts +10 -0
- package/src/unstable/eventlog/EventLogRemote.ts +4 -0
- package/src/unstable/eventlog/EventLogServer.ts +4 -0
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +6 -0
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +8 -0
- package/src/unstable/eventlog/EventLogSessionAuth.ts +11 -1
- package/src/unstable/eventlog/SqlEventJournal.ts +2 -0
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +2 -0
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +2 -0
- package/src/unstable/http/Cookies.ts +34 -0
- package/src/unstable/http/Etag.ts +4 -0
- package/src/unstable/http/FetchHttpClient.ts +4 -0
- package/src/unstable/http/Headers.ts +88 -0
- package/src/unstable/http/HttpBody.ts +32 -0
- package/src/unstable/http/HttpClient.ts +44 -0
- package/src/unstable/http/HttpClientRequest.ts +2 -0
- package/src/unstable/http/HttpClientResponse.ts +6 -0
- package/src/unstable/http/HttpEffect.ts +4 -0
- package/src/unstable/http/HttpPlatform.ts +2 -0
- package/src/unstable/http/HttpRouter.ts +54 -16
- package/src/unstable/http/HttpServer.ts +35 -1
- package/src/unstable/http/HttpServerError.ts +17 -3
- package/src/unstable/http/HttpServerRequest.ts +30 -0
- package/src/unstable/http/HttpServerRespondable.ts +8 -0
- package/src/unstable/http/HttpServerResponse.ts +96 -0
- package/src/unstable/http/HttpTraceContext.ts +12 -0
- package/src/unstable/http/Multipart.ts +49 -2
- package/src/unstable/http/Template.ts +14 -0
- package/src/unstable/http/UrlParams.ts +64 -0
- package/src/unstable/httpapi/HttpApi.ts +10 -4
- package/src/unstable/httpapi/HttpApiBuilder.ts +9 -4
- package/src/unstable/httpapi/HttpApiEndpoint.ts +2 -0
- package/src/unstable/httpapi/HttpApiGroup.ts +23 -14
- package/src/unstable/httpapi/HttpApiMiddleware.ts +14 -0
- package/src/unstable/httpapi/HttpApiScalar.ts +38 -15
- package/src/unstable/httpapi/HttpApiSchema.ts +14 -3
- package/src/unstable/httpapi/HttpApiSecurity.ts +17 -11
- package/src/unstable/httpapi/HttpApiSwagger.ts +2 -4
- package/src/unstable/httpapi/HttpApiTest.ts +2 -0
- package/src/unstable/httpapi/OpenApi.ts +2 -0
- package/src/unstable/observability/Otlp.ts +2 -0
- package/src/unstable/observability/OtlpExporter.ts +2 -0
- package/src/unstable/observability/OtlpLogger.ts +4 -0
- package/src/unstable/observability/OtlpMetrics.ts +8 -9
- package/src/unstable/observability/OtlpResource.ts +8 -0
- package/src/unstable/observability/OtlpTracer.ts +3 -2
- package/src/unstable/observability/PrometheusMetrics.ts +6 -2
- package/src/unstable/persistence/KeyValueStore.ts +10 -0
- package/src/unstable/persistence/Persistable.ts +2 -0
- package/src/unstable/persistence/PersistedCache.ts +2 -0
- package/src/unstable/persistence/PersistedQueue.ts +21 -6
- package/src/unstable/persistence/Persistence.ts +14 -0
- package/src/unstable/persistence/RateLimiter.ts +6 -3
- package/src/unstable/persistence/Redis.ts +6 -0
- package/src/unstable/process/ChildProcess.ts +70 -19
- package/src/unstable/process/ChildProcessSpawner.ts +20 -4
- package/src/unstable/reactivity/Atom.ts +119 -14
- package/src/unstable/reactivity/AtomHttpApi.ts +4 -0
- package/src/unstable/reactivity/AtomRef.ts +8 -0
- package/src/unstable/reactivity/AtomRegistry.ts +34 -0
- package/src/unstable/reactivity/AtomRpc.ts +8 -6
- package/src/unstable/reactivity/Hydration.ts +6 -0
- package/src/unstable/reactivity/Reactivity.ts +27 -3
- package/src/unstable/rpc/Rpc.ts +38 -2
- package/src/unstable/rpc/RpcSerialization.ts +6 -0
- package/src/unstable/rpc/RpcServer.ts +5 -3
- package/src/unstable/schema/Model.ts +43 -12
- package/src/unstable/sql/SqlClient.ts +1 -1
- package/src/unstable/sql/SqlResolver.ts +6 -4
- package/src/unstable/sql/Statement.ts +8 -4
- package/src/unstable/workflow/DurableClock.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +3 -0
- package/src/unstable/workflow/Workflow.ts +42 -34
package/dist/SchemaGetter.d.ts
CHANGED
|
@@ -95,17 +95,18 @@ import * as Issue from "./SchemaIssue.ts";
|
|
|
95
95
|
/**
|
|
96
96
|
* A composable transformation from an encoded type `E` to a decoded type `T`.
|
|
97
97
|
*
|
|
98
|
-
*
|
|
99
|
-
* - Receives `Option.None` when the encoded key is absent (e.g. missing struct field).
|
|
100
|
-
* - Returns `Option.None` to omit the value from the decoded output.
|
|
101
|
-
* - Fails with `Issue` on invalid input.
|
|
102
|
-
* - May require Effect services via `R`.
|
|
98
|
+
* **When to use**
|
|
103
99
|
*
|
|
104
|
-
* Use this when:
|
|
105
100
|
* - Building custom schema transformations with `Schema.decodeTo` or `Schema.decode`.
|
|
106
101
|
* - Composing multiple transformation steps into a single getter.
|
|
107
102
|
*
|
|
108
|
-
*
|
|
103
|
+
* **Details**
|
|
104
|
+
*
|
|
105
|
+
* - A getter wraps a function `Option<E> -> Effect<Option<T>, Issue, R>`.
|
|
106
|
+
* - Receives `Option.None` when the encoded key is absent (e.g. missing struct field).
|
|
107
|
+
* - Returns `Option.None` to omit the value from the decoded output.
|
|
108
|
+
* - Fails with `Issue` on invalid input.
|
|
109
|
+
* - May require Effect services via `R`.
|
|
109
110
|
* - Immutable — constructing or composing getters does not mutate existing instances.
|
|
110
111
|
* - `.map(f)` applies `f` to the decoded value (inside the `Some`), leaving `None` unchanged.
|
|
111
112
|
* - `.compose(other)` chains two getters: the output of `this` feeds into `other`.
|
|
@@ -122,10 +123,9 @@ import * as Issue from "./SchemaIssue.ts";
|
|
|
122
123
|
* // composed: Getter<number, string> — parses then doubles
|
|
123
124
|
* ```
|
|
124
125
|
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* - {@link transformOrFail} — fallible transformation
|
|
126
|
+
* @see {@link transform} - create a getter from a pure function
|
|
127
|
+
* @see {@link passthrough} - identity getter
|
|
128
|
+
* @see {@link transformOrFail} - fallible transformation
|
|
129
129
|
*
|
|
130
130
|
* @category models
|
|
131
131
|
* @since 4.0.0
|
|
@@ -139,11 +139,13 @@ export declare class Getter<out T, in E, R = never> extends Pipeable.Class {
|
|
|
139
139
|
/**
|
|
140
140
|
* Creates a getter that always produces the given constant value, ignoring the input.
|
|
141
141
|
*
|
|
142
|
-
*
|
|
142
|
+
* **When to use**
|
|
143
|
+
*
|
|
143
144
|
* - A schema field should always decode to a fixed value.
|
|
144
145
|
* - You need a placeholder getter that produces a known default.
|
|
145
146
|
*
|
|
146
|
-
*
|
|
147
|
+
* **Details**
|
|
148
|
+
*
|
|
147
149
|
* - Pure, no side effects.
|
|
148
150
|
* - Always returns `Option.some(t)` regardless of whether input is `Some` or `None`.
|
|
149
151
|
*
|
|
@@ -156,9 +158,8 @@ export declare class Getter<out T, in E, R = never> extends Pipeable.Class {
|
|
|
156
158
|
* // alwaysZero: Getter<0, unknown> — always produces 0
|
|
157
159
|
* ```
|
|
158
160
|
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
* - {@link passthrough} — when you want to keep the input as-is
|
|
161
|
+
* @see {@link transform} - when you need to use the input value
|
|
162
|
+
* @see {@link passthrough} - when you want to keep the input as-is
|
|
162
163
|
*
|
|
163
164
|
* @category constructors
|
|
164
165
|
* @since 4.0.0
|
|
@@ -167,11 +168,13 @@ export declare function succeed<const T, E>(t: T): Getter<T, E>;
|
|
|
167
168
|
/**
|
|
168
169
|
* Creates a getter that always fails with the given issue.
|
|
169
170
|
*
|
|
170
|
-
*
|
|
171
|
+
* **When to use**
|
|
172
|
+
*
|
|
171
173
|
* - A transformation should unconditionally reject input.
|
|
172
174
|
* - Building custom validation getters that produce specific error types.
|
|
173
175
|
*
|
|
174
|
-
*
|
|
176
|
+
* **Details**
|
|
177
|
+
*
|
|
175
178
|
* - Always fails with the `Issue` returned by `f`.
|
|
176
179
|
* - The failure function receives the original `Option<E>` input for error context.
|
|
177
180
|
*
|
|
@@ -185,9 +188,8 @@ export declare function succeed<const T, E>(t: T): Getter<T, E>;
|
|
|
185
188
|
* )
|
|
186
189
|
* ```
|
|
187
190
|
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
* - {@link checkEffect} — fail conditionally based on input value
|
|
191
|
+
* @see {@link forbidden} - convenience for `Forbidden` issues
|
|
192
|
+
* @see {@link checkEffect} - fail conditionally based on input value
|
|
191
193
|
*
|
|
192
194
|
* @category constructors
|
|
193
195
|
* @since 4.0.0
|
|
@@ -196,11 +198,13 @@ export declare function fail<T, E>(f: (oe: Option.Option<E>) => Issue.Issue): Ge
|
|
|
196
198
|
/**
|
|
197
199
|
* Creates a getter that always fails with a `Forbidden` issue.
|
|
198
200
|
*
|
|
199
|
-
*
|
|
201
|
+
* **When to use**
|
|
202
|
+
*
|
|
200
203
|
* - A field or direction (encode/decode) should be disallowed entirely.
|
|
201
204
|
* - You want a clear "forbidden" error message in schema validation output.
|
|
202
205
|
*
|
|
203
|
-
*
|
|
206
|
+
* **Details**
|
|
207
|
+
*
|
|
204
208
|
* - Always fails with `Issue.Forbidden`.
|
|
205
209
|
* - The message function receives the `Option<E>` input for context.
|
|
206
210
|
*
|
|
@@ -214,8 +218,7 @@ export declare function fail<T, E>(f: (oe: Option.Option<E>) => Issue.Issue): Ge
|
|
|
214
218
|
* )
|
|
215
219
|
* ```
|
|
216
220
|
*
|
|
217
|
-
*
|
|
218
|
-
* - {@link fail} — fail with a custom issue type
|
|
221
|
+
* @see {@link fail} - fail with a custom issue type
|
|
219
222
|
*
|
|
220
223
|
* @category constructors
|
|
221
224
|
* @since 4.0.0
|
|
@@ -224,11 +227,13 @@ export declare function forbidden<T, E>(message: (oe: Option.Option<E>) => strin
|
|
|
224
227
|
/**
|
|
225
228
|
* Returns the identity getter — passes the value through unchanged.
|
|
226
229
|
*
|
|
227
|
-
*
|
|
230
|
+
* **When to use**
|
|
231
|
+
*
|
|
228
232
|
* - No transformation is needed between encoded and decoded types.
|
|
229
233
|
* - One side of a `decodeTo` pair (encode or decode) should be a no-op.
|
|
230
234
|
*
|
|
231
|
-
*
|
|
235
|
+
* **Details**
|
|
236
|
+
*
|
|
232
237
|
* - Pure, no allocation (singleton instance).
|
|
233
238
|
* - Optimized away during `.compose()` — composing with a passthrough is free.
|
|
234
239
|
* - The default overload requires `T === E`. Pass `{ strict: false }` to opt
|
|
@@ -248,10 +253,9 @@ export declare function forbidden<T, E>(message: (oe: Option.Option<E>) => strin
|
|
|
248
253
|
* )
|
|
249
254
|
* ```
|
|
250
255
|
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
* - {@link transform} — when you need to change the value
|
|
256
|
+
* @see {@link passthroughSupertype} - when `T extends E`
|
|
257
|
+
* @see {@link passthroughSubtype} - when `E extends T`
|
|
258
|
+
* @see {@link transform} - when you need to change the value
|
|
255
259
|
*
|
|
256
260
|
* @category constructors
|
|
257
261
|
* @since 4.0.0
|
|
@@ -263,11 +267,14 @@ export declare function passthrough<T>(): Getter<T, T>;
|
|
|
263
267
|
/**
|
|
264
268
|
* Returns the identity getter typed for the relationship `T extends E`.
|
|
265
269
|
*
|
|
270
|
+
* **When to use**
|
|
271
|
+
*
|
|
266
272
|
* Use this when no runtime conversion is needed but the getter should be typed
|
|
267
273
|
* as producing a decoded/output type that is narrower than the encoded/input
|
|
268
274
|
* type.
|
|
269
275
|
*
|
|
270
|
-
*
|
|
276
|
+
* **Details**
|
|
277
|
+
*
|
|
271
278
|
* - Same singleton as {@link passthrough} — no allocation, optimized in composition.
|
|
272
279
|
*
|
|
273
280
|
* **Example** (Supertype passthrough)
|
|
@@ -279,9 +286,8 @@ export declare function passthrough<T>(): Getter<T, T>;
|
|
|
279
286
|
* const g = SchemaGetter.passthroughSupertype<string, string>()
|
|
280
287
|
* ```
|
|
281
288
|
*
|
|
282
|
-
*
|
|
283
|
-
*
|
|
284
|
-
* - {@link passthroughSubtype} — when `E extends T`
|
|
289
|
+
* @see {@link passthrough} - when types are identical
|
|
290
|
+
* @see {@link passthroughSubtype} - when `E extends T`
|
|
285
291
|
*
|
|
286
292
|
* @category constructors
|
|
287
293
|
* @since 4.0.0
|
|
@@ -290,11 +296,13 @@ export declare function passthroughSupertype<T extends E, E>(): Getter<T, E>;
|
|
|
290
296
|
/**
|
|
291
297
|
* Returns the identity getter, typed for when the encoded type `E` is a subtype of `T`.
|
|
292
298
|
*
|
|
293
|
-
*
|
|
299
|
+
* **When to use**
|
|
300
|
+
*
|
|
294
301
|
* - The encoded type is narrower than the decoded type.
|
|
295
302
|
* - You need type-safe passthrough without `{ strict: false }`.
|
|
296
303
|
*
|
|
297
|
-
*
|
|
304
|
+
* **Details**
|
|
305
|
+
*
|
|
298
306
|
* - Same singleton as {@link passthrough} — no allocation, optimized in composition.
|
|
299
307
|
*
|
|
300
308
|
* **Example** (Subtype passthrough)
|
|
@@ -306,9 +314,8 @@ export declare function passthroughSupertype<T extends E, E>(): Getter<T, E>;
|
|
|
306
314
|
* const g = SchemaGetter.passthroughSubtype<string, "hello">()
|
|
307
315
|
* ```
|
|
308
316
|
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
* - {@link passthroughSupertype} — when `T extends E`
|
|
317
|
+
* @see {@link passthrough} - when types are identical
|
|
318
|
+
* @see {@link passthroughSupertype} - when `T extends E`
|
|
312
319
|
*
|
|
313
320
|
* @category constructors
|
|
314
321
|
* @since 4.0.0
|
|
@@ -317,11 +324,13 @@ export declare function passthroughSubtype<T, E extends T>(): Getter<T, E>;
|
|
|
317
324
|
/**
|
|
318
325
|
* Creates a getter that handles the case when the input is absent (`Option.None`).
|
|
319
326
|
*
|
|
320
|
-
*
|
|
327
|
+
* **When to use**
|
|
328
|
+
*
|
|
321
329
|
* - You need to provide a fallback or computed value for missing struct keys.
|
|
322
330
|
* - Building custom "default value" logic more complex than {@link withDefault}.
|
|
323
331
|
*
|
|
324
|
-
*
|
|
332
|
+
* **Details**
|
|
333
|
+
*
|
|
325
334
|
* - When input is `None`, calls `f` to produce the result.
|
|
326
335
|
* - When input is `Some`, passes it through unchanged.
|
|
327
336
|
* - `f` receives the parse options and may return `None` to keep the value absent.
|
|
@@ -336,10 +345,9 @@ export declare function passthroughSubtype<T, E extends T>(): Getter<T, E>;
|
|
|
336
345
|
* )
|
|
337
346
|
* ```
|
|
338
347
|
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
* - {@link onSome} — handle only present values
|
|
348
|
+
* @see {@link required} - fails if input is absent
|
|
349
|
+
* @see {@link withDefault} - simpler default value for undefined inputs
|
|
350
|
+
* @see {@link onSome} - handle only present values
|
|
343
351
|
*
|
|
344
352
|
* @category constructors
|
|
345
353
|
* @since 4.0.0
|
|
@@ -348,11 +356,13 @@ export declare function onNone<T, E extends T = T, R = never>(f: (options: AST.P
|
|
|
348
356
|
/**
|
|
349
357
|
* Creates a getter that fails with `MissingKey` if the input is absent (`Option.None`).
|
|
350
358
|
*
|
|
351
|
-
*
|
|
359
|
+
* **When to use**
|
|
360
|
+
*
|
|
352
361
|
* - A struct field must be present in the encoded input.
|
|
353
362
|
* - You want schema validation to report a missing key error.
|
|
354
363
|
*
|
|
355
|
-
*
|
|
364
|
+
* **Details**
|
|
365
|
+
*
|
|
356
366
|
* - When input is `None`, fails with `Issue.MissingKey`.
|
|
357
367
|
* - When input is `Some`, passes it through unchanged.
|
|
358
368
|
* - Optional `annotations` customize the error message for the missing key.
|
|
@@ -365,9 +375,8 @@ export declare function onNone<T, E extends T = T, R = never>(f: (options: AST.P
|
|
|
365
375
|
* const mustExist = SchemaGetter.required<string>()
|
|
366
376
|
* ```
|
|
367
377
|
*
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
* - {@link withDefault} — substitute a default for undefined values
|
|
378
|
+
* @see {@link onNone} - provide a fallback instead of failing
|
|
379
|
+
* @see {@link withDefault} - substitute a default for undefined values
|
|
371
380
|
*
|
|
372
381
|
* @category constructors
|
|
373
382
|
* @since 4.0.0
|
|
@@ -376,11 +385,13 @@ export declare function required<T, E extends T = T>(annotations?: Schema.Annota
|
|
|
376
385
|
/**
|
|
377
386
|
* Creates a getter that handles present values (`Option.Some`), passing `None` through.
|
|
378
387
|
*
|
|
379
|
-
*
|
|
388
|
+
* **When to use**
|
|
389
|
+
*
|
|
380
390
|
* - You need to transform or validate only when a value is present.
|
|
381
391
|
* - Missing keys should remain absent in the output.
|
|
382
392
|
*
|
|
383
|
-
*
|
|
393
|
+
* **Details**
|
|
394
|
+
*
|
|
384
395
|
* - When input is `None`, returns `None` (no-op).
|
|
385
396
|
* - When input is `Some(e)`, calls `f(e, options)` to produce the result.
|
|
386
397
|
* - `f` may return `None` to omit the value, or fail with an `Issue`.
|
|
@@ -395,10 +406,9 @@ export declare function required<T, E extends T = T>(annotations?: Schema.Annota
|
|
|
395
406
|
* )
|
|
396
407
|
* ```
|
|
397
408
|
*
|
|
398
|
-
*
|
|
399
|
-
*
|
|
400
|
-
*
|
|
401
|
-
* - {@link transformOrFail} — fallible transformation of present values
|
|
409
|
+
* @see {@link onNone} - handle only absent values
|
|
410
|
+
* @see {@link transform} - simpler pure transformation of present values
|
|
411
|
+
* @see {@link transformOrFail} - fallible transformation of present values
|
|
402
412
|
*
|
|
403
413
|
* @category constructors
|
|
404
414
|
* @since 4.0.0
|
|
@@ -407,11 +417,13 @@ export declare function onSome<T, E, R = never>(f: (e: E, options: AST.ParseOpti
|
|
|
407
417
|
/**
|
|
408
418
|
* Creates a getter that validates a value using an effectful check function.
|
|
409
419
|
*
|
|
410
|
-
*
|
|
420
|
+
* **When to use**
|
|
421
|
+
*
|
|
411
422
|
* - You need to validate a decoded value (e.g. check a constraint or call an external service).
|
|
412
423
|
* - The validation may be asynchronous or require Effect services.
|
|
413
424
|
*
|
|
414
|
-
*
|
|
425
|
+
* **Details**
|
|
426
|
+
*
|
|
415
427
|
* - Only runs when input is `Some` — `None` passes through.
|
|
416
428
|
* - The check function returns a validation result:
|
|
417
429
|
* - `undefined` or `true` — value is valid, passes through.
|
|
@@ -431,9 +443,8 @@ export declare function onSome<T, E, R = never>(f: (e: E, options: AST.ParseOpti
|
|
|
431
443
|
* )
|
|
432
444
|
* ```
|
|
433
445
|
*
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
* - {@link fail} — unconditional failure
|
|
446
|
+
* @see {@link transform} - when you need to change the value, not just validate
|
|
447
|
+
* @see {@link fail} - unconditional failure
|
|
437
448
|
*
|
|
438
449
|
* @category constructors
|
|
439
450
|
* @since 4.0.0
|
|
@@ -442,14 +453,15 @@ export declare function checkEffect<T, R = never>(f: (input: T, options: AST.Par
|
|
|
442
453
|
/**
|
|
443
454
|
* Creates a getter that applies a pure function to present values.
|
|
444
455
|
*
|
|
445
|
-
*
|
|
446
|
-
* `Some(f(e))` and leaves `None` unchanged.
|
|
456
|
+
* **When to use**
|
|
447
457
|
*
|
|
448
|
-
* Use this when:
|
|
449
458
|
* - You have a pure, infallible transformation between types.
|
|
450
459
|
* - Building encode/decode pairs for `Schema.decodeTo`.
|
|
451
460
|
*
|
|
452
|
-
*
|
|
461
|
+
* **Details**
|
|
462
|
+
*
|
|
463
|
+
* - This is the most commonly used constructor.
|
|
464
|
+
* - Transforms `Some(e)` to `Some(f(e))` and leaves `None` unchanged.
|
|
453
465
|
* - Pure, does not mutate input.
|
|
454
466
|
* - Skips `None` inputs — only called when a value is present.
|
|
455
467
|
* - Never fails.
|
|
@@ -467,10 +479,9 @@ export declare function checkEffect<T, R = never>(f: (input: T, options: AST.Par
|
|
|
467
479
|
* )
|
|
468
480
|
* ```
|
|
469
481
|
*
|
|
470
|
-
*
|
|
471
|
-
*
|
|
472
|
-
*
|
|
473
|
-
* - {@link passthrough} — when no transformation is needed
|
|
482
|
+
* @see {@link transformOrFail} - when the transformation can fail
|
|
483
|
+
* @see {@link transformOptional} - when you need to handle `None` inputs
|
|
484
|
+
* @see {@link passthrough} - when no transformation is needed
|
|
474
485
|
*
|
|
475
486
|
* @category constructors
|
|
476
487
|
* @since 4.0.0
|
|
@@ -479,11 +490,13 @@ export declare function transform<T, E>(f: (e: E) => T): Getter<T, E>;
|
|
|
479
490
|
/**
|
|
480
491
|
* Creates a getter that applies a fallible, effectful transformation to present values.
|
|
481
492
|
*
|
|
482
|
-
*
|
|
493
|
+
* **When to use**
|
|
494
|
+
*
|
|
483
495
|
* - The transformation may fail (e.g. parsing, validation).
|
|
484
496
|
* - The transformation needs Effect services or is async.
|
|
485
497
|
*
|
|
486
|
-
*
|
|
498
|
+
* **Details**
|
|
499
|
+
*
|
|
487
500
|
* - Skips `None` inputs — only called when a value is present.
|
|
488
501
|
* - On success, wraps the result in `Some`.
|
|
489
502
|
* - On failure, propagates the `Issue`.
|
|
@@ -503,9 +516,8 @@ export declare function transform<T, E>(f: (e: E) => T): Getter<T, E>;
|
|
|
503
516
|
* )
|
|
504
517
|
* ```
|
|
505
518
|
*
|
|
506
|
-
*
|
|
507
|
-
*
|
|
508
|
-
* - {@link onSome} — when you need full `Option` control over the output
|
|
519
|
+
* @see {@link transform} - when transformation cannot fail
|
|
520
|
+
* @see {@link onSome} - when you need full `Option` control over the output
|
|
509
521
|
*
|
|
510
522
|
* @category constructors
|
|
511
523
|
* @since 4.0.0
|
|
@@ -514,11 +526,13 @@ export declare function transformOrFail<T, E, R = never>(f: (e: E, options: AST.
|
|
|
514
526
|
/**
|
|
515
527
|
* Creates a getter that transforms the full `Option` — both present and absent values.
|
|
516
528
|
*
|
|
517
|
-
*
|
|
529
|
+
* **When to use**
|
|
530
|
+
*
|
|
518
531
|
* - You need to handle both `Some` and `None` cases.
|
|
519
532
|
* - You want to turn a present value into absent, or vice versa.
|
|
520
533
|
*
|
|
521
|
-
*
|
|
534
|
+
* **Details**
|
|
535
|
+
*
|
|
522
536
|
* - Pure, never fails.
|
|
523
537
|
* - Receives the full `Option<E>` and must return `Option<T>`.
|
|
524
538
|
*
|
|
@@ -532,9 +546,8 @@ export declare function transformOrFail<T, E, R = never>(f: (e: E, options: AST.
|
|
|
532
546
|
* )
|
|
533
547
|
* ```
|
|
534
548
|
*
|
|
535
|
-
*
|
|
536
|
-
*
|
|
537
|
-
* - {@link omit} — always returns `None`
|
|
549
|
+
* @see {@link transform} - simpler, only handles present values
|
|
550
|
+
* @see {@link omit} - always returns `None`
|
|
538
551
|
*
|
|
539
552
|
* @category constructors
|
|
540
553
|
* @since 4.0.0
|
|
@@ -543,10 +556,12 @@ export declare function transformOptional<T, E>(f: (oe: Option.Option<E>) => Opt
|
|
|
543
556
|
/**
|
|
544
557
|
* Creates a getter that always returns `None`, effectively omitting the value from output.
|
|
545
558
|
*
|
|
546
|
-
*
|
|
559
|
+
* **When to use**
|
|
560
|
+
*
|
|
547
561
|
* - A field should be excluded during decoding or encoding.
|
|
548
562
|
*
|
|
549
|
-
*
|
|
563
|
+
* **Details**
|
|
564
|
+
*
|
|
550
565
|
* - Always returns `Option.None` regardless of input.
|
|
551
566
|
* - Never fails.
|
|
552
567
|
*
|
|
@@ -558,9 +573,8 @@ export declare function transformOptional<T, E>(f: (oe: Option.Option<E>) => Opt
|
|
|
558
573
|
* const omitField = SchemaGetter.omit<string>()
|
|
559
574
|
* ```
|
|
560
575
|
*
|
|
561
|
-
*
|
|
562
|
-
*
|
|
563
|
-
* - {@link forbidden} — when you want to fail instead of silently omit
|
|
576
|
+
* @see {@link transformOptional} - when you want conditional omission
|
|
577
|
+
* @see {@link forbidden} - when you want to fail instead of silently omit
|
|
564
578
|
*
|
|
565
579
|
* @category constructors
|
|
566
580
|
* @since 4.0.0
|
|
@@ -569,10 +583,12 @@ export declare function omit<T>(): Getter<never, T>;
|
|
|
569
583
|
/**
|
|
570
584
|
* Creates a getter that replaces `undefined` values with a default.
|
|
571
585
|
*
|
|
572
|
-
*
|
|
586
|
+
* **When to use**
|
|
587
|
+
*
|
|
573
588
|
* - A field may be `undefined` in the encoded input and should have a fallback.
|
|
574
589
|
*
|
|
575
|
-
*
|
|
590
|
+
* **Details**
|
|
591
|
+
*
|
|
576
592
|
* - If the input is `Some(undefined)` or `None`, produces `Some(T)`.
|
|
577
593
|
* - If the input is `Some(value)` where value is not `undefined`, passes it through.
|
|
578
594
|
* - `defaultValue` is an `Effect` that will be executed each time a default is needed.
|
|
@@ -586,9 +602,8 @@ export declare function omit<T>(): Getter<never, T>;
|
|
|
586
602
|
* // Getter<number, number | undefined>
|
|
587
603
|
* ```
|
|
588
604
|
*
|
|
589
|
-
*
|
|
590
|
-
*
|
|
591
|
-
* - {@link required} — fail instead of providing a default
|
|
605
|
+
* @see {@link onNone} - handle only absent keys (not `undefined` values)
|
|
606
|
+
* @see {@link required} - fail instead of providing a default
|
|
592
607
|
*
|
|
593
608
|
* @category constructors
|
|
594
609
|
* @since 4.0.0
|
|
@@ -597,10 +612,12 @@ export declare function withDefault<T, R = never>(defaultValue: Effect.Effect<T,
|
|
|
597
612
|
/**
|
|
598
613
|
* Coerces any value to a `string` using the global `String()` constructor.
|
|
599
614
|
*
|
|
600
|
-
*
|
|
615
|
+
* **When to use**
|
|
616
|
+
*
|
|
601
617
|
* - You need a string representation of an arbitrary encoded value.
|
|
602
618
|
*
|
|
603
|
-
*
|
|
619
|
+
* **Details**
|
|
620
|
+
*
|
|
604
621
|
* - Pure, never fails.
|
|
605
622
|
* - Delegates to `globalThis.String`.
|
|
606
623
|
*
|
|
@@ -613,8 +630,7 @@ export declare function withDefault<T, R = never>(defaultValue: Effect.Effect<T,
|
|
|
613
630
|
* // Getter<string, number>
|
|
614
631
|
* ```
|
|
615
632
|
*
|
|
616
|
-
*
|
|
617
|
-
* - {@link transform} — for custom string conversions
|
|
633
|
+
* @see {@link transform} - for custom string conversions
|
|
618
634
|
*
|
|
619
635
|
* @category Coercions
|
|
620
636
|
* @since 4.0.0
|
|
@@ -623,10 +639,12 @@ export declare function String<E>(): Getter<string, E>;
|
|
|
623
639
|
/**
|
|
624
640
|
* Coerces any value to a `number` using the global `Number()` constructor.
|
|
625
641
|
*
|
|
626
|
-
*
|
|
642
|
+
* **When to use**
|
|
643
|
+
*
|
|
627
644
|
* - You need numeric coercion of an encoded value.
|
|
628
645
|
*
|
|
629
|
-
*
|
|
646
|
+
* **Details**
|
|
647
|
+
*
|
|
630
648
|
* - Pure, never fails (may produce `NaN` for non-numeric inputs).
|
|
631
649
|
* - Delegates to `globalThis.Number`.
|
|
632
650
|
*
|
|
@@ -639,8 +657,7 @@ export declare function String<E>(): Getter<string, E>;
|
|
|
639
657
|
* // Getter<number, string>
|
|
640
658
|
* ```
|
|
641
659
|
*
|
|
642
|
-
*
|
|
643
|
-
* - {@link transformOrFail} — for validated number parsing
|
|
660
|
+
* @see {@link transformOrFail} - for validated number parsing
|
|
644
661
|
*
|
|
645
662
|
* @category Coercions
|
|
646
663
|
* @since 4.0.0
|
|
@@ -649,10 +666,12 @@ export declare function Number<E>(): Getter<number, E>;
|
|
|
649
666
|
/**
|
|
650
667
|
* Coerces any value to a `boolean` using the global `Boolean()` constructor.
|
|
651
668
|
*
|
|
652
|
-
*
|
|
669
|
+
* **When to use**
|
|
670
|
+
*
|
|
653
671
|
* - You need boolean coercion (truthiness check) of an encoded value.
|
|
654
672
|
*
|
|
655
|
-
*
|
|
673
|
+
* **Details**
|
|
674
|
+
*
|
|
656
675
|
* - Pure, never fails.
|
|
657
676
|
* - Delegates to `globalThis.Boolean`.
|
|
658
677
|
*
|
|
@@ -672,10 +691,12 @@ export declare function Boolean<E>(): Getter<boolean, E>;
|
|
|
672
691
|
/**
|
|
673
692
|
* Coerces a value to `bigint` using the global `BigInt()` constructor.
|
|
674
693
|
*
|
|
675
|
-
*
|
|
694
|
+
* **When to use**
|
|
695
|
+
*
|
|
676
696
|
* - You need to convert strings, numbers, or booleans to `bigint`.
|
|
677
697
|
*
|
|
678
|
-
*
|
|
698
|
+
* **Details**
|
|
699
|
+
*
|
|
679
700
|
* - Delegates to `globalThis.BigInt`.
|
|
680
701
|
* - Throws at runtime if the input cannot be converted (e.g. non-numeric string).
|
|
681
702
|
*
|
|
@@ -695,10 +716,12 @@ export declare function BigInt<E extends string | number | bigint | boolean>():
|
|
|
695
716
|
/**
|
|
696
717
|
* Coerces a value to a `Date` using `new Date(input)`.
|
|
697
718
|
*
|
|
698
|
-
*
|
|
719
|
+
* **When to use**
|
|
720
|
+
*
|
|
699
721
|
* - You need to parse a string, number, or Date into a `Date` object.
|
|
700
722
|
*
|
|
701
|
-
*
|
|
723
|
+
* **Details**
|
|
724
|
+
*
|
|
702
725
|
* - Delegates to `new globalThis.Date(input)`.
|
|
703
726
|
* - Does not validate the result — may produce an invalid Date.
|
|
704
727
|
*
|
|
@@ -711,8 +734,7 @@ export declare function BigInt<E extends string | number | bigint | boolean>():
|
|
|
711
734
|
* // Getter<Date, string>
|
|
712
735
|
* ```
|
|
713
736
|
*
|
|
714
|
-
*
|
|
715
|
-
* - {@link dateTimeUtcFromInput} — validated DateTime parsing
|
|
737
|
+
* @see {@link dateTimeUtcFromInput} - validated DateTime parsing
|
|
716
738
|
*
|
|
717
739
|
* @category Coercions
|
|
718
740
|
* @since 4.0.0
|
|
@@ -721,7 +743,8 @@ export declare function Date<E extends string | number | Date>(): Getter<Date, E
|
|
|
721
743
|
/**
|
|
722
744
|
* Trims whitespace from both ends of a string.
|
|
723
745
|
*
|
|
724
|
-
*
|
|
746
|
+
* **Details**
|
|
747
|
+
*
|
|
725
748
|
* - Pure, delegates to `String.trim`.
|
|
726
749
|
*
|
|
727
750
|
* **Example** (Trim whitespace)
|
|
@@ -739,7 +762,8 @@ export declare function trim<E extends string>(): Getter<string, E>;
|
|
|
739
762
|
/**
|
|
740
763
|
* Capitalizes the first character of a string.
|
|
741
764
|
*
|
|
742
|
-
*
|
|
765
|
+
* **Details**
|
|
766
|
+
*
|
|
743
767
|
* - Pure, delegates to `String.capitalize`.
|
|
744
768
|
*
|
|
745
769
|
* **Example** (Capitalize string)
|
|
@@ -757,7 +781,8 @@ export declare function capitalize<E extends string>(): Getter<string, E>;
|
|
|
757
781
|
/**
|
|
758
782
|
* Lowercases the first character of a string.
|
|
759
783
|
*
|
|
760
|
-
*
|
|
784
|
+
* **Details**
|
|
785
|
+
*
|
|
761
786
|
* - Pure, delegates to `String.uncapitalize`.
|
|
762
787
|
*
|
|
763
788
|
* **Example** (Uncapitalize string)
|
|
@@ -775,7 +800,8 @@ export declare function uncapitalize<E extends string>(): Getter<string, E>;
|
|
|
775
800
|
/**
|
|
776
801
|
* Converts a `snake_case` string to `camelCase`.
|
|
777
802
|
*
|
|
778
|
-
*
|
|
803
|
+
* **Details**
|
|
804
|
+
*
|
|
779
805
|
* - Pure, delegates to `String.snakeToCamel`.
|
|
780
806
|
*
|
|
781
807
|
* **Example** (Snake to camel)
|
|
@@ -786,8 +812,7 @@ export declare function uncapitalize<E extends string>(): Getter<string, E>;
|
|
|
786
812
|
* const toCamel = SchemaGetter.snakeToCamel<string>()
|
|
787
813
|
* ```
|
|
788
814
|
*
|
|
789
|
-
*
|
|
790
|
-
* - {@link camelToSnake} — inverse operation
|
|
815
|
+
* @see {@link camelToSnake} - inverse operation
|
|
791
816
|
*
|
|
792
817
|
* @category string
|
|
793
818
|
* @since 4.0.0
|
|
@@ -796,7 +821,8 @@ export declare function snakeToCamel<E extends string>(): Getter<string, E>;
|
|
|
796
821
|
/**
|
|
797
822
|
* Converts a `camelCase` string to `snake_case`.
|
|
798
823
|
*
|
|
799
|
-
*
|
|
824
|
+
* **Details**
|
|
825
|
+
*
|
|
800
826
|
* - Pure, delegates to `String.camelToSnake`.
|
|
801
827
|
*
|
|
802
828
|
* **Example** (Camel to snake)
|
|
@@ -807,8 +833,7 @@ export declare function snakeToCamel<E extends string>(): Getter<string, E>;
|
|
|
807
833
|
* const toSnake = SchemaGetter.camelToSnake<string>()
|
|
808
834
|
* ```
|
|
809
835
|
*
|
|
810
|
-
*
|
|
811
|
-
* - {@link snakeToCamel} — inverse operation
|
|
836
|
+
* @see {@link snakeToCamel} - inverse operation
|
|
812
837
|
*
|
|
813
838
|
* @category string
|
|
814
839
|
* @since 4.0.0
|
|
@@ -817,7 +842,8 @@ export declare function camelToSnake<E extends string>(): Getter<string, E>;
|
|
|
817
842
|
/**
|
|
818
843
|
* Converts a string to lowercase.
|
|
819
844
|
*
|
|
820
|
-
*
|
|
845
|
+
* **Details**
|
|
846
|
+
*
|
|
821
847
|
* - Pure, delegates to `String.toLowerCase`.
|
|
822
848
|
*
|
|
823
849
|
* **Example** (To lowercase)
|
|
@@ -828,8 +854,7 @@ export declare function camelToSnake<E extends string>(): Getter<string, E>;
|
|
|
828
854
|
* const lower = SchemaGetter.toLowerCase<string>()
|
|
829
855
|
* ```
|
|
830
856
|
*
|
|
831
|
-
*
|
|
832
|
-
* - {@link toUpperCase} — inverse operation
|
|
857
|
+
* @see {@link toUpperCase} - inverse operation
|
|
833
858
|
*
|
|
834
859
|
* @category string
|
|
835
860
|
* @since 4.0.0
|
|
@@ -838,7 +863,8 @@ export declare function toLowerCase<E extends string>(): Getter<string, E>;
|
|
|
838
863
|
/**
|
|
839
864
|
* Converts a string to uppercase.
|
|
840
865
|
*
|
|
841
|
-
*
|
|
866
|
+
* **Details**
|
|
867
|
+
*
|
|
842
868
|
* - Pure, delegates to `String.toUpperCase`.
|
|
843
869
|
*
|
|
844
870
|
* **Example** (To uppercase)
|
|
@@ -849,8 +875,7 @@ export declare function toLowerCase<E extends string>(): Getter<string, E>;
|
|
|
849
875
|
* const upper = SchemaGetter.toUpperCase<string>()
|
|
850
876
|
* ```
|
|
851
877
|
*
|
|
852
|
-
*
|
|
853
|
-
* - {@link toLowerCase} — inverse operation
|
|
878
|
+
* @see {@link toLowerCase} - inverse operation
|
|
854
879
|
*
|
|
855
880
|
* @category string
|
|
856
881
|
* @since 4.0.0
|
|
@@ -862,10 +887,12 @@ type ParseJsonOptions = {
|
|
|
862
887
|
/**
|
|
863
888
|
* Parses a JSON string into a value.
|
|
864
889
|
*
|
|
865
|
-
*
|
|
890
|
+
* **When to use**
|
|
891
|
+
*
|
|
866
892
|
* - An encoded value is a JSON string that needs to be parsed during decoding.
|
|
867
893
|
*
|
|
868
|
-
*
|
|
894
|
+
* **Details**
|
|
895
|
+
*
|
|
869
896
|
* - Skips `None` inputs.
|
|
870
897
|
* - Without `reviver`: returns `Schema.MutableJson` (typed JSON).
|
|
871
898
|
* - With `reviver`: returns `unknown` (reviver may produce arbitrary values).
|
|
@@ -880,8 +907,7 @@ type ParseJsonOptions = {
|
|
|
880
907
|
* // Getter<MutableJson, string>
|
|
881
908
|
* ```
|
|
882
909
|
*
|
|
883
|
-
*
|
|
884
|
-
* - {@link stringifyJson} — inverse operation
|
|
910
|
+
* @see {@link stringifyJson} - inverse operation
|
|
885
911
|
*
|
|
886
912
|
* @category Json
|
|
887
913
|
* @since 4.0.0
|
|
@@ -895,10 +921,12 @@ type StringifyJsonOptions = {
|
|
|
895
921
|
/**
|
|
896
922
|
* Stringifies a present value using `JSON.stringify`.
|
|
897
923
|
*
|
|
898
|
-
*
|
|
924
|
+
* **When to use**
|
|
925
|
+
*
|
|
899
926
|
* - A decoded value needs to be serialized to JSON text during encoding.
|
|
900
927
|
*
|
|
901
|
-
*
|
|
928
|
+
* **Details**
|
|
929
|
+
*
|
|
902
930
|
* - Skips `None` inputs.
|
|
903
931
|
* - On thrown stringify failures, such as circular references, fails with
|
|
904
932
|
* `Issue.InvalidValue`.
|
|
@@ -917,8 +945,7 @@ type StringifyJsonOptions = {
|
|
|
917
945
|
* // Getter<string, unknown>
|
|
918
946
|
* ```
|
|
919
947
|
*
|
|
920
|
-
*
|
|
921
|
-
* - {@link parseJson} — inverse operation
|
|
948
|
+
* @see {@link parseJson} - inverse operation
|
|
922
949
|
*
|
|
923
950
|
* @category Json
|
|
924
951
|
* @since 4.0.0
|
|
@@ -927,10 +954,12 @@ export declare function stringifyJson(options?: StringifyJsonOptions): Getter<st
|
|
|
927
954
|
/**
|
|
928
955
|
* Parses a string into a record of key-value pairs.
|
|
929
956
|
*
|
|
930
|
-
*
|
|
957
|
+
* **When to use**
|
|
958
|
+
*
|
|
931
959
|
* - An encoded string contains delimited key-value pairs (e.g. `"a=1,b=2"`).
|
|
932
960
|
*
|
|
933
|
-
*
|
|
961
|
+
* **Details**
|
|
962
|
+
*
|
|
934
963
|
* - Splits the string by `separator` (default `,`), then each pair by `keyValueSeparator` (default `=`).
|
|
935
964
|
* - Pairs missing a key or value are silently skipped.
|
|
936
965
|
* - Pure, never fails.
|
|
@@ -944,9 +973,8 @@ export declare function stringifyJson(options?: StringifyJsonOptions): Getter<st
|
|
|
944
973
|
* // "a=1,b=2" -> { a: "1", b: "2" }
|
|
945
974
|
* ```
|
|
946
975
|
*
|
|
947
|
-
*
|
|
948
|
-
*
|
|
949
|
-
* - {@link split} — split into an array of strings
|
|
976
|
+
* @see {@link joinKeyValue} - inverse operation
|
|
977
|
+
* @see {@link split} - split into an array of strings
|
|
950
978
|
*
|
|
951
979
|
* @category string
|
|
952
980
|
* @since 4.0.0
|
|
@@ -958,10 +986,12 @@ export declare function splitKeyValue<E extends string>(options?: {
|
|
|
958
986
|
/**
|
|
959
987
|
* Joins a record of key-value pairs into a delimited string.
|
|
960
988
|
*
|
|
961
|
-
*
|
|
989
|
+
* **When to use**
|
|
990
|
+
*
|
|
962
991
|
* - A decoded record needs to be serialized as a delimited key-value string.
|
|
963
992
|
*
|
|
964
|
-
*
|
|
993
|
+
* **Details**
|
|
994
|
+
*
|
|
965
995
|
* - Joins entries with `separator` (default `,`) and key/value with `keyValueSeparator` (default `=`).
|
|
966
996
|
* - Pure, never fails.
|
|
967
997
|
*
|
|
@@ -974,8 +1004,7 @@ export declare function splitKeyValue<E extends string>(options?: {
|
|
|
974
1004
|
* // { a: "1", b: "2" } -> "a=1,b=2"
|
|
975
1005
|
* ```
|
|
976
1006
|
*
|
|
977
|
-
*
|
|
978
|
-
* - {@link splitKeyValue} — inverse operation
|
|
1007
|
+
* @see {@link splitKeyValue} - inverse operation
|
|
979
1008
|
*
|
|
980
1009
|
* @category string
|
|
981
1010
|
* @since 4.0.0
|
|
@@ -987,10 +1016,12 @@ export declare function joinKeyValue<E extends Record<PropertyKey, string>>(opti
|
|
|
987
1016
|
/**
|
|
988
1017
|
* Splits a string into an array of strings by a separator.
|
|
989
1018
|
*
|
|
990
|
-
*
|
|
1019
|
+
* **When to use**
|
|
1020
|
+
*
|
|
991
1021
|
* - An encoded string is a delimited list (e.g. CSV values).
|
|
992
1022
|
*
|
|
993
|
-
*
|
|
1023
|
+
* **Details**
|
|
1024
|
+
*
|
|
994
1025
|
* - Splits by `separator` (default `,`).
|
|
995
1026
|
* - An empty string produces an empty array (not `[""]`).
|
|
996
1027
|
* - Pure, never fails.
|
|
@@ -1005,8 +1036,7 @@ export declare function joinKeyValue<E extends Record<PropertyKey, string>>(opti
|
|
|
1005
1036
|
* // "" -> []
|
|
1006
1037
|
* ```
|
|
1007
1038
|
*
|
|
1008
|
-
*
|
|
1009
|
-
* - {@link splitKeyValue} — when values are key-value pairs
|
|
1039
|
+
* @see {@link splitKeyValue} - when values are key-value pairs
|
|
1010
1040
|
*
|
|
1011
1041
|
* @category string
|
|
1012
1042
|
* @since 4.0.0
|
|
@@ -1017,7 +1047,8 @@ export declare function split<E extends string>(options?: {
|
|
|
1017
1047
|
/**
|
|
1018
1048
|
* Encodes a `Uint8Array` or string to a Base64 string.
|
|
1019
1049
|
*
|
|
1020
|
-
*
|
|
1050
|
+
* **Details**
|
|
1051
|
+
*
|
|
1021
1052
|
* - Pure, never fails.
|
|
1022
1053
|
*
|
|
1023
1054
|
* **Example** (Encode to Base64)
|
|
@@ -1028,10 +1059,9 @@ export declare function split<E extends string>(options?: {
|
|
|
1028
1059
|
* const encode = SchemaGetter.encodeBase64<Uint8Array>()
|
|
1029
1060
|
* ```
|
|
1030
1061
|
*
|
|
1031
|
-
*
|
|
1032
|
-
*
|
|
1033
|
-
*
|
|
1034
|
-
* - {@link encodeBase64Url} — URL-safe variant
|
|
1062
|
+
* @see {@link decodeBase64} - inverse (to `Uint8Array`)
|
|
1063
|
+
* @see {@link decodeBase64String} - inverse (to `string`)
|
|
1064
|
+
* @see {@link encodeBase64Url} - URL-safe variant
|
|
1035
1065
|
*
|
|
1036
1066
|
* @category Base64
|
|
1037
1067
|
* @since 4.0.0
|
|
@@ -1040,7 +1070,8 @@ export declare function encodeBase64<E extends Uint8Array | string>(): Getter<st
|
|
|
1040
1070
|
/**
|
|
1041
1071
|
* Encodes a `Uint8Array` or string to a URL-safe Base64 string.
|
|
1042
1072
|
*
|
|
1043
|
-
*
|
|
1073
|
+
* **Details**
|
|
1074
|
+
*
|
|
1044
1075
|
* - Pure, never fails.
|
|
1045
1076
|
*
|
|
1046
1077
|
* **Example** (Encode to Base64Url)
|
|
@@ -1051,10 +1082,9 @@ export declare function encodeBase64<E extends Uint8Array | string>(): Getter<st
|
|
|
1051
1082
|
* const encode = SchemaGetter.encodeBase64Url<Uint8Array>()
|
|
1052
1083
|
* ```
|
|
1053
1084
|
*
|
|
1054
|
-
*
|
|
1055
|
-
*
|
|
1056
|
-
*
|
|
1057
|
-
* - {@link encodeBase64} — standard Base64 variant
|
|
1085
|
+
* @see {@link decodeBase64Url} - inverse (to `Uint8Array`)
|
|
1086
|
+
* @see {@link decodeBase64UrlString} - inverse (to `string`)
|
|
1087
|
+
* @see {@link encodeBase64} - standard Base64 variant
|
|
1058
1088
|
*
|
|
1059
1089
|
* @category Base64
|
|
1060
1090
|
* @since 4.0.0
|
|
@@ -1063,7 +1093,8 @@ export declare function encodeBase64Url<E extends Uint8Array | string>(): Getter
|
|
|
1063
1093
|
/**
|
|
1064
1094
|
* Encodes a `Uint8Array` or string to a hexadecimal string.
|
|
1065
1095
|
*
|
|
1066
|
-
*
|
|
1096
|
+
* **Details**
|
|
1097
|
+
*
|
|
1067
1098
|
* - Pure, never fails.
|
|
1068
1099
|
*
|
|
1069
1100
|
* **Example** (Encode to hex)
|
|
@@ -1074,9 +1105,8 @@ export declare function encodeBase64Url<E extends Uint8Array | string>(): Getter
|
|
|
1074
1105
|
* const encode = SchemaGetter.encodeHex<Uint8Array>()
|
|
1075
1106
|
* ```
|
|
1076
1107
|
*
|
|
1077
|
-
*
|
|
1078
|
-
*
|
|
1079
|
-
* - {@link decodeHexString} — inverse (to `string`)
|
|
1108
|
+
* @see {@link decodeHex} - inverse (to `Uint8Array`)
|
|
1109
|
+
* @see {@link decodeHexString} - inverse (to `string`)
|
|
1080
1110
|
*
|
|
1081
1111
|
* @category Hex
|
|
1082
1112
|
* @since 4.0.0
|
|
@@ -1085,7 +1115,8 @@ export declare function encodeHex<E extends Uint8Array | string>(): Getter<strin
|
|
|
1085
1115
|
/**
|
|
1086
1116
|
* Decodes a Base64 string to a `Uint8Array`.
|
|
1087
1117
|
*
|
|
1088
|
-
*
|
|
1118
|
+
* **Details**
|
|
1119
|
+
*
|
|
1089
1120
|
* - Fails with `Issue.InvalidValue` if the input is not valid Base64.
|
|
1090
1121
|
*
|
|
1091
1122
|
* **Example** (Decode Base64 to bytes)
|
|
@@ -1097,9 +1128,8 @@ export declare function encodeHex<E extends Uint8Array | string>(): Getter<strin
|
|
|
1097
1128
|
* // Getter<Uint8Array, string>
|
|
1098
1129
|
* ```
|
|
1099
1130
|
*
|
|
1100
|
-
*
|
|
1101
|
-
*
|
|
1102
|
-
* - {@link encodeBase64} — inverse operation
|
|
1131
|
+
* @see {@link decodeBase64String} - decode to `string` instead
|
|
1132
|
+
* @see {@link encodeBase64} - inverse operation
|
|
1103
1133
|
*
|
|
1104
1134
|
* @category Base64
|
|
1105
1135
|
* @since 4.0.0
|
|
@@ -1108,7 +1138,8 @@ export declare function decodeBase64<E extends string>(): Getter<Uint8Array, E>;
|
|
|
1108
1138
|
/**
|
|
1109
1139
|
* Decodes a Base64 string to a UTF-8 `string`.
|
|
1110
1140
|
*
|
|
1111
|
-
*
|
|
1141
|
+
* **Details**
|
|
1142
|
+
*
|
|
1112
1143
|
* - Fails with `Issue.InvalidValue` if the input is not valid Base64.
|
|
1113
1144
|
*
|
|
1114
1145
|
* **Example** (Decode Base64 to string)
|
|
@@ -1120,9 +1151,8 @@ export declare function decodeBase64<E extends string>(): Getter<Uint8Array, E>;
|
|
|
1120
1151
|
* // Getter<string, string>
|
|
1121
1152
|
* ```
|
|
1122
1153
|
*
|
|
1123
|
-
*
|
|
1124
|
-
*
|
|
1125
|
-
* - {@link encodeBase64} — inverse operation
|
|
1154
|
+
* @see {@link decodeBase64} - decode to `Uint8Array` instead
|
|
1155
|
+
* @see {@link encodeBase64} - inverse operation
|
|
1126
1156
|
*
|
|
1127
1157
|
* @category Base64
|
|
1128
1158
|
* @since 4.0.0
|
|
@@ -1131,7 +1161,8 @@ export declare function decodeBase64String<E extends string>(): Getter<string, E
|
|
|
1131
1161
|
/**
|
|
1132
1162
|
* Decodes a URL-safe Base64 string to a `Uint8Array`.
|
|
1133
1163
|
*
|
|
1134
|
-
*
|
|
1164
|
+
* **Details**
|
|
1165
|
+
*
|
|
1135
1166
|
* - Fails with `Issue.InvalidValue` if the input is not valid Base64Url.
|
|
1136
1167
|
*
|
|
1137
1168
|
* **Example** (Decode Base64Url to bytes)
|
|
@@ -1143,9 +1174,8 @@ export declare function decodeBase64String<E extends string>(): Getter<string, E
|
|
|
1143
1174
|
* // Getter<Uint8Array, string>
|
|
1144
1175
|
* ```
|
|
1145
1176
|
*
|
|
1146
|
-
*
|
|
1147
|
-
*
|
|
1148
|
-
* - {@link encodeBase64Url} — inverse operation
|
|
1177
|
+
* @see {@link decodeBase64UrlString} - decode to `string` instead
|
|
1178
|
+
* @see {@link encodeBase64Url} - inverse operation
|
|
1149
1179
|
*
|
|
1150
1180
|
* @category Base64
|
|
1151
1181
|
* @since 4.0.0
|
|
@@ -1154,7 +1184,8 @@ export declare function decodeBase64Url<E extends string>(): Getter<Uint8Array,
|
|
|
1154
1184
|
/**
|
|
1155
1185
|
* Decodes a URL-safe Base64 string to a UTF-8 `string`.
|
|
1156
1186
|
*
|
|
1157
|
-
*
|
|
1187
|
+
* **Details**
|
|
1188
|
+
*
|
|
1158
1189
|
* - Fails with `Issue.InvalidValue` if the input is not valid Base64Url.
|
|
1159
1190
|
*
|
|
1160
1191
|
* **Example** (Decode Base64Url to string)
|
|
@@ -1166,9 +1197,8 @@ export declare function decodeBase64Url<E extends string>(): Getter<Uint8Array,
|
|
|
1166
1197
|
* // Getter<string, string>
|
|
1167
1198
|
* ```
|
|
1168
1199
|
*
|
|
1169
|
-
*
|
|
1170
|
-
*
|
|
1171
|
-
* - {@link encodeBase64Url} — inverse operation
|
|
1200
|
+
* @see {@link decodeBase64Url} - decode to `Uint8Array` instead
|
|
1201
|
+
* @see {@link encodeBase64Url} - inverse operation
|
|
1172
1202
|
*
|
|
1173
1203
|
* @category Base64
|
|
1174
1204
|
* @since 4.0.0
|
|
@@ -1177,7 +1207,8 @@ export declare function decodeBase64UrlString<E extends string>(): Getter<string
|
|
|
1177
1207
|
/**
|
|
1178
1208
|
* Decodes a hexadecimal string to a `Uint8Array`.
|
|
1179
1209
|
*
|
|
1180
|
-
*
|
|
1210
|
+
* **Details**
|
|
1211
|
+
*
|
|
1181
1212
|
* - Fails with `Issue.InvalidValue` if the input is not valid hex.
|
|
1182
1213
|
*
|
|
1183
1214
|
* **Example** (Decode hex to bytes)
|
|
@@ -1189,9 +1220,8 @@ export declare function decodeBase64UrlString<E extends string>(): Getter<string
|
|
|
1189
1220
|
* // Getter<Uint8Array, string>
|
|
1190
1221
|
* ```
|
|
1191
1222
|
*
|
|
1192
|
-
*
|
|
1193
|
-
*
|
|
1194
|
-
* - {@link encodeHex} — inverse operation
|
|
1223
|
+
* @see {@link decodeHexString} - decode to `string` instead
|
|
1224
|
+
* @see {@link encodeHex} - inverse operation
|
|
1195
1225
|
*
|
|
1196
1226
|
* @category Hex
|
|
1197
1227
|
* @since 4.0.0
|
|
@@ -1200,7 +1230,8 @@ export declare function decodeHex<E extends string>(): Getter<Uint8Array, E>;
|
|
|
1200
1230
|
/**
|
|
1201
1231
|
* Decodes a hexadecimal string to a UTF-8 `string`.
|
|
1202
1232
|
*
|
|
1203
|
-
*
|
|
1233
|
+
* **Details**
|
|
1234
|
+
*
|
|
1204
1235
|
* - Fails with `Issue.InvalidValue` if the input is not valid hex.
|
|
1205
1236
|
*
|
|
1206
1237
|
* **Example** (Decode hex to string)
|
|
@@ -1212,9 +1243,8 @@ export declare function decodeHex<E extends string>(): Getter<Uint8Array, E>;
|
|
|
1212
1243
|
* // Getter<string, string>
|
|
1213
1244
|
* ```
|
|
1214
1245
|
*
|
|
1215
|
-
*
|
|
1216
|
-
*
|
|
1217
|
-
* - {@link encodeHex} — inverse operation
|
|
1246
|
+
* @see {@link decodeHex} - decode to `Uint8Array` instead
|
|
1247
|
+
* @see {@link encodeHex} - inverse operation
|
|
1218
1248
|
*
|
|
1219
1249
|
* @category Hex
|
|
1220
1250
|
* @since 4.0.0
|
|
@@ -1223,7 +1253,8 @@ export declare function decodeHexString<E extends string>(): Getter<string, E>;
|
|
|
1223
1253
|
/**
|
|
1224
1254
|
* Encodes a present string using `encodeURIComponent`.
|
|
1225
1255
|
*
|
|
1226
|
-
*
|
|
1256
|
+
* **Details**
|
|
1257
|
+
*
|
|
1227
1258
|
* - Skips `None` inputs.
|
|
1228
1259
|
* - May throw a `URIError` for malformed surrogate pairs; this exception is not
|
|
1229
1260
|
* converted into an `Issue`.
|
|
@@ -1236,8 +1267,7 @@ export declare function decodeHexString<E extends string>(): Getter<string, E>;
|
|
|
1236
1267
|
* const encode = SchemaGetter.encodeUriComponent<string>()
|
|
1237
1268
|
* ```
|
|
1238
1269
|
*
|
|
1239
|
-
*
|
|
1240
|
-
* - {@link decodeUriComponent} - inverse operation
|
|
1270
|
+
* @see {@link decodeUriComponent} - inverse operation
|
|
1241
1271
|
*
|
|
1242
1272
|
* @category URI
|
|
1243
1273
|
* @since 4.0.0
|
|
@@ -1246,7 +1276,8 @@ export declare function encodeUriComponent<E extends string>(): Getter<string, E
|
|
|
1246
1276
|
/**
|
|
1247
1277
|
* Decodes a URI component encoded string using `decodeURIComponent`.
|
|
1248
1278
|
*
|
|
1249
|
-
*
|
|
1279
|
+
* **Details**
|
|
1280
|
+
*
|
|
1250
1281
|
* - Fails with `Issue.InvalidValue` if the input contains malformed percent-encoding sequences.
|
|
1251
1282
|
*
|
|
1252
1283
|
* **Example** (Decode a URI component)
|
|
@@ -1258,8 +1289,7 @@ export declare function encodeUriComponent<E extends string>(): Getter<string, E
|
|
|
1258
1289
|
* // Getter<string, string>
|
|
1259
1290
|
* ```
|
|
1260
1291
|
*
|
|
1261
|
-
*
|
|
1262
|
-
* - {@link encodeUriComponent} - inverse operation
|
|
1292
|
+
* @see {@link encodeUriComponent} - inverse operation
|
|
1263
1293
|
*
|
|
1264
1294
|
* @category URI
|
|
1265
1295
|
* @since 4.0.0
|
|
@@ -1268,14 +1298,15 @@ export declare function decodeUriComponent<E extends string>(): Getter<string, E
|
|
|
1268
1298
|
/**
|
|
1269
1299
|
* Parses a `DateTime.Input` value into a `DateTime.Utc`.
|
|
1270
1300
|
*
|
|
1271
|
-
*
|
|
1272
|
-
* instant objects, zoned instant objects, JavaScript `Date` instances, epoch
|
|
1273
|
-
* milliseconds, and date strings.
|
|
1301
|
+
* **When to use**
|
|
1274
1302
|
*
|
|
1275
|
-
* Use this when:
|
|
1276
1303
|
* - An encoded value represents a date/time and should be decoded to a `DateTime.Utc`.
|
|
1277
1304
|
*
|
|
1278
|
-
*
|
|
1305
|
+
* **Details**
|
|
1306
|
+
*
|
|
1307
|
+
* - Accepted input includes existing `DateTime` values, partial date/time parts,
|
|
1308
|
+
* instant objects, zoned instant objects, JavaScript `Date` instances, epoch
|
|
1309
|
+
* milliseconds, and date strings.
|
|
1279
1310
|
* - Converts successfully parsed values to UTC.
|
|
1280
1311
|
* - Fails with `Issue.InvalidValue` if the input cannot be parsed as a valid
|
|
1281
1312
|
* `DateTime`.
|
|
@@ -1289,8 +1320,7 @@ export declare function decodeUriComponent<E extends string>(): Getter<string, E
|
|
|
1289
1320
|
* // Getter<DateTime.Utc, string>
|
|
1290
1321
|
* ```
|
|
1291
1322
|
*
|
|
1292
|
-
*
|
|
1293
|
-
* - {@link Date} — simpler coercion to `Date` (no validation)
|
|
1323
|
+
* @see {@link Date} - simpler coercion to `Date` (no validation)
|
|
1294
1324
|
*
|
|
1295
1325
|
* @category DateTime
|
|
1296
1326
|
* @since 4.0.0
|
|
@@ -1299,10 +1329,12 @@ export declare function dateTimeUtcFromInput<E extends DateTime.DateTime.Input>(
|
|
|
1299
1329
|
/**
|
|
1300
1330
|
* Decodes a `FormData` object into a nested tree structure using bracket-path notation.
|
|
1301
1331
|
*
|
|
1302
|
-
*
|
|
1332
|
+
* **When to use**
|
|
1333
|
+
*
|
|
1303
1334
|
* - Parsing `FormData` from HTTP requests into structured objects.
|
|
1304
1335
|
*
|
|
1305
|
-
*
|
|
1336
|
+
* **Details**
|
|
1337
|
+
*
|
|
1306
1338
|
* - Pure, never fails.
|
|
1307
1339
|
* - Interprets bracket-path keys (e.g. `user[name]`, `items[0]`) to build nested objects/arrays.
|
|
1308
1340
|
* - Leaf values are `string` or `Blob`.
|
|
@@ -1316,10 +1348,9 @@ export declare function dateTimeUtcFromInput<E extends DateTime.DateTime.Input>(
|
|
|
1316
1348
|
* // Getter<TreeObject<string | Blob>, FormData>
|
|
1317
1349
|
* ```
|
|
1318
1350
|
*
|
|
1319
|
-
*
|
|
1320
|
-
*
|
|
1321
|
-
*
|
|
1322
|
-
* - {@link decodeURLSearchParams} — similar for URLSearchParams
|
|
1351
|
+
* @see {@link encodeFormData} - inverse operation
|
|
1352
|
+
* @see {@link makeTreeRecord} - the underlying bracket-path parser
|
|
1353
|
+
* @see {@link decodeURLSearchParams} - similar for URLSearchParams
|
|
1323
1354
|
*
|
|
1324
1355
|
* @category FormData
|
|
1325
1356
|
* @since 4.0.0
|
|
@@ -1328,10 +1359,12 @@ export declare function decodeFormData(): Getter<Schema.TreeRecord<string | Blob
|
|
|
1328
1359
|
/**
|
|
1329
1360
|
* Encodes a nested object into a `FormData` instance using bracket-path notation.
|
|
1330
1361
|
*
|
|
1331
|
-
*
|
|
1362
|
+
* **When to use**
|
|
1363
|
+
*
|
|
1332
1364
|
* - Serializing structured data to `FormData` for HTTP requests.
|
|
1333
1365
|
*
|
|
1334
|
-
*
|
|
1366
|
+
* **Details**
|
|
1367
|
+
*
|
|
1335
1368
|
* - Pure, never fails.
|
|
1336
1369
|
* - Flattens nested objects/arrays into bracket-path keys (e.g. `user[name]`, `items[0]`).
|
|
1337
1370
|
* - Non-object inputs produce an empty `FormData`.
|
|
@@ -1345,10 +1378,9 @@ export declare function decodeFormData(): Getter<Schema.TreeRecord<string | Blob
|
|
|
1345
1378
|
* // Getter<FormData, unknown>
|
|
1346
1379
|
* ```
|
|
1347
1380
|
*
|
|
1348
|
-
*
|
|
1349
|
-
*
|
|
1350
|
-
*
|
|
1351
|
-
* - {@link encodeURLSearchParams} — similar for URLSearchParams
|
|
1381
|
+
* @see {@link decodeFormData} - inverse operation
|
|
1382
|
+
* @see {@link collectBracketPathEntries} - the underlying flattener
|
|
1383
|
+
* @see {@link encodeURLSearchParams} - similar for URLSearchParams
|
|
1352
1384
|
*
|
|
1353
1385
|
* @category FormData
|
|
1354
1386
|
* @since 4.0.0
|
|
@@ -1357,10 +1389,12 @@ export declare function encodeFormData(): Getter<FormData, unknown>;
|
|
|
1357
1389
|
/**
|
|
1358
1390
|
* Decodes a `URLSearchParams` object into a nested tree structure using bracket-path notation.
|
|
1359
1391
|
*
|
|
1360
|
-
*
|
|
1392
|
+
* **When to use**
|
|
1393
|
+
*
|
|
1361
1394
|
* - Parsing query parameters from URLs into structured objects.
|
|
1362
1395
|
*
|
|
1363
|
-
*
|
|
1396
|
+
* **Details**
|
|
1397
|
+
*
|
|
1364
1398
|
* - Pure, never fails.
|
|
1365
1399
|
* - Interprets bracket-path keys (e.g. `user[name]`, `items[0]`) to build nested objects/arrays.
|
|
1366
1400
|
* - Leaf values are `string`.
|
|
@@ -1374,10 +1408,9 @@ export declare function encodeFormData(): Getter<FormData, unknown>;
|
|
|
1374
1408
|
* // Getter<TreeObject<string>, URLSearchParams>
|
|
1375
1409
|
* ```
|
|
1376
1410
|
*
|
|
1377
|
-
*
|
|
1378
|
-
*
|
|
1379
|
-
*
|
|
1380
|
-
* - {@link decodeFormData} — similar for FormData
|
|
1411
|
+
* @see {@link encodeURLSearchParams} - inverse operation
|
|
1412
|
+
* @see {@link makeTreeRecord} - the underlying bracket-path parser
|
|
1413
|
+
* @see {@link decodeFormData} - similar for FormData
|
|
1381
1414
|
*
|
|
1382
1415
|
* @category URLSearchParams
|
|
1383
1416
|
* @since 4.0.0
|
|
@@ -1386,10 +1419,12 @@ export declare function decodeURLSearchParams(): Getter<Schema.TreeRecord<string
|
|
|
1386
1419
|
/**
|
|
1387
1420
|
* Encodes a nested object into a `URLSearchParams` instance using bracket-path notation.
|
|
1388
1421
|
*
|
|
1389
|
-
*
|
|
1422
|
+
* **When to use**
|
|
1423
|
+
*
|
|
1390
1424
|
* - Serializing structured data to query parameters for URLs.
|
|
1391
1425
|
*
|
|
1392
|
-
*
|
|
1426
|
+
* **Details**
|
|
1427
|
+
*
|
|
1393
1428
|
* - Pure, never fails.
|
|
1394
1429
|
* - Flattens nested objects/arrays into bracket-path keys.
|
|
1395
1430
|
* - Non-object inputs produce an empty `URLSearchParams`.
|
|
@@ -1403,10 +1438,9 @@ export declare function decodeURLSearchParams(): Getter<Schema.TreeRecord<string
|
|
|
1403
1438
|
* // Getter<URLSearchParams, unknown>
|
|
1404
1439
|
* ```
|
|
1405
1440
|
*
|
|
1406
|
-
*
|
|
1407
|
-
*
|
|
1408
|
-
*
|
|
1409
|
-
* - {@link encodeFormData} — similar for FormData
|
|
1441
|
+
* @see {@link decodeURLSearchParams} - inverse operation
|
|
1442
|
+
* @see {@link collectBracketPathEntries} - the underlying flattener
|
|
1443
|
+
* @see {@link encodeFormData} - similar for FormData
|
|
1410
1444
|
*
|
|
1411
1445
|
* @category URLSearchParams
|
|
1412
1446
|
* @since 4.0.0
|
|
@@ -1415,15 +1449,16 @@ export declare function encodeURLSearchParams(): Getter<URLSearchParams, unknown
|
|
|
1415
1449
|
/**
|
|
1416
1450
|
* Builds a nested tree object from a list of bracket-path entries.
|
|
1417
1451
|
*
|
|
1418
|
-
*
|
|
1419
|
-
* object/array structure. This function interprets those paths and constructs the
|
|
1420
|
-
* corresponding nested object.
|
|
1452
|
+
* **When to use**
|
|
1421
1453
|
*
|
|
1422
|
-
* Use this when:
|
|
1423
1454
|
* - Parsing FormData or URLSearchParams entries into structured objects.
|
|
1424
1455
|
* - You have flat key-value pairs with bracket-path keys that need nesting.
|
|
1425
1456
|
*
|
|
1426
|
-
*
|
|
1457
|
+
* **Details**
|
|
1458
|
+
*
|
|
1459
|
+
* - A bracket path is a string like `"user[address][city]"` that describes nested
|
|
1460
|
+
* object/array structure.
|
|
1461
|
+
* - Interprets bracket paths and constructs the corresponding nested object.
|
|
1427
1462
|
* - Mutates and returns a new object (does not mutate the input array).
|
|
1428
1463
|
* - Supported syntax:
|
|
1429
1464
|
* - `"foo"` → object key `"foo"`
|
|
@@ -1446,10 +1481,9 @@ export declare function encodeURLSearchParams(): Getter<URLSearchParams, unknown
|
|
|
1446
1481
|
* // { user: { name: "Alice", tags: ["admin", "editor"] } }
|
|
1447
1482
|
* ```
|
|
1448
1483
|
*
|
|
1449
|
-
*
|
|
1450
|
-
*
|
|
1451
|
-
*
|
|
1452
|
-
* - {@link decodeURLSearchParams} — uses this internally
|
|
1484
|
+
* @see {@link collectBracketPathEntries} - inverse operation (tree to flat entries)
|
|
1485
|
+
* @see {@link decodeFormData} - uses this internally
|
|
1486
|
+
* @see {@link decodeURLSearchParams} - uses this internally
|
|
1453
1487
|
*
|
|
1454
1488
|
* @category Tree
|
|
1455
1489
|
* @since 4.0.0
|
|
@@ -1458,14 +1492,16 @@ export declare function makeTreeRecord<A>(bracketPathEntries: ReadonlyArray<read
|
|
|
1458
1492
|
/**
|
|
1459
1493
|
* Flattens a nested object into bracket-path entries, filtering leaf values by a type guard.
|
|
1460
1494
|
*
|
|
1461
|
-
*
|
|
1462
|
-
* flat `[bracketPath, value]` pairs suitable for `FormData` or `URLSearchParams`.
|
|
1495
|
+
* **When to use**
|
|
1463
1496
|
*
|
|
1464
|
-
* Use this when:
|
|
1465
1497
|
* - Serializing structured objects to flat key-value entries.
|
|
1466
1498
|
* - Building custom `FormData` or `URLSearchParams` encoders.
|
|
1467
1499
|
*
|
|
1468
|
-
*
|
|
1500
|
+
* **Details**
|
|
1501
|
+
*
|
|
1502
|
+
* - This is the inverse of {@link makeTreeRecord}.
|
|
1503
|
+
* - Takes a nested object and produces flat `[bracketPath, value]` pairs suitable for
|
|
1504
|
+
* `FormData` or `URLSearchParams`.
|
|
1469
1505
|
* - Returns a curried function: first call provides the leaf type guard, second call provides the object.
|
|
1470
1506
|
* - Recursively traverses objects and arrays.
|
|
1471
1507
|
* - If all elements of an array are leaves, encodes them as multiple entries with the same key
|
|
@@ -1482,10 +1518,9 @@ export declare function makeTreeRecord<A>(bracketPathEntries: ReadonlyArray<read
|
|
|
1482
1518
|
* // [["user[name]", "Alice"], ["user[tags]", "admin"], ["user[tags]", "editor"]]
|
|
1483
1519
|
* ```
|
|
1484
1520
|
*
|
|
1485
|
-
*
|
|
1486
|
-
*
|
|
1487
|
-
*
|
|
1488
|
-
* - {@link encodeURLSearchParams} — uses this internally
|
|
1521
|
+
* @see {@link makeTreeRecord} - inverse operation (flat entries to tree)
|
|
1522
|
+
* @see {@link encodeFormData} - uses this internally
|
|
1523
|
+
* @see {@link encodeURLSearchParams} - uses this internally
|
|
1489
1524
|
*
|
|
1490
1525
|
* @category Tree
|
|
1491
1526
|
* @since 4.0.0
|