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/DateTime.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ export type DateTime = Utc | Zoned;
|
|
|
75
75
|
* Represents a `DateTime` stored as an absolute UTC instant with no associated
|
|
76
76
|
* time zone.
|
|
77
77
|
*
|
|
78
|
+
* **Details**
|
|
79
|
+
*
|
|
78
80
|
* Use `DateTime.isUtc` to narrow a `DateTime` to this variant.
|
|
79
81
|
*
|
|
80
82
|
* @category models
|
|
@@ -88,6 +90,8 @@ export interface Utc extends DateTime.Proto {
|
|
|
88
90
|
/**
|
|
89
91
|
* Represents a `DateTime` with an associated `TimeZone`.
|
|
90
92
|
*
|
|
93
|
+
* **Details**
|
|
94
|
+
*
|
|
91
95
|
* A zoned value still represents an absolute instant through
|
|
92
96
|
* `epochMilliseconds`, while the time zone is used for wall-clock parts,
|
|
93
97
|
* formatting, and zone-aware transformations.
|
|
@@ -114,6 +118,8 @@ export declare namespace DateTime {
|
|
|
114
118
|
* Input accepted by `DateTime.make`, `DateTime.makeUnsafe`, and the zoned
|
|
115
119
|
* constructors.
|
|
116
120
|
*
|
|
121
|
+
* **Details**
|
|
122
|
+
*
|
|
117
123
|
* Includes existing `DateTime` values, partial date parts, epoch-millisecond
|
|
118
124
|
* objects, epoch milliseconds, JavaScript `Date` instances, and parseable date
|
|
119
125
|
* strings.
|
|
@@ -125,6 +131,8 @@ export declare namespace DateTime {
|
|
|
125
131
|
/**
|
|
126
132
|
* Type-level helper used by constructors to preserve a zoned input.
|
|
127
133
|
*
|
|
134
|
+
* **Details**
|
|
135
|
+
*
|
|
128
136
|
* When the input type is `DateTime.Zoned`, the result type is
|
|
129
137
|
* `DateTime.Zoned`; otherwise the result type is `DateTime.Utc`.
|
|
130
138
|
*
|
|
@@ -136,6 +144,8 @@ export declare namespace DateTime {
|
|
|
136
144
|
* Date and time unit name accepted by `DateTime` rounding and arithmetic
|
|
137
145
|
* APIs.
|
|
138
146
|
*
|
|
147
|
+
* **Details**
|
|
148
|
+
*
|
|
139
149
|
* Includes both singular units, such as `"day"`, and plural units, such as
|
|
140
150
|
* `"days"`.
|
|
141
151
|
*
|
|
@@ -162,6 +172,8 @@ export declare namespace DateTime {
|
|
|
162
172
|
/**
|
|
163
173
|
* Calendar and time components of a `DateTime`, including the weekday.
|
|
164
174
|
*
|
|
175
|
+
* **Details**
|
|
176
|
+
*
|
|
165
177
|
* `month` is one-based (`1` for January through `12` for December), and
|
|
166
178
|
* `weekDay` follows JavaScript `Date#getUTCDay` numbering (`0` for Sunday
|
|
167
179
|
* through `6` for Saturday).
|
|
@@ -182,6 +194,8 @@ export declare namespace DateTime {
|
|
|
182
194
|
/**
|
|
183
195
|
* Calendar and time components of a `DateTime`, without weekday information.
|
|
184
196
|
*
|
|
197
|
+
* **Details**
|
|
198
|
+
*
|
|
185
199
|
* `month` is one-based (`1` for January through `12` for December).
|
|
186
200
|
*
|
|
187
201
|
* @category models
|
|
@@ -199,6 +213,8 @@ export declare namespace DateTime {
|
|
|
199
213
|
/**
|
|
200
214
|
* Plural amount fields accepted by `DateTime.add` and `DateTime.subtract`.
|
|
201
215
|
*
|
|
216
|
+
* **Details**
|
|
217
|
+
*
|
|
202
218
|
* Each field represents the number of units to add or subtract for that part.
|
|
203
219
|
*
|
|
204
220
|
* @category models
|
|
@@ -227,6 +243,8 @@ export declare namespace DateTime {
|
|
|
227
243
|
/**
|
|
228
244
|
* Object input representing an absolute instant plus a time zone identifier.
|
|
229
245
|
*
|
|
246
|
+
* **Details**
|
|
247
|
+
*
|
|
230
248
|
* `DateTime.makeZoned` and `DateTime.makeZonedUnsafe` use `timeZoneId` when
|
|
231
249
|
* no explicit `timeZone` option is supplied.
|
|
232
250
|
*
|
|
@@ -240,6 +258,8 @@ export declare namespace DateTime {
|
|
|
240
258
|
/**
|
|
241
259
|
* Shared protocol implemented by all `DateTime` values.
|
|
242
260
|
*
|
|
261
|
+
* **Details**
|
|
262
|
+
*
|
|
243
263
|
* Provides the `DateTime` type identifier along with pipe and inspection
|
|
244
264
|
* support.
|
|
245
265
|
*
|
|
@@ -253,6 +273,8 @@ export declare namespace DateTime {
|
|
|
253
273
|
/**
|
|
254
274
|
* Represents a time zone used by `DateTime.Zoned`.
|
|
255
275
|
*
|
|
276
|
+
* **Details**
|
|
277
|
+
*
|
|
256
278
|
* A `TimeZone` is either a fixed offset from UTC or a named IANA time zone.
|
|
257
279
|
*
|
|
258
280
|
* @category models
|
|
@@ -269,6 +291,8 @@ export declare namespace TimeZone {
|
|
|
269
291
|
/**
|
|
270
292
|
* Shared protocol implemented by all `TimeZone` values.
|
|
271
293
|
*
|
|
294
|
+
* **Details**
|
|
295
|
+
*
|
|
272
296
|
* Provides the `TimeZone` type identifier and inspection support.
|
|
273
297
|
*
|
|
274
298
|
* @category models
|
|
@@ -280,6 +304,8 @@ export declare namespace TimeZone {
|
|
|
280
304
|
/**
|
|
281
305
|
* Fixed-offset time zone.
|
|
282
306
|
*
|
|
307
|
+
* **Details**
|
|
308
|
+
*
|
|
283
309
|
* The `offset` is measured in milliseconds from UTC. Positive offsets are
|
|
284
310
|
* ahead of UTC, and negative offsets are behind UTC.
|
|
285
311
|
*
|
|
@@ -293,6 +319,8 @@ export declare namespace TimeZone {
|
|
|
293
319
|
/**
|
|
294
320
|
* Named IANA time zone.
|
|
295
321
|
*
|
|
322
|
+
* **Details**
|
|
323
|
+
*
|
|
296
324
|
* The `id` field contains the resolved time zone identifier, such as
|
|
297
325
|
* `"Europe/London"` or `"America/New_York"`.
|
|
298
326
|
*
|
|
@@ -308,6 +336,8 @@ export declare namespace TimeZone {
|
|
|
308
336
|
* A `Disambiguation` is used to resolve ambiguities when a `DateTime` is
|
|
309
337
|
* ambiguous, such as during a daylight saving time transition.
|
|
310
338
|
*
|
|
339
|
+
* **Details**
|
|
340
|
+
*
|
|
311
341
|
* For more information, see the [Temporal documentation](https://tc39.es/proposal-temporal/docs/timezone.html#ambiguity-due-to-dst-or-other-time-zone-offset-changes)
|
|
312
342
|
*
|
|
313
343
|
* - `"compatible"`: (default) Behavior matching Temporal API and legacy JavaScript Date and moment.js.
|
|
@@ -411,6 +441,8 @@ export declare const isZoned: (self: DateTime) => self is Zoned;
|
|
|
411
441
|
/**
|
|
412
442
|
* An `Equivalence` for comparing two `DateTime` values for equality.
|
|
413
443
|
*
|
|
444
|
+
* **Details**
|
|
445
|
+
*
|
|
414
446
|
* Two `DateTime` values are considered equivalent if they represent the same
|
|
415
447
|
* point in time, regardless of their time zone.
|
|
416
448
|
*
|
|
@@ -434,6 +466,8 @@ export declare const Equivalence: Equ.Equivalence<DateTime>;
|
|
|
434
466
|
/**
|
|
435
467
|
* An `Order` for comparing and sorting `DateTime` values.
|
|
436
468
|
*
|
|
469
|
+
* **Details**
|
|
470
|
+
*
|
|
437
471
|
* `DateTime` values are ordered by their epoch milliseconds, so earlier times
|
|
438
472
|
* come before later times regardless of time zone.
|
|
439
473
|
*
|
|
@@ -459,6 +493,8 @@ export declare const Order: order.Order<DateTime>;
|
|
|
459
493
|
/**
|
|
460
494
|
* Clamp a `DateTime` between a minimum and maximum value.
|
|
461
495
|
*
|
|
496
|
+
* **Details**
|
|
497
|
+
*
|
|
462
498
|
* If the `DateTime` is before the minimum, the minimum is returned.
|
|
463
499
|
* If the `DateTime` is after the maximum, the maximum is returned.
|
|
464
500
|
* Otherwise, the original `DateTime` is returned.
|
|
@@ -483,6 +519,8 @@ export declare const clamp: {
|
|
|
483
519
|
/**
|
|
484
520
|
* Clamp a `DateTime` between a minimum and maximum value.
|
|
485
521
|
*
|
|
522
|
+
* **Details**
|
|
523
|
+
*
|
|
486
524
|
* If the `DateTime` is before the minimum, the minimum is returned.
|
|
487
525
|
* If the `DateTime` is after the maximum, the maximum is returned.
|
|
488
526
|
* Otherwise, the original `DateTime` is returned.
|
|
@@ -510,6 +548,8 @@ export declare const clamp: {
|
|
|
510
548
|
/**
|
|
511
549
|
* Clamp a `DateTime` between a minimum and maximum value.
|
|
512
550
|
*
|
|
551
|
+
* **Details**
|
|
552
|
+
*
|
|
513
553
|
* If the `DateTime` is before the minimum, the minimum is returned.
|
|
514
554
|
* If the `DateTime` is after the maximum, the maximum is returned.
|
|
515
555
|
* Otherwise, the original `DateTime` is returned.
|
|
@@ -538,6 +578,8 @@ export declare const clamp: {
|
|
|
538
578
|
/**
|
|
539
579
|
* Create a `DateTime` from a `Date`.
|
|
540
580
|
*
|
|
581
|
+
* **Details**
|
|
582
|
+
*
|
|
541
583
|
* If the `Date` is invalid, an `IllegalArgumentError` will be thrown.
|
|
542
584
|
*
|
|
543
585
|
* **Example** (Creating DateTime values from Dates)
|
|
@@ -556,7 +598,9 @@ export declare const clamp: {
|
|
|
556
598
|
*/
|
|
557
599
|
export declare const fromDateUnsafe: (date: Date) => Utc;
|
|
558
600
|
/**
|
|
559
|
-
* Create a `DateTime` from
|
|
601
|
+
* Create a `DateTime` from supported input values.
|
|
602
|
+
*
|
|
603
|
+
* **Details**
|
|
560
604
|
*
|
|
561
605
|
* - A `DateTime`
|
|
562
606
|
* - A `Date` instance (invalid dates will throw an `IllegalArgumentError`)
|
|
@@ -589,6 +633,8 @@ export declare const makeUnsafe: <A extends DateTime.Input>(input: A) => DateTim
|
|
|
589
633
|
/**
|
|
590
634
|
* Create a `DateTime.Zoned` using `DateTime.makeUnsafe` and a time zone.
|
|
591
635
|
*
|
|
636
|
+
* **Details**
|
|
637
|
+
*
|
|
592
638
|
* The input is treated as UTC and then the time zone is attached, unless
|
|
593
639
|
* `adjustForTimeZone` is set to `true`. In that case, the input is treated as
|
|
594
640
|
* already in the time zone.
|
|
@@ -623,6 +669,8 @@ export declare const makeZonedUnsafe: (input: DateTime.Input, options?: {
|
|
|
623
669
|
/**
|
|
624
670
|
* Creates a `DateTime.Zoned` from an input and a time zone.
|
|
625
671
|
*
|
|
672
|
+
* **Details**
|
|
673
|
+
*
|
|
626
674
|
* By default, the input is interpreted as a UTC instant and the time zone is
|
|
627
675
|
* attached without changing that instant. When `adjustForTimeZone` is `true`,
|
|
628
676
|
* the input is interpreted as wall-clock time in the target zone.
|
|
@@ -663,7 +711,9 @@ export declare const makeZoned: (input: DateTime.Input, options?: {
|
|
|
663
711
|
readonly disambiguation?: Disambiguation | undefined;
|
|
664
712
|
}) => Option.Option<Zoned>;
|
|
665
713
|
/**
|
|
666
|
-
* Creates a `DateTime` from
|
|
714
|
+
* Creates a `DateTime` from supported input values.
|
|
715
|
+
*
|
|
716
|
+
* **Details**
|
|
667
717
|
*
|
|
668
718
|
* - A `DateTime`
|
|
669
719
|
* - A JavaScript `Date`
|
|
@@ -703,6 +753,8 @@ export declare const make: <A extends DateTime.Input>(input: A) => Option.Option
|
|
|
703
753
|
/**
|
|
704
754
|
* Parses an ISO zoned date-time string into a `DateTime.Zoned`.
|
|
705
755
|
*
|
|
756
|
+
* **Details**
|
|
757
|
+
*
|
|
706
758
|
* Accepts named-zone strings such as
|
|
707
759
|
* `YYYY-MM-DDTHH:mm:ss.sss+HH:MM[Time/Zone]` and offset-only strings such as
|
|
708
760
|
* `YYYY-MM-DDTHH:mm:ss.sss+HH:MM`. Returns `None` when the input cannot be
|
|
@@ -768,6 +820,8 @@ export declare const nowAsDate: Effect.Effect<Date>;
|
|
|
768
820
|
/**
|
|
769
821
|
* Get the current time using `Date.now`.
|
|
770
822
|
*
|
|
823
|
+
* **Details**
|
|
824
|
+
*
|
|
771
825
|
* This is a synchronous version of `now` that directly uses `Date.now()`
|
|
772
826
|
* instead of the Effect `Clock` service.
|
|
773
827
|
*
|
|
@@ -877,6 +931,8 @@ export declare const setZone: {
|
|
|
877
931
|
/**
|
|
878
932
|
* Add a fixed offset time zone to a `DateTime`.
|
|
879
933
|
*
|
|
934
|
+
* **Details**
|
|
935
|
+
*
|
|
880
936
|
* The offset is in milliseconds.
|
|
881
937
|
*
|
|
882
938
|
* **Example** (Setting fixed-offset time zones)
|
|
@@ -899,6 +955,8 @@ export declare const setZoneOffset: {
|
|
|
899
955
|
/**
|
|
900
956
|
* Add a fixed offset time zone to a `DateTime`.
|
|
901
957
|
*
|
|
958
|
+
* **Details**
|
|
959
|
+
*
|
|
902
960
|
* The offset is in milliseconds.
|
|
903
961
|
*
|
|
904
962
|
* **Example** (Setting fixed-offset time zones)
|
|
@@ -924,6 +982,8 @@ export declare const setZoneOffset: {
|
|
|
924
982
|
/**
|
|
925
983
|
* Add a fixed offset time zone to a `DateTime`.
|
|
926
984
|
*
|
|
985
|
+
* **Details**
|
|
986
|
+
*
|
|
927
987
|
* The offset is in milliseconds.
|
|
928
988
|
*
|
|
929
989
|
* **Example** (Setting fixed-offset time zones)
|
|
@@ -950,6 +1010,8 @@ export declare const setZoneOffset: {
|
|
|
950
1010
|
/**
|
|
951
1011
|
* Attempt to create a named time zone from a IANA time zone identifier.
|
|
952
1012
|
*
|
|
1013
|
+
* **Details**
|
|
1014
|
+
*
|
|
953
1015
|
* If the time zone is invalid, an `IllegalArgumentError` will be thrown.
|
|
954
1016
|
*
|
|
955
1017
|
* **Example** (Creating named time zones unsafely)
|
|
@@ -974,6 +1036,8 @@ export declare const zoneMakeNamedUnsafe: (zoneId: string) => TimeZone.Named;
|
|
|
974
1036
|
/**
|
|
975
1037
|
* Create a fixed offset time zone.
|
|
976
1038
|
*
|
|
1039
|
+
* **Details**
|
|
1040
|
+
*
|
|
977
1041
|
* The offset is specified in milliseconds from UTC. Positive values are
|
|
978
1042
|
* ahead of UTC, negative values are behind UTC.
|
|
979
1043
|
*
|
|
@@ -997,6 +1061,8 @@ export declare const zoneMakeOffset: (offset: number) => TimeZone.Offset;
|
|
|
997
1061
|
/**
|
|
998
1062
|
* Create a named time zone from a IANA time zone identifier.
|
|
999
1063
|
*
|
|
1064
|
+
* **Details**
|
|
1065
|
+
*
|
|
1000
1066
|
* If the time zone is invalid, `None` will be returned.
|
|
1001
1067
|
*
|
|
1002
1068
|
* **Example** (Creating optional named time zones)
|
|
@@ -1018,6 +1084,8 @@ export declare const zoneMakeNamed: (zoneId: string) => Option.Option<TimeZone.N
|
|
|
1018
1084
|
/**
|
|
1019
1085
|
* Create a named time zone from a IANA time zone identifier.
|
|
1020
1086
|
*
|
|
1087
|
+
* **Details**
|
|
1088
|
+
*
|
|
1021
1089
|
* If the time zone is invalid, it will fail with an `IllegalArgumentError`.
|
|
1022
1090
|
*
|
|
1023
1091
|
* **Example** (Creating named time zones effectfully)
|
|
@@ -1039,6 +1107,8 @@ export declare const zoneMakeNamedEffect: (zoneId: string) => Effect.Effect<Time
|
|
|
1039
1107
|
/**
|
|
1040
1108
|
* Create a named time zone from the system's local time zone.
|
|
1041
1109
|
*
|
|
1110
|
+
* **Details**
|
|
1111
|
+
*
|
|
1042
1112
|
* This uses the system's configured time zone, which may vary depending
|
|
1043
1113
|
* on the runtime environment.
|
|
1044
1114
|
*
|
|
@@ -1058,6 +1128,8 @@ export declare const zoneMakeLocal: () => TimeZone.Named;
|
|
|
1058
1128
|
/**
|
|
1059
1129
|
* Try to parse a `TimeZone` from a string.
|
|
1060
1130
|
*
|
|
1131
|
+
* **Details**
|
|
1132
|
+
*
|
|
1061
1133
|
* Supports both IANA time zone identifiers and offset formats like "+03:00".
|
|
1062
1134
|
*
|
|
1063
1135
|
* **Example** (Parsing time zones)
|
|
@@ -1235,6 +1307,8 @@ export declare const setZoneNamedUnsafe: {
|
|
|
1235
1307
|
* Calulate the difference between two `DateTime` values, returning a
|
|
1236
1308
|
* `Duration` representing the amount of time between them.
|
|
1237
1309
|
*
|
|
1310
|
+
* **Details**
|
|
1311
|
+
*
|
|
1238
1312
|
* If `other` is *after* `self`, the result will be a positive `Duration`. If
|
|
1239
1313
|
* `other` is *before* `self`, the result will be a negative `Duration`. If they
|
|
1240
1314
|
* are equal, the result will be a `Duration` of zero.
|
|
@@ -1261,6 +1335,8 @@ export declare const distance: {
|
|
|
1261
1335
|
* Calulate the difference between two `DateTime` values, returning a
|
|
1262
1336
|
* `Duration` representing the amount of time between them.
|
|
1263
1337
|
*
|
|
1338
|
+
* **Details**
|
|
1339
|
+
*
|
|
1264
1340
|
* If `other` is *after* `self`, the result will be a positive `Duration`. If
|
|
1265
1341
|
* `other` is *before* `self`, the result will be a negative `Duration`. If they
|
|
1266
1342
|
* are equal, the result will be a `Duration` of zero.
|
|
@@ -1287,6 +1363,8 @@ export declare const distance: {
|
|
|
1287
1363
|
* Calulate the difference between two `DateTime` values, returning a
|
|
1288
1364
|
* `Duration` representing the amount of time between them.
|
|
1289
1365
|
*
|
|
1366
|
+
* **Details**
|
|
1367
|
+
*
|
|
1290
1368
|
* If `other` is *after* `self`, the result will be a positive `Duration`. If
|
|
1291
1369
|
* `other` is *before* `self`, the result will be a negative `Duration`. If they
|
|
1292
1370
|
* are equal, the result will be a `Duration` of zero.
|
|
@@ -1737,6 +1815,8 @@ export declare const between: {
|
|
|
1737
1815
|
/**
|
|
1738
1816
|
* Checks if a `DateTime` is in the future compared to the current time.
|
|
1739
1817
|
*
|
|
1818
|
+
* **Details**
|
|
1819
|
+
*
|
|
1740
1820
|
* This is an effectful operation that uses the current time from the `Clock` service.
|
|
1741
1821
|
*
|
|
1742
1822
|
* **Example** (Checking future DateTime values effectfully)
|
|
@@ -1758,6 +1838,8 @@ export declare const isFuture: (self: DateTime) => Effect.Effect<boolean>;
|
|
|
1758
1838
|
/**
|
|
1759
1839
|
* Checks if a `DateTime` is in the future compared to the current time.
|
|
1760
1840
|
*
|
|
1841
|
+
* **Details**
|
|
1842
|
+
*
|
|
1761
1843
|
* This is a synchronous version that uses `Date.now()` directly.
|
|
1762
1844
|
*
|
|
1763
1845
|
* **Example** (Checking future DateTime values unsafely)
|
|
@@ -1779,6 +1861,8 @@ export declare const isFutureUnsafe: (self: DateTime) => boolean;
|
|
|
1779
1861
|
/**
|
|
1780
1862
|
* Checks if a `DateTime` is in the past compared to the current time.
|
|
1781
1863
|
*
|
|
1864
|
+
* **Details**
|
|
1865
|
+
*
|
|
1782
1866
|
* This is an effectful operation that uses the current time from the `Clock` service.
|
|
1783
1867
|
*
|
|
1784
1868
|
* **Example** (Checking past DateTime values effectfully)
|
|
@@ -1800,6 +1884,8 @@ export declare const isPast: (self: DateTime) => Effect.Effect<boolean>;
|
|
|
1800
1884
|
/**
|
|
1801
1885
|
* Checks if a `DateTime` is in the past compared to the current time.
|
|
1802
1886
|
*
|
|
1887
|
+
* **Details**
|
|
1888
|
+
*
|
|
1803
1889
|
* This is a synchronous version that uses `Date.now()` directly.
|
|
1804
1890
|
*
|
|
1805
1891
|
* **Example** (Checking past DateTime values unsafely)
|
|
@@ -1821,6 +1907,8 @@ export declare const isPastUnsafe: (self: DateTime) => boolean;
|
|
|
1821
1907
|
/**
|
|
1822
1908
|
* Get the UTC `Date` of a `DateTime`.
|
|
1823
1909
|
*
|
|
1910
|
+
* **Details**
|
|
1911
|
+
*
|
|
1824
1912
|
* This always returns the UTC representation, ignoring any time zone information.
|
|
1825
1913
|
*
|
|
1826
1914
|
* **Example** (Converting DateTime values to UTC Dates)
|
|
@@ -1843,6 +1931,8 @@ export declare const toDateUtc: (self: DateTime) => Date;
|
|
|
1843
1931
|
/**
|
|
1844
1932
|
* Convert a `DateTime` to a `Date`, applying the time zone first.
|
|
1845
1933
|
*
|
|
1934
|
+
* **Details**
|
|
1935
|
+
*
|
|
1846
1936
|
* For `DateTime.Zoned`, this adjusts for the time zone before converting.
|
|
1847
1937
|
* For `DateTime.Utc`, this is equivalent to `toDateUtc`.
|
|
1848
1938
|
*
|
|
@@ -1867,6 +1957,8 @@ export declare const toDate: (self: DateTime) => Date;
|
|
|
1867
1957
|
/**
|
|
1868
1958
|
* Calculate the time zone offset of a `DateTime.Zoned` in milliseconds.
|
|
1869
1959
|
*
|
|
1960
|
+
* **Details**
|
|
1961
|
+
*
|
|
1870
1962
|
* Returns the offset from UTC in milliseconds. Positive values indicate
|
|
1871
1963
|
* time zones ahead of UTC, negative values indicate time zones behind UTC.
|
|
1872
1964
|
*
|
|
@@ -1890,6 +1982,8 @@ export declare const zonedOffset: (self: Zoned) => number;
|
|
|
1890
1982
|
/**
|
|
1891
1983
|
* Format the time zone offset of a `DateTime.Zoned` as an ISO string.
|
|
1892
1984
|
*
|
|
1985
|
+
* **Details**
|
|
1986
|
+
*
|
|
1893
1987
|
* The offset is formatted as "±HH:MM".
|
|
1894
1988
|
*
|
|
1895
1989
|
* **Example** (Formatting zoned offsets)
|
|
@@ -1912,6 +2006,8 @@ export declare const zonedOffsetIso: (self: Zoned) => string;
|
|
|
1912
2006
|
/**
|
|
1913
2007
|
* Get the milliseconds since the Unix epoch of a `DateTime`.
|
|
1914
2008
|
*
|
|
2009
|
+
* **Details**
|
|
2010
|
+
*
|
|
1915
2011
|
* This returns the UTC timestamp regardless of any time zone information.
|
|
1916
2012
|
*
|
|
1917
2013
|
* **Example** (Reading epoch milliseconds)
|
|
@@ -1955,6 +2051,8 @@ export declare const removeTime: (self: DateTime) => Utc;
|
|
|
1955
2051
|
/**
|
|
1956
2052
|
* Get the different parts of a `DateTime` as an object.
|
|
1957
2053
|
*
|
|
2054
|
+
* **Details**
|
|
2055
|
+
*
|
|
1958
2056
|
* The parts will be time zone adjusted if the `DateTime` is zoned.
|
|
1959
2057
|
*
|
|
1960
2058
|
* **Example** (Reading DateTime parts)
|
|
@@ -1985,6 +2083,8 @@ export declare const toParts: (self: DateTime) => DateTime.PartsWithWeekday;
|
|
|
1985
2083
|
/**
|
|
1986
2084
|
* Get the different parts of a `DateTime` as an object.
|
|
1987
2085
|
*
|
|
2086
|
+
* **Details**
|
|
2087
|
+
*
|
|
1988
2088
|
* The parts will always be in UTC, ignoring any time zone information.
|
|
1989
2089
|
*
|
|
1990
2090
|
* **Example** (Reading UTC DateTime parts)
|
|
@@ -2008,6 +2108,8 @@ export declare const toPartsUtc: (self: DateTime) => DateTime.PartsWithWeekday;
|
|
|
2008
2108
|
/**
|
|
2009
2109
|
* Get a part of a `DateTime` as a number.
|
|
2010
2110
|
*
|
|
2111
|
+
* **Details**
|
|
2112
|
+
*
|
|
2011
2113
|
* The part will be in the UTC time zone.
|
|
2012
2114
|
*
|
|
2013
2115
|
* **Example** (Reading UTC DateTime parts by key)
|
|
@@ -2027,6 +2129,8 @@ export declare const getPartUtc: {
|
|
|
2027
2129
|
/**
|
|
2028
2130
|
* Get a part of a `DateTime` as a number.
|
|
2029
2131
|
*
|
|
2132
|
+
* **Details**
|
|
2133
|
+
*
|
|
2030
2134
|
* The part will be in the UTC time zone.
|
|
2031
2135
|
*
|
|
2032
2136
|
* **Example** (Reading UTC DateTime parts by key)
|
|
@@ -2046,6 +2150,8 @@ export declare const getPartUtc: {
|
|
|
2046
2150
|
/**
|
|
2047
2151
|
* Get a part of a `DateTime` as a number.
|
|
2048
2152
|
*
|
|
2153
|
+
* **Details**
|
|
2154
|
+
*
|
|
2049
2155
|
* The part will be in the UTC time zone.
|
|
2050
2156
|
*
|
|
2051
2157
|
* **Example** (Reading UTC DateTime parts by key)
|
|
@@ -2066,6 +2172,8 @@ export declare const getPartUtc: {
|
|
|
2066
2172
|
/**
|
|
2067
2173
|
* Get a part of a `DateTime` as a number.
|
|
2068
2174
|
*
|
|
2175
|
+
* **Details**
|
|
2176
|
+
*
|
|
2069
2177
|
* The part will be time zone adjusted.
|
|
2070
2178
|
*
|
|
2071
2179
|
* **Example** (Reading DateTime parts by key)
|
|
@@ -2087,6 +2195,8 @@ export declare const getPart: {
|
|
|
2087
2195
|
/**
|
|
2088
2196
|
* Get a part of a `DateTime` as a number.
|
|
2089
2197
|
*
|
|
2198
|
+
* **Details**
|
|
2199
|
+
*
|
|
2090
2200
|
* The part will be time zone adjusted.
|
|
2091
2201
|
*
|
|
2092
2202
|
* **Example** (Reading DateTime parts by key)
|
|
@@ -2108,6 +2218,8 @@ export declare const getPart: {
|
|
|
2108
2218
|
/**
|
|
2109
2219
|
* Get a part of a `DateTime` as a number.
|
|
2110
2220
|
*
|
|
2221
|
+
* **Details**
|
|
2222
|
+
*
|
|
2111
2223
|
* The part will be time zone adjusted.
|
|
2112
2224
|
*
|
|
2113
2225
|
* **Example** (Reading DateTime parts by key)
|
|
@@ -2130,6 +2242,8 @@ export declare const getPart: {
|
|
|
2130
2242
|
/**
|
|
2131
2243
|
* Set the different parts of a `DateTime` as an object.
|
|
2132
2244
|
*
|
|
2245
|
+
* **Details**
|
|
2246
|
+
*
|
|
2133
2247
|
* The date will be time zone adjusted for `DateTime.Zoned`.
|
|
2134
2248
|
*
|
|
2135
2249
|
* **Example** (Updating DateTime parts)
|
|
@@ -2154,6 +2268,8 @@ export declare const setParts: {
|
|
|
2154
2268
|
/**
|
|
2155
2269
|
* Set the different parts of a `DateTime` as an object.
|
|
2156
2270
|
*
|
|
2271
|
+
* **Details**
|
|
2272
|
+
*
|
|
2157
2273
|
* The date will be time zone adjusted for `DateTime.Zoned`.
|
|
2158
2274
|
*
|
|
2159
2275
|
* **Example** (Updating DateTime parts)
|
|
@@ -2178,6 +2294,8 @@ export declare const setParts: {
|
|
|
2178
2294
|
/**
|
|
2179
2295
|
* Set the different parts of a `DateTime` as an object.
|
|
2180
2296
|
*
|
|
2297
|
+
* **Details**
|
|
2298
|
+
*
|
|
2181
2299
|
* The date will be time zone adjusted for `DateTime.Zoned`.
|
|
2182
2300
|
*
|
|
2183
2301
|
* **Example** (Updating DateTime parts)
|
|
@@ -2203,6 +2321,8 @@ export declare const setParts: {
|
|
|
2203
2321
|
/**
|
|
2204
2322
|
* Set the different parts of a `DateTime` as an object.
|
|
2205
2323
|
*
|
|
2324
|
+
* **Details**
|
|
2325
|
+
*
|
|
2206
2326
|
* The parts are always interpreted as UTC, ignoring any time zone information.
|
|
2207
2327
|
*
|
|
2208
2328
|
* **Example** (Updating UTC DateTime parts)
|
|
@@ -2226,6 +2346,8 @@ export declare const setPartsUtc: {
|
|
|
2226
2346
|
/**
|
|
2227
2347
|
* Set the different parts of a `DateTime` as an object.
|
|
2228
2348
|
*
|
|
2349
|
+
* **Details**
|
|
2350
|
+
*
|
|
2229
2351
|
* The parts are always interpreted as UTC, ignoring any time zone information.
|
|
2230
2352
|
*
|
|
2231
2353
|
* **Example** (Updating UTC DateTime parts)
|
|
@@ -2249,6 +2371,8 @@ export declare const setPartsUtc: {
|
|
|
2249
2371
|
/**
|
|
2250
2372
|
* Set the different parts of a `DateTime` as an object.
|
|
2251
2373
|
*
|
|
2374
|
+
* **Details**
|
|
2375
|
+
*
|
|
2252
2376
|
* The parts are always interpreted as UTC, ignoring any time zone information.
|
|
2253
2377
|
*
|
|
2254
2378
|
* **Example** (Updating UTC DateTime parts)
|
|
@@ -2276,6 +2400,8 @@ declare const CurrentTimeZone_base: Context.ServiceClass<CurrentTimeZone, "effec
|
|
|
2276
2400
|
* the current zone, such as `DateTime.setZoneCurrent` and
|
|
2277
2401
|
* `DateTime.nowInCurrentZone`.
|
|
2278
2402
|
*
|
|
2403
|
+
* **Details**
|
|
2404
|
+
*
|
|
2279
2405
|
* Provide it with `DateTime.withCurrentZone`, one of the `withCurrentZone*`
|
|
2280
2406
|
* helpers, or one of the `layerCurrentZone*` layers.
|
|
2281
2407
|
*
|
|
@@ -2457,6 +2583,8 @@ export declare const withCurrentZoneOffset: {
|
|
|
2457
2583
|
* Provide the `CurrentTimeZone` to an effect using an IANA time zone
|
|
2458
2584
|
* identifier.
|
|
2459
2585
|
*
|
|
2586
|
+
* **Details**
|
|
2587
|
+
*
|
|
2460
2588
|
* If the time zone is invalid, it will fail with an `IllegalArgumentError`.
|
|
2461
2589
|
*
|
|
2462
2590
|
* **Example** (Providing a named time zone)
|
|
@@ -2478,6 +2606,8 @@ export declare const withCurrentZoneNamed: {
|
|
|
2478
2606
|
* Provide the `CurrentTimeZone` to an effect using an IANA time zone
|
|
2479
2607
|
* identifier.
|
|
2480
2608
|
*
|
|
2609
|
+
* **Details**
|
|
2610
|
+
*
|
|
2481
2611
|
* If the time zone is invalid, it will fail with an `IllegalArgumentError`.
|
|
2482
2612
|
*
|
|
2483
2613
|
* **Example** (Providing a named time zone)
|
|
@@ -2499,6 +2629,8 @@ export declare const withCurrentZoneNamed: {
|
|
|
2499
2629
|
* Provide the `CurrentTimeZone` to an effect using an IANA time zone
|
|
2500
2630
|
* identifier.
|
|
2501
2631
|
*
|
|
2632
|
+
* **Details**
|
|
2633
|
+
*
|
|
2502
2634
|
* If the time zone is invalid, it will fail with an `IllegalArgumentError`.
|
|
2503
2635
|
*
|
|
2504
2636
|
* **Example** (Providing a named time zone)
|
|
@@ -2538,6 +2670,8 @@ export declare const nowInCurrentZone: Effect.Effect<Zoned, never, CurrentTimeZo
|
|
|
2538
2670
|
/**
|
|
2539
2671
|
* Modify a `DateTime` by applying a function to a cloned `Date` instance.
|
|
2540
2672
|
*
|
|
2673
|
+
* **Details**
|
|
2674
|
+
*
|
|
2541
2675
|
* The `Date` will first have the time zone applied if possible, and then be
|
|
2542
2676
|
* converted back to a `DateTime` within the same time zone.
|
|
2543
2677
|
*
|
|
@@ -2565,6 +2699,8 @@ export declare const mutate: {
|
|
|
2565
2699
|
/**
|
|
2566
2700
|
* Modify a `DateTime` by applying a function to a cloned `Date` instance.
|
|
2567
2701
|
*
|
|
2702
|
+
* **Details**
|
|
2703
|
+
*
|
|
2568
2704
|
* The `Date` will first have the time zone applied if possible, and then be
|
|
2569
2705
|
* converted back to a `DateTime` within the same time zone.
|
|
2570
2706
|
*
|
|
@@ -2594,6 +2730,8 @@ export declare const mutate: {
|
|
|
2594
2730
|
/**
|
|
2595
2731
|
* Modify a `DateTime` by applying a function to a cloned `Date` instance.
|
|
2596
2732
|
*
|
|
2733
|
+
* **Details**
|
|
2734
|
+
*
|
|
2597
2735
|
* The `Date` will first have the time zone applied if possible, and then be
|
|
2598
2736
|
* converted back to a `DateTime` within the same time zone.
|
|
2599
2737
|
*
|
|
@@ -2750,11 +2888,14 @@ export declare const mapEpochMillis: {
|
|
|
2750
2888
|
<A extends DateTime>(self: A, f: (millis: number) => number): A;
|
|
2751
2889
|
};
|
|
2752
2890
|
/**
|
|
2753
|
-
* Applies a function to a JavaScript `Date` representing the `DateTime`
|
|
2754
|
-
*
|
|
2891
|
+
* Applies a function to a JavaScript `Date` representing the `DateTime` and
|
|
2892
|
+
* returns the function's result.
|
|
2755
2893
|
*
|
|
2756
|
-
*
|
|
2757
|
-
*
|
|
2894
|
+
* **Details**
|
|
2895
|
+
*
|
|
2896
|
+
* The callback receives the time-zone-adjusted wall-clock date for
|
|
2897
|
+
* `DateTime.Zoned` values. Use `DateTime.withDateUtc` when the callback should
|
|
2898
|
+
* receive the UTC instant.
|
|
2758
2899
|
*
|
|
2759
2900
|
* **Example** (Using time zone adjusted Dates)
|
|
2760
2901
|
*
|
|
@@ -2772,11 +2913,14 @@ export declare const mapEpochMillis: {
|
|
|
2772
2913
|
*/
|
|
2773
2914
|
export declare const withDate: {
|
|
2774
2915
|
/**
|
|
2775
|
-
* Applies a function to a JavaScript `Date` representing the `DateTime`
|
|
2776
|
-
*
|
|
2916
|
+
* Applies a function to a JavaScript `Date` representing the `DateTime` and
|
|
2917
|
+
* returns the function's result.
|
|
2777
2918
|
*
|
|
2778
|
-
*
|
|
2779
|
-
*
|
|
2919
|
+
* **Details**
|
|
2920
|
+
*
|
|
2921
|
+
* The callback receives the time-zone-adjusted wall-clock date for
|
|
2922
|
+
* `DateTime.Zoned` values. Use `DateTime.withDateUtc` when the callback should
|
|
2923
|
+
* receive the UTC instant.
|
|
2780
2924
|
*
|
|
2781
2925
|
* **Example** (Using time zone adjusted Dates)
|
|
2782
2926
|
*
|
|
@@ -2794,11 +2938,14 @@ export declare const withDate: {
|
|
|
2794
2938
|
*/
|
|
2795
2939
|
<A>(f: (date: Date) => A): (self: DateTime) => A;
|
|
2796
2940
|
/**
|
|
2797
|
-
* Applies a function to a JavaScript `Date` representing the `DateTime`
|
|
2798
|
-
*
|
|
2941
|
+
* Applies a function to a JavaScript `Date` representing the `DateTime` and
|
|
2942
|
+
* returns the function's result.
|
|
2799
2943
|
*
|
|
2800
|
-
*
|
|
2801
|
-
*
|
|
2944
|
+
* **Details**
|
|
2945
|
+
*
|
|
2946
|
+
* The callback receives the time-zone-adjusted wall-clock date for
|
|
2947
|
+
* `DateTime.Zoned` values. Use `DateTime.withDateUtc` when the callback should
|
|
2948
|
+
* receive the UTC instant.
|
|
2802
2949
|
*
|
|
2803
2950
|
* **Example** (Using time zone adjusted Dates)
|
|
2804
2951
|
*
|
|
@@ -2820,6 +2967,8 @@ export declare const withDate: {
|
|
|
2820
2967
|
* Applies a function to a JavaScript `Date` representing the `DateTime`'s UTC
|
|
2821
2968
|
* instant and returns the function's result.
|
|
2822
2969
|
*
|
|
2970
|
+
* **Details**
|
|
2971
|
+
*
|
|
2823
2972
|
* This ignores any associated time zone. Use `DateTime.withDate` when the
|
|
2824
2973
|
* callback should receive the time-zone-adjusted wall-clock date.
|
|
2825
2974
|
*
|
|
@@ -2842,6 +2991,8 @@ export declare const withDateUtc: {
|
|
|
2842
2991
|
* Applies a function to a JavaScript `Date` representing the `DateTime`'s UTC
|
|
2843
2992
|
* instant and returns the function's result.
|
|
2844
2993
|
*
|
|
2994
|
+
* **Details**
|
|
2995
|
+
*
|
|
2845
2996
|
* This ignores any associated time zone. Use `DateTime.withDate` when the
|
|
2846
2997
|
* callback should receive the time-zone-adjusted wall-clock date.
|
|
2847
2998
|
*
|
|
@@ -2864,6 +3015,8 @@ export declare const withDateUtc: {
|
|
|
2864
3015
|
* Applies a function to a JavaScript `Date` representing the `DateTime`'s UTC
|
|
2865
3016
|
* instant and returns the function's result.
|
|
2866
3017
|
*
|
|
3018
|
+
* **Details**
|
|
3019
|
+
*
|
|
2867
3020
|
* This ignores any associated time zone. Use `DateTime.withDate` when the
|
|
2868
3021
|
* callback should receive the time-zone-adjusted wall-clock date.
|
|
2869
3022
|
*
|
|
@@ -3096,6 +3249,8 @@ export declare const subtractDuration: {
|
|
|
3096
3249
|
/**
|
|
3097
3250
|
* Add the given `amount` of `unit`'s to a `DateTime`.
|
|
3098
3251
|
*
|
|
3252
|
+
* **Details**
|
|
3253
|
+
*
|
|
3099
3254
|
* The time zone is taken into account when adding days, weeks, months, and
|
|
3100
3255
|
* years.
|
|
3101
3256
|
*
|
|
@@ -3117,6 +3272,8 @@ export declare const add: {
|
|
|
3117
3272
|
/**
|
|
3118
3273
|
* Add the given `amount` of `unit`'s to a `DateTime`.
|
|
3119
3274
|
*
|
|
3275
|
+
* **Details**
|
|
3276
|
+
*
|
|
3120
3277
|
* The time zone is taken into account when adding days, weeks, months, and
|
|
3121
3278
|
* years.
|
|
3122
3279
|
*
|
|
@@ -3138,6 +3295,8 @@ export declare const add: {
|
|
|
3138
3295
|
/**
|
|
3139
3296
|
* Add the given `amount` of `unit`'s to a `DateTime`.
|
|
3140
3297
|
*
|
|
3298
|
+
* **Details**
|
|
3299
|
+
*
|
|
3141
3300
|
* The time zone is taken into account when adding days, weeks, months, and
|
|
3142
3301
|
* years.
|
|
3143
3302
|
*
|
|
@@ -3215,6 +3374,8 @@ export declare const subtract: {
|
|
|
3215
3374
|
/**
|
|
3216
3375
|
* Converts a `DateTime` to the start of the given `part`.
|
|
3217
3376
|
*
|
|
3377
|
+
* **Details**
|
|
3378
|
+
*
|
|
3218
3379
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3219
3380
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3220
3381
|
*
|
|
@@ -3237,6 +3398,8 @@ export declare const startOf: {
|
|
|
3237
3398
|
/**
|
|
3238
3399
|
* Converts a `DateTime` to the start of the given `part`.
|
|
3239
3400
|
*
|
|
3401
|
+
* **Details**
|
|
3402
|
+
*
|
|
3240
3403
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3241
3404
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3242
3405
|
*
|
|
@@ -3261,6 +3424,8 @@ export declare const startOf: {
|
|
|
3261
3424
|
/**
|
|
3262
3425
|
* Converts a `DateTime` to the start of the given `part`.
|
|
3263
3426
|
*
|
|
3427
|
+
* **Details**
|
|
3428
|
+
*
|
|
3264
3429
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3265
3430
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3266
3431
|
*
|
|
@@ -3286,6 +3451,8 @@ export declare const startOf: {
|
|
|
3286
3451
|
/**
|
|
3287
3452
|
* Converts a `DateTime` to the end of the given `part`.
|
|
3288
3453
|
*
|
|
3454
|
+
* **Details**
|
|
3455
|
+
*
|
|
3289
3456
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3290
3457
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3291
3458
|
*
|
|
@@ -3308,6 +3475,8 @@ export declare const endOf: {
|
|
|
3308
3475
|
/**
|
|
3309
3476
|
* Converts a `DateTime` to the end of the given `part`.
|
|
3310
3477
|
*
|
|
3478
|
+
* **Details**
|
|
3479
|
+
*
|
|
3311
3480
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3312
3481
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3313
3482
|
*
|
|
@@ -3332,6 +3501,8 @@ export declare const endOf: {
|
|
|
3332
3501
|
/**
|
|
3333
3502
|
* Converts a `DateTime` to the end of the given `part`.
|
|
3334
3503
|
*
|
|
3504
|
+
* **Details**
|
|
3505
|
+
*
|
|
3335
3506
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3336
3507
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3337
3508
|
*
|
|
@@ -3357,6 +3528,8 @@ export declare const endOf: {
|
|
|
3357
3528
|
/**
|
|
3358
3529
|
* Converts a `DateTime` to the nearest given `part`.
|
|
3359
3530
|
*
|
|
3531
|
+
* **Details**
|
|
3532
|
+
*
|
|
3360
3533
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3361
3534
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3362
3535
|
*
|
|
@@ -3379,6 +3552,8 @@ export declare const nearest: {
|
|
|
3379
3552
|
/**
|
|
3380
3553
|
* Converts a `DateTime` to the nearest given `part`.
|
|
3381
3554
|
*
|
|
3555
|
+
* **Details**
|
|
3556
|
+
*
|
|
3382
3557
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3383
3558
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3384
3559
|
*
|
|
@@ -3403,6 +3578,8 @@ export declare const nearest: {
|
|
|
3403
3578
|
/**
|
|
3404
3579
|
* Converts a `DateTime` to the nearest given `part`.
|
|
3405
3580
|
*
|
|
3581
|
+
* **Details**
|
|
3582
|
+
*
|
|
3406
3583
|
* If the part is `week`, the `weekStartsOn` option can be used to specify the
|
|
3407
3584
|
* day of the week that the week starts on. The default is 0 (Sunday).
|
|
3408
3585
|
*
|
|
@@ -3428,6 +3605,8 @@ export declare const nearest: {
|
|
|
3428
3605
|
/**
|
|
3429
3606
|
* Formats a `DateTime` with `Intl.DateTimeFormat`.
|
|
3430
3607
|
*
|
|
3608
|
+
* **Details**
|
|
3609
|
+
*
|
|
3431
3610
|
* Unless a `timeZone` option is supplied, UTC values are formatted in UTC and
|
|
3432
3611
|
* zoned values are formatted in their named zone or fixed-offset zone.
|
|
3433
3612
|
*
|
|
@@ -3460,6 +3639,8 @@ export declare const format: {
|
|
|
3460
3639
|
/**
|
|
3461
3640
|
* Formats a `DateTime` with `Intl.DateTimeFormat`.
|
|
3462
3641
|
*
|
|
3642
|
+
* **Details**
|
|
3643
|
+
*
|
|
3463
3644
|
* Unless a `timeZone` option is supplied, UTC values are formatted in UTC and
|
|
3464
3645
|
* zoned values are formatted in their named zone or fixed-offset zone.
|
|
3465
3646
|
*
|
|
@@ -3494,6 +3675,8 @@ export declare const format: {
|
|
|
3494
3675
|
/**
|
|
3495
3676
|
* Formats a `DateTime` with `Intl.DateTimeFormat`.
|
|
3496
3677
|
*
|
|
3678
|
+
* **Details**
|
|
3679
|
+
*
|
|
3497
3680
|
* Unless a `timeZone` option is supplied, UTC values are formatted in UTC and
|
|
3498
3681
|
* zoned values are formatted in their named zone or fixed-offset zone.
|
|
3499
3682
|
*
|
|
@@ -3529,6 +3712,8 @@ export declare const format: {
|
|
|
3529
3712
|
/**
|
|
3530
3713
|
* Format a `DateTime` as a string using the `DateTimeFormat` API.
|
|
3531
3714
|
*
|
|
3715
|
+
* **Details**
|
|
3716
|
+
*
|
|
3532
3717
|
* It will use the system's local time zone & locale.
|
|
3533
3718
|
*
|
|
3534
3719
|
* **Example** (Formatting DateTime values locally)
|
|
@@ -3557,6 +3742,8 @@ export declare const formatLocal: {
|
|
|
3557
3742
|
/**
|
|
3558
3743
|
* Format a `DateTime` as a string using the `DateTimeFormat` API.
|
|
3559
3744
|
*
|
|
3745
|
+
* **Details**
|
|
3746
|
+
*
|
|
3560
3747
|
* It will use the system's local time zone & locale.
|
|
3561
3748
|
*
|
|
3562
3749
|
* **Example** (Formatting DateTime values locally)
|
|
@@ -3587,6 +3774,8 @@ export declare const formatLocal: {
|
|
|
3587
3774
|
/**
|
|
3588
3775
|
* Format a `DateTime` as a string using the `DateTimeFormat` API.
|
|
3589
3776
|
*
|
|
3777
|
+
* **Details**
|
|
3778
|
+
*
|
|
3590
3779
|
* It will use the system's local time zone & locale.
|
|
3591
3780
|
*
|
|
3592
3781
|
* **Example** (Formatting DateTime values locally)
|
|
@@ -3618,6 +3807,8 @@ export declare const formatLocal: {
|
|
|
3618
3807
|
/**
|
|
3619
3808
|
* Format a `DateTime` as a string using the `DateTimeFormat` API.
|
|
3620
3809
|
*
|
|
3810
|
+
* **Details**
|
|
3811
|
+
*
|
|
3621
3812
|
* This forces the time zone to be UTC.
|
|
3622
3813
|
*
|
|
3623
3814
|
* **Example** (Formatting DateTime values in UTC)
|
|
@@ -3649,6 +3840,8 @@ export declare const formatUtc: {
|
|
|
3649
3840
|
/**
|
|
3650
3841
|
* Format a `DateTime` as a string using the `DateTimeFormat` API.
|
|
3651
3842
|
*
|
|
3843
|
+
* **Details**
|
|
3844
|
+
*
|
|
3652
3845
|
* This forces the time zone to be UTC.
|
|
3653
3846
|
*
|
|
3654
3847
|
* **Example** (Formatting DateTime values in UTC)
|
|
@@ -3682,6 +3875,8 @@ export declare const formatUtc: {
|
|
|
3682
3875
|
/**
|
|
3683
3876
|
* Format a `DateTime` as a string using the `DateTimeFormat` API.
|
|
3684
3877
|
*
|
|
3878
|
+
* **Details**
|
|
3879
|
+
*
|
|
3685
3880
|
* This forces the time zone to be UTC.
|
|
3686
3881
|
*
|
|
3687
3882
|
* **Example** (Formatting DateTime values in UTC)
|
|
@@ -3801,6 +3996,8 @@ export declare const formatIntl: {
|
|
|
3801
3996
|
/**
|
|
3802
3997
|
* Format a `DateTime` as a UTC ISO string.
|
|
3803
3998
|
*
|
|
3999
|
+
* **Details**
|
|
4000
|
+
*
|
|
3804
4001
|
* Always returns the UTC representation in ISO 8601 format, ignoring any time zone.
|
|
3805
4002
|
*
|
|
3806
4003
|
* **Example** (Formatting DateTime values as ISO strings)
|
|
@@ -3824,6 +4021,8 @@ export declare const formatIso: (self: DateTime) => string;
|
|
|
3824
4021
|
/**
|
|
3825
4022
|
* Format a `DateTime` as a time zone adjusted ISO date string.
|
|
3826
4023
|
*
|
|
4024
|
+
* **Details**
|
|
4025
|
+
*
|
|
3827
4026
|
* Returns only the date part (YYYY-MM-DD) after applying time zone adjustments.
|
|
3828
4027
|
*
|
|
3829
4028
|
* **Example** (Formatting DateTime values as ISO dates)
|
|
@@ -3847,6 +4046,8 @@ export declare const formatIsoDate: (self: DateTime) => string;
|
|
|
3847
4046
|
/**
|
|
3848
4047
|
* Format a `DateTime` as a UTC ISO date string.
|
|
3849
4048
|
*
|
|
4049
|
+
* **Details**
|
|
4050
|
+
*
|
|
3850
4051
|
* Returns only the date part (YYYY-MM-DD) in UTC, ignoring any time zone.
|
|
3851
4052
|
*
|
|
3852
4053
|
* **Example** (Formatting DateTime values as UTC ISO dates)
|
|
@@ -3870,6 +4071,8 @@ export declare const formatIsoDateUtc: (self: DateTime) => string;
|
|
|
3870
4071
|
/**
|
|
3871
4072
|
* Format a `DateTime.Zoned` as an ISO string with an offset.
|
|
3872
4073
|
*
|
|
4074
|
+
* **Details**
|
|
4075
|
+
*
|
|
3873
4076
|
* For `DateTime.Utc`, returns the same as `formatIso`. For `DateTime.Zoned`,
|
|
3874
4077
|
* includes the time zone offset in the format.
|
|
3875
4078
|
*
|
|
@@ -3894,6 +4097,8 @@ export declare const formatIsoOffset: (self: DateTime) => string;
|
|
|
3894
4097
|
/**
|
|
3895
4098
|
* Format a `DateTime.Zoned` as a string.
|
|
3896
4099
|
*
|
|
4100
|
+
* **Details**
|
|
4101
|
+
*
|
|
3897
4102
|
* It uses the format: `YYYY-MM-DDTHH:mm:ss.sss+HH:MM[Time/Zone]`.
|
|
3898
4103
|
*
|
|
3899
4104
|
* **Example** (Formatting zoned DateTime values)
|
|
@@ -3923,6 +4128,8 @@ export declare const formatIsoZoned: (self: Zoned) => string;
|
|
|
3923
4128
|
/**
|
|
3924
4129
|
* Create a Layer from the given time zone.
|
|
3925
4130
|
*
|
|
4131
|
+
* **Details**
|
|
4132
|
+
*
|
|
3926
4133
|
* This layer provides the `CurrentTimeZone` service with the specified time zone.
|
|
3927
4134
|
*
|
|
3928
4135
|
* **Example** (Providing current time zone layers)
|
|
@@ -3949,6 +4156,8 @@ export declare const layerCurrentZone: (resource: NoInfer<TimeZone>) => Layer.La
|
|
|
3949
4156
|
/**
|
|
3950
4157
|
* Create a Layer from the given time zone offset.
|
|
3951
4158
|
*
|
|
4159
|
+
* **Details**
|
|
4160
|
+
*
|
|
3952
4161
|
* This layer provides the `CurrentTimeZone` service with a fixed offset time zone.
|
|
3953
4162
|
*
|
|
3954
4163
|
* **Example** (Providing fixed-offset time zone layers)
|
|
@@ -3974,6 +4183,8 @@ export declare const layerCurrentZoneOffset: (offset: number) => Layer.Layer<Cur
|
|
|
3974
4183
|
/**
|
|
3975
4184
|
* Create a Layer from the given IANA time zone identifier.
|
|
3976
4185
|
*
|
|
4186
|
+
* **Details**
|
|
4187
|
+
*
|
|
3977
4188
|
* This layer provides the `CurrentTimeZone` service with a named time zone.
|
|
3978
4189
|
* If the time zone identifier is invalid, the layer will fail.
|
|
3979
4190
|
*
|
|
@@ -3999,6 +4210,8 @@ export declare const layerCurrentZoneNamed: (zoneId: string) => Layer.Layer<Curr
|
|
|
3999
4210
|
/**
|
|
4000
4211
|
* Create a Layer from the system's local time zone.
|
|
4001
4212
|
*
|
|
4213
|
+
* **Details**
|
|
4214
|
+
*
|
|
4002
4215
|
* This layer provides the `CurrentTimeZone` service using the system's
|
|
4003
4216
|
* configured local time zone.
|
|
4004
4217
|
*
|