effect 4.0.0-beta.66 → 4.0.0-beta.67
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 +113 -67
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +28 -18
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +404 -337
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +190 -146
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +167 -97
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +87 -47
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +62 -31
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +30 -15
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +20 -1
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +16 -0
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +236 -132
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +133 -57
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +74 -62
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +43 -36
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +1518 -575
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +661 -287
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +119 -10
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +45 -6
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +548 -379
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +238 -170
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +15 -8
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js +8 -4
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +2 -4
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +2 -4
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +4 -2
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +2 -2
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +1 -1
- package/dist/ConfigProvider.js +1 -1
- package/dist/Console.d.ts +76 -50
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +69 -46
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +383 -134
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +134 -54
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +69 -48
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +96 -36
- package/dist/Cron.js.map +1 -1
- package/dist/Data.d.ts +3 -2
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +874 -443
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +374 -215
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +367 -174
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +145 -71
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +42 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Differ.js +36 -0
- package/dist/Duration.d.ts +329 -185
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +174 -106
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +2109 -1945
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +901 -726
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +37 -2
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +2 -2
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +78 -28
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +75 -27
- package/dist/Encoding.js.map +1 -1
- package/dist/Equivalence.d.ts +14 -19
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +14 -19
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +66 -82
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +38 -29
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +94 -9
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +20 -5
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +7 -5
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +72 -40
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +39 -21
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +117 -56
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +120 -38
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +286 -158
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +174 -72
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +92 -51
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +96 -33
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +104 -73
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +53 -39
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +166 -88
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +68 -42
- package/dist/Filter.js.map +1 -1
- package/dist/Function.d.ts +154 -86
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +53 -37
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +682 -365
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +308 -157
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +29 -13
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +31 -18
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +25 -15
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +444 -256
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +223 -105
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +36 -17
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +75 -8
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +194 -104
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js +93 -38
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +20 -9
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +16 -6
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +309 -149
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +129 -65
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +4 -3
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +4 -3
- package/dist/JsonPatch.js.map +1 -1
- package/dist/Latch.d.ts +98 -15
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +41 -10
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +412 -309
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +261 -180
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +95 -21
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +55 -11
- package/dist/LayerMap.js.map +1 -1
- package/dist/LogLevel.d.ts +92 -131
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +25 -15
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +155 -99
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +211 -184
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +75 -17
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +22 -16
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +133 -157
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +85 -76
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +325 -284
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +217 -212
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +117 -58
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +52 -29
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +52 -30
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +94 -38
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +92 -49
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +123 -71
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +99 -62
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +79 -60
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +3 -0
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +36 -39
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +34 -20
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +116 -64
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +54 -30
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +1 -2
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +0 -1
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +28 -47
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +14 -12
- package/dist/Option.js.map +1 -1
- package/dist/Ordering.d.ts +43 -28
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +4 -2
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +225 -40
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +113 -17
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +77 -13
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +48 -4
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +71 -15
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +59 -12
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +74 -6
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +68 -5
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +66 -31
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +26 -24
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +16 -21
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +9 -14
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +9 -2
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +7 -1
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +364 -262
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +245 -174
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +94 -25
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +61 -13
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +284 -150
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +216 -113
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +54 -35
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +36 -24
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +151 -141
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +66 -20
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +69 -32
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js +33 -16
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +273 -129
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +117 -57
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +3 -3
- package/dist/Redactable.js +2 -2
- package/dist/Redacted.d.ts +63 -33
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +30 -14
- package/dist/Redacted.js.map +1 -1
- package/dist/Ref.d.ts +81 -52
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +54 -35
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +73 -31
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +66 -30
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts +11 -5
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +11 -5
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +158 -34
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +67 -12
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +261 -116
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +77 -41
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +13 -7
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +44 -6
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +16 -14
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +6 -6
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +43 -18
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +35 -16
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +545 -576
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +260 -246
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +43 -6
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +33 -4
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +803 -282
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +281 -189
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +24 -15
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +13 -9
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +26 -13
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +22 -9
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +1 -8
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +194 -25
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +220 -26
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +61 -41
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +56 -33
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +7 -0
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +23 -0
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +102 -43
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +57 -23
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +138 -46
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +80 -19
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +28 -8
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +25 -5
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +64 -28
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +22 -13
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +458 -200
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +240 -89
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +43 -6
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +33 -4
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +1896 -1183
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +867 -524
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +171 -95
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +125 -67
- package/dist/String.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +308 -203
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +125 -76
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +13 -5
- package/dist/Symbol.d.ts.map +1 -1
- package/dist/Symbol.js +13 -5
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +278 -62
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +116 -23
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Take.d.ts +26 -2
- package/dist/Take.d.ts.map +1 -1
- package/dist/Take.js +4 -1
- package/dist/Take.js.map +1 -1
- package/dist/Terminal.d.ts +39 -7
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +10 -4
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +229 -55
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +94 -18
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +213 -142
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +88 -60
- package/dist/Trie.js.map +1 -1
- package/dist/TxChunk.d.ts +182 -146
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +73 -56
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +43 -29
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +22 -15
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +362 -222
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +171 -98
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +178 -104
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +84 -43
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +93 -62
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +54 -36
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +77 -49
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +60 -37
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +279 -241
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +147 -101
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +69 -46
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +48 -32
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +69 -40
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +34 -19
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +101 -54
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +76 -34
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +72 -48
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +33 -22
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +34 -34
- package/dist/UndefinedOr.d.ts +48 -25
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +28 -25
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +71 -116
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +20 -6
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +4 -0
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +4 -0
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +81 -32
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +81 -32
- package/dist/index.js.map +1 -1
- package/dist/internal/schema/schema.js +1 -1
- package/dist/internal/schema/schema.js.map +1 -1
- package/dist/testing/FastCheck.d.ts +6 -3
- package/dist/testing/FastCheck.d.ts.map +1 -1
- package/dist/testing/FastCheck.js +6 -3
- package/dist/testing/FastCheck.js.map +1 -1
- package/dist/testing/TestClock.d.ts +39 -34
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestClock.js +42 -12
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +39 -30
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +25 -10
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.js +7 -7
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +197 -130
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +166 -102
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js +2 -2
- package/dist/unstable/ai/Chat.d.ts +65 -41
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +51 -33
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +12 -11
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +9 -8
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +28 -18
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +18 -11
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +31 -25
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +20 -14
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +339 -119
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +264 -98
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +53 -19
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +63 -15
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +8 -6
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +7 -5
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +2 -2
- package/dist/unstable/ai/Prompt.d.ts +194 -168
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +75 -66
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +153 -140
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +43 -48
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +43 -4
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +27 -2
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +42 -32
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +14 -10
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +13 -8
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +10 -6
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +153 -84
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +97 -44
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +32 -39
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +7 -5
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/ai/index.d.ts +42 -24
- package/dist/unstable/ai/index.d.ts.map +1 -1
- package/dist/unstable/ai/index.js +42 -24
- package/dist/unstable/ai/index.js.map +1 -1
- package/dist/unstable/cli/Argument.d.ts +226 -134
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js +101 -65
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +72 -26
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +86 -23
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/CliOutput.d.ts +43 -13
- package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
- package/dist/unstable/cli/CliOutput.js +30 -6
- package/dist/unstable/cli/CliOutput.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +194 -113
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +45 -31
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Completions.d.ts +7 -7
- package/dist/unstable/cli/Completions.js +1 -1
- package/dist/unstable/cli/Flag.d.ts +235 -142
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +111 -71
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +41 -13
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +30 -7
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/HelpDoc.d.ts +35 -10
- package/dist/unstable/cli/HelpDoc.d.ts.map +1 -1
- package/dist/unstable/cli/HelpDoc.js +21 -0
- package/dist/unstable/cli/Param.d.ts +79 -31
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +160 -98
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +79 -42
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +66 -35
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +177 -45
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +103 -21
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/ansi.d.ts.map +1 -1
- package/dist/unstable/cli/internal/ansi.js +13 -0
- package/dist/unstable/cli/internal/ansi.js.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts +5 -1
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.js +5 -1
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cli/internal/config.d.ts +3 -0
- package/dist/unstable/cli/internal/config.d.ts.map +1 -1
- package/dist/unstable/cli/internal/config.js.map +1 -1
- package/dist/unstable/cli/internal/lexer.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +35 -1
- package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js +35 -1
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterError.d.ts +56 -7
- package/dist/unstable/cluster/ClusterError.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterError.js +56 -7
- package/dist/unstable/cluster/ClusterError.js.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.d.ts +39 -5
- package/dist/unstable/cluster/ClusterMetrics.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.js +39 -5
- package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +61 -8
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +61 -8
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +14 -2
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +35 -2
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +39 -4
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js +11 -3
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +75 -16
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +75 -10
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityAddress.d.ts +30 -2
- package/dist/unstable/cluster/EntityAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityAddress.js +30 -2
- package/dist/unstable/cluster/EntityAddress.js.map +1 -1
- package/dist/unstable/cluster/EntityId.d.ts +18 -3
- package/dist/unstable/cluster/EntityId.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityId.js +15 -2
- package/dist/unstable/cluster/EntityId.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +34 -2
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js +24 -2
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +17 -2
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js +40 -8
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +43 -6
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +11 -4
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/EntityType.d.ts +27 -3
- package/dist/unstable/cluster/EntityType.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityType.js +24 -2
- package/dist/unstable/cluster/EntityType.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +105 -23
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +88 -14
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +88 -13
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +88 -13
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +49 -6
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +31 -6
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/MachineId.d.ts +24 -3
- package/dist/unstable/cluster/MachineId.d.ts.map +1 -1
- package/dist/unstable/cluster/MachineId.js +21 -2
- package/dist/unstable/cluster/MachineId.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +102 -13
- package/dist/unstable/cluster/Message.d.ts.map +1 -1
- package/dist/unstable/cluster/Message.js +86 -10
- package/dist/unstable/cluster/Message.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +127 -21
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +70 -10
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +101 -12
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +64 -8
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +47 -17
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +47 -17
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts +34 -2
- package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js +34 -2
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +40 -12
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +40 -12
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +7 -4
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +31 -4
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts +42 -5
- package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.js +38 -4
- package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +73 -10
- package/dist/unstable/cluster/Runners.d.ts.map +1 -1
- package/dist/unstable/cluster/Runners.js +70 -9
- package/dist/unstable/cluster/Runners.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +51 -5
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +47 -4
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +10 -2
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +35 -4
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +65 -9
- package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.js +66 -9
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +27 -6
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js +28 -4
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts +23 -1
- package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SingleRunner.js +23 -1
- package/dist/unstable/cluster/SingleRunner.js.map +1 -1
- package/dist/unstable/cluster/Singleton.d.ts +15 -1
- package/dist/unstable/cluster/Singleton.d.ts.map +1 -1
- package/dist/unstable/cluster/Singleton.js +15 -1
- package/dist/unstable/cluster/Singleton.js.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +21 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +21 -1
- package/dist/unstable/cluster/SingletonAddress.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +89 -19
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +48 -13
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +8 -2
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +29 -2
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.d.ts +11 -3
- package/dist/unstable/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js +27 -3
- package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts +11 -3
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.js +46 -7
- package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +18 -1
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +18 -1
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/cluster/internal/hash.js +12 -0
- package/dist/unstable/cluster/internal/hash.js.map +1 -1
- package/dist/unstable/devtools/DevTools.d.ts +26 -3
- package/dist/unstable/devtools/DevTools.d.ts.map +1 -1
- package/dist/unstable/devtools/DevTools.js +26 -3
- package/dist/unstable/devtools/DevTools.js.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.d.ts +20 -5
- package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +32 -5
- package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts +184 -44
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +102 -20
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +27 -2
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +21 -1
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +81 -12
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +75 -9
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +149 -21
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +97 -13
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +109 -18
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +69 -13
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +115 -30
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js +22 -2
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +50 -17
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +24 -6
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +104 -20
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +108 -16
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +151 -31
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +111 -20
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +42 -6
- package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +38 -5
- package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +92 -18
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +72 -16
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +35 -8
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +54 -8
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +17 -3
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +17 -3
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +32 -6
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +52 -6
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +74 -16
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +90 -16
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +59 -15
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +73 -14
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts +10 -2
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +28 -2
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +32 -3
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +32 -3
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts +10 -2
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +28 -2
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +156 -77
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +93 -39
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +40 -7
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js +27 -4
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +29 -3
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +33 -4
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/FindMyWay.d.ts +1 -1
- package/dist/unstable/http/FindMyWay.js +1 -1
- package/dist/unstable/http/Headers.d.ts +182 -36
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +86 -16
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +114 -26
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +98 -20
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +205 -96
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +84 -38
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts +68 -12
- package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientError.js +71 -9
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +318 -100
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +151 -45
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +59 -16
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +44 -11
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +42 -16
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +33 -13
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.d.ts +47 -7
- package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.js +44 -6
- package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +35 -5
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +23 -1
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts +37 -11
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.js +52 -10
- package/dist/unstable/http/HttpMiddleware.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +34 -3
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +34 -3
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +194 -45
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +118 -24
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +151 -22
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +76 -11
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +90 -10
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +82 -8
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +125 -21
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +101 -20
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts +32 -6
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +43 -5
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +390 -67
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +204 -33
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +22 -4
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +22 -4
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +53 -6
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +47 -5
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +178 -28
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +129 -19
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Multipasta/HeadersParser.d.ts +1 -1
- package/dist/unstable/http/Multipasta/HeadersParser.js +1 -1
- package/dist/unstable/http/Multipasta/Node.d.ts +1 -1
- package/dist/unstable/http/Multipasta/Node.js +1 -1
- package/dist/unstable/http/Multipasta/Search.d.ts +1 -1
- package/dist/unstable/http/Multipasta/Search.js +1 -1
- package/dist/unstable/http/Multipasta/Web.d.ts +1 -1
- package/dist/unstable/http/Multipasta/Web.js +1 -1
- package/dist/unstable/http/Multipasta.d.ts +1 -1
- package/dist/unstable/http/Multipasta.js +1 -1
- package/dist/unstable/http/Template.d.ts +53 -0
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +26 -0
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +56 -42
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +29 -15
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +233 -49
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +116 -23
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +49 -14
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +14 -8
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +55 -16
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +44 -6
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts +58 -15
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +42 -6
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +214 -59
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +53 -9
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +81 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.js +98 -1
- package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +87 -20
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js +5 -2
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +111 -22
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +47 -5
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +19 -4
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +32 -2
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +67 -30
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +48 -27
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +74 -17
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +38 -5
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts +5 -2
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +24 -2
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +6 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +26 -1
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +86 -15
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +73 -15
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +33 -3
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js +14 -3
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts +8 -1
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +32 -1
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +14 -2
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +29 -2
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +15 -4
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +32 -2
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +49 -12
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +47 -5
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.d.ts +28 -3
- package/dist/unstable/observability/OtlpSerialization.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.js +28 -3
- package/dist/unstable/observability/OtlpSerialization.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts +16 -2
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +32 -2
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +32 -12
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +7 -5
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/observability/index.d.ts +2 -1
- package/dist/unstable/observability/index.d.ts.map +1 -1
- package/dist/unstable/observability/index.js +2 -1
- package/dist/unstable/observability/index.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +93 -18
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +81 -21
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +76 -15
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +22 -5
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +27 -2
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +24 -1
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +73 -16
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +60 -13
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts +97 -16
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +90 -14
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +97 -21
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +81 -16
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts +26 -5
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +36 -4
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +87 -64
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +24 -17
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +22 -11
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +11 -6
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/process/index.d.ts +2 -1
- package/dist/unstable/process/index.d.ts.map +1 -1
- package/dist/unstable/process/index.js +2 -1
- package/dist/unstable/process/index.js.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.d.ts +196 -59
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +121 -36
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +539 -130
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +252 -58
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +41 -2
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +35 -1
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +51 -7
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +29 -3
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +135 -21
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +69 -10
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +36 -2
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +29 -1
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +28 -5
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +35 -3
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +95 -13
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +61 -7
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +255 -56
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +44 -11
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts +81 -19
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +52 -12
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +26 -2
- package/dist/unstable/rpc/RpcClientError.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClientError.js +26 -2
- package/dist/unstable/rpc/RpcClientError.js.map +1 -1
- package/dist/unstable/rpc/RpcGroup.d.ts +51 -8
- package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcGroup.js +3 -1
- package/dist/unstable/rpc/RpcGroup.js.map +1 -1
- package/dist/unstable/rpc/RpcMessage.d.ts +128 -32
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js +23 -7
- package/dist/unstable/rpc/RpcMessage.js.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +100 -20
- package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +39 -3
- package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +38 -4
- package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSchema.js +34 -3
- package/dist/unstable/rpc/RpcSchema.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +60 -13
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +56 -12
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +73 -23
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +69 -22
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/rpc/RpcTest.d.ts +20 -1
- package/dist/unstable/rpc/RpcTest.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcTest.js +20 -1
- package/dist/unstable/rpc/RpcTest.js.map +1 -1
- package/dist/unstable/rpc/RpcWorker.d.ts +40 -6
- package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcWorker.js +16 -4
- package/dist/unstable/rpc/RpcWorker.js.map +1 -1
- package/dist/unstable/rpc/Utils.d.ts +8 -0
- package/dist/unstable/rpc/Utils.d.ts.map +1 -1
- package/dist/unstable/rpc/Utils.js +8 -0
- package/dist/unstable/rpc/Utils.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +130 -52
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +79 -34
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +104 -24
- package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
- package/dist/unstable/schema/VariantSchema.js +22 -6
- package/dist/unstable/schema/VariantSchema.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +167 -34
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +123 -28
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.d.ts +58 -10
- package/dist/unstable/socket/SocketServer.d.ts.map +1 -1
- package/dist/unstable/socket/SocketServer.js +43 -5
- package/dist/unstable/socket/SocketServer.js.map +1 -1
- package/dist/unstable/sql/Migrator.d.ts +35 -4
- package/dist/unstable/sql/Migrator.d.ts.map +1 -1
- package/dist/unstable/sql/Migrator.js +44 -4
- package/dist/unstable/sql/Migrator.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +34 -2
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +38 -1
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +31 -0
- package/dist/unstable/sql/SqlConnection.d.ts.map +1 -1
- package/dist/unstable/sql/SqlConnection.js +22 -0
- package/dist/unstable/sql/SqlConnection.js.map +1 -1
- package/dist/unstable/sql/SqlError.d.ts +99 -0
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js +114 -0
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlModel.d.ts +26 -5
- package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
- package/dist/unstable/sql/SqlModel.js +8 -4
- package/dist/unstable/sql/SqlModel.js.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +56 -13
- package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.js +44 -10
- package/dist/unstable/sql/SqlResolver.js.map +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +29 -8
- package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
- package/dist/unstable/sql/SqlSchema.js +29 -8
- package/dist/unstable/sql/SqlSchema.js.map +1 -1
- package/dist/unstable/sql/SqlStream.d.ts +3 -0
- package/dist/unstable/sql/SqlStream.d.ts.map +1 -1
- package/dist/unstable/sql/SqlStream.js +23 -0
- package/dist/unstable/sql/SqlStream.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +124 -0
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +82 -0
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/sql/index.d.ts +1 -1
- package/dist/unstable/sql/index.js +1 -1
- package/dist/unstable/workers/Transferable.d.ts +65 -13
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +53 -10
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +60 -8
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +43 -4
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts +31 -9
- package/dist/unstable/workers/WorkerError.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerError.js +44 -7
- package/dist/unstable/workers/WorkerError.js.map +1 -1
- package/dist/unstable/workers/WorkerRunner.d.ts +32 -3
- package/dist/unstable/workers/WorkerRunner.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerRunner.js +24 -1
- package/dist/unstable/workers/WorkerRunner.js.map +1 -1
- package/dist/unstable/workers/index.d.ts +1 -1
- package/dist/unstable/workers/index.js +1 -1
- package/dist/unstable/workflow/Activity.d.ts +61 -10
- package/dist/unstable/workflow/Activity.d.ts.map +1 -1
- package/dist/unstable/workflow/Activity.js +20 -5
- package/dist/unstable/workflow/Activity.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +12 -3
- package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableClock.js +22 -2
- package/dist/unstable/workflow/DurableClock.js.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +126 -31
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +76 -13
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +30 -7
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +23 -5
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +100 -31
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +75 -19
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +40 -5
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +16 -4
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.d.ts +32 -2
- package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.js +2 -2
- package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts +36 -2
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.js +12 -6
- package/dist/unstable/workflow/WorkflowProxyServer.js.map +1 -1
- package/package.json +11 -11
- package/src/Array.ts +113 -67
- package/src/BigDecimal.ts +404 -337
- package/src/BigInt.ts +167 -97
- package/src/Boolean.ts +62 -31
- package/src/Brand.ts +20 -1
- package/src/Cache.ts +331 -164
- package/src/Cause.ts +74 -62
- package/src/Channel.ts +1585 -607
- package/src/ChannelSchema.ts +137 -12
- package/src/Chunk.ts +549 -380
- package/src/Clock.ts +15 -8
- package/src/Combiner.ts +2 -4
- package/src/Config.ts +4 -2
- package/src/ConfigProvider.ts +1 -1
- package/src/Console.ts +88 -58
- package/src/Context.ts +384 -135
- package/src/Cron.ts +111 -48
- package/src/Data.ts +3 -2
- package/src/DateTime.ts +874 -443
- package/src/Deferred.ts +367 -174
- package/src/Differ.ts +42 -0
- package/src/Duration.ts +329 -185
- package/src/Effect.ts +2127 -1957
- package/src/Effectable.ts +37 -2
- package/src/Encoding.ts +78 -28
- package/src/Equivalence.ts +14 -19
- package/src/ErrorReporter.ts +66 -82
- package/src/ExecutionPlan.ts +94 -9
- package/src/Exit.ts +7 -5
- package/src/Fiber.ts +72 -40
- package/src/FiberHandle.ts +156 -56
- package/src/FiberMap.ts +327 -162
- package/src/FiberSet.ts +129 -51
- package/src/FileSystem.ts +106 -74
- package/src/Filter.ts +166 -88
- package/src/Function.ts +154 -86
- package/src/Graph.ts +682 -365
- package/src/HKT.ts +29 -13
- package/src/Hash.ts +31 -18
- package/src/HashMap.ts +444 -256
- package/src/HashRing.ts +94 -17
- package/src/HashSet.ts +194 -104
- package/src/Inspectable.ts +22 -10
- package/src/Iterable.ts +309 -149
- package/src/JsonPatch.ts +4 -3
- package/src/Latch.ts +98 -15
- package/src/Layer.ts +487 -344
- package/src/LayerMap.ts +95 -21
- package/src/LogLevel.ts +92 -131
- package/src/Logger.ts +357 -288
- package/src/ManagedRuntime.ts +75 -17
- package/src/Match.ts +133 -157
- package/src/Metric.ts +355 -304
- package/src/MutableHashMap.ts +161 -84
- package/src/MutableHashSet.ts +122 -52
- package/src/MutableList.ts +141 -81
- package/src/MutableRef.ts +130 -90
- package/src/Newtype.ts +3 -0
- package/src/NonEmptyIterable.ts +36 -39
- package/src/Number.ts +116 -64
- package/src/Optic.ts +1 -2
- package/src/Option.ts +28 -47
- package/src/Ordering.ts +43 -28
- package/src/PartitionedSemaphore.ts +225 -40
- package/src/Path.ts +77 -13
- package/src/Pipeable.ts +76 -21
- package/src/PlatformError.ts +74 -6
- package/src/Pool.ts +94 -31
- package/src/Predicate.ts +16 -21
- package/src/PrimaryKey.ts +9 -2
- package/src/PubSub.ts +364 -262
- package/src/Pull.ts +94 -25
- package/src/Queue.ts +284 -150
- package/src/Random.ts +54 -35
- package/src/RcMap.ts +151 -141
- package/src/RcRef.ts +69 -32
- package/src/Record.ts +273 -129
- package/src/Redactable.ts +3 -3
- package/src/Redacted.ts +63 -33
- package/src/Ref.ts +161 -104
- package/src/References.ts +73 -31
- package/src/RegExp.ts +11 -5
- package/src/Request.ts +158 -34
- package/src/RequestResolver.ts +277 -119
- package/src/Resource.ts +45 -7
- package/src/Result.ts +18 -16
- package/src/Runtime.ts +45 -19
- package/src/Schedule.ts +574 -599
- package/src/Scheduler.ts +43 -6
- package/src/Schema.ts +819 -295
- package/src/SchemaAST.ts +25 -16
- package/src/SchemaGetter.ts +29 -14
- package/src/SchemaIssue.ts +1 -8
- package/src/SchemaParser.ts +262 -38
- package/src/SchemaTransformation.ts +61 -41
- package/src/SchemaUtils.ts +23 -0
- package/src/Scope.ts +102 -43
- package/src/ScopedCache.ts +192 -56
- package/src/ScopedRef.ts +28 -8
- package/src/Semaphore.ts +64 -28
- package/src/Sink.ts +458 -200
- package/src/Stdio.ts +43 -6
- package/src/Stream.ts +2039 -1252
- package/src/String.ts +171 -95
- package/src/SubscriptionRef.ts +308 -203
- package/src/Symbol.ts +13 -5
- package/src/SynchronizedRef.ts +278 -62
- package/src/Take.ts +26 -2
- package/src/Terminal.ts +40 -7
- package/src/Tracer.ts +229 -55
- package/src/Trie.ts +213 -142
- package/src/TxChunk.ts +182 -146
- package/src/TxDeferred.ts +43 -29
- package/src/TxHashMap.ts +370 -230
- package/src/TxHashSet.ts +250 -152
- package/src/TxPriorityQueue.ts +96 -64
- package/src/TxPubSub.ts +77 -49
- package/src/TxQueue.ts +279 -241
- package/src/TxReentrantLock.ts +70 -47
- package/src/TxRef.ts +69 -40
- package/src/TxSemaphore.ts +101 -54
- package/src/TxSubscriptionRef.ts +72 -48
- package/src/Types.ts +34 -34
- package/src/UndefinedOr.ts +48 -25
- package/src/Unify.ts +71 -116
- package/src/Utils.ts +4 -0
- package/src/index.ts +81 -32
- package/src/internal/schema/schema.ts +1 -1
- package/src/testing/FastCheck.ts +6 -3
- package/src/testing/TestClock.ts +63 -34
- package/src/testing/TestConsole.ts +49 -30
- package/src/testing/TestSchema.ts +8 -8
- package/src/unstable/ai/AiError.ts +187 -120
- package/src/unstable/ai/AnthropicStructuredOutput.ts +2 -2
- package/src/unstable/ai/Chat.ts +69 -43
- package/src/unstable/ai/EmbeddingModel.ts +12 -11
- package/src/unstable/ai/IdGenerator.ts +28 -18
- package/src/unstable/ai/LanguageModel.ts +35 -27
- package/src/unstable/ai/McpSchema.ts +339 -119
- package/src/unstable/ai/McpServer.ts +76 -19
- package/src/unstable/ai/Model.ts +8 -6
- package/src/unstable/ai/OpenAiStructuredOutput.ts +2 -2
- package/src/unstable/ai/Prompt.ts +210 -184
- package/src/unstable/ai/Response.ts +159 -147
- package/src/unstable/ai/ResponseIdTracker.ts +43 -4
- package/src/unstable/ai/Telemetry.ts +42 -32
- package/src/unstable/ai/Tokenizer.ts +13 -8
- package/src/unstable/ai/Tool.ts +154 -85
- package/src/unstable/ai/Toolkit.ts +51 -46
- package/src/unstable/ai/index.ts +42 -24
- package/src/unstable/cli/Argument.ts +226 -134
- package/src/unstable/cli/CliError.ts +96 -26
- package/src/unstable/cli/CliOutput.ts +43 -13
- package/src/unstable/cli/Command.ts +194 -113
- package/src/unstable/cli/Completions.ts +7 -7
- package/src/unstable/cli/Flag.ts +235 -142
- package/src/unstable/cli/GlobalFlag.ts +41 -13
- package/src/unstable/cli/HelpDoc.ts +35 -10
- package/src/unstable/cli/Param.ts +327 -189
- package/src/unstable/cli/Primitive.ts +79 -42
- package/src/unstable/cli/Prompt.ts +201 -45
- package/src/unstable/cli/internal/ansi.ts +13 -0
- package/src/unstable/cli/internal/command.ts +5 -1
- package/src/unstable/cli/internal/config.ts +3 -0
- package/src/unstable/cli/internal/lexer.ts +11 -0
- package/src/unstable/cluster/ClusterCron.ts +35 -1
- package/src/unstable/cluster/ClusterError.ts +56 -7
- package/src/unstable/cluster/ClusterMetrics.ts +39 -5
- package/src/unstable/cluster/ClusterSchema.ts +61 -8
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +35 -2
- package/src/unstable/cluster/DeliverAt.ts +39 -4
- package/src/unstable/cluster/Entity.ts +107 -16
- package/src/unstable/cluster/EntityAddress.ts +30 -2
- package/src/unstable/cluster/EntityId.ts +18 -3
- package/src/unstable/cluster/EntityProxy.ts +34 -2
- package/src/unstable/cluster/EntityProxyServer.ts +44 -8
- package/src/unstable/cluster/EntityResource.ts +43 -6
- package/src/unstable/cluster/EntityType.ts +27 -3
- package/src/unstable/cluster/Envelope.ts +128 -23
- package/src/unstable/cluster/HttpRunner.ts +88 -13
- package/src/unstable/cluster/K8sHttpClient.ts +49 -6
- package/src/unstable/cluster/MachineId.ts +24 -3
- package/src/unstable/cluster/Message.ts +102 -13
- package/src/unstable/cluster/MessageStorage.ts +127 -21
- package/src/unstable/cluster/Reply.ts +101 -12
- package/src/unstable/cluster/Runner.ts +47 -17
- package/src/unstable/cluster/RunnerAddress.ts +34 -2
- package/src/unstable/cluster/RunnerHealth.ts +40 -12
- package/src/unstable/cluster/RunnerServer.ts +31 -4
- package/src/unstable/cluster/RunnerStorage.ts +42 -5
- package/src/unstable/cluster/Runners.ts +73 -10
- package/src/unstable/cluster/ShardId.ts +51 -5
- package/src/unstable/cluster/Sharding.ts +35 -4
- package/src/unstable/cluster/ShardingConfig.ts +75 -10
- package/src/unstable/cluster/ShardingRegistrationEvent.ts +31 -7
- package/src/unstable/cluster/SingleRunner.ts +23 -1
- package/src/unstable/cluster/Singleton.ts +15 -1
- package/src/unstable/cluster/SingletonAddress.ts +21 -1
- package/src/unstable/cluster/Snowflake.ts +89 -19
- package/src/unstable/cluster/SocketRunner.ts +29 -2
- package/src/unstable/cluster/SqlMessageStorage.ts +27 -3
- package/src/unstable/cluster/SqlRunnerStorage.ts +46 -7
- package/src/unstable/cluster/TestRunner.ts +18 -1
- package/src/unstable/cluster/internal/hash.ts +12 -0
- package/src/unstable/devtools/DevTools.ts +26 -3
- package/src/unstable/devtools/DevToolsClient.ts +32 -5
- package/src/unstable/devtools/DevToolsSchema.ts +201 -44
- package/src/unstable/devtools/DevToolsServer.ts +27 -2
- package/src/unstable/encoding/Msgpack.ts +97 -12
- package/src/unstable/encoding/Ndjson.ts +149 -21
- package/src/unstable/encoding/Sse.ts +109 -18
- package/src/unstable/eventlog/Event.ts +131 -30
- package/src/unstable/eventlog/EventGroup.ts +50 -17
- package/src/unstable/eventlog/EventJournal.ts +120 -20
- package/src/unstable/eventlog/EventLog.ts +151 -31
- package/src/unstable/eventlog/EventLogEncryption.ts +42 -6
- package/src/unstable/eventlog/EventLogMessage.ts +92 -18
- package/src/unstable/eventlog/EventLogRemote.ts +54 -8
- package/src/unstable/eventlog/EventLogServer.ts +33 -3
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +52 -6
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +90 -16
- package/src/unstable/eventlog/EventLogSessionAuth.ts +77 -15
- package/src/unstable/eventlog/SqlEventJournal.ts +28 -2
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +32 -3
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +28 -2
- package/src/unstable/http/Cookies.ts +156 -77
- package/src/unstable/http/Etag.ts +40 -7
- package/src/unstable/http/FetchHttpClient.ts +33 -4
- package/src/unstable/http/FindMyWay.ts +1 -1
- package/src/unstable/http/Headers.ts +252 -50
- package/src/unstable/http/HttpBody.ts +128 -26
- package/src/unstable/http/HttpClient.ts +205 -96
- package/src/unstable/http/HttpClientError.ts +80 -12
- package/src/unstable/http/HttpClientRequest.ts +318 -100
- package/src/unstable/http/HttpClientResponse.ts +59 -16
- package/src/unstable/http/HttpEffect.ts +66 -18
- package/src/unstable/http/HttpIncomingMessage.ts +47 -7
- package/src/unstable/http/HttpMethod.ts +35 -5
- package/src/unstable/http/HttpMiddleware.ts +59 -11
- package/src/unstable/http/HttpPlatform.ts +34 -3
- package/src/unstable/http/HttpRouter.ts +217 -52
- package/src/unstable/http/HttpServer.ts +151 -22
- package/src/unstable/http/HttpServerError.ts +90 -10
- package/src/unstable/http/HttpServerRequest.ts +125 -21
- package/src/unstable/http/HttpServerRespondable.ts +49 -6
- package/src/unstable/http/HttpServerResponse.ts +390 -67
- package/src/unstable/http/HttpStaticServer.ts +22 -4
- package/src/unstable/http/HttpTraceContext.ts +53 -6
- package/src/unstable/http/Multipart.ts +178 -28
- package/src/unstable/http/Multipasta/HeadersParser.ts +1 -1
- package/src/unstable/http/Multipasta/Node.ts +1 -1
- package/src/unstable/http/Multipasta/Search.ts +1 -1
- package/src/unstable/http/Multipasta/Web.ts +1 -1
- package/src/unstable/http/Multipasta.ts +1 -1
- package/src/unstable/http/Template.ts +53 -0
- package/src/unstable/http/Url.ts +56 -42
- package/src/unstable/http/UrlParams.ts +233 -49
- package/src/unstable/httpapi/HttpApi.ts +49 -14
- package/src/unstable/httpapi/HttpApiBuilder.ts +82 -16
- package/src/unstable/httpapi/HttpApiClient.ts +79 -15
- package/src/unstable/httpapi/HttpApiEndpoint.ts +238 -59
- package/src/unstable/httpapi/HttpApiError.ts +100 -1
- package/src/unstable/httpapi/HttpApiGroup.ts +87 -20
- package/src/unstable/httpapi/HttpApiMiddleware.ts +111 -22
- package/src/unstable/httpapi/HttpApiScalar.ts +38 -4
- package/src/unstable/httpapi/HttpApiSchema.ts +67 -30
- package/src/unstable/httpapi/HttpApiSecurity.ts +74 -17
- package/src/unstable/httpapi/HttpApiSwagger.ts +24 -2
- package/src/unstable/httpapi/HttpApiTest.ts +26 -1
- package/src/unstable/httpapi/OpenApi.ts +115 -15
- package/src/unstable/observability/Otlp.ts +33 -3
- package/src/unstable/observability/OtlpExporter.ts +32 -1
- package/src/unstable/observability/OtlpLogger.ts +31 -2
- package/src/unstable/observability/OtlpMetrics.ts +37 -4
- package/src/unstable/observability/OtlpResource.ts +68 -12
- package/src/unstable/observability/OtlpSerialization.ts +28 -3
- package/src/unstable/observability/OtlpTracer.ts +38 -2
- package/src/unstable/observability/PrometheusMetrics.ts +32 -12
- package/src/unstable/observability/index.ts +2 -1
- package/src/unstable/persistence/KeyValueStore.ts +108 -28
- package/src/unstable/persistence/Persistable.ts +76 -15
- package/src/unstable/persistence/PersistedCache.ts +27 -2
- package/src/unstable/persistence/PersistedQueue.ts +98 -16
- package/src/unstable/persistence/Persistence.ts +97 -16
- package/src/unstable/persistence/RateLimiter.ts +97 -21
- package/src/unstable/persistence/Redis.ts +42 -5
- package/src/unstable/process/ChildProcess.ts +89 -65
- package/src/unstable/process/ChildProcessSpawner.ts +22 -11
- package/src/unstable/process/index.ts +2 -1
- package/src/unstable/reactivity/AsyncResult.ts +202 -61
- package/src/unstable/reactivity/Atom.ts +593 -139
- package/src/unstable/reactivity/AtomHttpApi.ts +41 -2
- package/src/unstable/reactivity/AtomRef.ts +51 -7
- package/src/unstable/reactivity/AtomRegistry.ts +141 -22
- package/src/unstable/reactivity/AtomRpc.ts +36 -2
- package/src/unstable/reactivity/Hydration.ts +45 -5
- package/src/unstable/reactivity/Reactivity.ts +95 -13
- package/src/unstable/rpc/Rpc.ts +255 -56
- package/src/unstable/rpc/RpcClient.ts +107 -19
- package/src/unstable/rpc/RpcClientError.ts +26 -2
- package/src/unstable/rpc/RpcGroup.ts +51 -8
- package/src/unstable/rpc/RpcMessage.ts +128 -32
- package/src/unstable/rpc/RpcMiddleware.ts +100 -20
- package/src/unstable/rpc/RpcSchema.ts +38 -4
- package/src/unstable/rpc/RpcSerialization.ts +60 -13
- package/src/unstable/rpc/RpcServer.ts +107 -23
- package/src/unstable/rpc/RpcTest.ts +20 -1
- package/src/unstable/rpc/RpcWorker.ts +40 -6
- package/src/unstable/rpc/Utils.ts +31 -0
- package/src/unstable/schema/Model.ts +148 -52
- package/src/unstable/schema/VariantSchema.ts +104 -24
- package/src/unstable/socket/Socket.ts +167 -34
- package/src/unstable/socket/SocketServer.ts +58 -10
- package/src/unstable/sql/Migrator.ts +56 -4
- package/src/unstable/sql/SqlClient.ts +55 -2
- package/src/unstable/sql/SqlConnection.ts +31 -0
- package/src/unstable/sql/SqlError.ts +117 -0
- package/src/unstable/sql/SqlModel.ts +26 -5
- package/src/unstable/sql/SqlResolver.ts +56 -13
- package/src/unstable/sql/SqlSchema.ts +29 -8
- package/src/unstable/sql/SqlStream.ts +23 -0
- package/src/unstable/sql/Statement.ts +141 -0
- package/src/unstable/sql/index.ts +1 -1
- package/src/unstable/workers/Transferable.ts +65 -13
- package/src/unstable/workers/Worker.ts +60 -8
- package/src/unstable/workers/WorkerError.ts +50 -9
- package/src/unstable/workers/WorkerRunner.ts +32 -3
- package/src/unstable/workers/index.ts +1 -1
- package/src/unstable/workflow/Activity.ts +61 -10
- package/src/unstable/workflow/DurableClock.ts +26 -3
- package/src/unstable/workflow/DurableDeferred.ts +146 -31
- package/src/unstable/workflow/DurableQueue.ts +30 -7
- package/src/unstable/workflow/Workflow.ts +121 -31
- package/src/unstable/workflow/WorkflowEngine.ts +40 -5
- package/src/unstable/workflow/WorkflowProxy.ts +32 -2
- package/src/unstable/workflow/WorkflowProxyServer.ts +40 -6
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* The `McpSchema` module defines Effect Schema and RPC models for the Model
|
|
3
|
+
* Context Protocol (MCP). It provides the shared protocol vocabulary used by
|
|
4
|
+
* MCP clients and servers, including JSON-RPC request identifiers, metadata,
|
|
5
|
+
* capabilities, errors, resources, prompts, tools, logging, sampling,
|
|
6
|
+
* completions, roots, and elicitation.
|
|
7
|
+
*
|
|
8
|
+
* **Common tasks**
|
|
9
|
+
*
|
|
10
|
+
* - Describe MCP payloads with schemas such as {@link Resource}, {@link Tool},
|
|
11
|
+
* {@link Prompt}, and {@link ContentBlock}
|
|
12
|
+
* - Build typed protocol handlers with request RPCs such as {@link Initialize},
|
|
13
|
+
* {@link ListResources}, {@link ReadResource}, {@link ListTools}, and
|
|
14
|
+
* {@link CallTool}
|
|
15
|
+
* - Work with protocol notifications such as
|
|
16
|
+
* {@link ProgressNotification}, {@link ResourceUpdatedNotification}, and
|
|
17
|
+
* {@link LoggingMessageNotification}
|
|
18
|
+
* - Use {@link ClientRpcs} and server RPC groups to derive encoded request,
|
|
19
|
+
* notification, success, and failure message types
|
|
20
|
+
*
|
|
21
|
+
* **Gotchas**
|
|
22
|
+
*
|
|
23
|
+
* - MCP distinguishes absent fields from present fields whose value is
|
|
24
|
+
* `undefined`; use {@link optional} and {@link optionalWithDefault} for
|
|
25
|
+
* protocol fields so encoding omits undefined values consistently.
|
|
26
|
+
* - Capability objects are extensible. Known fields are modeled here, but
|
|
27
|
+
* `experimental` and `extensions` allow implementations to advertise
|
|
28
|
+
* additional protocol features.
|
|
29
|
+
*
|
|
2
30
|
* @since 4.0.0
|
|
3
31
|
*/
|
|
4
32
|
import * as Context from "../../Context.js";
|
|
@@ -12,6 +40,12 @@ import * as Rpc from "../rpc/Rpc.js";
|
|
|
12
40
|
import * as RpcGroup from "../rpc/RpcGroup.js";
|
|
13
41
|
import * as RpcMiddleware from "../rpc/RpcMiddleware.js";
|
|
14
42
|
/**
|
|
43
|
+
* Marks a struct field as optional and supplies `defaultValue` when the field
|
|
44
|
+
* is absent.
|
|
45
|
+
*
|
|
46
|
+
* The default is used during decoding and as the constructor default for the
|
|
47
|
+
* schema field.
|
|
48
|
+
*
|
|
15
49
|
* @since 4.0.0
|
|
16
50
|
*/
|
|
17
51
|
export const optionalWithDefault = (schema, defaultValue) => {
|
|
@@ -22,6 +56,11 @@ export const optionalWithDefault = (schema, defaultValue) => {
|
|
|
22
56
|
}), Schema.withConstructorDefault(effect));
|
|
23
57
|
};
|
|
24
58
|
/**
|
|
59
|
+
* Creates an optional MCP struct-field schema from a required schema.
|
|
60
|
+
*
|
|
61
|
+
* The field may be absent, and explicit `undefined` values are omitted when
|
|
62
|
+
* encoding.
|
|
63
|
+
*
|
|
25
64
|
* @since 4.0.0
|
|
26
65
|
*/
|
|
27
66
|
export const optional = schema => Schema.optionalKey(schema).pipe(Schema.decodeTo(Schema.optional(schema), {
|
|
@@ -34,21 +73,26 @@ export const optional = schema => Schema.optionalKey(schema).pipe(Schema.decodeT
|
|
|
34
73
|
/**
|
|
35
74
|
* A uniquely identifying ID for a request in JSON-RPC.
|
|
36
75
|
*
|
|
37
|
-
* @since 4.0.0
|
|
38
76
|
* @category common
|
|
77
|
+
* @since 4.0.0
|
|
39
78
|
*/
|
|
40
79
|
export const RequestId = /*#__PURE__*/Schema.Union([Schema.String, Schema.Number]);
|
|
41
80
|
/**
|
|
42
81
|
* A progress token, used to associate progress notifications with the original
|
|
43
82
|
* request.
|
|
44
83
|
*
|
|
45
|
-
* @since 4.0.0
|
|
46
84
|
* @category common
|
|
85
|
+
* @since 4.0.0
|
|
47
86
|
*/
|
|
48
87
|
export const ProgressToken = /*#__PURE__*/Schema.Union([Schema.String, Schema.Number]);
|
|
49
88
|
/**
|
|
50
|
-
*
|
|
89
|
+
* Schema for optional MCP request metadata.
|
|
90
|
+
*
|
|
91
|
+
* Request metadata may include a progress token that asks the receiver to send
|
|
92
|
+
* out-of-band progress notifications for the request.
|
|
93
|
+
*
|
|
51
94
|
* @category common
|
|
95
|
+
* @since 4.0.0
|
|
52
96
|
*/
|
|
53
97
|
export class RequestMeta extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
54
98
|
_meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Struct({
|
|
@@ -63,8 +107,13 @@ export class RequestMeta extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schem
|
|
|
63
107
|
}))
|
|
64
108
|
})) {}
|
|
65
109
|
/**
|
|
66
|
-
*
|
|
110
|
+
* Schema for optional MCP result metadata.
|
|
111
|
+
*
|
|
112
|
+
* The `_meta` field is reserved for protocol, extension, or implementation
|
|
113
|
+
* metadata attached to a result.
|
|
114
|
+
*
|
|
67
115
|
* @category common
|
|
116
|
+
* @since 4.0.0
|
|
68
117
|
*/
|
|
69
118
|
export class ResultMeta extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
70
119
|
/**
|
|
@@ -74,8 +123,13 @@ export class ResultMeta extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema
|
|
|
74
123
|
_meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Json))
|
|
75
124
|
})) {}
|
|
76
125
|
/**
|
|
77
|
-
*
|
|
126
|
+
* Schema for optional MCP notification metadata.
|
|
127
|
+
*
|
|
128
|
+
* The `_meta` field is reserved for protocol, extension, or implementation
|
|
129
|
+
* metadata attached to a notification.
|
|
130
|
+
*
|
|
78
131
|
* @category common
|
|
132
|
+
* @since 4.0.0
|
|
79
133
|
*/
|
|
80
134
|
export class NotificationMeta extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
81
135
|
/**
|
|
@@ -87,13 +141,18 @@ export class NotificationMeta extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/
|
|
|
87
141
|
/**
|
|
88
142
|
* An opaque token used to represent a cursor for pagination.
|
|
89
143
|
*
|
|
90
|
-
* @since 4.0.0
|
|
91
144
|
* @category common
|
|
145
|
+
* @since 4.0.0
|
|
92
146
|
*/
|
|
93
147
|
export const Cursor = Schema.String;
|
|
94
148
|
/**
|
|
95
|
-
*
|
|
149
|
+
* Schema for MCP request metadata used by paginated requests.
|
|
150
|
+
*
|
|
151
|
+
* It includes the base request metadata fields plus an optional cursor
|
|
152
|
+
* indicating where the server should continue listing results.
|
|
153
|
+
*
|
|
96
154
|
* @category common
|
|
155
|
+
* @since 4.0.0
|
|
97
156
|
*/
|
|
98
157
|
export class PaginatedRequestMeta extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
99
158
|
...RequestMeta.fields,
|
|
@@ -104,8 +163,13 @@ export class PaginatedRequestMeta extends /*#__PURE__*/Schema.Opaque()(/*#__PURE
|
|
|
104
163
|
cursor: /*#__PURE__*/optional(Cursor)
|
|
105
164
|
})) {}
|
|
106
165
|
/**
|
|
107
|
-
*
|
|
166
|
+
* Schema for MCP result metadata returned by paginated operations.
|
|
167
|
+
*
|
|
168
|
+
* It includes the base result metadata fields plus an optional `nextCursor`,
|
|
169
|
+
* which indicates that more results may be available.
|
|
170
|
+
*
|
|
108
171
|
* @category common
|
|
172
|
+
* @since 4.0.0
|
|
109
173
|
*/
|
|
110
174
|
export class PaginatedResultMeta extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
111
175
|
...ResultMeta.fields,
|
|
@@ -117,16 +181,16 @@ export class PaginatedResultMeta extends /*#__PURE__*/Schema.Opaque()(/*#__PURE_
|
|
|
117
181
|
})) {}
|
|
118
182
|
/**
|
|
119
183
|
* The sender or recipient of messages and data in a conversation.
|
|
120
|
-
* @since 4.0.0
|
|
121
184
|
* @category common
|
|
185
|
+
* @since 4.0.0
|
|
122
186
|
*/
|
|
123
187
|
export const Role = /*#__PURE__*/Schema.Literals(["user", "assistant"]);
|
|
124
188
|
/**
|
|
125
189
|
* Optional annotations for the client. The client can use annotations to
|
|
126
190
|
* inform how objects are used or displayed
|
|
127
191
|
*
|
|
128
|
-
* @since 4.0.0
|
|
129
192
|
* @category common
|
|
193
|
+
* @since 4.0.0
|
|
130
194
|
*/
|
|
131
195
|
export class Annotations extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
132
196
|
/**
|
|
@@ -151,8 +215,8 @@ export class Annotations extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schem
|
|
|
151
215
|
/**
|
|
152
216
|
* Describes the name and version of an MCP implementation.
|
|
153
217
|
*
|
|
154
|
-
* @since 4.0.0
|
|
155
218
|
* @category common
|
|
219
|
+
* @since 4.0.0
|
|
156
220
|
*/
|
|
157
221
|
export class Implementation extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
158
222
|
name: Schema.String,
|
|
@@ -164,8 +228,8 @@ export class Implementation extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Sc
|
|
|
164
228
|
* this schema, but this is not a closed set: any client can define its own,
|
|
165
229
|
* additional capabilities.
|
|
166
230
|
*
|
|
167
|
-
* @since 4.0.0
|
|
168
231
|
* @category common
|
|
232
|
+
* @since 4.0.0
|
|
169
233
|
*/
|
|
170
234
|
export class ClientCapabilities extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/ClientCapabilities")({
|
|
171
235
|
/**
|
|
@@ -200,8 +264,8 @@ export class ClientCapabilities extends /*#__PURE__*/Schema.Class("@effect/ai/Mc
|
|
|
200
264
|
* here, in this schema, but this is not a closed set: any server can define
|
|
201
265
|
* its own, additional capabilities.
|
|
202
266
|
*
|
|
203
|
-
* @since 4.0.0
|
|
204
267
|
* @category common
|
|
268
|
+
* @since 4.0.0
|
|
205
269
|
*/
|
|
206
270
|
export class ServerCapabilities extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
207
271
|
/**
|
|
@@ -257,8 +321,13 @@ export class ServerCapabilities extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__
|
|
|
257
321
|
// Errors
|
|
258
322
|
// =============================================================================
|
|
259
323
|
/**
|
|
260
|
-
*
|
|
324
|
+
* Base schema for MCP and JSON-RPC error objects.
|
|
325
|
+
*
|
|
326
|
+
* It contains the numeric error `code`, a concise `message`, and optional
|
|
327
|
+
* sender-defined `data`.
|
|
328
|
+
*
|
|
261
329
|
* @category errors
|
|
330
|
+
* @since 4.0.0
|
|
262
331
|
*/
|
|
263
332
|
export class McpErrorBase extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/McpErrorBase")({
|
|
264
333
|
/**
|
|
@@ -277,33 +346,48 @@ export class McpErrorBase extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchem
|
|
|
277
346
|
data: /*#__PURE__*/optional(Schema.Any)
|
|
278
347
|
}) {}
|
|
279
348
|
/**
|
|
280
|
-
*
|
|
349
|
+
* JSON-RPC error code for requests that are not valid request objects.
|
|
350
|
+
*
|
|
281
351
|
* @category errors
|
|
352
|
+
* @since 4.0.0
|
|
282
353
|
*/
|
|
283
354
|
export const INVALID_REQUEST_ERROR_CODE = -32600;
|
|
284
355
|
/**
|
|
285
|
-
*
|
|
356
|
+
* JSON-RPC error code for requests whose method does not exist or is not
|
|
357
|
+
* available.
|
|
358
|
+
*
|
|
286
359
|
* @category errors
|
|
360
|
+
* @since 4.0.0
|
|
287
361
|
*/
|
|
288
362
|
export const METHOD_NOT_FOUND_ERROR_CODE = -32601;
|
|
289
363
|
/**
|
|
290
|
-
*
|
|
364
|
+
* JSON-RPC error code for invalid method parameters.
|
|
365
|
+
*
|
|
291
366
|
* @category errors
|
|
367
|
+
* @since 4.0.0
|
|
292
368
|
*/
|
|
293
369
|
export const INVALID_PARAMS_ERROR_CODE = -32602;
|
|
294
370
|
/**
|
|
295
|
-
*
|
|
371
|
+
* JSON-RPC error code for internal server errors.
|
|
372
|
+
*
|
|
296
373
|
* @category errors
|
|
374
|
+
* @since 4.0.0
|
|
297
375
|
*/
|
|
298
376
|
export const INTERNAL_ERROR_CODE = -32603;
|
|
299
377
|
/**
|
|
300
|
-
*
|
|
378
|
+
* JSON-RPC error code for invalid JSON that could not be parsed.
|
|
379
|
+
*
|
|
301
380
|
* @category errors
|
|
381
|
+
* @since 4.0.0
|
|
302
382
|
*/
|
|
303
383
|
export const PARSE_ERROR_CODE = -32700;
|
|
304
384
|
/**
|
|
305
|
-
*
|
|
385
|
+
* MCP/JSON-RPC error for invalid JSON that could not be parsed.
|
|
386
|
+
*
|
|
387
|
+
* This error uses the standard parse error code `-32700`.
|
|
388
|
+
*
|
|
306
389
|
* @category errors
|
|
390
|
+
* @since 4.0.0
|
|
307
391
|
*/
|
|
308
392
|
export class ParseError extends /*#__PURE__*/Schema.ErrorClass("effect/ai/McpSchema/ParseError")({
|
|
309
393
|
...McpErrorBase.fields,
|
|
@@ -311,8 +395,12 @@ export class ParseError extends /*#__PURE__*/Schema.ErrorClass("effect/ai/McpSch
|
|
|
311
395
|
code: /*#__PURE__*/Schema.tag(PARSE_ERROR_CODE)
|
|
312
396
|
}) {}
|
|
313
397
|
/**
|
|
314
|
-
*
|
|
398
|
+
* MCP/JSON-RPC error for a request object that is not valid.
|
|
399
|
+
*
|
|
400
|
+
* This error uses the standard invalid request code `-32600`.
|
|
401
|
+
*
|
|
315
402
|
* @category errors
|
|
403
|
+
* @since 4.0.0
|
|
316
404
|
*/
|
|
317
405
|
export class InvalidRequest extends /*#__PURE__*/Schema.ErrorClass("effect/ai/McpSchema/InvalidRequest")({
|
|
318
406
|
...McpErrorBase.fields,
|
|
@@ -320,8 +408,12 @@ export class InvalidRequest extends /*#__PURE__*/Schema.ErrorClass("effect/ai/Mc
|
|
|
320
408
|
code: /*#__PURE__*/Schema.tag(INVALID_REQUEST_ERROR_CODE)
|
|
321
409
|
}) {}
|
|
322
410
|
/**
|
|
323
|
-
*
|
|
411
|
+
* MCP/JSON-RPC error for a method that does not exist or is not available.
|
|
412
|
+
*
|
|
413
|
+
* This error uses the standard method not found code `-32601`.
|
|
414
|
+
*
|
|
324
415
|
* @category errors
|
|
416
|
+
* @since 4.0.0
|
|
325
417
|
*/
|
|
326
418
|
export class MethodNotFound extends /*#__PURE__*/Schema.ErrorClass("effect/ai/McpSchema/MethodNotFound")({
|
|
327
419
|
...McpErrorBase.fields,
|
|
@@ -329,8 +421,12 @@ export class MethodNotFound extends /*#__PURE__*/Schema.ErrorClass("effect/ai/Mc
|
|
|
329
421
|
code: /*#__PURE__*/Schema.tag(METHOD_NOT_FOUND_ERROR_CODE)
|
|
330
422
|
}) {}
|
|
331
423
|
/**
|
|
332
|
-
*
|
|
424
|
+
* MCP/JSON-RPC error for invalid method parameters.
|
|
425
|
+
*
|
|
426
|
+
* This error uses the standard invalid params code `-32602`.
|
|
427
|
+
*
|
|
333
428
|
* @category errors
|
|
429
|
+
* @since 4.0.0
|
|
334
430
|
*/
|
|
335
431
|
export class InvalidParams extends /*#__PURE__*/Schema.ErrorClass("effect/ai/McpSchema/InvalidParams")({
|
|
336
432
|
...McpErrorBase.fields,
|
|
@@ -338,8 +434,13 @@ export class InvalidParams extends /*#__PURE__*/Schema.ErrorClass("effect/ai/Mcp
|
|
|
338
434
|
code: /*#__PURE__*/Schema.tag(INVALID_PARAMS_ERROR_CODE)
|
|
339
435
|
}) {}
|
|
340
436
|
/**
|
|
341
|
-
*
|
|
437
|
+
* MCP/JSON-RPC error for unexpected internal server failures.
|
|
438
|
+
*
|
|
439
|
+
* This error uses the standard internal error code `-32603` and includes
|
|
440
|
+
* `InternalError.notImplemented` for unimplemented handlers.
|
|
441
|
+
*
|
|
342
442
|
* @category errors
|
|
443
|
+
* @since 4.0.0
|
|
343
444
|
*/
|
|
344
445
|
export class InternalError extends /*#__PURE__*/Schema.ErrorClass("effect/ai/McpSchema/InternalError")({
|
|
345
446
|
...McpErrorBase.fields,
|
|
@@ -351,8 +452,11 @@ export class InternalError extends /*#__PURE__*/Schema.ErrorClass("effect/ai/Mcp
|
|
|
351
452
|
});
|
|
352
453
|
}
|
|
353
454
|
/**
|
|
354
|
-
*
|
|
455
|
+
* Schema for MCP protocol errors returned in JSON-RPC failure responses,
|
|
456
|
+
* including standard protocol errors and custom `McpErrorBase` values.
|
|
457
|
+
*
|
|
355
458
|
* @category errors
|
|
459
|
+
* @since 4.0.0
|
|
356
460
|
*/
|
|
357
461
|
export const McpError = /*#__PURE__*/Schema.Union([ParseError, InvalidRequest, MethodNotFound, InvalidParams, InternalError, McpErrorBase]);
|
|
358
462
|
// =============================================================================
|
|
@@ -363,8 +467,8 @@ export const McpError = /*#__PURE__*/Schema.Union([ParseError, InvalidRequest, M
|
|
|
363
467
|
* party is still alive. The receiver must promptly respond, or else may be
|
|
364
468
|
* disconnected.
|
|
365
469
|
*
|
|
366
|
-
* @since 4.0.0
|
|
367
470
|
* @category ping
|
|
471
|
+
* @since 4.0.0
|
|
368
472
|
*/
|
|
369
473
|
export class Ping extends /*#__PURE__*/Rpc.make("ping", {
|
|
370
474
|
success: /*#__PURE__*/Schema.Struct({}),
|
|
@@ -378,8 +482,8 @@ export class Ping extends /*#__PURE__*/Rpc.make("ping", {
|
|
|
378
482
|
* After receiving an initialize request from the client, the server sends this
|
|
379
483
|
* response.
|
|
380
484
|
*
|
|
381
|
-
* @since 4.0.0
|
|
382
485
|
* @category initialization
|
|
486
|
+
* @since 4.0.0
|
|
383
487
|
*/
|
|
384
488
|
export class InitializeResult extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
385
489
|
...ResultMeta.fields,
|
|
@@ -404,8 +508,8 @@ export class InitializeResult extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/
|
|
|
404
508
|
* This request is sent from the client to the server when it first connects,
|
|
405
509
|
* asking it to begin initialization.
|
|
406
510
|
*
|
|
407
|
-
* @since 4.0.0
|
|
408
511
|
* @category initialization
|
|
512
|
+
* @since 4.0.0
|
|
409
513
|
*/
|
|
410
514
|
export class Initialize extends /*#__PURE__*/Rpc.make("initialize", {
|
|
411
515
|
success: InitializeResult,
|
|
@@ -433,8 +537,8 @@ export class Initialize extends /*#__PURE__*/Rpc.make("initialize", {
|
|
|
433
537
|
* This notification is sent from the client to the server after initialization
|
|
434
538
|
* has finished.
|
|
435
539
|
*
|
|
436
|
-
* @since 4.0.0
|
|
437
540
|
* @category initialization
|
|
541
|
+
* @since 4.0.0
|
|
438
542
|
*/
|
|
439
543
|
export class InitializedNotification extends /*#__PURE__*/Rpc.make("notifications/initialized", {
|
|
440
544
|
payload: /*#__PURE__*/Schema.UndefinedOr(NotificationMeta)
|
|
@@ -443,8 +547,14 @@ export class InitializedNotification extends /*#__PURE__*/Rpc.make("notification
|
|
|
443
547
|
// Cancellation
|
|
444
548
|
// =============================================================================
|
|
445
549
|
/**
|
|
446
|
-
*
|
|
550
|
+
* Notification sent by either peer to cancel a previously issued request in
|
|
551
|
+
* the same direction.
|
|
552
|
+
*
|
|
553
|
+
* The payload identifies the request to cancel and may include a
|
|
554
|
+
* human-readable reason.
|
|
555
|
+
*
|
|
447
556
|
* @category cancellation
|
|
557
|
+
* @since 4.0.0
|
|
448
558
|
*/
|
|
449
559
|
export class CancelledNotification extends /*#__PURE__*/Rpc.make("notifications/cancelled", {
|
|
450
560
|
payload: {
|
|
@@ -470,8 +580,8 @@ export class CancelledNotification extends /*#__PURE__*/Rpc.make("notifications/
|
|
|
470
580
|
* An out-of-band notification used to inform the receiver of a progress update
|
|
471
581
|
* for a long-running request.
|
|
472
582
|
*
|
|
473
|
-
* @since 4.0.0
|
|
474
583
|
* @category progress
|
|
584
|
+
* @since 4.0.0
|
|
475
585
|
*/
|
|
476
586
|
export class ProgressNotification extends /*#__PURE__*/Rpc.make("notifications/progress", {
|
|
477
587
|
payload: {
|
|
@@ -502,8 +612,8 @@ export class ProgressNotification extends /*#__PURE__*/Rpc.make("notifications/p
|
|
|
502
612
|
/**
|
|
503
613
|
* A known resource that the server is capable of reading.
|
|
504
614
|
*
|
|
505
|
-
* @since 4.0.0
|
|
506
615
|
* @category resources
|
|
616
|
+
* @since 4.0.0
|
|
507
617
|
*/
|
|
508
618
|
export class Resource extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/Resource")({
|
|
509
619
|
/**
|
|
@@ -551,8 +661,8 @@ export class Resource extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/Re
|
|
|
551
661
|
/**
|
|
552
662
|
* A template description for resources available on the server.
|
|
553
663
|
*
|
|
554
|
-
* @since 4.0.0
|
|
555
664
|
* @category resources
|
|
665
|
+
* @since 4.0.0
|
|
556
666
|
*/
|
|
557
667
|
export class ResourceTemplate extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/ResourceTemplate")({
|
|
558
668
|
/**
|
|
@@ -591,8 +701,8 @@ export class ResourceTemplate extends /*#__PURE__*/Schema.Class("@effect/ai/McpS
|
|
|
591
701
|
/**
|
|
592
702
|
* The contents of a specific resource or sub-resource.
|
|
593
703
|
*
|
|
594
|
-
* @since 4.0.0
|
|
595
704
|
* @category resources
|
|
705
|
+
* @since 4.0.0
|
|
596
706
|
*/
|
|
597
707
|
export class ResourceContents extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
598
708
|
/**
|
|
@@ -611,8 +721,8 @@ export class ResourceContents extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/
|
|
|
611
721
|
/**
|
|
612
722
|
* The contents of a text resource, which can be represented as a string.
|
|
613
723
|
*
|
|
614
|
-
* @since 4.0.0
|
|
615
724
|
* @category resources
|
|
725
|
+
* @since 4.0.0
|
|
616
726
|
*/
|
|
617
727
|
export class TextResourceContents extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
618
728
|
...ResourceContents.fields,
|
|
@@ -625,8 +735,8 @@ export class TextResourceContents extends /*#__PURE__*/Schema.Opaque()(/*#__PURE
|
|
|
625
735
|
/**
|
|
626
736
|
* The contents of a binary resource, which can be represented as an Uint8Array
|
|
627
737
|
*
|
|
628
|
-
* @since 4.0.0
|
|
629
738
|
* @category resources
|
|
739
|
+
* @since 4.0.0
|
|
630
740
|
*/
|
|
631
741
|
export class BlobResourceContents extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
632
742
|
...ResourceContents.fields,
|
|
@@ -638,8 +748,8 @@ export class BlobResourceContents extends /*#__PURE__*/Schema.Opaque()(/*#__PURE
|
|
|
638
748
|
/**
|
|
639
749
|
* The server's response to a resources/list request from the client.
|
|
640
750
|
*
|
|
641
|
-
* @since 4.0.0
|
|
642
751
|
* @category resources
|
|
752
|
+
* @since 4.0.0
|
|
643
753
|
*/
|
|
644
754
|
export class ListResourcesResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/ListResourcesResult")({
|
|
645
755
|
...PaginatedResultMeta.fields,
|
|
@@ -648,8 +758,8 @@ export class ListResourcesResult extends /*#__PURE__*/Schema.Class("@effect/ai/M
|
|
|
648
758
|
/**
|
|
649
759
|
* Sent from the client to request a list of resources the server has.
|
|
650
760
|
*
|
|
651
|
-
* @since 4.0.0
|
|
652
761
|
* @category resources
|
|
762
|
+
* @since 4.0.0
|
|
653
763
|
*/
|
|
654
764
|
export class ListResources extends /*#__PURE__*/Rpc.make("resources/list", {
|
|
655
765
|
success: ListResourcesResult,
|
|
@@ -659,8 +769,8 @@ export class ListResources extends /*#__PURE__*/Rpc.make("resources/list", {
|
|
|
659
769
|
/**
|
|
660
770
|
* The server's response to a resources/templates/list request from the client.
|
|
661
771
|
*
|
|
662
|
-
* @since 4.0.0
|
|
663
772
|
* @category resources
|
|
773
|
+
* @since 4.0.0
|
|
664
774
|
*/
|
|
665
775
|
export class ListResourceTemplatesResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/ListResourceTemplatesResult")({
|
|
666
776
|
...PaginatedResultMeta.fields,
|
|
@@ -669,8 +779,8 @@ export class ListResourceTemplatesResult extends /*#__PURE__*/Schema.Class("@eff
|
|
|
669
779
|
/**
|
|
670
780
|
* Sent from the client to request a list of resource templates the server has.
|
|
671
781
|
*
|
|
672
|
-
* @since 4.0.0
|
|
673
782
|
* @category resources
|
|
783
|
+
* @since 4.0.0
|
|
674
784
|
*/
|
|
675
785
|
export class ListResourceTemplates extends /*#__PURE__*/Rpc.make("resources/templates/list", {
|
|
676
786
|
success: ListResourceTemplatesResult,
|
|
@@ -680,8 +790,8 @@ export class ListResourceTemplates extends /*#__PURE__*/Rpc.make("resources/temp
|
|
|
680
790
|
/**
|
|
681
791
|
* The server's response to a resources/read request from the client.
|
|
682
792
|
*
|
|
683
|
-
* @since 4.0.0
|
|
684
793
|
* @category resources
|
|
794
|
+
* @since 4.0.0
|
|
685
795
|
*/
|
|
686
796
|
export class ReadResourceResult extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
687
797
|
...ResultMeta.fields,
|
|
@@ -690,8 +800,8 @@ export class ReadResourceResult extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__
|
|
|
690
800
|
/**
|
|
691
801
|
* Sent from the client to the server, to read a specific resource URI.
|
|
692
802
|
*
|
|
693
|
-
* @since 4.0.0
|
|
694
803
|
* @category resources
|
|
804
|
+
* @since 4.0.0
|
|
695
805
|
*/
|
|
696
806
|
export class ReadResource extends /*#__PURE__*/Rpc.make("resources/read", {
|
|
697
807
|
success: ReadResourceResult,
|
|
@@ -710,8 +820,8 @@ export class ReadResource extends /*#__PURE__*/Rpc.make("resources/read", {
|
|
|
710
820
|
* list of resources it can read from has changed. This may be issued by servers
|
|
711
821
|
* without any previous subscription from the client.
|
|
712
822
|
*
|
|
713
|
-
* @since 4.0.0
|
|
714
823
|
* @category resources
|
|
824
|
+
* @since 4.0.0
|
|
715
825
|
*/
|
|
716
826
|
export class ResourceListChangedNotification extends /*#__PURE__*/Rpc.make("notifications/resources/list_changed", {
|
|
717
827
|
payload: /*#__PURE__*/Schema.UndefinedOr(NotificationMeta)
|
|
@@ -720,8 +830,8 @@ export class ResourceListChangedNotification extends /*#__PURE__*/Rpc.make("noti
|
|
|
720
830
|
* Sent from the client to request resources/updated notifications from the
|
|
721
831
|
* server whenever a particular resource changes.
|
|
722
832
|
*
|
|
723
|
-
* @since 4.0.0
|
|
724
833
|
* @category resources
|
|
834
|
+
* @since 4.0.0
|
|
725
835
|
*/
|
|
726
836
|
export class Subscribe extends /*#__PURE__*/Rpc.make("resources/subscribe", {
|
|
727
837
|
error: McpError,
|
|
@@ -739,8 +849,8 @@ export class Subscribe extends /*#__PURE__*/Rpc.make("resources/subscribe", {
|
|
|
739
849
|
* notifications from the server. This should follow a previous
|
|
740
850
|
* resources/subscribe request.
|
|
741
851
|
*
|
|
742
|
-
* @since 4.0.0
|
|
743
852
|
* @category resources
|
|
853
|
+
* @since 4.0.0
|
|
744
854
|
*/
|
|
745
855
|
export class Unsubscribe extends /*#__PURE__*/Rpc.make("resources/unsubscribe", {
|
|
746
856
|
error: McpError,
|
|
@@ -754,8 +864,13 @@ export class Unsubscribe extends /*#__PURE__*/Rpc.make("resources/unsubscribe",
|
|
|
754
864
|
}
|
|
755
865
|
}) {}
|
|
756
866
|
/**
|
|
757
|
-
*
|
|
867
|
+
* Notification sent by the server when a subscribed resource URI has changed.
|
|
868
|
+
*
|
|
869
|
+
* The URI may identify a sub-resource of the resource that the client
|
|
870
|
+
* originally subscribed to.
|
|
871
|
+
*
|
|
758
872
|
* @category resources
|
|
873
|
+
* @since 4.0.0
|
|
759
874
|
*/
|
|
760
875
|
export class ResourceUpdatedNotification extends /*#__PURE__*/Rpc.make("notifications/resources/updated", {
|
|
761
876
|
payload: {
|
|
@@ -772,8 +887,8 @@ export class ResourceUpdatedNotification extends /*#__PURE__*/Rpc.make("notifica
|
|
|
772
887
|
/**
|
|
773
888
|
* Describes an argument that a prompt can accept.
|
|
774
889
|
*
|
|
775
|
-
* @since 4.0.0
|
|
776
890
|
* @category prompts
|
|
891
|
+
* @since 4.0.0
|
|
777
892
|
*/
|
|
778
893
|
export class PromptArgument extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
779
894
|
/**
|
|
@@ -793,8 +908,8 @@ export class PromptArgument extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Sc
|
|
|
793
908
|
/**
|
|
794
909
|
* A prompt or prompt template that the server offers.
|
|
795
910
|
*
|
|
796
|
-
* @since 4.0.0
|
|
797
911
|
* @category prompts
|
|
912
|
+
* @since 4.0.0
|
|
798
913
|
*/
|
|
799
914
|
export class Prompt extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/Prompt")({
|
|
800
915
|
/**
|
|
@@ -814,8 +929,8 @@ export class Prompt extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/Prom
|
|
|
814
929
|
/**
|
|
815
930
|
* Text provided to or from an LLM.
|
|
816
931
|
*
|
|
817
|
-
* @since 4.0.0
|
|
818
932
|
* @category prompts
|
|
933
|
+
* @since 4.0.0
|
|
819
934
|
*/
|
|
820
935
|
export class TextContent extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
821
936
|
type: /*#__PURE__*/Schema.tag("text"),
|
|
@@ -831,8 +946,8 @@ export class TextContent extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schem
|
|
|
831
946
|
/**
|
|
832
947
|
* An image provided to or from an LLM.
|
|
833
948
|
*
|
|
834
|
-
* @since 4.0.0
|
|
835
949
|
* @category prompts
|
|
950
|
+
* @since 4.0.0
|
|
836
951
|
*/
|
|
837
952
|
export class ImageContent extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
838
953
|
type: /*#__PURE__*/Schema.tag("image"),
|
|
@@ -853,8 +968,8 @@ export class ImageContent extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Sche
|
|
|
853
968
|
/**
|
|
854
969
|
* Audio provided to or from an LLM.
|
|
855
970
|
*
|
|
856
|
-
* @since 4.0.0
|
|
857
971
|
* @category prompts
|
|
972
|
+
* @since 4.0.0
|
|
858
973
|
*/
|
|
859
974
|
export class AudioContent extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
860
975
|
type: /*#__PURE__*/Schema.tag("audio"),
|
|
@@ -878,8 +993,8 @@ export class AudioContent extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Sche
|
|
|
878
993
|
* It is up to the client how best to render embedded resources for the benefit
|
|
879
994
|
* of the LLM and/or the user.
|
|
880
995
|
*
|
|
881
|
-
* @since 4.0.0
|
|
882
996
|
* @category prompts
|
|
997
|
+
* @since 4.0.0
|
|
883
998
|
*/
|
|
884
999
|
export class EmbeddedResource extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
885
1000
|
type: /*#__PURE__*/Schema.tag("resource"),
|
|
@@ -894,16 +1009,19 @@ export class EmbeddedResource extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/
|
|
|
894
1009
|
*
|
|
895
1010
|
* Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.
|
|
896
1011
|
*
|
|
897
|
-
* @since 4.0.0
|
|
898
1012
|
* @category prompts
|
|
1013
|
+
* @since 4.0.0
|
|
899
1014
|
*/
|
|
900
1015
|
export class ResourceLink extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
901
1016
|
...Resource.fields,
|
|
902
1017
|
type: /*#__PURE__*/Schema.tag("resource_link")
|
|
903
1018
|
})) {}
|
|
904
1019
|
/**
|
|
905
|
-
*
|
|
1020
|
+
* Union of MCP content blocks that can appear in prompt messages or tool
|
|
1021
|
+
* results, including text, media, embedded resources, and resource links.
|
|
1022
|
+
*
|
|
906
1023
|
* @category prompts
|
|
1024
|
+
* @since 4.0.0
|
|
907
1025
|
*/
|
|
908
1026
|
export const ContentBlock = /*#__PURE__*/Schema.Union([TextContent, ImageContent, AudioContent, EmbeddedResource, ResourceLink]);
|
|
909
1027
|
/**
|
|
@@ -912,8 +1030,8 @@ export const ContentBlock = /*#__PURE__*/Schema.Union([TextContent, ImageContent
|
|
|
912
1030
|
* This is similar to `SamplingMessage`, but also supports the embedding of
|
|
913
1031
|
* resources from the MCP server.
|
|
914
1032
|
*
|
|
915
|
-
* @since 4.0.0
|
|
916
1033
|
* @category prompts
|
|
1034
|
+
* @since 4.0.0
|
|
917
1035
|
*/
|
|
918
1036
|
export class PromptMessage extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
919
1037
|
role: Role,
|
|
@@ -922,8 +1040,8 @@ export class PromptMessage extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Sch
|
|
|
922
1040
|
/**
|
|
923
1041
|
* The server's response to a prompts/list request from the client.
|
|
924
1042
|
*
|
|
925
|
-
* @since 4.0.0
|
|
926
1043
|
* @category prompts
|
|
1044
|
+
* @since 4.0.0
|
|
927
1045
|
*/
|
|
928
1046
|
export class ListPromptsResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/ListPromptsResult")({
|
|
929
1047
|
...PaginatedResultMeta.fields,
|
|
@@ -933,8 +1051,8 @@ export class ListPromptsResult extends /*#__PURE__*/Schema.Class("@effect/ai/Mcp
|
|
|
933
1051
|
* Sent from the client to request a list of prompts and prompt templates the
|
|
934
1052
|
* server has.
|
|
935
1053
|
*
|
|
936
|
-
* @since 4.0.0
|
|
937
1054
|
* @category prompts
|
|
1055
|
+
* @since 4.0.0
|
|
938
1056
|
*/
|
|
939
1057
|
export class ListPrompts extends /*#__PURE__*/Rpc.make("prompts/list", {
|
|
940
1058
|
success: ListPromptsResult,
|
|
@@ -944,8 +1062,8 @@ export class ListPrompts extends /*#__PURE__*/Rpc.make("prompts/list", {
|
|
|
944
1062
|
/**
|
|
945
1063
|
* The server's response to a prompts/get request from the client.
|
|
946
1064
|
*
|
|
947
|
-
* @since 4.0.0
|
|
948
1065
|
* @category prompts
|
|
1066
|
+
* @since 4.0.0
|
|
949
1067
|
*/
|
|
950
1068
|
export class GetPromptResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/GetPromptResult")({
|
|
951
1069
|
...ResultMeta.fields,
|
|
@@ -958,8 +1076,8 @@ export class GetPromptResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSc
|
|
|
958
1076
|
/**
|
|
959
1077
|
* Used by the client to get a prompt provided by the server.
|
|
960
1078
|
*
|
|
961
|
-
* @since 4.0.0
|
|
962
1079
|
* @category prompts
|
|
1080
|
+
* @since 4.0.0
|
|
963
1081
|
*/
|
|
964
1082
|
export class GetPrompt extends /*#__PURE__*/Rpc.make("prompts/get", {
|
|
965
1083
|
success: GetPromptResult,
|
|
@@ -982,8 +1100,8 @@ export class GetPrompt extends /*#__PURE__*/Rpc.make("prompts/get", {
|
|
|
982
1100
|
* the list of prompts it offers has changed. This may be issued by servers
|
|
983
1101
|
* without any previous subscription from the client.
|
|
984
1102
|
*
|
|
985
|
-
* @since 4.0.0
|
|
986
1103
|
* @category prompts
|
|
1104
|
+
* @since 4.0.0
|
|
987
1105
|
*/
|
|
988
1106
|
export class PromptListChangedNotification extends /*#__PURE__*/Rpc.make("notifications/prompts/list_changed", {
|
|
989
1107
|
payload: /*#__PURE__*/Schema.UndefinedOr(NotificationMeta)
|
|
@@ -1001,8 +1119,8 @@ export class PromptListChangedNotification extends /*#__PURE__*/Rpc.make("notifi
|
|
|
1001
1119
|
* Clients should never make tool use decisions based on ToolAnnotations
|
|
1002
1120
|
* received from untrusted servers.
|
|
1003
1121
|
*
|
|
1004
|
-
* @since 4.0.0
|
|
1005
1122
|
* @category tools
|
|
1123
|
+
* @since 4.0.0
|
|
1006
1124
|
*/
|
|
1007
1125
|
export class ToolAnnotations extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
1008
1126
|
/**
|
|
@@ -1046,8 +1164,8 @@ export class ToolAnnotations extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/S
|
|
|
1046
1164
|
/**
|
|
1047
1165
|
* Definition for a tool the client can call.
|
|
1048
1166
|
*
|
|
1049
|
-
* @since 4.0.0
|
|
1050
1167
|
* @category tools
|
|
1168
|
+
* @since 4.0.0
|
|
1051
1169
|
*/
|
|
1052
1170
|
export class Tool extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/Tool")({
|
|
1053
1171
|
/**
|
|
@@ -1080,8 +1198,8 @@ export class Tool extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/Tool")
|
|
|
1080
1198
|
/**
|
|
1081
1199
|
* The server's response to a tools/list request from the client.
|
|
1082
1200
|
*
|
|
1083
|
-
* @since 4.0.0
|
|
1084
1201
|
* @category tools
|
|
1202
|
+
* @since 4.0.0
|
|
1085
1203
|
*/
|
|
1086
1204
|
export class ListToolsResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/ListToolsResult")({
|
|
1087
1205
|
...PaginatedResultMeta.fields,
|
|
@@ -1090,8 +1208,8 @@ export class ListToolsResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSc
|
|
|
1090
1208
|
/**
|
|
1091
1209
|
* Sent from the client to request a list of tools the server has.
|
|
1092
1210
|
*
|
|
1093
|
-
* @since 4.0.0
|
|
1094
1211
|
* @category tools
|
|
1212
|
+
* @since 4.0.0
|
|
1095
1213
|
*/
|
|
1096
1214
|
export class ListTools extends /*#__PURE__*/Rpc.make("tools/list", {
|
|
1097
1215
|
success: ListToolsResult,
|
|
@@ -1110,8 +1228,8 @@ export class ListTools extends /*#__PURE__*/Rpc.make("tools/list", {
|
|
|
1110
1228
|
* server does not support tool calls, or any other exceptional conditions,
|
|
1111
1229
|
* should be reported as an MCP error response.
|
|
1112
1230
|
*
|
|
1113
|
-
* @since 4.0.0
|
|
1114
1231
|
* @category tools
|
|
1232
|
+
* @since 4.0.0
|
|
1115
1233
|
*/
|
|
1116
1234
|
export class CallToolResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/CallToolResult")({
|
|
1117
1235
|
...ResultMeta.fields,
|
|
@@ -1127,8 +1245,8 @@ export class CallToolResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSch
|
|
|
1127
1245
|
/**
|
|
1128
1246
|
* Used by the client to invoke a tool provided by the server.
|
|
1129
1247
|
*
|
|
1130
|
-
* @since 4.0.0
|
|
1131
1248
|
* @category tools
|
|
1249
|
+
* @since 4.0.0
|
|
1132
1250
|
*/
|
|
1133
1251
|
export class CallTool extends /*#__PURE__*/Rpc.make("tools/call", {
|
|
1134
1252
|
success: CallToolResult,
|
|
@@ -1144,8 +1262,8 @@ export class CallTool extends /*#__PURE__*/Rpc.make("tools/call", {
|
|
|
1144
1262
|
* the list of tools it offers has changed. This may be issued by servers
|
|
1145
1263
|
* without any previous subscription from the client.
|
|
1146
1264
|
*
|
|
1147
|
-
* @since 4.0.0
|
|
1148
1265
|
* @category tools
|
|
1266
|
+
* @since 4.0.0
|
|
1149
1267
|
*/
|
|
1150
1268
|
export class ToolListChangedNotification extends /*#__PURE__*/Rpc.make("notifications/tools/list_changed", {
|
|
1151
1269
|
payload: /*#__PURE__*/Schema.UndefinedOr(NotificationMeta)
|
|
@@ -1159,15 +1277,15 @@ export class ToolListChangedNotification extends /*#__PURE__*/Rpc.make("notifica
|
|
|
1159
1277
|
* These map to syslog message severities, as specified in RFC-5424:
|
|
1160
1278
|
* https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
|
|
1161
1279
|
*
|
|
1162
|
-
* @since 4.0.0
|
|
1163
1280
|
* @category logging
|
|
1281
|
+
* @since 4.0.0
|
|
1164
1282
|
*/
|
|
1165
1283
|
export const LoggingLevel = /*#__PURE__*/Schema.Literals(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
1166
1284
|
/**
|
|
1167
1285
|
* A request from the client to the server, to enable or adjust logging.
|
|
1168
1286
|
*
|
|
1169
|
-
* @since 4.0.0
|
|
1170
1287
|
* @category logging
|
|
1288
|
+
* @since 4.0.0
|
|
1171
1289
|
*/
|
|
1172
1290
|
export class SetLevel extends /*#__PURE__*/Rpc.make("logging/setLevel", {
|
|
1173
1291
|
payload: {
|
|
@@ -1182,8 +1300,13 @@ export class SetLevel extends /*#__PURE__*/Rpc.make("logging/setLevel", {
|
|
|
1182
1300
|
error: McpError
|
|
1183
1301
|
}) {}
|
|
1184
1302
|
/**
|
|
1185
|
-
*
|
|
1303
|
+
* Server notification carrying a log message for the client.
|
|
1304
|
+
*
|
|
1305
|
+
* The notification includes the severity level, optional logger name, and
|
|
1306
|
+
* JSON-serializable log data.
|
|
1307
|
+
*
|
|
1186
1308
|
* @category logging
|
|
1309
|
+
* @since 4.0.0
|
|
1187
1310
|
*/
|
|
1188
1311
|
export class LoggingMessageNotification extends /*#__PURE__*/Rpc.make("notifications/message", {
|
|
1189
1312
|
payload: /*#__PURE__*/Schema.Struct({
|
|
@@ -1209,8 +1332,8 @@ export class LoggingMessageNotification extends /*#__PURE__*/Rpc.make("notificat
|
|
|
1209
1332
|
/**
|
|
1210
1333
|
* Describes a message issued to or received from an LLM API.
|
|
1211
1334
|
*
|
|
1212
|
-
* @since 4.0.0
|
|
1213
1335
|
* @category sampling
|
|
1336
|
+
* @since 4.0.0
|
|
1214
1337
|
*/
|
|
1215
1338
|
export class SamplingMessage extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
1216
1339
|
role: Role,
|
|
@@ -1222,8 +1345,8 @@ export class SamplingMessage extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/S
|
|
|
1222
1345
|
* Keys not declared here are currently left unspecified by the spec and are up
|
|
1223
1346
|
* to the client to interpret.
|
|
1224
1347
|
*
|
|
1225
|
-
* @since 4.0.0
|
|
1226
1348
|
* @category sampling
|
|
1349
|
+
* @since 4.0.0
|
|
1227
1350
|
*/
|
|
1228
1351
|
export class ModelHint extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
1229
1352
|
/**
|
|
@@ -1253,8 +1376,8 @@ export class ModelHint extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.
|
|
|
1253
1376
|
* up to the client to decide how to interpret these preferences and how to
|
|
1254
1377
|
* balance them against other considerations.
|
|
1255
1378
|
*
|
|
1256
|
-
* @since 4.0.0
|
|
1257
1379
|
* @category sampling
|
|
1380
|
+
* @since 4.0.0
|
|
1258
1381
|
*/
|
|
1259
1382
|
export class ModelPreferences extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/ModelPreferences")({
|
|
1260
1383
|
/**
|
|
@@ -1301,8 +1424,8 @@ export class ModelPreferences extends /*#__PURE__*/Schema.Class("@effect/ai/McpS
|
|
|
1301
1424
|
* allow them to inspect the response (human in the loop) and decide whether to
|
|
1302
1425
|
* allow the server to see it.
|
|
1303
1426
|
*
|
|
1304
|
-
* @since 4.0.0
|
|
1305
1427
|
* @category sampling
|
|
1428
|
+
* @since 4.0.0
|
|
1306
1429
|
*/
|
|
1307
1430
|
export class CreateMessageResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/CreateMessageResult")({
|
|
1308
1431
|
/**
|
|
@@ -1320,8 +1443,8 @@ export class CreateMessageResult extends /*#__PURE__*/Schema.Class("@effect/ai/M
|
|
|
1320
1443
|
* user before beginning sampling, to allow them to inspect the request (human
|
|
1321
1444
|
* in the loop) and decide whether to approve it.
|
|
1322
1445
|
*
|
|
1323
|
-
* @since 4.0.0
|
|
1324
1446
|
* @category sampling
|
|
1447
|
+
* @since 4.0.0
|
|
1325
1448
|
*/
|
|
1326
1449
|
export class CreateMessage extends /*#__PURE__*/Rpc.make("sampling/createMessage", {
|
|
1327
1450
|
success: CreateMessageResult,
|
|
@@ -1363,8 +1486,8 @@ export class CreateMessage extends /*#__PURE__*/Rpc.make("sampling/createMessage
|
|
|
1363
1486
|
/**
|
|
1364
1487
|
* A reference to a resource or resource template definition.
|
|
1365
1488
|
*
|
|
1366
|
-
* @since 4.0.0
|
|
1367
1489
|
* @category autocomplete
|
|
1490
|
+
* @since 4.0.0
|
|
1368
1491
|
*/
|
|
1369
1492
|
export class ResourceReference extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
1370
1493
|
type: /*#__PURE__*/Schema.tag("ref/resource"),
|
|
@@ -1376,8 +1499,8 @@ export class ResourceReference extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*
|
|
|
1376
1499
|
/**
|
|
1377
1500
|
* Identifies a prompt.
|
|
1378
1501
|
*
|
|
1379
|
-
* @since 4.0.0
|
|
1380
1502
|
* @category autocomplete
|
|
1503
|
+
* @since 4.0.0
|
|
1381
1504
|
*/
|
|
1382
1505
|
export class PromptReference extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
1383
1506
|
type: /*#__PURE__*/Schema.tag("ref/prompt"),
|
|
@@ -1390,8 +1513,8 @@ export class PromptReference extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/S
|
|
|
1390
1513
|
/**
|
|
1391
1514
|
* The server's response to a completion/complete request
|
|
1392
1515
|
*
|
|
1393
|
-
* @since 4.0.0
|
|
1394
1516
|
* @category autocomplete
|
|
1517
|
+
* @since 4.0.0
|
|
1395
1518
|
*/
|
|
1396
1519
|
export class CompleteResult extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema.Struct({
|
|
1397
1520
|
completion: /*#__PURE__*/Schema.Struct({
|
|
@@ -1412,6 +1535,8 @@ export class CompleteResult extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Sc
|
|
|
1412
1535
|
})
|
|
1413
1536
|
})) {
|
|
1414
1537
|
/**
|
|
1538
|
+
* Empty completion result used when a completion request has no values.
|
|
1539
|
+
*
|
|
1415
1540
|
* @since 4.0.0
|
|
1416
1541
|
*/
|
|
1417
1542
|
static empty = /*#__PURE__*/CompleteResult.make({
|
|
@@ -1425,8 +1550,8 @@ export class CompleteResult extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Sc
|
|
|
1425
1550
|
/**
|
|
1426
1551
|
* A request from the client to the server, to ask for completion options.
|
|
1427
1552
|
*
|
|
1428
|
-
* @since 4.0.0
|
|
1429
1553
|
* @category autocomplete
|
|
1554
|
+
* @since 4.0.0
|
|
1430
1555
|
*/
|
|
1431
1556
|
export class Complete extends /*#__PURE__*/Rpc.make("completion/complete", {
|
|
1432
1557
|
success: CompleteResult,
|
|
@@ -1465,8 +1590,8 @@ export class Complete extends /*#__PURE__*/Rpc.make("completion/complete", {
|
|
|
1465
1590
|
/**
|
|
1466
1591
|
* Represents a root directory or file that the server can operate on.
|
|
1467
1592
|
*
|
|
1468
|
-
* @since 4.0.0
|
|
1469
1593
|
* @category roots
|
|
1594
|
+
* @since 4.0.0
|
|
1470
1595
|
*/
|
|
1471
1596
|
export class Root extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/Root")({
|
|
1472
1597
|
/**
|
|
@@ -1487,8 +1612,8 @@ export class Root extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/Root")
|
|
|
1487
1612
|
* contains an array of Root objects, each representing a root directory or file
|
|
1488
1613
|
* that the server can operate on.
|
|
1489
1614
|
*
|
|
1490
|
-
* @since 4.0.0
|
|
1491
1615
|
* @category roots
|
|
1616
|
+
* @since 4.0.0
|
|
1492
1617
|
*/
|
|
1493
1618
|
export class ListRootsResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/ListRootsResult")({
|
|
1494
1619
|
roots: /*#__PURE__*/Schema.Array(Root)
|
|
@@ -1504,8 +1629,8 @@ export class ListRootsResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSc
|
|
|
1504
1629
|
* system structure or access specific locations that the client has permission
|
|
1505
1630
|
* to read from.
|
|
1506
1631
|
*
|
|
1507
|
-
* @since 4.0.0
|
|
1508
1632
|
* @category roots
|
|
1633
|
+
* @since 4.0.0
|
|
1509
1634
|
*/
|
|
1510
1635
|
export class ListRoots extends /*#__PURE__*/Rpc.make("roots/list", {
|
|
1511
1636
|
success: ListRootsResult,
|
|
@@ -1518,8 +1643,8 @@ export class ListRoots extends /*#__PURE__*/Rpc.make("roots/list", {
|
|
|
1518
1643
|
* removes, or modifies any root. The server should then request an updated list
|
|
1519
1644
|
* of roots using the ListRootsRequest.
|
|
1520
1645
|
*
|
|
1521
|
-
* @since 4.0.0
|
|
1522
1646
|
* @category roots
|
|
1647
|
+
* @since 4.0.0
|
|
1523
1648
|
*/
|
|
1524
1649
|
export class RootsListChangedNotification extends /*#__PURE__*/Rpc.make("notifications/roots/list_changed", {
|
|
1525
1650
|
payload: /*#__PURE__*/Schema.UndefinedOr(NotificationMeta)
|
|
@@ -1530,8 +1655,8 @@ export class RootsListChangedNotification extends /*#__PURE__*/Rpc.make("notific
|
|
|
1530
1655
|
/**
|
|
1531
1656
|
* The client's response to an elicitation request
|
|
1532
1657
|
*
|
|
1533
|
-
* @since 4.0.0
|
|
1534
1658
|
* @category elicitation
|
|
1659
|
+
* @since 4.0.0
|
|
1535
1660
|
*/
|
|
1536
1661
|
export class ElicitAcceptResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/ElicitAcceptResult")({
|
|
1537
1662
|
...ResultMeta.fields,
|
|
@@ -1551,8 +1676,8 @@ export class ElicitAcceptResult extends /*#__PURE__*/Schema.Class("@effect/ai/Mc
|
|
|
1551
1676
|
/**
|
|
1552
1677
|
* The client's response to an elicitation request
|
|
1553
1678
|
*
|
|
1554
|
-
* @since 4.0.0
|
|
1555
1679
|
* @category elicitation
|
|
1680
|
+
* @since 4.0.0
|
|
1556
1681
|
*/
|
|
1557
1682
|
export class ElicitDeclineResult extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/ElicitDeclineResult")({
|
|
1558
1683
|
...ResultMeta.fields,
|
|
@@ -1567,13 +1692,19 @@ export class ElicitDeclineResult extends /*#__PURE__*/Schema.Class("@effect/ai/M
|
|
|
1567
1692
|
/**
|
|
1568
1693
|
* The client's response to an elicitation request
|
|
1569
1694
|
*
|
|
1570
|
-
* @since 4.0.0
|
|
1571
1695
|
* @category elicitation
|
|
1696
|
+
* @since 4.0.0
|
|
1572
1697
|
*/
|
|
1573
1698
|
export const ElicitResult = /*#__PURE__*/Schema.Union([ElicitAcceptResult, ElicitDeclineResult]);
|
|
1574
1699
|
/**
|
|
1575
|
-
*
|
|
1700
|
+
* Request sent by the server asking the client to collect structured input
|
|
1701
|
+
* from the user.
|
|
1702
|
+
*
|
|
1703
|
+
* The client responds with accepted content, an explicit decline, or a
|
|
1704
|
+
* cancellation.
|
|
1705
|
+
*
|
|
1576
1706
|
* @category elicitation
|
|
1707
|
+
* @since 4.0.0
|
|
1577
1708
|
*/
|
|
1578
1709
|
export class Elicit extends /*#__PURE__*/Rpc.make("elicitation/create", {
|
|
1579
1710
|
success: ElicitResult,
|
|
@@ -1592,8 +1723,14 @@ export class Elicit extends /*#__PURE__*/Rpc.make("elicitation/create", {
|
|
|
1592
1723
|
}
|
|
1593
1724
|
}) {}
|
|
1594
1725
|
/**
|
|
1595
|
-
*
|
|
1726
|
+
* Error raised when an MCP elicitation request is declined or fails before
|
|
1727
|
+
* accepted content is returned.
|
|
1728
|
+
*
|
|
1729
|
+
* The error stores the original elicitation request and, when available, the
|
|
1730
|
+
* underlying cause.
|
|
1731
|
+
*
|
|
1596
1732
|
* @category elicitation
|
|
1733
|
+
* @since 4.0.0
|
|
1597
1734
|
*/
|
|
1598
1735
|
export class ElicitationDeclined extends /*#__PURE__*/Schema.ErrorClass("@effect/ai/McpSchema/ElicitationDeclined")({
|
|
1599
1736
|
_tag: /*#__PURE__*/Schema.tag("ElicitationDeclined"),
|
|
@@ -1604,44 +1741,73 @@ export class ElicitationDeclined extends /*#__PURE__*/Schema.ErrorClass("@effect
|
|
|
1604
1741
|
// McpServerClient
|
|
1605
1742
|
// =============================================================================
|
|
1606
1743
|
/**
|
|
1607
|
-
*
|
|
1744
|
+
* Service available while handling an MCP client request.
|
|
1745
|
+
*
|
|
1746
|
+
* It exposes the current client id, the client's initialize payload, and a
|
|
1747
|
+
* scoped RPC client for server-initiated requests back to that client.
|
|
1748
|
+
*
|
|
1608
1749
|
* @category client
|
|
1750
|
+
* @since 4.0.0
|
|
1609
1751
|
*/
|
|
1610
1752
|
export class McpServerClient extends /*#__PURE__*/Context.Service()("effect/ai/McpSchema/McpServerClient") {}
|
|
1611
1753
|
/**
|
|
1612
|
-
*
|
|
1754
|
+
* RPC middleware that provides `McpServerClient` to handlers for initialized
|
|
1755
|
+
* MCP clients.
|
|
1756
|
+
*
|
|
1613
1757
|
* @category middleware
|
|
1758
|
+
* @since 4.0.0
|
|
1614
1759
|
*/
|
|
1615
1760
|
export class McpServerClientMiddleware extends /*#__PURE__*/RpcMiddleware.Service()("effect/ai/McpSchema/McpServerClientMiddleware") {}
|
|
1616
1761
|
/**
|
|
1617
|
-
*
|
|
1762
|
+
* RPC group for requests that MCP clients send to the server.
|
|
1763
|
+
*
|
|
1764
|
+
* The group includes initialization, resource, prompt, tool, logging,
|
|
1765
|
+
* completion, and ping requests, and installs `McpServerClientMiddleware` for
|
|
1766
|
+
* handlers.
|
|
1767
|
+
*
|
|
1618
1768
|
* @category protocol
|
|
1769
|
+
* @since 4.0.0
|
|
1619
1770
|
*/
|
|
1620
1771
|
export class ClientRequestRpcs extends /*#__PURE__*/RpcGroup.make(Ping, Initialize, Complete, SetLevel, GetPrompt, ListPrompts, ListResources, ListResourceTemplates, ReadResource, Subscribe, Unsubscribe, CallTool, ListTools).middleware(McpServerClientMiddleware) {}
|
|
1621
1772
|
/**
|
|
1622
|
-
*
|
|
1773
|
+
* RPC group for notifications that MCP clients send to the server, such as
|
|
1774
|
+
* cancellation, progress, initialization completion, and roots list changes.
|
|
1775
|
+
*
|
|
1623
1776
|
* @category protocol
|
|
1777
|
+
* @since 4.0.0
|
|
1624
1778
|
*/
|
|
1625
1779
|
export class ClientNotificationRpcs extends /*#__PURE__*/RpcGroup.make(CancelledNotification, ProgressNotification, InitializedNotification, RootsListChangedNotification) {}
|
|
1626
1780
|
/**
|
|
1627
|
-
*
|
|
1781
|
+
* RPC group combining all client-to-server MCP requests and notifications.
|
|
1782
|
+
*
|
|
1628
1783
|
* @category protocol
|
|
1784
|
+
* @since 4.0.0
|
|
1629
1785
|
*/
|
|
1630
1786
|
export class ClientRpcs extends /*#__PURE__*/ClientRequestRpcs.merge(ClientNotificationRpcs) {}
|
|
1631
1787
|
/**
|
|
1632
|
-
*
|
|
1788
|
+
* RPC group for requests that an MCP server can send to a client, including
|
|
1789
|
+
* ping, sampling, roots listing, and elicitation.
|
|
1790
|
+
*
|
|
1633
1791
|
* @category protocol
|
|
1792
|
+
* @since 4.0.0
|
|
1634
1793
|
*/
|
|
1635
1794
|
export class ServerRequestRpcs extends /*#__PURE__*/RpcGroup.make(Ping, CreateMessage, ListRoots, Elicit) {}
|
|
1636
1795
|
/**
|
|
1637
|
-
*
|
|
1796
|
+
* RPC group for notifications that an MCP server can send to a client,
|
|
1797
|
+
* including cancellation, progress, logging, and list or resource update
|
|
1798
|
+
* notifications.
|
|
1799
|
+
*
|
|
1638
1800
|
* @category protocol
|
|
1801
|
+
* @since 4.0.0
|
|
1639
1802
|
*/
|
|
1640
1803
|
export class ServerNotificationRpcs extends /*#__PURE__*/RpcGroup.make(CancelledNotification, ProgressNotification, LoggingMessageNotification, ResourceUpdatedNotification, ResourceListChangedNotification, ToolListChangedNotification, PromptListChangedNotification) {}
|
|
1641
1804
|
const ParamSchemaTypeId = "~effect/ai/McpSchema/ParamSchema";
|
|
1642
1805
|
/**
|
|
1643
|
-
*
|
|
1806
|
+
* Returns `true` when a schema was created with `param` and therefore carries
|
|
1807
|
+
* a resource URI template parameter name.
|
|
1808
|
+
*
|
|
1644
1809
|
* @category parameters
|
|
1810
|
+
* @since 4.0.0
|
|
1645
1811
|
*/
|
|
1646
1812
|
export function isParam(schema) {
|
|
1647
1813
|
return Predicate.hasProperty(schema, ParamSchemaTypeId);
|
|
@@ -1649,8 +1815,8 @@ export function isParam(schema) {
|
|
|
1649
1815
|
/**
|
|
1650
1816
|
* Helper to create a param for a resource URI template.
|
|
1651
1817
|
*
|
|
1652
|
-
* @since 4.0.0
|
|
1653
1818
|
* @category parameters
|
|
1819
|
+
* @since 4.0.0
|
|
1654
1820
|
*/
|
|
1655
1821
|
export function param(name, schema) {
|
|
1656
1822
|
return Schema.make(schema.ast, {
|
|
@@ -1663,8 +1829,8 @@ export function param(name, schema) {
|
|
|
1663
1829
|
* Annotation to conditionally enable or disable tools based on client
|
|
1664
1830
|
* information.
|
|
1665
1831
|
*
|
|
1666
|
-
* @since 4.0.0
|
|
1667
1832
|
* @category annotations
|
|
1833
|
+
* @since 4.0.0
|
|
1668
1834
|
*/
|
|
1669
1835
|
export class EnabledWhen extends /*#__PURE__*/Context.Service()("effect/unstable/ai/McpSchema/EnabledWhen") {}
|
|
1670
1836
|
//# sourceMappingURL=McpSchema.js.map
|