apps 0.0.1-beta.54 → 0.0.1-beta.57
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/README.md +15 -14
- package/framework-reference.json +1 -1
- package/js/{chunk-X5U5KIWQ.js → chunk-47F7VXST.js} +1 -1
- package/js/{chunk-PO5NPRFT.js → chunk-BTSIG4NQ.js} +4 -4
- package/js/{chunk-D45JTD6N.js → chunk-JK5S2N2S.js} +2 -2
- package/js/{chunk-QKHTRD6G.js → chunk-L4K2K22P.js} +2 -2
- package/js/{chunk-GDYPM7RS.js → chunk-PXXZ6ABC.js} +2 -2
- package/js/{chunk-SVHI6AKV.js → chunk-QEBRH5AP.js} +2 -2
- package/js/{chunk-JY56GVSV.js → chunk-TLWLJ7PD.js} +1076 -224
- package/js/{chunk-YQD2MLFY.js → chunk-XCSG7FT7.js} +2 -2
- package/js/contracts.js +3 -3
- package/js/effect.js +5 -5
- package/js/graphql.js +6 -6
- package/js/host.js +5 -5
- package/js/index.js +3 -3
- package/js/mcp/effect.js +7 -7
- package/js/mcp/stdio.js +7 -7
- package/js/mcp.js +8 -8
- package/js/openapi.js +4 -4
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/contracts/host.d.ts +9 -9
- package/types/apps/src/contracts/protocol-version.d.ts +1 -1
- package/types/apps/src/contracts/protocols/1.d.ts +486 -9
- package/types/apps/src/contracts/protocols/10.d.ts +6 -6
- package/types/apps/src/contracts/protocols/2.d.ts +5 -4
- package/types/apps/src/contracts/protocols/3.d.ts +69 -8
- package/types/apps/src/contracts/protocols/4.d.ts +18 -9
- package/types/apps/src/contracts/protocols/5.d.ts +31 -5
- package/types/apps/src/contracts/protocols/6.d.ts +14 -5
- package/types/apps/src/contracts/protocols/7.d.ts +6 -5
- package/types/apps/src/contracts/protocols/8.d.ts +61 -9
- package/types/apps/src/contracts/protocols/9.d.ts +7 -9
- package/types/apps/src/contracts/protocols/current.d.ts +2476 -0
- package/types/apps/src/contracts/protocols/oauth-6.d.ts +74 -0
- package/types/apps/src/contracts/protocols/oauth.d.ts +46 -1
- package/types/apps/src/implementation/router-catalog.d.ts +2 -2
- package/types/apps/src/implementation/webhooks.d.ts +1 -1
- package/types/apps/src/contracts/protocols/11.d.ts +0 -1098
|
@@ -23,8 +23,8 @@ export * from "./events.js";
|
|
|
23
23
|
export { AccountId, HttpUrl } from "./schema.js";
|
|
24
24
|
export { OAuthClientAuth, OAuthSecretClientAuth, OAuthTokenRequestFormat, OAuthTokenResponse, } from "./provider.js";
|
|
25
25
|
/**
|
|
26
|
-
* The host protocol this framework speaks and its wire schemas
|
|
27
|
-
*
|
|
26
|
+
* The host protocol this framework speaks and its wire schemas, from `protocols/current.ts`. The
|
|
27
|
+
* released protocol modules are frozen records that host adapters read.
|
|
28
28
|
*/
|
|
29
29
|
export { frameworkProtocol } from "./protocol-version.js";
|
|
30
30
|
export { protocol1 } from "./protocols/1.js";
|
|
@@ -33,20 +33,20 @@ export { protocol3 } from "./protocols/3.js";
|
|
|
33
33
|
export { protocol4 } from "./protocols/4.js";
|
|
34
34
|
export { protocol5 } from "./protocols/5.js";
|
|
35
35
|
export { protocol6 } from "./protocols/6.js";
|
|
36
|
-
export { protocol7
|
|
36
|
+
export { protocol7 } from "./protocols/7.js";
|
|
37
37
|
export { protocol8 } from "./protocols/8.js";
|
|
38
38
|
export { protocol9 } from "./protocols/9.js";
|
|
39
|
-
export { protocol10
|
|
40
|
-
export { protocol11 } from "./protocols/
|
|
39
|
+
export { protocol10 } from "./protocols/10.js";
|
|
40
|
+
export { current as protocol11, AccountCheckCommand, CredentialHost, MigrateCommand, MigrateResult, } from "./protocols/current.js";
|
|
41
41
|
export { AccountCheckResult, AccountInfo } from "./provider.js";
|
|
42
|
-
import { HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostInputInvalid, HostKindMismatch, HostOperationFailed, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, McpError, SkillLoadFailed, SkillSources, type InvocationDeadline, ResolvedAccounts, type SkillCatalogResponse, type TrustedToolApproval } from "./protocols/
|
|
43
|
-
export { DeclaredRequirements, HostRequest } from "./protocols/
|
|
42
|
+
import { HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostInputInvalid, HostKindMismatch, HostOperationFailed, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, McpError, SkillLoadFailed, SkillSources, type InvocationDeadline, ResolvedAccounts, type SkillCatalogResponse, type TrustedToolApproval } from "./protocols/current.js";
|
|
43
|
+
export { DeclaredRequirements, HostRequest } from "./protocols/current.js";
|
|
44
44
|
/**
|
|
45
45
|
* The MCP and skill loader failures as they cross the host boundary. Apps throw the author-facing
|
|
46
46
|
* classes from `apps/mcp` and `apps/skills`.
|
|
47
47
|
*/
|
|
48
|
-
export { McpError, SkillLoadFailed } from "./protocols/
|
|
49
|
-
export { DeclaredAuthMethod, DeclaredProvider, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, HostedTool, HostedToolSummary, HostRouterError, HostedRouter, HostedCatalog, HostedCatalogSummary, SkillSources, SkillCatalogResponse, HostRequestInvalid, HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostOperationNotFound, HostOperationFailed, HostToolNotFound, HostKindMismatch, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, HostError, HostResponse, HostInvocation, } from "./protocols/
|
|
48
|
+
export { McpError, SkillLoadFailed } from "./protocols/current.js";
|
|
49
|
+
export { DeclaredAuthMethod, DeclaredProvider, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, HostedTool, HostedToolSummary, HostRouterError, HostedRouter, HostedCatalog, HostedCatalogSummary, SkillSources, SkillCatalogResponse, HostRequestInvalid, HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostOperationNotFound, HostOperationFailed, HostToolNotFound, HostKindMismatch, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, HostError, HostResponse, HostInvocation, } from "./protocols/current.js";
|
|
50
50
|
/** Raw host inputs; the host boundary parses and redacts these immediately. */
|
|
51
51
|
export type ResolvedAccountsInput = typeof ResolvedAccounts.Encoded;
|
|
52
52
|
/** Trusted invocation context, supplied separately from the Request. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The host protocol this framework speaks. It is written into `runtime.json` and every host
|
|
3
|
-
* snapshot.
|
|
3
|
+
* snapshot. Its schemas are `protocols/current.ts`; released protocols are frozen. See notes/apps-publishing.md.
|
|
4
4
|
* This file has no imports so the package build script can read it directly.
|
|
5
5
|
*/
|
|
6
6
|
export declare const frameworkProtocol = 11;
|
|
@@ -3,15 +3,490 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This protocol is released and frozen. Retained builds and published `apps` versions speak it,
|
|
5
5
|
* and every later host must keep running and rebuilding them unchanged. `bun run check` compares
|
|
6
|
-
* `protocol1` with `packages/apps/protocols/1.json` and fails on any difference
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* See notes/apps-publishing.md.
|
|
6
|
+
* `protocol1` with `packages/apps/protocols/1.json` and fails on any difference. The module imports
|
|
7
|
+
* only `effect` and the frozen OAuth sibling `./oauth.ts`, so no change elsewhere in the repository
|
|
8
|
+
* can alter it. Do not edit it to change the wire format: define the next protocol instead and
|
|
9
|
+
* give the host an adapter for this one. See notes/apps-publishing.md.
|
|
11
10
|
*/
|
|
12
11
|
import { Schema } from "effect";
|
|
13
|
-
import
|
|
14
|
-
|
|
12
|
+
import * as McpSchema from "effect/ai/McpSchema";
|
|
13
|
+
/** JSON values carried by remote protocols such as MCP. */
|
|
14
|
+
export declare const JsonValue: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
15
|
+
export type JsonValue = Schema.Json;
|
|
16
|
+
/** A JSON object, distinct from an authored value schema. */
|
|
17
|
+
export declare const JsonObject: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18
|
+
export type JsonObject = typeof JsonObject.Type;
|
|
19
|
+
/** Stable saved account identity supplied by a host, unchanged across refreshes. */
|
|
20
|
+
export declare const AccountId: Schema.brand<Schema.String, "acc">;
|
|
21
|
+
/** Parsed saved account identity. */
|
|
22
|
+
export type AccountId = typeof AccountId.Type;
|
|
23
|
+
declare const CacheError_base: Schema.Class<CacheError, Schema.TaggedStruct<"CacheError", {
|
|
24
|
+
readonly reason: Schema.Literals<readonly ["unavailable", "storage", "invalid", "capacity", "timeout"]>;
|
|
25
|
+
}>, import("effect/Cause").YieldableError>;
|
|
26
|
+
/** Expected cache failures never include keys, values or upstream exception text. */
|
|
27
|
+
export declare class CacheError extends CacheError_base {
|
|
28
|
+
}
|
|
29
|
+
/** Stored values carry a version independent of their freshness clock. */
|
|
30
|
+
export declare const CacheEntry: Schema.Struct<{
|
|
31
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
32
|
+
readonly version: Schema.String;
|
|
33
|
+
readonly freshUntil: Schema.Finite;
|
|
34
|
+
readonly staleUntil: Schema.Finite;
|
|
35
|
+
}>;
|
|
36
|
+
/** Decoded cache value envelope. */
|
|
37
|
+
export type CacheEntry = typeof CacheEntry.Type;
|
|
38
|
+
/**
|
|
39
|
+
* Publication requires the lease acquired against the previously observed version.
|
|
40
|
+
* `acquire` reads one entry and claims its load in the same transaction, so a cache
|
|
41
|
+
* miss costs one round trip. `read` and `claim` remain for builds retained before it.
|
|
42
|
+
*/
|
|
43
|
+
export declare const CacheCommand: Schema.Union<readonly [Schema.Struct<{
|
|
44
|
+
readonly operation: Schema.Literal<"read">;
|
|
45
|
+
readonly keys: Schema.$Array<Schema.String>;
|
|
46
|
+
}>, Schema.Struct<{
|
|
47
|
+
readonly operation: Schema.Literal<"acquire">;
|
|
48
|
+
readonly key: Schema.String;
|
|
49
|
+
/** Claim even a fresh entry, as an explicit refresh does. */
|
|
50
|
+
readonly refresh: Schema.Boolean;
|
|
51
|
+
/** Claim only while the entry still has this version. Absent accepts the current one. */
|
|
52
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
53
|
+
}>, Schema.Struct<{
|
|
54
|
+
readonly operation: Schema.Literal<"claim">;
|
|
55
|
+
readonly key: Schema.String;
|
|
56
|
+
readonly version: Schema.NullOr<Schema.String>;
|
|
57
|
+
}>, Schema.Struct<{
|
|
58
|
+
readonly operation: Schema.Literal<"publish">;
|
|
59
|
+
readonly key: Schema.String;
|
|
60
|
+
readonly lease: Schema.String;
|
|
61
|
+
readonly entry: Schema.Struct<{
|
|
62
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
63
|
+
readonly version: Schema.String;
|
|
64
|
+
readonly freshUntil: Schema.Finite;
|
|
65
|
+
readonly staleUntil: Schema.Finite;
|
|
66
|
+
}>;
|
|
67
|
+
}>, Schema.Struct<{
|
|
68
|
+
readonly operation: Schema.Literal<"release">;
|
|
69
|
+
readonly key: Schema.String;
|
|
70
|
+
readonly lease: Schema.String;
|
|
71
|
+
}>, Schema.Struct<{
|
|
72
|
+
readonly operation: Schema.Literal<"renew">;
|
|
73
|
+
readonly key: Schema.String;
|
|
74
|
+
readonly lease: Schema.String;
|
|
75
|
+
}>, Schema.Struct<{
|
|
76
|
+
readonly operation: Schema.Literal<"write">;
|
|
77
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
78
|
+
readonly key: Schema.String;
|
|
79
|
+
readonly entry: Schema.Struct<{
|
|
80
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
81
|
+
readonly version: Schema.String;
|
|
82
|
+
readonly freshUntil: Schema.Finite;
|
|
83
|
+
readonly staleUntil: Schema.Finite;
|
|
84
|
+
}>;
|
|
85
|
+
}>>;
|
|
86
|
+
}>, Schema.Struct<{
|
|
87
|
+
readonly operation: Schema.Literal<"invalidate">;
|
|
88
|
+
readonly key: Schema.String;
|
|
89
|
+
}>]>;
|
|
90
|
+
/** Parsed host command; namespaces cannot be selected by app code. */
|
|
91
|
+
export type CacheCommand = typeof CacheCommand.Type;
|
|
92
|
+
/** Safe protocol envelope used at process boundaries. */
|
|
93
|
+
export declare const CacheReply: Schema.Union<readonly [Schema.Struct<{
|
|
94
|
+
readonly ok: Schema.Literal<true>;
|
|
95
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
96
|
+
}>, Schema.Struct<{
|
|
97
|
+
readonly ok: Schema.Literal<false>;
|
|
98
|
+
readonly error: typeof CacheError;
|
|
99
|
+
}>]>;
|
|
100
|
+
/** Names have Lakebed's identifier shape and are always bound SQL values, never raw SQL. */
|
|
101
|
+
export declare const DataName: Schema.String;
|
|
102
|
+
/** Stored fields and index terms use finite scalar values; absent optional fields are represented by null in transport. */
|
|
103
|
+
export declare const Scalar: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>;
|
|
104
|
+
export type Scalar = typeof Scalar.Type;
|
|
105
|
+
export declare const Field: Schema.Struct<{
|
|
106
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
107
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
108
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
109
|
+
readonly references: Schema.optional<Schema.String>;
|
|
110
|
+
}>;
|
|
111
|
+
export type Field = typeof Field.Type;
|
|
112
|
+
export declare const Index: Schema.Struct<{
|
|
113
|
+
readonly name: Schema.String;
|
|
114
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
115
|
+
}>;
|
|
116
|
+
export declare const Table: Schema.Struct<{
|
|
117
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
118
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
119
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
120
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
121
|
+
readonly references: Schema.optional<Schema.String>;
|
|
122
|
+
}>>;
|
|
123
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
124
|
+
readonly name: Schema.String;
|
|
125
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
126
|
+
}>>;
|
|
127
|
+
}>;
|
|
128
|
+
export type Table = typeof Table.Type;
|
|
129
|
+
export declare const DatabaseSchema: Schema.$Record<Schema.String, Schema.Struct<{
|
|
130
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
131
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
132
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
133
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
134
|
+
readonly references: Schema.optional<Schema.String>;
|
|
135
|
+
}>>;
|
|
136
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
137
|
+
readonly name: Schema.String;
|
|
138
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
139
|
+
}>>;
|
|
140
|
+
}>>;
|
|
141
|
+
export type DatabaseSchema = typeof DatabaseSchema.Type;
|
|
142
|
+
/** Longest agent guidance an API error's recovery carries. */
|
|
143
|
+
export declare const maxApiErrorInstructionsLength = 4096;
|
|
144
|
+
/** Bounded recovery a declared API error published for its caller: a short next step and agent guidance. */
|
|
145
|
+
export declare const ApiErrorRecovery: Schema.Struct<{
|
|
146
|
+
readonly action: Schema.NonEmptyString;
|
|
147
|
+
readonly instructions: Schema.NonEmptyString;
|
|
148
|
+
}>;
|
|
149
|
+
/** Recovery copied from an error response body; extra keys are dropped on decode. */
|
|
150
|
+
export type ApiErrorRecovery = typeof ApiErrorRecovery.Type;
|
|
151
|
+
/** Longest message an API error response carries. */
|
|
152
|
+
export declare const maxApiErrorMessageLength = 4096;
|
|
153
|
+
/** Bounded public fields from a response matching its declared API error schema. */
|
|
154
|
+
export declare const ApiErrorResponse: Schema.Struct<{
|
|
155
|
+
readonly code: Schema.NonEmptyString;
|
|
156
|
+
readonly status: Schema.Int;
|
|
157
|
+
readonly message: Schema.NonEmptyString;
|
|
158
|
+
readonly recovery: Schema.optionalKey<Schema.Struct<{
|
|
159
|
+
readonly action: Schema.NonEmptyString;
|
|
160
|
+
readonly instructions: Schema.NonEmptyString;
|
|
161
|
+
}>>;
|
|
162
|
+
}>;
|
|
163
|
+
/** Safe projection of a response matching a declared API error schema. */
|
|
164
|
+
export type ApiErrorResponse = typeof ApiErrorResponse.Type;
|
|
165
|
+
declare const OpenapiResponseError_base: Schema.Class<OpenapiResponseError, Schema.TaggedStruct<"OpenapiResponseError", {
|
|
166
|
+
readonly code: Schema.NonEmptyString;
|
|
167
|
+
readonly status: Schema.Int;
|
|
168
|
+
readonly message: Schema.NonEmptyString;
|
|
169
|
+
readonly recovery: Schema.optionalKey<Schema.Struct<{
|
|
170
|
+
readonly action: Schema.NonEmptyString;
|
|
171
|
+
readonly instructions: Schema.NonEmptyString;
|
|
172
|
+
}>>;
|
|
173
|
+
}>, import("effect/Cause").YieldableError>;
|
|
174
|
+
/** A validated OpenAPI failure with its declared message or static schema explanation. */
|
|
175
|
+
export declare class OpenapiResponseError extends OpenapiResponseError_base {
|
|
176
|
+
}
|
|
177
|
+
/** Plain-data form request derived from the pinned MCP protocol schema. */
|
|
178
|
+
export declare const FormElicitation: Schema.Struct<{
|
|
179
|
+
readonly mode: Schema.Literal<"form">;
|
|
180
|
+
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
181
|
+
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
182
|
+
readonly type: Schema.tag<"object">;
|
|
183
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof McpSchema.LegacyTitledEnum, Schema.Union<readonly [typeof McpSchema.UntitledSingleSelectEnum, typeof McpSchema.TitledSingleSelectEnum]>, Schema.Union<readonly [typeof McpSchema.UntitledMultiSelectEnum, typeof McpSchema.TitledMultiSelectEnum]>]>, typeof McpSchema.ElicitationString, typeof McpSchema.ElicitationNumber, typeof McpSchema.ElicitationBoolean]>>;
|
|
184
|
+
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
185
|
+
}>>;
|
|
186
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
187
|
+
readonly message: Schema.String;
|
|
188
|
+
}>;
|
|
189
|
+
export type FormElicitation = typeof FormElicitation.Type;
|
|
190
|
+
/** MCP accept/decline/cancel response, without imposing a client or transport on app code. */
|
|
191
|
+
export declare const ElicitationResponse: Schema.Union<readonly [Schema.Struct<{
|
|
192
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
193
|
+
readonly action: Schema.Literal<"accept">;
|
|
194
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
195
|
+
}>, Schema.Struct<{
|
|
196
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
197
|
+
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
198
|
+
}>]>;
|
|
199
|
+
export type ElicitationResponse = typeof ElicitationResponse.Type;
|
|
200
|
+
declare const ElicitationFailed_base: Schema.Class<ElicitationFailed, Schema.TaggedStruct<"ElicitationFailed", {
|
|
201
|
+
readonly reason: Schema.Literals<readonly ["unavailable", "transaction", "invalid-request", "invalid-response", "transport", "expired", "forbidden"]>;
|
|
202
|
+
}>, import("effect/Cause").YieldableError>;
|
|
203
|
+
/** A tool interaction could not be delivered or its request/response was invalid. No private payload is retained. */
|
|
204
|
+
export declare class ElicitationFailed extends ElicitationFailed_base {
|
|
205
|
+
}
|
|
206
|
+
/** Safe reply for a runtime that crosses an RPC boundary. */
|
|
207
|
+
export declare const ElicitationReply: Schema.Union<readonly [Schema.Struct<{
|
|
208
|
+
readonly ok: Schema.Literal<true>;
|
|
209
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
210
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
211
|
+
readonly action: Schema.Literal<"accept">;
|
|
212
|
+
readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
213
|
+
}>, Schema.Struct<{
|
|
214
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
215
|
+
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
216
|
+
}>]>;
|
|
217
|
+
}>, Schema.Struct<{
|
|
218
|
+
readonly ok: Schema.Literal<false>;
|
|
219
|
+
readonly error: typeof ElicitationFailed;
|
|
220
|
+
}>]>;
|
|
221
|
+
export type ElicitationReply = typeof ElicitationReply.Type;
|
|
222
|
+
/** Invocation consent requests no additional fields; arguments are reviewed, never edited in the form. */
|
|
223
|
+
export declare const ApprovalElicitation: Schema.Struct<{
|
|
224
|
+
readonly requestedSchema: Schema.Struct<{
|
|
225
|
+
readonly type: Schema.Literal<"object">;
|
|
226
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Never>;
|
|
227
|
+
}>;
|
|
228
|
+
readonly mode: Schema.Literal<"form">;
|
|
229
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
230
|
+
readonly message: Schema.String;
|
|
231
|
+
}>;
|
|
232
|
+
export type ApprovalElicitation = typeof ApprovalElicitation.Type;
|
|
233
|
+
/** Dispatch coalesces overdue ticks, so sub-minute intervals promise a cadence the runner cannot keep. */
|
|
234
|
+
export declare const minimumIntervalMilliseconds = 60000;
|
|
235
|
+
/** Calendar schedules use five cron fields and an explicit IANA time zone. */
|
|
236
|
+
export declare const CalendarSchedule: Schema.Struct<{
|
|
237
|
+
readonly expression: Schema.NonEmptyString;
|
|
238
|
+
readonly timezone: Schema.NonEmptyString;
|
|
239
|
+
}>;
|
|
240
|
+
/** Validated timing crosses all runtime and persistence boundaries as data. */
|
|
241
|
+
export declare const ScheduleTiming: Schema.Union<readonly [Schema.Struct<{
|
|
242
|
+
readonly kind: Schema.Literal<"interval">;
|
|
243
|
+
readonly milliseconds: Schema.Int;
|
|
244
|
+
}>, Schema.Struct<{
|
|
245
|
+
readonly kind: Schema.Literal<"cron">;
|
|
246
|
+
readonly calendar: Schema.Struct<{
|
|
247
|
+
readonly expression: Schema.NonEmptyString;
|
|
248
|
+
readonly timezone: Schema.NonEmptyString;
|
|
249
|
+
}>;
|
|
250
|
+
}>]>;
|
|
251
|
+
export type ScheduleTiming = typeof ScheduleTiming.Type;
|
|
252
|
+
/** A named trigger attached to the mutation it invokes, including schema-validated arguments. */
|
|
253
|
+
export declare const OperationSchedule: Schema.Struct<{
|
|
254
|
+
readonly name: Schema.NonEmptyString;
|
|
255
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
256
|
+
readonly kind: Schema.Literal<"interval">;
|
|
257
|
+
readonly milliseconds: Schema.Int;
|
|
258
|
+
}>, Schema.Struct<{
|
|
259
|
+
readonly kind: Schema.Literal<"cron">;
|
|
260
|
+
readonly calendar: Schema.Struct<{
|
|
261
|
+
readonly expression: Schema.NonEmptyString;
|
|
262
|
+
readonly timezone: Schema.NonEmptyString;
|
|
263
|
+
}>;
|
|
264
|
+
}>]>;
|
|
265
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
266
|
+
}>;
|
|
267
|
+
export type OperationSchedule = typeof OperationSchedule.Type;
|
|
268
|
+
/** Canonical resource path within one skill. */
|
|
269
|
+
export declare const SkillFilePath: Schema.NonEmptyString;
|
|
270
|
+
/** UTF-8 text resource. Reading a resource never executes it. */
|
|
271
|
+
export declare const SkillFile: Schema.Struct<{
|
|
272
|
+
readonly path: Schema.NonEmptyString;
|
|
273
|
+
readonly content: Schema.String;
|
|
274
|
+
}>;
|
|
275
|
+
export type SkillFile = typeof SkillFile.Type;
|
|
276
|
+
/** Agent Skills format constraints, not Executor execution or storage budgets. */
|
|
277
|
+
export declare const skillFormatLimits: {
|
|
278
|
+
readonly nameCharacters: 64;
|
|
279
|
+
readonly descriptionCharacters: 1024;
|
|
280
|
+
readonly compatibilityCharacters: 500;
|
|
281
|
+
};
|
|
282
|
+
/** A lowercase alphanumeric skill directory name with single separating hyphens. */
|
|
283
|
+
export declare const AppSkillName: Schema.NonEmptyString;
|
|
284
|
+
/** Frontmatter is metadata only. In particular, allowed-tools never grants execution authority. */
|
|
285
|
+
export declare const AppSkillMetadata: Schema.Struct<{
|
|
286
|
+
readonly name: Schema.NonEmptyString;
|
|
287
|
+
readonly description: Schema.String;
|
|
288
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
289
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
290
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
291
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
292
|
+
}>;
|
|
293
|
+
export type AppSkillMetadata = typeof AppSkillMetadata.Type;
|
|
294
|
+
/** Files use paths relative to this skill directory; reading one never executes its contents. */
|
|
295
|
+
export declare const AppSkillSource: Schema.Struct<{
|
|
296
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
297
|
+
readonly path: Schema.NonEmptyString;
|
|
298
|
+
readonly content: Schema.String;
|
|
299
|
+
}>>;
|
|
300
|
+
readonly name: Schema.NonEmptyString;
|
|
301
|
+
readonly description: Schema.String;
|
|
302
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
303
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
304
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
305
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
306
|
+
}>;
|
|
307
|
+
export type AppSkillSource = typeof AppSkillSource.Type;
|
|
308
|
+
/** One evaluated catalog cannot contain ambiguous names. */
|
|
309
|
+
export declare const AppSkills: Schema.$Array<Schema.Struct<{
|
|
310
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
311
|
+
readonly path: Schema.NonEmptyString;
|
|
312
|
+
readonly content: Schema.String;
|
|
313
|
+
}>>;
|
|
314
|
+
readonly name: Schema.NonEmptyString;
|
|
315
|
+
readonly description: Schema.String;
|
|
316
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
317
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
318
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
319
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
320
|
+
}>>;
|
|
321
|
+
/** Advisory tool hints; neither the framework nor these declarations enforce access. */
|
|
322
|
+
export declare const ToolAnnotations: Schema.Struct<{
|
|
323
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
324
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
325
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
326
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
327
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
328
|
+
}>;
|
|
329
|
+
export type ToolAnnotations = typeof ToolAnnotations.Type;
|
|
330
|
+
/** Raw-byte ceiling shared by callback HTTP, app execution and the encoded host protocol. */
|
|
331
|
+
export declare const WebhookTransportLimits: Schema.Struct<{
|
|
332
|
+
readonly maxBodyBytes: Schema.Int;
|
|
333
|
+
}>;
|
|
334
|
+
export type WebhookTransportLimits = typeof WebhookTransportLimits.Type;
|
|
335
|
+
/** Requests and responses use the same existing transport bound. */
|
|
336
|
+
export declare const defaultWebhookTransportLimits: {
|
|
337
|
+
readonly maxBodyBytes: number;
|
|
338
|
+
};
|
|
339
|
+
/** Bounded callback transport. Headers and base64 bytes preserve the provider signature input. */
|
|
340
|
+
export declare const WebhookRequestData: Schema.Struct<{
|
|
341
|
+
readonly url: Schema.String;
|
|
342
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
343
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
344
|
+
readonly body: Schema.String;
|
|
345
|
+
}>;
|
|
346
|
+
/** Each command runs with a fresh factory and the subscription's saved account selections. */
|
|
347
|
+
export declare const WebhookCommand: Schema.Union<readonly [Schema.Struct<{
|
|
348
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
349
|
+
}>, Schema.Struct<{
|
|
350
|
+
readonly name: Schema.NonEmptyString;
|
|
351
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
352
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
353
|
+
readonly callbackUrl: Schema.String;
|
|
354
|
+
readonly secret: Schema.String;
|
|
355
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
356
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
357
|
+
}>, Schema.Struct<{
|
|
358
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
359
|
+
readonly name: Schema.NonEmptyString;
|
|
360
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
361
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
362
|
+
readonly callbackUrl: Schema.String;
|
|
363
|
+
readonly secret: Schema.String;
|
|
364
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
365
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
366
|
+
}>, Schema.Struct<{
|
|
367
|
+
readonly name: Schema.NonEmptyString;
|
|
368
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
369
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
370
|
+
readonly callbackUrl: Schema.String;
|
|
371
|
+
readonly secret: Schema.String;
|
|
372
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
373
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
374
|
+
}>, Schema.Struct<{
|
|
375
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
376
|
+
readonly name: Schema.NonEmptyString;
|
|
377
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
378
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
379
|
+
readonly callbackUrl: Schema.String;
|
|
380
|
+
readonly secret: Schema.String;
|
|
381
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
382
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
383
|
+
}>, Schema.Struct<{
|
|
384
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
385
|
+
readonly request: Schema.Struct<{
|
|
386
|
+
readonly url: Schema.String;
|
|
387
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
388
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
389
|
+
readonly body: Schema.String;
|
|
390
|
+
}>;
|
|
391
|
+
readonly name: Schema.NonEmptyString;
|
|
392
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
393
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
394
|
+
readonly callbackUrl: Schema.String;
|
|
395
|
+
readonly secret: Schema.String;
|
|
396
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
397
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
398
|
+
}>]>;
|
|
399
|
+
/** Parsed framework command; contains private host inputs and must not be logged. */
|
|
400
|
+
export type WebhookCommand = typeof WebhookCommand.Type;
|
|
401
|
+
/** Run identity is opaque and shared by author and SDK interfaces. */
|
|
402
|
+
export declare const WorkflowRunId: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
403
|
+
export type WorkflowRunId = typeof WorkflowRunId.Type;
|
|
404
|
+
/** Stable names identify declarations and replay steps. */
|
|
405
|
+
export declare const WorkflowName: Schema.NonEmptyString;
|
|
406
|
+
/** Convert portable duration syntax to milliseconds; invalid or overflowing values are rejected. */
|
|
407
|
+
export declare const workflowDurationMillis: (value: number | string) => number | undefined;
|
|
408
|
+
/** Numbers are milliseconds; strings use a quantity and full unit, such as "5 minutes". */
|
|
409
|
+
export declare const WorkflowDuration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
410
|
+
export type WorkflowDuration = typeof WorkflowDuration.Type;
|
|
411
|
+
/** Author retry and timeout options are passed to the durable engine. */
|
|
412
|
+
export declare const WorkflowStepOptions: Schema.Struct<{
|
|
413
|
+
readonly retries: Schema.optionalKey<Schema.Struct<{
|
|
414
|
+
readonly limit: Schema.Int;
|
|
415
|
+
readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
416
|
+
readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
|
|
417
|
+
}>>;
|
|
418
|
+
readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
|
|
419
|
+
}>;
|
|
420
|
+
export type WorkflowStepOptions = typeof WorkflowStepOptions.Type;
|
|
421
|
+
/** Step outputs must fit the engine's persisted JSON result limit. */
|
|
422
|
+
export declare const WorkflowValue: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
423
|
+
/** Private replay metadata is attached by the host, never accepted in author input. */
|
|
424
|
+
export declare const WorkflowReplay: Schema.Struct<{
|
|
425
|
+
readonly key: Schema.NonEmptyString;
|
|
426
|
+
readonly fingerprint: Schema.NonEmptyString;
|
|
427
|
+
}>;
|
|
428
|
+
export type WorkflowReplay = typeof WorkflowReplay.Type;
|
|
429
|
+
/** Portable discovery, input validation and execution commands. */
|
|
430
|
+
export declare const WorkflowCommand: Schema.Union<readonly [Schema.Struct<{
|
|
431
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
432
|
+
}>, Schema.Struct<{
|
|
433
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
434
|
+
readonly name: Schema.NonEmptyString;
|
|
435
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
436
|
+
}>, Schema.Struct<{
|
|
437
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
438
|
+
readonly name: Schema.NonEmptyString;
|
|
439
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
440
|
+
}>]>;
|
|
441
|
+
export type WorkflowCommand = typeof WorkflowCommand.Type;
|
|
442
|
+
/** Private invocation RPC protocol shared by the host and isolated app bundle. */
|
|
443
|
+
export declare const WorkflowRpcCommand: Schema.Union<readonly [Schema.Struct<{
|
|
444
|
+
readonly operation: Schema.Literal<"do">;
|
|
445
|
+
readonly name: Schema.NonEmptyString;
|
|
446
|
+
readonly options: Schema.Struct<{
|
|
447
|
+
readonly retries: Schema.optionalKey<Schema.Struct<{
|
|
448
|
+
readonly limit: Schema.Int;
|
|
449
|
+
readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
450
|
+
readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
|
|
451
|
+
}>>;
|
|
452
|
+
readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
|
|
453
|
+
}>;
|
|
454
|
+
}>, Schema.Struct<{
|
|
455
|
+
readonly operation: Schema.Literal<"sleep">;
|
|
456
|
+
readonly name: Schema.NonEmptyString;
|
|
457
|
+
readonly duration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
458
|
+
}>, Schema.Struct<{
|
|
459
|
+
readonly operation: Schema.Literal<"until">;
|
|
460
|
+
readonly name: Schema.NonEmptyString;
|
|
461
|
+
readonly timestamp: Schema.Finite;
|
|
462
|
+
}>, Schema.Struct<{
|
|
463
|
+
readonly operation: Schema.Literal<"context">;
|
|
464
|
+
}>, Schema.Struct<{
|
|
465
|
+
readonly operation: Schema.Literal<"invoke">;
|
|
466
|
+
readonly kind: Schema.Literals<readonly ["query", "mutation"]>;
|
|
467
|
+
readonly name: Schema.NonEmptyString;
|
|
468
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
469
|
+
readonly stepId: Schema.NonEmptyString;
|
|
470
|
+
readonly timeout: Schema.Finite;
|
|
471
|
+
}>]>;
|
|
472
|
+
/** Serializable requests do not contain an app ID; authority is captured in the supplied capability. */
|
|
473
|
+
export declare const WorkflowControlCommand: Schema.Union<readonly [Schema.Struct<{
|
|
474
|
+
readonly operation: Schema.Literal<"start">;
|
|
475
|
+
readonly workflow: Schema.NonEmptyString;
|
|
476
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
477
|
+
readonly key: Schema.optionalKey<Schema.NonEmptyString>;
|
|
478
|
+
}>, Schema.Struct<{
|
|
479
|
+
readonly operation: Schema.Literal<"get">;
|
|
480
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
481
|
+
}>, Schema.Struct<{
|
|
482
|
+
readonly operation: Schema.Literal<"list">;
|
|
483
|
+
readonly workflow: Schema.optionalKey<Schema.NonEmptyString>;
|
|
484
|
+
readonly cursor: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
485
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
486
|
+
}>, Schema.Struct<{
|
|
487
|
+
readonly operation: Schema.Literal<"terminate">;
|
|
488
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
489
|
+
}>]>;
|
|
15
490
|
declare const ProviderError_base: Schema.Class<ProviderError, Schema.TaggedStruct<"ProviderError", {
|
|
16
491
|
readonly reason: Schema.Literals<readonly ["unauthorized", "forbidden", "rate_limited", "unavailable", "rejected"]>;
|
|
17
492
|
readonly status: Schema.optional<Schema.Int>;
|
|
@@ -1634,7 +2109,7 @@ export declare const protocol1: {
|
|
|
1634
2109
|
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
1635
2110
|
readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1636
2111
|
readonly type: Schema.tag<"object">;
|
|
1637
|
-
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof
|
|
2112
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof McpSchema.LegacyTitledEnum, Schema.Union<readonly [typeof McpSchema.UntitledSingleSelectEnum, typeof McpSchema.TitledSingleSelectEnum]>, Schema.Union<readonly [typeof McpSchema.UntitledMultiSelectEnum, typeof McpSchema.TitledMultiSelectEnum]>]>, typeof McpSchema.ElicitationString, typeof McpSchema.ElicitationNumber, typeof McpSchema.ElicitationBoolean]>>;
|
|
1638
2113
|
readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1639
2114
|
}>>;
|
|
1640
2115
|
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
@@ -1713,7 +2188,9 @@ export declare const protocol1: {
|
|
|
1713
2188
|
}>, Schema.Struct<{
|
|
1714
2189
|
readonly operation: Schema.Literal<"acquire">;
|
|
1715
2190
|
readonly key: Schema.String;
|
|
2191
|
+
/** Claim even a fresh entry, as an explicit refresh does. */
|
|
1716
2192
|
readonly refresh: Schema.Boolean;
|
|
2193
|
+
/** Claim only while the entry still has this version. Absent accepts the current one. */
|
|
1717
2194
|
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1718
2195
|
}>, Schema.Struct<{
|
|
1719
2196
|
readonly operation: Schema.Literal<"claim">;
|
|
@@ -1757,7 +2234,7 @@ export declare const protocol1: {
|
|
|
1757
2234
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1758
2235
|
}>, Schema.Struct<{
|
|
1759
2236
|
readonly ok: Schema.Literal<false>;
|
|
1760
|
-
readonly error: typeof
|
|
2237
|
+
readonly error: typeof CacheError;
|
|
1761
2238
|
}>]>;
|
|
1762
2239
|
};
|
|
1763
2240
|
};
|
|
@@ -1005,11 +1005,11 @@ export declare const protocol10: {
|
|
|
1005
1005
|
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
1006
1006
|
}>, Schema.Struct<{
|
|
1007
1007
|
readonly ok: Schema.Literal<false>;
|
|
1008
|
-
readonly error: Schema.Union<readonly [typeof import("
|
|
1008
|
+
readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof import("./8.js").ProviderError, typeof import("./9.js").McpError, typeof import("./9.js").SkillLoadFailed, typeof import("./3.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof import("./8.js").HostDeclarationInvalid, typeof import("./8.js").HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./8.js").HostOperationFailed, typeof import("./3.js").DatabaseLimitExceeded, typeof import("./3.js").DatabaseFieldReserved, typeof import("./1.js").HostToolNotFound, typeof import("./1.js").HostInputInvalid, typeof import("./1.js").HostOutputInvalid, typeof import("./1.js").HostToolBlocked, typeof import("./1.js").HostToolApprovalRequired, typeof import("./1.js").HostToolPolicyFailed, typeof import("./1.js").ElicitationFailed, typeof import("./4.js").HostKindMismatch]>;
|
|
1009
1009
|
}>]>;
|
|
1010
1010
|
readonly catalog: Schema.Struct<{
|
|
1011
1011
|
readonly routers: Schema.$Array<Schema.Struct<{
|
|
1012
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("
|
|
1012
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./8.js").ProviderError, typeof import("./9.js").McpError, typeof import("./9.js").SkillLoadFailed, typeof import("./8.js").HostDeclarationInvalid, typeof import("./8.js").HostEvaluationFailed]>>;
|
|
1013
1013
|
readonly path: Schema.String;
|
|
1014
1014
|
readonly title: Schema.optionalKey<Schema.String>;
|
|
1015
1015
|
readonly description: Schema.optionalKey<Schema.String>;
|
|
@@ -1057,7 +1057,7 @@ export declare const protocol10: {
|
|
|
1057
1057
|
}>;
|
|
1058
1058
|
readonly catalogSummary: Schema.Struct<{
|
|
1059
1059
|
readonly routers: Schema.$Array<Schema.Struct<{
|
|
1060
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("
|
|
1060
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./8.js").ProviderError, typeof import("./9.js").McpError, typeof import("./9.js").SkillLoadFailed, typeof import("./8.js").HostDeclarationInvalid, typeof import("./8.js").HostEvaluationFailed]>>;
|
|
1061
1061
|
readonly path: Schema.String;
|
|
1062
1062
|
readonly title: Schema.optionalKey<Schema.String>;
|
|
1063
1063
|
readonly description: Schema.optionalKey<Schema.String>;
|
|
@@ -1339,7 +1339,7 @@ export declare const protocol10: {
|
|
|
1339
1339
|
}>]>;
|
|
1340
1340
|
}>, Schema.Struct<{
|
|
1341
1341
|
readonly ok: Schema.Literal<false>;
|
|
1342
|
-
readonly error: typeof import("
|
|
1342
|
+
readonly error: typeof import("./1.js").ElicitationFailed;
|
|
1343
1343
|
}>]>;
|
|
1344
1344
|
readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
|
|
1345
1345
|
readonly operation: Schema.Literal<"do">;
|
|
@@ -1375,7 +1375,7 @@ export declare const protocol10: {
|
|
|
1375
1375
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1376
1376
|
}>, Schema.Struct<{
|
|
1377
1377
|
readonly ok: Schema.Literal<false>;
|
|
1378
|
-
readonly error: typeof import("
|
|
1378
|
+
readonly error: typeof import("./3.js").WorkflowFailure;
|
|
1379
1379
|
}>]>;
|
|
1380
1380
|
readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
|
|
1381
1381
|
readonly operation: Schema.Literal<"start">;
|
|
@@ -1444,7 +1444,7 @@ export declare const protocol10: {
|
|
|
1444
1444
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1445
1445
|
}>, Schema.Struct<{
|
|
1446
1446
|
readonly ok: Schema.Literal<false>;
|
|
1447
|
-
readonly error: typeof import("
|
|
1447
|
+
readonly error: typeof import("./1.js").CacheError;
|
|
1448
1448
|
}>]>;
|
|
1449
1449
|
};
|
|
1450
1450
|
};
|