effect 4.0.0-beta.101 → 4.0.0-beta.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +81 -5
- package/dist/Array.js.map +1 -1
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +27 -9
- package/dist/Channel.js.map +1 -1
- package/dist/Config.d.ts +1 -1
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +6 -5
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.js +7 -7
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +2 -1
- package/dist/Data.js.map +1 -1
- package/dist/Effect.d.ts +61 -100
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +66 -39
- package/dist/Effect.js.map +1 -1
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +3 -2
- package/dist/FiberHandle.js.map +1 -1
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +2 -1
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +4 -3
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +9 -11
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +3 -2
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +9 -0
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +3 -0
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +4 -3
- package/dist/Metric.js.map +1 -1
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +5 -4
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +2 -1
- package/dist/Option.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +1 -4
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Record.d.ts +93 -1
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +57 -19
- package/dist/Record.js.map +1 -1
- package/dist/References.d.ts +0 -45
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +0 -45
- package/dist/References.js.map +1 -1
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +9 -6
- package/dist/Request.js.map +1 -1
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +2 -1
- package/dist/Result.js.map +1 -1
- package/dist/Schema.d.ts +1268 -495
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +2308 -614
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +2 -2
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +189 -130
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaError.js +1 -1
- package/dist/SchemaError.js.map +1 -1
- package/dist/SchemaGetter.d.ts +13 -11
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +34 -24
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.js +1 -1
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +1 -12
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +403 -1504
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +294 -2852
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +2 -2
- package/dist/SchemaTransformation.js +3 -3
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/Semaphore.d.ts +5 -3
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js.map +1 -1
- package/dist/Stream.d.ts +15 -9
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +46 -16
- package/dist/Stream.js.map +1 -1
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +5 -4
- package/dist/Struct.js.map +1 -1
- package/dist/Types.d.ts +1 -3
- package/dist/Types.d.ts.map +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -4
- package/dist/index.js.map +1 -1
- package/dist/internal/core.js +2 -1
- package/dist/internal/core.js.map +1 -1
- package/dist/internal/effect.js +64 -21
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/matcher.js +1 -1
- package/dist/internal/matcher.js.map +1 -1
- package/dist/internal/record.d.ts +0 -3
- package/dist/internal/record.d.ts.map +1 -1
- package/dist/internal/record.js +10 -5
- package/dist/internal/record.js.map +1 -1
- package/dist/internal/references.js +0 -4
- package/dist/internal/references.js.map +1 -1
- package/dist/internal/schema/annotations.js +12 -0
- package/dist/internal/schema/annotations.js.map +1 -1
- package/dist/internal/schema/fromJsonSchemaDocument.d.ts +2 -0
- package/dist/internal/schema/fromJsonSchemaDocument.d.ts.map +1 -0
- package/dist/internal/schema/fromJsonSchemaDocument.js +743 -0
- package/dist/internal/schema/fromJsonSchemaDocument.js.map +1 -0
- package/dist/internal/schema/fromRepresentation.d.ts +2 -0
- package/dist/internal/schema/fromRepresentation.d.ts.map +1 -0
- package/dist/internal/schema/fromRepresentation.js +252 -0
- package/dist/internal/schema/fromRepresentation.js.map +1 -0
- package/dist/internal/schema/schema.js +28 -40
- package/dist/internal/schema/schema.js.map +1 -1
- package/dist/internal/schema/{arbitrary.d.ts → toArbitrary.d.ts} +1 -1
- package/dist/internal/schema/toArbitrary.d.ts.map +1 -0
- package/dist/internal/schema/{arbitrary.js → toArbitrary.js} +8 -9
- package/dist/internal/schema/toArbitrary.js.map +1 -0
- package/dist/internal/schema/toCodeDocument.d.ts +2 -0
- package/dist/internal/schema/toCodeDocument.d.ts.map +1 -0
- package/dist/internal/schema/toCodeDocument.js +438 -0
- package/dist/internal/schema/toCodeDocument.js.map +1 -0
- package/dist/internal/schema/toEquivalence.d.ts +2 -0
- package/dist/internal/schema/toEquivalence.d.ts.map +1 -0
- package/dist/internal/schema/{equivalence.js → toEquivalence.js} +15 -13
- package/dist/internal/schema/toEquivalence.js.map +1 -0
- package/dist/internal/schema/toJsonSchemaDocument.d.ts +2 -0
- package/dist/internal/schema/toJsonSchemaDocument.d.ts.map +1 -0
- package/dist/internal/schema/toJsonSchemaDocument.js +466 -0
- package/dist/internal/schema/toJsonSchemaDocument.js.map +1 -0
- package/dist/internal/schema/toRepresentation.d.ts +2 -0
- package/dist/internal/schema/toRepresentation.d.ts.map +1 -0
- package/dist/internal/schema/toRepresentation.js +369 -0
- package/dist/internal/schema/toRepresentation.js.map +1 -0
- package/dist/internal/stackTraceLimit.js +3 -6
- package/dist/internal/stackTraceLimit.js.map +1 -1
- package/dist/testing/TestClock.js +4 -1
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +26 -26
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +5 -4
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +21 -6
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js +86 -316
- package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +1 -1
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +4 -1
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +19 -17
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +197 -197
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +13 -13
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +4 -4
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +116 -49
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +32 -10
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +193 -377
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +19 -19
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +14 -14
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +4 -0
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +11 -3
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +9 -1
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +14 -10
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/ai/internal/codec-transformer.js +15 -12
- package/dist/unstable/ai/internal/codec-transformer.js.map +1 -1
- package/dist/unstable/ai/internal/structured-output.d.ts +2 -0
- package/dist/unstable/ai/internal/structured-output.d.ts.map +1 -0
- package/dist/unstable/ai/internal/structured-output.js +316 -0
- package/dist/unstable/ai/internal/structured-output.js.map +1 -0
- package/dist/unstable/cli/CliError.d.ts +40 -2
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +45 -6
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/Command.js +14 -5
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Param.js +3 -3
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts +3 -1
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.js +11 -4
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cli/internal/config.d.ts +0 -48
- package/dist/unstable/cli/internal/config.d.ts.map +1 -1
- package/dist/unstable/cli/internal/config.js +8 -10
- package/dist/unstable/cli/internal/config.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/Entity.js +1 -1
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +2 -1
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/Reply.js +1 -1
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +1 -1
- package/dist/unstable/cluster/Runner.js +1 -1
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts +1 -1
- package/dist/unstable/cluster/RunnerAddress.js +1 -1
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/ShardId.js +1 -1
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +125 -24
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +10 -2
- package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts +4 -2
- package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SingleRunner.js +2 -1
- package/dist/unstable/cluster/SingleRunner.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.d.ts +7 -4
- package/dist/unstable/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js +55 -24
- package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.js +109 -62
- package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/internal/entityManager.js +19 -7
- package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
- package/dist/unstable/cluster/internal/shardLock.d.ts +2 -0
- package/dist/unstable/cluster/internal/shardLock.d.ts.map +1 -0
- package/dist/unstable/cluster/internal/shardLock.js +4 -0
- package/dist/unstable/cluster/internal/shardLock.js.map +1 -0
- package/dist/unstable/devtools/DevToolsSchema.d.ts +20 -20
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +8 -5
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +1 -1
- package/dist/unstable/eventlog/EventJournal.js +1 -1
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +15 -11
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +4 -4
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +8 -3
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +2 -2
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +3 -3
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +24 -22
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Headers.js +8 -8
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +44 -0
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +14 -0
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +5 -4
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +17 -15
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.js +1 -1
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +17 -14
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +3 -3
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +5 -5
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +37 -24
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts +72 -1
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +69 -4
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +4 -3
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +2 -2
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +7 -3
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +5 -2
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts +4 -3
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +2 -2
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +2 -1
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +2 -2
- package/dist/unstable/persistence/RateLimiter.js +2 -2
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +2 -2
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +3 -1
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +4 -3
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +83 -0
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +31 -0
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +2 -1
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +1 -2
- package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
- package/dist/unstable/schema/VariantSchema.js +13 -10
- package/dist/unstable/schema/VariantSchema.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +1 -1
- package/dist/unstable/socket/Socket.js +1 -1
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/sql/SqlError.d.ts +2 -2
- package/dist/unstable/sql/SqlError.js +2 -2
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +7 -6
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +86 -25
- package/src/Channel.ts +32 -14
- package/src/Config.ts +6 -5
- package/src/ConfigProvider.ts +7 -7
- package/src/Data.ts +3 -2
- package/src/Effect.ts +70 -116
- package/src/FiberHandle.ts +3 -2
- package/src/Iterable.ts +2 -1
- package/src/JsonPatch.ts +4 -3
- package/src/JsonSchema.ts +9 -11
- package/src/Logger.ts +3 -2
- package/src/ManagedRuntime.ts +13 -0
- package/src/Metric.ts +4 -3
- package/src/Optic.ts +5 -4
- package/src/Option.ts +2 -1
- package/src/PartitionedSemaphore.ts +1 -4
- package/src/Record.ts +119 -22
- package/src/References.ts +0 -46
- package/src/Request.ts +5 -7
- package/src/Result.ts +2 -1
- package/src/Schema.ts +2537 -986
- package/src/SchemaAST.ts +228 -149
- package/src/SchemaError.ts +1 -1
- package/src/SchemaGetter.ts +36 -29
- package/src/SchemaIssue.ts +1 -1
- package/src/SchemaParser.ts +1 -25
- package/src/SchemaRepresentation.ts +697 -3398
- package/src/SchemaTransformation.ts +3 -3
- package/src/Semaphore.ts +5 -3
- package/src/Stream.ts +63 -19
- package/src/Struct.ts +5 -4
- package/src/Types.ts +1 -3
- package/src/index.ts +0 -5
- package/src/internal/core.ts +3 -2
- package/src/internal/effect.ts +67 -31
- package/src/internal/matcher.ts +1 -1
- package/src/internal/record.ts +11 -7
- package/src/internal/references.ts +0 -5
- package/src/internal/schema/annotations.ts +44 -0
- package/src/internal/schema/fromJsonSchemaDocument.ts +957 -0
- package/src/internal/schema/fromRepresentation.ts +345 -0
- package/src/internal/schema/schema.ts +45 -46
- package/src/internal/schema/{arbitrary.ts → toArbitrary.ts} +8 -10
- package/src/internal/schema/toCodeDocument.ts +572 -0
- package/src/internal/schema/{equivalence.ts → toEquivalence.ts} +12 -7
- package/src/internal/schema/toJsonSchemaDocument.ts +475 -0
- package/src/internal/schema/toRepresentation.ts +401 -0
- package/src/internal/stackTraceLimit.ts +3 -7
- package/src/testing/TestClock.ts +1 -1
- package/src/unstable/ai/AiError.ts +5 -4
- package/src/unstable/ai/AnthropicStructuredOutput.ts +102 -333
- package/src/unstable/ai/EmbeddingModel.ts +1 -1
- package/src/unstable/ai/LanguageModel.ts +30 -28
- package/src/unstable/ai/McpSchema.ts +15 -15
- package/src/unstable/ai/McpServer.ts +172 -56
- package/src/unstable/ai/OpenAiStructuredOutput.ts +230 -395
- package/src/unstable/ai/Response.ts +24 -24
- package/src/unstable/ai/Tool.ts +22 -4
- package/src/unstable/ai/Toolkit.ts +19 -7
- package/src/unstable/ai/internal/codec-transformer.ts +13 -7
- package/src/unstable/ai/internal/structured-output.ts +458 -0
- package/src/unstable/cli/CliError.ts +51 -5
- package/src/unstable/cli/Command.ts +4 -4
- package/src/unstable/cli/Param.ts +3 -3
- package/src/unstable/cli/Primitive.ts +1 -1
- package/src/unstable/cli/internal/command.ts +13 -5
- package/src/unstable/cli/internal/config.ts +8 -10
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +3 -3
- package/src/unstable/cluster/Entity.ts +1 -1
- package/src/unstable/cluster/Envelope.ts +2 -1
- package/src/unstable/cluster/Reply.ts +1 -1
- package/src/unstable/cluster/Runner.ts +1 -1
- package/src/unstable/cluster/RunnerAddress.ts +1 -1
- package/src/unstable/cluster/ShardId.ts +1 -1
- package/src/unstable/cluster/Sharding.ts +161 -34
- package/src/unstable/cluster/ShardingConfig.ts +5 -1
- package/src/unstable/cluster/SingleRunner.ts +4 -2
- package/src/unstable/cluster/SqlMessageStorage.ts +83 -35
- package/src/unstable/cluster/SqlRunnerStorage.ts +186 -116
- package/src/unstable/cluster/internal/entityManager.ts +31 -10
- package/src/unstable/cluster/internal/shardLock.ts +9 -0
- package/src/unstable/devtools/DevToolsSchema.ts +10 -5
- package/src/unstable/eventlog/EventJournal.ts +1 -1
- package/src/unstable/eventlog/EventLog.ts +21 -11
- package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
- package/src/unstable/eventlog/EventLogMessage.ts +10 -3
- package/src/unstable/eventlog/SqlEventJournal.ts +2 -2
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +1 -1
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +6 -3
- package/src/unstable/http/Cookies.ts +29 -24
- package/src/unstable/http/Headers.ts +8 -8
- package/src/unstable/http/HttpClientRequest.ts +57 -0
- package/src/unstable/http/HttpServerRequest.ts +5 -4
- package/src/unstable/http/Multipart.ts +16 -13
- package/src/unstable/http/Template.ts +1 -1
- package/src/unstable/http/UrlParams.ts +17 -14
- package/src/unstable/httpapi/HttpApi.ts +3 -3
- package/src/unstable/httpapi/HttpApiClient.ts +5 -5
- package/src/unstable/httpapi/HttpApiGroup.ts +1 -1
- package/src/unstable/httpapi/OpenApi.ts +52 -28
- package/src/unstable/observability/OtlpExporter.ts +109 -5
- package/src/unstable/observability/OtlpLogger.ts +5 -5
- package/src/unstable/observability/OtlpMetrics.ts +8 -4
- package/src/unstable/observability/OtlpTracer.ts +8 -4
- package/src/unstable/persistence/Persistable.ts +3 -2
- package/src/unstable/persistence/RateLimiter.ts +2 -2
- package/src/unstable/persistence/Redis.ts +2 -2
- package/src/unstable/process/ChildProcessSpawner.ts +1 -1
- package/src/unstable/reactivity/AsyncResult.ts +4 -3
- package/src/unstable/reactivity/Atom.ts +92 -0
- package/src/unstable/reactivity/AtomRegistry.ts +1 -1
- package/src/unstable/rpc/RpcClient.ts +2 -1
- package/src/unstable/schema/VariantSchema.ts +14 -24
- package/src/unstable/socket/Socket.ts +1 -1
- package/src/unstable/sql/SqlError.ts +2 -2
- package/src/unstable/sql/Statement.ts +7 -6
- package/dist/SchemaUtils.d.ts +0 -28
- package/dist/SchemaUtils.d.ts.map +0 -1
- package/dist/SchemaUtils.js +0 -45
- package/dist/SchemaUtils.js.map +0 -1
- package/dist/internal/schema/arbitrary.d.ts.map +0 -1
- package/dist/internal/schema/arbitrary.js.map +0 -1
- package/dist/internal/schema/equivalence.d.ts +0 -2
- package/dist/internal/schema/equivalence.d.ts.map +0 -1
- package/dist/internal/schema/equivalence.js.map +0 -1
- package/dist/internal/schema/representation.d.ts +0 -2
- package/dist/internal/schema/representation.d.ts.map +0 -1
- package/dist/internal/schema/representation.js +0 -865
- package/dist/internal/schema/representation.js.map +0 -1
- package/src/SchemaUtils.ts +0 -51
- package/src/internal/schema/representation.ts +0 -795
|
@@ -66,7 +66,7 @@ export declare const optional: <S extends Schema.Constraint>(schema: S) => Schem
|
|
|
66
66
|
*/
|
|
67
67
|
export declare const RequestId: Schema.Union<[
|
|
68
68
|
typeof Schema.String,
|
|
69
|
-
typeof Schema.
|
|
69
|
+
typeof Schema.Finite
|
|
70
70
|
]>;
|
|
71
71
|
/**
|
|
72
72
|
* Type represented by the JSON-RPC request identifier schema.
|
|
@@ -84,7 +84,7 @@ export type RequestId = typeof RequestId.Type;
|
|
|
84
84
|
*/
|
|
85
85
|
export declare const ProgressToken: Schema.Union<[
|
|
86
86
|
typeof Schema.String,
|
|
87
|
-
typeof Schema.
|
|
87
|
+
typeof Schema.Finite
|
|
88
88
|
]>;
|
|
89
89
|
/**
|
|
90
90
|
* Type represented by the MCP progress token schema.
|
|
@@ -102,7 +102,7 @@ declare const RequestMeta_base: Schema.Opaque<RequestMeta, Schema.Struct<{
|
|
|
102
102
|
* notifications. The receiver is not obligated to provide these
|
|
103
103
|
* notifications.
|
|
104
104
|
*/
|
|
105
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
105
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
106
106
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
107
107
|
/**
|
|
108
108
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -111,7 +111,7 @@ 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.
|
|
114
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
115
115
|
}>>, never, never>;
|
|
116
116
|
}>, {}> & Omit<Schema.Struct<{
|
|
117
117
|
readonly _meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
@@ -122,7 +122,7 @@ declare const RequestMeta_base: Schema.Opaque<RequestMeta, Schema.Struct<{
|
|
|
122
122
|
* notifications. The receiver is not obligated to provide these
|
|
123
123
|
* notifications.
|
|
124
124
|
*/
|
|
125
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
125
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
126
126
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
127
127
|
/**
|
|
128
128
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -131,7 +131,7 @@ 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.
|
|
134
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
135
135
|
}>>, never, never>;
|
|
136
136
|
}>, keyof Schema.Top>;
|
|
137
137
|
/**
|
|
@@ -226,7 +226,7 @@ declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Sch
|
|
|
226
226
|
* notifications. The receiver is not obligated to provide these
|
|
227
227
|
* notifications.
|
|
228
228
|
*/
|
|
229
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
229
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
230
230
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
231
231
|
/**
|
|
232
232
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -235,7 +235,7 @@ declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Sch
|
|
|
235
235
|
* notifications. The receiver is not obligated to provide these
|
|
236
236
|
* notifications.
|
|
237
237
|
*/
|
|
238
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
238
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
239
239
|
}>>, never, never>;
|
|
240
240
|
/**
|
|
241
241
|
* An opaque token representing the current pagination position.
|
|
@@ -251,7 +251,7 @@ declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Sch
|
|
|
251
251
|
* notifications. The receiver is not obligated to provide these
|
|
252
252
|
* notifications.
|
|
253
253
|
*/
|
|
254
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
254
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
255
255
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
256
256
|
/**
|
|
257
257
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -260,7 +260,7 @@ declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Sch
|
|
|
260
260
|
* notifications. The receiver is not obligated to provide these
|
|
261
261
|
* notifications.
|
|
262
262
|
*/
|
|
263
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
263
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
264
264
|
}>>, never, never>;
|
|
265
265
|
/**
|
|
266
266
|
* An opaque token representing the current pagination position.
|
|
@@ -350,7 +350,7 @@ declare const Annotations_base: Schema.Opaque<Annotations, Schema.Struct<{
|
|
|
350
350
|
* effectively required, while 0 means "least important," and indicates that
|
|
351
351
|
* the data is entirely optional.
|
|
352
352
|
*/
|
|
353
|
-
readonly priority: Schema.decodeTo<Schema.optional<Schema.
|
|
353
|
+
readonly priority: Schema.decodeTo<Schema.optional<Schema.Finite>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
354
354
|
}>, {}> & Omit<Schema.Struct<{
|
|
355
355
|
/**
|
|
356
356
|
* Describes who the intended customer of this object or data is.
|
|
@@ -366,7 +366,7 @@ declare const Annotations_base: Schema.Opaque<Annotations, Schema.Struct<{
|
|
|
366
366
|
* effectively required, while 0 means "least important," and indicates that
|
|
367
367
|
* the data is entirely optional.
|
|
368
368
|
*/
|
|
369
|
-
readonly priority: Schema.decodeTo<Schema.optional<Schema.
|
|
369
|
+
readonly priority: Schema.decodeTo<Schema.optional<Schema.Finite>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
370
370
|
}>, keyof Schema.Top>;
|
|
371
371
|
/**
|
|
372
372
|
* Schema for optional client-facing annotations on MCP objects.
|
|
@@ -608,7 +608,7 @@ declare const McpErrorBase_base: Schema.Class<McpErrorBase, Schema.Struct<{
|
|
|
608
608
|
/**
|
|
609
609
|
* The error type that occurred.
|
|
610
610
|
*/
|
|
611
|
-
readonly code: Schema.
|
|
611
|
+
readonly code: Schema.Int;
|
|
612
612
|
/**
|
|
613
613
|
* A short description of the error. The message SHOULD be limited to a
|
|
614
614
|
* concise single sentence.
|
|
@@ -937,7 +937,7 @@ declare const Initialize_base: Rpc.Rpc<"initialize", Schema.Struct<{
|
|
|
937
937
|
* notifications. The receiver is not obligated to provide these
|
|
938
938
|
* notifications.
|
|
939
939
|
*/
|
|
940
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
940
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
941
941
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
942
942
|
/**
|
|
943
943
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -946,7 +946,7 @@ declare const Initialize_base: Rpc.Rpc<"initialize", Schema.Struct<{
|
|
|
946
946
|
* notifications. The receiver is not obligated to provide these
|
|
947
947
|
* notifications.
|
|
948
948
|
*/
|
|
949
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
949
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
950
950
|
}>>, never, never>;
|
|
951
951
|
/**
|
|
952
952
|
* The latest version of the Model Context Protocol that the client
|
|
@@ -990,7 +990,7 @@ declare const CancelledNotification_base: Rpc.Rpc<"notifications/cancelled", Sch
|
|
|
990
990
|
* This MUST correspond to the ID of a request previously issued in the
|
|
991
991
|
* same direction.
|
|
992
992
|
*/
|
|
993
|
-
requestId: Schema.Union<[Schema.String, Schema.
|
|
993
|
+
requestId: Schema.Union<[Schema.String, Schema.Finite]>;
|
|
994
994
|
/**
|
|
995
995
|
* An optional string describing the reason for the cancellation. This MAY
|
|
996
996
|
* be logged or presented to the user.
|
|
@@ -1017,16 +1017,16 @@ declare const ProgressNotification_base: Rpc.Rpc<"notifications/progress", Schem
|
|
|
1017
1017
|
* The progress token which was given in the initial request, used to
|
|
1018
1018
|
* associate this notification with the request that is proceeding.
|
|
1019
1019
|
*/
|
|
1020
|
-
progressToken: Schema.Union<[Schema.String, Schema.
|
|
1020
|
+
progressToken: Schema.Union<[Schema.String, Schema.Finite]>;
|
|
1021
1021
|
/**
|
|
1022
1022
|
* The progress thus far. This should increase every time progress is made,
|
|
1023
1023
|
* even if the total is unknown.
|
|
1024
1024
|
*/
|
|
1025
|
-
progress: Schema.decodeTo<Schema.optional<Schema.
|
|
1025
|
+
progress: Schema.decodeTo<Schema.optional<Schema.Finite>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
1026
1026
|
/**
|
|
1027
1027
|
* Total number of items to process (or total progress required), if known.
|
|
1028
1028
|
*/
|
|
1029
|
-
total: Schema.decodeTo<Schema.optional<Schema.
|
|
1029
|
+
total: Schema.decodeTo<Schema.optional<Schema.Finite>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
1030
1030
|
/**
|
|
1031
1031
|
* An optional message describing the current progress.
|
|
1032
1032
|
*/
|
|
@@ -1074,7 +1074,7 @@ declare const Resource_base: Schema.Class<Resource, Schema.Struct<{
|
|
|
1074
1074
|
* This can be used by Hosts to display file sizes and estimate context
|
|
1075
1075
|
* window usage.
|
|
1076
1076
|
*/
|
|
1077
|
-
readonly size: Schema.decodeTo<Schema.optional<Schema.
|
|
1077
|
+
readonly size: Schema.decodeTo<Schema.optional<Schema.Int>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Optional additional metadata for the client.
|
|
1080
1080
|
*
|
|
@@ -1349,7 +1349,7 @@ declare const ReadResource_base: Rpc.Rpc<"resources/read", Schema.Struct<{
|
|
|
1349
1349
|
* notifications. The receiver is not obligated to provide these
|
|
1350
1350
|
* notifications.
|
|
1351
1351
|
*/
|
|
1352
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
1352
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1353
1353
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
1354
1354
|
/**
|
|
1355
1355
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -1358,7 +1358,7 @@ declare const ReadResource_base: Rpc.Rpc<"resources/read", Schema.Struct<{
|
|
|
1358
1358
|
* notifications. The receiver is not obligated to provide these
|
|
1359
1359
|
* notifications.
|
|
1360
1360
|
*/
|
|
1361
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
1361
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1362
1362
|
}>>, never, never>;
|
|
1363
1363
|
/**
|
|
1364
1364
|
* The URI of the resource to read. The URI can use any protocol; it is up
|
|
@@ -1400,7 +1400,7 @@ declare const Subscribe_base: Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
|
1400
1400
|
* notifications. The receiver is not obligated to provide these
|
|
1401
1401
|
* notifications.
|
|
1402
1402
|
*/
|
|
1403
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
1403
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1404
1404
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
1405
1405
|
/**
|
|
1406
1406
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -1409,7 +1409,7 @@ declare const Subscribe_base: Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
|
1409
1409
|
* notifications. The receiver is not obligated to provide these
|
|
1410
1410
|
* notifications.
|
|
1411
1411
|
*/
|
|
1412
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
1412
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1413
1413
|
}>>, never, never>;
|
|
1414
1414
|
/**
|
|
1415
1415
|
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
@@ -1435,7 +1435,7 @@ declare const Unsubscribe_base: Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
|
1435
1435
|
* notifications. The receiver is not obligated to provide these
|
|
1436
1436
|
* notifications.
|
|
1437
1437
|
*/
|
|
1438
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
1438
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1439
1439
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
1440
1440
|
/**
|
|
1441
1441
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -1444,7 +1444,7 @@ declare const Unsubscribe_base: Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
|
1444
1444
|
* notifications. The receiver is not obligated to provide these
|
|
1445
1445
|
* notifications.
|
|
1446
1446
|
*/
|
|
1447
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
1447
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1448
1448
|
}>>, never, never>;
|
|
1449
1449
|
/**
|
|
1450
1450
|
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
@@ -1711,7 +1711,7 @@ declare const ResourceLink_base: Schema.Opaque<ResourceLink, Schema.Struct<{
|
|
|
1711
1711
|
* This can be used by Hosts to display file sizes and estimate context
|
|
1712
1712
|
* window usage.
|
|
1713
1713
|
*/
|
|
1714
|
-
readonly size: Schema.decodeTo<Schema.optional<Schema.
|
|
1714
|
+
readonly size: Schema.decodeTo<Schema.optional<Schema.Int>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1715
1715
|
/**
|
|
1716
1716
|
* Optional additional metadata for the client.
|
|
1717
1717
|
*
|
|
@@ -1754,7 +1754,7 @@ declare const ResourceLink_base: Schema.Opaque<ResourceLink, Schema.Struct<{
|
|
|
1754
1754
|
* This can be used by Hosts to display file sizes and estimate context
|
|
1755
1755
|
* window usage.
|
|
1756
1756
|
*/
|
|
1757
|
-
readonly size: Schema.decodeTo<Schema.optional<Schema.
|
|
1757
|
+
readonly size: Schema.decodeTo<Schema.optional<Schema.Int>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1758
1758
|
/**
|
|
1759
1759
|
* Optional additional metadata for the client.
|
|
1760
1760
|
*
|
|
@@ -1865,7 +1865,7 @@ declare const GetPrompt_base: Rpc.Rpc<"prompts/get", Schema.Struct<{
|
|
|
1865
1865
|
* notifications. The receiver is not obligated to provide these
|
|
1866
1866
|
* notifications.
|
|
1867
1867
|
*/
|
|
1868
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
1868
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1869
1869
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
1870
1870
|
/**
|
|
1871
1871
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -1874,7 +1874,7 @@ declare const GetPrompt_base: Rpc.Rpc<"prompts/get", Schema.Struct<{
|
|
|
1874
1874
|
* notifications. The receiver is not obligated to provide these
|
|
1875
1875
|
* notifications.
|
|
1876
1876
|
*/
|
|
1877
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
1877
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
1878
1878
|
}>>, never, never>;
|
|
1879
1879
|
/**
|
|
1880
1880
|
* The name of the prompt or prompt template.
|
|
@@ -2114,7 +2114,7 @@ declare const CallTool_base: Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
|
2114
2114
|
* notifications. The receiver is not obligated to provide these
|
|
2115
2115
|
* notifications.
|
|
2116
2116
|
*/
|
|
2117
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2117
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2118
2118
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
2119
2119
|
/**
|
|
2120
2120
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2123,7 +2123,7 @@ declare const CallTool_base: Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
|
2123
2123
|
* notifications. The receiver is not obligated to provide these
|
|
2124
2124
|
* notifications.
|
|
2125
2125
|
*/
|
|
2126
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2126
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2127
2127
|
}>>, never, never>;
|
|
2128
2128
|
name: Schema.String;
|
|
2129
2129
|
arguments: Schema.$Record<Schema.String, Schema.Any>;
|
|
@@ -2197,7 +2197,7 @@ declare const SetLevel_base: Rpc.Rpc<"logging/setLevel", Schema.Struct<{
|
|
|
2197
2197
|
* notifications. The receiver is not obligated to provide these
|
|
2198
2198
|
* notifications.
|
|
2199
2199
|
*/
|
|
2200
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2200
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2201
2201
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
2202
2202
|
/**
|
|
2203
2203
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2206,7 +2206,7 @@ declare const SetLevel_base: Rpc.Rpc<"logging/setLevel", Schema.Struct<{
|
|
|
2206
2206
|
* notifications. The receiver is not obligated to provide these
|
|
2207
2207
|
* notifications.
|
|
2208
2208
|
*/
|
|
2209
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2209
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2210
2210
|
}>>, never, never>;
|
|
2211
2211
|
/**
|
|
2212
2212
|
* The level of logging that the client wants to receive from the server.
|
|
@@ -2329,19 +2329,19 @@ declare const ModelPreferences_base: Schema.Class<ModelPreferences, Schema.Struc
|
|
|
2329
2329
|
* is not important, while a value of 1 means cost is the most important
|
|
2330
2330
|
* factor.
|
|
2331
2331
|
*/
|
|
2332
|
-
readonly costPriority: Schema.decodeTo<Schema.optional<Schema.
|
|
2332
|
+
readonly costPriority: Schema.decodeTo<Schema.optional<Schema.Finite>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2333
2333
|
/**
|
|
2334
2334
|
* How much to prioritize sampling speed (latency) when selecting a model. A
|
|
2335
2335
|
* value of 0 means speed is not important, while a value of 1 means speed is
|
|
2336
2336
|
* the most important factor.
|
|
2337
2337
|
*/
|
|
2338
|
-
readonly speedPriority: Schema.decodeTo<Schema.optional<Schema.
|
|
2338
|
+
readonly speedPriority: Schema.decodeTo<Schema.optional<Schema.Finite>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2339
2339
|
/**
|
|
2340
2340
|
* How much to prioritize intelligence and capabilities when selecting a
|
|
2341
2341
|
* model. A value of 0 means intelligence is not important, while a value of 1
|
|
2342
2342
|
* means intelligence is the most important factor.
|
|
2343
2343
|
*/
|
|
2344
|
-
readonly intelligencePriority: Schema.decodeTo<Schema.optional<Schema.
|
|
2344
|
+
readonly intelligencePriority: Schema.decodeTo<Schema.optional<Schema.Finite>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2345
2345
|
}>, {}>;
|
|
2346
2346
|
/**
|
|
2347
2347
|
* Schema for the server's model selection preferences requested of the client
|
|
@@ -2410,12 +2410,12 @@ declare const CreateMessage_base: Rpc.Rpc<"sampling/createMessage", Schema.Struc
|
|
|
2410
2410
|
* caller), to be attached to the prompt. The client MAY ignore this request.
|
|
2411
2411
|
*/
|
|
2412
2412
|
includeContext: Schema.decodeTo<Schema.optional<Schema.Literals<readonly ["none", "thisServer", "allServers"]>>, Schema.optionalKey<Schema.Literals<readonly ["none", "thisServer", "allServers"]>>, never, never>;
|
|
2413
|
-
temperature: Schema.decodeTo<Schema.optional<Schema.
|
|
2413
|
+
temperature: Schema.decodeTo<Schema.optional<Schema.Finite>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2414
2414
|
/**
|
|
2415
2415
|
* The maximum number of tokens to sample, as requested by the server. The
|
|
2416
2416
|
* client MAY choose to sample fewer tokens than requested.
|
|
2417
2417
|
*/
|
|
2418
|
-
maxTokens: Schema.
|
|
2418
|
+
maxTokens: Schema.Int;
|
|
2419
2419
|
stopSequences: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
2420
2420
|
/**
|
|
2421
2421
|
* Optional metadata to pass through to the LLM provider. The format of
|
|
@@ -2495,7 +2495,7 @@ declare const CompleteResult_base: Schema.Opaque<CompleteResult, Schema.Struct<{
|
|
|
2495
2495
|
* The total number of completion options available. This can exceed the
|
|
2496
2496
|
* number of values actually sent in the response.
|
|
2497
2497
|
*/
|
|
2498
|
-
readonly total: Schema.decodeTo<Schema.optional<Schema.
|
|
2498
|
+
readonly total: Schema.decodeTo<Schema.optional<Schema.Int>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2499
2499
|
/**
|
|
2500
2500
|
* Indicates whether there are additional completion options beyond those
|
|
2501
2501
|
* provided in the current response, even if the exact total is unknown.
|
|
@@ -2512,7 +2512,7 @@ declare const CompleteResult_base: Schema.Opaque<CompleteResult, Schema.Struct<{
|
|
|
2512
2512
|
* The total number of completion options available. This can exceed the
|
|
2513
2513
|
* number of values actually sent in the response.
|
|
2514
2514
|
*/
|
|
2515
|
-
readonly total: Schema.decodeTo<Schema.optional<Schema.
|
|
2515
|
+
readonly total: Schema.decodeTo<Schema.optional<Schema.Int>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2516
2516
|
/**
|
|
2517
2517
|
* Indicates whether there are additional completion options beyond those
|
|
2518
2518
|
* provided in the current response, even if the exact total is unknown.
|
|
@@ -2828,31 +2828,7 @@ export type FailureEncoded<Group extends RpcGroup.Any> = RpcGroup.Rpcs<Group> ex
|
|
|
2828
2828
|
readonly id: string | number;
|
|
2829
2829
|
readonly error: _Error["Encoded"];
|
|
2830
2830
|
} : never : never;
|
|
2831
|
-
declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"
|
|
2832
|
-
readonly ref: Schema.Union<readonly [typeof PromptReference, typeof ResourceReference]>;
|
|
2833
|
-
/**
|
|
2834
|
-
* The argument's information
|
|
2835
|
-
*/
|
|
2836
|
-
readonly argument: Schema.Struct<{
|
|
2837
|
-
/**
|
|
2838
|
-
* The name of the argument
|
|
2839
|
-
*/
|
|
2840
|
-
readonly name: Schema.String;
|
|
2841
|
-
/**
|
|
2842
|
-
* The value of the argument to use for completion matching.
|
|
2843
|
-
*/
|
|
2844
|
-
readonly value: Schema.String;
|
|
2845
|
-
}>;
|
|
2846
|
-
/**
|
|
2847
|
-
* Additional, optional context for completions
|
|
2848
|
-
*/
|
|
2849
|
-
readonly context: optionalWithDefault<Schema.Struct<{
|
|
2850
|
-
/**
|
|
2851
|
-
* Previously-resolved variables in a URI template or prompt.
|
|
2852
|
-
*/
|
|
2853
|
-
readonly arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.String>>;
|
|
2854
|
-
}>>;
|
|
2855
|
-
}>, 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<{
|
|
2831
|
+
declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<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<"logging/setLevel", Schema.Struct<{
|
|
2856
2832
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2857
2833
|
/**
|
|
2858
2834
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2861,7 +2837,7 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
2861
2837
|
* notifications. The receiver is not obligated to provide these
|
|
2862
2838
|
* notifications.
|
|
2863
2839
|
*/
|
|
2864
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2840
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2865
2841
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
2866
2842
|
/**
|
|
2867
2843
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2870,24 +2846,15 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
2870
2846
|
* notifications. The receiver is not obligated to provide these
|
|
2871
2847
|
* notifications.
|
|
2872
2848
|
*/
|
|
2873
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2849
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2874
2850
|
}>>, never, never>;
|
|
2875
2851
|
/**
|
|
2876
|
-
* The
|
|
2877
|
-
*
|
|
2878
|
-
|
|
2879
|
-
protocolVersion: Schema.String;
|
|
2880
|
-
/**
|
|
2881
|
-
* Capabilities a client may support. Known capabilities are defined here,
|
|
2882
|
-
* in this schema, but this is not a closed set: any client can define its
|
|
2883
|
-
* own, additional capabilities.
|
|
2884
|
-
*/
|
|
2885
|
-
capabilities: typeof ClientCapabilities;
|
|
2886
|
-
/**
|
|
2887
|
-
* Describes the name and version of an MCP implementation.
|
|
2852
|
+
* The level of logging that the client wants to receive from the server.
|
|
2853
|
+
* The server should send all logs at this level and higher (i.e., more
|
|
2854
|
+
* severe) to the client as notifications/message.
|
|
2888
2855
|
*/
|
|
2889
|
-
|
|
2890
|
-
}>,
|
|
2856
|
+
level: Schema.Literals<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]>;
|
|
2857
|
+
}>, Schema.Void, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
2891
2858
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2892
2859
|
/**
|
|
2893
2860
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2896,7 +2863,7 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
2896
2863
|
* notifications. The receiver is not obligated to provide these
|
|
2897
2864
|
* notifications.
|
|
2898
2865
|
*/
|
|
2899
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2866
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2900
2867
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
2901
2868
|
/**
|
|
2902
2869
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2905,15 +2872,14 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
2905
2872
|
* notifications. The receiver is not obligated to provide these
|
|
2906
2873
|
* notifications.
|
|
2907
2874
|
*/
|
|
2908
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2875
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2909
2876
|
}>>, never, never>;
|
|
2910
2877
|
/**
|
|
2911
|
-
* The
|
|
2912
|
-
*
|
|
2913
|
-
* severe) to the client as notifications/message.
|
|
2878
|
+
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
2879
|
+
* it is up to the server how to interpret it.
|
|
2914
2880
|
*/
|
|
2915
|
-
|
|
2916
|
-
}>, Schema.Void, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"
|
|
2881
|
+
uri: Schema.String;
|
|
2882
|
+
}>, Schema.Void, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
2917
2883
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2918
2884
|
/**
|
|
2919
2885
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2922,7 +2888,7 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
2922
2888
|
* notifications. The receiver is not obligated to provide these
|
|
2923
2889
|
* notifications.
|
|
2924
2890
|
*/
|
|
2925
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2891
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2926
2892
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
2927
2893
|
/**
|
|
2928
2894
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2931,18 +2897,14 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
2931
2897
|
* notifications. The receiver is not obligated to provide these
|
|
2932
2898
|
* notifications.
|
|
2933
2899
|
*/
|
|
2934
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2900
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2935
2901
|
}>>, never, never>;
|
|
2936
2902
|
/**
|
|
2937
|
-
* The
|
|
2938
|
-
|
|
2939
|
-
name: Schema.String;
|
|
2940
|
-
title: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2941
|
-
/**
|
|
2942
|
-
* Arguments to use for templating the prompt.
|
|
2903
|
+
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
2904
|
+
* it is up to the server how to interpret it.
|
|
2943
2905
|
*/
|
|
2944
|
-
|
|
2945
|
-
}>,
|
|
2906
|
+
uri: Schema.String;
|
|
2907
|
+
}>, Schema.Void, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"initialize", Schema.Struct<{
|
|
2946
2908
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2947
2909
|
/**
|
|
2948
2910
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2951,7 +2913,7 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
2951
2913
|
* notifications. The receiver is not obligated to provide these
|
|
2952
2914
|
* notifications.
|
|
2953
2915
|
*/
|
|
2954
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2916
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2955
2917
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
2956
2918
|
/**
|
|
2957
2919
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2960,14 +2922,24 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
2960
2922
|
* notifications. The receiver is not obligated to provide these
|
|
2961
2923
|
* notifications.
|
|
2962
2924
|
*/
|
|
2963
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2925
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2964
2926
|
}>>, never, never>;
|
|
2965
2927
|
/**
|
|
2966
|
-
* The
|
|
2967
|
-
*
|
|
2928
|
+
* The latest version of the Model Context Protocol that the client
|
|
2929
|
+
* supports. The client MAY decide to support older versions as well.
|
|
2968
2930
|
*/
|
|
2969
|
-
|
|
2970
|
-
|
|
2931
|
+
protocolVersion: Schema.String;
|
|
2932
|
+
/**
|
|
2933
|
+
* Capabilities a client may support. Known capabilities are defined here,
|
|
2934
|
+
* in this schema, but this is not a closed set: any client can define its
|
|
2935
|
+
* own, additional capabilities.
|
|
2936
|
+
*/
|
|
2937
|
+
capabilities: typeof ClientCapabilities;
|
|
2938
|
+
/**
|
|
2939
|
+
* Describes the name and version of an MCP implementation.
|
|
2940
|
+
*/
|
|
2941
|
+
clientInfo: typeof Implementation;
|
|
2942
|
+
}>, typeof InitializeResult, 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<"resources/read", Schema.Struct<{
|
|
2971
2943
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2972
2944
|
/**
|
|
2973
2945
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2976,7 +2948,7 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
2976
2948
|
* notifications. The receiver is not obligated to provide these
|
|
2977
2949
|
* notifications.
|
|
2978
2950
|
*/
|
|
2979
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2951
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2980
2952
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
2981
2953
|
/**
|
|
2982
2954
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2985,14 +2957,14 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
2985
2957
|
* notifications. The receiver is not obligated to provide these
|
|
2986
2958
|
* notifications.
|
|
2987
2959
|
*/
|
|
2988
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2960
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
2989
2961
|
}>>, never, never>;
|
|
2990
2962
|
/**
|
|
2991
|
-
* The URI of the resource to
|
|
2992
|
-
*
|
|
2963
|
+
* The URI of the resource to read. The URI can use any protocol; it is up
|
|
2964
|
+
* to the server how to interpret it.
|
|
2993
2965
|
*/
|
|
2994
2966
|
uri: Schema.String;
|
|
2995
|
-
}>,
|
|
2967
|
+
}>, typeof ReadResourceResult, 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<"prompts/get", Schema.Struct<{
|
|
2996
2968
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2997
2969
|
/**
|
|
2998
2970
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3001,7 +2973,7 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
3001
2973
|
* notifications. The receiver is not obligated to provide these
|
|
3002
2974
|
* notifications.
|
|
3003
2975
|
*/
|
|
3004
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2976
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3005
2977
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
3006
2978
|
/**
|
|
3007
2979
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3010,14 +2982,18 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
3010
2982
|
* notifications. The receiver is not obligated to provide these
|
|
3011
2983
|
* notifications.
|
|
3012
2984
|
*/
|
|
3013
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
2985
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3014
2986
|
}>>, never, never>;
|
|
3015
2987
|
/**
|
|
3016
|
-
* The
|
|
3017
|
-
* it is up to the server how to interpret it.
|
|
2988
|
+
* The name of the prompt or prompt template.
|
|
3018
2989
|
*/
|
|
3019
|
-
|
|
3020
|
-
|
|
2990
|
+
name: Schema.String;
|
|
2991
|
+
title: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2992
|
+
/**
|
|
2993
|
+
* Arguments to use for templating the prompt.
|
|
2994
|
+
*/
|
|
2995
|
+
arguments: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.String>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
2996
|
+
}>, typeof GetPromptResult, 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> | Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
3021
2997
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3022
2998
|
/**
|
|
3023
2999
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3026,7 +3002,7 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
3026
3002
|
* notifications. The receiver is not obligated to provide these
|
|
3027
3003
|
* notifications.
|
|
3028
3004
|
*/
|
|
3029
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3005
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3030
3006
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
3031
3007
|
/**
|
|
3032
3008
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3035,11 +3011,35 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/comp
|
|
|
3035
3011
|
* notifications. The receiver is not obligated to provide these
|
|
3036
3012
|
* notifications.
|
|
3037
3013
|
*/
|
|
3038
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3014
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3039
3015
|
}>>, never, never>;
|
|
3040
3016
|
name: Schema.String;
|
|
3041
3017
|
arguments: Schema.$Record<Schema.String, Schema.Any>;
|
|
3042
|
-
}>, typeof CallToolResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"
|
|
3018
|
+
}>, typeof CallToolResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"completion/complete", Schema.Struct<{
|
|
3019
|
+
readonly ref: Schema.Union<readonly [typeof PromptReference, typeof ResourceReference]>;
|
|
3020
|
+
/**
|
|
3021
|
+
* The argument's information
|
|
3022
|
+
*/
|
|
3023
|
+
readonly argument: Schema.Struct<{
|
|
3024
|
+
/**
|
|
3025
|
+
* The name of the argument
|
|
3026
|
+
*/
|
|
3027
|
+
readonly name: Schema.String;
|
|
3028
|
+
/**
|
|
3029
|
+
* The value of the argument to use for completion matching.
|
|
3030
|
+
*/
|
|
3031
|
+
readonly value: Schema.String;
|
|
3032
|
+
}>;
|
|
3033
|
+
/**
|
|
3034
|
+
* Additional, optional context for completions
|
|
3035
|
+
*/
|
|
3036
|
+
readonly context: optionalWithDefault<Schema.Struct<{
|
|
3037
|
+
/**
|
|
3038
|
+
* Previously-resolved variables in a URI template or prompt.
|
|
3039
|
+
*/
|
|
3040
|
+
readonly arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.String>>;
|
|
3041
|
+
}>>;
|
|
3042
|
+
}>, typeof CompleteResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never>>;
|
|
3043
3043
|
/**
|
|
3044
3044
|
* RPC group for requests that MCP clients send to the server.
|
|
3045
3045
|
*
|
|
@@ -3078,31 +3078,7 @@ export declare class ClientNotificationRpcs extends ClientNotificationRpcs_base
|
|
|
3078
3078
|
* @since 4.0.0
|
|
3079
3079
|
*/
|
|
3080
3080
|
export type ClientNotificationEncoded = NotificationEncoded<typeof ClientNotificationRpcs>;
|
|
3081
|
-
declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"
|
|
3082
|
-
readonly ref: Schema.Union<readonly [typeof PromptReference, typeof ResourceReference]>;
|
|
3083
|
-
/**
|
|
3084
|
-
* The argument's information
|
|
3085
|
-
*/
|
|
3086
|
-
readonly argument: Schema.Struct<{
|
|
3087
|
-
/**
|
|
3088
|
-
* The name of the argument
|
|
3089
|
-
*/
|
|
3090
|
-
readonly name: Schema.String;
|
|
3091
|
-
/**
|
|
3092
|
-
* The value of the argument to use for completion matching.
|
|
3093
|
-
*/
|
|
3094
|
-
readonly value: Schema.String;
|
|
3095
|
-
}>;
|
|
3096
|
-
/**
|
|
3097
|
-
* Additional, optional context for completions
|
|
3098
|
-
*/
|
|
3099
|
-
readonly context: optionalWithDefault<Schema.Struct<{
|
|
3100
|
-
/**
|
|
3101
|
-
* Previously-resolved variables in a URI template or prompt.
|
|
3102
|
-
*/
|
|
3103
|
-
readonly arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.String>>;
|
|
3104
|
-
}>>;
|
|
3105
|
-
}>, 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<{
|
|
3081
|
+
declare const ClientRpcs_base: RpcGroup.RpcGroup<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<"logging/setLevel", Schema.Struct<{
|
|
3106
3082
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3107
3083
|
/**
|
|
3108
3084
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3111,7 +3087,7 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3111
3087
|
* notifications. The receiver is not obligated to provide these
|
|
3112
3088
|
* notifications.
|
|
3113
3089
|
*/
|
|
3114
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3090
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3115
3091
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
3116
3092
|
/**
|
|
3117
3093
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3120,24 +3096,15 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3120
3096
|
* notifications. The receiver is not obligated to provide these
|
|
3121
3097
|
* notifications.
|
|
3122
3098
|
*/
|
|
3123
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3099
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3124
3100
|
}>>, never, never>;
|
|
3125
3101
|
/**
|
|
3126
|
-
* The
|
|
3127
|
-
*
|
|
3128
|
-
|
|
3129
|
-
protocolVersion: Schema.String;
|
|
3130
|
-
/**
|
|
3131
|
-
* Capabilities a client may support. Known capabilities are defined here,
|
|
3132
|
-
* in this schema, but this is not a closed set: any client can define its
|
|
3133
|
-
* own, additional capabilities.
|
|
3134
|
-
*/
|
|
3135
|
-
capabilities: typeof ClientCapabilities;
|
|
3136
|
-
/**
|
|
3137
|
-
* Describes the name and version of an MCP implementation.
|
|
3102
|
+
* The level of logging that the client wants to receive from the server.
|
|
3103
|
+
* The server should send all logs at this level and higher (i.e., more
|
|
3104
|
+
* severe) to the client as notifications/message.
|
|
3138
3105
|
*/
|
|
3139
|
-
|
|
3140
|
-
}>,
|
|
3106
|
+
level: Schema.Literals<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]>;
|
|
3107
|
+
}>, Schema.Void, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
3141
3108
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3142
3109
|
/**
|
|
3143
3110
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3146,7 +3113,7 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3146
3113
|
* notifications. The receiver is not obligated to provide these
|
|
3147
3114
|
* notifications.
|
|
3148
3115
|
*/
|
|
3149
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3116
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3150
3117
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
3151
3118
|
/**
|
|
3152
3119
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3155,15 +3122,14 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3155
3122
|
* notifications. The receiver is not obligated to provide these
|
|
3156
3123
|
* notifications.
|
|
3157
3124
|
*/
|
|
3158
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3125
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3159
3126
|
}>>, never, never>;
|
|
3160
3127
|
/**
|
|
3161
|
-
* The
|
|
3162
|
-
*
|
|
3163
|
-
* severe) to the client as notifications/message.
|
|
3128
|
+
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
3129
|
+
* it is up to the server how to interpret it.
|
|
3164
3130
|
*/
|
|
3165
|
-
|
|
3166
|
-
}>, Schema.Void, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"
|
|
3131
|
+
uri: Schema.String;
|
|
3132
|
+
}>, Schema.Void, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
3167
3133
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3168
3134
|
/**
|
|
3169
3135
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3172,7 +3138,7 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3172
3138
|
* notifications. The receiver is not obligated to provide these
|
|
3173
3139
|
* notifications.
|
|
3174
3140
|
*/
|
|
3175
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3141
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3176
3142
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
3177
3143
|
/**
|
|
3178
3144
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3181,18 +3147,14 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3181
3147
|
* notifications. The receiver is not obligated to provide these
|
|
3182
3148
|
* notifications.
|
|
3183
3149
|
*/
|
|
3184
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3150
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3185
3151
|
}>>, never, never>;
|
|
3186
3152
|
/**
|
|
3187
|
-
* The
|
|
3188
|
-
|
|
3189
|
-
name: Schema.String;
|
|
3190
|
-
title: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3191
|
-
/**
|
|
3192
|
-
* Arguments to use for templating the prompt.
|
|
3153
|
+
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
3154
|
+
* it is up to the server how to interpret it.
|
|
3193
3155
|
*/
|
|
3194
|
-
|
|
3195
|
-
}>,
|
|
3156
|
+
uri: Schema.String;
|
|
3157
|
+
}>, Schema.Void, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"initialize", Schema.Struct<{
|
|
3196
3158
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3197
3159
|
/**
|
|
3198
3160
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3201,7 +3163,7 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3201
3163
|
* notifications. The receiver is not obligated to provide these
|
|
3202
3164
|
* notifications.
|
|
3203
3165
|
*/
|
|
3204
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3166
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3205
3167
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
3206
3168
|
/**
|
|
3207
3169
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3210,14 +3172,24 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3210
3172
|
* notifications. The receiver is not obligated to provide these
|
|
3211
3173
|
* notifications.
|
|
3212
3174
|
*/
|
|
3213
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3175
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3214
3176
|
}>>, never, never>;
|
|
3215
3177
|
/**
|
|
3216
|
-
* The
|
|
3217
|
-
*
|
|
3178
|
+
* The latest version of the Model Context Protocol that the client
|
|
3179
|
+
* supports. The client MAY decide to support older versions as well.
|
|
3218
3180
|
*/
|
|
3219
|
-
|
|
3220
|
-
|
|
3181
|
+
protocolVersion: Schema.String;
|
|
3182
|
+
/**
|
|
3183
|
+
* Capabilities a client may support. Known capabilities are defined here,
|
|
3184
|
+
* in this schema, but this is not a closed set: any client can define its
|
|
3185
|
+
* own, additional capabilities.
|
|
3186
|
+
*/
|
|
3187
|
+
capabilities: typeof ClientCapabilities;
|
|
3188
|
+
/**
|
|
3189
|
+
* Describes the name and version of an MCP implementation.
|
|
3190
|
+
*/
|
|
3191
|
+
clientInfo: typeof Implementation;
|
|
3192
|
+
}>, typeof InitializeResult, 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<"resources/read", Schema.Struct<{
|
|
3221
3193
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3222
3194
|
/**
|
|
3223
3195
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3226,7 +3198,7 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3226
3198
|
* notifications. The receiver is not obligated to provide these
|
|
3227
3199
|
* notifications.
|
|
3228
3200
|
*/
|
|
3229
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3201
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3230
3202
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
3231
3203
|
/**
|
|
3232
3204
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3235,14 +3207,14 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3235
3207
|
* notifications. The receiver is not obligated to provide these
|
|
3236
3208
|
* notifications.
|
|
3237
3209
|
*/
|
|
3238
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3210
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3239
3211
|
}>>, never, never>;
|
|
3240
3212
|
/**
|
|
3241
|
-
* The URI of the resource to
|
|
3242
|
-
*
|
|
3213
|
+
* The URI of the resource to read. The URI can use any protocol; it is up
|
|
3214
|
+
* to the server how to interpret it.
|
|
3243
3215
|
*/
|
|
3244
3216
|
uri: Schema.String;
|
|
3245
|
-
}>,
|
|
3217
|
+
}>, typeof ReadResourceResult, 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<"prompts/get", Schema.Struct<{
|
|
3246
3218
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3247
3219
|
/**
|
|
3248
3220
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3251,7 +3223,7 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3251
3223
|
* notifications. The receiver is not obligated to provide these
|
|
3252
3224
|
* notifications.
|
|
3253
3225
|
*/
|
|
3254
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3226
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3255
3227
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
3256
3228
|
/**
|
|
3257
3229
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3260,14 +3232,18 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3260
3232
|
* notifications. The receiver is not obligated to provide these
|
|
3261
3233
|
* notifications.
|
|
3262
3234
|
*/
|
|
3263
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3235
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3264
3236
|
}>>, never, never>;
|
|
3265
3237
|
/**
|
|
3266
|
-
* The
|
|
3267
|
-
* it is up to the server how to interpret it.
|
|
3238
|
+
* The name of the prompt or prompt template.
|
|
3268
3239
|
*/
|
|
3269
|
-
|
|
3270
|
-
|
|
3240
|
+
name: Schema.String;
|
|
3241
|
+
title: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3242
|
+
/**
|
|
3243
|
+
* Arguments to use for templating the prompt.
|
|
3244
|
+
*/
|
|
3245
|
+
arguments: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.String>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
3246
|
+
}>, typeof GetPromptResult, 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> | Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
3271
3247
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3272
3248
|
/**
|
|
3273
3249
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3276,7 +3252,7 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3276
3252
|
* notifications. The receiver is not obligated to provide these
|
|
3277
3253
|
* notifications.
|
|
3278
3254
|
*/
|
|
3279
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3255
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3280
3256
|
}>>, Schema.optionalKey<Schema.Struct<{
|
|
3281
3257
|
/**
|
|
3282
3258
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3285,11 +3261,35 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"completion/complete",
|
|
|
3285
3261
|
* notifications. The receiver is not obligated to provide these
|
|
3286
3262
|
* notifications.
|
|
3287
3263
|
*/
|
|
3288
|
-
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.
|
|
3264
|
+
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Finite]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Finite]>>, never, never>;
|
|
3289
3265
|
}>>, never, never>;
|
|
3290
3266
|
name: Schema.String;
|
|
3291
3267
|
arguments: Schema.$Record<Schema.String, Schema.Any>;
|
|
3292
|
-
}>, typeof CallToolResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"
|
|
3268
|
+
}>, typeof CallToolResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"completion/complete", Schema.Struct<{
|
|
3269
|
+
readonly ref: Schema.Union<readonly [typeof PromptReference, typeof ResourceReference]>;
|
|
3270
|
+
/**
|
|
3271
|
+
* The argument's information
|
|
3272
|
+
*/
|
|
3273
|
+
readonly argument: Schema.Struct<{
|
|
3274
|
+
/**
|
|
3275
|
+
* The name of the argument
|
|
3276
|
+
*/
|
|
3277
|
+
readonly name: Schema.String;
|
|
3278
|
+
/**
|
|
3279
|
+
* The value of the argument to use for completion matching.
|
|
3280
|
+
*/
|
|
3281
|
+
readonly value: Schema.String;
|
|
3282
|
+
}>;
|
|
3283
|
+
/**
|
|
3284
|
+
* Additional, optional context for completions
|
|
3285
|
+
*/
|
|
3286
|
+
readonly context: optionalWithDefault<Schema.Struct<{
|
|
3287
|
+
/**
|
|
3288
|
+
* Previously-resolved variables in a URI template or prompt.
|
|
3289
|
+
*/
|
|
3290
|
+
readonly arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.String>>;
|
|
3291
|
+
}>>;
|
|
3292
|
+
}>, typeof CompleteResult, 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>;
|
|
3293
3293
|
/**
|
|
3294
3294
|
* RPC group combining all client-to-server MCP requests and notifications.
|
|
3295
3295
|
*
|