apps 0.0.1-beta.0 → 0.0.1-beta.1
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 +97 -4
- package/framework-reference.json +1 -1
- package/js/{chunk-BPEFS4YF.js → chunk-2HHMABB6.js} +70 -14
- package/js/{chunk-SBKHUC5L.js → chunk-4LPG6RCH.js} +2 -2
- package/js/{chunk-LOKGDT6B.js → chunk-6IIO4NPI.js} +5 -4
- package/js/chunk-6YBRWRK3.js +160 -0
- package/js/{chunk-7JXHF5IF.js → chunk-BMOIAIVR.js} +1 -1
- package/js/chunk-CZ7CSFO4.js +39 -0
- package/js/{chunk-YDR4CPJA.js → chunk-EVJUVWN2.js} +8 -8
- package/js/{chunk-2OTCEKL2.js → chunk-FW5HBOIK.js} +2352 -1493
- package/js/{chunk-EP6AEUZO.js → chunk-FZJOYIZO.js} +1 -1
- package/js/{chunk-WIDTG42X.js → chunk-G7IE6BKC.js} +79 -26
- package/js/{chunk-VFUZI3NY.js → chunk-HDJH3RPR.js} +4 -4
- package/js/{chunk-HP7E42X6.js → chunk-IHQ4ML7K.js} +693 -219
- package/js/{chunk-Q2FD5IBM.js → chunk-KOXMLKTM.js} +430 -41
- package/js/{chunk-D6BKYP2L.js → chunk-M6ZRRIBI.js} +4 -4
- package/js/chunk-NCYXZN2G.js +6274 -0
- package/js/{chunk-3ANFZFCV.js → chunk-OHRT55C4.js} +15 -15
- package/js/{chunk-R6JMJSVT.js → chunk-PLCMJREA.js} +2 -2
- package/js/{chunk-C24KEZXR.js → chunk-PZ36XMXW.js} +36 -2
- package/js/{chunk-W7Q5EOTS.js → chunk-QKHR7BMF.js} +32 -32
- package/js/{chunk-X3YBZCJW.js → chunk-RBAC33PQ.js} +59 -38
- package/js/{chunk-36DNRFZQ.js → chunk-SATWJKN6.js} +1 -1
- package/js/chunk-SWPD52J7.js +35 -0
- package/js/{chunk-BKVL7XAJ.js → chunk-TE4KO4HI.js} +1 -1
- package/js/chunk-W7D7WVSY.js +18 -0
- package/js/{chunk-KWTCHVLT.js → chunk-X7SFGU4Q.js} +47 -51
- package/js/chunk-YEJOQEII.js +104 -0
- package/js/{chunk-OWD2YICM.js → chunk-ZCAMUXSG.js} +116 -87
- package/js/chunk-ZJWDMTE3.js +63 -0
- package/js/chunk-ZTFQHGEB.js +80 -0
- package/js/client.js +11 -11
- package/js/contracts.js +81 -25
- package/js/effect.js +20 -15
- package/js/graphql.js +223 -121
- package/js/host.js +75 -19
- package/js/index.js +191 -51
- package/js/mcp/effect.js +24 -17
- package/js/mcp/stdio.js +22 -17
- package/js/mcp.js +109 -24
- package/js/openapi.js +43897 -143
- package/js/operations/approval.js +1 -1
- package/js/react.js +4 -4
- package/js/skills/effect.js +12 -0
- package/js/skills.js +857 -0
- package/js/storage/facet.js +7 -7
- package/js/ui/auth/contracts.js +6 -6
- package/js/ui/auth.js +8 -8
- package/js/ui/contracts.js +5 -5
- package/js/ui/serving.js +12 -12
- package/package.json +9 -1
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +79 -0
- package/types/app-cache/src/index.d.ts +35 -0
- package/types/apps/src/contracts/api-response-error.d.ts +43 -0
- package/types/apps/src/contracts/app.d.ts +11 -0
- package/types/apps/src/contracts/cache.d.ts +41 -0
- package/types/apps/src/contracts/dynamic-skills.d.ts +10 -0
- package/types/apps/src/contracts/dynamic-tools.d.ts +13 -0
- package/types/apps/src/contracts/graphql.d.ts +18 -1
- package/types/apps/src/contracts/host.d.ts +200 -7
- package/types/apps/src/contracts/mcp.d.ts +3 -1
- package/types/apps/src/contracts/openapi-compile.d.ts +11 -0
- package/types/apps/src/contracts/openapi-document.d.ts +53 -0
- package/types/apps/src/contracts/openapi.d.ts +150 -30
- package/types/apps/src/contracts/provider-error.d.ts +15 -0
- package/types/apps/src/contracts/provider.d.ts +18 -1
- package/types/apps/src/contracts/skills.d.ts +113 -0
- package/types/apps/src/contracts/swagger-client.d.ts +29 -0
- package/types/apps/src/graphql.d.ts +6 -6
- package/types/apps/src/host.d.ts +1 -0
- package/types/apps/src/implementation/account-operations.d.ts +122 -3
- package/types/apps/src/implementation/app.d.ts +1 -1
- package/types/apps/src/implementation/cache-session.d.ts +7 -0
- package/types/apps/src/implementation/cache.d.ts +6 -0
- package/types/apps/src/implementation/catalog-cache.d.ts +29 -0
- package/types/apps/src/implementation/dynamic-skills.d.ts +7 -0
- package/types/apps/src/implementation/dynamic-tools.d.ts +8 -0
- package/types/apps/src/implementation/elicitation.d.ts +12 -12
- package/types/apps/src/implementation/git.d.ts +25 -0
- package/types/apps/src/implementation/graphql-catalog.d.ts +10 -0
- package/types/apps/src/implementation/graphql.d.ts +81 -3
- package/types/apps/src/implementation/inflate.d.ts +16 -0
- package/types/apps/src/implementation/input-problems.d.ts +3 -0
- package/types/apps/src/implementation/mcp-call.d.ts +3 -2
- package/types/apps/src/implementation/mcp-catalog.d.ts +12 -0
- package/types/apps/src/implementation/mcp-client.d.ts +9 -8
- package/types/apps/src/implementation/mcp-stdio.d.ts +1 -1
- package/types/apps/src/implementation/mcp-tools.d.ts +6 -3
- package/types/apps/src/implementation/mcp.d.ts +39 -2
- package/types/apps/src/implementation/openapi-compile.d.ts +119 -0
- package/types/apps/src/implementation/openapi-document.d.ts +53 -0
- package/types/apps/src/implementation/openapi-request.d.ts +11 -4
- package/types/apps/src/implementation/openapi-source.d.ts +36 -0
- package/types/apps/src/implementation/openapi.d.ts +39 -3
- package/types/apps/src/implementation/provider-error.d.ts +10 -0
- package/types/apps/src/implementation/schema.d.ts +11 -5
- package/types/apps/src/implementation/skill-files.d.ts +10 -0
- package/types/apps/src/implementation/skills.d.ts +43 -0
- package/types/apps/src/index.d.ts +7 -0
- package/types/apps/src/mcp.d.ts +5 -5
- package/types/apps/src/openapi.d.ts +3 -1
- package/types/apps/src/skills.d.ts +72 -0
- package/types/telemetry/src/config.d.ts +2 -0
- package/js/chunk-22WRQZT7.js +0 -389
- package/js/chunk-MLKGABMK.js +0 -9
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
export * from "./skills.js";
|
|
2
|
+
import { SkillLoadFailed, type SkillFile } from "./skills.js";
|
|
3
|
+
import { ProviderError } from "./provider-error.js";
|
|
4
|
+
import { McpError } from "./mcp.js";
|
|
5
|
+
import { OpenapiResponseError } from "./api-response-error.js";
|
|
6
|
+
export { ApiErrorResponse, OpenapiResponseError } from "./api-response-error.js";
|
|
7
|
+
export { ProviderError } from "./provider-error.js";
|
|
8
|
+
export { McpError } from "./mcp.js";
|
|
1
9
|
import { WorkflowFailure, type WorkflowExecution, type WorkflowReplay, type WorkflowHostControls } from "./workflows.js";
|
|
2
10
|
export * from "./workflows.js";
|
|
3
11
|
/** Portable framework dispatch contracts. Requests never carry account bindings. */
|
|
@@ -21,8 +29,10 @@ export declare const DeclaredAuthMethod: Schema.Union<readonly [Schema.Struct<{
|
|
|
21
29
|
readonly discover: Schema.String;
|
|
22
30
|
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
23
31
|
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
32
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
24
33
|
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
25
34
|
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
35
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
26
36
|
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
27
37
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
28
38
|
readonly type: Schema.Literal<"oauth2">;
|
|
@@ -30,9 +40,12 @@ export declare const DeclaredAuthMethod: Schema.Union<readonly [Schema.Struct<{
|
|
|
30
40
|
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
31
41
|
readonly authorizationUrl: Schema.String;
|
|
32
42
|
readonly tokenUrl: Schema.String;
|
|
43
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
33
44
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
45
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
34
46
|
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
35
47
|
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
48
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
36
49
|
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
37
50
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
38
51
|
readonly type: Schema.Literal<"oauth2">;
|
|
@@ -42,6 +55,7 @@ export declare const DeclaredAuthMethod: Schema.Union<readonly [Schema.Struct<{
|
|
|
42
55
|
readonly discover: Schema.String;
|
|
43
56
|
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
44
57
|
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
58
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
45
59
|
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
46
60
|
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
47
61
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
@@ -50,6 +64,7 @@ export declare const DeclaredAuthMethod: Schema.Union<readonly [Schema.Struct<{
|
|
|
50
64
|
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
51
65
|
readonly grant: Schema.Literal<"client_credentials">;
|
|
52
66
|
readonly tokenUrl: Schema.String;
|
|
67
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
53
68
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
54
69
|
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
55
70
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
@@ -69,8 +84,10 @@ export declare const DeclaredProvider: Schema.Struct<{
|
|
|
69
84
|
readonly discover: Schema.String;
|
|
70
85
|
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
71
86
|
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
87
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
72
88
|
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
73
89
|
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
90
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
74
91
|
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
75
92
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
76
93
|
readonly type: Schema.Literal<"oauth2">;
|
|
@@ -78,9 +95,12 @@ export declare const DeclaredProvider: Schema.Struct<{
|
|
|
78
95
|
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
79
96
|
readonly authorizationUrl: Schema.String;
|
|
80
97
|
readonly tokenUrl: Schema.String;
|
|
98
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
81
99
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
100
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
82
101
|
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
83
102
|
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
103
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
84
104
|
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
85
105
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
86
106
|
readonly type: Schema.Literal<"oauth2">;
|
|
@@ -90,6 +110,7 @@ export declare const DeclaredProvider: Schema.Struct<{
|
|
|
90
110
|
readonly discover: Schema.String;
|
|
91
111
|
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
92
112
|
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
113
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
93
114
|
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
94
115
|
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
95
116
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
@@ -98,6 +119,7 @@ export declare const DeclaredProvider: Schema.Struct<{
|
|
|
98
119
|
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
99
120
|
readonly grant: Schema.Literal<"client_credentials">;
|
|
100
121
|
readonly tokenUrl: Schema.String;
|
|
122
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
101
123
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
102
124
|
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
103
125
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
@@ -110,6 +132,16 @@ export declare const DeclaredProvider: Schema.Struct<{
|
|
|
110
132
|
export type DeclaredProvider = typeof DeclaredProvider.Type;
|
|
111
133
|
/** Account slots available without binding accounts or evaluating the app factory. */
|
|
112
134
|
export declare const DeclaredRequirements: Schema.Struct<{
|
|
135
|
+
/** Protocol support of this retained framework build, not an author-declared requirement. */
|
|
136
|
+
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
137
|
+
readonly skills: Schema.Literal<true>;
|
|
138
|
+
/** Accepts inspect detail and tools. Earlier builds reject both as excess fields. */
|
|
139
|
+
readonly toolIndex: Schema.optionalKey<Schema.Literal<true>>;
|
|
140
|
+
/** Accepts skills sources and reports whether the catalog includes a live loader. */
|
|
141
|
+
readonly skillSources: Schema.optionalKey<Schema.Literal<true>>;
|
|
142
|
+
/** Accepts scheduled inspection. Earlier builds reject it as an excess field. */
|
|
143
|
+
readonly scheduledTools: Schema.optionalKey<Schema.Literal<true>>;
|
|
144
|
+
}>>;
|
|
113
145
|
readonly database: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
114
146
|
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
115
147
|
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
@@ -134,8 +166,10 @@ export declare const DeclaredRequirements: Schema.Struct<{
|
|
|
134
166
|
readonly discover: Schema.String;
|
|
135
167
|
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
136
168
|
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
169
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
137
170
|
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
138
171
|
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
172
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
139
173
|
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
140
174
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
141
175
|
readonly type: Schema.Literal<"oauth2">;
|
|
@@ -143,9 +177,12 @@ export declare const DeclaredRequirements: Schema.Struct<{
|
|
|
143
177
|
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
144
178
|
readonly authorizationUrl: Schema.String;
|
|
145
179
|
readonly tokenUrl: Schema.String;
|
|
180
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
146
181
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
182
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
147
183
|
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
148
184
|
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
185
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
149
186
|
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
150
187
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
151
188
|
readonly type: Schema.Literal<"oauth2">;
|
|
@@ -155,6 +192,7 @@ export declare const DeclaredRequirements: Schema.Struct<{
|
|
|
155
192
|
readonly discover: Schema.String;
|
|
156
193
|
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
157
194
|
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
195
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
158
196
|
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
159
197
|
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
160
198
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
@@ -163,6 +201,7 @@ export declare const DeclaredRequirements: Schema.Struct<{
|
|
|
163
201
|
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
164
202
|
readonly grant: Schema.Literal<"client_credentials">;
|
|
165
203
|
readonly tokenUrl: Schema.String;
|
|
204
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
166
205
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
167
206
|
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
168
207
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
@@ -190,8 +229,10 @@ export declare const ResolvedAccount: Schema.Struct<{
|
|
|
190
229
|
readonly discover: Schema.String;
|
|
191
230
|
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
192
231
|
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
232
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
193
233
|
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
194
234
|
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
235
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
195
236
|
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
196
237
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
197
238
|
readonly type: Schema.Literal<"oauth2">;
|
|
@@ -199,9 +240,12 @@ export declare const ResolvedAccount: Schema.Struct<{
|
|
|
199
240
|
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
200
241
|
readonly authorizationUrl: Schema.String;
|
|
201
242
|
readonly tokenUrl: Schema.String;
|
|
243
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
202
244
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
245
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
203
246
|
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
204
247
|
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
248
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
205
249
|
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
206
250
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
207
251
|
readonly type: Schema.Literal<"oauth2">;
|
|
@@ -211,6 +255,7 @@ export declare const ResolvedAccount: Schema.Struct<{
|
|
|
211
255
|
readonly discover: Schema.String;
|
|
212
256
|
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
213
257
|
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
258
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
214
259
|
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
215
260
|
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
216
261
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
@@ -219,6 +264,7 @@ export declare const ResolvedAccount: Schema.Struct<{
|
|
|
219
264
|
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
220
265
|
readonly grant: Schema.Literal<"client_credentials">;
|
|
221
266
|
readonly tokenUrl: Schema.String;
|
|
267
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
222
268
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
223
269
|
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
224
270
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
@@ -246,8 +292,10 @@ export declare const ResolvedAccounts: Schema.$Record<Schema.NonEmptyString, Sch
|
|
|
246
292
|
readonly discover: Schema.String;
|
|
247
293
|
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
248
294
|
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
295
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
249
296
|
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
250
297
|
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
298
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
251
299
|
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
252
300
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
253
301
|
readonly type: Schema.Literal<"oauth2">;
|
|
@@ -255,9 +303,12 @@ export declare const ResolvedAccounts: Schema.$Record<Schema.NonEmptyString, Sch
|
|
|
255
303
|
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
256
304
|
readonly authorizationUrl: Schema.String;
|
|
257
305
|
readonly tokenUrl: Schema.String;
|
|
306
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
258
307
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
308
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
259
309
|
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
260
310
|
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
311
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
261
312
|
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
262
313
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
263
314
|
readonly type: Schema.Literal<"oauth2">;
|
|
@@ -267,6 +318,7 @@ export declare const ResolvedAccounts: Schema.$Record<Schema.NonEmptyString, Sch
|
|
|
267
318
|
readonly discover: Schema.String;
|
|
268
319
|
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
269
320
|
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
321
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
270
322
|
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
271
323
|
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
272
324
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
@@ -275,6 +327,7 @@ export declare const ResolvedAccounts: Schema.$Record<Schema.NonEmptyString, Sch
|
|
|
275
327
|
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
276
328
|
readonly grant: Schema.Literal<"client_credentials">;
|
|
277
329
|
readonly tokenUrl: Schema.String;
|
|
330
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
278
331
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
279
332
|
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
280
333
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
@@ -298,8 +351,10 @@ export declare const ResolvedAccounts: Schema.$Record<Schema.NonEmptyString, Sch
|
|
|
298
351
|
readonly discover: Schema.String;
|
|
299
352
|
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
300
353
|
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
354
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
301
355
|
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
302
356
|
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
357
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
303
358
|
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
304
359
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
305
360
|
readonly type: Schema.Literal<"oauth2">;
|
|
@@ -307,9 +362,12 @@ export declare const ResolvedAccounts: Schema.$Record<Schema.NonEmptyString, Sch
|
|
|
307
362
|
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
308
363
|
readonly authorizationUrl: Schema.String;
|
|
309
364
|
readonly tokenUrl: Schema.String;
|
|
365
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
310
366
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
367
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
311
368
|
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
312
369
|
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
370
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
313
371
|
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
314
372
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
315
373
|
readonly type: Schema.Literal<"oauth2">;
|
|
@@ -319,6 +377,7 @@ export declare const ResolvedAccounts: Schema.$Record<Schema.NonEmptyString, Sch
|
|
|
319
377
|
readonly discover: Schema.String;
|
|
320
378
|
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
321
379
|
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
380
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
322
381
|
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
323
382
|
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
324
383
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
@@ -327,6 +386,7 @@ export declare const ResolvedAccounts: Schema.$Record<Schema.NonEmptyString, Sch
|
|
|
327
386
|
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
328
387
|
readonly grant: Schema.Literal<"client_credentials">;
|
|
329
388
|
readonly tokenUrl: Schema.String;
|
|
389
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
330
390
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
331
391
|
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
332
392
|
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
@@ -348,8 +408,16 @@ export declare const TrustedToolApproval: Schema.Struct<{
|
|
|
348
408
|
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
349
409
|
}>;
|
|
350
410
|
export type TrustedToolApproval = typeof TrustedToolApproval.Type;
|
|
411
|
+
/** Absolute Unix time in milliseconds; remote hosts enforce it inside the operation transaction. */
|
|
412
|
+
export declare const InvocationDeadline: Schema.Finite;
|
|
351
413
|
/** Trusted invocation context, supplied separately from the Request. */
|
|
352
414
|
export interface HostContext {
|
|
415
|
+
/** Trusted host deadline; never accepted in public operation JSON. */
|
|
416
|
+
readonly deadline?: typeof InvocationDeadline.Type;
|
|
417
|
+
/** Host-owned cache storage and refresh lifetime, separate from app database transactions. */
|
|
418
|
+
readonly cache?: import("./cache.js").HostCache;
|
|
419
|
+
/** Packaged app text files supplied by the build bridge. Direct hosts may omit them for an empty package. */
|
|
420
|
+
readonly files?: readonly SkillFile[];
|
|
353
421
|
/** Private delivery capability. It is never accepted in public request JSON or stored in a build. */
|
|
354
422
|
readonly workflowControls?: WorkflowHostControls;
|
|
355
423
|
readonly workflow?: WorkflowExecution;
|
|
@@ -394,6 +462,112 @@ export declare const HostedTool: Schema.Struct<{
|
|
|
394
462
|
}>;
|
|
395
463
|
/** Parsed live tool description. */
|
|
396
464
|
export type HostedTool = typeof HostedTool.Type;
|
|
465
|
+
/** Catalog entry without schemas. Browsing lists these and reads one full tool on selection. */
|
|
466
|
+
export declare const HostedToolSummary: Schema.Struct<{
|
|
467
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
468
|
+
readonly name: Schema.NonEmptyString;
|
|
469
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
470
|
+
readonly kind: Schema.Literal<"interval">;
|
|
471
|
+
readonly milliseconds: Schema.Int;
|
|
472
|
+
}>, Schema.Struct<{
|
|
473
|
+
readonly kind: Schema.Literal<"cron">;
|
|
474
|
+
readonly calendar: Schema.Struct<{
|
|
475
|
+
readonly expression: Schema.NonEmptyString;
|
|
476
|
+
readonly timezone: Schema.NonEmptyString;
|
|
477
|
+
}>;
|
|
478
|
+
}>]>;
|
|
479
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
480
|
+
}>>>;
|
|
481
|
+
readonly name: Schema.NonEmptyString;
|
|
482
|
+
readonly description: Schema.String;
|
|
483
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
484
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
485
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
486
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
487
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
488
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
489
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
490
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
491
|
+
}>>;
|
|
492
|
+
}>;
|
|
493
|
+
export type HostedToolSummary = typeof HostedToolSummary.Type;
|
|
494
|
+
/**
|
|
495
|
+
* A skill catalog and whether any of it came from `dynamicSkills`. Without a live loader the
|
|
496
|
+
* catalog is determined by the build and its evaluation inputs; with one it reflects a publisher.
|
|
497
|
+
*/
|
|
498
|
+
export declare const SkillSources: Schema.Struct<{
|
|
499
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
500
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
501
|
+
readonly path: Schema.NonEmptyString;
|
|
502
|
+
readonly content: Schema.String;
|
|
503
|
+
}>>;
|
|
504
|
+
readonly name: Schema.NonEmptyString;
|
|
505
|
+
readonly description: Schema.String;
|
|
506
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
507
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
508
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
509
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
510
|
+
}>>;
|
|
511
|
+
readonly dynamic: Schema.Boolean;
|
|
512
|
+
}>;
|
|
513
|
+
export type SkillSources = typeof SkillSources.Type;
|
|
514
|
+
/** Skill commands. Send sources only to builds that declare skillSources. */
|
|
515
|
+
export declare const skillsCommand: (sources: boolean) => {
|
|
516
|
+
readonly operation: "skills";
|
|
517
|
+
readonly sources: true;
|
|
518
|
+
} | {
|
|
519
|
+
readonly operation: "skills";
|
|
520
|
+
readonly sources?: never;
|
|
521
|
+
};
|
|
522
|
+
/** Either response shape; `dynamic` is unknown for builds that predate skillSources. */
|
|
523
|
+
export declare const SkillCatalogResponse: Schema.Union<readonly [Schema.Struct<{
|
|
524
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
525
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
526
|
+
readonly path: Schema.NonEmptyString;
|
|
527
|
+
readonly content: Schema.String;
|
|
528
|
+
}>>;
|
|
529
|
+
readonly name: Schema.NonEmptyString;
|
|
530
|
+
readonly description: Schema.String;
|
|
531
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
532
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
533
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
534
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
535
|
+
}>>;
|
|
536
|
+
readonly dynamic: Schema.Boolean;
|
|
537
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
538
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
539
|
+
readonly path: Schema.NonEmptyString;
|
|
540
|
+
readonly content: Schema.String;
|
|
541
|
+
}>>;
|
|
542
|
+
readonly name: Schema.NonEmptyString;
|
|
543
|
+
readonly description: Schema.String;
|
|
544
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
545
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
546
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
547
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
548
|
+
}>>]>;
|
|
549
|
+
export interface SkillCatalog {
|
|
550
|
+
readonly skills: SkillSources["skills"];
|
|
551
|
+
readonly dynamic?: boolean;
|
|
552
|
+
}
|
|
553
|
+
export declare const skillCatalog: (response: typeof SkillCatalogResponse.Type) => SkillCatalog;
|
|
554
|
+
/**
|
|
555
|
+
* Inspection commands. Send detail or tools only to builds that declare toolIndex,
|
|
556
|
+
* and scheduled only to builds that declare scheduledTools.
|
|
557
|
+
*/
|
|
558
|
+
export declare const inspectCommand: (tools?: readonly string[], scheduled?: true) => {
|
|
559
|
+
scheduled?: true;
|
|
560
|
+
tools?: string[];
|
|
561
|
+
operation: "inspect";
|
|
562
|
+
};
|
|
563
|
+
export declare const indexCommand: {
|
|
564
|
+
readonly operation: "inspect";
|
|
565
|
+
readonly detail: "summary";
|
|
566
|
+
};
|
|
567
|
+
/** Keep only the requested tools from an inspection that may have described every tool. */
|
|
568
|
+
export declare const selectTools: (tools?: readonly string[]) => <A extends {
|
|
569
|
+
readonly name: string;
|
|
570
|
+
}>(all: readonly A[]) => readonly A[];
|
|
397
571
|
/** Framework-owned dispatch, independent of app-authored HTTP routing. */
|
|
398
572
|
export declare const HostRequest: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
399
573
|
readonly operation: Schema.Literal<"workflows">;
|
|
@@ -460,6 +634,19 @@ export declare const HostRequest: Schema.Union<readonly [Schema.Union<readonly [
|
|
|
460
634
|
readonly operation: Schema.Literal<"requirements">;
|
|
461
635
|
}>, Schema.Struct<{
|
|
462
636
|
readonly operation: Schema.Literal<"inspect">;
|
|
637
|
+
/** Omit schemas. Only builds that declare the toolIndex capability accept this. */
|
|
638
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
639
|
+
/** Describe only these tools. Only builds that declare the toolIndex capability accept this. */
|
|
640
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
641
|
+
/**
|
|
642
|
+
* Describe only declared operations that have schedules, without dynamic tool discovery.
|
|
643
|
+
* Only builds that declare the scheduledTools capability accept this.
|
|
644
|
+
*/
|
|
645
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
646
|
+
}>, Schema.Struct<{
|
|
647
|
+
readonly operation: Schema.Literal<"skills">;
|
|
648
|
+
/** Answer with SkillSources. Only builds that declare the skillSources capability accept this. */
|
|
649
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
463
650
|
}>, Schema.Struct<{
|
|
464
651
|
readonly operation: Schema.Literal<"query">;
|
|
465
652
|
readonly name: Schema.NonEmptyString;
|
|
@@ -503,8 +690,14 @@ declare const HostToolNotFound_base: Schema.Class<HostToolNotFound, Schema.Tagge
|
|
|
503
690
|
/** The freshly evaluated catalog did not contain the requested tool. */
|
|
504
691
|
export declare class HostToolNotFound extends HostToolNotFound_base {
|
|
505
692
|
}
|
|
506
|
-
|
|
507
|
-
|
|
693
|
+
/** One failing input location and its expected shape; never the supplied value. */
|
|
694
|
+
export declare const InputProblem: Schema.String;
|
|
695
|
+
/** Input decoding reports at most this many problems. */
|
|
696
|
+
export declare const maxInputProblems = 10;
|
|
697
|
+
declare const HostInputInvalid_base: Schema.Class<HostInputInvalid, Schema.TaggedStruct<"HostInputInvalid", {
|
|
698
|
+
readonly problems: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
699
|
+
}>, import("effect/Cause").YieldableError>;
|
|
700
|
+
/** Native input decoding failed; supplied values are omitted. Builds before problems were reported send none. */
|
|
508
701
|
export declare class HostInputInvalid extends HostInputInvalid_base {
|
|
509
702
|
}
|
|
510
703
|
declare const HostToolBlocked_base: Schema.Class<HostToolBlocked, Schema.TaggedStruct<"HostToolBlocked", {}>, import("effect/Cause").YieldableError>;
|
|
@@ -537,13 +730,13 @@ export declare class HostOutputInvalid extends HostOutputInvalid_base {
|
|
|
537
730
|
/** Declaration reads do not bind accounts or evaluate the app factory. */
|
|
538
731
|
export declare const HostRequirementsError: Schema.Union<readonly [typeof HostRequestInvalid, typeof HostDeclarationInvalid]>;
|
|
539
732
|
/** Inspection can fail while binding accounts or evaluating the live definition. */
|
|
540
|
-
export declare const HostInspectError: Schema.Union<readonly [typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof HostAccountsInvalid, typeof HostEvaluationFailed]>;
|
|
733
|
+
export declare const HostInspectError: Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof HostAccountsInvalid, typeof HostEvaluationFailed]>;
|
|
541
734
|
/** Tool invocation adds lookup, input, execution and output failures to inspection. */
|
|
542
|
-
export declare const HostCallError: Schema.Union<readonly [typeof WorkflowFailure, Schema.Union<readonly [typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof HostAccountsInvalid, typeof HostEvaluationFailed]>, typeof HostToolNotFound, typeof HostOperationNotFound, typeof HostOperationFailed, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
|
|
735
|
+
export declare const HostCallError: Schema.Union<readonly [typeof OpenapiResponseError, typeof WorkflowFailure, Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof HostAccountsInvalid, typeof HostEvaluationFailed]>, typeof HostToolNotFound, typeof HostOperationNotFound, typeof HostOperationFailed, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
|
|
543
736
|
/** Queries, mutations and agent calls use the same operation failures. */
|
|
544
|
-
export declare const HostDataError: Schema.Union<readonly [typeof WorkflowFailure, Schema.Union<readonly [typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof HostAccountsInvalid, typeof HostEvaluationFailed]>, typeof HostToolNotFound, typeof HostOperationNotFound, typeof HostOperationFailed, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
|
|
737
|
+
export declare const HostDataError: Schema.Union<readonly [typeof OpenapiResponseError, typeof WorkflowFailure, Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof HostAccountsInvalid, typeof HostEvaluationFailed]>, typeof HostToolNotFound, typeof HostOperationNotFound, typeof HostOperationFailed, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
|
|
545
738
|
/** Safe error envelope; no author exception, source, account fields or stack is serialized. */
|
|
546
|
-
export declare const HostError: Schema.Union<readonly [typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
|
|
739
|
+
export declare const HostError: Schema.Union<readonly [typeof OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
|
|
547
740
|
/** Expected host failures. */
|
|
548
741
|
export type HostError = typeof HostError.Type;
|
|
549
742
|
/** Invocation-owned outcome sink. Framework adapters report semantic failures
|
|
@@ -558,7 +751,7 @@ export declare const HostResponse: Schema.Union<readonly [Schema.Struct<{
|
|
|
558
751
|
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
559
752
|
}>, Schema.Struct<{
|
|
560
753
|
readonly ok: Schema.Literal<false>;
|
|
561
|
-
readonly error: Schema.Union<readonly [typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
|
|
754
|
+
readonly error: Schema.Union<readonly [typeof OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
|
|
562
755
|
}>]>;
|
|
563
756
|
/** Parsed response envelope. */
|
|
564
757
|
export type HostResponse = typeof HostResponse.Type;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ProviderError } from "./provider-error.js";
|
|
1
2
|
/** MCP protocol data uses Effect Schema; executable tool methods use Effect. */
|
|
2
3
|
import { type Effect, type Redacted, Schema } from "effect";
|
|
3
4
|
import type { Elicit, ElicitationFailed } from "./elicitation.js";
|
|
@@ -24,6 +25,7 @@ export declare const mcpSdkTimerCeilingMs = 2147483647;
|
|
|
24
25
|
/** Server and headers for this selected account. Headers are a credential snapshot. */
|
|
25
26
|
export declare const McpToolsOptions: Schema.Struct<{
|
|
26
27
|
readonly url: Schema.String;
|
|
28
|
+
readonly accountId: Schema.optional<Schema.brand<Schema.String, "acc">>;
|
|
27
29
|
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
28
30
|
readonly signal: Schema.optional<Schema.instanceOf<AbortSignal, AbortSignal>>;
|
|
29
31
|
readonly timeoutMs: Schema.optional<Schema.Number>;
|
|
@@ -70,7 +72,7 @@ export interface McpTool extends McpToolMetadata {
|
|
|
70
72
|
readonly description: string;
|
|
71
73
|
readonly input: Schema.Decoder<JsonValue>;
|
|
72
74
|
readonly readOnly?: boolean;
|
|
73
|
-
readonly run: (context: McpToolContext, input: JsonValue) => Effect.Effect<McpToolResult, McpError | ElicitationFailed>;
|
|
75
|
+
readonly run: (context: McpToolContext, input: JsonValue) => Effect.Effect<McpToolResult, McpError | ProviderError | ElicitationFailed>;
|
|
74
76
|
}
|
|
75
77
|
/** The discovered catalog keyed by remote tool name. */
|
|
76
78
|
export type McpTools = Readonly<Record<string, McpTool>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Shared OpenAPI compilation diagnostics. */
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
export declare const OpenapiCompileErrorCode: Schema.Literals<readonly ["server_protocol", "server_url", "external_reference", "circular_reference", "schema_keyword", "schema_reference", "missing_component", "openapi_version", "auth_helper", "auth_missing", "operation_path", "duplicate_operation", "server_missing", "multiple_hosts", "parameter_encoding", "parameter_style", "request_body", "combined_oauth", "auth_method", "input_schema", "no_operations", "no_supported_operations", "invalid_document", "source_generation", "authoring_reference"]>;
|
|
4
|
+
declare const OpenapiCompileError_base: Schema.Class<OpenapiCompileError, Schema.TaggedStruct<"OpenapiCompileError", {
|
|
5
|
+
readonly code: Schema.Literals<readonly ["server_protocol", "server_url", "external_reference", "circular_reference", "schema_keyword", "schema_reference", "missing_component", "openapi_version", "auth_helper", "auth_missing", "operation_path", "duplicate_operation", "server_missing", "multiple_hosts", "parameter_encoding", "parameter_style", "request_body", "combined_oauth", "auth_method", "input_schema", "no_operations", "no_supported_operations", "invalid_document", "source_generation", "authoring_reference"]>;
|
|
6
|
+
readonly reason: Schema.String;
|
|
7
|
+
}>, import("effect/Cause").YieldableError>;
|
|
8
|
+
/** A safe generation failure, translated into product HTTP errors at the boundary. */
|
|
9
|
+
export declare class OpenapiCompileError extends OpenapiCompileError_base {
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/** OpenAPI boundary parsing. Unsupported transport/auth features fail before deployment. */
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
/** Parsed OpenAPI 3 source; individual operation references are resolved separately. */
|
|
4
|
+
export declare const Specification: Schema.Struct<{
|
|
5
|
+
readonly openapi: Schema.String;
|
|
6
|
+
readonly servers: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
7
|
+
readonly url: Schema.String;
|
|
8
|
+
readonly variables: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
9
|
+
}>>>;
|
|
10
|
+
readonly paths: Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
11
|
+
readonly components: Schema.optionalKey<Schema.Struct<{
|
|
12
|
+
readonly schemas: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>;
|
|
13
|
+
readonly securitySchemes: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>;
|
|
14
|
+
}>>;
|
|
15
|
+
readonly security: Schema.optionalKey<Schema.$Array<Schema.$Record<Schema.String, Schema.$Array<Schema.String>>>>;
|
|
16
|
+
}>;
|
|
17
|
+
export type Specification = typeof Specification.Type;
|
|
18
|
+
export { OpenapiParameter as Parameter, OpenapiRequestBody as RequestBody } from "./openapi.js";
|
|
19
|
+
/** Operation transport details. We never interpolate upstream executable code. */
|
|
20
|
+
export declare const Operation: Schema.Struct<{
|
|
21
|
+
readonly operationId: Schema.optionalKey<Schema.String>;
|
|
22
|
+
readonly responses: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>;
|
|
23
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
24
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
25
|
+
readonly parameters: Schema.optionalKey<Schema.$Array<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>;
|
|
26
|
+
readonly requestBody: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
27
|
+
readonly security: Schema.optionalKey<Schema.$Array<Schema.$Record<Schema.String, Schema.$Array<Schema.String>>>>;
|
|
28
|
+
readonly servers: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
29
|
+
readonly url: Schema.String;
|
|
30
|
+
readonly variables: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
31
|
+
}>>>;
|
|
32
|
+
}>;
|
|
33
|
+
export type Operation = typeof Operation.Type;
|
|
34
|
+
import type { CredentialBinding } from "./openapi.js";
|
|
35
|
+
export type { OpenapiOperation as GeneratedOperation, CredentialBinding } from "./openapi.js";
|
|
36
|
+
/** A secrets method can satisfy an AND-set of OpenAPI security schemes. */
|
|
37
|
+
export interface GeneratedSecrets {
|
|
38
|
+
readonly name: string;
|
|
39
|
+
readonly label: string;
|
|
40
|
+
readonly bindings: readonly CredentialBinding[];
|
|
41
|
+
}
|
|
42
|
+
/** Import hints after product catalog overrides have been applied. */
|
|
43
|
+
export interface OpenApiImport {
|
|
44
|
+
readonly name: string;
|
|
45
|
+
readonly connectUrl?: string | undefined;
|
|
46
|
+
/** Prefer protected-resource discovery when the API supports dynamic OAuth client registration. */
|
|
47
|
+
readonly oauthDiscoveryUrl?: string | undefined;
|
|
48
|
+
readonly auth?: {
|
|
49
|
+
readonly kind: string;
|
|
50
|
+
readonly header?: string | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
readonly scopes?: readonly string[] | undefined;
|
|
53
|
+
}
|