effect 4.0.0-beta.4 → 4.0.0-beta.6
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/Cause.d.ts +1 -1
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +6 -4
- package/dist/Channel.js.map +1 -1
- package/dist/Config.d.ts +1 -1
- package/dist/Data.d.ts +3 -2
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +9 -8
- package/dist/Data.js.map +1 -1
- package/dist/Effect.d.ts +0 -226
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +0 -118
- package/dist/Effect.js.map +1 -1
- package/dist/Encoding.d.ts +194 -0
- package/dist/Encoding.d.ts.map +1 -0
- package/dist/Encoding.js +352 -0
- package/dist/Encoding.js.map +1 -0
- package/dist/Equal.js.map +1 -1
- package/dist/FileSystem.d.ts +1 -1
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +5 -5
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +30 -1
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +15 -0
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.js +1 -1
- package/dist/Formatter.js.map +1 -1
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +2 -2
- package/dist/Graph.js.map +1 -1
- package/dist/Latch.d.ts +109 -0
- package/dist/Latch.d.ts.map +1 -0
- package/dist/Latch.js +72 -0
- package/dist/Latch.js.map +1 -0
- package/dist/Pipeable.d.ts +17 -0
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +19 -1
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +8 -7
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +2 -2
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +5 -3
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +6 -4
- package/dist/Pool.js.map +1 -1
- package/dist/PubSub.d.ts +3 -2
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +3 -2
- package/dist/PubSub.js.map +1 -1
- package/dist/Request.d.ts +1 -1
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +2 -1
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +0 -20
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +0 -20
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Schedule.d.ts +2 -2
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +30 -16
- package/dist/Schedule.js.map +1 -1
- package/dist/Schema.d.ts +192 -42
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +385 -71
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaGetter.d.ts +2 -2
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +12 -14
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +44 -43
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +5 -2
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +37 -0
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +80 -0
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/Semaphore.d.ts +211 -0
- package/dist/Semaphore.d.ts.map +1 -0
- package/dist/{PartitionedSemaphore.js → Semaphore.js} +97 -13
- package/dist/Semaphore.js.map +1 -0
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +9 -8
- package/dist/Stream.js.map +1 -1
- package/dist/Struct.d.ts +16 -0
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +22 -0
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +2 -1
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +2 -1
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +2 -1
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +2 -1
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Types.d.ts +14 -6
- package/dist/Types.d.ts.map +1 -1
- package/dist/index.d.ts +14 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/dist/internal/core.js +11 -3
- package/dist/internal/core.js.map +1 -1
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/rcRef.js +2 -1
- package/dist/internal/rcRef.js.map +1 -1
- package/dist/testing/TestClock.d.ts +3 -2
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestClock.js +5 -3
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +39 -39
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +2 -1
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +51 -51
- package/dist/unstable/ai/Prompt.d.ts +20 -20
- package/dist/unstable/ai/Response.d.ts +25 -25
- package/dist/unstable/cli/CliError.d.ts +5 -5
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +2 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +2 -1
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
- package/dist/unstable/cluster/Message.d.ts +5 -5
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +2 -1
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +3 -3
- package/dist/unstable/cluster/Runner.d.ts +1 -1
- package/dist/unstable/cluster/Runners.d.ts.map +1 -1
- package/dist/unstable/cluster/Runners.js +4 -3
- package/dist/unstable/cluster/Runners.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +7 -5
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/internal/entityManager.js +4 -3
- package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
- package/dist/unstable/cluster/internal/entityReaper.js +2 -1
- package/dist/unstable/cluster/internal/entityReaper.js.map +1 -1
- package/dist/unstable/cluster/internal/resourceRef.js +2 -1
- package/dist/unstable/cluster/internal/resourceRef.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts +36 -36
- package/dist/unstable/encoding/Sse.d.ts +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +2 -1
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +5 -5
- package/dist/unstable/http/Cookies.d.ts +1 -1
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +18 -26
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +2 -2
- package/dist/unstable/http/UrlParams.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +2 -2
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +6 -0
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +6 -6
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +6 -5
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +2 -1
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +6 -5
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +6 -0
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +12 -9
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +39 -0
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -0
- package/dist/unstable/reactivity/Hydration.js +76 -0
- package/dist/unstable/reactivity/Hydration.js.map +1 -0
- package/dist/unstable/reactivity/index.d.ts +4 -0
- package/dist/unstable/reactivity/index.d.ts.map +1 -1
- package/dist/unstable/reactivity/index.js +4 -0
- package/dist/unstable/reactivity/index.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +3 -2
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +5 -3
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/rpc/Utils.d.ts.map +1 -1
- package/dist/unstable/rpc/Utils.js +2 -1
- package/dist/unstable/rpc/Utils.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +3 -2
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/sql/Statement.js +0 -1
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +2 -1
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +2 -2
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +2 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +2 -1
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/package.json +1 -2
- package/src/Cause.ts +1 -1
- package/src/Channel.ts +6 -4
- package/src/Data.ts +10 -9
- package/src/Effect.ts +0 -246
- package/src/Encoding.ts +879 -0
- package/src/Equal.ts +2 -2
- package/src/FileSystem.ts +7 -8
- package/src/Filter.ts +48 -1
- package/src/Formatter.ts +1 -1
- package/src/Graph.ts +8 -5
- package/src/Latch.ts +112 -0
- package/src/Pipeable.ts +32 -1
- package/src/PlatformError.ts +5 -5
- package/src/Pool.ts +9 -7
- package/src/PubSub.ts +10 -9
- package/src/Request.ts +3 -2
- package/src/RequestResolver.ts +0 -20
- package/src/Schedule.ts +217 -115
- package/src/Schema.ts +567 -105
- package/src/SchemaGetter.ts +12 -14
- package/src/SchemaRepresentation.ts +5 -2
- package/src/SchemaTransformation.ts +104 -0
- package/src/Semaphore.ts +356 -0
- package/src/Stream.ts +9 -8
- package/src/Struct.ts +26 -0
- package/src/SubscriptionRef.ts +3 -2
- package/src/SynchronizedRef.ts +3 -2
- package/src/Types.ts +12 -2
- package/src/index.ts +17 -6
- package/src/internal/core.ts +10 -2
- package/src/internal/effect.ts +3 -2
- package/src/internal/rcRef.ts +2 -1
- package/src/testing/TestClock.ts +8 -6
- package/src/unstable/ai/AiError.ts +1 -1
- package/src/unstable/ai/Chat.ts +2 -1
- package/src/unstable/ai/Prompt.ts +20 -20
- package/src/unstable/ai/Response.ts +22 -22
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +3 -2
- package/src/unstable/cluster/Entity.ts +2 -1
- package/src/unstable/cluster/Envelope.ts +1 -1
- package/src/unstable/cluster/MessageStorage.ts +2 -1
- package/src/unstable/cluster/Runners.ts +6 -5
- package/src/unstable/cluster/Sharding.ts +8 -6
- package/src/unstable/cluster/internal/entityManager.ts +6 -5
- package/src/unstable/cluster/internal/entityReaper.ts +2 -1
- package/src/unstable/cluster/internal/resourceRef.ts +2 -1
- package/src/unstable/eventlog/EventLog.ts +2 -1
- package/src/unstable/http/HttpEffect.ts +17 -25
- package/src/unstable/http/Multipart.ts +2 -2
- package/src/unstable/http/UrlParams.ts +1 -1
- package/src/unstable/httpapi/HttpApiBuilder.ts +2 -2
- package/src/unstable/httpapi/HttpApiScalar.ts +6 -0
- package/src/unstable/persistence/KeyValueStore.ts +6 -6
- package/src/unstable/persistence/PersistedCache.ts +20 -9
- package/src/unstable/persistence/PersistedQueue.ts +7 -6
- package/src/unstable/process/ChildProcessSpawner.ts +6 -0
- package/src/unstable/reactivity/Atom.ts +7 -5
- package/src/unstable/reactivity/Hydration.ts +112 -0
- package/src/unstable/reactivity/index.ts +5 -0
- package/src/unstable/rpc/RpcClient.ts +4 -3
- package/src/unstable/rpc/RpcServer.ts +6 -4
- package/src/unstable/rpc/Utils.ts +2 -1
- package/src/unstable/socket/Socket.ts +3 -2
- package/src/unstable/sql/Statement.ts +0 -1
- package/src/unstable/workers/Worker.ts +2 -1
- package/src/unstable/workflow/DurableDeferred.ts +2 -2
- package/src/unstable/workflow/WorkflowEngine.ts +3 -2
- package/dist/PartitionedSemaphore.d.ts +0 -52
- package/dist/PartitionedSemaphore.d.ts.map +0 -1
- package/dist/PartitionedSemaphore.js.map +0 -1
- package/dist/encoding/Base64.d.ts +0 -67
- package/dist/encoding/Base64.d.ts.map +0 -1
- package/dist/encoding/Base64.js +0 -146
- package/dist/encoding/Base64.js.map +0 -1
- package/dist/encoding/Base64Url.d.ts +0 -60
- package/dist/encoding/Base64Url.d.ts.map +0 -1
- package/dist/encoding/Base64Url.js +0 -89
- package/dist/encoding/Base64Url.js.map +0 -1
- package/dist/encoding/EncodingError.d.ts +0 -31
- package/dist/encoding/EncodingError.d.ts.map +0 -1
- package/dist/encoding/EncodingError.js +0 -22
- package/dist/encoding/EncodingError.js.map +0 -1
- package/dist/encoding/Hex.d.ts +0 -61
- package/dist/encoding/Hex.d.ts.map +0 -1
- package/dist/encoding/Hex.js +0 -115
- package/dist/encoding/Hex.js.map +0 -1
- package/dist/encoding/index.d.ts +0 -26
- package/dist/encoding/index.d.ts.map +0 -1
- package/dist/encoding/index.js +0 -27
- package/dist/encoding/index.js.map +0 -1
- package/src/PartitionedSemaphore.ts +0 -182
- package/src/encoding/Base64.ts +0 -366
- package/src/encoding/Base64Url.ts +0 -104
- package/src/encoding/EncodingError.ts +0 -35
- package/src/encoding/Hex.ts +0 -390
- package/src/encoding/index.ts +0 -31
|
@@ -111,13 +111,13 @@ declare const ResultMeta_base: Schema.Opaque<ResultMeta, Schema.Struct<{
|
|
|
111
111
|
* This result property is reserved by the protocol to allow clients and
|
|
112
112
|
* servers to attach additional metadata to their responses.
|
|
113
113
|
*/
|
|
114
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
114
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
115
115
|
}>, {}> & Omit<Schema.Struct<{
|
|
116
116
|
/**
|
|
117
117
|
* This result property is reserved by the protocol to allow clients and
|
|
118
118
|
* servers to attach additional metadata to their responses.
|
|
119
119
|
*/
|
|
120
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
120
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
121
121
|
}>, "Type">;
|
|
122
122
|
/**
|
|
123
123
|
* @since 4.0.0
|
|
@@ -130,13 +130,13 @@ declare const NotificationMeta_base: Schema.Opaque<NotificationMeta, Schema.Stru
|
|
|
130
130
|
* This parameter name is reserved by MCP to allow clients and servers to
|
|
131
131
|
* attach additional metadata to their notifications.
|
|
132
132
|
*/
|
|
133
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
133
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
134
134
|
}>, {}> & Omit<Schema.Struct<{
|
|
135
135
|
/**
|
|
136
136
|
* This parameter name is reserved by MCP to allow clients and servers to
|
|
137
137
|
* attach additional metadata to their notifications.
|
|
138
138
|
*/
|
|
139
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
139
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
140
140
|
}>, "Type">;
|
|
141
141
|
/**
|
|
142
142
|
* @since 4.0.0
|
|
@@ -223,7 +223,7 @@ declare const PaginatedResultMeta_base: Schema.Opaque<PaginatedResultMeta, Schem
|
|
|
223
223
|
* This result property is reserved by the protocol to allow clients and
|
|
224
224
|
* servers to attach additional metadata to their responses.
|
|
225
225
|
*/
|
|
226
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
226
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
227
227
|
}>, {}> & Omit<Schema.Struct<{
|
|
228
228
|
/**
|
|
229
229
|
* An opaque token representing the pagination position after the last returned result.
|
|
@@ -234,7 +234,7 @@ declare const PaginatedResultMeta_base: Schema.Opaque<PaginatedResultMeta, Schem
|
|
|
234
234
|
* This result property is reserved by the protocol to allow clients and
|
|
235
235
|
* servers to attach additional metadata to their responses.
|
|
236
236
|
*/
|
|
237
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
237
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
238
238
|
}>, "Type">;
|
|
239
239
|
/**
|
|
240
240
|
* @since 4.0.0
|
|
@@ -260,7 +260,7 @@ declare const Annotations_base: Schema.Opaque<Annotations, Schema.Struct<{
|
|
|
260
260
|
* It can include multiple entries to indicate content useful for multiple
|
|
261
261
|
* audiences (e.g., `["user", "assistant"]`).
|
|
262
262
|
*/
|
|
263
|
-
readonly audience: Schema.decodeTo<Schema.optional<Schema
|
|
263
|
+
readonly audience: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.Literals<["user", "assistant"]>>>, Schema.optionalKey<Schema.$Array<Schema.Literals<["user", "assistant"]>>>, never, never>;
|
|
264
264
|
/**
|
|
265
265
|
* Describes how important this data is for operating the server.
|
|
266
266
|
*
|
|
@@ -276,7 +276,7 @@ declare const Annotations_base: Schema.Opaque<Annotations, Schema.Struct<{
|
|
|
276
276
|
* It can include multiple entries to indicate content useful for multiple
|
|
277
277
|
* audiences (e.g., `["user", "assistant"]`).
|
|
278
278
|
*/
|
|
279
|
-
readonly audience: Schema.decodeTo<Schema.optional<Schema
|
|
279
|
+
readonly audience: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.Literals<["user", "assistant"]>>>, Schema.optionalKey<Schema.$Array<Schema.Literals<["user", "assistant"]>>>, never, never>;
|
|
280
280
|
/**
|
|
281
281
|
* Describes how important this data is for operating the server.
|
|
282
282
|
*
|
|
@@ -316,7 +316,7 @@ declare const ClientCapabilities_base: Schema.ExtendableClass<ClientCapabilities
|
|
|
316
316
|
/**
|
|
317
317
|
* Experimental, non-standard capabilities that the client supports.
|
|
318
318
|
*/
|
|
319
|
-
readonly experimental: Schema.decodeTo<Schema.optional<Schema
|
|
319
|
+
readonly experimental: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{}>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{}>>>, never, never>;
|
|
320
320
|
/**
|
|
321
321
|
* Present if the client supports listing roots.
|
|
322
322
|
*/
|
|
@@ -354,7 +354,7 @@ declare const ServerCapabilities_base: Schema.Opaque<ServerCapabilities, Schema.
|
|
|
354
354
|
/**
|
|
355
355
|
* Experimental, non-standard capabilities that the server supports.
|
|
356
356
|
*/
|
|
357
|
-
readonly experimental: Schema.decodeTo<Schema.optional<Schema
|
|
357
|
+
readonly experimental: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{}>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{}>>>, never, never>;
|
|
358
358
|
/**
|
|
359
359
|
* Present if the server supports sending log messages to the client.
|
|
360
360
|
*/
|
|
@@ -417,7 +417,7 @@ declare const ServerCapabilities_base: Schema.Opaque<ServerCapabilities, Schema.
|
|
|
417
417
|
/**
|
|
418
418
|
* Experimental, non-standard capabilities that the server supports.
|
|
419
419
|
*/
|
|
420
|
-
readonly experimental: Schema.decodeTo<Schema.optional<Schema
|
|
420
|
+
readonly experimental: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{}>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{}>>>, never, never>;
|
|
421
421
|
/**
|
|
422
422
|
* Present if the server supports sending log messages to the client.
|
|
423
423
|
*/
|
|
@@ -667,7 +667,7 @@ declare const InitializeResult_base: Schema.Opaque<InitializeResult, Schema.Stru
|
|
|
667
667
|
* This result property is reserved by the protocol to allow clients and
|
|
668
668
|
* servers to attach additional metadata to their responses.
|
|
669
669
|
*/
|
|
670
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
670
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
671
671
|
}>, {}> & Omit<Schema.Struct<{
|
|
672
672
|
/**
|
|
673
673
|
* The version of the Model Context Protocol that the server wants to use.
|
|
@@ -689,7 +689,7 @@ declare const InitializeResult_base: Schema.Opaque<InitializeResult, Schema.Stru
|
|
|
689
689
|
* This result property is reserved by the protocol to allow clients and
|
|
690
690
|
* servers to attach additional metadata to their responses.
|
|
691
691
|
*/
|
|
692
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
692
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
693
693
|
}>, "Type">;
|
|
694
694
|
/**
|
|
695
695
|
* After receiving an initialize request from the client, the server sends this
|
|
@@ -768,7 +768,7 @@ declare const CancelledNotification_base: Rpc.Rpc<"notifications/cancelled", Sch
|
|
|
768
768
|
* be logged or presented to the user.
|
|
769
769
|
*/
|
|
770
770
|
reason: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
771
|
-
_meta: Schema.decodeTo<Schema.optional<Schema
|
|
771
|
+
_meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
772
772
|
}>, Schema.Void, Schema.Never, never, never>;
|
|
773
773
|
/**
|
|
774
774
|
* @since 4.0.0
|
|
@@ -795,7 +795,7 @@ declare const ProgressNotification_base: Rpc.Rpc<"notifications/progress", Schem
|
|
|
795
795
|
* An optional message describing the current progress.
|
|
796
796
|
*/
|
|
797
797
|
message: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
798
|
-
_meta: Schema.decodeTo<Schema.optional<Schema
|
|
798
|
+
_meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
799
799
|
}>, Schema.Void, Schema.Never, never, never>;
|
|
800
800
|
/**
|
|
801
801
|
* An out-of-band notification used to inform the receiver of a progress update
|
|
@@ -988,7 +988,7 @@ declare const BlobResourceContents_base: Schema.Opaque<BlobResourceContents, Sch
|
|
|
988
988
|
export declare class BlobResourceContents extends BlobResourceContents_base {
|
|
989
989
|
}
|
|
990
990
|
declare const ListResourcesResult_base: Schema.ExtendableClass<ListResourcesResult, Schema.Struct<{
|
|
991
|
-
readonly resources: Schema
|
|
991
|
+
readonly resources: Schema.$Array<typeof Resource>;
|
|
992
992
|
/**
|
|
993
993
|
* An opaque token representing the pagination position after the last returned result.
|
|
994
994
|
* If present, there may be more results available.
|
|
@@ -998,7 +998,7 @@ declare const ListResourcesResult_base: Schema.ExtendableClass<ListResourcesResu
|
|
|
998
998
|
* This result property is reserved by the protocol to allow clients and
|
|
999
999
|
* servers to attach additional metadata to their responses.
|
|
1000
1000
|
*/
|
|
1001
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
1001
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
1002
1002
|
}>, {}>;
|
|
1003
1003
|
/**
|
|
1004
1004
|
* The server's response to a resources/list request from the client.
|
|
@@ -1018,7 +1018,7 @@ declare const ListResources_base: Rpc.Rpc<"resources/list", Schema.UndefinedOr<t
|
|
|
1018
1018
|
export declare class ListResources extends ListResources_base {
|
|
1019
1019
|
}
|
|
1020
1020
|
declare const ListResourceTemplatesResult_base: Schema.ExtendableClass<ListResourceTemplatesResult, Schema.Struct<{
|
|
1021
|
-
readonly resourceTemplates: Schema
|
|
1021
|
+
readonly resourceTemplates: Schema.$Array<typeof ResourceTemplate>;
|
|
1022
1022
|
/**
|
|
1023
1023
|
* An opaque token representing the pagination position after the last returned result.
|
|
1024
1024
|
* If present, there may be more results available.
|
|
@@ -1028,7 +1028,7 @@ declare const ListResourceTemplatesResult_base: Schema.ExtendableClass<ListResou
|
|
|
1028
1028
|
* This result property is reserved by the protocol to allow clients and
|
|
1029
1029
|
* servers to attach additional metadata to their responses.
|
|
1030
1030
|
*/
|
|
1031
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
1031
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
1032
1032
|
}>, {}>;
|
|
1033
1033
|
/**
|
|
1034
1034
|
* The server's response to a resources/templates/list request from the client.
|
|
@@ -1048,19 +1048,19 @@ declare const ListResourceTemplates_base: Rpc.Rpc<"resources/templates/list", Sc
|
|
|
1048
1048
|
export declare class ListResourceTemplates extends ListResourceTemplates_base {
|
|
1049
1049
|
}
|
|
1050
1050
|
declare const ReadResourceResult_base: Schema.Opaque<ReadResourceResult, Schema.Struct<{
|
|
1051
|
-
readonly contents: Schema
|
|
1051
|
+
readonly contents: Schema.$Array<Schema.Union<readonly [typeof TextResourceContents, typeof BlobResourceContents]>>;
|
|
1052
1052
|
/**
|
|
1053
1053
|
* This result property is reserved by the protocol to allow clients and
|
|
1054
1054
|
* servers to attach additional metadata to their responses.
|
|
1055
1055
|
*/
|
|
1056
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
1056
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
1057
1057
|
}>, {}> & Omit<Schema.Struct<{
|
|
1058
|
-
readonly contents: Schema
|
|
1058
|
+
readonly contents: Schema.$Array<Schema.Union<readonly [typeof TextResourceContents, typeof BlobResourceContents]>>;
|
|
1059
1059
|
/**
|
|
1060
1060
|
* This result property is reserved by the protocol to allow clients and
|
|
1061
1061
|
* servers to attach additional metadata to their responses.
|
|
1062
1062
|
*/
|
|
1063
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
1063
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
1064
1064
|
}>, "Type">;
|
|
1065
1065
|
/**
|
|
1066
1066
|
* The server's response to a resources/read request from the client.
|
|
@@ -1191,7 +1191,7 @@ declare const ResourceUpdatedNotification_base: Rpc.Rpc<"notifications/resources
|
|
|
1191
1191
|
* The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
|
|
1192
1192
|
*/
|
|
1193
1193
|
uri: Schema.String;
|
|
1194
|
-
_meta: Schema.decodeTo<Schema.optional<Schema
|
|
1194
|
+
_meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
1195
1195
|
}>, Schema.Void, Schema.Never, never, never>;
|
|
1196
1196
|
/**
|
|
1197
1197
|
* @since 4.0.0
|
|
@@ -1249,7 +1249,7 @@ declare const Prompt_base: Schema.ExtendableClass<Prompt, Schema.Struct<{
|
|
|
1249
1249
|
/**
|
|
1250
1250
|
* A list of arguments to use for templating the prompt.
|
|
1251
1251
|
*/
|
|
1252
|
-
readonly arguments: Schema.decodeTo<Schema.optional<Schema
|
|
1252
|
+
readonly arguments: Schema.decodeTo<Schema.optional<Schema.$Array<typeof PromptArgument>>, Schema.optionalKey<Schema.$Array<typeof PromptArgument>>, never, never>;
|
|
1253
1253
|
}>, {}>;
|
|
1254
1254
|
/**
|
|
1255
1255
|
* A prompt or prompt template that the server offers.
|
|
@@ -1499,7 +1499,7 @@ declare const PromptMessage_base: Schema.Opaque<PromptMessage, Schema.Struct<{
|
|
|
1499
1499
|
export declare class PromptMessage extends PromptMessage_base {
|
|
1500
1500
|
}
|
|
1501
1501
|
declare const ListPromptsResult_base: Schema.ExtendableClass<ListPromptsResult, Schema.Struct<{
|
|
1502
|
-
readonly prompts: Schema
|
|
1502
|
+
readonly prompts: Schema.$Array<typeof Prompt>;
|
|
1503
1503
|
/**
|
|
1504
1504
|
* An opaque token representing the pagination position after the last returned result.
|
|
1505
1505
|
* If present, there may be more results available.
|
|
@@ -1509,7 +1509,7 @@ declare const ListPromptsResult_base: Schema.ExtendableClass<ListPromptsResult,
|
|
|
1509
1509
|
* This result property is reserved by the protocol to allow clients and
|
|
1510
1510
|
* servers to attach additional metadata to their responses.
|
|
1511
1511
|
*/
|
|
1512
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
1512
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
1513
1513
|
}>, {}>;
|
|
1514
1514
|
/**
|
|
1515
1515
|
* The server's response to a prompts/list request from the client.
|
|
@@ -1530,7 +1530,7 @@ declare const ListPrompts_base: Rpc.Rpc<"prompts/list", Schema.UndefinedOr<typeo
|
|
|
1530
1530
|
export declare class ListPrompts extends ListPrompts_base {
|
|
1531
1531
|
}
|
|
1532
1532
|
declare const GetPromptResult_base: Schema.ExtendableClass<GetPromptResult, Schema.Struct<{
|
|
1533
|
-
readonly messages: Schema
|
|
1533
|
+
readonly messages: Schema.$Array<typeof PromptMessage>;
|
|
1534
1534
|
/**
|
|
1535
1535
|
* An optional description for the prompt.
|
|
1536
1536
|
*/
|
|
@@ -1539,7 +1539,7 @@ declare const GetPromptResult_base: Schema.ExtendableClass<GetPromptResult, Sche
|
|
|
1539
1539
|
* This result property is reserved by the protocol to allow clients and
|
|
1540
1540
|
* servers to attach additional metadata to their responses.
|
|
1541
1541
|
*/
|
|
1542
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
1542
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
1543
1543
|
}>, {}>;
|
|
1544
1544
|
/**
|
|
1545
1545
|
* The server's response to a prompts/get request from the client.
|
|
@@ -1558,7 +1558,7 @@ declare const GetPrompt_base: Rpc.Rpc<"prompts/get", Schema.Struct<{
|
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Arguments to use for templating the prompt.
|
|
1560
1560
|
*/
|
|
1561
|
-
arguments: Schema.decodeTo<Schema.optional<Schema
|
|
1561
|
+
arguments: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.String>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
1562
1562
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
1563
1563
|
/**
|
|
1564
1564
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -1720,7 +1720,7 @@ declare const Tool_base: Schema.ExtendableClass<Tool, Schema.Struct<{
|
|
|
1720
1720
|
export declare class Tool extends Tool_base {
|
|
1721
1721
|
}
|
|
1722
1722
|
declare const ListToolsResult_base: Schema.ExtendableClass<ListToolsResult, Schema.Struct<{
|
|
1723
|
-
readonly tools: Schema
|
|
1723
|
+
readonly tools: Schema.$Array<typeof Tool>;
|
|
1724
1724
|
/**
|
|
1725
1725
|
* An opaque token representing the pagination position after the last returned result.
|
|
1726
1726
|
* If present, there may be more results available.
|
|
@@ -1730,7 +1730,7 @@ declare const ListToolsResult_base: Schema.ExtendableClass<ListToolsResult, Sche
|
|
|
1730
1730
|
* This result property is reserved by the protocol to allow clients and
|
|
1731
1731
|
* servers to attach additional metadata to their responses.
|
|
1732
1732
|
*/
|
|
1733
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
1733
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
1734
1734
|
}>, {}>;
|
|
1735
1735
|
/**
|
|
1736
1736
|
* The server's response to a tools/list request from the client.
|
|
@@ -1750,7 +1750,7 @@ declare const ListTools_base: Rpc.Rpc<"tools/list", Schema.UndefinedOr<typeof Pa
|
|
|
1750
1750
|
export declare class ListTools extends ListTools_base {
|
|
1751
1751
|
}
|
|
1752
1752
|
declare const CallToolResult_base: Schema.ExtendableClass<CallToolResult, Schema.Struct<{
|
|
1753
|
-
readonly content: Schema
|
|
1753
|
+
readonly content: Schema.$Array<Schema.Union<readonly [typeof TextContent, typeof ImageContent, typeof AudioContent, typeof EmbeddedResource, typeof ResourceLink]>>;
|
|
1754
1754
|
readonly structuredContent: Schema.decodeTo<Schema.optional<Schema.Any>, Schema.optionalKey<Schema.Any>, never, never>;
|
|
1755
1755
|
/**
|
|
1756
1756
|
* Whether the tool call ended in an error.
|
|
@@ -1762,7 +1762,7 @@ declare const CallToolResult_base: Schema.ExtendableClass<CallToolResult, Schema
|
|
|
1762
1762
|
* This result property is reserved by the protocol to allow clients and
|
|
1763
1763
|
* servers to attach additional metadata to their responses.
|
|
1764
1764
|
*/
|
|
1765
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
1765
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
1766
1766
|
}>, {}>;
|
|
1767
1767
|
/**
|
|
1768
1768
|
* The server's response to a tool call.
|
|
@@ -1783,7 +1783,7 @@ export declare class CallToolResult extends CallToolResult_base {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
declare const CallTool_base: Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
1785
1785
|
name: Schema.String;
|
|
1786
|
-
arguments: Schema
|
|
1786
|
+
arguments: Schema.$Record<Schema.String, Schema.Any>;
|
|
1787
1787
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
1788
1788
|
/**
|
|
1789
1789
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -1905,7 +1905,7 @@ declare const LoggingMessageNotification_base: Rpc.Rpc<"notifications/message",
|
|
|
1905
1905
|
* This parameter name is reserved by MCP to allow clients and servers to
|
|
1906
1906
|
* attach additional metadata to their notifications.
|
|
1907
1907
|
*/
|
|
1908
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
1908
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
1909
1909
|
}>, Schema.Void, Schema.Never, never, never>;
|
|
1910
1910
|
/**
|
|
1911
1911
|
* @since 4.0.0
|
|
@@ -1978,7 +1978,7 @@ declare const ModelPreferences_base: Schema.ExtendableClass<ModelPreferences, Sc
|
|
|
1978
1978
|
* The client SHOULD prioritize these hints over the numeric priorities, but
|
|
1979
1979
|
* MAY still use the priorities to select from ambiguous matches.
|
|
1980
1980
|
*/
|
|
1981
|
-
readonly hints: Schema.decodeTo<Schema.optional<Schema
|
|
1981
|
+
readonly hints: Schema.decodeTo<Schema.optional<Schema.$Array<typeof ModelHint>>, Schema.optionalKey<Schema.$Array<typeof ModelHint>>, never, never>;
|
|
1982
1982
|
/**
|
|
1983
1983
|
* How much to prioritize cost when selecting a model. A value of 0 means cost
|
|
1984
1984
|
* is not important, while a value of 1 means cost is the most important
|
|
@@ -2038,7 +2038,7 @@ declare const CreateMessageResult_base: Schema.ExtendableClass<CreateMessageResu
|
|
|
2038
2038
|
export declare class CreateMessageResult extends CreateMessageResult_base {
|
|
2039
2039
|
}
|
|
2040
2040
|
declare const CreateMessage_base: Rpc.Rpc<"sampling/createMessage", Schema.Struct<{
|
|
2041
|
-
messages: Schema
|
|
2041
|
+
messages: Schema.$Array<typeof SamplingMessage>;
|
|
2042
2042
|
/**
|
|
2043
2043
|
* The server's preferences for which model to select. The client MAY ignore
|
|
2044
2044
|
* these preferences.
|
|
@@ -2060,7 +2060,7 @@ declare const CreateMessage_base: Rpc.Rpc<"sampling/createMessage", Schema.Struc
|
|
|
2060
2060
|
* client MAY choose to sample fewer tokens than requested.
|
|
2061
2061
|
*/
|
|
2062
2062
|
maxTokens: Schema.Number;
|
|
2063
|
-
stopSequences: Schema.decodeTo<Schema.optional<Schema
|
|
2063
|
+
stopSequences: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
2064
2064
|
/**
|
|
2065
2065
|
* Optional metadata to pass through to the LLM provider. The format of
|
|
2066
2066
|
* this metadata is provider-specific.
|
|
@@ -2127,7 +2127,7 @@ declare const CompleteResult_base: Schema.Opaque<CompleteResult, Schema.Struct<{
|
|
|
2127
2127
|
/**
|
|
2128
2128
|
* An array of completion values. Must not exceed 100 items.
|
|
2129
2129
|
*/
|
|
2130
|
-
readonly values: Schema
|
|
2130
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
2131
2131
|
/**
|
|
2132
2132
|
* The total number of completion options available. This can exceed the
|
|
2133
2133
|
* number of values actually sent in the response.
|
|
@@ -2144,7 +2144,7 @@ declare const CompleteResult_base: Schema.Opaque<CompleteResult, Schema.Struct<{
|
|
|
2144
2144
|
/**
|
|
2145
2145
|
* An array of completion values. Must not exceed 100 items.
|
|
2146
2146
|
*/
|
|
2147
|
-
readonly values: Schema
|
|
2147
|
+
readonly values: Schema.$Array<Schema.String>;
|
|
2148
2148
|
/**
|
|
2149
2149
|
* The total number of completion options available. This can exceed the
|
|
2150
2150
|
* number of values actually sent in the response.
|
|
@@ -2191,7 +2191,7 @@ declare const Complete_base: Rpc.Rpc<"completion/complete", Schema.Struct<{
|
|
|
2191
2191
|
/**
|
|
2192
2192
|
* Previously-resolved variables in a URI template or prompt.
|
|
2193
2193
|
*/
|
|
2194
|
-
readonly arguments: optionalWithDefault<Schema
|
|
2194
|
+
readonly arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.String>>;
|
|
2195
2195
|
}>>;
|
|
2196
2196
|
}>, typeof CompleteResult, typeof McpError, never, never>;
|
|
2197
2197
|
/**
|
|
@@ -2225,7 +2225,7 @@ declare const Root_base: Schema.ExtendableClass<Root, Schema.Struct<{
|
|
|
2225
2225
|
export declare class Root extends Root_base {
|
|
2226
2226
|
}
|
|
2227
2227
|
declare const ListRootsResult_base: Schema.ExtendableClass<ListRootsResult, Schema.Struct<{
|
|
2228
|
-
readonly roots: Schema
|
|
2228
|
+
readonly roots: Schema.$Array<typeof Root>;
|
|
2229
2229
|
}>, {}>;
|
|
2230
2230
|
/**
|
|
2231
2231
|
* The client's response to a roots/list request from the server. This result
|
|
@@ -2283,7 +2283,7 @@ declare const ElicitAcceptResult_base: Schema.ExtendableClass<ElicitAcceptResult
|
|
|
2283
2283
|
* This result property is reserved by the protocol to allow clients and
|
|
2284
2284
|
* servers to attach additional metadata to their responses.
|
|
2285
2285
|
*/
|
|
2286
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
2286
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
2287
2287
|
}>, {}>;
|
|
2288
2288
|
/**
|
|
2289
2289
|
* The client's response to an elicitation request
|
|
@@ -2305,7 +2305,7 @@ declare const ElicitDeclineResult_base: Schema.ExtendableClass<ElicitDeclineResu
|
|
|
2305
2305
|
* This result property is reserved by the protocol to allow clients and
|
|
2306
2306
|
* servers to attach additional metadata to their responses.
|
|
2307
2307
|
*/
|
|
2308
|
-
readonly _meta: Schema.decodeTo<Schema.optional<Schema
|
|
2308
|
+
readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
2309
2309
|
}>, {}>;
|
|
2310
2310
|
/**
|
|
2311
2311
|
* The client's response to an elicitation request
|
|
@@ -2535,7 +2535,7 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"ping", Schema.U
|
|
|
2535
2535
|
/**
|
|
2536
2536
|
* Arguments to use for templating the prompt.
|
|
2537
2537
|
*/
|
|
2538
|
-
arguments: Schema.decodeTo<Schema.optional<Schema
|
|
2538
|
+
arguments: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.String>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
2539
2539
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2540
2540
|
/**
|
|
2541
2541
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2557,7 +2557,7 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"ping", Schema.U
|
|
|
2557
2557
|
}>>, never, never>;
|
|
2558
2558
|
}>, typeof GetPromptResult, typeof McpError, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"tools/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListToolsResult, typeof McpError, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
2559
2559
|
name: Schema.String;
|
|
2560
|
-
arguments: Schema
|
|
2560
|
+
arguments: Schema.$Record<Schema.String, Schema.Any>;
|
|
2561
2561
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2562
2562
|
/**
|
|
2563
2563
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2625,7 +2625,7 @@ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"ping", Schema.U
|
|
|
2625
2625
|
/**
|
|
2626
2626
|
* Previously-resolved variables in a URI template or prompt.
|
|
2627
2627
|
*/
|
|
2628
|
-
readonly arguments: optionalWithDefault<Schema
|
|
2628
|
+
readonly arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.String>>;
|
|
2629
2629
|
}>>;
|
|
2630
2630
|
}>, typeof CompleteResult, typeof McpError, typeof McpServerClientMiddleware, never>>;
|
|
2631
2631
|
/**
|
|
@@ -2770,7 +2770,7 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification
|
|
|
2770
2770
|
/**
|
|
2771
2771
|
* Arguments to use for templating the prompt.
|
|
2772
2772
|
*/
|
|
2773
|
-
arguments: Schema.decodeTo<Schema.optional<Schema
|
|
2773
|
+
arguments: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.String>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
2774
2774
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2775
2775
|
/**
|
|
2776
2776
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2792,7 +2792,7 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification
|
|
|
2792
2792
|
}>>, never, never>;
|
|
2793
2793
|
}>, typeof GetPromptResult, typeof McpError, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"tools/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListToolsResult, typeof McpError, typeof McpServerClientMiddleware, never> | Rpc.Rpc<"tools/call", Schema.Struct<{
|
|
2794
2794
|
name: Schema.String;
|
|
2795
|
-
arguments: Schema
|
|
2795
|
+
arguments: Schema.$Record<Schema.String, Schema.Any>;
|
|
2796
2796
|
_meta: Schema.decodeTo<Schema.optional<Schema.Struct<{
|
|
2797
2797
|
/**
|
|
2798
2798
|
* If specified, the caller is requesting out-of-band progress notifications
|
|
@@ -2860,7 +2860,7 @@ declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification
|
|
|
2860
2860
|
/**
|
|
2861
2861
|
* Previously-resolved variables in a URI template or prompt.
|
|
2862
2862
|
*/
|
|
2863
|
-
readonly arguments: optionalWithDefault<Schema
|
|
2863
|
+
readonly arguments: optionalWithDefault<Schema.$Record<Schema.String, Schema.String>>;
|
|
2864
2864
|
}>>;
|
|
2865
2865
|
}>, typeof CompleteResult, typeof McpError, typeof McpServerClientMiddleware, never>>;
|
|
2866
2866
|
/**
|
|
@@ -18,7 +18,7 @@ import type * as Response from "./Response.ts";
|
|
|
18
18
|
* @since 4.0.0
|
|
19
19
|
* @category models
|
|
20
20
|
*/
|
|
21
|
-
export declare const ProviderOptions: Schema
|
|
21
|
+
export declare const ProviderOptions: Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>;
|
|
22
22
|
/**
|
|
23
23
|
* @since 4.0.0
|
|
24
24
|
* @category models
|
|
@@ -192,7 +192,7 @@ export declare const TextPart: Schema.Struct<{
|
|
|
192
192
|
readonly type: Schema.Literal<"text">;
|
|
193
193
|
readonly text: Schema.String;
|
|
194
194
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
195
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
195
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
196
196
|
}>;
|
|
197
197
|
/**
|
|
198
198
|
* Constructs a new text part.
|
|
@@ -254,7 +254,7 @@ export declare const ReasoningPart: Schema.Struct<{
|
|
|
254
254
|
readonly type: Schema.Literal<"reasoning">;
|
|
255
255
|
readonly text: Schema.String;
|
|
256
256
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
257
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
257
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
258
258
|
}>;
|
|
259
259
|
/**
|
|
260
260
|
* Constructs a new reasoning part.
|
|
@@ -344,7 +344,7 @@ export declare const FilePart: Schema.Struct<{
|
|
|
344
344
|
readonly fileName: Schema.optional<Schema.String>;
|
|
345
345
|
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
346
346
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
347
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
347
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
348
348
|
}>;
|
|
349
349
|
/**
|
|
350
350
|
* Constructs a new file part.
|
|
@@ -435,7 +435,7 @@ export declare const ToolCallPart: Schema.Struct<{
|
|
|
435
435
|
readonly params: Schema.Unknown;
|
|
436
436
|
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
437
437
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
438
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
438
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
439
439
|
}>;
|
|
440
440
|
/**
|
|
441
441
|
* Constructs a new tool call part.
|
|
@@ -530,7 +530,7 @@ export declare const ToolResultPart: Schema.Struct<{
|
|
|
530
530
|
readonly isFailure: Schema.Boolean;
|
|
531
531
|
readonly result: Schema.Unknown;
|
|
532
532
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
533
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
533
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
534
534
|
}>;
|
|
535
535
|
/**
|
|
536
536
|
* Constructs a new tool result part.
|
|
@@ -625,7 +625,7 @@ export declare const ToolApprovalResponsePart: Schema.Struct<{
|
|
|
625
625
|
readonly approved: Schema.Boolean;
|
|
626
626
|
readonly reason: Schema.optional<Schema.String>;
|
|
627
627
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
628
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
628
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
629
629
|
}>;
|
|
630
630
|
/**
|
|
631
631
|
* Constructs a new tool approval response part.
|
|
@@ -703,7 +703,7 @@ export declare const ToolApprovalRequestPart: Schema.Struct<{
|
|
|
703
703
|
readonly approvalId: Schema.String;
|
|
704
704
|
readonly toolCallId: Schema.String;
|
|
705
705
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
706
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
706
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
707
707
|
}>;
|
|
708
708
|
/**
|
|
709
709
|
* Constructs a new tool approval request part.
|
|
@@ -809,7 +809,7 @@ export declare const ContentFromString: Schema.decodeTo<Schema.NonEmptyArray<Sch
|
|
|
809
809
|
readonly type: Schema.Literal<"text">;
|
|
810
810
|
readonly text: Schema.String;
|
|
811
811
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
812
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
812
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
813
813
|
}>>>, Schema.String>;
|
|
814
814
|
/**
|
|
815
815
|
* Message representing system instructions or context.
|
|
@@ -864,7 +864,7 @@ export declare const SystemMessage: Schema.Struct<{
|
|
|
864
864
|
readonly role: Schema.Literal<"system">;
|
|
865
865
|
readonly content: Schema.String;
|
|
866
866
|
readonly "~effect/ai/Prompt/Message": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Message">>;
|
|
867
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
867
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
868
868
|
}>;
|
|
869
869
|
/**
|
|
870
870
|
* Constructs a new system message.
|
|
@@ -959,14 +959,14 @@ export declare const UserMessage: Schema.Struct<{
|
|
|
959
959
|
readonly type: Schema.Literal<"text">;
|
|
960
960
|
readonly text: Schema.String;
|
|
961
961
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
962
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
962
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
963
963
|
}>>>, Schema.String, never, never>,
|
|
964
|
-
Schema
|
|
964
|
+
Schema.$Array<Schema.Union<readonly [
|
|
965
965
|
Schema.Struct<{
|
|
966
966
|
readonly type: Schema.Literal<"text">;
|
|
967
967
|
readonly text: Schema.String;
|
|
968
968
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
969
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
969
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
970
970
|
}>,
|
|
971
971
|
Schema.Struct<{
|
|
972
972
|
readonly type: Schema.Literal<"file">;
|
|
@@ -974,12 +974,12 @@ export declare const UserMessage: Schema.Struct<{
|
|
|
974
974
|
readonly fileName: Schema.optional<Schema.String>;
|
|
975
975
|
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
976
976
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
977
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
977
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
978
978
|
}>
|
|
979
979
|
]>>
|
|
980
980
|
]>;
|
|
981
981
|
readonly "~effect/ai/Prompt/Message": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Message">>;
|
|
982
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
982
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
983
983
|
}>;
|
|
984
984
|
/**
|
|
985
985
|
* Constructs a new user message.
|
|
@@ -1080,9 +1080,9 @@ export declare const AssistantMessage: Schema.Struct<{
|
|
|
1080
1080
|
readonly type: Schema.Literal<"text">;
|
|
1081
1081
|
readonly text: Schema.String;
|
|
1082
1082
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1083
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
1083
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
1084
1084
|
}>>>, Schema.String, never, never>,
|
|
1085
|
-
Schema
|
|
1085
|
+
Schema.$Array<Schema.Union<readonly [
|
|
1086
1086
|
typeof TextPart,
|
|
1087
1087
|
typeof FilePart,
|
|
1088
1088
|
typeof ReasoningPart,
|
|
@@ -1092,7 +1092,7 @@ export declare const AssistantMessage: Schema.Struct<{
|
|
|
1092
1092
|
]>>
|
|
1093
1093
|
]>;
|
|
1094
1094
|
readonly "~effect/ai/Prompt/Message": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Message">>;
|
|
1095
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
1095
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
1096
1096
|
}>;
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Constructs a new assistant message.
|
|
@@ -1178,9 +1178,9 @@ export interface ToolMessageOptions extends ProviderOptions {
|
|
|
1178
1178
|
*/
|
|
1179
1179
|
export declare const ToolMessage: Schema.Struct<{
|
|
1180
1180
|
readonly role: Schema.Literal<"tool">;
|
|
1181
|
-
readonly content: Schema
|
|
1181
|
+
readonly content: Schema.$Array<Schema.Union<readonly [typeof ToolResultPart, typeof ToolApprovalResponsePart]>>;
|
|
1182
1182
|
readonly "~effect/ai/Prompt/Message": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Message">>;
|
|
1183
|
-
readonly options: Schema.withDecodingDefault<Schema
|
|
1183
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json, Schema.Json>>>>;
|
|
1184
1184
|
}>;
|
|
1185
1185
|
/**
|
|
1186
1186
|
* Constructs a new tool message.
|