effect 4.0.0-beta.94 → 4.0.0-beta.97
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/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Channel.d.ts.map +1 -1
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +44 -6
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +63 -24
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts.map +1 -1
- package/dist/Context.d.ts.map +1 -1
- package/dist/Cron.d.ts +4 -1
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +98 -53
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Data.d.ts.map +1 -1
- package/dist/DateTime.d.ts +12 -12
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ExecutionPlan.d.ts +2 -2
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/FiberHandle.d.ts +8 -8
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberMap.d.ts +8 -8
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberSet.d.ts +4 -4
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Function.d.ts.map +1 -1
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js.map +1 -1
- package/dist/Hash.d.ts.map +1 -1
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Layer.d.ts.map +1 -1
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerRef.d.ts +1 -1
- package/dist/LayerRef.d.ts.map +1 -1
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/Logger.d.ts.map +1 -1
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/Metric.d.ts.map +1 -1
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/Number.d.ts.map +1 -1
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Option.d.ts.map +1 -1
- package/dist/Order.d.ts.map +1 -1
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/Pool.d.ts.map +1 -1
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Random.d.ts.map +1 -1
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/Record.d.ts.map +1 -1
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Ref.d.ts.map +1 -1
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/Request.d.ts +1 -1
- package/dist/Request.d.ts.map +1 -1
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Result.d.ts.map +1 -1
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Schedule.d.ts +1206 -4013
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +244 -1348
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +49 -0
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +40 -0
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaRepresentation.d.ts +106 -106
- package/dist/SchemaTransformation.d.ts +38 -2
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +38 -2
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stream.d.ts +2 -2
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +1 -1
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts.map +1 -1
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/Take.d.ts.map +1 -1
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/Types.d.ts +1 -1
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/Utils.d.ts.map +1 -1
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/schema/schema.d.ts.map +1 -1
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +1 -1
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +1 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +221 -221
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Completions.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/ansi.d.ts.map +1 -1
- package/dist/unstable/cli/internal/ansi.js.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/help.d.ts.map +1 -1
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js +1 -1
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterError.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityId.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityType.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/MachineId.d.ts.map +1 -1
- package/dist/unstable/cluster/Message.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +25 -29
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +8 -8
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +3 -4
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +6 -8
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/Singleton.d.ts.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +1 -1
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/internal/entityManager.js +11 -12
- package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
- package/dist/unstable/devtools/DevTools.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts.map +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 +2 -2
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +21 -21
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -4
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +1 -1
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts +1 -1
- package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +1 -1
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +2 -2
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +2 -1
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +22 -22
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +1 -1
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +3 -1
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/internal/otlpEnv.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.d.ts +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +2 -2
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +28 -37
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts +2 -1
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +5 -5
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.d.ts +7 -7
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js +2 -2
- package/dist/unstable/rpc/RpcMessage.js.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +8 -8
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +2 -2
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +5 -5
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
- package/dist/unstable/rpc/Utils.d.ts.map +1 -1
- package/dist/unstable/schema/Model.d.ts +24 -38
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +1 -1
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/SocketServer.d.ts.map +1 -1
- package/dist/unstable/sql/Migrator.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.d.ts +2 -2
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
- package/dist/unstable/sql/SqlStream.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts.map +1 -1
- package/dist/unstable/workflow/Activity.d.ts +1 -1
- package/dist/unstable/workflow/Activity.d.ts.map +1 -1
- package/dist/unstable/workflow/Activity.js +1 -1
- package/dist/unstable/workflow/Activity.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +1 -1
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts.map +1 -1
- package/package.json +11 -12
- package/src/ConfigProvider.ts +79 -27
- package/src/Cron.ts +109 -57
- package/src/Schedule.ts +1437 -4445
- package/src/Schema.ts +53 -0
- package/src/SchemaTransformation.ts +42 -2
- package/src/Stream.ts +1 -1
- package/src/unstable/cluster/ClusterCron.ts +4 -3
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +4 -3
- package/src/unstable/cluster/Sharding.ts +4 -4
- package/src/unstable/cluster/Snowflake.ts +2 -2
- package/src/unstable/cluster/internal/entityManager.ts +16 -16
- package/src/unstable/eventlog/EventLog.ts +4 -3
- package/src/unstable/observability/OtlpExporter.ts +1 -1
- package/src/unstable/reactivity/AtomRegistry.ts +35 -44
- package/src/unstable/rpc/RpcClient.ts +10 -9
- package/src/unstable/rpc/RpcMessage.ts +8 -9
- package/src/unstable/rpc/RpcSerialization.ts +16 -16
- package/src/unstable/rpc/RpcServer.ts +5 -5
- package/src/unstable/workflow/Activity.ts +6 -5
- package/src/unstable/workflow/DurableQueue.ts +4 -3
- package/src/unstable/workflow/WorkflowEngine.ts +4 -3
|
@@ -218,11 +218,6 @@ export declare const Cursor: typeof Schema.String;
|
|
|
218
218
|
*/
|
|
219
219
|
export type Cursor = typeof Cursor.Type;
|
|
220
220
|
declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Schema.Struct<{
|
|
221
|
-
/**
|
|
222
|
-
* An opaque token representing the current pagination position.
|
|
223
|
-
* If provided, the server should return results starting after this cursor.
|
|
224
|
-
*/
|
|
225
|
-
readonly cursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
226
221
|
readonly _meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
227
222
|
/**
|
|
228
223
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -242,12 +237,12 @@ declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Sch
|
|
|
242
237
|
*/
|
|
243
238
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
244
239
|
}>>, never, never>;
|
|
245
|
-
}>, {}> & Omit<Schema.Struct<{
|
|
246
240
|
/**
|
|
247
241
|
* An opaque token representing the current pagination position.
|
|
248
242
|
* If provided, the server should return results starting after this cursor.
|
|
249
243
|
*/
|
|
250
244
|
readonly cursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
245
|
+
}>, {}> & Omit<Schema.Struct<{
|
|
251
246
|
readonly _meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
252
247
|
/**
|
|
253
248
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -267,6 +262,11 @@ declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Sch
|
|
|
267
262
|
*/
|
|
268
263
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
269
264
|
}>>, never, never>;
|
|
265
|
+
/**
|
|
266
|
+
* An opaque token representing the current pagination position.
|
|
267
|
+
* If provided, the server should return results starting after this cursor.
|
|
268
|
+
*/
|
|
269
|
+
readonly cursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
270
270
|
}>, keyof Schema.Top>;
|
|
271
271
|
/**
|
|
272
272
|
* Schema for MCP request metadata used by paginated requests.
|
|
@@ -282,27 +282,27 @@ declare const PaginatedRequestMeta_base: Schema.Opaque<PaginatedRequestMeta, Sch
|
|
|
282
282
|
export declare class PaginatedRequestMeta extends PaginatedRequestMeta_base {
|
|
283
283
|
}
|
|
284
284
|
declare const PaginatedResultMeta_base: Schema.Opaque<PaginatedResultMeta, Schema.Struct<{
|
|
285
|
-
/**
|
|
286
|
-
* An opaque token representing the pagination position after the last returned result.
|
|
287
|
-
* If present, there may be more results available.
|
|
288
|
-
*/
|
|
289
|
-
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
290
285
|
/**
|
|
291
286
|
* This result property is reserved by the protocol to allow clients and
|
|
292
287
|
* servers to attach additional metadata to their responses.
|
|
293
288
|
*/
|
|
294
289
|
readonly _meta: Schema.decodeTo<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>;
|
|
295
|
-
}>, {}> & Omit<Schema.Struct<{
|
|
296
290
|
/**
|
|
297
291
|
* An opaque token representing the pagination position after the last returned result.
|
|
298
292
|
* If present, there may be more results available.
|
|
299
293
|
*/
|
|
300
294
|
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
295
|
+
}>, {}> & Omit<Schema.Struct<{
|
|
301
296
|
/**
|
|
302
297
|
* This result property is reserved by the protocol to allow clients and
|
|
303
298
|
* servers to attach additional metadata to their responses.
|
|
304
299
|
*/
|
|
305
300
|
readonly _meta: Schema.decodeTo<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>;
|
|
301
|
+
/**
|
|
302
|
+
* An opaque token representing the pagination position after the last returned result.
|
|
303
|
+
* If present, there may be more results available.
|
|
304
|
+
*/
|
|
305
|
+
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
306
306
|
}>, keyof Schema.Top>;
|
|
307
307
|
/**
|
|
308
308
|
* Schema for MCP result metadata returned by paginated operations.
|
|
@@ -695,8 +695,6 @@ export declare const INTERNAL_ERROR_CODE: -32603;
|
|
|
695
695
|
*/
|
|
696
696
|
export declare const PARSE_ERROR_CODE: -32700;
|
|
697
697
|
declare const ParseError_base: Schema.Class<ParseError, Schema.Struct<{
|
|
698
|
-
readonly _tag: Schema.tag<"ParseError">;
|
|
699
|
-
readonly code: Schema.tag<-32700>;
|
|
700
698
|
/**
|
|
701
699
|
* A short description of the error. The message SHOULD be limited to a
|
|
702
700
|
* concise single sentence.
|
|
@@ -707,6 +705,8 @@ declare const ParseError_base: Schema.Class<ParseError, Schema.Struct<{
|
|
|
707
705
|
* defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
708
706
|
*/
|
|
709
707
|
readonly data: Schema.decodeTo<Schema.optional<Schema.Any>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
708
|
+
readonly _tag: Schema.tag<"ParseError">;
|
|
709
|
+
readonly code: Schema.tag<-32700>;
|
|
710
710
|
}>, import("../../Cause.ts").YieldableError>;
|
|
711
711
|
/**
|
|
712
712
|
* Represents an MCP/JSON-RPC error for invalid JSON that could not be parsed.
|
|
@@ -726,8 +726,6 @@ declare const ParseError_base: Schema.Class<ParseError, Schema.Struct<{
|
|
|
726
726
|
export declare class ParseError extends ParseError_base {
|
|
727
727
|
}
|
|
728
728
|
declare const InvalidRequest_base: Schema.Class<InvalidRequest, Schema.Struct<{
|
|
729
|
-
readonly _tag: Schema.tag<"InvalidRequest">;
|
|
730
|
-
readonly code: Schema.tag<-32600>;
|
|
731
729
|
/**
|
|
732
730
|
* A short description of the error. The message SHOULD be limited to a
|
|
733
731
|
* concise single sentence.
|
|
@@ -738,6 +736,8 @@ declare const InvalidRequest_base: Schema.Class<InvalidRequest, Schema.Struct<{
|
|
|
738
736
|
* defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
739
737
|
*/
|
|
740
738
|
readonly data: Schema.decodeTo<Schema.optional<Schema.Any>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
739
|
+
readonly _tag: Schema.tag<"InvalidRequest">;
|
|
740
|
+
readonly code: Schema.tag<-32600>;
|
|
741
741
|
}>, import("../../Cause.ts").YieldableError>;
|
|
742
742
|
/**
|
|
743
743
|
* Represents an MCP/JSON-RPC error for a request object that is not valid.
|
|
@@ -757,8 +757,6 @@ declare const InvalidRequest_base: Schema.Class<InvalidRequest, Schema.Struct<{
|
|
|
757
757
|
export declare class InvalidRequest extends InvalidRequest_base {
|
|
758
758
|
}
|
|
759
759
|
declare const MethodNotFound_base: Schema.Class<MethodNotFound, Schema.Struct<{
|
|
760
|
-
readonly _tag: Schema.tag<"MethodNotFound">;
|
|
761
|
-
readonly code: Schema.tag<-32601>;
|
|
762
760
|
/**
|
|
763
761
|
* A short description of the error. The message SHOULD be limited to a
|
|
764
762
|
* concise single sentence.
|
|
@@ -769,6 +767,8 @@ declare const MethodNotFound_base: Schema.Class<MethodNotFound, Schema.Struct<{
|
|
|
769
767
|
* defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
770
768
|
*/
|
|
771
769
|
readonly data: Schema.decodeTo<Schema.optional<Schema.Any>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
770
|
+
readonly _tag: Schema.tag<"MethodNotFound">;
|
|
771
|
+
readonly code: Schema.tag<-32601>;
|
|
772
772
|
}>, import("../../Cause.ts").YieldableError>;
|
|
773
773
|
/**
|
|
774
774
|
* Represents an MCP/JSON-RPC error for an unavailable method.
|
|
@@ -787,8 +787,6 @@ declare const MethodNotFound_base: Schema.Class<MethodNotFound, Schema.Struct<{
|
|
|
787
787
|
export declare class MethodNotFound extends MethodNotFound_base {
|
|
788
788
|
}
|
|
789
789
|
declare const InvalidParams_base: Schema.Class<InvalidParams, Schema.Struct<{
|
|
790
|
-
readonly _tag: Schema.tag<"InvalidParams">;
|
|
791
|
-
readonly code: Schema.tag<-32602>;
|
|
792
790
|
/**
|
|
793
791
|
* A short description of the error. The message SHOULD be limited to a
|
|
794
792
|
* concise single sentence.
|
|
@@ -799,6 +797,8 @@ declare const InvalidParams_base: Schema.Class<InvalidParams, Schema.Struct<{
|
|
|
799
797
|
* defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
800
798
|
*/
|
|
801
799
|
readonly data: Schema.decodeTo<Schema.optional<Schema.Any>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
800
|
+
readonly _tag: Schema.tag<"InvalidParams">;
|
|
801
|
+
readonly code: Schema.tag<-32602>;
|
|
802
802
|
}>, import("../../Cause.ts").YieldableError>;
|
|
803
803
|
/**
|
|
804
804
|
* Represents an MCP/JSON-RPC error for invalid method parameters.
|
|
@@ -818,8 +818,6 @@ declare const InvalidParams_base: Schema.Class<InvalidParams, Schema.Struct<{
|
|
|
818
818
|
export declare class InvalidParams extends InvalidParams_base {
|
|
819
819
|
}
|
|
820
820
|
declare const InternalError_base: Schema.Class<InternalError, Schema.Struct<{
|
|
821
|
-
readonly _tag: Schema.tag<"InternalError">;
|
|
822
|
-
readonly code: Schema.tag<-32603>;
|
|
823
821
|
/**
|
|
824
822
|
* A short description of the error. The message SHOULD be limited to a
|
|
825
823
|
* concise single sentence.
|
|
@@ -830,6 +828,8 @@ declare const InternalError_base: Schema.Class<InternalError, Schema.Struct<{
|
|
|
830
828
|
* defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
831
829
|
*/
|
|
832
830
|
readonly data: Schema.decodeTo<Schema.optional<Schema.Any>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
831
|
+
readonly _tag: Schema.tag<"InternalError">;
|
|
832
|
+
readonly code: Schema.tag<-32603>;
|
|
833
833
|
}>, import("../../Cause.ts").YieldableError>;
|
|
834
834
|
/**
|
|
835
835
|
* Represents an MCP/JSON-RPC error for unexpected internal server failures.
|
|
@@ -876,6 +876,11 @@ declare const Ping_base: Rpc.Rpc<"ping", Schema.UndefinedOr<typeof RequestMeta>,
|
|
|
876
876
|
export declare class Ping extends Ping_base {
|
|
877
877
|
}
|
|
878
878
|
declare const InitializeResult_base: Schema.Opaque<InitializeResult, Schema.Struct<{
|
|
879
|
+
/**
|
|
880
|
+
* This result property is reserved by the protocol to allow clients and
|
|
881
|
+
* servers to attach additional metadata to their responses.
|
|
882
|
+
*/
|
|
883
|
+
readonly _meta: Schema.decodeTo<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>;
|
|
879
884
|
/**
|
|
880
885
|
* The version of the Model Context Protocol that the server wants to use.
|
|
881
886
|
* This may not match the version that the client requested. If the client
|
|
@@ -892,12 +897,12 @@ declare const InitializeResult_base: Schema.Opaque<InitializeResult, Schema.Stru
|
|
|
892
897
|
* For example, this information MAY be added to the system prompt.
|
|
893
898
|
*/
|
|
894
899
|
readonly instructions: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
900
|
+
}>, {}> & Omit<Schema.Struct<{
|
|
895
901
|
/**
|
|
896
902
|
* This result property is reserved by the protocol to allow clients and
|
|
897
903
|
* servers to attach additional metadata to their responses.
|
|
898
904
|
*/
|
|
899
905
|
readonly _meta: Schema.decodeTo<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>;
|
|
900
|
-
}>, {}> & Omit<Schema.Struct<{
|
|
901
906
|
/**
|
|
902
907
|
* The version of the Model Context Protocol that the server wants to use.
|
|
903
908
|
* This may not match the version that the client requested. If the client
|
|
@@ -914,11 +919,6 @@ declare const InitializeResult_base: Schema.Opaque<InitializeResult, Schema.Stru
|
|
|
914
919
|
* For example, this information MAY be added to the system prompt.
|
|
915
920
|
*/
|
|
916
921
|
readonly instructions: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
917
|
-
/**
|
|
918
|
-
* This result property is reserved by the protocol to allow clients and
|
|
919
|
-
* servers to attach additional metadata to their responses.
|
|
920
|
-
*/
|
|
921
|
-
readonly _meta: Schema.decodeTo<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>;
|
|
922
922
|
}>, keyof Schema.Top>;
|
|
923
923
|
/**
|
|
924
924
|
* Schema for the server's response to an initialize request from the client.
|
|
@@ -929,21 +929,6 @@ declare const InitializeResult_base: Schema.Opaque<InitializeResult, Schema.Stru
|
|
|
929
929
|
export declare class InitializeResult extends InitializeResult_base {
|
|
930
930
|
}
|
|
931
931
|
declare const Initialize_base: Rpc.Rpc<"initialize", Schema.Struct<{
|
|
932
|
-
/**
|
|
933
|
-
* The latest version of the Model Context Protocol that the client
|
|
934
|
-
* supports. The client MAY decide to support older versions as well.
|
|
935
|
-
*/
|
|
936
|
-
protocolVersion: Schema.String;
|
|
937
|
-
/**
|
|
938
|
-
* Capabilities a client may support. Known capabilities are defined here,
|
|
939
|
-
* in this schema, but this is not a closed set: any client can define its
|
|
940
|
-
* own, additional capabilities.
|
|
941
|
-
*/
|
|
942
|
-
capabilities: typeof ClientCapabilities;
|
|
943
|
-
/**
|
|
944
|
-
* Describes the name and version of an MCP implementation.
|
|
945
|
-
*/
|
|
946
|
-
clientInfo: typeof Implementation;
|
|
947
932
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
948
933
|
/**
|
|
949
934
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -963,6 +948,21 @@ declare const Initialize_base: Rpc.Rpc<"initialize", Schema.Struct<{
|
|
|
963
948
|
*/
|
|
964
949
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
965
950
|
}>>, never, never>;
|
|
951
|
+
/**
|
|
952
|
+
* The latest version of the Model Context Protocol that the client
|
|
953
|
+
* supports. The client MAY decide to support older versions as well.
|
|
954
|
+
*/
|
|
955
|
+
protocolVersion: Schema.String;
|
|
956
|
+
/**
|
|
957
|
+
* Capabilities a client may support. Known capabilities are defined here,
|
|
958
|
+
* in this schema, but this is not a closed set: any client can define its
|
|
959
|
+
* own, additional capabilities.
|
|
960
|
+
*/
|
|
961
|
+
capabilities: typeof ClientCapabilities;
|
|
962
|
+
/**
|
|
963
|
+
* Describes the name and version of an MCP implementation.
|
|
964
|
+
*/
|
|
965
|
+
clientInfo: typeof Implementation;
|
|
966
966
|
}>, typeof InitializeResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, never, never>;
|
|
967
967
|
/**
|
|
968
968
|
* Sent from the client to the server when it first connects, asking it to begin
|
|
@@ -983,6 +983,7 @@ declare const InitializedNotification_base: Rpc.Rpc<"notifications/initialized",
|
|
|
983
983
|
export declare class InitializedNotification extends InitializedNotification_base {
|
|
984
984
|
}
|
|
985
985
|
declare const CancelledNotification_base: Rpc.Rpc<"notifications/cancelled", Schema.Struct<{
|
|
986
|
+
_meta: Schema.decodeTo<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>;
|
|
986
987
|
/**
|
|
987
988
|
* The ID of the request to cancel.
|
|
988
989
|
*
|
|
@@ -995,7 +996,6 @@ declare const CancelledNotification_base: Rpc.Rpc<"notifications/cancelled", Sch
|
|
|
995
996
|
* be logged or presented to the user.
|
|
996
997
|
*/
|
|
997
998
|
reason: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
998
|
-
_meta: Schema.decodeTo<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>;
|
|
999
999
|
}>, Schema.Void, Schema.Never, never, never>;
|
|
1000
1000
|
/**
|
|
1001
1001
|
* Sent from either peer to cancel a previously issued request in the same
|
|
@@ -1012,6 +1012,7 @@ declare const CancelledNotification_base: Rpc.Rpc<"notifications/cancelled", Sch
|
|
|
1012
1012
|
export declare class CancelledNotification extends CancelledNotification_base {
|
|
1013
1013
|
}
|
|
1014
1014
|
declare const ProgressNotification_base: Rpc.Rpc<"notifications/progress", Schema.Struct<{
|
|
1015
|
+
_meta: Schema.decodeTo<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>;
|
|
1015
1016
|
/**
|
|
1016
1017
|
* The progress token which was given in the initial request, used to
|
|
1017
1018
|
* associate this notification with the request that is proceeding.
|
|
@@ -1030,7 +1031,6 @@ declare const ProgressNotification_base: Rpc.Rpc<"notifications/progress", Schem
|
|
|
1030
1031
|
* An optional message describing the current progress.
|
|
1031
1032
|
*/
|
|
1032
1033
|
message: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1033
|
-
_meta: Schema.decodeTo<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>;
|
|
1034
1034
|
}>, Schema.Void, Schema.Never, never, never>;
|
|
1035
1035
|
/**
|
|
1036
1036
|
* Sent from either peer to report progress for a long-running request.
|
|
@@ -1169,11 +1169,6 @@ declare const ResourceContents_base: Schema.Opaque<ResourceContents, Schema.Stru
|
|
|
1169
1169
|
export declare class ResourceContents extends ResourceContents_base {
|
|
1170
1170
|
}
|
|
1171
1171
|
declare const TextResourceContents_base: Schema.Opaque<TextResourceContents, Schema.Struct<{
|
|
1172
|
-
/**
|
|
1173
|
-
* The text of the item. This must only be set if the item can actually be
|
|
1174
|
-
* represented as text (not binary data).
|
|
1175
|
-
*/
|
|
1176
|
-
readonly text: Schema.String;
|
|
1177
1172
|
/**
|
|
1178
1173
|
* The URI of this resource.
|
|
1179
1174
|
*/
|
|
@@ -1186,12 +1181,12 @@ declare const TextResourceContents_base: Schema.Opaque<TextResourceContents, Sch
|
|
|
1186
1181
|
* Optional additional metadata for the client.
|
|
1187
1182
|
*/
|
|
1188
1183
|
readonly _meta: Schema.decodeTo<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>;
|
|
1189
|
-
}>, {}> & Omit<Schema.Struct<{
|
|
1190
1184
|
/**
|
|
1191
1185
|
* The text of the item. This must only be set if the item can actually be
|
|
1192
1186
|
* represented as text (not binary data).
|
|
1193
1187
|
*/
|
|
1194
1188
|
readonly text: Schema.String;
|
|
1189
|
+
}>, {}> & Omit<Schema.Struct<{
|
|
1195
1190
|
/**
|
|
1196
1191
|
* The URI of this resource.
|
|
1197
1192
|
*/
|
|
@@ -1204,6 +1199,11 @@ declare const TextResourceContents_base: Schema.Opaque<TextResourceContents, Sch
|
|
|
1204
1199
|
* Optional additional metadata for the client.
|
|
1205
1200
|
*/
|
|
1206
1201
|
readonly _meta: Schema.decodeTo<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>;
|
|
1202
|
+
/**
|
|
1203
|
+
* The text of the item. This must only be set if the item can actually be
|
|
1204
|
+
* represented as text (not binary data).
|
|
1205
|
+
*/
|
|
1206
|
+
readonly text: Schema.String;
|
|
1207
1207
|
}>, keyof Schema.Top>;
|
|
1208
1208
|
/**
|
|
1209
1209
|
* Schema for text resource contents represented as a string.
|
|
@@ -1214,10 +1214,6 @@ declare const TextResourceContents_base: Schema.Opaque<TextResourceContents, Sch
|
|
|
1214
1214
|
export declare class TextResourceContents extends TextResourceContents_base {
|
|
1215
1215
|
}
|
|
1216
1216
|
declare const BlobResourceContents_base: Schema.Opaque<BlobResourceContents, Schema.Struct<{
|
|
1217
|
-
/**
|
|
1218
|
-
* The binary data of the item decoded from a base64-encoded string.
|
|
1219
|
-
*/
|
|
1220
|
-
readonly blob: Schema.Uint8Array;
|
|
1221
1217
|
/**
|
|
1222
1218
|
* The URI of this resource.
|
|
1223
1219
|
*/
|
|
@@ -1230,11 +1226,11 @@ declare const BlobResourceContents_base: Schema.Opaque<BlobResourceContents, Sch
|
|
|
1230
1226
|
* Optional additional metadata for the client.
|
|
1231
1227
|
*/
|
|
1232
1228
|
readonly _meta: Schema.decodeTo<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>;
|
|
1233
|
-
}>, {}> & Omit<Schema.Struct<{
|
|
1234
1229
|
/**
|
|
1235
1230
|
* The binary data of the item decoded from a base64-encoded string.
|
|
1236
1231
|
*/
|
|
1237
1232
|
readonly blob: Schema.Uint8Array;
|
|
1233
|
+
}>, {}> & Omit<Schema.Struct<{
|
|
1238
1234
|
/**
|
|
1239
1235
|
* The URI of this resource.
|
|
1240
1236
|
*/
|
|
@@ -1247,6 +1243,10 @@ declare const BlobResourceContents_base: Schema.Opaque<BlobResourceContents, Sch
|
|
|
1247
1243
|
* Optional additional metadata for the client.
|
|
1248
1244
|
*/
|
|
1249
1245
|
readonly _meta: Schema.decodeTo<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>;
|
|
1246
|
+
/**
|
|
1247
|
+
* The binary data of the item decoded from a base64-encoded string.
|
|
1248
|
+
*/
|
|
1249
|
+
readonly blob: Schema.Uint8Array;
|
|
1250
1250
|
}>, keyof Schema.Top>;
|
|
1251
1251
|
/**
|
|
1252
1252
|
* Schema for binary resource contents represented as a `Uint8Array`.
|
|
@@ -1257,17 +1257,17 @@ declare const BlobResourceContents_base: Schema.Opaque<BlobResourceContents, Sch
|
|
|
1257
1257
|
export declare class BlobResourceContents extends BlobResourceContents_base {
|
|
1258
1258
|
}
|
|
1259
1259
|
declare const ListResourcesResult_base: Schema.Class<ListResourcesResult, Schema.Struct<{
|
|
1260
|
-
readonly resources: Schema.$Array<typeof Resource>;
|
|
1261
|
-
/**
|
|
1262
|
-
* An opaque token representing the pagination position after the last returned result.
|
|
1263
|
-
* If present, there may be more results available.
|
|
1264
|
-
*/
|
|
1265
|
-
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1266
1260
|
/**
|
|
1267
1261
|
* This result property is reserved by the protocol to allow clients and
|
|
1268
1262
|
* servers to attach additional metadata to their responses.
|
|
1269
1263
|
*/
|
|
1270
1264
|
readonly _meta: Schema.decodeTo<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>;
|
|
1265
|
+
/**
|
|
1266
|
+
* An opaque token representing the pagination position after the last returned result.
|
|
1267
|
+
* If present, there may be more results available.
|
|
1268
|
+
*/
|
|
1269
|
+
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1270
|
+
readonly resources: Schema.$Array<typeof Resource>;
|
|
1271
1271
|
}>, {}>;
|
|
1272
1272
|
/**
|
|
1273
1273
|
* Schema for the server's response to a resources/list request from the client.
|
|
@@ -1287,17 +1287,17 @@ declare const ListResources_base: Rpc.Rpc<"resources/list", Schema.UndefinedOr<t
|
|
|
1287
1287
|
export declare class ListResources extends ListResources_base {
|
|
1288
1288
|
}
|
|
1289
1289
|
declare const ListResourceTemplatesResult_base: Schema.Class<ListResourceTemplatesResult, Schema.Struct<{
|
|
1290
|
-
readonly resourceTemplates: Schema.$Array<typeof ResourceTemplate>;
|
|
1291
|
-
/**
|
|
1292
|
-
* An opaque token representing the pagination position after the last returned result.
|
|
1293
|
-
* If present, there may be more results available.
|
|
1294
|
-
*/
|
|
1295
|
-
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1296
1290
|
/**
|
|
1297
1291
|
* This result property is reserved by the protocol to allow clients and
|
|
1298
1292
|
* servers to attach additional metadata to their responses.
|
|
1299
1293
|
*/
|
|
1300
1294
|
readonly _meta: Schema.decodeTo<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>;
|
|
1295
|
+
/**
|
|
1296
|
+
* An opaque token representing the pagination position after the last returned result.
|
|
1297
|
+
* If present, there may be more results available.
|
|
1298
|
+
*/
|
|
1299
|
+
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1300
|
+
readonly resourceTemplates: Schema.$Array<typeof ResourceTemplate>;
|
|
1301
1301
|
}>, {}>;
|
|
1302
1302
|
/**
|
|
1303
1303
|
* Schema for the server's response to a resources/templates/list request from
|
|
@@ -1318,19 +1318,19 @@ declare const ListResourceTemplates_base: Rpc.Rpc<"resources/templates/list", Sc
|
|
|
1318
1318
|
export declare class ListResourceTemplates extends ListResourceTemplates_base {
|
|
1319
1319
|
}
|
|
1320
1320
|
declare const ReadResourceResult_base: Schema.Opaque<ReadResourceResult, Schema.Struct<{
|
|
1321
|
-
readonly contents: Schema.$Array<Schema.Union<readonly [typeof TextResourceContents, typeof BlobResourceContents]>>;
|
|
1322
1321
|
/**
|
|
1323
1322
|
* This result property is reserved by the protocol to allow clients and
|
|
1324
1323
|
* servers to attach additional metadata to their responses.
|
|
1325
1324
|
*/
|
|
1326
1325
|
readonly _meta: Schema.decodeTo<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>;
|
|
1327
|
-
}>, {}> & Omit<Schema.Struct<{
|
|
1328
1326
|
readonly contents: Schema.$Array<Schema.Union<readonly [typeof TextResourceContents, typeof BlobResourceContents]>>;
|
|
1327
|
+
}>, {}> & Omit<Schema.Struct<{
|
|
1329
1328
|
/**
|
|
1330
1329
|
* This result property is reserved by the protocol to allow clients and
|
|
1331
1330
|
* servers to attach additional metadata to their responses.
|
|
1332
1331
|
*/
|
|
1333
1332
|
readonly _meta: Schema.decodeTo<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>;
|
|
1333
|
+
readonly contents: Schema.$Array<Schema.Union<readonly [typeof TextResourceContents, typeof BlobResourceContents]>>;
|
|
1334
1334
|
}>, keyof Schema.Top>;
|
|
1335
1335
|
/**
|
|
1336
1336
|
* Schema for the server's response to a resources/read request from the client.
|
|
@@ -1341,11 +1341,6 @@ declare const ReadResourceResult_base: Schema.Opaque<ReadResourceResult, Schema.
|
|
|
1341
1341
|
export declare class ReadResourceResult extends ReadResourceResult_base {
|
|
1342
1342
|
}
|
|
1343
1343
|
declare const ReadResource_base: Rpc.Rpc<"resources/read", Schema.Struct<{
|
|
1344
|
-
/**
|
|
1345
|
-
* The URI of the resource to read. The URI can use any protocol; it is up
|
|
1346
|
-
* to the server how to interpret it.
|
|
1347
|
-
*/
|
|
1348
|
-
uri: Schema.String;
|
|
1349
1344
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
1350
1345
|
/**
|
|
1351
1346
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -1365,6 +1360,11 @@ declare const ReadResource_base: Rpc.Rpc<"resources/read", Schema.Struct<{
|
|
|
1365
1360
|
*/
|
|
1366
1361
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
1367
1362
|
}>>, never, never>;
|
|
1363
|
+
/**
|
|
1364
|
+
* The URI of the resource to read. The URI can use any protocol; it is up
|
|
1365
|
+
* to the server how to interpret it.
|
|
1366
|
+
*/
|
|
1367
|
+
uri: Schema.String;
|
|
1368
1368
|
}>, typeof ReadResourceResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, never, never>;
|
|
1369
1369
|
/**
|
|
1370
1370
|
* Sent from the client to the server, to read a specific resource URI.
|
|
@@ -1392,11 +1392,6 @@ declare const ResourceListChangedNotification_base: Rpc.Rpc<"notifications/resou
|
|
|
1392
1392
|
export declare class ResourceListChangedNotification extends ResourceListChangedNotification_base {
|
|
1393
1393
|
}
|
|
1394
1394
|
declare const Subscribe_base: Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
1395
|
-
/**
|
|
1396
|
-
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
1397
|
-
* it is up to the server how to interpret it.
|
|
1398
|
-
*/
|
|
1399
|
-
uri: Schema.String;
|
|
1400
1395
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
1401
1396
|
/**
|
|
1402
1397
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -1416,6 +1411,11 @@ declare const Subscribe_base: Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
|
1416
1411
|
*/
|
|
1417
1412
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
1418
1413
|
}>>, never, never>;
|
|
1414
|
+
/**
|
|
1415
|
+
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
1416
|
+
* it is up to the server how to interpret it.
|
|
1417
|
+
*/
|
|
1418
|
+
uri: Schema.String;
|
|
1419
1419
|
}>, Schema.Void, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, never, never>;
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Sent from the client to request resources/updated notifications from the
|
|
@@ -1427,11 +1427,6 @@ declare const Subscribe_base: Rpc.Rpc<"resources/subscribe", Schema.Struct<{
|
|
|
1427
1427
|
export declare class Subscribe extends Subscribe_base {
|
|
1428
1428
|
}
|
|
1429
1429
|
declare const Unsubscribe_base: Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
1430
|
-
/**
|
|
1431
|
-
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
1432
|
-
* it is up to the server how to interpret it.
|
|
1433
|
-
*/
|
|
1434
|
-
uri: Schema.String;
|
|
1435
1430
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
1436
1431
|
/**
|
|
1437
1432
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -1451,6 +1446,11 @@ declare const Unsubscribe_base: Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
|
1451
1446
|
*/
|
|
1452
1447
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
1453
1448
|
}>>, never, never>;
|
|
1449
|
+
/**
|
|
1450
|
+
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
1451
|
+
* it is up to the server how to interpret it.
|
|
1452
|
+
*/
|
|
1453
|
+
uri: Schema.String;
|
|
1454
1454
|
}>, Schema.Void, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, never, never>;
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Sent from the client to request cancellation of resources/updated
|
|
@@ -1463,11 +1463,11 @@ declare const Unsubscribe_base: Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
|
|
|
1463
1463
|
export declare class Unsubscribe extends Unsubscribe_base {
|
|
1464
1464
|
}
|
|
1465
1465
|
declare const ResourceUpdatedNotification_base: Rpc.Rpc<"notifications/resources/updated", Schema.Struct<{
|
|
1466
|
+
_meta: Schema.decodeTo<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>;
|
|
1466
1467
|
/**
|
|
1467
1468
|
* The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
|
|
1468
1469
|
*/
|
|
1469
1470
|
uri: Schema.String;
|
|
1470
|
-
_meta: Schema.decodeTo<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>;
|
|
1471
1471
|
}>, Schema.Void, Schema.Never, never, never>;
|
|
1472
1472
|
/**
|
|
1473
1473
|
* Sent from the server when a subscribed resource URI has changed.
|
|
@@ -1678,7 +1678,6 @@ declare const EmbeddedResource_base: Schema.Opaque<EmbeddedResource, Schema.Stru
|
|
|
1678
1678
|
export declare class EmbeddedResource extends EmbeddedResource_base {
|
|
1679
1679
|
}
|
|
1680
1680
|
declare const ResourceLink_base: Schema.Opaque<ResourceLink, Schema.Struct<{
|
|
1681
|
-
readonly type: Schema.tag<"resource_link">;
|
|
1682
1681
|
/**
|
|
1683
1682
|
* The URI of this resource.
|
|
1684
1683
|
*/
|
|
@@ -1720,8 +1719,8 @@ declare const ResourceLink_base: Schema.Opaque<ResourceLink, Schema.Struct<{
|
|
|
1720
1719
|
* attach additional metadata to resources.
|
|
1721
1720
|
*/
|
|
1722
1721
|
readonly _meta: Schema.decodeTo<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>;
|
|
1723
|
-
}>, {}> & Omit<Schema.Struct<{
|
|
1724
1722
|
readonly type: Schema.tag<"resource_link">;
|
|
1723
|
+
}>, {}> & Omit<Schema.Struct<{
|
|
1725
1724
|
/**
|
|
1726
1725
|
* The URI of this resource.
|
|
1727
1726
|
*/
|
|
@@ -1763,6 +1762,7 @@ declare const ResourceLink_base: Schema.Opaque<ResourceLink, Schema.Struct<{
|
|
|
1763
1762
|
* attach additional metadata to resources.
|
|
1764
1763
|
*/
|
|
1765
1764
|
readonly _meta: Schema.decodeTo<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>;
|
|
1765
|
+
readonly type: Schema.tag<"resource_link">;
|
|
1766
1766
|
}>, keyof Schema.Top>;
|
|
1767
1767
|
/**
|
|
1768
1768
|
* Represents a readable resource included in a prompt or tool call result.
|
|
@@ -1806,17 +1806,17 @@ declare const PromptMessage_base: Schema.Opaque<PromptMessage, Schema.Struct<{
|
|
|
1806
1806
|
export declare class PromptMessage extends PromptMessage_base {
|
|
1807
1807
|
}
|
|
1808
1808
|
declare const ListPromptsResult_base: Schema.Class<ListPromptsResult, Schema.Struct<{
|
|
1809
|
-
readonly prompts: Schema.$Array<typeof Prompt>;
|
|
1810
|
-
/**
|
|
1811
|
-
* An opaque token representing the pagination position after the last returned result.
|
|
1812
|
-
* If present, there may be more results available.
|
|
1813
|
-
*/
|
|
1814
|
-
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1815
1809
|
/**
|
|
1816
1810
|
* This result property is reserved by the protocol to allow clients and
|
|
1817
1811
|
* servers to attach additional metadata to their responses.
|
|
1818
1812
|
*/
|
|
1819
1813
|
readonly _meta: Schema.decodeTo<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>;
|
|
1814
|
+
/**
|
|
1815
|
+
* An opaque token representing the pagination position after the last returned result.
|
|
1816
|
+
* If present, there may be more results available.
|
|
1817
|
+
*/
|
|
1818
|
+
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1819
|
+
readonly prompts: Schema.$Array<typeof Prompt>;
|
|
1820
1820
|
}>, {}>;
|
|
1821
1821
|
/**
|
|
1822
1822
|
* Represents the server response to a prompts/list request from the client.
|
|
@@ -1837,16 +1837,16 @@ declare const ListPrompts_base: Rpc.Rpc<"prompts/list", Schema.UndefinedOr<typeo
|
|
|
1837
1837
|
export declare class ListPrompts extends ListPrompts_base {
|
|
1838
1838
|
}
|
|
1839
1839
|
declare const GetPromptResult_base: Schema.Class<GetPromptResult, Schema.Struct<{
|
|
1840
|
-
readonly messages: Schema.$Array<typeof PromptMessage>;
|
|
1841
|
-
/**
|
|
1842
|
-
* An optional description for the prompt.
|
|
1843
|
-
*/
|
|
1844
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1845
1840
|
/**
|
|
1846
1841
|
* This result property is reserved by the protocol to allow clients and
|
|
1847
1842
|
* servers to attach additional metadata to their responses.
|
|
1848
1843
|
*/
|
|
1849
1844
|
readonly _meta: Schema.decodeTo<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>;
|
|
1845
|
+
readonly messages: Schema.$Array<typeof PromptMessage>;
|
|
1846
|
+
/**
|
|
1847
|
+
* An optional description for the prompt.
|
|
1848
|
+
*/
|
|
1849
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1850
1850
|
}>, {}>;
|
|
1851
1851
|
/**
|
|
1852
1852
|
* Represents the server response to a prompts/get request from the client.
|
|
@@ -1857,15 +1857,6 @@ declare const GetPromptResult_base: Schema.Class<GetPromptResult, Schema.Struct<
|
|
|
1857
1857
|
export declare class GetPromptResult extends GetPromptResult_base {
|
|
1858
1858
|
}
|
|
1859
1859
|
declare const GetPrompt_base: Rpc.Rpc<"prompts/get", Schema.Struct<{
|
|
1860
|
-
/**
|
|
1861
|
-
* The name of the prompt or prompt template.
|
|
1862
|
-
*/
|
|
1863
|
-
name: Schema.String;
|
|
1864
|
-
title: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1865
|
-
/**
|
|
1866
|
-
* Arguments to use for templating the prompt.
|
|
1867
|
-
*/
|
|
1868
|
-
arguments: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.String>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
1869
1860
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
1870
1861
|
/**
|
|
1871
1862
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -1885,6 +1876,15 @@ declare const GetPrompt_base: Rpc.Rpc<"prompts/get", Schema.Struct<{
|
|
|
1885
1876
|
*/
|
|
1886
1877
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
1887
1878
|
}>>, never, never>;
|
|
1879
|
+
/**
|
|
1880
|
+
* The name of the prompt or prompt template.
|
|
1881
|
+
*/
|
|
1882
|
+
name: Schema.String;
|
|
1883
|
+
title: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1884
|
+
/**
|
|
1885
|
+
* Arguments to use for templating the prompt.
|
|
1886
|
+
*/
|
|
1887
|
+
arguments: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.String>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
1888
1888
|
}>, typeof GetPromptResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, never, never>;
|
|
1889
1889
|
/**
|
|
1890
1890
|
* Sent from the client to get a prompt provided by the server.
|
|
@@ -2044,17 +2044,17 @@ declare const Tool_base: Schema.Class<Tool, Schema.Struct<{
|
|
|
2044
2044
|
export declare class Tool extends Tool_base {
|
|
2045
2045
|
}
|
|
2046
2046
|
declare const ListToolsResult_base: Schema.Class<ListToolsResult, Schema.Struct<{
|
|
2047
|
-
readonly tools: Schema.$Array<typeof Tool>;
|
|
2048
|
-
/**
|
|
2049
|
-
* An opaque token representing the pagination position after the last returned result.
|
|
2050
|
-
* If present, there may be more results available.
|
|
2051
|
-
*/
|
|
2052
|
-
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2053
2047
|
/**
|
|
2054
2048
|
* This result property is reserved by the protocol to allow clients and
|
|
2055
2049
|
* servers to attach additional metadata to their responses.
|
|
2056
2050
|
*/
|
|
2057
2051
|
readonly _meta: Schema.decodeTo<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>;
|
|
2052
|
+
/**
|
|
2053
|
+
* An opaque token representing the pagination position after the last returned result.
|
|
2054
|
+
* If present, there may be more results available.
|
|
2055
|
+
*/
|
|
2056
|
+
readonly nextCursor: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2057
|
+
readonly tools: Schema.$Array<typeof Tool>;
|
|
2058
2058
|
}>, {}>;
|
|
2059
2059
|
/**
|
|
2060
2060
|
* Schema for the server's response to a tools/list request from the client.
|
|
@@ -2074,6 +2074,11 @@ declare const ListTools_base: Rpc.Rpc<"tools/list", Schema.UndefinedOr<typeof Pa
|
|
|
2074
2074
|
export declare class ListTools extends ListTools_base {
|
|
2075
2075
|
}
|
|
2076
2076
|
declare const CallToolResult_base: Schema.Class<CallToolResult, Schema.Struct<{
|
|
2077
|
+
/**
|
|
2078
|
+
* This result property is reserved by the protocol to allow clients and
|
|
2079
|
+
* servers to attach additional metadata to their responses.
|
|
2080
|
+
*/
|
|
2081
|
+
readonly _meta: Schema.decodeTo<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>;
|
|
2077
2082
|
readonly content: Schema.$Array<Schema.Union<readonly [typeof TextContent, typeof ImageContent, typeof AudioContent, typeof EmbeddedResource, typeof ResourceLink]>>;
|
|
2078
2083
|
readonly structuredContent: Schema.decodeTo<Schema.optional<Schema.Any>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
2079
2084
|
/**
|
|
@@ -2082,11 +2087,6 @@ declare const CallToolResult_base: Schema.Class<CallToolResult, Schema.Struct<{
|
|
|
2082
2087
|
* If not set, this is assumed to be false (the call was successful).
|
|
2083
2088
|
*/
|
|
2084
2089
|
readonly isError: Schema.decodeTo<Schema.optional<Schema.Boolean>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
2085
|
-
/**
|
|
2086
|
-
* This result property is reserved by the protocol to allow clients and
|
|
2087
|
-
* servers to attach additional metadata to their responses.
|
|
2088
|
-
*/
|
|
2089
|
-
readonly _meta: Schema.decodeTo<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>;
|
|
2090
2090
|
}>, {}>;
|
|
2091
2091
|
/**
|
|
2092
2092
|
* Schema for the server's response to a tool call.
|
|
@@ -2106,8 +2106,6 @@ declare const CallToolResult_base: Schema.Class<CallToolResult, Schema.Struct<{
|
|
|
2106
2106
|
export declare class CallToolResult extends CallToolResult_base {
|
|
2107
2107
|
}
|
|
2108
2108
|
declare const CallTool_base: Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
2109
|
-
name: Schema.String;
|
|
2110
|
-
arguments: Schema.$Record<Schema.String, Schema.Any>;
|
|
2111
2109
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2112
2110
|
/**
|
|
2113
2111
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2127,6 +2125,8 @@ declare const CallTool_base: Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
|
2127
2125
|
*/
|
|
2128
2126
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
2129
2127
|
}>>, never, never>;
|
|
2128
|
+
name: Schema.String;
|
|
2129
|
+
arguments: Schema.$Record<Schema.String, Schema.Any>;
|
|
2130
2130
|
}>, typeof CallToolResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, never, never>;
|
|
2131
2131
|
/**
|
|
2132
2132
|
* Represents a client request to invoke a tool provided by the server.
|
|
@@ -2189,12 +2189,6 @@ export declare const LoggingLevel: Schema.Literals<[
|
|
|
2189
2189
|
*/
|
|
2190
2190
|
export type LoggingLevel = typeof LoggingLevel.Type;
|
|
2191
2191
|
declare const SetLevel_base: Rpc.Rpc<"logging/setLevel", Schema.Struct<{
|
|
2192
|
-
/**
|
|
2193
|
-
* The level of logging that the client wants to receive from the server.
|
|
2194
|
-
* The server should send all logs at this level and higher (i.e., more
|
|
2195
|
-
* severe) to the client as notifications/message.
|
|
2196
|
-
*/
|
|
2197
|
-
level: Schema.Literals<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]>;
|
|
2198
2192
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2199
2193
|
/**
|
|
2200
2194
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2214,6 +2208,12 @@ declare const SetLevel_base: Rpc.Rpc<"logging/setLevel", Schema.Struct<{
|
|
|
2214
2208
|
*/
|
|
2215
2209
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
2216
2210
|
}>>, never, never>;
|
|
2211
|
+
/**
|
|
2212
|
+
* The level of logging that the client wants to receive from the server.
|
|
2213
|
+
* The server should send all logs at this level and higher (i.e., more
|
|
2214
|
+
* severe) to the client as notifications/message.
|
|
2215
|
+
*/
|
|
2216
|
+
level: Schema.Literals<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]>;
|
|
2217
2217
|
}>, Schema.Void, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, never, never>;
|
|
2218
2218
|
/**
|
|
2219
2219
|
* Sent from the client to the server to enable or adjust logging.
|
|
@@ -2224,6 +2224,11 @@ declare const SetLevel_base: Rpc.Rpc<"logging/setLevel", Schema.Struct<{
|
|
|
2224
2224
|
export declare class SetLevel extends SetLevel_base {
|
|
2225
2225
|
}
|
|
2226
2226
|
declare const LoggingMessageNotification_base: Rpc.Rpc<"notifications/message", Schema.Struct<{
|
|
2227
|
+
/**
|
|
2228
|
+
* This parameter name is reserved by MCP to allow clients and servers to
|
|
2229
|
+
* attach additional metadata to their notifications.
|
|
2230
|
+
*/
|
|
2231
|
+
readonly _meta: Schema.decodeTo<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>;
|
|
2227
2232
|
/**
|
|
2228
2233
|
* The severity of this log message.
|
|
2229
2234
|
*/
|
|
@@ -2237,11 +2242,6 @@ declare const LoggingMessageNotification_base: Rpc.Rpc<"notifications/message",
|
|
|
2237
2242
|
* serializable type is allowed here.
|
|
2238
2243
|
*/
|
|
2239
2244
|
readonly data: Schema.Any;
|
|
2240
|
-
/**
|
|
2241
|
-
* This parameter name is reserved by MCP to allow clients and servers to
|
|
2242
|
-
* attach additional metadata to their notifications.
|
|
2243
|
-
*/
|
|
2244
|
-
readonly _meta: Schema.decodeTo<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>;
|
|
2245
2245
|
}>, Schema.Void, Schema.Never, never, never>;
|
|
2246
2246
|
/**
|
|
2247
2247
|
* Sent from the server to the client carrying a log message.
|
|
@@ -2640,6 +2640,11 @@ declare const RootsListChangedNotification_base: Rpc.Rpc<"notifications/roots/li
|
|
|
2640
2640
|
export declare class RootsListChangedNotification extends RootsListChangedNotification_base {
|
|
2641
2641
|
}
|
|
2642
2642
|
declare const ElicitAcceptResult_base: Schema.Class<ElicitAcceptResult, Schema.Struct<{
|
|
2643
|
+
/**
|
|
2644
|
+
* This result property is reserved by the protocol to allow clients and
|
|
2645
|
+
* servers to attach additional metadata to their responses.
|
|
2646
|
+
*/
|
|
2647
|
+
readonly _meta: Schema.decodeTo<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>;
|
|
2643
2648
|
/**
|
|
2644
2649
|
* The user action in response to the elicitation.
|
|
2645
2650
|
* - "accept": User submitted the form/confirmed the action
|
|
@@ -2652,11 +2657,6 @@ declare const ElicitAcceptResult_base: Schema.Class<ElicitAcceptResult, Schema.S
|
|
|
2652
2657
|
* Contains values matching the requested schema.
|
|
2653
2658
|
*/
|
|
2654
2659
|
readonly content: Schema.Any;
|
|
2655
|
-
/**
|
|
2656
|
-
* This result property is reserved by the protocol to allow clients and
|
|
2657
|
-
* servers to attach additional metadata to their responses.
|
|
2658
|
-
*/
|
|
2659
|
-
readonly _meta: Schema.decodeTo<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>;
|
|
2660
2660
|
}>, {}>;
|
|
2661
2661
|
/**
|
|
2662
2662
|
* Schema for an accepted client response to an elicitation request.
|
|
@@ -2667,6 +2667,11 @@ declare const ElicitAcceptResult_base: Schema.Class<ElicitAcceptResult, Schema.S
|
|
|
2667
2667
|
export declare class ElicitAcceptResult extends ElicitAcceptResult_base {
|
|
2668
2668
|
}
|
|
2669
2669
|
declare const ElicitDeclineResult_base: Schema.Class<ElicitDeclineResult, Schema.Struct<{
|
|
2670
|
+
/**
|
|
2671
|
+
* This result property is reserved by the protocol to allow clients and
|
|
2672
|
+
* servers to attach additional metadata to their responses.
|
|
2673
|
+
*/
|
|
2674
|
+
readonly _meta: Schema.decodeTo<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>;
|
|
2670
2675
|
/**
|
|
2671
2676
|
* The user action in response to the elicitation.
|
|
2672
2677
|
* - "accept": User submitted the form/confirmed the action
|
|
@@ -2674,11 +2679,6 @@ declare const ElicitDeclineResult_base: Schema.Class<ElicitDeclineResult, Schema
|
|
|
2674
2679
|
* - "cancel": User dismissed without making an explicit choice
|
|
2675
2680
|
*/
|
|
2676
2681
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
2677
|
-
/**
|
|
2678
|
-
* This result property is reserved by the protocol to allow clients and
|
|
2679
|
-
* servers to attach additional metadata to their responses.
|
|
2680
|
-
*/
|
|
2681
|
-
readonly _meta: Schema.decodeTo<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>;
|
|
2682
2682
|
}>, {}>;
|
|
2683
2683
|
/**
|
|
2684
2684
|
* Schema for a declined or canceled client response to an elicitation request.
|
|
@@ -2753,7 +2753,7 @@ export declare class ElicitationDeclined extends ElicitationDeclined_base {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
declare const McpServerClient_base: Context.ServiceClass<McpServerClient, "effect/ai/McpSchema/McpServerClient", {
|
|
2755
2755
|
readonly clientId: number;
|
|
2756
|
-
readonly initializePayload:
|
|
2756
|
+
readonly initializePayload: typeof Initialize.payloadSchema["Type"];
|
|
2757
2757
|
readonly getClient: Effect.Effect<RpcClient.RpcClient<RpcGroup.Rpcs<typeof ServerRequestRpcs>, RpcClientError>, never, Scope.Scope>;
|
|
2758
2758
|
}>;
|
|
2759
2759
|
/**
|
|
@@ -2828,22 +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<"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<"
|
|
2832
|
-
/**
|
|
2833
|
-
* The latest version of the Model Context Protocol that the client
|
|
2834
|
-
* supports. The client MAY decide to support older versions as well.
|
|
2835
|
-
*/
|
|
2836
|
-
protocolVersion: Schema.String;
|
|
2837
|
-
/**
|
|
2838
|
-
* Capabilities a client may support. Known capabilities are defined here,
|
|
2839
|
-
* in this schema, but this is not a closed set: any client can define its
|
|
2840
|
-
* own, additional capabilities.
|
|
2841
|
-
*/
|
|
2842
|
-
capabilities: typeof ClientCapabilities;
|
|
2843
|
-
/**
|
|
2844
|
-
* Describes the name and version of an MCP implementation.
|
|
2845
|
-
*/
|
|
2846
|
-
clientInfo: typeof Implementation;
|
|
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<{
|
|
2847
2832
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2848
2833
|
/**
|
|
2849
2834
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2863,12 +2848,13 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"ping", Schema.U
|
|
|
2863
2848
|
*/
|
|
2864
2849
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
2865
2850
|
}>>, never, never>;
|
|
2866
|
-
}>, 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<{
|
|
2867
2851
|
/**
|
|
2868
|
-
* The
|
|
2869
|
-
*
|
|
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.
|
|
2870
2855
|
*/
|
|
2871
|
-
|
|
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<{
|
|
2872
2858
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2873
2859
|
/**
|
|
2874
2860
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2888,12 +2874,12 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"ping", Schema.U
|
|
|
2888
2874
|
*/
|
|
2889
2875
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
2890
2876
|
}>>, never, never>;
|
|
2891
|
-
}>, 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<{
|
|
2892
2877
|
/**
|
|
2893
2878
|
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
2894
2879
|
* it is up to the server how to interpret it.
|
|
2895
2880
|
*/
|
|
2896
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<{
|
|
2897
2883
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2898
2884
|
/**
|
|
2899
2885
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2913,12 +2899,12 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"ping", Schema.U
|
|
|
2913
2899
|
*/
|
|
2914
2900
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
2915
2901
|
}>>, never, never>;
|
|
2916
|
-
}>, 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
2902
|
/**
|
|
2918
2903
|
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
2919
2904
|
* it is up to the server how to interpret it.
|
|
2920
2905
|
*/
|
|
2921
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<{
|
|
2922
2908
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2923
2909
|
/**
|
|
2924
2910
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2938,16 +2924,22 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"ping", Schema.U
|
|
|
2938
2924
|
*/
|
|
2939
2925
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
2940
2926
|
}>>, never, never>;
|
|
2941
|
-
}>, Schema.Void, 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<{
|
|
2942
2927
|
/**
|
|
2943
|
-
* The
|
|
2928
|
+
* The latest version of the Model Context Protocol that the client
|
|
2929
|
+
* supports. The client MAY decide to support older versions as well.
|
|
2944
2930
|
*/
|
|
2945
|
-
|
|
2946
|
-
title: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2931
|
+
protocolVersion: Schema.String;
|
|
2947
2932
|
/**
|
|
2948
|
-
*
|
|
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.
|
|
2949
2936
|
*/
|
|
2950
|
-
|
|
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<{
|
|
2951
2943
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2952
2944
|
/**
|
|
2953
2945
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2967,9 +2959,12 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"ping", Schema.U
|
|
|
2967
2959
|
*/
|
|
2968
2960
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
2969
2961
|
}>>, never, never>;
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2962
|
+
/**
|
|
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.
|
|
2965
|
+
*/
|
|
2966
|
+
uri: Schema.String;
|
|
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<{
|
|
2973
2968
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2974
2969
|
/**
|
|
2975
2970
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2989,13 +2984,16 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"ping", Schema.U
|
|
|
2989
2984
|
*/
|
|
2990
2985
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
2991
2986
|
}>>, never, never>;
|
|
2992
|
-
}>, typeof CallToolResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"logging/setLevel", Schema.Struct<{
|
|
2993
2987
|
/**
|
|
2994
|
-
* The
|
|
2995
|
-
* The server should send all logs at this level and higher (i.e., more
|
|
2996
|
-
* severe) to the client as notifications/message.
|
|
2988
|
+
* The name of the prompt or prompt template.
|
|
2997
2989
|
*/
|
|
2998
|
-
|
|
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<{
|
|
2999
2997
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3000
2998
|
/**
|
|
3001
2999
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3015,7 +3013,9 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"ping", Schema.U
|
|
|
3015
3013
|
*/
|
|
3016
3014
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
3017
3015
|
}>>, never, never>;
|
|
3018
|
-
|
|
3016
|
+
name: Schema.String;
|
|
3017
|
+
arguments: Schema.$Record<Schema.String, Schema.Any>;
|
|
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
3019
|
readonly ref: Schema.Union<readonly [typeof PromptReference, typeof ResourceReference]>;
|
|
3020
3020
|
/**
|
|
3021
3021
|
* The argument's information
|
|
@@ -3078,22 +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<
|
|
3082
|
-
/**
|
|
3083
|
-
* The latest version of the Model Context Protocol that the client
|
|
3084
|
-
* supports. The client MAY decide to support older versions as well.
|
|
3085
|
-
*/
|
|
3086
|
-
protocolVersion: Schema.String;
|
|
3087
|
-
/**
|
|
3088
|
-
* Capabilities a client may support. Known capabilities are defined here,
|
|
3089
|
-
* in this schema, but this is not a closed set: any client can define its
|
|
3090
|
-
* own, additional capabilities.
|
|
3091
|
-
*/
|
|
3092
|
-
capabilities: typeof ClientCapabilities;
|
|
3093
|
-
/**
|
|
3094
|
-
* Describes the name and version of an MCP implementation.
|
|
3095
|
-
*/
|
|
3096
|
-
clientInfo: typeof Implementation;
|
|
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<{
|
|
3097
3082
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3098
3083
|
/**
|
|
3099
3084
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3113,12 +3098,13 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification
|
|
|
3113
3098
|
*/
|
|
3114
3099
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
3115
3100
|
}>>, never, never>;
|
|
3116
|
-
}>, 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<{
|
|
3117
3101
|
/**
|
|
3118
|
-
* The
|
|
3119
|
-
*
|
|
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.
|
|
3120
3105
|
*/
|
|
3121
|
-
|
|
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<{
|
|
3122
3108
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3123
3109
|
/**
|
|
3124
3110
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3138,12 +3124,12 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification
|
|
|
3138
3124
|
*/
|
|
3139
3125
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
3140
3126
|
}>>, never, never>;
|
|
3141
|
-
}>, 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<{
|
|
3142
3127
|
/**
|
|
3143
3128
|
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
3144
3129
|
* it is up to the server how to interpret it.
|
|
3145
3130
|
*/
|
|
3146
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<{
|
|
3147
3133
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3148
3134
|
/**
|
|
3149
3135
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3163,12 +3149,12 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification
|
|
|
3163
3149
|
*/
|
|
3164
3150
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
3165
3151
|
}>>, never, never>;
|
|
3166
|
-
}>, 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
3152
|
/**
|
|
3168
3153
|
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
3169
3154
|
* it is up to the server how to interpret it.
|
|
3170
3155
|
*/
|
|
3171
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<{
|
|
3172
3158
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3173
3159
|
/**
|
|
3174
3160
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3188,16 +3174,22 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification
|
|
|
3188
3174
|
*/
|
|
3189
3175
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
3190
3176
|
}>>, never, never>;
|
|
3191
|
-
}>, Schema.Void, 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<{
|
|
3192
3177
|
/**
|
|
3193
|
-
* The
|
|
3178
|
+
* The latest version of the Model Context Protocol that the client
|
|
3179
|
+
* supports. The client MAY decide to support older versions as well.
|
|
3194
3180
|
*/
|
|
3195
|
-
|
|
3196
|
-
title: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3181
|
+
protocolVersion: Schema.String;
|
|
3197
3182
|
/**
|
|
3198
|
-
*
|
|
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.
|
|
3199
3186
|
*/
|
|
3200
|
-
|
|
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<{
|
|
3201
3193
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3202
3194
|
/**
|
|
3203
3195
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3217,9 +3209,12 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification
|
|
|
3217
3209
|
*/
|
|
3218
3210
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
3219
3211
|
}>>, never, never>;
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3212
|
+
/**
|
|
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.
|
|
3215
|
+
*/
|
|
3216
|
+
uri: Schema.String;
|
|
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<{
|
|
3223
3218
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3224
3219
|
/**
|
|
3225
3220
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3239,13 +3234,16 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification
|
|
|
3239
3234
|
*/
|
|
3240
3235
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
3241
3236
|
}>>, never, never>;
|
|
3242
|
-
}>, typeof CallToolResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"logging/setLevel", Schema.Struct<{
|
|
3243
3237
|
/**
|
|
3244
|
-
* The
|
|
3245
|
-
* The server should send all logs at this level and higher (i.e., more
|
|
3246
|
-
* severe) to the client as notifications/message.
|
|
3238
|
+
* The name of the prompt or prompt template.
|
|
3247
3239
|
*/
|
|
3248
|
-
|
|
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<{
|
|
3249
3247
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
3250
3248
|
/**
|
|
3251
3249
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -3265,7 +3263,9 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification
|
|
|
3265
3263
|
*/
|
|
3266
3264
|
readonly progressToken: Schema.decodeTo<Schema.optional<Schema.Union<[Schema.String, Schema.Number]>>, Schema.optionalKey<Schema.Union<[Schema.String, Schema.Number]>>, never, never>;
|
|
3267
3265
|
}>>, never, never>;
|
|
3268
|
-
|
|
3266
|
+
name: Schema.String;
|
|
3267
|
+
arguments: Schema.$Record<Schema.String, Schema.Any>;
|
|
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
3269
|
readonly ref: Schema.Union<readonly [typeof PromptReference, typeof ResourceReference]>;
|
|
3270
3270
|
/**
|
|
3271
3271
|
* The argument's information
|
|
@@ -3289,7 +3289,7 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification
|
|
|
3289
3289
|
*/
|
|
3290
3290
|
readonly arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.String>>;
|
|
3291
3291
|
}>>;
|
|
3292
|
-
}>, typeof CompleteResult, Schema.Union<readonly [typeof ParseError, typeof InvalidRequest, typeof MethodNotFound, typeof InvalidParams, typeof InternalError, typeof McpErrorBase]>, typeof McpServerClientMiddleware, never
|
|
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
|
*
|
|
@@ -3425,12 +3425,12 @@ export interface Param<Name extends string, S extends Schema.Constraint> extends
|
|
|
3425
3425
|
*/
|
|
3426
3426
|
export declare function param<const Name extends string, S extends Schema.Constraint>(name: Name, schema: S): Param<Name, S>;
|
|
3427
3427
|
declare const EnabledWhen_base: Context.ServiceClass<EnabledWhen, "effect/unstable/ai/McpSchema/EnabledWhen", Predicate.Predicate<{
|
|
3428
|
-
readonly protocolVersion: string;
|
|
3429
|
-
readonly capabilities: ClientCapabilities;
|
|
3430
|
-
readonly clientInfo: Implementation;
|
|
3431
3428
|
readonly _meta?: {
|
|
3432
3429
|
readonly progressToken?: string | number | undefined;
|
|
3433
3430
|
} | undefined;
|
|
3431
|
+
readonly protocolVersion: string;
|
|
3432
|
+
readonly capabilities: ClientCapabilities;
|
|
3433
|
+
readonly clientInfo: Implementation;
|
|
3434
3434
|
}>>;
|
|
3435
3435
|
/**
|
|
3436
3436
|
* Annotation to conditionally enable or disable tools based on client
|