effect 4.0.0 → 4.0.2
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/ai-docs/package.json +2 -2
- package/ai-docs/tsconfig.json +2 -1
- package/dist/Array.d.ts +339 -0
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +143 -3
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +88 -0
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +44 -0
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +68 -0
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +36 -0
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +34 -0
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +18 -0
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +9 -0
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +6 -0
- package/dist/Brand.js.map +1 -1
- package/dist/ByteSize.d.ts +86 -0
- package/dist/ByteSize.d.ts.map +1 -1
- package/dist/ByteSize.js +51 -0
- package/dist/ByteSize.js.map +1 -1
- package/dist/Cache.d.ts +38 -1
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +47 -23
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +82 -0
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +61 -1
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +327 -4
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +168 -8
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +11 -0
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +6 -0
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +192 -0
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +78 -0
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +7 -0
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js +5 -0
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +10 -0
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +8 -0
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +52 -12
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +55 -5
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +28 -0
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +19 -0
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +22 -0
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +20 -0
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +50 -0
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +21 -0
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +16 -0
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +26 -1
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +5 -0
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +3 -0
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +13 -0
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +5 -0
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +171 -0
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +89 -0
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +51 -0
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +22 -0
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +2 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Differ.js +1 -0
- package/dist/Duration.d.ts +90 -0
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +53 -0
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +677 -22
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +251 -10
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +4 -0
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +3 -0
- package/dist/Effectable.js.map +1 -1
- package/dist/Equal.d.ts +8 -0
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +9 -1
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +21 -0
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +16 -0
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +36 -0
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +11 -0
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +49 -8
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +7 -0
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +40 -0
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +27 -0
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +20 -0
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +11 -0
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +21 -0
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +21 -4
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +35 -0
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +19 -0
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +20 -0
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +14 -0
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +15 -0
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +8 -0
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +55 -0
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +28 -0
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +3 -0
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +39 -1
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +30 -0
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +20 -0
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +247 -12
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +149 -28
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +5 -0
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +14 -0
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +12 -0
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +91 -0
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +39 -0
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +17 -0
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +22 -5
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +49 -0
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js +19 -0
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +7 -0
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +6 -0
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +127 -0
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +51 -0
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +4 -0
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +3 -0
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +5 -0
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +5 -0
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +16 -0
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +11 -0
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +14 -0
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +10 -0
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +100 -0
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +45 -1
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +7 -0
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +4 -0
- package/dist/LayerMap.js.map +1 -1
- package/dist/LayerRef.d.ts +5 -0
- package/dist/LayerRef.d.ts.map +1 -1
- package/dist/LayerRef.js +3 -0
- package/dist/LayerRef.js.map +1 -1
- package/dist/LogLevel.d.ts +20 -0
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +9 -0
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +25 -0
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +30 -4
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +5 -0
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +9 -1
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +51 -0
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +39 -0
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +59 -0
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +31 -0
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +32 -0
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +16 -0
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +16 -0
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +10 -0
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +20 -0
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +18 -0
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +31 -0
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +17 -0
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +9 -0
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +6 -0
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +4 -0
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +2 -0
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +61 -0
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +31 -0
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +41 -0
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +20 -0
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +134 -0
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +61 -0
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +29 -0
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +24 -0
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +7 -0
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +3 -0
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +24 -0
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +47 -21
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +6 -0
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +4 -0
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +7 -0
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +5 -0
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +8 -0
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +7 -0
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +28 -5
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +42 -42
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +84 -0
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +48 -0
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +5 -0
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +4 -0
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +67 -5
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +60 -8
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +20 -0
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +10 -0
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +60 -0
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +58 -8
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +13 -0
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +9 -0
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +23 -0
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +24 -1
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +6 -0
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js +3 -0
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +100 -0
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +43 -0
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +6 -0
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +4 -0
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +8 -0
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +6 -0
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +4 -0
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +3 -0
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +20 -0
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +16 -0
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +21 -0
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +19 -0
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts +3 -0
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +4 -0
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +32 -0
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +12 -0
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +42 -0
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +27 -6
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +6 -0
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +6 -0
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +91 -0
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +41 -0
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +9 -0
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +7 -0
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +57 -0
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +32 -0
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +7 -0
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +5 -0
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +496 -1
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +280 -1
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +107 -0
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +81 -1
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +69 -2
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +63 -4
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +33 -0
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +18 -0
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +25 -0
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +26 -0
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +147 -0
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +99 -0
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +53 -0
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +46 -0
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/Scope.d.ts +19 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +12 -0
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +34 -0
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +50 -19
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +9 -0
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +6 -0
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +26 -0
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +10 -0
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +125 -1
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +75 -1
- package/dist/Sink.js.map +1 -1
- package/dist/StandardSchema.d.ts +1 -0
- package/dist/StandardSchema.d.ts.map +1 -1
- package/dist/StandardSchema.js +1 -0
- package/dist/Stdio.d.ts +7 -0
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +5 -0
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +603 -6
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +316 -57
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +87 -0
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +61 -0
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +46 -0
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +19 -0
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +65 -0
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +25 -0
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +2 -0
- package/dist/Symbol.d.ts.map +1 -1
- package/dist/Symbol.js +2 -0
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +63 -0
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +24 -0
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Take.d.ts +3 -0
- package/dist/Take.d.ts.map +1 -1
- package/dist/Take.js +1 -0
- package/dist/Take.js.map +1 -1
- package/dist/Terminal.d.ts +8 -0
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +4 -0
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +23 -0
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +12 -0
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +68 -0
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +28 -0
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +38 -0
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +18 -0
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +52 -0
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +23 -0
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +15 -0
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +8 -0
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +83 -0
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +52 -7
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +51 -0
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +29 -4
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +30 -0
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +22 -1
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +25 -0
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +19 -0
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +51 -0
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +30 -0
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +24 -0
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +32 -18
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +14 -0
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +7 -0
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +25 -0
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +29 -13
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +25 -0
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +12 -0
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +36 -0
- package/dist/Types.d.ts.map +1 -1
- package/dist/Types.js +1 -0
- package/dist/UndefinedOr.d.ts +15 -0
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +9 -0
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +15 -0
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +2 -0
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +4 -0
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +1 -0
- package/dist/Utils.js.map +1 -1
- package/dist/Version.d.ts +26 -0
- package/dist/Version.d.ts.map +1 -0
- package/dist/Version.js +36 -0
- package/dist/Version.js.map +1 -0
- package/dist/ai/Chat.js +1 -1
- package/dist/ai/Chat.js.map +1 -1
- package/dist/ai/DecisionModel.d.ts +22 -0
- package/dist/ai/DecisionModel.d.ts.map +1 -1
- package/dist/ai/DecisionModel.js +22 -4
- package/dist/ai/DecisionModel.js.map +1 -1
- package/dist/ai/LanguageModel.d.ts +8 -0
- package/dist/ai/LanguageModel.d.ts.map +1 -1
- package/dist/ai/LanguageModel.js +27 -15
- package/dist/ai/LanguageModel.js.map +1 -1
- package/dist/ai/McpSchema.d.ts +508 -508
- package/dist/ai/McpSchema.d.ts.map +1 -1
- package/dist/ai/McpSchema.js +1 -1
- package/dist/ai/McpSchema.js.map +1 -1
- package/dist/ai/McpServer.d.ts +32 -11
- package/dist/ai/McpServer.d.ts.map +1 -1
- package/dist/ai/McpServer.js +224 -172
- package/dist/ai/McpServer.js.map +1 -1
- package/dist/ai/Response.d.ts.map +1 -1
- package/dist/ai/Response.js +22 -12
- package/dist/ai/Response.js.map +1 -1
- package/dist/ai/Telemetry.d.ts +49 -41
- package/dist/ai/Telemetry.d.ts.map +1 -1
- package/dist/ai/Telemetry.js +6 -8
- package/dist/ai/Telemetry.js.map +1 -1
- package/dist/ai/internal/mcpProtocol/v2024_11_05.js +1 -0
- package/dist/ai/internal/mcpProtocol/v2024_11_05.js.map +1 -1
- package/dist/ai/internal/mcpProtocol/v2025_03_26.js +1 -0
- package/dist/ai/internal/mcpProtocol/v2025_03_26.js.map +1 -1
- package/dist/ai/internal/mcpProtocol/v2025_06_18.js +1 -0
- package/dist/ai/internal/mcpProtocol/v2025_06_18.js.map +1 -1
- package/dist/ai/internal/mcpProtocol/v2025_11_25.js +1 -0
- package/dist/ai/internal/mcpProtocol/v2025_11_25.js.map +1 -1
- package/dist/ai/internal/mcpRuntime.js +79 -46
- package/dist/ai/internal/mcpRuntime.js.map +1 -1
- package/dist/ai/internal/mcpSchema/v2024_11_05.js +3 -1
- package/dist/ai/internal/mcpSchema/v2024_11_05.js.map +1 -1
- package/dist/ai/internal/mcpStatefulRuntime.js +1 -0
- package/dist/ai/internal/mcpStatefulRuntime.js.map +1 -1
- package/dist/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/cluster/ClusterWorkflowEngine.js +11 -2
- package/dist/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/cluster/K8sHttpClient.js +5 -2
- package/dist/cluster/K8sHttpClient.js.map +1 -1
- package/dist/cluster/Sharding.d.ts.map +1 -1
- package/dist/cluster/Sharding.js +14 -7
- package/dist/cluster/Sharding.js.map +1 -1
- package/dist/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/cluster/SqlMessageStorage.js +21 -12
- package/dist/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/cluster/SqlRunnerStorage.js +30 -44
- package/dist/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/cluster/internal/entityManager.js +63 -62
- package/dist/cluster/internal/entityManager.js.map +1 -1
- package/dist/cluster/internal/interruptors.js +8 -0
- package/dist/cluster/internal/interruptors.js.map +1 -1
- package/dist/cluster/internal/resourceMap.js +39 -14
- package/dist/cluster/internal/resourceMap.js.map +1 -1
- package/dist/cluster/internal/resourceRef.js +168 -87
- package/dist/cluster/internal/resourceRef.js.map +1 -1
- package/dist/encoding/Base64.d.ts +4 -0
- package/dist/encoding/Base64.d.ts.map +1 -1
- package/dist/encoding/Base64.js +4 -0
- package/dist/encoding/Base64.js.map +1 -1
- package/dist/encoding/Base64Url.d.ts +4 -0
- package/dist/encoding/Base64Url.d.ts.map +1 -1
- package/dist/encoding/Base64Url.js +4 -0
- package/dist/encoding/Base64Url.js.map +1 -1
- package/dist/encoding/EncodingError.d.ts +4 -0
- package/dist/encoding/EncodingError.d.ts.map +1 -1
- package/dist/encoding/EncodingError.js +4 -0
- package/dist/encoding/EncodingError.js.map +1 -1
- package/dist/encoding/Hex.d.ts +5 -0
- package/dist/encoding/Hex.d.ts.map +1 -1
- package/dist/encoding/Hex.js +5 -0
- package/dist/encoding/Hex.js.map +1 -1
- package/dist/encoding/Toml.js +2 -2
- package/dist/encoding/Toml.js.map +1 -1
- package/dist/encoding/Yaml.d.ts.map +1 -1
- package/dist/encoding/Yaml.js +6 -4
- package/dist/encoding/Yaml.js.map +1 -1
- package/dist/encoding/index.d.ts +4 -0
- package/dist/encoding/index.d.ts.map +1 -1
- package/dist/encoding/index.js +4 -0
- package/dist/encoding/index.js.map +1 -1
- package/dist/eventlog/SqlEventJournal.js +8 -4
- package/dist/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/eventlog/SqlEventLogServerUnencrypted.d.ts +27 -10
- package/dist/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/eventlog/SqlEventLogServerUnencrypted.js +49 -7
- package/dist/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/http/Headers.d.ts +3 -1
- package/dist/http/Headers.d.ts.map +1 -1
- package/dist/http/Headers.js +4 -2
- package/dist/http/Headers.js.map +1 -1
- package/dist/http/HttpClient.d.ts +9 -0
- package/dist/http/HttpClient.d.ts.map +1 -1
- package/dist/http/HttpClient.js +40 -21
- package/dist/http/HttpClient.js.map +1 -1
- package/dist/http/HttpClientResponse.js +3 -1
- package/dist/http/HttpClientResponse.js.map +1 -1
- package/dist/http/HttpEffect.d.ts +3 -0
- package/dist/http/HttpEffect.d.ts.map +1 -1
- package/dist/http/HttpEffect.js +5 -2
- package/dist/http/HttpEffect.js.map +1 -1
- package/dist/http/HttpMiddleware.d.ts +17 -0
- package/dist/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/http/HttpMiddleware.js +58 -40
- package/dist/http/HttpMiddleware.js.map +1 -1
- package/dist/http/HttpServer.d.ts +1 -1
- package/dist/http/HttpServer.d.ts.map +1 -1
- package/dist/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/http/HttpStaticServer.js +14 -0
- package/dist/http/HttpStaticServer.js.map +1 -1
- package/dist/http/HttpTraceContext.d.ts +1 -1
- package/dist/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/http/HttpTraceContext.js +4 -4
- package/dist/http/HttpTraceContext.js.map +1 -1
- package/dist/http/internal/tracing.d.ts +2 -0
- package/dist/http/internal/tracing.d.ts.map +1 -0
- package/dist/http/internal/tracing.js +37 -0
- package/dist/http/internal/tracing.js.map +1 -0
- package/dist/http-api/HttpApiBuilder.js +2 -1
- package/dist/http-api/HttpApiBuilder.js.map +1 -1
- package/dist/http-api/HttpApiClient.d.ts +12 -3
- package/dist/http-api/HttpApiClient.d.ts.map +1 -1
- package/dist/http-api/HttpApiClient.js.map +1 -1
- package/dist/http-api/HttpApiError.d.ts +4 -2
- package/dist/http-api/HttpApiError.d.ts.map +1 -1
- package/dist/http-api/HttpApiError.js +7 -3
- package/dist/http-api/HttpApiError.js.map +1 -1
- package/dist/http-api/HttpApiSecurity.d.ts +8 -8
- package/dist/http-api/HttpApiSecurity.js +8 -8
- package/dist/index.d.ts +155 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +155 -0
- package/dist/index.js.map +1 -1
- package/dist/internal/arbitrary/array.js +3 -3
- package/dist/internal/arbitrary/array.js.map +1 -1
- package/dist/internal/arbitrary/model.js +26 -11
- package/dist/internal/arbitrary/model.js.map +1 -1
- package/dist/internal/arbitrary/runner.js +8 -8
- package/dist/internal/arbitrary/runner.js.map +1 -1
- package/dist/internal/arbitrary/schema.js +4 -5
- package/dist/internal/arbitrary/schema.js.map +1 -1
- package/dist/internal/core.js +43 -2
- package/dist/internal/core.js.map +1 -1
- package/dist/internal/dateTime.js +1 -1
- package/dist/internal/dateTime.js.map +1 -1
- package/dist/internal/effect.js +104 -120
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/rcRef.js +59 -23
- package/dist/internal/rcRef.js.map +1 -1
- package/dist/internal/schedule.js +7 -5
- package/dist/internal/schedule.js.map +1 -1
- package/dist/internal/schema/fromJsonSchemaDocument.js +11 -8
- package/dist/internal/schema/fromJsonSchemaDocument.js.map +1 -1
- package/dist/internal/schema/standardSchema.js +2 -2
- package/dist/internal/schema/standardSchema.js.map +1 -1
- package/dist/internal/version.d.ts +2 -0
- package/dist/internal/version.d.ts.map +1 -0
- package/dist/internal/version.js +3 -0
- package/dist/internal/version.js.map +1 -0
- package/dist/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/observability/OtlpExporter.js +5 -6
- package/dist/observability/OtlpExporter.js.map +1 -1
- package/dist/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/observability/OtlpLogger.js +23 -27
- package/dist/observability/OtlpLogger.js.map +1 -1
- package/dist/observability/OtlpMetrics.d.ts +5 -3
- package/dist/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/observability/OtlpMetrics.js +21 -94
- package/dist/observability/OtlpMetrics.js.map +1 -1
- package/dist/observability/OtlpResource.d.ts +4 -3
- package/dist/observability/OtlpResource.d.ts.map +1 -1
- package/dist/observability/OtlpResource.js +20 -23
- package/dist/observability/OtlpResource.js.map +1 -1
- package/dist/observability/OtlpTracer.d.ts +1 -0
- package/dist/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/observability/OtlpTracer.js +32 -36
- package/dist/observability/OtlpTracer.js.map +1 -1
- package/dist/observability/internal/otlpProtobuf.js +32 -1
- package/dist/observability/internal/otlpProtobuf.js.map +1 -1
- package/dist/reactivity/AsyncResult.d.ts +1 -1
- package/dist/reactivity/Atom.d.ts +5 -5
- package/dist/reactivity/Atom.d.ts.map +1 -1
- package/dist/reactivity/Atom.js +9 -5
- package/dist/reactivity/Atom.js.map +1 -1
- package/dist/reactivity/AtomHttpApi.d.ts +2 -2
- package/dist/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/reactivity/AtomRegistry.d.ts +8 -0
- package/dist/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/reactivity/AtomRegistry.js.map +1 -1
- package/dist/rpc/RpcClient.d.ts +21 -3
- package/dist/rpc/RpcClient.d.ts.map +1 -1
- package/dist/rpc/RpcClient.js +58 -34
- package/dist/rpc/RpcClient.js.map +1 -1
- package/dist/rpc/RpcServer.d.ts.map +1 -1
- package/dist/rpc/RpcServer.js +20 -23
- package/dist/rpc/RpcServer.js.map +1 -1
- package/dist/rpc/Utils.d.ts +2 -3
- package/dist/rpc/Utils.d.ts.map +1 -1
- package/dist/rpc/Utils.js +3 -4
- package/dist/rpc/Utils.js.map +1 -1
- package/dist/rpc/internal/tracing.d.ts +2 -0
- package/dist/rpc/internal/tracing.d.ts.map +1 -0
- package/dist/rpc/internal/tracing.js +18 -0
- package/dist/rpc/internal/tracing.js.map +1 -0
- package/dist/schema/SchemaCompiler/runtime.js +9 -1
- package/dist/schema/SchemaCompiler/runtime.js.map +1 -1
- package/dist/sql/SqlClient.js +4 -4
- package/dist/sql/SqlClient.js.map +1 -1
- package/dist/sql/Statement.d.ts +21 -1
- package/dist/sql/Statement.d.ts.map +1 -1
- package/dist/sql/Statement.js +55 -7
- package/dist/sql/Statement.js.map +1 -1
- package/dist/testing/TestClock.d.ts +8 -0
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestClock.js +7 -0
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +7 -0
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +6 -0
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +3 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/workflow/WorkflowEngine.d.ts +2 -0
- package/dist/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/workflow/WorkflowEngine.js +1 -0
- package/dist/workflow/WorkflowEngine.js.map +1 -1
- package/package.json +3 -3
- package/src/Array.ts +351 -3
- package/src/BigDecimal.ts +88 -0
- package/src/BigInt.ts +68 -0
- package/src/Boolean.ts +34 -0
- package/src/Brand.ts +10 -0
- package/src/ByteSize.ts +87 -0
- package/src/Cache.ts +72 -24
- package/src/Cause.ts +83 -1
- package/src/Channel.ts +368 -18
- package/src/ChannelSchema.ts +13 -0
- package/src/Chunk.ts +193 -0
- package/src/Clock.ts +7 -0
- package/src/Combiner.ts +10 -0
- package/src/Config.ts +82 -8
- package/src/ConfigProvider.ts +28 -0
- package/src/Console.ts +26 -0
- package/src/Context.ts +50 -0
- package/src/Cron.ts +32 -1
- package/src/Crypto.ts +5 -0
- package/src/Data.ts +13 -0
- package/src/DateTime.ts +171 -0
- package/src/Deferred.ts +51 -0
- package/src/Differ.ts +2 -0
- package/src/Duration.ts +90 -0
- package/src/Effect.ts +692 -27
- package/src/Effectable.ts +4 -0
- package/src/Equal.ts +12 -1
- package/src/Equivalence.ts +22 -0
- package/src/ErrorReporter.ts +36 -0
- package/src/ExecutionPlan.ts +58 -14
- package/src/Exit.ts +40 -0
- package/src/Fiber.ts +20 -0
- package/src/FiberHandle.ts +29 -4
- package/src/FiberMap.ts +38 -0
- package/src/FiberSet.ts +21 -0
- package/src/FileSystem.ts +16 -0
- package/src/Filter.ts +55 -0
- package/src/Formatter.ts +42 -1
- package/src/Function.ts +30 -0
- package/src/Graph.ts +317 -36
- package/src/HKT.ts +5 -0
- package/src/Hash.ts +15 -0
- package/src/HashMap.ts +91 -0
- package/src/HashRing.ts +32 -5
- package/src/HashSet.ts +53 -0
- package/src/Inspectable.ts +8 -0
- package/src/Iterable.ts +127 -0
- package/src/JsonPatch.ts +5 -0
- package/src/JsonPointer.ts +5 -0
- package/src/JsonSchema.ts +17 -0
- package/src/Latch.ts +14 -0
- package/src/Layer.ts +101 -1
- package/src/LayerMap.ts +7 -0
- package/src/LayerRef.ts +5 -0
- package/src/LogLevel.ts +20 -0
- package/src/Logger.ts +41 -5
- package/src/ManagedRuntime.ts +12 -1
- package/src/Match.ts +52 -0
- package/src/Metric.ts +69 -0
- package/src/MutableHashMap.ts +44 -0
- package/src/MutableHashSet.ts +17 -0
- package/src/MutableList.ts +21 -0
- package/src/MutableRef.ts +32 -0
- package/src/Newtype.ts +9 -0
- package/src/NonEmptyIterable.ts +4 -0
- package/src/Number.ts +61 -0
- package/src/Optic.ts +57 -0
- package/src/Option.ts +134 -0
- package/src/Order.ts +30 -0
- package/src/Ordering.ts +7 -0
- package/src/PartitionedSemaphore.ts +61 -22
- package/src/Path.ts +6 -0
- package/src/Pipeable.ts +7 -0
- package/src/PlatformError.ts +8 -0
- package/src/Pool.ts +48 -37
- package/src/Predicate.ts +85 -0
- package/src/PrimaryKey.ts +5 -0
- package/src/PubSub.ts +90 -9
- package/src/Pull.ts +20 -0
- package/src/Queue.ts +80 -10
- package/src/Random.ts +13 -0
- package/src/RcMap.ts +49 -2
- package/src/RcRef.ts +6 -0
- package/src/Record.ts +100 -0
- package/src/Redactable.ts +6 -0
- package/src/Redacted.ts +8 -0
- package/src/Reducer.ts +4 -0
- package/src/Ref.ts +42 -0
- package/src/References.ts +21 -0
- package/src/RegExp.ts +4 -0
- package/src/Request.ts +32 -0
- package/src/RequestResolver.ts +59 -10
- package/src/Resource.ts +7 -0
- package/src/Result.ts +93 -0
- package/src/Runtime.ts +10 -0
- package/src/Schedule.ts +61 -0
- package/src/Scheduler.ts +7 -0
- package/src/Schema.ts +499 -4
- package/src/SchemaAST.ts +115 -1
- package/src/SchemaGetter.ts +80 -4
- package/src/SchemaIssue.ts +34 -0
- package/src/SchemaParser.ts +26 -0
- package/src/SchemaRepresentation.ts +148 -0
- package/src/SchemaTransformation.ts +53 -0
- package/src/Scope.ts +19 -0
- package/src/ScopedCache.ts +82 -19
- package/src/ScopedRef.ts +9 -0
- package/src/Semaphore.ts +26 -0
- package/src/Sink.ts +126 -2
- package/src/StandardSchema.ts +1 -0
- package/src/Stdio.ts +7 -0
- package/src/Stream.ts +780 -103
- package/src/String.ts +87 -0
- package/src/Struct.ts +46 -0
- package/src/SubscriptionRef.ts +65 -0
- package/src/Symbol.ts +2 -0
- package/src/SynchronizedRef.ts +63 -0
- package/src/Take.ts +3 -0
- package/src/Terminal.ts +8 -0
- package/src/Tracer.ts +23 -0
- package/src/Trie.ts +68 -0
- package/src/Tuple.ts +38 -0
- package/src/TxChunk.ts +52 -0
- package/src/TxDeferred.ts +15 -0
- package/src/TxHashMap.ts +97 -6
- package/src/TxHashSet.ts +83 -3
- package/src/TxPriorityQueue.ts +34 -2
- package/src/TxPubSub.ts +26 -0
- package/src/TxQueue.ts +51 -0
- package/src/TxReentrantLock.ts +53 -36
- package/src/TxRef.ts +14 -0
- package/src/TxSemaphore.ts +47 -31
- package/src/TxSubscriptionRef.ts +25 -0
- package/src/Types.ts +36 -0
- package/src/UndefinedOr.ts +15 -0
- package/src/Unify.ts +15 -0
- package/src/Utils.ts +4 -0
- package/src/Version.ts +38 -0
- package/src/ai/Chat.ts +1 -1
- package/src/ai/DecisionModel.ts +42 -1
- package/src/ai/LanguageModel.ts +43 -21
- package/src/ai/McpSchema.ts +3 -3
- package/src/ai/McpServer.ts +119 -39
- package/src/ai/Response.ts +27 -12
- package/src/ai/Telemetry.ts +62 -58
- package/src/ai/internal/mcpProtocol/v2024_11_05.ts +1 -0
- package/src/ai/internal/mcpProtocol/v2025_03_26.ts +1 -0
- package/src/ai/internal/mcpProtocol/v2025_06_18.ts +1 -0
- package/src/ai/internal/mcpProtocol/v2025_11_25.ts +1 -0
- package/src/ai/internal/mcpRuntime.ts +84 -43
- package/src/ai/internal/mcpSchema/v2024_11_05.ts +4 -2
- package/src/ai/internal/mcpStatefulRuntime.ts +2 -0
- package/src/cluster/ClusterWorkflowEngine.ts +18 -4
- package/src/cluster/K8sHttpClient.ts +12 -2
- package/src/cluster/Sharding.ts +24 -24
- package/src/cluster/SqlMessageStorage.ts +26 -13
- package/src/cluster/SqlRunnerStorage.ts +85 -113
- package/src/cluster/internal/entityManager.ts +68 -80
- package/src/cluster/internal/interruptors.ts +13 -0
- package/src/cluster/internal/resourceMap.ts +55 -17
- package/src/cluster/internal/resourceRef.ts +189 -96
- package/src/encoding/Base64.ts +4 -0
- package/src/encoding/Base64Url.ts +4 -0
- package/src/encoding/EncodingError.ts +5 -0
- package/src/encoding/Hex.ts +5 -0
- package/src/encoding/Toml.ts +2 -2
- package/src/encoding/Yaml.ts +8 -4
- package/src/encoding/index.ts +4 -0
- package/src/eventlog/SqlEventJournal.ts +18 -4
- package/src/eventlog/SqlEventLogServerUnencrypted.ts +282 -235
- package/src/http/Headers.ts +8 -2
- package/src/http/HttpClient.ts +44 -27
- package/src/http/HttpClientResponse.ts +3 -1
- package/src/http/HttpEffect.ts +11 -2
- package/src/http/HttpMiddleware.ts +67 -46
- package/src/http/HttpServer.ts +1 -1
- package/src/http/HttpStaticServer.ts +16 -0
- package/src/http/HttpTraceContext.ts +8 -4
- package/src/http/internal/tracing.ts +52 -0
- package/src/http-api/HttpApiBuilder.ts +5 -1
- package/src/http-api/HttpApiClient.ts +13 -4
- package/src/http-api/HttpApiError.ts +8 -3
- package/src/http-api/HttpApiSecurity.ts +8 -8
- package/src/index.ts +156 -0
- package/src/internal/arbitrary/array.ts +3 -3
- package/src/internal/arbitrary/model.ts +37 -14
- package/src/internal/arbitrary/runner.ts +7 -7
- package/src/internal/arbitrary/schema.ts +4 -3
- package/src/internal/core.ts +56 -2
- package/src/internal/dateTime.ts +3 -1
- package/src/internal/effect.ts +156 -156
- package/src/internal/rcRef.ts +83 -33
- package/src/internal/schedule.ts +23 -17
- package/src/internal/schema/fromJsonSchemaDocument.ts +5 -3
- package/src/internal/schema/standardSchema.ts +2 -2
- package/src/internal/version.ts +2 -0
- package/src/observability/OtlpExporter.ts +9 -6
- package/src/observability/OtlpLogger.ts +20 -21
- package/src/observability/OtlpMetrics.ts +34 -93
- package/src/observability/OtlpResource.ts +18 -27
- package/src/observability/OtlpTracer.ts +34 -40
- package/src/observability/internal/otlpProtobuf.ts +60 -0
- package/src/reactivity/AsyncResult.ts +1 -1
- package/src/reactivity/Atom.ts +10 -6
- package/src/reactivity/AtomHttpApi.ts +2 -4
- package/src/reactivity/AtomRegistry.ts +7 -0
- package/src/rpc/RpcClient.ts +74 -46
- package/src/rpc/RpcServer.ts +28 -25
- package/src/rpc/Utils.ts +4 -10
- package/src/rpc/internal/tracing.ts +22 -0
- package/src/schema/SchemaCompiler/runtime.ts +4 -1
- package/src/sql/SqlClient.ts +4 -4
- package/src/sql/Statement.ts +59 -7
- package/src/testing/TestClock.ts +9 -0
- package/src/testing/TestConsole.ts +8 -0
- package/src/testing/index.ts +3 -0
- package/src/workflow/WorkflowEngine.ts +4 -0
package/dist/ai/McpSchema.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare const optionalWithDefault: <S extends Schema.Constraint & Schema.
|
|
|
62
62
|
* @category schemas
|
|
63
63
|
* @since 4.0.0
|
|
64
64
|
*/
|
|
65
|
-
export declare const optional: <S extends Schema.Constraint>(schema: S) => Schema.decodeTo<Schema.optional<S
|
|
65
|
+
export declare const optional: <S extends Schema.Constraint>(schema: S) => Schema.decodeTo<Schema.toType<Schema.optional<S>>, Schema.optionalKey<S>>;
|
|
66
66
|
/**
|
|
67
67
|
* Schema for JSON-RPC request identifiers, allowing string or number ids.
|
|
68
68
|
*
|
|
@@ -103,7 +103,7 @@ export declare const ProgressToken: Schema.Union<[
|
|
|
103
103
|
*/
|
|
104
104
|
export type ProgressToken = typeof ProgressToken.Type;
|
|
105
105
|
declare const RequestMeta_base: Schema.Opaque<RequestMeta, Schema.Struct<{
|
|
106
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
106
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
107
107
|
/**
|
|
108
108
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
109
109
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -111,8 +111,8 @@ declare const RequestMeta_base: Schema.Opaque<RequestMeta, Schema.Struct<{
|
|
|
111
111
|
* notifications. The receiver is not obligated to provide these
|
|
112
112
|
* notifications.
|
|
113
113
|
*/
|
|
114
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
115
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
114
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
115
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
116
116
|
/**
|
|
117
117
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
118
118
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -120,10 +120,10 @@ declare const RequestMeta_base: Schema.Opaque<RequestMeta, Schema.Struct<{
|
|
|
120
120
|
* notifications. The receiver is not obligated to provide these
|
|
121
121
|
* notifications.
|
|
122
122
|
*/
|
|
123
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
123
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
124
124
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
125
125
|
}>, {}> & Omit<Schema.Struct<{
|
|
126
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
126
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
127
127
|
/**
|
|
128
128
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
129
129
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -131,8 +131,8 @@ declare const RequestMeta_base: Schema.Opaque<RequestMeta, Schema.Struct<{
|
|
|
131
131
|
* notifications. The receiver is not obligated to provide these
|
|
132
132
|
* notifications.
|
|
133
133
|
*/
|
|
134
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
135
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
134
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
135
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
136
136
|
/**
|
|
137
137
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
138
138
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -140,7 +140,7 @@ declare const RequestMeta_base: Schema.Opaque<RequestMeta, Schema.Struct<{
|
|
|
140
140
|
* notifications. The receiver is not obligated to provide these
|
|
141
141
|
* notifications.
|
|
142
142
|
*/
|
|
143
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
143
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
144
144
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
145
145
|
}>, keyof Schema.Top>;
|
|
146
146
|
/**
|
|
@@ -162,13 +162,13 @@ declare const ResultMeta_base: Schema.Opaque<ResultMeta, Schema.Struct<{
|
|
|
162
162
|
* This result property is reserved by the protocol to allow clients and
|
|
163
163
|
* servers to attach additional metadata to their responses.
|
|
164
164
|
*/
|
|
165
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
165
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
166
166
|
}>, {}> & Omit<Schema.Struct<{
|
|
167
167
|
/**
|
|
168
168
|
* This result property is reserved by the protocol to allow clients and
|
|
169
169
|
* servers to attach additional metadata to their responses.
|
|
170
170
|
*/
|
|
171
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
171
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
172
172
|
}>, keyof Schema.Top>;
|
|
173
173
|
/**
|
|
174
174
|
* Schema for optional MCP result metadata.
|
|
@@ -189,13 +189,13 @@ declare const NotificationMeta_base: Schema.Opaque<NotificationMeta, Schema.Stru
|
|
|
189
189
|
* This parameter name is reserved by MCP to allow clients and servers to
|
|
190
190
|
* attach additional metadata to their notifications.
|
|
191
191
|
*/
|
|
192
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
192
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
193
193
|
}>, {}> & Omit<Schema.Struct<{
|
|
194
194
|
/**
|
|
195
195
|
* This parameter name is reserved by MCP to allow clients and servers to
|
|
196
196
|
* attach additional metadata to their notifications.
|
|
197
197
|
*/
|
|
198
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
198
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
199
199
|
}>, keyof Schema.Top>;
|
|
200
200
|
/**
|
|
201
201
|
* Schema for optional MCP notification metadata.
|
|
@@ -232,7 +232,7 @@ export declare const Cursor: typeof Schema.String;
|
|
|
232
232
|
*/
|
|
233
233
|
export type Cursor = typeof Cursor.Type;
|
|
234
234
|
declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Schema.Struct<{
|
|
235
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
235
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
236
236
|
/**
|
|
237
237
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
238
238
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -240,8 +240,8 @@ declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Sch
|
|
|
240
240
|
* notifications. The receiver is not obligated to provide these
|
|
241
241
|
* notifications.
|
|
242
242
|
*/
|
|
243
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
244
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
243
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
244
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
245
245
|
/**
|
|
246
246
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
247
247
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -249,15 +249,15 @@ declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Sch
|
|
|
249
249
|
* notifications. The receiver is not obligated to provide these
|
|
250
250
|
* notifications.
|
|
251
251
|
*/
|
|
252
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
252
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
253
253
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
254
254
|
/**
|
|
255
255
|
* An opaque token representing the current pagination position.
|
|
256
256
|
* If provided, the server should return results starting after this cursor.
|
|
257
257
|
*/
|
|
258
|
-
readonly cursor: Schema.decodeTo<Schema.optional<Schema.String
|
|
258
|
+
readonly cursor: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
259
259
|
}>, {}> & Omit<Schema.Struct<{
|
|
260
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
260
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
261
261
|
/**
|
|
262
262
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
263
263
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -265,8 +265,8 @@ declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Sch
|
|
|
265
265
|
* notifications. The receiver is not obligated to provide these
|
|
266
266
|
* notifications.
|
|
267
267
|
*/
|
|
268
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
269
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
268
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
269
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
270
270
|
/**
|
|
271
271
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
272
272
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -274,13 +274,13 @@ declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Sch
|
|
|
274
274
|
* notifications. The receiver is not obligated to provide these
|
|
275
275
|
* notifications.
|
|
276
276
|
*/
|
|
277
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
277
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
278
278
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
279
279
|
/**
|
|
280
280
|
* An opaque token representing the current pagination position.
|
|
281
281
|
* If provided, the server should return results starting after this cursor.
|
|
282
282
|
*/
|
|
283
|
-
readonly cursor: Schema.decodeTo<Schema.optional<Schema.String
|
|
283
|
+
readonly cursor: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
284
284
|
}>, keyof Schema.Top>;
|
|
285
285
|
/**
|
|
286
286
|
* Schema for MCP request metadata used by paginated requests.
|
|
@@ -301,23 +301,23 @@ declare const PaginatedResultMeta_base: Schema.Opaque<PaginatedResultMeta, Schem
|
|
|
301
301
|
* This result property is reserved by the protocol to allow clients and
|
|
302
302
|
* servers to attach additional metadata to their responses.
|
|
303
303
|
*/
|
|
304
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
304
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
305
305
|
/**
|
|
306
306
|
* An opaque token representing the pagination position after the last returned result.
|
|
307
307
|
* If present, there may be more results available.
|
|
308
308
|
*/
|
|
309
|
-
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String
|
|
309
|
+
readonly nextCursor: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
310
310
|
}>, {}> & Omit<Schema.Struct<{
|
|
311
311
|
/**
|
|
312
312
|
* This result property is reserved by the protocol to allow clients and
|
|
313
313
|
* servers to attach additional metadata to their responses.
|
|
314
314
|
*/
|
|
315
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
315
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
316
316
|
/**
|
|
317
317
|
* An opaque token representing the pagination position after the last returned result.
|
|
318
318
|
* If present, there may be more results available.
|
|
319
319
|
*/
|
|
320
|
-
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String
|
|
320
|
+
readonly nextCursor: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
321
321
|
}>, keyof Schema.Top>;
|
|
322
322
|
/**
|
|
323
323
|
* Schema for MCP result metadata returned by paginated operations.
|
|
@@ -360,7 +360,7 @@ declare const Annotations_base: Schema.Opaque<Annotations, Schema.Struct<{
|
|
|
360
360
|
* It can include multiple entries to indicate content useful for multiple
|
|
361
361
|
* audiences (e.g., `["user", "assistant"]`).
|
|
362
362
|
*/
|
|
363
|
-
readonly audience: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.Literals<["user", "assistant"]
|
|
363
|
+
readonly audience: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.Literals<["user", "assistant"]>>>>, Schema.optionalKey<Schema.$Array<Schema.Literals<["user", "assistant"]>>>, never, never>;
|
|
364
364
|
/**
|
|
365
365
|
* Describes how important this data is for operating the server.
|
|
366
366
|
*
|
|
@@ -368,12 +368,12 @@ declare const Annotations_base: Schema.Opaque<Annotations, Schema.Struct<{
|
|
|
368
368
|
* effectively required, while 0 means "least important," and indicates that
|
|
369
369
|
* the data is entirely optional.
|
|
370
370
|
*/
|
|
371
|
-
readonly priority: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
371
|
+
readonly priority: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
372
372
|
/**
|
|
373
373
|
* The last time the annotated object was modified, formatted as an ISO 8601
|
|
374
374
|
* timestamp.
|
|
375
375
|
*/
|
|
376
|
-
readonly lastModified: Schema.decodeTo<Schema.optional<Schema.String
|
|
376
|
+
readonly lastModified: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
377
377
|
}>, {}> & Omit<Schema.Struct<{
|
|
378
378
|
/**
|
|
379
379
|
* Describes who the intended customer of this object or data is.
|
|
@@ -381,7 +381,7 @@ declare const Annotations_base: Schema.Opaque<Annotations, Schema.Struct<{
|
|
|
381
381
|
* It can include multiple entries to indicate content useful for multiple
|
|
382
382
|
* audiences (e.g., `["user", "assistant"]`).
|
|
383
383
|
*/
|
|
384
|
-
readonly audience: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.Literals<["user", "assistant"]
|
|
384
|
+
readonly audience: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.Literals<["user", "assistant"]>>>>, Schema.optionalKey<Schema.$Array<Schema.Literals<["user", "assistant"]>>>, never, never>;
|
|
385
385
|
/**
|
|
386
386
|
* Describes how important this data is for operating the server.
|
|
387
387
|
*
|
|
@@ -389,12 +389,12 @@ declare const Annotations_base: Schema.Opaque<Annotations, Schema.Struct<{
|
|
|
389
389
|
* effectively required, while 0 means "least important," and indicates that
|
|
390
390
|
* the data is entirely optional.
|
|
391
391
|
*/
|
|
392
|
-
readonly priority: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
392
|
+
readonly priority: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
393
393
|
/**
|
|
394
394
|
* The last time the annotated object was modified, formatted as an ISO 8601
|
|
395
395
|
* timestamp.
|
|
396
396
|
*/
|
|
397
|
-
readonly lastModified: Schema.decodeTo<Schema.optional<Schema.String
|
|
397
|
+
readonly lastModified: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
398
398
|
}>, keyof Schema.Top>;
|
|
399
399
|
/**
|
|
400
400
|
* Schema for optional client-facing annotations on MCP objects.
|
|
@@ -418,15 +418,15 @@ declare const Icon_base: Schema.Class<Icon, Schema.Struct<{
|
|
|
418
418
|
/**
|
|
419
419
|
* MIME type of the icon, when known.
|
|
420
420
|
*/
|
|
421
|
-
readonly mimeType: Schema.decodeTo<Schema.optional<Schema.String
|
|
421
|
+
readonly mimeType: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
422
422
|
/**
|
|
423
423
|
* Sizes supported by the icon, such as `"48x48"` or `"any"`.
|
|
424
424
|
*/
|
|
425
|
-
readonly sizes: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
425
|
+
readonly sizes: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
426
426
|
/**
|
|
427
427
|
* Color theme for which the icon was designed.
|
|
428
428
|
*/
|
|
429
|
-
readonly theme: Schema.decodeTo<Schema.optional<Schema.Literals<readonly ["light", "dark"]
|
|
429
|
+
readonly theme: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Literals<readonly ["light", "dark"]>>>, Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>, never, never>;
|
|
430
430
|
}>, {}>;
|
|
431
431
|
/**
|
|
432
432
|
* Schema for an icon that an MCP client can display.
|
|
@@ -439,18 +439,18 @@ export declare class Icon extends Icon_base {
|
|
|
439
439
|
}
|
|
440
440
|
declare const Implementation_base: Schema.Opaque<Implementation, Schema.Struct<{
|
|
441
441
|
readonly name: Schema.String;
|
|
442
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
442
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
443
443
|
readonly version: Schema.String;
|
|
444
|
-
readonly icons: Schema.decodeTo<Schema.optional<Schema.$Array<typeof Icon
|
|
445
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
446
|
-
readonly websiteUrl: Schema.decodeTo<Schema.optional<Schema.String
|
|
444
|
+
readonly icons: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof Icon>>>, Schema.optionalKey<Schema.$Array<typeof Icon>>, never, never>;
|
|
445
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
446
|
+
readonly websiteUrl: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
447
447
|
}>, {}> & Omit<Schema.Struct<{
|
|
448
448
|
readonly name: Schema.String;
|
|
449
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
449
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
450
450
|
readonly version: Schema.String;
|
|
451
|
-
readonly icons: Schema.decodeTo<Schema.optional<Schema.$Array<typeof Icon
|
|
452
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
453
|
-
readonly websiteUrl: Schema.decodeTo<Schema.optional<Schema.String
|
|
451
|
+
readonly icons: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof Icon>>>, Schema.optionalKey<Schema.$Array<typeof Icon>>, never, never>;
|
|
452
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
453
|
+
readonly websiteUrl: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
454
454
|
}>, keyof Schema.Top>;
|
|
455
455
|
/**
|
|
456
456
|
* Describes the name and version of an MCP implementation.
|
|
@@ -465,69 +465,69 @@ declare const ClientCapabilities_base: Schema.Class<ClientCapabilities, Schema.S
|
|
|
465
465
|
/**
|
|
466
466
|
* Experimental, non-standard capabilities that the client supports.
|
|
467
467
|
*/
|
|
468
|
-
readonly experimental: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{}
|
|
468
|
+
readonly experimental: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{}>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{}>>>, never, never>;
|
|
469
469
|
/**
|
|
470
470
|
* Optional extensions capabilities advertised by the client.
|
|
471
471
|
* Keys are extension identifiers following <vendor-prefix>/<extension-name> (e.g. "io.modelcontextprotocol/ui").
|
|
472
472
|
*/
|
|
473
|
-
readonly extensions: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
473
|
+
readonly extensions: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
474
474
|
/**
|
|
475
475
|
* Present if the client supports listing roots.
|
|
476
476
|
*/
|
|
477
|
-
readonly roots: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
477
|
+
readonly roots: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{
|
|
478
478
|
/**
|
|
479
479
|
* Whether the client supports notifications for changes to the roots list.
|
|
480
480
|
*/
|
|
481
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
482
|
-
}
|
|
481
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
482
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
483
483
|
/**
|
|
484
484
|
* Whether the client supports notifications for changes to the roots list.
|
|
485
485
|
*/
|
|
486
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
486
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
487
487
|
}>>, never, never>;
|
|
488
488
|
/**
|
|
489
489
|
* Present if the client supports sampling from an LLM.
|
|
490
490
|
*/
|
|
491
|
-
readonly sampling: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
491
|
+
readonly sampling: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{
|
|
492
492
|
/**
|
|
493
493
|
* Present if the client supports context inclusion during sampling.
|
|
494
494
|
*/
|
|
495
|
-
readonly context: Schema.decodeTo<Schema.optional<Schema.Struct<{}
|
|
495
|
+
readonly context: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{}>>>, Schema.optionalKey<Schema.Struct<{}>>, never, never>;
|
|
496
496
|
/**
|
|
497
497
|
* Present if the client supports tool use during sampling.
|
|
498
498
|
*/
|
|
499
|
-
readonly tools: Schema.decodeTo<Schema.optional<Schema.Struct<{}
|
|
500
|
-
}
|
|
499
|
+
readonly tools: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{}>>>, Schema.optionalKey<Schema.Struct<{}>>, never, never>;
|
|
500
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
501
501
|
/**
|
|
502
502
|
* Present if the client supports context inclusion during sampling.
|
|
503
503
|
*/
|
|
504
|
-
readonly context: Schema.decodeTo<Schema.optional<Schema.Struct<{}
|
|
504
|
+
readonly context: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{}>>>, Schema.optionalKey<Schema.Struct<{}>>, never, never>;
|
|
505
505
|
/**
|
|
506
506
|
* Present if the client supports tool use during sampling.
|
|
507
507
|
*/
|
|
508
|
-
readonly tools: Schema.decodeTo<Schema.optional<Schema.Struct<{}
|
|
508
|
+
readonly tools: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{}>>>, Schema.optionalKey<Schema.Struct<{}>>, never, never>;
|
|
509
509
|
}>>, never, never>;
|
|
510
510
|
/**
|
|
511
511
|
* Present if the client supports elicitation from the server.
|
|
512
512
|
*/
|
|
513
|
-
readonly elicitation: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
513
|
+
readonly elicitation: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{
|
|
514
514
|
/**
|
|
515
515
|
* Present if the client supports form-mode elicitation.
|
|
516
516
|
*/
|
|
517
|
-
readonly form: Schema.decodeTo<Schema.optional<Schema.Struct<{}
|
|
517
|
+
readonly form: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{}>>>, Schema.optionalKey<Schema.Struct<{}>>, never, never>;
|
|
518
518
|
/**
|
|
519
519
|
* Present if the client supports URL-mode elicitation.
|
|
520
520
|
*/
|
|
521
|
-
readonly url: Schema.decodeTo<Schema.optional<Schema.Struct<{}
|
|
522
|
-
}
|
|
521
|
+
readonly url: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{}>>>, Schema.optionalKey<Schema.Struct<{}>>, never, never>;
|
|
522
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
523
523
|
/**
|
|
524
524
|
* Present if the client supports form-mode elicitation.
|
|
525
525
|
*/
|
|
526
|
-
readonly form: Schema.decodeTo<Schema.optional<Schema.Struct<{}
|
|
526
|
+
readonly form: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{}>>>, Schema.optionalKey<Schema.Struct<{}>>, never, never>;
|
|
527
527
|
/**
|
|
528
528
|
* Present if the client supports URL-mode elicitation.
|
|
529
529
|
*/
|
|
530
|
-
readonly url: Schema.decodeTo<Schema.optional<Schema.Struct<{}
|
|
530
|
+
readonly url: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{}>>>, Schema.optionalKey<Schema.Struct<{}>>, never, never>;
|
|
531
531
|
}>>, never, never>;
|
|
532
532
|
}>, {}>;
|
|
533
533
|
/**
|
|
@@ -553,137 +553,137 @@ declare const ServerCapabilities_base: Schema.Opaque<ServerCapabilities, Schema.
|
|
|
553
553
|
/**
|
|
554
554
|
* Experimental, non-standard capabilities that the server supports.
|
|
555
555
|
*/
|
|
556
|
-
readonly experimental: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{}
|
|
556
|
+
readonly experimental: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{}>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{}>>>, never, never>;
|
|
557
557
|
/**
|
|
558
558
|
* Optional extensions capabilities advertised by the server.
|
|
559
559
|
* Keys are extension identifiers following <vendor-prefix>/<extension-name> (e.g. "io.modelcontextprotocol/ui").
|
|
560
560
|
*/
|
|
561
|
-
readonly extensions: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
561
|
+
readonly extensions: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
562
562
|
/**
|
|
563
563
|
* Present if the server supports sending log messages to the client.
|
|
564
564
|
*/
|
|
565
|
-
readonly logging: Schema.decodeTo<Schema.optional<Schema.Struct<{}
|
|
565
|
+
readonly logging: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{}>>>, Schema.optionalKey<Schema.Struct<{}>>, never, never>;
|
|
566
566
|
/**
|
|
567
567
|
* Present if the server supports argument autocompletion suggestions.
|
|
568
568
|
*/
|
|
569
|
-
readonly completions: Schema.decodeTo<Schema.optional<Schema.Struct<{}
|
|
569
|
+
readonly completions: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{}>>>, Schema.optionalKey<Schema.Struct<{}>>, never, never>;
|
|
570
570
|
/**
|
|
571
571
|
* Present if the server offers any prompt templates.
|
|
572
572
|
*/
|
|
573
|
-
readonly prompts: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
573
|
+
readonly prompts: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{
|
|
574
574
|
/**
|
|
575
575
|
* Whether this server supports notifications for changes to the prompt list.
|
|
576
576
|
*/
|
|
577
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
578
|
-
}
|
|
577
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
578
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
579
579
|
/**
|
|
580
580
|
* Whether this server supports notifications for changes to the prompt list.
|
|
581
581
|
*/
|
|
582
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
582
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
583
583
|
}>>, never, never>;
|
|
584
584
|
/**
|
|
585
585
|
* Present if the server offers any resources to read.
|
|
586
586
|
*/
|
|
587
|
-
readonly resources: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
587
|
+
readonly resources: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{
|
|
588
588
|
/**
|
|
589
589
|
* Whether this server supports subscribing to resource updates.
|
|
590
590
|
*/
|
|
591
|
-
readonly subscribe: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
591
|
+
readonly subscribe: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
592
592
|
/**
|
|
593
593
|
* Whether this server supports notifications for changes to the resource list.
|
|
594
594
|
*/
|
|
595
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
596
|
-
}
|
|
595
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
596
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
597
597
|
/**
|
|
598
598
|
* Whether this server supports subscribing to resource updates.
|
|
599
599
|
*/
|
|
600
|
-
readonly subscribe: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
600
|
+
readonly subscribe: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
601
601
|
/**
|
|
602
602
|
* Whether this server supports notifications for changes to the resource list.
|
|
603
603
|
*/
|
|
604
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
604
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
605
605
|
}>>, never, never>;
|
|
606
606
|
/**
|
|
607
607
|
* Present if the server offers any tools to call.
|
|
608
608
|
*/
|
|
609
|
-
readonly tools: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
609
|
+
readonly tools: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{
|
|
610
610
|
/**
|
|
611
611
|
* Whether this server supports notifications for changes to the tool list.
|
|
612
612
|
*/
|
|
613
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
614
|
-
}
|
|
613
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
614
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
615
615
|
/**
|
|
616
616
|
* Whether this server supports notifications for changes to the tool list.
|
|
617
617
|
*/
|
|
618
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
618
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
619
619
|
}>>, never, never>;
|
|
620
620
|
}>, {}> & Omit<Schema.Struct<{
|
|
621
621
|
/**
|
|
622
622
|
* Experimental, non-standard capabilities that the server supports.
|
|
623
623
|
*/
|
|
624
|
-
readonly experimental: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{}
|
|
624
|
+
readonly experimental: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{}>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{}>>>, never, never>;
|
|
625
625
|
/**
|
|
626
626
|
* Optional extensions capabilities advertised by the server.
|
|
627
627
|
* Keys are extension identifiers following <vendor-prefix>/<extension-name> (e.g. "io.modelcontextprotocol/ui").
|
|
628
628
|
*/
|
|
629
|
-
readonly extensions: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
629
|
+
readonly extensions: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
630
630
|
/**
|
|
631
631
|
* Present if the server supports sending log messages to the client.
|
|
632
632
|
*/
|
|
633
|
-
readonly logging: Schema.decodeTo<Schema.optional<Schema.Struct<{}
|
|
633
|
+
readonly logging: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{}>>>, Schema.optionalKey<Schema.Struct<{}>>, never, never>;
|
|
634
634
|
/**
|
|
635
635
|
* Present if the server supports argument autocompletion suggestions.
|
|
636
636
|
*/
|
|
637
|
-
readonly completions: Schema.decodeTo<Schema.optional<Schema.Struct<{}
|
|
637
|
+
readonly completions: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{}>>>, Schema.optionalKey<Schema.Struct<{}>>, never, never>;
|
|
638
638
|
/**
|
|
639
639
|
* Present if the server offers any prompt templates.
|
|
640
640
|
*/
|
|
641
|
-
readonly prompts: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
641
|
+
readonly prompts: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{
|
|
642
642
|
/**
|
|
643
643
|
* Whether this server supports notifications for changes to the prompt list.
|
|
644
644
|
*/
|
|
645
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
646
|
-
}
|
|
645
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
646
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
647
647
|
/**
|
|
648
648
|
* Whether this server supports notifications for changes to the prompt list.
|
|
649
649
|
*/
|
|
650
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
650
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
651
651
|
}>>, never, never>;
|
|
652
652
|
/**
|
|
653
653
|
* Present if the server offers any resources to read.
|
|
654
654
|
*/
|
|
655
|
-
readonly resources: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
655
|
+
readonly resources: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{
|
|
656
656
|
/**
|
|
657
657
|
* Whether this server supports subscribing to resource updates.
|
|
658
658
|
*/
|
|
659
|
-
readonly subscribe: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
659
|
+
readonly subscribe: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
660
660
|
/**
|
|
661
661
|
* Whether this server supports notifications for changes to the resource list.
|
|
662
662
|
*/
|
|
663
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
664
|
-
}
|
|
663
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
664
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
665
665
|
/**
|
|
666
666
|
* Whether this server supports subscribing to resource updates.
|
|
667
667
|
*/
|
|
668
|
-
readonly subscribe: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
668
|
+
readonly subscribe: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
669
669
|
/**
|
|
670
670
|
* Whether this server supports notifications for changes to the resource list.
|
|
671
671
|
*/
|
|
672
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
672
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
673
673
|
}>>, never, never>;
|
|
674
674
|
/**
|
|
675
675
|
* Present if the server offers any tools to call.
|
|
676
676
|
*/
|
|
677
|
-
readonly tools: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
677
|
+
readonly tools: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{
|
|
678
678
|
/**
|
|
679
679
|
* Whether this server supports notifications for changes to the tool list.
|
|
680
680
|
*/
|
|
681
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
682
|
-
}
|
|
681
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
682
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
683
683
|
/**
|
|
684
684
|
* Whether this server supports notifications for changes to the tool list.
|
|
685
685
|
*/
|
|
686
|
-
readonly listChanged: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
686
|
+
readonly listChanged: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
687
687
|
}>>, never, never>;
|
|
688
688
|
}>, keyof Schema.Top>;
|
|
689
689
|
/**
|
|
@@ -719,7 +719,7 @@ declare const McpErrorBase_base: Schema.Class<McpErrorBase, Schema.Struct<{
|
|
|
719
719
|
* Additional information about the error. The value of this member is
|
|
720
720
|
* defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
721
721
|
*/
|
|
722
|
-
readonly data: Schema.decodeTo<Schema.optional<Schema.Any
|
|
722
|
+
readonly data: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Any>>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
723
723
|
}>, {}>;
|
|
724
724
|
/**
|
|
725
725
|
* Schema for MCP and JSON-RPC error objects.
|
|
@@ -825,7 +825,7 @@ declare const ParseError_base: Schema.Class<ParseError, Schema.Struct<{
|
|
|
825
825
|
* Additional information about the error. The value of this member is
|
|
826
826
|
* defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
827
827
|
*/
|
|
828
|
-
readonly data: Schema.decodeTo<Schema.optional<Schema.Any
|
|
828
|
+
readonly data: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Any>>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
829
829
|
readonly _tag: Schema.tag<"ParseError">;
|
|
830
830
|
readonly code: Schema.tag<-32700>;
|
|
831
831
|
}>, import("../Cause.ts").YieldableError>;
|
|
@@ -857,7 +857,7 @@ declare const InvalidRequest_base: Schema.Class<InvalidRequest, Schema.Struct<{
|
|
|
857
857
|
* Additional information about the error. The value of this member is
|
|
858
858
|
* defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
859
859
|
*/
|
|
860
|
-
readonly data: Schema.decodeTo<Schema.optional<Schema.Any
|
|
860
|
+
readonly data: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Any>>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
861
861
|
readonly _tag: Schema.tag<"InvalidRequest">;
|
|
862
862
|
readonly code: Schema.tag<-32600>;
|
|
863
863
|
}>, import("../Cause.ts").YieldableError>;
|
|
@@ -889,7 +889,7 @@ declare const MethodNotFound_base: Schema.Class<MethodNotFound, Schema.Struct<{
|
|
|
889
889
|
* Additional information about the error. The value of this member is
|
|
890
890
|
* defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
891
891
|
*/
|
|
892
|
-
readonly data: Schema.decodeTo<Schema.optional<Schema.Any
|
|
892
|
+
readonly data: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Any>>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
893
893
|
readonly _tag: Schema.tag<"MethodNotFound">;
|
|
894
894
|
readonly code: Schema.tag<-32601>;
|
|
895
895
|
}>, import("../Cause.ts").YieldableError>;
|
|
@@ -920,7 +920,7 @@ declare const InvalidParams_base: Schema.Class<InvalidParams, Schema.Struct<{
|
|
|
920
920
|
* Additional information about the error. The value of this member is
|
|
921
921
|
* defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
922
922
|
*/
|
|
923
|
-
readonly data: Schema.decodeTo<Schema.optional<Schema.Any
|
|
923
|
+
readonly data: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Any>>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
924
924
|
readonly _tag: Schema.tag<"InvalidParams">;
|
|
925
925
|
readonly code: Schema.tag<-32602>;
|
|
926
926
|
}>, import("../Cause.ts").YieldableError>;
|
|
@@ -952,7 +952,7 @@ declare const InternalError_base: Schema.Class<InternalError, Schema.Struct<{
|
|
|
952
952
|
* Additional information about the error. The value of this member is
|
|
953
953
|
* defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
954
954
|
*/
|
|
955
|
-
readonly data: Schema.decodeTo<Schema.optional<Schema.Any
|
|
955
|
+
readonly data: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Any>>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
956
956
|
readonly _tag: Schema.tag<"InternalError">;
|
|
957
957
|
readonly code: Schema.tag<-32603>;
|
|
958
958
|
}>, import("../Cause.ts").YieldableError>;
|
|
@@ -1016,7 +1016,7 @@ declare const InitializeResult_base: Schema.Opaque<InitializeResult, Schema.Stru
|
|
|
1016
1016
|
* This result property is reserved by the protocol to allow clients and
|
|
1017
1017
|
* servers to attach additional metadata to their responses.
|
|
1018
1018
|
*/
|
|
1019
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1019
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1020
1020
|
/**
|
|
1021
1021
|
* The version of the Model Context Protocol that the server wants to use.
|
|
1022
1022
|
* This may not match the version that the client requested. If the client
|
|
@@ -1032,13 +1032,13 @@ declare const InitializeResult_base: Schema.Opaque<InitializeResult, Schema.Stru
|
|
|
1032
1032
|
* tools, resources, etc. It can be thought of like a "hint" to the model.
|
|
1033
1033
|
* For example, this information MAY be added to the system prompt.
|
|
1034
1034
|
*/
|
|
1035
|
-
readonly instructions: Schema.decodeTo<Schema.optional<Schema.String
|
|
1035
|
+
readonly instructions: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1036
1036
|
}>, {}> & Omit<Schema.Struct<{
|
|
1037
1037
|
/**
|
|
1038
1038
|
* This result property is reserved by the protocol to allow clients and
|
|
1039
1039
|
* servers to attach additional metadata to their responses.
|
|
1040
1040
|
*/
|
|
1041
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1041
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1042
1042
|
/**
|
|
1043
1043
|
* The version of the Model Context Protocol that the server wants to use.
|
|
1044
1044
|
* This may not match the version that the client requested. If the client
|
|
@@ -1054,7 +1054,7 @@ declare const InitializeResult_base: Schema.Opaque<InitializeResult, Schema.Stru
|
|
|
1054
1054
|
* tools, resources, etc. It can be thought of like a "hint" to the model.
|
|
1055
1055
|
* For example, this information MAY be added to the system prompt.
|
|
1056
1056
|
*/
|
|
1057
|
-
readonly instructions: Schema.decodeTo<Schema.optional<Schema.String
|
|
1057
|
+
readonly instructions: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1058
1058
|
}>, keyof Schema.Top>;
|
|
1059
1059
|
/**
|
|
1060
1060
|
* Schema for the server's response to an initialize request from the client.
|
|
@@ -1066,7 +1066,7 @@ declare const InitializeResult_base: Schema.Opaque<InitializeResult, Schema.Stru
|
|
|
1066
1066
|
export declare class InitializeResult extends InitializeResult_base {
|
|
1067
1067
|
}
|
|
1068
1068
|
declare const Initialize_base: Rpc.Rpc<"initialize", Schema.Struct<{
|
|
1069
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
1069
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
1070
1070
|
/**
|
|
1071
1071
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
1072
1072
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -1074,8 +1074,8 @@ declare const Initialize_base: Rpc.Rpc<"initialize", Schema.Struct<{
|
|
|
1074
1074
|
* notifications. The receiver is not obligated to provide these
|
|
1075
1075
|
* notifications.
|
|
1076
1076
|
*/
|
|
1077
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
1078
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
1077
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1078
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1079
1079
|
/**
|
|
1080
1080
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
1081
1081
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -1083,7 +1083,7 @@ declare const Initialize_base: Rpc.Rpc<"initialize", Schema.Struct<{
|
|
|
1083
1083
|
* notifications. The receiver is not obligated to provide these
|
|
1084
1084
|
* notifications.
|
|
1085
1085
|
*/
|
|
1086
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
1086
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1087
1087
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
1088
1088
|
/**
|
|
1089
1089
|
* The latest version of the Model Context Protocol that the client
|
|
@@ -1122,7 +1122,7 @@ declare const InitializedNotification_base: Rpc.Rpc<"notifications/initialized",
|
|
|
1122
1122
|
export declare class InitializedNotification extends InitializedNotification_base {
|
|
1123
1123
|
}
|
|
1124
1124
|
declare const CancelledNotification_base: Rpc.Rpc<"notifications/cancelled", Schema.Struct<{
|
|
1125
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1125
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1126
1126
|
/**
|
|
1127
1127
|
* The ID of the request to cancel.
|
|
1128
1128
|
*
|
|
@@ -1134,7 +1134,7 @@ declare const CancelledNotification_base: Rpc.Rpc<"notifications/cancelled", Sch
|
|
|
1134
1134
|
* An optional string describing the reason for the cancellation. This MAY
|
|
1135
1135
|
* be logged or presented to the user.
|
|
1136
1136
|
*/
|
|
1137
|
-
reason: Schema.decodeTo<Schema.optional<Schema.String
|
|
1137
|
+
reason: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1138
1138
|
}>, Schema.Void, Schema.Never, never, never>;
|
|
1139
1139
|
/**
|
|
1140
1140
|
* Sent from either peer to cancel a previously issued request in the same
|
|
@@ -1152,7 +1152,7 @@ declare const CancelledNotification_base: Rpc.Rpc<"notifications/cancelled", Sch
|
|
|
1152
1152
|
export declare class CancelledNotification extends CancelledNotification_base {
|
|
1153
1153
|
}
|
|
1154
1154
|
declare const ProgressNotification_base: Rpc.Rpc<"notifications/progress", Schema.Struct<{
|
|
1155
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1155
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1156
1156
|
/**
|
|
1157
1157
|
* The progress token which was given in the initial request, used to
|
|
1158
1158
|
* associate this notification with the request that is proceeding.
|
|
@@ -1166,11 +1166,11 @@ declare const ProgressNotification_base: Rpc.Rpc<"notifications/progress", Schem
|
|
|
1166
1166
|
/**
|
|
1167
1167
|
* Total number of items to process (or total progress required), if known.
|
|
1168
1168
|
*/
|
|
1169
|
-
total: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
1169
|
+
total: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
1170
1170
|
/**
|
|
1171
1171
|
* An optional message describing the current progress.
|
|
1172
1172
|
*/
|
|
1173
|
-
message: Schema.decodeTo<Schema.optional<Schema.String
|
|
1173
|
+
message: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1174
1174
|
}>, Schema.Void, Schema.Never, never, never>;
|
|
1175
1175
|
/**
|
|
1176
1176
|
* Sent from either peer to report progress for a long-running request.
|
|
@@ -1192,26 +1192,26 @@ declare const Resource_base: Schema.Class<Resource, Schema.Struct<{
|
|
|
1192
1192
|
* This can be used by clients to populate UI elements.
|
|
1193
1193
|
*/
|
|
1194
1194
|
readonly name: Schema.String;
|
|
1195
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
1195
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1196
1196
|
/**
|
|
1197
1197
|
* A description of what this resource represents.
|
|
1198
1198
|
*
|
|
1199
1199
|
* This can be used by clients to improve the LLM's understanding of available
|
|
1200
1200
|
* resources. It can be thought of like a "hint" to the model.
|
|
1201
1201
|
*/
|
|
1202
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
1202
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1203
1203
|
/**
|
|
1204
1204
|
* The MIME type of this resource, if known.
|
|
1205
1205
|
*/
|
|
1206
|
-
readonly mimeType: Schema.decodeTo<Schema.optional<Schema.String
|
|
1206
|
+
readonly mimeType: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1207
1207
|
/**
|
|
1208
1208
|
* Optional annotations for the client.
|
|
1209
1209
|
*/
|
|
1210
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof Annotations
|
|
1210
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof Annotations>>, Schema.optionalKey<typeof Annotations>, never, never>;
|
|
1211
1211
|
/**
|
|
1212
1212
|
* Icons that clients can display for this resource.
|
|
1213
1213
|
*/
|
|
1214
|
-
readonly icons: Schema.decodeTo<Schema.optional<Schema.$Array<typeof Icon
|
|
1214
|
+
readonly icons: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof Icon>>>, Schema.optionalKey<Schema.$Array<typeof Icon>>, never, never>;
|
|
1215
1215
|
/**
|
|
1216
1216
|
* The size of the raw resource content, in bytes (i.e., before base64
|
|
1217
1217
|
* encoding or any tokenization), if known.
|
|
@@ -1219,14 +1219,14 @@ declare const Resource_base: Schema.Class<Resource, Schema.Struct<{
|
|
|
1219
1219
|
* This can be used by Hosts to display file sizes and estimate context
|
|
1220
1220
|
* window usage.
|
|
1221
1221
|
*/
|
|
1222
|
-
readonly size: Schema.decodeTo<Schema.optional<Schema.Int
|
|
1222
|
+
readonly size: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1223
1223
|
/**
|
|
1224
1224
|
* Optional additional metadata for the client.
|
|
1225
1225
|
*
|
|
1226
1226
|
* This parameter name is reserved by MCP to allow clients and servers to
|
|
1227
1227
|
* attach additional metadata to resources.
|
|
1228
1228
|
*/
|
|
1229
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1229
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1230
1230
|
}>, {}>;
|
|
1231
1231
|
/**
|
|
1232
1232
|
* Schema for a known resource that the server is capable of reading.
|
|
@@ -1249,31 +1249,31 @@ declare const ResourceTemplate_base: Schema.Class<ResourceTemplate, Schema.Struc
|
|
|
1249
1249
|
* This can be used by clients to populate UI elements.
|
|
1250
1250
|
*/
|
|
1251
1251
|
readonly name: Schema.String;
|
|
1252
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
1252
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1253
1253
|
/**
|
|
1254
1254
|
* A description of what this template is for.
|
|
1255
1255
|
*
|
|
1256
1256
|
* This can be used by clients to improve the LLM's understanding of available
|
|
1257
1257
|
* resources. It can be thought of like a "hint" to the model.
|
|
1258
1258
|
*/
|
|
1259
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
1259
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1260
1260
|
/**
|
|
1261
1261
|
* The MIME type for all resources that match this template. This should only
|
|
1262
1262
|
* be included if all resources matching this template have the same type.
|
|
1263
1263
|
*/
|
|
1264
|
-
readonly mimeType: Schema.decodeTo<Schema.optional<Schema.String
|
|
1264
|
+
readonly mimeType: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1265
1265
|
/**
|
|
1266
1266
|
* Optional annotations for the client.
|
|
1267
1267
|
*/
|
|
1268
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof Annotations
|
|
1268
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof Annotations>>, Schema.optionalKey<typeof Annotations>, never, never>;
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Icons that clients can display for this resource template.
|
|
1271
1271
|
*/
|
|
1272
|
-
readonly icons: Schema.decodeTo<Schema.optional<Schema.$Array<typeof Icon
|
|
1272
|
+
readonly icons: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof Icon>>>, Schema.optionalKey<Schema.$Array<typeof Icon>>, never, never>;
|
|
1273
1273
|
/**
|
|
1274
1274
|
* Optional additional metadata for the client.
|
|
1275
1275
|
*/
|
|
1276
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1276
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1277
1277
|
}>, {}>;
|
|
1278
1278
|
/**
|
|
1279
1279
|
* Schema for a template description of resources available on the server.
|
|
@@ -1292,11 +1292,11 @@ declare const ResourceContents_base: Schema.Opaque<ResourceContents, Schema.Stru
|
|
|
1292
1292
|
/**
|
|
1293
1293
|
* The MIME type of this resource, if known.
|
|
1294
1294
|
*/
|
|
1295
|
-
readonly mimeType: Schema.decodeTo<Schema.optional<Schema.String
|
|
1295
|
+
readonly mimeType: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1296
1296
|
/**
|
|
1297
1297
|
* Optional additional metadata for the client.
|
|
1298
1298
|
*/
|
|
1299
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1299
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1300
1300
|
}>, {}> & Omit<Schema.Struct<{
|
|
1301
1301
|
/**
|
|
1302
1302
|
* The URI of this resource.
|
|
@@ -1305,11 +1305,11 @@ declare const ResourceContents_base: Schema.Opaque<ResourceContents, Schema.Stru
|
|
|
1305
1305
|
/**
|
|
1306
1306
|
* The MIME type of this resource, if known.
|
|
1307
1307
|
*/
|
|
1308
|
-
readonly mimeType: Schema.decodeTo<Schema.optional<Schema.String
|
|
1308
|
+
readonly mimeType: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1309
1309
|
/**
|
|
1310
1310
|
* Optional additional metadata for the client.
|
|
1311
1311
|
*/
|
|
1312
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1312
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1313
1313
|
}>, keyof Schema.Top>;
|
|
1314
1314
|
/**
|
|
1315
1315
|
* Schema for the contents of a specific resource or sub-resource.
|
|
@@ -1328,11 +1328,11 @@ declare const TextResourceContents_base: Schema.Opaque<TextResourceContents, Sch
|
|
|
1328
1328
|
/**
|
|
1329
1329
|
* The MIME type of this resource, if known.
|
|
1330
1330
|
*/
|
|
1331
|
-
readonly mimeType: Schema.decodeTo<Schema.optional<Schema.String
|
|
1331
|
+
readonly mimeType: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1332
1332
|
/**
|
|
1333
1333
|
* Optional additional metadata for the client.
|
|
1334
1334
|
*/
|
|
1335
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1335
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1336
1336
|
/**
|
|
1337
1337
|
* The text of the item. This must only be set if the item can actually be
|
|
1338
1338
|
* represented as text (not binary data).
|
|
@@ -1346,11 +1346,11 @@ declare const TextResourceContents_base: Schema.Opaque<TextResourceContents, Sch
|
|
|
1346
1346
|
/**
|
|
1347
1347
|
* The MIME type of this resource, if known.
|
|
1348
1348
|
*/
|
|
1349
|
-
readonly mimeType: Schema.decodeTo<Schema.optional<Schema.String
|
|
1349
|
+
readonly mimeType: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1350
1350
|
/**
|
|
1351
1351
|
* Optional additional metadata for the client.
|
|
1352
1352
|
*/
|
|
1353
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1353
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1354
1354
|
/**
|
|
1355
1355
|
* The text of the item. This must only be set if the item can actually be
|
|
1356
1356
|
* represented as text (not binary data).
|
|
@@ -1374,11 +1374,11 @@ declare const BlobResourceContents_base: Schema.Opaque<BlobResourceContents, Sch
|
|
|
1374
1374
|
/**
|
|
1375
1375
|
* The MIME type of this resource, if known.
|
|
1376
1376
|
*/
|
|
1377
|
-
readonly mimeType: Schema.decodeTo<Schema.optional<Schema.String
|
|
1377
|
+
readonly mimeType: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1378
1378
|
/**
|
|
1379
1379
|
* Optional additional metadata for the client.
|
|
1380
1380
|
*/
|
|
1381
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1381
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1382
1382
|
/**
|
|
1383
1383
|
* The binary data of the item decoded from a base64-encoded string.
|
|
1384
1384
|
*/
|
|
@@ -1391,11 +1391,11 @@ declare const BlobResourceContents_base: Schema.Opaque<BlobResourceContents, Sch
|
|
|
1391
1391
|
/**
|
|
1392
1392
|
* The MIME type of this resource, if known.
|
|
1393
1393
|
*/
|
|
1394
|
-
readonly mimeType: Schema.decodeTo<Schema.optional<Schema.String
|
|
1394
|
+
readonly mimeType: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1395
1395
|
/**
|
|
1396
1396
|
* Optional additional metadata for the client.
|
|
1397
1397
|
*/
|
|
1398
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1398
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1399
1399
|
/**
|
|
1400
1400
|
* The binary data of the item decoded from a base64-encoded string.
|
|
1401
1401
|
*/
|
|
@@ -1415,12 +1415,12 @@ declare const ListResourcesResult_base: Schema.Class<ListResourcesResult, Schema
|
|
|
1415
1415
|
* This result property is reserved by the protocol to allow clients and
|
|
1416
1416
|
* servers to attach additional metadata to their responses.
|
|
1417
1417
|
*/
|
|
1418
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1418
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1419
1419
|
/**
|
|
1420
1420
|
* An opaque token representing the pagination position after the last returned result.
|
|
1421
1421
|
* If present, there may be more results available.
|
|
1422
1422
|
*/
|
|
1423
|
-
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String
|
|
1423
|
+
readonly nextCursor: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1424
1424
|
readonly resources: Schema.$Array<typeof Resource>;
|
|
1425
1425
|
}>, {}>;
|
|
1426
1426
|
/**
|
|
@@ -1447,12 +1447,12 @@ declare const ListResourceTemplatesResult_base: Schema.Class<ListResourceTemplat
|
|
|
1447
1447
|
* This result property is reserved by the protocol to allow clients and
|
|
1448
1448
|
* servers to attach additional metadata to their responses.
|
|
1449
1449
|
*/
|
|
1450
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1450
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1451
1451
|
/**
|
|
1452
1452
|
* An opaque token representing the pagination position after the last returned result.
|
|
1453
1453
|
* If present, there may be more results available.
|
|
1454
1454
|
*/
|
|
1455
|
-
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String
|
|
1455
|
+
readonly nextCursor: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1456
1456
|
readonly resourceTemplates: Schema.$Array<typeof ResourceTemplate>;
|
|
1457
1457
|
}>, {}>;
|
|
1458
1458
|
/**
|
|
@@ -1480,14 +1480,14 @@ declare const ReadResourceResult_base: Schema.Opaque<ReadResourceResult, Schema.
|
|
|
1480
1480
|
* This result property is reserved by the protocol to allow clients and
|
|
1481
1481
|
* servers to attach additional metadata to their responses.
|
|
1482
1482
|
*/
|
|
1483
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1483
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1484
1484
|
readonly contents: Schema.$Array<Schema.Union<readonly [typeof TextResourceContents, typeof BlobResourceContents]>>;
|
|
1485
1485
|
}>, {}> & Omit<Schema.Struct<{
|
|
1486
1486
|
/**
|
|
1487
1487
|
* This result property is reserved by the protocol to allow clients and
|
|
1488
1488
|
* servers to attach additional metadata to their responses.
|
|
1489
1489
|
*/
|
|
1490
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1490
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1491
1491
|
readonly contents: Schema.$Array<Schema.Union<readonly [typeof TextResourceContents, typeof BlobResourceContents]>>;
|
|
1492
1492
|
}>, keyof Schema.Top>;
|
|
1493
1493
|
/**
|
|
@@ -1500,7 +1500,7 @@ declare const ReadResourceResult_base: Schema.Opaque<ReadResourceResult, Schema.
|
|
|
1500
1500
|
export declare class ReadResourceResult extends ReadResourceResult_base {
|
|
1501
1501
|
}
|
|
1502
1502
|
declare const ReadResource_base: Rpc.Rpc<"resources/read", Schema.Struct<{
|
|
1503
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
1503
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
1504
1504
|
/**
|
|
1505
1505
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
1506
1506
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -1508,8 +1508,8 @@ declare const ReadResource_base: Rpc.Rpc<"resources/read", Schema.Struct<{
|
|
|
1508
1508
|
* notifications. The receiver is not obligated to provide these
|
|
1509
1509
|
* notifications.
|
|
1510
1510
|
*/
|
|
1511
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
1512
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
1511
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1512
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1513
1513
|
/**
|
|
1514
1514
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
1515
1515
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -1517,7 +1517,7 @@ declare const ReadResource_base: Rpc.Rpc<"resources/read", Schema.Struct<{
|
|
|
1517
1517
|
* notifications. The receiver is not obligated to provide these
|
|
1518
1518
|
* notifications.
|
|
1519
1519
|
*/
|
|
1520
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
1520
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1521
1521
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
1522
1522
|
/**
|
|
1523
1523
|
* The URI of the resource to read. The URI can use any protocol; it is up
|
|
@@ -1553,7 +1553,7 @@ declare const ResourceListChangedNotification_base: Rpc.Rpc<"notifications/resou
|
|
|
1553
1553
|
export declare class ResourceListChangedNotification extends ResourceListChangedNotification_base {
|
|
1554
1554
|
}
|
|
1555
1555
|
declare const Subscribe_base: Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
1556
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
1556
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
1557
1557
|
/**
|
|
1558
1558
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
1559
1559
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -1561,8 +1561,8 @@ declare const Subscribe_base: Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
|
1561
1561
|
* notifications. The receiver is not obligated to provide these
|
|
1562
1562
|
* notifications.
|
|
1563
1563
|
*/
|
|
1564
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
1565
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
1564
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1565
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1566
1566
|
/**
|
|
1567
1567
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
1568
1568
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -1570,7 +1570,7 @@ declare const Subscribe_base: Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
|
1570
1570
|
* notifications. The receiver is not obligated to provide these
|
|
1571
1571
|
* notifications.
|
|
1572
1572
|
*/
|
|
1573
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
1573
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1574
1574
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
1575
1575
|
/**
|
|
1576
1576
|
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
@@ -1589,7 +1589,7 @@ declare const Subscribe_base: Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
|
1589
1589
|
export declare class Subscribe extends Subscribe_base {
|
|
1590
1590
|
}
|
|
1591
1591
|
declare const Unsubscribe_base: Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
1592
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
1592
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
1593
1593
|
/**
|
|
1594
1594
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
1595
1595
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -1597,8 +1597,8 @@ declare const Unsubscribe_base: Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
|
1597
1597
|
* notifications. The receiver is not obligated to provide these
|
|
1598
1598
|
* notifications.
|
|
1599
1599
|
*/
|
|
1600
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
1601
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
1600
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1601
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1602
1602
|
/**
|
|
1603
1603
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
1604
1604
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -1606,7 +1606,7 @@ declare const Unsubscribe_base: Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
|
1606
1606
|
* notifications. The receiver is not obligated to provide these
|
|
1607
1607
|
* notifications.
|
|
1608
1608
|
*/
|
|
1609
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
1609
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1610
1610
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
1611
1611
|
/**
|
|
1612
1612
|
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
@@ -1626,7 +1626,7 @@ declare const Unsubscribe_base: Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
|
1626
1626
|
export declare class Unsubscribe extends Unsubscribe_base {
|
|
1627
1627
|
}
|
|
1628
1628
|
declare const ResourceUpdatedNotification_base: Rpc.Rpc<"notifications/resources/updated", Schema.Struct<{
|
|
1629
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1629
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1630
1630
|
/**
|
|
1631
1631
|
* The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
|
|
1632
1632
|
*/
|
|
@@ -1651,29 +1651,29 @@ declare const PromptArgument_base: Schema.Opaque<PromptArgument, Schema.Struct<{
|
|
|
1651
1651
|
* The name of the argument.
|
|
1652
1652
|
*/
|
|
1653
1653
|
readonly name: Schema.String;
|
|
1654
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
1654
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1655
1655
|
/**
|
|
1656
1656
|
* A human-readable description of the argument.
|
|
1657
1657
|
*/
|
|
1658
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
1658
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1659
1659
|
/**
|
|
1660
1660
|
* Whether this argument must be provided.
|
|
1661
1661
|
*/
|
|
1662
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
1662
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1663
1663
|
}>, {}> & Omit<Schema.Struct<{
|
|
1664
1664
|
/**
|
|
1665
1665
|
* The name of the argument.
|
|
1666
1666
|
*/
|
|
1667
1667
|
readonly name: Schema.String;
|
|
1668
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
1668
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1669
1669
|
/**
|
|
1670
1670
|
* A human-readable description of the argument.
|
|
1671
1671
|
*/
|
|
1672
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
1672
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1673
1673
|
/**
|
|
1674
1674
|
* Whether this argument must be provided.
|
|
1675
1675
|
*/
|
|
1676
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
1676
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1677
1677
|
}>, keyof Schema.Top>;
|
|
1678
1678
|
/**
|
|
1679
1679
|
* Describes an argument that a prompt can accept.
|
|
@@ -1689,20 +1689,20 @@ declare const Prompt_base: Schema.Class<Prompt, Schema.Struct<{
|
|
|
1689
1689
|
* The name of the prompt or prompt template.
|
|
1690
1690
|
*/
|
|
1691
1691
|
readonly name: Schema.String;
|
|
1692
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
1692
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1693
1693
|
/**
|
|
1694
1694
|
* An optional description of what this prompt provides
|
|
1695
1695
|
*/
|
|
1696
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
1696
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1697
1697
|
/**
|
|
1698
1698
|
* A list of arguments to use for templating the prompt.
|
|
1699
1699
|
*/
|
|
1700
|
-
readonly arguments: Schema.decodeTo<Schema.optional<Schema.$Array<typeof PromptArgument
|
|
1700
|
+
readonly arguments: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof PromptArgument>>>, Schema.optionalKey<Schema.$Array<typeof PromptArgument>>, never, never>;
|
|
1701
1701
|
/**
|
|
1702
1702
|
* Icons that clients can display for this prompt.
|
|
1703
1703
|
*/
|
|
1704
|
-
readonly icons: Schema.decodeTo<Schema.optional<Schema.$Array<typeof Icon
|
|
1705
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1704
|
+
readonly icons: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof Icon>>>, Schema.optionalKey<Schema.$Array<typeof Icon>>, never, never>;
|
|
1705
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1706
1706
|
}>, {}>;
|
|
1707
1707
|
/**
|
|
1708
1708
|
* Represents a prompt or prompt template that the server offers.
|
|
@@ -1722,8 +1722,8 @@ declare const TextContent_base: Schema.Opaque<TextContent, Schema.Struct<{
|
|
|
1722
1722
|
/**
|
|
1723
1723
|
* Optional annotations for the client.
|
|
1724
1724
|
*/
|
|
1725
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof Annotations
|
|
1726
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1725
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof Annotations>>, Schema.optionalKey<typeof Annotations>, never, never>;
|
|
1726
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1727
1727
|
}>, {}> & Omit<Schema.Struct<{
|
|
1728
1728
|
readonly type: Schema.tag<"text">;
|
|
1729
1729
|
/**
|
|
@@ -1733,8 +1733,8 @@ declare const TextContent_base: Schema.Opaque<TextContent, Schema.Struct<{
|
|
|
1733
1733
|
/**
|
|
1734
1734
|
* Optional annotations for the client.
|
|
1735
1735
|
*/
|
|
1736
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof Annotations
|
|
1737
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1736
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof Annotations>>, Schema.optionalKey<typeof Annotations>, never, never>;
|
|
1737
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1738
1738
|
}>, keyof Schema.Top>;
|
|
1739
1739
|
/**
|
|
1740
1740
|
* Represents text content provided to or from an LLM.
|
|
@@ -1759,8 +1759,8 @@ declare const ImageContent_base: Schema.Opaque<ImageContent, Schema.Struct<{
|
|
|
1759
1759
|
/**
|
|
1760
1760
|
* Optional annotations for the client.
|
|
1761
1761
|
*/
|
|
1762
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof Annotations
|
|
1763
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1762
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof Annotations>>, Schema.optionalKey<typeof Annotations>, never, never>;
|
|
1763
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1764
1764
|
}>, {}> & Omit<Schema.Struct<{
|
|
1765
1765
|
readonly type: Schema.tag<"image">;
|
|
1766
1766
|
/**
|
|
@@ -1775,8 +1775,8 @@ declare const ImageContent_base: Schema.Opaque<ImageContent, Schema.Struct<{
|
|
|
1775
1775
|
/**
|
|
1776
1776
|
* Optional annotations for the client.
|
|
1777
1777
|
*/
|
|
1778
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof Annotations
|
|
1779
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1778
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof Annotations>>, Schema.optionalKey<typeof Annotations>, never, never>;
|
|
1779
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1780
1780
|
}>, keyof Schema.Top>;
|
|
1781
1781
|
/**
|
|
1782
1782
|
* Represents image content provided to or from an LLM.
|
|
@@ -1801,8 +1801,8 @@ declare const AudioContent_base: Schema.Opaque<AudioContent, Schema.Struct<{
|
|
|
1801
1801
|
/**
|
|
1802
1802
|
* Optional annotations for the client.
|
|
1803
1803
|
*/
|
|
1804
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof Annotations
|
|
1805
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1804
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof Annotations>>, Schema.optionalKey<typeof Annotations>, never, never>;
|
|
1805
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1806
1806
|
}>, {}> & Omit<Schema.Struct<{
|
|
1807
1807
|
readonly type: Schema.tag<"audio">;
|
|
1808
1808
|
/**
|
|
@@ -1817,8 +1817,8 @@ declare const AudioContent_base: Schema.Opaque<AudioContent, Schema.Struct<{
|
|
|
1817
1817
|
/**
|
|
1818
1818
|
* Optional annotations for the client.
|
|
1819
1819
|
*/
|
|
1820
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof Annotations
|
|
1821
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1820
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof Annotations>>, Schema.optionalKey<typeof Annotations>, never, never>;
|
|
1821
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1822
1822
|
}>, keyof Schema.Top>;
|
|
1823
1823
|
/**
|
|
1824
1824
|
* Represents audio content provided to or from an LLM.
|
|
@@ -1835,16 +1835,16 @@ declare const EmbeddedResource_base: Schema.Opaque<EmbeddedResource, Schema.Stru
|
|
|
1835
1835
|
/**
|
|
1836
1836
|
* Optional annotations for the client.
|
|
1837
1837
|
*/
|
|
1838
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof Annotations
|
|
1839
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1838
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof Annotations>>, Schema.optionalKey<typeof Annotations>, never, never>;
|
|
1839
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1840
1840
|
}>, {}> & Omit<Schema.Struct<{
|
|
1841
1841
|
readonly type: Schema.tag<"resource">;
|
|
1842
1842
|
readonly resource: Schema.Union<readonly [typeof TextResourceContents, typeof BlobResourceContents]>;
|
|
1843
1843
|
/**
|
|
1844
1844
|
* Optional annotations for the client.
|
|
1845
1845
|
*/
|
|
1846
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof Annotations
|
|
1847
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1846
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof Annotations>>, Schema.optionalKey<typeof Annotations>, never, never>;
|
|
1847
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1848
1848
|
}>, keyof Schema.Top>;
|
|
1849
1849
|
/**
|
|
1850
1850
|
* Represents resource contents embedded into a prompt or tool call result.
|
|
@@ -1871,26 +1871,26 @@ declare const ResourceLink_base: Schema.Opaque<ResourceLink, Schema.Struct<{
|
|
|
1871
1871
|
* This can be used by clients to populate UI elements.
|
|
1872
1872
|
*/
|
|
1873
1873
|
readonly name: Schema.String;
|
|
1874
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
1874
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1875
1875
|
/**
|
|
1876
1876
|
* A description of what this resource represents.
|
|
1877
1877
|
*
|
|
1878
1878
|
* This can be used by clients to improve the LLM's understanding of available
|
|
1879
1879
|
* resources. It can be thought of like a "hint" to the model.
|
|
1880
1880
|
*/
|
|
1881
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
1881
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1882
1882
|
/**
|
|
1883
1883
|
* The MIME type of this resource, if known.
|
|
1884
1884
|
*/
|
|
1885
|
-
readonly mimeType: Schema.decodeTo<Schema.optional<Schema.String
|
|
1885
|
+
readonly mimeType: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1886
1886
|
/**
|
|
1887
1887
|
* Optional annotations for the client.
|
|
1888
1888
|
*/
|
|
1889
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof Annotations
|
|
1889
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof Annotations>>, Schema.optionalKey<typeof Annotations>, never, never>;
|
|
1890
1890
|
/**
|
|
1891
1891
|
* Icons that clients can display for this resource.
|
|
1892
1892
|
*/
|
|
1893
|
-
readonly icons: Schema.decodeTo<Schema.optional<Schema.$Array<typeof Icon
|
|
1893
|
+
readonly icons: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof Icon>>>, Schema.optionalKey<Schema.$Array<typeof Icon>>, never, never>;
|
|
1894
1894
|
/**
|
|
1895
1895
|
* The size of the raw resource content, in bytes (i.e., before base64
|
|
1896
1896
|
* encoding or any tokenization), if known.
|
|
@@ -1898,14 +1898,14 @@ declare const ResourceLink_base: Schema.Opaque<ResourceLink, Schema.Struct<{
|
|
|
1898
1898
|
* This can be used by Hosts to display file sizes and estimate context
|
|
1899
1899
|
* window usage.
|
|
1900
1900
|
*/
|
|
1901
|
-
readonly size: Schema.decodeTo<Schema.optional<Schema.Int
|
|
1901
|
+
readonly size: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1902
1902
|
/**
|
|
1903
1903
|
* Optional additional metadata for the client.
|
|
1904
1904
|
*
|
|
1905
1905
|
* This parameter name is reserved by MCP to allow clients and servers to
|
|
1906
1906
|
* attach additional metadata to resources.
|
|
1907
1907
|
*/
|
|
1908
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1908
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1909
1909
|
readonly type: Schema.tag<"resource_link">;
|
|
1910
1910
|
}>, {}> & Omit<Schema.Struct<{
|
|
1911
1911
|
/**
|
|
@@ -1918,26 +1918,26 @@ declare const ResourceLink_base: Schema.Opaque<ResourceLink, Schema.Struct<{
|
|
|
1918
1918
|
* This can be used by clients to populate UI elements.
|
|
1919
1919
|
*/
|
|
1920
1920
|
readonly name: Schema.String;
|
|
1921
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
1921
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1922
1922
|
/**
|
|
1923
1923
|
* A description of what this resource represents.
|
|
1924
1924
|
*
|
|
1925
1925
|
* This can be used by clients to improve the LLM's understanding of available
|
|
1926
1926
|
* resources. It can be thought of like a "hint" to the model.
|
|
1927
1927
|
*/
|
|
1928
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
1928
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1929
1929
|
/**
|
|
1930
1930
|
* The MIME type of this resource, if known.
|
|
1931
1931
|
*/
|
|
1932
|
-
readonly mimeType: Schema.decodeTo<Schema.optional<Schema.String
|
|
1932
|
+
readonly mimeType: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1933
1933
|
/**
|
|
1934
1934
|
* Optional annotations for the client.
|
|
1935
1935
|
*/
|
|
1936
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof Annotations
|
|
1936
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof Annotations>>, Schema.optionalKey<typeof Annotations>, never, never>;
|
|
1937
1937
|
/**
|
|
1938
1938
|
* Icons that clients can display for this resource.
|
|
1939
1939
|
*/
|
|
1940
|
-
readonly icons: Schema.decodeTo<Schema.optional<Schema.$Array<typeof Icon
|
|
1940
|
+
readonly icons: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof Icon>>>, Schema.optionalKey<Schema.$Array<typeof Icon>>, never, never>;
|
|
1941
1941
|
/**
|
|
1942
1942
|
* The size of the raw resource content, in bytes (i.e., before base64
|
|
1943
1943
|
* encoding or any tokenization), if known.
|
|
@@ -1945,14 +1945,14 @@ declare const ResourceLink_base: Schema.Opaque<ResourceLink, Schema.Struct<{
|
|
|
1945
1945
|
* This can be used by Hosts to display file sizes and estimate context
|
|
1946
1946
|
* window usage.
|
|
1947
1947
|
*/
|
|
1948
|
-
readonly size: Schema.decodeTo<Schema.optional<Schema.Int
|
|
1948
|
+
readonly size: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1949
1949
|
/**
|
|
1950
1950
|
* Optional additional metadata for the client.
|
|
1951
1951
|
*
|
|
1952
1952
|
* This parameter name is reserved by MCP to allow clients and servers to
|
|
1953
1953
|
* attach additional metadata to resources.
|
|
1954
1954
|
*/
|
|
1955
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
1955
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1956
1956
|
readonly type: Schema.tag<"resource_link">;
|
|
1957
1957
|
}>, keyof Schema.Top>;
|
|
1958
1958
|
/**
|
|
@@ -2012,12 +2012,12 @@ declare const ListPromptsResult_base: Schema.Class<ListPromptsResult, Schema.Str
|
|
|
2012
2012
|
* This result property is reserved by the protocol to allow clients and
|
|
2013
2013
|
* servers to attach additional metadata to their responses.
|
|
2014
2014
|
*/
|
|
2015
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2015
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2016
2016
|
/**
|
|
2017
2017
|
* An opaque token representing the pagination position after the last returned result.
|
|
2018
2018
|
* If present, there may be more results available.
|
|
2019
2019
|
*/
|
|
2020
|
-
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String
|
|
2020
|
+
readonly nextCursor: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2021
2021
|
readonly prompts: Schema.$Array<typeof Prompt>;
|
|
2022
2022
|
}>, {}>;
|
|
2023
2023
|
/**
|
|
@@ -2045,12 +2045,12 @@ declare const GetPromptResult_base: Schema.Class<GetPromptResult, Schema.Struct<
|
|
|
2045
2045
|
* This result property is reserved by the protocol to allow clients and
|
|
2046
2046
|
* servers to attach additional metadata to their responses.
|
|
2047
2047
|
*/
|
|
2048
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2048
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2049
2049
|
readonly messages: Schema.$Array<typeof PromptMessage>;
|
|
2050
2050
|
/**
|
|
2051
2051
|
* An optional description for the prompt.
|
|
2052
2052
|
*/
|
|
2053
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
2053
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2054
2054
|
}>, {}>;
|
|
2055
2055
|
/**
|
|
2056
2056
|
* Represents the server response to a prompts/get request from the client.
|
|
@@ -2062,7 +2062,7 @@ declare const GetPromptResult_base: Schema.Class<GetPromptResult, Schema.Struct<
|
|
|
2062
2062
|
export declare class GetPromptResult extends GetPromptResult_base {
|
|
2063
2063
|
}
|
|
2064
2064
|
declare const GetPrompt_base: Rpc.Rpc<"prompts/get", Schema.Struct<{
|
|
2065
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
2065
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
2066
2066
|
/**
|
|
2067
2067
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
2068
2068
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -2070,8 +2070,8 @@ declare const GetPrompt_base: Rpc.Rpc<"prompts/get", Schema.Struct<{
|
|
|
2070
2070
|
* notifications. The receiver is not obligated to provide these
|
|
2071
2071
|
* notifications.
|
|
2072
2072
|
*/
|
|
2073
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
2074
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
2073
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2074
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
2075
2075
|
/**
|
|
2076
2076
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
2077
2077
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -2079,17 +2079,17 @@ declare const GetPrompt_base: Rpc.Rpc<"prompts/get", Schema.Struct<{
|
|
|
2079
2079
|
* notifications. The receiver is not obligated to provide these
|
|
2080
2080
|
* notifications.
|
|
2081
2081
|
*/
|
|
2082
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
2082
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2083
2083
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
2084
2084
|
/**
|
|
2085
2085
|
* The name of the prompt or prompt template.
|
|
2086
2086
|
*/
|
|
2087
2087
|
name: Schema.String;
|
|
2088
|
-
title: Schema.decodeTo<Schema.optional<Schema.String
|
|
2088
|
+
title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2089
2089
|
/**
|
|
2090
2090
|
* Arguments to use for templating the prompt.
|
|
2091
2091
|
*/
|
|
2092
|
-
arguments: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.String
|
|
2092
|
+
arguments: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
2093
2093
|
}>, typeof GetPromptResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, never, never>;
|
|
2094
2094
|
/**
|
|
2095
2095
|
* Sent from the client to get a prompt provided by the server.
|
|
@@ -2122,7 +2122,7 @@ declare const ToolAnnotations_base: Schema.Opaque<ToolAnnotations, Schema.Struct
|
|
|
2122
2122
|
/**
|
|
2123
2123
|
* A human-readable title for the tool.
|
|
2124
2124
|
*/
|
|
2125
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
2125
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2126
2126
|
/**
|
|
2127
2127
|
* If true, the tool does not modify its environment.
|
|
2128
2128
|
*
|
|
@@ -2160,7 +2160,7 @@ declare const ToolAnnotations_base: Schema.Opaque<ToolAnnotations, Schema.Struct
|
|
|
2160
2160
|
/**
|
|
2161
2161
|
* A human-readable title for the tool.
|
|
2162
2162
|
*/
|
|
2163
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
2163
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2164
2164
|
/**
|
|
2165
2165
|
* If true, the tool does not modify its environment.
|
|
2166
2166
|
*
|
|
@@ -2265,13 +2265,13 @@ declare const Tool_base: Schema.Class<Tool, Schema.Struct<{
|
|
|
2265
2265
|
* The name of the tool.
|
|
2266
2266
|
*/
|
|
2267
2267
|
readonly name: Schema.String;
|
|
2268
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
2268
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2269
2269
|
/**
|
|
2270
2270
|
* A human-readable description of the tool.
|
|
2271
2271
|
*
|
|
2272
2272
|
* This can be used by clients to improve the LLM's understanding of available tools. It can be thought of like a "hint" to the model.
|
|
2273
2273
|
*/
|
|
2274
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
2274
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2275
2275
|
/**
|
|
2276
2276
|
* A JSON Schema object defining the expected parameters for the tool.
|
|
2277
2277
|
*/
|
|
@@ -2279,22 +2279,22 @@ declare const Tool_base: Schema.Class<Tool, Schema.Struct<{
|
|
|
2279
2279
|
/**
|
|
2280
2280
|
* An optional JSON Schema object defining the structure of the tool output.
|
|
2281
2281
|
*/
|
|
2282
|
-
readonly outputSchema: Schema.decodeTo<Schema.optional<Schema.Codec<Schema.JsonObject, Schema.JsonObject, never, never
|
|
2282
|
+
readonly outputSchema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Codec<Schema.JsonObject, Schema.JsonObject, never, never>>>, Schema.optionalKey<Schema.Codec<Schema.JsonObject, Schema.JsonObject, never, never>>, never, never>;
|
|
2283
2283
|
/**
|
|
2284
2284
|
* Optional additional tool information.
|
|
2285
2285
|
*/
|
|
2286
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof ToolAnnotations
|
|
2286
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof ToolAnnotations>>, Schema.optionalKey<typeof ToolAnnotations>, never, never>;
|
|
2287
2287
|
/**
|
|
2288
2288
|
* Icons that clients can display for this tool.
|
|
2289
2289
|
*/
|
|
2290
|
-
readonly icons: Schema.decodeTo<Schema.optional<Schema.$Array<typeof Icon
|
|
2290
|
+
readonly icons: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof Icon>>>, Schema.optionalKey<Schema.$Array<typeof Icon>>, never, never>;
|
|
2291
2291
|
/**
|
|
2292
2292
|
* Optional additional metadata for the client.
|
|
2293
2293
|
*
|
|
2294
2294
|
* This parameter name is reserved by MCP to allow clients and servers to
|
|
2295
2295
|
* attach additional metadata to resources.
|
|
2296
2296
|
*/
|
|
2297
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2297
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2298
2298
|
}>, {}>;
|
|
2299
2299
|
/**
|
|
2300
2300
|
* Schema for the definition of a tool the client can call.
|
|
@@ -2310,12 +2310,12 @@ declare const ListToolsResult_base: Schema.Class<ListToolsResult, Schema.Struct<
|
|
|
2310
2310
|
* This result property is reserved by the protocol to allow clients and
|
|
2311
2311
|
* servers to attach additional metadata to their responses.
|
|
2312
2312
|
*/
|
|
2313
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2313
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2314
2314
|
/**
|
|
2315
2315
|
* An opaque token representing the pagination position after the last returned result.
|
|
2316
2316
|
* If present, there may be more results available.
|
|
2317
2317
|
*/
|
|
2318
|
-
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String
|
|
2318
|
+
readonly nextCursor: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2319
2319
|
readonly tools: Schema.$Array<typeof Tool>;
|
|
2320
2320
|
}>, {}>;
|
|
2321
2321
|
/**
|
|
@@ -2342,18 +2342,18 @@ declare const CallToolResult_base: Schema.Class<CallToolResult, Schema.Struct<{
|
|
|
2342
2342
|
* This result property is reserved by the protocol to allow clients and
|
|
2343
2343
|
* servers to attach additional metadata to their responses.
|
|
2344
2344
|
*/
|
|
2345
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2345
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2346
2346
|
readonly content: Schema.$Array<Schema.Union<readonly [typeof TextContent, typeof ImageContent, typeof AudioContent, typeof EmbeddedResource, typeof ResourceLink]>>;
|
|
2347
2347
|
/**
|
|
2348
2348
|
* An optional JSON value containing the structured result of the tool call.
|
|
2349
2349
|
*/
|
|
2350
|
-
readonly structuredContent: Schema.decodeTo<Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2350
|
+
readonly structuredContent: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>, never, never>;
|
|
2351
2351
|
/**
|
|
2352
2352
|
* Whether the tool call ended in an error.
|
|
2353
2353
|
*
|
|
2354
2354
|
* If not set, this is assumed to be false (the call was successful).
|
|
2355
2355
|
*/
|
|
2356
|
-
readonly isError: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
2356
|
+
readonly isError: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
2357
2357
|
}>, {}>;
|
|
2358
2358
|
/**
|
|
2359
2359
|
* Schema for the server's response to a tool call.
|
|
@@ -2374,7 +2374,7 @@ declare const CallToolResult_base: Schema.Class<CallToolResult, Schema.Struct<{
|
|
|
2374
2374
|
export declare class CallToolResult extends CallToolResult_base {
|
|
2375
2375
|
}
|
|
2376
2376
|
declare const CallTool_base: Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
2377
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
2377
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
2378
2378
|
/**
|
|
2379
2379
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
2380
2380
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -2382,8 +2382,8 @@ declare const CallTool_base: Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
|
2382
2382
|
* notifications. The receiver is not obligated to provide these
|
|
2383
2383
|
* notifications.
|
|
2384
2384
|
*/
|
|
2385
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
2386
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
2385
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2386
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
2387
2387
|
/**
|
|
2388
2388
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
2389
2389
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -2391,7 +2391,7 @@ declare const CallTool_base: Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
|
2391
2391
|
* notifications. The receiver is not obligated to provide these
|
|
2392
2392
|
* notifications.
|
|
2393
2393
|
*/
|
|
2394
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
2394
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2395
2395
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
2396
2396
|
name: Schema.String;
|
|
2397
2397
|
arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.Any>>;
|
|
@@ -2461,7 +2461,7 @@ export declare const LoggingLevel: Schema.Literals<[
|
|
|
2461
2461
|
*/
|
|
2462
2462
|
export type LoggingLevel = typeof LoggingLevel.Type;
|
|
2463
2463
|
declare const SetLevel_base: Rpc.Rpc<"logging/setLevel", Schema.Struct<{
|
|
2464
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
2464
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
2465
2465
|
/**
|
|
2466
2466
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
2467
2467
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -2469,8 +2469,8 @@ declare const SetLevel_base: Rpc.Rpc<"logging/setLevel", Schema.Struct<{
|
|
|
2469
2469
|
* notifications. The receiver is not obligated to provide these
|
|
2470
2470
|
* notifications.
|
|
2471
2471
|
*/
|
|
2472
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
2473
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
2472
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2473
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
2474
2474
|
/**
|
|
2475
2475
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
2476
2476
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -2478,7 +2478,7 @@ declare const SetLevel_base: Rpc.Rpc<"logging/setLevel", Schema.Struct<{
|
|
|
2478
2478
|
* notifications. The receiver is not obligated to provide these
|
|
2479
2479
|
* notifications.
|
|
2480
2480
|
*/
|
|
2481
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
2481
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2482
2482
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
2483
2483
|
/**
|
|
2484
2484
|
* The level of logging that the client wants to receive from the server.
|
|
@@ -2501,7 +2501,7 @@ declare const LoggingMessageNotification_base: Rpc.Rpc<"notifications/message",
|
|
|
2501
2501
|
* This parameter name is reserved by MCP to allow clients and servers to
|
|
2502
2502
|
* attach additional metadata to their notifications.
|
|
2503
2503
|
*/
|
|
2504
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2504
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2505
2505
|
/**
|
|
2506
2506
|
* The severity of this log message.
|
|
2507
2507
|
*/
|
|
@@ -2509,7 +2509,7 @@ declare const LoggingMessageNotification_base: Rpc.Rpc<"notifications/message",
|
|
|
2509
2509
|
/**
|
|
2510
2510
|
* An optional name of the logger issuing this message.
|
|
2511
2511
|
*/
|
|
2512
|
-
readonly logger: Schema.decodeTo<Schema.optional<Schema.String
|
|
2512
|
+
readonly logger: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2513
2513
|
/**
|
|
2514
2514
|
* The data to be logged, such as a string message or an object. Any JSON
|
|
2515
2515
|
* serializable type is allowed here.
|
|
@@ -2544,7 +2544,7 @@ declare const ToolUseContent_base: Schema.Class<ToolUseContent, Schema.Struct<{
|
|
|
2544
2544
|
* Arguments supplied to the tool.
|
|
2545
2545
|
*/
|
|
2546
2546
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2547
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2547
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2548
2548
|
}>, {}>;
|
|
2549
2549
|
/**
|
|
2550
2550
|
* Schema for a tool-use request produced during MCP sampling.
|
|
@@ -2568,12 +2568,12 @@ declare const ToolResultContent_base: Schema.Class<ToolResultContent, Schema.Str
|
|
|
2568
2568
|
/**
|
|
2569
2569
|
* Optional structured result returned by the tool.
|
|
2570
2570
|
*/
|
|
2571
|
-
readonly structuredContent: Schema.decodeTo<Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2571
|
+
readonly structuredContent: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>, never, never>;
|
|
2572
2572
|
/**
|
|
2573
2573
|
* Whether tool execution ended in an error.
|
|
2574
2574
|
*/
|
|
2575
|
-
readonly isError: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
2576
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2575
|
+
readonly isError: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
2576
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2577
2577
|
}>, {}>;
|
|
2578
2578
|
/**
|
|
2579
2579
|
* Schema for the result of a tool use supplied in a sampling message.
|
|
@@ -2603,11 +2603,11 @@ export type SamplingMessageContentBlock = typeof SamplingMessageContentBlock.Typ
|
|
|
2603
2603
|
declare const SamplingMessage_base: Schema.Opaque<SamplingMessage, Schema.Struct<{
|
|
2604
2604
|
readonly role: Schema.Literals<["user", "assistant"]>;
|
|
2605
2605
|
readonly content: Schema.Union<readonly [Schema.Union<readonly [typeof TextContent, typeof ImageContent, typeof AudioContent, typeof ToolUseContent, typeof ToolResultContent]>, Schema.$Array<Schema.Union<readonly [typeof TextContent, typeof ImageContent, typeof AudioContent, typeof ToolUseContent, typeof ToolResultContent]>>]>;
|
|
2606
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2606
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2607
2607
|
}>, {}> & Omit<Schema.Struct<{
|
|
2608
2608
|
readonly role: Schema.Literals<["user", "assistant"]>;
|
|
2609
2609
|
readonly content: Schema.Union<readonly [Schema.Union<readonly [typeof TextContent, typeof ImageContent, typeof AudioContent, typeof ToolUseContent, typeof ToolResultContent]>, Schema.$Array<Schema.Union<readonly [typeof TextContent, typeof ImageContent, typeof AudioContent, typeof ToolUseContent, typeof ToolResultContent]>>]>;
|
|
2610
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2610
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2611
2611
|
}>, keyof Schema.Top>;
|
|
2612
2612
|
/**
|
|
2613
2613
|
* Describes a message issued to or received from an LLM API.
|
|
@@ -2622,7 +2622,7 @@ declare const ToolChoice_base: Schema.Class<ToolChoice, Schema.Struct<{
|
|
|
2622
2622
|
/**
|
|
2623
2623
|
* Tool-selection mode requested from the client.
|
|
2624
2624
|
*/
|
|
2625
|
-
readonly mode: Schema.decodeTo<Schema.optional<Schema.Literals<readonly ["auto", "required", "none"]
|
|
2625
|
+
readonly mode: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Literals<readonly ["auto", "required", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["auto", "required", "none"]>>, never, never>;
|
|
2626
2626
|
}>, {}>;
|
|
2627
2627
|
/**
|
|
2628
2628
|
* Schema for controlling tool selection during MCP sampling.
|
|
@@ -2646,7 +2646,7 @@ declare const ModelHint_base: Schema.Opaque<ModelHint, Schema.Struct<{
|
|
|
2646
2646
|
* a different model family, as long as it fills a similar niche; for example:
|
|
2647
2647
|
* - `gemini-1.5-flash` could match `claude-3-haiku-20240307`
|
|
2648
2648
|
*/
|
|
2649
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.String
|
|
2649
|
+
readonly name: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2650
2650
|
}>, {}> & Omit<Schema.Struct<{
|
|
2651
2651
|
/**
|
|
2652
2652
|
* A hint for a model name.
|
|
@@ -2660,7 +2660,7 @@ declare const ModelHint_base: Schema.Opaque<ModelHint, Schema.Struct<{
|
|
|
2660
2660
|
* a different model family, as long as it fills a similar niche; for example:
|
|
2661
2661
|
* - `gemini-1.5-flash` could match `claude-3-haiku-20240307`
|
|
2662
2662
|
*/
|
|
2663
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.String
|
|
2663
|
+
readonly name: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2664
2664
|
}>, keyof Schema.Top>;
|
|
2665
2665
|
/**
|
|
2666
2666
|
* Schema for model selection hints.
|
|
@@ -2686,25 +2686,25 @@ declare const ModelPreferences_base: Schema.Class<ModelPreferences, Schema.Struc
|
|
|
2686
2686
|
* The client SHOULD prioritize these hints over the numeric priorities, but
|
|
2687
2687
|
* MAY still use the priorities to select from ambiguous matches.
|
|
2688
2688
|
*/
|
|
2689
|
-
readonly hints: Schema.decodeTo<Schema.optional<Schema.$Array<typeof ModelHint
|
|
2689
|
+
readonly hints: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof ModelHint>>>, Schema.optionalKey<Schema.$Array<typeof ModelHint>>, never, never>;
|
|
2690
2690
|
/**
|
|
2691
2691
|
* How much to prioritize cost when selecting a model. A value of 0 means cost
|
|
2692
2692
|
* is not important, while a value of 1 means cost is the most important
|
|
2693
2693
|
* factor.
|
|
2694
2694
|
*/
|
|
2695
|
-
readonly costPriority: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
2695
|
+
readonly costPriority: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2696
2696
|
/**
|
|
2697
2697
|
* How much to prioritize sampling speed (latency) when selecting a model. A
|
|
2698
2698
|
* value of 0 means speed is not important, while a value of 1 means speed is
|
|
2699
2699
|
* the most important factor.
|
|
2700
2700
|
*/
|
|
2701
|
-
readonly speedPriority: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
2701
|
+
readonly speedPriority: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2702
2702
|
/**
|
|
2703
2703
|
* How much to prioritize intelligence and capabilities when selecting a
|
|
2704
2704
|
* model. A value of 0 means intelligence is not important, while a value of 1
|
|
2705
2705
|
* means intelligence is the most important factor.
|
|
2706
2706
|
*/
|
|
2707
|
-
readonly intelligencePriority: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
2707
|
+
readonly intelligencePriority: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2708
2708
|
}>, {}>;
|
|
2709
2709
|
/**
|
|
2710
2710
|
* Schema for the server's model selection preferences requested of the client
|
|
@@ -2733,7 +2733,7 @@ export declare class ModelPreferences extends ModelPreferences_base {
|
|
|
2733
2733
|
declare const CreateMessageResult_base: Schema.Class<CreateMessageResult, Schema.Struct<{
|
|
2734
2734
|
readonly role: Schema.Literals<["user", "assistant"]>;
|
|
2735
2735
|
readonly content: Schema.Union<readonly [Schema.Union<readonly [typeof TextContent, typeof ImageContent, typeof AudioContent, typeof ToolUseContent, typeof ToolResultContent]>, Schema.$Array<Schema.Union<readonly [typeof TextContent, typeof ImageContent, typeof AudioContent, typeof ToolUseContent, typeof ToolResultContent]>>]>;
|
|
2736
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2736
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2737
2737
|
/**
|
|
2738
2738
|
* The name of the model that generated the message.
|
|
2739
2739
|
*/
|
|
@@ -2741,7 +2741,7 @@ declare const CreateMessageResult_base: Schema.Class<CreateMessageResult, Schema
|
|
|
2741
2741
|
/**
|
|
2742
2742
|
* The reason why sampling stopped, if known.
|
|
2743
2743
|
*/
|
|
2744
|
-
readonly stopReason: Schema.decodeTo<Schema.optional<Schema.String
|
|
2744
|
+
readonly stopReason: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2745
2745
|
}>, {}>;
|
|
2746
2746
|
/**
|
|
2747
2747
|
* Represents a client response to an MCP sampling request.
|
|
@@ -2767,7 +2767,7 @@ declare const CreateMessage_base: Rpc.Rpc<"sampling/createMessage", Schema.Struc
|
|
|
2767
2767
|
* The server's preferences for which model to select. The client MAY ignore
|
|
2768
2768
|
* these preferences.
|
|
2769
2769
|
*/
|
|
2770
|
-
modelPreferences: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2770
|
+
modelPreferences: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{
|
|
2771
2771
|
/**
|
|
2772
2772
|
* Optional hints to use for model selection.
|
|
2773
2773
|
*
|
|
@@ -2777,26 +2777,26 @@ declare const CreateMessage_base: Rpc.Rpc<"sampling/createMessage", Schema.Struc
|
|
|
2777
2777
|
* The client SHOULD prioritize these hints over the numeric priorities, but
|
|
2778
2778
|
* MAY still use the priorities to select from ambiguous matches.
|
|
2779
2779
|
*/
|
|
2780
|
-
readonly hints: Schema.decodeTo<Schema.optional<Schema.$Array<typeof ModelHint
|
|
2780
|
+
readonly hints: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof ModelHint>>>, Schema.optionalKey<Schema.$Array<typeof ModelHint>>, never, never>;
|
|
2781
2781
|
/**
|
|
2782
2782
|
* How much to prioritize cost when selecting a model. A value of 0 means cost
|
|
2783
2783
|
* is not important, while a value of 1 means cost is the most important
|
|
2784
2784
|
* factor.
|
|
2785
2785
|
*/
|
|
2786
|
-
readonly costPriority: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
2786
|
+
readonly costPriority: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2787
2787
|
/**
|
|
2788
2788
|
* How much to prioritize sampling speed (latency) when selecting a model. A
|
|
2789
2789
|
* value of 0 means speed is not important, while a value of 1 means speed is
|
|
2790
2790
|
* the most important factor.
|
|
2791
2791
|
*/
|
|
2792
|
-
readonly speedPriority: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
2792
|
+
readonly speedPriority: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2793
2793
|
/**
|
|
2794
2794
|
* How much to prioritize intelligence and capabilities when selecting a
|
|
2795
2795
|
* model. A value of 0 means intelligence is not important, while a value of 1
|
|
2796
2796
|
* means intelligence is the most important factor.
|
|
2797
2797
|
*/
|
|
2798
|
-
readonly intelligencePriority: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
2799
|
-
}
|
|
2798
|
+
readonly intelligencePriority: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2799
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2800
2800
|
/**
|
|
2801
2801
|
* Optional hints to use for model selection.
|
|
2802
2802
|
*
|
|
@@ -2806,63 +2806,63 @@ declare const CreateMessage_base: Rpc.Rpc<"sampling/createMessage", Schema.Struc
|
|
|
2806
2806
|
* The client SHOULD prioritize these hints over the numeric priorities, but
|
|
2807
2807
|
* MAY still use the priorities to select from ambiguous matches.
|
|
2808
2808
|
*/
|
|
2809
|
-
readonly hints: Schema.decodeTo<Schema.optional<Schema.$Array<typeof ModelHint
|
|
2809
|
+
readonly hints: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof ModelHint>>>, Schema.optionalKey<Schema.$Array<typeof ModelHint>>, never, never>;
|
|
2810
2810
|
/**
|
|
2811
2811
|
* How much to prioritize cost when selecting a model. A value of 0 means cost
|
|
2812
2812
|
* is not important, while a value of 1 means cost is the most important
|
|
2813
2813
|
* factor.
|
|
2814
2814
|
*/
|
|
2815
|
-
readonly costPriority: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
2815
|
+
readonly costPriority: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2816
2816
|
/**
|
|
2817
2817
|
* How much to prioritize sampling speed (latency) when selecting a model. A
|
|
2818
2818
|
* value of 0 means speed is not important, while a value of 1 means speed is
|
|
2819
2819
|
* the most important factor.
|
|
2820
2820
|
*/
|
|
2821
|
-
readonly speedPriority: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
2821
|
+
readonly speedPriority: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2822
2822
|
/**
|
|
2823
2823
|
* How much to prioritize intelligence and capabilities when selecting a
|
|
2824
2824
|
* model. A value of 0 means intelligence is not important, while a value of 1
|
|
2825
2825
|
* means intelligence is the most important factor.
|
|
2826
2826
|
*/
|
|
2827
|
-
readonly intelligencePriority: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
2827
|
+
readonly intelligencePriority: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2828
2828
|
}>>, never, never>;
|
|
2829
2829
|
/**
|
|
2830
2830
|
* An optional system prompt the server wants to use for sampling. The
|
|
2831
2831
|
* client MAY modify or omit this prompt.
|
|
2832
2832
|
*/
|
|
2833
|
-
systemPrompt: Schema.decodeTo<Schema.optional<Schema.String
|
|
2833
|
+
systemPrompt: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2834
2834
|
/**
|
|
2835
2835
|
* A request to include context from one or more MCP servers (including the
|
|
2836
2836
|
* caller), to be attached to the prompt. The client MAY ignore this request.
|
|
2837
2837
|
*/
|
|
2838
|
-
includeContext: Schema.decodeTo<Schema.optional<Schema.Literals<readonly ["none", "thisServer", "allServers"]
|
|
2839
|
-
temperature: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
2838
|
+
includeContext: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Literals<readonly ["none", "thisServer", "allServers"]>>>, Schema.optionalKey<Schema.Literals<readonly ["none", "thisServer", "allServers"]>>, never, never>;
|
|
2839
|
+
temperature: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2840
2840
|
/**
|
|
2841
2841
|
* The maximum number of tokens to sample, as requested by the server. The
|
|
2842
2842
|
* client MAY choose to sample fewer tokens than requested.
|
|
2843
2843
|
*/
|
|
2844
2844
|
maxTokens: Schema.Int;
|
|
2845
|
-
stopSequences: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
2845
|
+
stopSequences: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
2846
2846
|
/**
|
|
2847
2847
|
* Optional metadata to pass through to the LLM provider. The format of
|
|
2848
2848
|
* this metadata is provider-specific.
|
|
2849
2849
|
*/
|
|
2850
|
-
metadata: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown
|
|
2850
|
+
metadata: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2851
2851
|
/**
|
|
2852
2852
|
* Tools that the model may call while producing the response.
|
|
2853
2853
|
*/
|
|
2854
|
-
tools: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2854
|
+
tools: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2855
2855
|
/**
|
|
2856
2856
|
* The name of the tool.
|
|
2857
2857
|
*/
|
|
2858
2858
|
readonly name: Schema.String;
|
|
2859
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
2859
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2860
2860
|
/**
|
|
2861
2861
|
* A human-readable description of the tool.
|
|
2862
2862
|
*
|
|
2863
2863
|
* This can be used by clients to improve the LLM's understanding of available tools. It can be thought of like a "hint" to the model.
|
|
2864
2864
|
*/
|
|
2865
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
2865
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2866
2866
|
/**
|
|
2867
2867
|
* A JSON Schema object defining the expected parameters for the tool.
|
|
2868
2868
|
*/
|
|
@@ -2870,34 +2870,34 @@ declare const CreateMessage_base: Rpc.Rpc<"sampling/createMessage", Schema.Struc
|
|
|
2870
2870
|
/**
|
|
2871
2871
|
* An optional JSON Schema object defining the structure of the tool output.
|
|
2872
2872
|
*/
|
|
2873
|
-
readonly outputSchema: Schema.decodeTo<Schema.optional<Schema.Codec<Schema.JsonObject, Schema.JsonObject, never, never
|
|
2873
|
+
readonly outputSchema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Codec<Schema.JsonObject, Schema.JsonObject, never, never>>>, Schema.optionalKey<Schema.Codec<Schema.JsonObject, Schema.JsonObject, never, never>>, never, never>;
|
|
2874
2874
|
/**
|
|
2875
2875
|
* Optional additional tool information.
|
|
2876
2876
|
*/
|
|
2877
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof ToolAnnotations
|
|
2877
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof ToolAnnotations>>, Schema.optionalKey<typeof ToolAnnotations>, never, never>;
|
|
2878
2878
|
/**
|
|
2879
2879
|
* Icons that clients can display for this tool.
|
|
2880
2880
|
*/
|
|
2881
|
-
readonly icons: Schema.decodeTo<Schema.optional<Schema.$Array<typeof Icon
|
|
2881
|
+
readonly icons: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof Icon>>>, Schema.optionalKey<Schema.$Array<typeof Icon>>, never, never>;
|
|
2882
2882
|
/**
|
|
2883
2883
|
* Optional additional metadata for the client.
|
|
2884
2884
|
*
|
|
2885
2885
|
* This parameter name is reserved by MCP to allow clients and servers to
|
|
2886
2886
|
* attach additional metadata to resources.
|
|
2887
2887
|
*/
|
|
2888
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2889
|
-
}
|
|
2888
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2889
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2890
2890
|
/**
|
|
2891
2891
|
* The name of the tool.
|
|
2892
2892
|
*/
|
|
2893
2893
|
readonly name: Schema.String;
|
|
2894
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
2894
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2895
2895
|
/**
|
|
2896
2896
|
* A human-readable description of the tool.
|
|
2897
2897
|
*
|
|
2898
2898
|
* This can be used by clients to improve the LLM's understanding of available tools. It can be thought of like a "hint" to the model.
|
|
2899
2899
|
*/
|
|
2900
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
2900
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2901
2901
|
/**
|
|
2902
2902
|
* A JSON Schema object defining the expected parameters for the tool.
|
|
2903
2903
|
*/
|
|
@@ -2905,36 +2905,36 @@ declare const CreateMessage_base: Rpc.Rpc<"sampling/createMessage", Schema.Struc
|
|
|
2905
2905
|
/**
|
|
2906
2906
|
* An optional JSON Schema object defining the structure of the tool output.
|
|
2907
2907
|
*/
|
|
2908
|
-
readonly outputSchema: Schema.decodeTo<Schema.optional<Schema.Codec<Schema.JsonObject, Schema.JsonObject, never, never
|
|
2908
|
+
readonly outputSchema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Codec<Schema.JsonObject, Schema.JsonObject, never, never>>>, Schema.optionalKey<Schema.Codec<Schema.JsonObject, Schema.JsonObject, never, never>>, never, never>;
|
|
2909
2909
|
/**
|
|
2910
2910
|
* Optional additional tool information.
|
|
2911
2911
|
*/
|
|
2912
|
-
readonly annotations: Schema.decodeTo<Schema.optional<typeof ToolAnnotations
|
|
2912
|
+
readonly annotations: Schema.decodeTo<Schema.toType<Schema.optional<typeof ToolAnnotations>>, Schema.optionalKey<typeof ToolAnnotations>, never, never>;
|
|
2913
2913
|
/**
|
|
2914
2914
|
* Icons that clients can display for this tool.
|
|
2915
2915
|
*/
|
|
2916
|
-
readonly icons: Schema.decodeTo<Schema.optional<Schema.$Array<typeof Icon
|
|
2916
|
+
readonly icons: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<typeof Icon>>>, Schema.optionalKey<Schema.$Array<typeof Icon>>, never, never>;
|
|
2917
2917
|
/**
|
|
2918
2918
|
* Optional additional metadata for the client.
|
|
2919
2919
|
*
|
|
2920
2920
|
* This parameter name is reserved by MCP to allow clients and servers to
|
|
2921
2921
|
* attach additional metadata to resources.
|
|
2922
2922
|
*/
|
|
2923
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
2923
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2924
2924
|
}>>>, never, never>;
|
|
2925
2925
|
/**
|
|
2926
2926
|
* Controls whether the model may or must call a tool.
|
|
2927
2927
|
*/
|
|
2928
|
-
toolChoice: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2928
|
+
toolChoice: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Struct<{
|
|
2929
2929
|
/**
|
|
2930
2930
|
* Tool-selection mode requested from the client.
|
|
2931
2931
|
*/
|
|
2932
|
-
readonly mode: Schema.decodeTo<Schema.optional<Schema.Literals<readonly ["auto", "required", "none"]
|
|
2933
|
-
}
|
|
2932
|
+
readonly mode: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Literals<readonly ["auto", "required", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["auto", "required", "none"]>>, never, never>;
|
|
2933
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2934
2934
|
/**
|
|
2935
2935
|
* Tool-selection mode requested from the client.
|
|
2936
2936
|
*/
|
|
2937
|
-
readonly mode: Schema.decodeTo<Schema.optional<Schema.Literals<readonly ["auto", "required", "none"]
|
|
2937
|
+
readonly mode: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Literals<readonly ["auto", "required", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["auto", "required", "none"]>>, never, never>;
|
|
2938
2938
|
}>>, never, never>;
|
|
2939
2939
|
}>, typeof CreateMessageResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, never, never>;
|
|
2940
2940
|
/**
|
|
@@ -2984,14 +2984,14 @@ declare const PromptReference_base: Schema.Opaque<PromptReference, Schema.Struct
|
|
|
2984
2984
|
* The name of the prompt or prompt template
|
|
2985
2985
|
*/
|
|
2986
2986
|
readonly name: Schema.String;
|
|
2987
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
2987
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2988
2988
|
}>, {}> & Omit<Schema.Struct<{
|
|
2989
2989
|
readonly type: Schema.tag<"ref/prompt">;
|
|
2990
2990
|
/**
|
|
2991
2991
|
* The name of the prompt or prompt template
|
|
2992
2992
|
*/
|
|
2993
2993
|
readonly name: Schema.String;
|
|
2994
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
2994
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2995
2995
|
}>, keyof Schema.Top>;
|
|
2996
2996
|
/**
|
|
2997
2997
|
* Schema for a prompt reference used in autocomplete requests.
|
|
@@ -3007,7 +3007,7 @@ declare const CompleteResult_base: Schema.Opaque<CompleteResult, Schema.Struct<{
|
|
|
3007
3007
|
* This result property is reserved by the protocol to allow clients and
|
|
3008
3008
|
* servers to attach additional metadata to their responses.
|
|
3009
3009
|
*/
|
|
3010
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
3010
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
3011
3011
|
readonly completion: Schema.Struct<{
|
|
3012
3012
|
/**
|
|
3013
3013
|
* An array of completion values. Must not exceed 100 items.
|
|
@@ -3017,19 +3017,19 @@ declare const CompleteResult_base: Schema.Opaque<CompleteResult, Schema.Struct<{
|
|
|
3017
3017
|
* The total number of completion options available. This can exceed the
|
|
3018
3018
|
* number of values actually sent in the response.
|
|
3019
3019
|
*/
|
|
3020
|
-
readonly total: Schema.decodeTo<Schema.optional<Schema.Int
|
|
3020
|
+
readonly total: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3021
3021
|
/**
|
|
3022
3022
|
* Indicates whether there are additional completion options beyond those
|
|
3023
3023
|
* provided in the current response, even if the exact total is unknown.
|
|
3024
3024
|
*/
|
|
3025
|
-
readonly hasMore: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
3025
|
+
readonly hasMore: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
3026
3026
|
}>;
|
|
3027
3027
|
}>, {}> & Omit<Schema.Struct<{
|
|
3028
3028
|
/**
|
|
3029
3029
|
* This result property is reserved by the protocol to allow clients and
|
|
3030
3030
|
* servers to attach additional metadata to their responses.
|
|
3031
3031
|
*/
|
|
3032
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
3032
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
3033
3033
|
readonly completion: Schema.Struct<{
|
|
3034
3034
|
/**
|
|
3035
3035
|
* An array of completion values. Must not exceed 100 items.
|
|
@@ -3039,12 +3039,12 @@ declare const CompleteResult_base: Schema.Opaque<CompleteResult, Schema.Struct<{
|
|
|
3039
3039
|
* The total number of completion options available. This can exceed the
|
|
3040
3040
|
* number of values actually sent in the response.
|
|
3041
3041
|
*/
|
|
3042
|
-
readonly total: Schema.decodeTo<Schema.optional<Schema.Int
|
|
3042
|
+
readonly total: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3043
3043
|
/**
|
|
3044
3044
|
* Indicates whether there are additional completion options beyond those
|
|
3045
3045
|
* provided in the current response, even if the exact total is unknown.
|
|
3046
3046
|
*/
|
|
3047
|
-
readonly hasMore: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
3047
|
+
readonly hasMore: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
3048
3048
|
}>;
|
|
3049
3049
|
}>, keyof Schema.Top>;
|
|
3050
3050
|
/**
|
|
@@ -3109,11 +3109,11 @@ declare const Root_base: Schema.Class<Root, Schema.Struct<{
|
|
|
3109
3109
|
* identifier for the root, which may be useful for display purposes or for
|
|
3110
3110
|
* referencing the root in other parts of the application.
|
|
3111
3111
|
*/
|
|
3112
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.String
|
|
3112
|
+
readonly name: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3113
3113
|
/**
|
|
3114
3114
|
* Optional additional metadata associated with the root.
|
|
3115
3115
|
*/
|
|
3116
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
3116
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
3117
3117
|
}>, {}>;
|
|
3118
3118
|
/**
|
|
3119
3119
|
* Represents a root directory or file that the server can operate on.
|
|
@@ -3179,12 +3179,12 @@ export declare class RootsListChangedNotification extends RootsListChangedNotifi
|
|
|
3179
3179
|
}
|
|
3180
3180
|
declare const ElicitationString_base: Schema.Class<ElicitationString, Schema.Struct<{
|
|
3181
3181
|
readonly type: Schema.tag<"string">;
|
|
3182
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
3183
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
3184
|
-
readonly minLength: Schema.decodeTo<Schema.optional<Schema.Int
|
|
3185
|
-
readonly maxLength: Schema.decodeTo<Schema.optional<Schema.Int
|
|
3186
|
-
readonly format: Schema.decodeTo<Schema.optional<Schema.Literals<readonly ["email", "uri", "date", "date-time"]
|
|
3187
|
-
readonly default: Schema.decodeTo<Schema.optional<Schema.String
|
|
3182
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3183
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3184
|
+
readonly minLength: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3185
|
+
readonly maxLength: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3186
|
+
readonly format: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>>, Schema.optionalKey<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>, never, never>;
|
|
3187
|
+
readonly default: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3188
3188
|
}>, {}>;
|
|
3189
3189
|
/**
|
|
3190
3190
|
* Schema for a string field in an MCP elicitation form.
|
|
@@ -3197,11 +3197,11 @@ export declare class ElicitationString extends ElicitationString_base {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
declare const ElicitationNumber_base: Schema.Class<ElicitationNumber, Schema.Struct<{
|
|
3199
3199
|
readonly type: Schema.Literals<readonly ["number", "integer"]>;
|
|
3200
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
3201
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
3202
|
-
readonly minimum: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
3203
|
-
readonly maximum: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
3204
|
-
readonly default: Schema.decodeTo<Schema.optional<Schema.Finite
|
|
3200
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3201
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3202
|
+
readonly minimum: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
3203
|
+
readonly maximum: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
3204
|
+
readonly default: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
3205
3205
|
}>, {}>;
|
|
3206
3206
|
/**
|
|
3207
3207
|
* Schema for a numeric field in an MCP elicitation form.
|
|
@@ -3214,9 +3214,9 @@ export declare class ElicitationNumber extends ElicitationNumber_base {
|
|
|
3214
3214
|
}
|
|
3215
3215
|
declare const ElicitationBoolean_base: Schema.Class<ElicitationBoolean, Schema.Struct<{
|
|
3216
3216
|
readonly type: Schema.tag<"boolean">;
|
|
3217
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
3218
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
3219
|
-
readonly default: Schema.decodeTo<Schema.optional<Schema.Boolean
|
|
3217
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3218
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3219
|
+
readonly default: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
3220
3220
|
}>, {}>;
|
|
3221
3221
|
/**
|
|
3222
3222
|
* Schema for a boolean field in an MCP elicitation form.
|
|
@@ -3229,10 +3229,10 @@ export declare class ElicitationBoolean extends ElicitationBoolean_base {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
declare const UntitledSingleSelectEnum_base: Schema.Class<UntitledSingleSelectEnum, Schema.Struct<{
|
|
3231
3231
|
readonly type: Schema.tag<"string">;
|
|
3232
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
3233
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
3232
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3233
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3234
3234
|
readonly enum: Schema.$Array<Schema.String>;
|
|
3235
|
-
readonly default: Schema.decodeTo<Schema.optional<Schema.String
|
|
3235
|
+
readonly default: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3236
3236
|
}>, {}>;
|
|
3237
3237
|
/**
|
|
3238
3238
|
* Schema for an untitled single-select field in an MCP elicitation form.
|
|
@@ -3245,13 +3245,13 @@ export declare class UntitledSingleSelectEnum extends UntitledSingleSelectEnum_b
|
|
|
3245
3245
|
}
|
|
3246
3246
|
declare const TitledSingleSelectEnum_base: Schema.Class<TitledSingleSelectEnum, Schema.Struct<{
|
|
3247
3247
|
readonly type: Schema.tag<"string">;
|
|
3248
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
3249
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
3248
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3249
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3250
3250
|
readonly oneOf: Schema.$Array<Schema.Struct<{
|
|
3251
3251
|
readonly const: Schema.String;
|
|
3252
3252
|
readonly title: Schema.String;
|
|
3253
3253
|
}>>;
|
|
3254
|
-
readonly default: Schema.decodeTo<Schema.optional<Schema.String
|
|
3254
|
+
readonly default: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3255
3255
|
}>, {}>;
|
|
3256
3256
|
/**
|
|
3257
3257
|
* Schema for a titled single-select field in an MCP elicitation form.
|
|
@@ -3280,15 +3280,15 @@ export declare const SingleSelectEnum: Schema.Union<readonly [typeof UntitledSin
|
|
|
3280
3280
|
export type SingleSelectEnum = typeof SingleSelectEnum.Type;
|
|
3281
3281
|
declare const UntitledMultiSelectEnum_base: Schema.Class<UntitledMultiSelectEnum, Schema.Struct<{
|
|
3282
3282
|
readonly type: Schema.tag<"array">;
|
|
3283
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
3284
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
3285
|
-
readonly minItems: Schema.decodeTo<Schema.optional<Schema.Int
|
|
3286
|
-
readonly maxItems: Schema.decodeTo<Schema.optional<Schema.Int
|
|
3283
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3284
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3285
|
+
readonly minItems: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3286
|
+
readonly maxItems: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3287
3287
|
readonly items: Schema.Struct<{
|
|
3288
3288
|
readonly type: Schema.tag<"string">;
|
|
3289
3289
|
readonly enum: Schema.$Array<Schema.String>;
|
|
3290
3290
|
}>;
|
|
3291
|
-
readonly default: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
3291
|
+
readonly default: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
3292
3292
|
}>, {}>;
|
|
3293
3293
|
/**
|
|
3294
3294
|
* Schema for an untitled multi-select field in an MCP elicitation form.
|
|
@@ -3301,17 +3301,17 @@ export declare class UntitledMultiSelectEnum extends UntitledMultiSelectEnum_bas
|
|
|
3301
3301
|
}
|
|
3302
3302
|
declare const TitledMultiSelectEnum_base: Schema.Class<TitledMultiSelectEnum, Schema.Struct<{
|
|
3303
3303
|
readonly type: Schema.tag<"array">;
|
|
3304
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
3305
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
3306
|
-
readonly minItems: Schema.decodeTo<Schema.optional<Schema.Int
|
|
3307
|
-
readonly maxItems: Schema.decodeTo<Schema.optional<Schema.Int
|
|
3304
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3305
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3306
|
+
readonly minItems: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3307
|
+
readonly maxItems: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3308
3308
|
readonly items: Schema.Struct<{
|
|
3309
3309
|
readonly anyOf: Schema.$Array<Schema.Struct<{
|
|
3310
3310
|
readonly const: Schema.String;
|
|
3311
3311
|
readonly title: Schema.String;
|
|
3312
3312
|
}>>;
|
|
3313
3313
|
}>;
|
|
3314
|
-
readonly default: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
3314
|
+
readonly default: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
3315
3315
|
}>, {}>;
|
|
3316
3316
|
/**
|
|
3317
3317
|
* Schema for a titled multi-select field in an MCP elicitation form.
|
|
@@ -3340,11 +3340,11 @@ export declare const MultiSelectEnum: Schema.Union<readonly [typeof UntitledMult
|
|
|
3340
3340
|
export type MultiSelectEnum = typeof MultiSelectEnum.Type;
|
|
3341
3341
|
declare const LegacyTitledEnum_base: Schema.Class<LegacyTitledEnum, Schema.Struct<{
|
|
3342
3342
|
readonly type: Schema.tag<"string">;
|
|
3343
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.String
|
|
3344
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String
|
|
3343
|
+
readonly title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3344
|
+
readonly description: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3345
3345
|
readonly enum: Schema.$Array<Schema.String>;
|
|
3346
|
-
readonly enumNames: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
3347
|
-
readonly default: Schema.decodeTo<Schema.optional<Schema.String
|
|
3346
|
+
readonly enumNames: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
3347
|
+
readonly default: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3348
3348
|
}>, {}>;
|
|
3349
3349
|
/**
|
|
3350
3350
|
* Schema for the legacy titled single-select elicitation field.
|
|
@@ -3389,7 +3389,7 @@ export declare const PrimitiveSchemaDefinition: Schema.Union<readonly [Schema.Un
|
|
|
3389
3389
|
*/
|
|
3390
3390
|
export type PrimitiveSchemaDefinition = typeof PrimitiveSchemaDefinition.Type;
|
|
3391
3391
|
declare const ElicitRequestFormParams_base: Schema.Class<ElicitRequestFormParams, Schema.Struct<{
|
|
3392
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3392
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3393
3393
|
/**
|
|
3394
3394
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3395
3395
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3397,8 +3397,8 @@ declare const ElicitRequestFormParams_base: Schema.Class<ElicitRequestFormParams
|
|
|
3397
3397
|
* notifications. The receiver is not obligated to provide these
|
|
3398
3398
|
* notifications.
|
|
3399
3399
|
*/
|
|
3400
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3401
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
3400
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3401
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
3402
3402
|
/**
|
|
3403
3403
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3404
3404
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3406,15 +3406,15 @@ declare const ElicitRequestFormParams_base: Schema.Class<ElicitRequestFormParams
|
|
|
3406
3406
|
* notifications. The receiver is not obligated to provide these
|
|
3407
3407
|
* notifications.
|
|
3408
3408
|
*/
|
|
3409
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3409
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3410
3410
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
3411
|
-
readonly mode: Schema.decodeTo<Schema.optional<Schema.Literal<"form"
|
|
3411
|
+
readonly mode: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Literal<"form">>>, Schema.optionalKey<Schema.Literal<"form">>, never, never>;
|
|
3412
3412
|
readonly message: Schema.String;
|
|
3413
3413
|
readonly requestedSchema: Schema.Struct<{
|
|
3414
|
-
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String
|
|
3414
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3415
3415
|
readonly type: Schema.tag<"object">;
|
|
3416
3416
|
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof LegacyTitledEnum, Schema.Union<readonly [typeof UntitledSingleSelectEnum, typeof TitledSingleSelectEnum]>, Schema.Union<readonly [typeof UntitledMultiSelectEnum, typeof TitledMultiSelectEnum]>]>, typeof ElicitationString, typeof ElicitationNumber, typeof ElicitationBoolean]>>;
|
|
3417
|
-
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String
|
|
3417
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
3418
3418
|
}>;
|
|
3419
3419
|
}>, {}>;
|
|
3420
3420
|
/**
|
|
@@ -3427,7 +3427,7 @@ declare const ElicitRequestFormParams_base: Schema.Class<ElicitRequestFormParams
|
|
|
3427
3427
|
export declare class ElicitRequestFormParams extends ElicitRequestFormParams_base {
|
|
3428
3428
|
}
|
|
3429
3429
|
declare const ElicitRequestURLParams_base: Schema.Class<ElicitRequestURLParams, Schema.Struct<{
|
|
3430
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3430
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3431
3431
|
/**
|
|
3432
3432
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3433
3433
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3435,8 +3435,8 @@ declare const ElicitRequestURLParams_base: Schema.Class<ElicitRequestURLParams,
|
|
|
3435
3435
|
* notifications. The receiver is not obligated to provide these
|
|
3436
3436
|
* notifications.
|
|
3437
3437
|
*/
|
|
3438
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3439
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
3438
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3439
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
3440
3440
|
/**
|
|
3441
3441
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3442
3442
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3444,7 +3444,7 @@ declare const ElicitRequestURLParams_base: Schema.Class<ElicitRequestURLParams,
|
|
|
3444
3444
|
* notifications. The receiver is not obligated to provide these
|
|
3445
3445
|
* notifications.
|
|
3446
3446
|
*/
|
|
3447
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3447
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3448
3448
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
3449
3449
|
readonly mode: Schema.Literal<"url">;
|
|
3450
3450
|
readonly message: Schema.String;
|
|
@@ -3481,7 +3481,7 @@ declare const ElicitAcceptResult_base: Schema.Class<ElicitAcceptResult, Schema.S
|
|
|
3481
3481
|
* This result property is reserved by the protocol to allow clients and
|
|
3482
3482
|
* servers to attach additional metadata to their responses.
|
|
3483
3483
|
*/
|
|
3484
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
3484
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
3485
3485
|
/**
|
|
3486
3486
|
* The user action in response to the elicitation.
|
|
3487
3487
|
* - "accept": User submitted the form/confirmed the action
|
|
@@ -3493,7 +3493,7 @@ declare const ElicitAcceptResult_base: Schema.Class<ElicitAcceptResult, Schema.S
|
|
|
3493
3493
|
* The submitted form data, only present when action is "accept".
|
|
3494
3494
|
* Contains values matching the requested schema.
|
|
3495
3495
|
*/
|
|
3496
|
-
readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]
|
|
3496
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
3497
3497
|
}>, {}>;
|
|
3498
3498
|
/**
|
|
3499
3499
|
* Schema for an accepted client response to an elicitation request.
|
|
@@ -3509,7 +3509,7 @@ declare const ElicitDeclineResult_base: Schema.Class<ElicitDeclineResult, Schema
|
|
|
3509
3509
|
* This result property is reserved by the protocol to allow clients and
|
|
3510
3510
|
* servers to attach additional metadata to their responses.
|
|
3511
3511
|
*/
|
|
3512
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never
|
|
3512
|
+
readonly _meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
3513
3513
|
/**
|
|
3514
3514
|
* The user action in response to the elicitation.
|
|
3515
3515
|
* - "accept": User submitted the form/confirmed the action
|
|
@@ -3631,7 +3631,7 @@ export declare class ElicitationCompleteNotification extends ElicitationComplete
|
|
|
3631
3631
|
declare const ElicitationDeclined_base: Schema.Class<ElicitationDeclined, Schema.Struct<{
|
|
3632
3632
|
readonly _tag: Schema.tag<"ElicitationDeclined">;
|
|
3633
3633
|
readonly request: Schema.Union<readonly [typeof ElicitRequestFormParams, typeof ElicitRequestURLParams]>;
|
|
3634
|
-
readonly cause: Schema.decodeTo<Schema.optional<Schema.Defect
|
|
3634
|
+
readonly cause: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Defect>>, Schema.optionalKey<Schema.Defect>, never, never>;
|
|
3635
3635
|
}>, import("../Cause.ts").YieldableError>;
|
|
3636
3636
|
/**
|
|
3637
3637
|
* Error raised when an MCP elicitation request is declined or fails before
|
|
@@ -3803,8 +3803,32 @@ export type FailureEncoded<Group extends RpcGroup.Any> = RpcGroup.Rpcs<Group> ex
|
|
|
3803
3803
|
readonly id: string | number;
|
|
3804
3804
|
readonly error: _Error["Encoded"];
|
|
3805
3805
|
} : never : never;
|
|
3806
|
-
declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"
|
|
3807
|
-
|
|
3806
|
+
declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete", Schema.Struct<{
|
|
3807
|
+
readonly ref: Schema.Union<readonly [typeof PromptReference, typeof ResourceReference]>;
|
|
3808
|
+
/**
|
|
3809
|
+
* The argument's information
|
|
3810
|
+
*/
|
|
3811
|
+
readonly argument: Schema.Struct<{
|
|
3812
|
+
/**
|
|
3813
|
+
* The name of the argument
|
|
3814
|
+
*/
|
|
3815
|
+
readonly name: Schema.String;
|
|
3816
|
+
/**
|
|
3817
|
+
* The value of the argument to use for completion matching.
|
|
3818
|
+
*/
|
|
3819
|
+
readonly value: Schema.String;
|
|
3820
|
+
}>;
|
|
3821
|
+
/**
|
|
3822
|
+
* Additional, optional context for completions
|
|
3823
|
+
*/
|
|
3824
|
+
readonly context: optionalWithDefault<Schema.Struct<{
|
|
3825
|
+
/**
|
|
3826
|
+
* Previously-resolved variables in a URI template or prompt.
|
|
3827
|
+
*/
|
|
3828
|
+
readonly arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.String>>;
|
|
3829
|
+
}>>;
|
|
3830
|
+
}>, typeof CompleteResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"initialize", Schema.Struct<{
|
|
3831
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3808
3832
|
/**
|
|
3809
3833
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3810
3834
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3812,8 +3836,8 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3812
3836
|
* notifications. The receiver is not obligated to provide these
|
|
3813
3837
|
* notifications.
|
|
3814
3838
|
*/
|
|
3815
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3816
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
3839
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3840
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
3817
3841
|
/**
|
|
3818
3842
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3819
3843
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3821,7 +3845,7 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3821
3845
|
* notifications. The receiver is not obligated to provide these
|
|
3822
3846
|
* notifications.
|
|
3823
3847
|
*/
|
|
3824
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3848
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3825
3849
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
3826
3850
|
/**
|
|
3827
3851
|
* The latest version of the Model Context Protocol that the client
|
|
@@ -3838,8 +3862,8 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3838
3862
|
* Describes the name and version of an MCP implementation.
|
|
3839
3863
|
*/
|
|
3840
3864
|
clientInfo: typeof Implementation;
|
|
3841
|
-
}>, typeof InitializeResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"
|
|
3842
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3865
|
+
}>, typeof InitializeResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"logging/setLevel", Schema.Struct<{
|
|
3866
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3843
3867
|
/**
|
|
3844
3868
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3845
3869
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3847,8 +3871,8 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3847
3871
|
* notifications. The receiver is not obligated to provide these
|
|
3848
3872
|
* notifications.
|
|
3849
3873
|
*/
|
|
3850
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3851
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
3874
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3875
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
3852
3876
|
/**
|
|
3853
3877
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3854
3878
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3856,15 +3880,16 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3856
3880
|
* notifications. The receiver is not obligated to provide these
|
|
3857
3881
|
* notifications.
|
|
3858
3882
|
*/
|
|
3859
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3883
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3860
3884
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
3861
3885
|
/**
|
|
3862
|
-
* The
|
|
3863
|
-
*
|
|
3886
|
+
* The level of logging that the client wants to receive from the server.
|
|
3887
|
+
* The server should send all logs at this level and higher (i.e., more
|
|
3888
|
+
* severe) to the client as notifications/message.
|
|
3864
3889
|
*/
|
|
3865
|
-
|
|
3866
|
-
}>, typeof
|
|
3867
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3890
|
+
level: Schema.Literals<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]>;
|
|
3891
|
+
}>, Schema.Struct<{}>, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"ping", Schema.UndefinedOr<typeof RequestMeta>, Schema.Struct<{}>, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"prompts/get", Schema.Struct<{
|
|
3892
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3868
3893
|
/**
|
|
3869
3894
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3870
3895
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3872,8 +3897,8 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3872
3897
|
* notifications. The receiver is not obligated to provide these
|
|
3873
3898
|
* notifications.
|
|
3874
3899
|
*/
|
|
3875
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3876
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
3900
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3901
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
3877
3902
|
/**
|
|
3878
3903
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3879
3904
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3881,15 +3906,19 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3881
3906
|
* notifications. The receiver is not obligated to provide these
|
|
3882
3907
|
* notifications.
|
|
3883
3908
|
*/
|
|
3884
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3909
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3885
3910
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
3886
3911
|
/**
|
|
3887
|
-
* The
|
|
3888
|
-
* it is up to the server how to interpret it.
|
|
3912
|
+
* The name of the prompt or prompt template.
|
|
3889
3913
|
*/
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3914
|
+
name: Schema.String;
|
|
3915
|
+
title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3916
|
+
/**
|
|
3917
|
+
* Arguments to use for templating the prompt.
|
|
3918
|
+
*/
|
|
3919
|
+
arguments: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
3920
|
+
}>, typeof GetPromptResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"prompts/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListPromptsResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListResourcesResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/read", Schema.Struct<{
|
|
3921
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3893
3922
|
/**
|
|
3894
3923
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3895
3924
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3897,8 +3926,8 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3897
3926
|
* notifications. The receiver is not obligated to provide these
|
|
3898
3927
|
* notifications.
|
|
3899
3928
|
*/
|
|
3900
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3901
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
3929
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3930
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
3902
3931
|
/**
|
|
3903
3932
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3904
3933
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3906,15 +3935,15 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3906
3935
|
* notifications. The receiver is not obligated to provide these
|
|
3907
3936
|
* notifications.
|
|
3908
3937
|
*/
|
|
3909
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3938
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3910
3939
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
3911
3940
|
/**
|
|
3912
|
-
* The URI of the resource to
|
|
3913
|
-
*
|
|
3941
|
+
* The URI of the resource to read. The URI can use any protocol; it is up
|
|
3942
|
+
* to the server how to interpret it.
|
|
3914
3943
|
*/
|
|
3915
3944
|
uri: Schema.String;
|
|
3916
|
-
}>,
|
|
3917
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3945
|
+
}>, typeof ReadResourceResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
3946
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3918
3947
|
/**
|
|
3919
3948
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3920
3949
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3922,8 +3951,8 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3922
3951
|
* notifications. The receiver is not obligated to provide these
|
|
3923
3952
|
* notifications.
|
|
3924
3953
|
*/
|
|
3925
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3926
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
3954
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3955
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
3927
3956
|
/**
|
|
3928
3957
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3929
3958
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3931,19 +3960,15 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3931
3960
|
* notifications. The receiver is not obligated to provide these
|
|
3932
3961
|
* notifications.
|
|
3933
3962
|
*/
|
|
3934
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3963
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3935
3964
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
3936
3965
|
/**
|
|
3937
|
-
* The
|
|
3938
|
-
|
|
3939
|
-
name: Schema.String;
|
|
3940
|
-
title: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3941
|
-
/**
|
|
3942
|
-
* Arguments to use for templating the prompt.
|
|
3966
|
+
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
3967
|
+
* it is up to the server how to interpret it.
|
|
3943
3968
|
*/
|
|
3944
|
-
|
|
3945
|
-
}>, typeof
|
|
3946
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3969
|
+
uri: Schema.String;
|
|
3970
|
+
}>, Schema.Struct<{}>, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/templates/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListResourceTemplatesResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
3971
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3947
3972
|
/**
|
|
3948
3973
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3949
3974
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3951,8 +3976,8 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3951
3976
|
* notifications. The receiver is not obligated to provide these
|
|
3952
3977
|
* notifications.
|
|
3953
3978
|
*/
|
|
3954
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3955
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
3979
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3980
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
3956
3981
|
/**
|
|
3957
3982
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3958
3983
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3960,12 +3985,15 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3960
3985
|
* notifications. The receiver is not obligated to provide these
|
|
3961
3986
|
* notifications.
|
|
3962
3987
|
*/
|
|
3963
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3988
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3964
3989
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3990
|
+
/**
|
|
3991
|
+
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
3992
|
+
* it is up to the server how to interpret it.
|
|
3993
|
+
*/
|
|
3994
|
+
uri: Schema.String;
|
|
3995
|
+
}>, Schema.Struct<{}>, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
3996
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
3969
3997
|
/**
|
|
3970
3998
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3971
3999
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3973,8 +4001,8 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3973
4001
|
* notifications. The receiver is not obligated to provide these
|
|
3974
4002
|
* notifications.
|
|
3975
4003
|
*/
|
|
3976
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
3977
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
4004
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4005
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
3978
4006
|
/**
|
|
3979
4007
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
3980
4008
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -3982,39 +4010,11 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Sc
|
|
|
3982
4010
|
* notifications. The receiver is not obligated to provide these
|
|
3983
4011
|
* notifications.
|
|
3984
4012
|
*/
|
|
3985
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4013
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3986
4014
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
* severe) to the client as notifications/message.
|
|
3991
|
-
*/
|
|
3992
|
-
level: Schema.Literals<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]>;
|
|
3993
|
-
}>, Schema.Struct<{}>, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"completion/complete", Schema.Struct<{
|
|
3994
|
-
readonly ref: Schema.Union<readonly [typeof PromptReference, typeof ResourceReference]>;
|
|
3995
|
-
/**
|
|
3996
|
-
* The argument's information
|
|
3997
|
-
*/
|
|
3998
|
-
readonly argument: Schema.Struct<{
|
|
3999
|
-
/**
|
|
4000
|
-
* The name of the argument
|
|
4001
|
-
*/
|
|
4002
|
-
readonly name: Schema.String;
|
|
4003
|
-
/**
|
|
4004
|
-
* The value of the argument to use for completion matching.
|
|
4005
|
-
*/
|
|
4006
|
-
readonly value: Schema.String;
|
|
4007
|
-
}>;
|
|
4008
|
-
/**
|
|
4009
|
-
* Additional, optional context for completions
|
|
4010
|
-
*/
|
|
4011
|
-
readonly context: optionalWithDefault<Schema.Struct<{
|
|
4012
|
-
/**
|
|
4013
|
-
* Previously-resolved variables in a URI template or prompt.
|
|
4014
|
-
*/
|
|
4015
|
-
readonly arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.String>>;
|
|
4016
|
-
}>>;
|
|
4017
|
-
}>, typeof CompleteResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"ping", Schema.UndefinedOr<typeof RequestMeta>, Schema.Struct<{}>, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListResourcesResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/templates/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListResourceTemplatesResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"prompts/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListPromptsResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"tools/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListToolsResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never>>;
|
|
4015
|
+
name: Schema.String;
|
|
4016
|
+
arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.Any>>;
|
|
4017
|
+
}>, typeof CallToolResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"tools/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListToolsResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never>>;
|
|
4018
4018
|
/**
|
|
4019
4019
|
* RPC group for requests that MCP clients send to the server.
|
|
4020
4020
|
*
|
|
@@ -4057,8 +4057,32 @@ export declare class ClientNotificationRpcs extends ClientNotificationRpcs_base
|
|
|
4057
4057
|
* @since 4.0.0
|
|
4058
4058
|
*/
|
|
4059
4059
|
export type ClientNotificationEncoded = NotificationEncoded<typeof ClientNotificationRpcs>;
|
|
4060
|
-
declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"
|
|
4061
|
-
|
|
4060
|
+
declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete", Schema.Struct<{
|
|
4061
|
+
readonly ref: Schema.Union<readonly [typeof PromptReference, typeof ResourceReference]>;
|
|
4062
|
+
/**
|
|
4063
|
+
* The argument's information
|
|
4064
|
+
*/
|
|
4065
|
+
readonly argument: Schema.Struct<{
|
|
4066
|
+
/**
|
|
4067
|
+
* The name of the argument
|
|
4068
|
+
*/
|
|
4069
|
+
readonly name: Schema.String;
|
|
4070
|
+
/**
|
|
4071
|
+
* The value of the argument to use for completion matching.
|
|
4072
|
+
*/
|
|
4073
|
+
readonly value: Schema.String;
|
|
4074
|
+
}>;
|
|
4075
|
+
/**
|
|
4076
|
+
* Additional, optional context for completions
|
|
4077
|
+
*/
|
|
4078
|
+
readonly context: optionalWithDefault<Schema.Struct<{
|
|
4079
|
+
/**
|
|
4080
|
+
* Previously-resolved variables in a URI template or prompt.
|
|
4081
|
+
*/
|
|
4082
|
+
readonly arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.String>>;
|
|
4083
|
+
}>>;
|
|
4084
|
+
}>, typeof CompleteResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"initialize", Schema.Struct<{
|
|
4085
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
4062
4086
|
/**
|
|
4063
4087
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4064
4088
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4066,8 +4090,8 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4066
4090
|
* notifications. The receiver is not obligated to provide these
|
|
4067
4091
|
* notifications.
|
|
4068
4092
|
*/
|
|
4069
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4070
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
4093
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4094
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
4071
4095
|
/**
|
|
4072
4096
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4073
4097
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4075,7 +4099,7 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4075
4099
|
* notifications. The receiver is not obligated to provide these
|
|
4076
4100
|
* notifications.
|
|
4077
4101
|
*/
|
|
4078
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4102
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4079
4103
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
4080
4104
|
/**
|
|
4081
4105
|
* The latest version of the Model Context Protocol that the client
|
|
@@ -4092,8 +4116,8 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4092
4116
|
* Describes the name and version of an MCP implementation.
|
|
4093
4117
|
*/
|
|
4094
4118
|
clientInfo: typeof Implementation;
|
|
4095
|
-
}>, typeof InitializeResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"
|
|
4096
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
4119
|
+
}>, typeof InitializeResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"logging/setLevel", Schema.Struct<{
|
|
4120
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
4097
4121
|
/**
|
|
4098
4122
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4099
4123
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4101,8 +4125,8 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4101
4125
|
* notifications. The receiver is not obligated to provide these
|
|
4102
4126
|
* notifications.
|
|
4103
4127
|
*/
|
|
4104
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4105
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
4128
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4129
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
4106
4130
|
/**
|
|
4107
4131
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4108
4132
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4110,15 +4134,16 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4110
4134
|
* notifications. The receiver is not obligated to provide these
|
|
4111
4135
|
* notifications.
|
|
4112
4136
|
*/
|
|
4113
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4137
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4114
4138
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
4115
4139
|
/**
|
|
4116
|
-
* The
|
|
4117
|
-
*
|
|
4140
|
+
* The level of logging that the client wants to receive from the server.
|
|
4141
|
+
* The server should send all logs at this level and higher (i.e., more
|
|
4142
|
+
* severe) to the client as notifications/message.
|
|
4118
4143
|
*/
|
|
4119
|
-
|
|
4120
|
-
}>, typeof
|
|
4121
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
4144
|
+
level: Schema.Literals<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]>;
|
|
4145
|
+
}>, Schema.Struct<{}>, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"ping", Schema.UndefinedOr<typeof RequestMeta>, Schema.Struct<{}>, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"prompts/get", Schema.Struct<{
|
|
4146
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
4122
4147
|
/**
|
|
4123
4148
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4124
4149
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4126,8 +4151,8 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4126
4151
|
* notifications. The receiver is not obligated to provide these
|
|
4127
4152
|
* notifications.
|
|
4128
4153
|
*/
|
|
4129
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4130
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
4154
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4155
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
4131
4156
|
/**
|
|
4132
4157
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4133
4158
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4135,15 +4160,19 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4135
4160
|
* notifications. The receiver is not obligated to provide these
|
|
4136
4161
|
* notifications.
|
|
4137
4162
|
*/
|
|
4138
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4163
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4139
4164
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
4140
4165
|
/**
|
|
4141
|
-
* The
|
|
4142
|
-
* it is up to the server how to interpret it.
|
|
4166
|
+
* The name of the prompt or prompt template.
|
|
4143
4167
|
*/
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4168
|
+
name: Schema.String;
|
|
4169
|
+
title: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4170
|
+
/**
|
|
4171
|
+
* Arguments to use for templating the prompt.
|
|
4172
|
+
*/
|
|
4173
|
+
arguments: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
4174
|
+
}>, typeof GetPromptResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"prompts/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListPromptsResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListResourcesResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/read", Schema.Struct<{
|
|
4175
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
4147
4176
|
/**
|
|
4148
4177
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4149
4178
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4151,8 +4180,8 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4151
4180
|
* notifications. The receiver is not obligated to provide these
|
|
4152
4181
|
* notifications.
|
|
4153
4182
|
*/
|
|
4154
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4155
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
4183
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4184
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
4156
4185
|
/**
|
|
4157
4186
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4158
4187
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4160,15 +4189,15 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4160
4189
|
* notifications. The receiver is not obligated to provide these
|
|
4161
4190
|
* notifications.
|
|
4162
4191
|
*/
|
|
4163
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4192
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4164
4193
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
4165
4194
|
/**
|
|
4166
|
-
* The URI of the resource to
|
|
4167
|
-
*
|
|
4195
|
+
* The URI of the resource to read. The URI can use any protocol; it is up
|
|
4196
|
+
* to the server how to interpret it.
|
|
4168
4197
|
*/
|
|
4169
4198
|
uri: Schema.String;
|
|
4170
|
-
}>,
|
|
4171
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
4199
|
+
}>, typeof ReadResourceResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
4200
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
4172
4201
|
/**
|
|
4173
4202
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4174
4203
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4176,8 +4205,8 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4176
4205
|
* notifications. The receiver is not obligated to provide these
|
|
4177
4206
|
* notifications.
|
|
4178
4207
|
*/
|
|
4179
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4180
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
4208
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4209
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
4181
4210
|
/**
|
|
4182
4211
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4183
4212
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4185,19 +4214,15 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4185
4214
|
* notifications. The receiver is not obligated to provide these
|
|
4186
4215
|
* notifications.
|
|
4187
4216
|
*/
|
|
4188
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4217
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4189
4218
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
4190
4219
|
/**
|
|
4191
|
-
* The
|
|
4192
|
-
|
|
4193
|
-
name: Schema.String;
|
|
4194
|
-
title: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4195
|
-
/**
|
|
4196
|
-
* Arguments to use for templating the prompt.
|
|
4220
|
+
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
4221
|
+
* it is up to the server how to interpret it.
|
|
4197
4222
|
*/
|
|
4198
|
-
|
|
4199
|
-
}>, typeof
|
|
4200
|
-
_meta: Schema.decodeTo<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
4223
|
+
uri: Schema.String;
|
|
4224
|
+
}>, Schema.Struct<{}>, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/templates/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListResourceTemplatesResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
4225
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
4201
4226
|
/**
|
|
4202
4227
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4203
4228
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4205,8 +4230,8 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4205
4230
|
* notifications. The receiver is not obligated to provide these
|
|
4206
4231
|
* notifications.
|
|
4207
4232
|
*/
|
|
4208
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4209
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
4233
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4234
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
4210
4235
|
/**
|
|
4211
4236
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4212
4237
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4214,12 +4239,15 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4214
4239
|
* notifications. The receiver is not obligated to provide these
|
|
4215
4240
|
* notifications.
|
|
4216
4241
|
*/
|
|
4217
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4242
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4218
4243
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4244
|
+
/**
|
|
4245
|
+
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
4246
|
+
* it is up to the server how to interpret it.
|
|
4247
|
+
*/
|
|
4248
|
+
uri: Schema.String;
|
|
4249
|
+
}>, Schema.Struct<{}>, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
4250
|
+
_meta: Schema.decodeTo<Schema.toType<Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
4223
4251
|
/**
|
|
4224
4252
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4225
4253
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4227,8 +4255,8 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4227
4255
|
* notifications. The receiver is not obligated to provide these
|
|
4228
4256
|
* notifications.
|
|
4229
4257
|
*/
|
|
4230
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4231
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]
|
|
4258
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4259
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
4232
4260
|
/**
|
|
4233
4261
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
4234
4262
|
* for this request (as represented by notifications/progress). The value of
|
|
@@ -4236,39 +4264,11 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"initialize", Schema.St
|
|
|
4236
4264
|
* notifications. The receiver is not obligated to provide these
|
|
4237
4265
|
* notifications.
|
|
4238
4266
|
*/
|
|
4239
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]
|
|
4267
|
+
readonly progressToken: Schema.decodeTo<Schema.toType<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
4240
4268
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>, never, never>;
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
* severe) to the client as notifications/message.
|
|
4245
|
-
*/
|
|
4246
|
-
level: Schema.Literals<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]>;
|
|
4247
|
-
}>, Schema.Struct<{}>, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"completion/complete", Schema.Struct<{
|
|
4248
|
-
readonly ref: Schema.Union<readonly [typeof PromptReference, typeof ResourceReference]>;
|
|
4249
|
-
/**
|
|
4250
|
-
* The argument's information
|
|
4251
|
-
*/
|
|
4252
|
-
readonly argument: Schema.Struct<{
|
|
4253
|
-
/**
|
|
4254
|
-
* The name of the argument
|
|
4255
|
-
*/
|
|
4256
|
-
readonly name: Schema.String;
|
|
4257
|
-
/**
|
|
4258
|
-
* The value of the argument to use for completion matching.
|
|
4259
|
-
*/
|
|
4260
|
-
readonly value: Schema.String;
|
|
4261
|
-
}>;
|
|
4262
|
-
/**
|
|
4263
|
-
* Additional, optional context for completions
|
|
4264
|
-
*/
|
|
4265
|
-
readonly context: optionalWithDefault<Schema.Struct<{
|
|
4266
|
-
/**
|
|
4267
|
-
* Previously-resolved variables in a URI template or prompt.
|
|
4268
|
-
*/
|
|
4269
|
-
readonly arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.String>>;
|
|
4270
|
-
}>>;
|
|
4271
|
-
}>, typeof CompleteResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"ping", Schema.UndefinedOr<typeof RequestMeta>, Schema.Struct<{}>, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListResourcesResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/templates/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListResourceTemplatesResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"prompts/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListPromptsResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"tools/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListToolsResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | typeof InitializedNotification | typeof CancelledNotification | typeof ProgressNotification | typeof RootsListChangedNotification>;
|
|
4269
|
+
name: Schema.String;
|
|
4270
|
+
arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.Any>>;
|
|
4271
|
+
}>, typeof CallToolResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"tools/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListToolsResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | typeof InitializedNotification | typeof CancelledNotification | typeof ProgressNotification | typeof RootsListChangedNotification>;
|
|
4272
4272
|
/**
|
|
4273
4273
|
* RPC group combining all client-to-server MCP requests and notifications.
|
|
4274
4274
|
*
|