apps 0.0.1-beta.3 → 0.0.1-beta.5
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/framework-reference.json +1 -1
- package/js/{chunk-SATWJKN6.js → chunk-27F7W2LG.js} +1 -1
- package/js/{chunk-PYUYJRSK.js → chunk-3XKZDQLM.js} +2 -2
- package/js/chunk-4M277YTM.js +136 -0
- package/js/{chunk-HDJH3RPR.js → chunk-57RKNWL2.js} +2 -2
- package/js/{chunk-HDTGZWP2.js → chunk-67EVWIGJ.js} +8 -8
- package/js/{chunk-JN55AYQH.js → chunk-C3VAOK5B.js} +11 -9
- package/js/{chunk-FW5HBOIK.js → chunk-CDL5PM2Q.js} +307 -169
- package/js/{chunk-D47C7KG5.js → chunk-CYYBFC2K.js} +2 -2
- package/js/{chunk-MYYEW3RA.js → chunk-DQAZTA4I.js} +160 -22
- package/js/{chunk-WFSQXYUT.js → chunk-FWQC6I3C.js} +2 -2
- package/js/{chunk-ZJWDMTE3.js → chunk-G7T27IWB.js} +3 -3
- package/js/{chunk-G7ZIRKMK.js → chunk-IJX4CYZO.js} +3 -3
- package/js/{chunk-FDNTX5QJ.js → chunk-IPI4MFSN.js} +2 -2
- package/js/{chunk-YEJOQEII.js → chunk-JU7VHODU.js} +1 -1
- package/js/{chunk-NQ3OMCA5.js → chunk-KUMBKVJD.js} +2 -2
- package/js/{chunk-J7O55ZV7.js → chunk-LUVSFETN.js} +247 -60
- package/js/{chunk-EVJUVWN2.js → chunk-M3B3DE4K.js} +2 -2
- package/js/{chunk-BMOIAIVR.js → chunk-N7YDVXYJ.js} +49 -1
- package/js/{chunk-M6ZRRIBI.js → chunk-PJJ24GU7.js} +1 -1
- package/js/{chunk-FZJOYIZO.js → chunk-PZB6T6KU.js} +1 -1
- package/js/{chunk-ZCAMUXSG.js → chunk-RJDDBDSN.js} +3 -3
- package/js/{chunk-W7D7WVSY.js → chunk-SB3V4YVR.js} +2 -2
- package/js/{chunk-Z5NMEGJN.js → chunk-TDNYXSIX.js} +1 -1
- package/js/{chunk-RN2MXB4R.js → chunk-UDDE5KOR.js} +6 -6
- package/js/{chunk-QKHR7BMF.js → chunk-UK573G7W.js} +1 -1
- package/js/{chunk-T2LAZCAD.js → chunk-VFZKSM3T.js} +1 -1
- package/js/{chunk-SWPD52J7.js → chunk-W4DMKWAB.js} +1 -1
- package/js/{chunk-5MQZEB6Y.js → chunk-XHO2ZX6W.js} +4 -4
- package/js/{chunk-LGIYBDWA.js → chunk-YEPYT6SD.js} +1 -1
- package/js/{chunk-PLCMJREA.js → chunk-ZQINWV4W.js} +60 -20
- package/js/client.js +10 -10
- package/js/contracts.js +34 -9
- package/js/effect.js +21 -20
- package/js/graphql.js +23 -22
- package/js/host.js +21 -20
- package/js/index.js +14 -14
- package/js/mcp/effect.js +23 -22
- package/js/mcp/stdio.js +23 -22
- package/js/mcp.js +25 -24
- package/js/openapi.js +23 -123
- package/js/react.js +3 -3
- package/js/skills/effect.js +3 -3
- package/js/skills.js +12 -12
- package/js/storage/facet.js +4 -4
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +4 -4
- package/js/ui/serving.js +8 -8
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/app-data/src/contracts/database.d.ts +33 -6
- package/types/app-data/src/implementation/schema.d.ts +2 -17
- package/types/apps/src/contracts/failure.d.ts +25 -0
- package/types/apps/src/contracts/host.d.ts +13 -6
- package/types/apps/src/contracts/openapi.d.ts +1 -1
- package/types/apps/src/contracts/protocol-version.d.ts +2 -2
- package/types/apps/src/contracts/protocols/1.d.ts +15 -1
- package/types/apps/src/contracts/protocols/2.d.ts +668 -0
- package/types/apps/src/contracts/protocols/3.d.ts +676 -0
- package/types/apps/src/contracts/storage.d.ts +3 -3
- package/types/apps/src/contracts/workflows.d.ts +34 -3
- package/types/apps/src/implementation/elicitation.d.ts +1 -1
- package/types/apps/src/implementation/failure-detail.d.ts +25 -0
- package/types/apps/src/implementation/storage.d.ts +5 -3
- package/types/apps/src/implementation/webhooks.d.ts +1 -1
- package/types/apps/src/implementation/workflow-context.d.ts +11 -3
|
@@ -0,0 +1,668 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host protocol 2: protocol 1, and a skill catalog reply that says whether its `dynamicSkills`
|
|
3
|
+
* loader read through the app cache.
|
|
4
|
+
*
|
|
5
|
+
* Every other message is protocol 1's, re-exported unchanged. Once released this protocol is
|
|
6
|
+
* frozen like protocol 1: `bun run check` compares `protocol2` with `packages/apps/protocols/2.json`.
|
|
7
|
+
* Define the next protocol to change it. See notes/apps-publishing.md.
|
|
8
|
+
*/
|
|
9
|
+
import { Schema } from "effect";
|
|
10
|
+
export * from "./1.js";
|
|
11
|
+
/**
|
|
12
|
+
* A skill catalog and whether any of it came from `dynamicSkills`. Without a live loader the
|
|
13
|
+
* catalog is determined by the build and its evaluation inputs; with one it reflects a publisher.
|
|
14
|
+
* `cached` says the loader read through the app cache, so the cache's freshness and invalidation
|
|
15
|
+
* govern its publisher reads.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SkillSources: Schema.Struct<{
|
|
18
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
19
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
20
|
+
readonly path: Schema.NonEmptyString;
|
|
21
|
+
readonly content: Schema.String;
|
|
22
|
+
}>>;
|
|
23
|
+
readonly name: Schema.NonEmptyString;
|
|
24
|
+
readonly description: Schema.String;
|
|
25
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
26
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
27
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
28
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
29
|
+
}>>;
|
|
30
|
+
readonly dynamic: Schema.Boolean;
|
|
31
|
+
readonly cached: Schema.optionalKey<Schema.Boolean>;
|
|
32
|
+
}>;
|
|
33
|
+
export type SkillSources = typeof SkillSources.Type;
|
|
34
|
+
/** Either response shape; `dynamic` is unknown for builds that predate skillSources. */
|
|
35
|
+
export declare const SkillCatalogResponse: Schema.Union<readonly [Schema.Struct<{
|
|
36
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
37
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
38
|
+
readonly path: Schema.NonEmptyString;
|
|
39
|
+
readonly content: Schema.String;
|
|
40
|
+
}>>;
|
|
41
|
+
readonly name: Schema.NonEmptyString;
|
|
42
|
+
readonly description: Schema.String;
|
|
43
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
44
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
45
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
46
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
47
|
+
}>>;
|
|
48
|
+
readonly dynamic: Schema.Boolean;
|
|
49
|
+
readonly cached: Schema.optionalKey<Schema.Boolean>;
|
|
50
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
51
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
52
|
+
readonly path: Schema.NonEmptyString;
|
|
53
|
+
readonly content: Schema.String;
|
|
54
|
+
}>>;
|
|
55
|
+
readonly name: Schema.NonEmptyString;
|
|
56
|
+
readonly description: Schema.String;
|
|
57
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
58
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
59
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
60
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
61
|
+
}>>]>;
|
|
62
|
+
/** Every message of protocol 2, in the order its snapshot records them. */
|
|
63
|
+
export declare const protocol2: {
|
|
64
|
+
readonly version: 2;
|
|
65
|
+
readonly schemas: {
|
|
66
|
+
readonly skills: Schema.Union<readonly [Schema.Struct<{
|
|
67
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
68
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
69
|
+
readonly path: Schema.NonEmptyString;
|
|
70
|
+
readonly content: Schema.String;
|
|
71
|
+
}>>;
|
|
72
|
+
readonly name: Schema.NonEmptyString;
|
|
73
|
+
readonly description: Schema.String;
|
|
74
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
75
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
76
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
77
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
78
|
+
}>>;
|
|
79
|
+
readonly dynamic: Schema.Boolean;
|
|
80
|
+
readonly cached: Schema.optionalKey<Schema.Boolean>;
|
|
81
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
82
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
83
|
+
readonly path: Schema.NonEmptyString;
|
|
84
|
+
readonly content: Schema.String;
|
|
85
|
+
}>>;
|
|
86
|
+
readonly name: Schema.NonEmptyString;
|
|
87
|
+
readonly description: Schema.String;
|
|
88
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
89
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
90
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
91
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
92
|
+
}>>]>;
|
|
93
|
+
readonly invocation: Schema.Struct<{
|
|
94
|
+
readonly command: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
95
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
96
|
+
}>, Schema.Struct<{
|
|
97
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
98
|
+
readonly name: Schema.NonEmptyString;
|
|
99
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
100
|
+
}>, Schema.Struct<{
|
|
101
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
102
|
+
readonly name: Schema.NonEmptyString;
|
|
103
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
104
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
105
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
106
|
+
}>, Schema.Struct<{
|
|
107
|
+
readonly name: Schema.NonEmptyString;
|
|
108
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
109
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
110
|
+
readonly callbackUrl: Schema.String;
|
|
111
|
+
readonly secret: Schema.String;
|
|
112
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
113
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
114
|
+
}>, Schema.Struct<{
|
|
115
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
116
|
+
readonly name: Schema.NonEmptyString;
|
|
117
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
118
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
119
|
+
readonly callbackUrl: Schema.String;
|
|
120
|
+
readonly secret: Schema.String;
|
|
121
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
122
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
123
|
+
}>, Schema.Struct<{
|
|
124
|
+
readonly name: Schema.NonEmptyString;
|
|
125
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
126
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
127
|
+
readonly callbackUrl: Schema.String;
|
|
128
|
+
readonly secret: Schema.String;
|
|
129
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
130
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
131
|
+
}>, Schema.Struct<{
|
|
132
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
133
|
+
readonly name: Schema.NonEmptyString;
|
|
134
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
135
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
136
|
+
readonly callbackUrl: Schema.String;
|
|
137
|
+
readonly secret: Schema.String;
|
|
138
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
139
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
140
|
+
}>, Schema.Struct<{
|
|
141
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
142
|
+
readonly request: Schema.Struct<{
|
|
143
|
+
readonly url: Schema.String;
|
|
144
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
145
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
146
|
+
readonly body: Schema.String;
|
|
147
|
+
}>;
|
|
148
|
+
readonly name: Schema.NonEmptyString;
|
|
149
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
150
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
151
|
+
readonly callbackUrl: Schema.String;
|
|
152
|
+
readonly secret: Schema.String;
|
|
153
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
154
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
155
|
+
}>]>, Schema.Struct<{
|
|
156
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
157
|
+
}>, Schema.Struct<{
|
|
158
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
159
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
160
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
161
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
162
|
+
}>, Schema.Struct<{
|
|
163
|
+
readonly operation: Schema.Literal<"skills">;
|
|
164
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
165
|
+
}>, Schema.Struct<{
|
|
166
|
+
readonly operation: Schema.Literal<"query">;
|
|
167
|
+
readonly name: Schema.NonEmptyString;
|
|
168
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
169
|
+
}>, Schema.Struct<{
|
|
170
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
171
|
+
readonly name: Schema.NonEmptyString;
|
|
172
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
173
|
+
}>, Schema.Struct<{
|
|
174
|
+
readonly operation: Schema.Literal<"call">;
|
|
175
|
+
readonly tool: Schema.NonEmptyString;
|
|
176
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
177
|
+
}>]>;
|
|
178
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
179
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
180
|
+
readonly provider: Schema.Struct<{
|
|
181
|
+
readonly name: Schema.NonEmptyString;
|
|
182
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
183
|
+
readonly type: Schema.Literal<"secrets">;
|
|
184
|
+
readonly label: Schema.String;
|
|
185
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
186
|
+
}>, Schema.Struct<{
|
|
187
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
188
|
+
readonly discover: Schema.String;
|
|
189
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
190
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
191
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
192
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
193
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
194
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
195
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
196
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
197
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
198
|
+
}>, Schema.Struct<{
|
|
199
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
200
|
+
readonly authorizationUrl: Schema.String;
|
|
201
|
+
readonly tokenUrl: Schema.String;
|
|
202
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
203
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
204
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
205
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
206
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
207
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
208
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
209
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
210
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
211
|
+
}>, Schema.Struct<{
|
|
212
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
213
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
214
|
+
readonly discover: Schema.String;
|
|
215
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
216
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
217
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
218
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
219
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
220
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
221
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
222
|
+
}>, Schema.Struct<{
|
|
223
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
224
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
225
|
+
readonly tokenUrl: Schema.String;
|
|
226
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
227
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
228
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
229
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
230
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
231
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
232
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
233
|
+
}>]>>;
|
|
234
|
+
}>;
|
|
235
|
+
readonly method: Schema.NonEmptyString;
|
|
236
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
237
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
238
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
239
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
240
|
+
readonly provider: Schema.Struct<{
|
|
241
|
+
readonly name: Schema.NonEmptyString;
|
|
242
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
243
|
+
readonly type: Schema.Literal<"secrets">;
|
|
244
|
+
readonly label: Schema.String;
|
|
245
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
246
|
+
}>, Schema.Struct<{
|
|
247
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
248
|
+
readonly discover: Schema.String;
|
|
249
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
250
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
251
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
252
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
253
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
254
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
255
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
256
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
257
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
258
|
+
}>, Schema.Struct<{
|
|
259
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
260
|
+
readonly authorizationUrl: Schema.String;
|
|
261
|
+
readonly tokenUrl: Schema.String;
|
|
262
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
263
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
264
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
265
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
266
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
267
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
268
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
269
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
270
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
271
|
+
}>, Schema.Struct<{
|
|
272
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
273
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
274
|
+
readonly discover: Schema.String;
|
|
275
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
276
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
277
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
278
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
279
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
280
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
281
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
282
|
+
}>, Schema.Struct<{
|
|
283
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
284
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
285
|
+
readonly tokenUrl: Schema.String;
|
|
286
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
287
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
288
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
289
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
290
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
291
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
292
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
293
|
+
}>]>>;
|
|
294
|
+
}>;
|
|
295
|
+
readonly method: Schema.NonEmptyString;
|
|
296
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
297
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
298
|
+
}>>]>>;
|
|
299
|
+
readonly approval: Schema.optionalKey<Schema.Struct<{
|
|
300
|
+
readonly tool: Schema.NonEmptyString;
|
|
301
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
302
|
+
}>>;
|
|
303
|
+
readonly replay: Schema.optionalKey<Schema.Struct<{
|
|
304
|
+
readonly key: Schema.NonEmptyString;
|
|
305
|
+
readonly fingerprint: Schema.NonEmptyString;
|
|
306
|
+
}>>;
|
|
307
|
+
readonly deadline: Schema.optionalKey<Schema.Finite>;
|
|
308
|
+
readonly workflowRun: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
309
|
+
}>;
|
|
310
|
+
readonly request: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
311
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
312
|
+
}>, Schema.Struct<{
|
|
313
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
314
|
+
readonly name: Schema.NonEmptyString;
|
|
315
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
316
|
+
}>, Schema.Struct<{
|
|
317
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
318
|
+
readonly name: Schema.NonEmptyString;
|
|
319
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
320
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
321
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
322
|
+
}>, Schema.Struct<{
|
|
323
|
+
readonly name: Schema.NonEmptyString;
|
|
324
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
325
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
326
|
+
readonly callbackUrl: Schema.String;
|
|
327
|
+
readonly secret: Schema.String;
|
|
328
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
329
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
330
|
+
}>, Schema.Struct<{
|
|
331
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
332
|
+
readonly name: Schema.NonEmptyString;
|
|
333
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
334
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
335
|
+
readonly callbackUrl: Schema.String;
|
|
336
|
+
readonly secret: Schema.String;
|
|
337
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
338
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
339
|
+
}>, Schema.Struct<{
|
|
340
|
+
readonly name: Schema.NonEmptyString;
|
|
341
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
342
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
343
|
+
readonly callbackUrl: Schema.String;
|
|
344
|
+
readonly secret: Schema.String;
|
|
345
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
346
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
347
|
+
}>, Schema.Struct<{
|
|
348
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
349
|
+
readonly name: Schema.NonEmptyString;
|
|
350
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
351
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
352
|
+
readonly callbackUrl: Schema.String;
|
|
353
|
+
readonly secret: Schema.String;
|
|
354
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
355
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
356
|
+
}>, Schema.Struct<{
|
|
357
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
358
|
+
readonly request: Schema.Struct<{
|
|
359
|
+
readonly url: Schema.String;
|
|
360
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
361
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
362
|
+
readonly body: Schema.String;
|
|
363
|
+
}>;
|
|
364
|
+
readonly name: Schema.NonEmptyString;
|
|
365
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
366
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
367
|
+
readonly callbackUrl: Schema.String;
|
|
368
|
+
readonly secret: Schema.String;
|
|
369
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
370
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
371
|
+
}>]>, Schema.Struct<{
|
|
372
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
373
|
+
}>, Schema.Struct<{
|
|
374
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
375
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
376
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
377
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
378
|
+
}>, Schema.Struct<{
|
|
379
|
+
readonly operation: Schema.Literal<"skills">;
|
|
380
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
381
|
+
}>, Schema.Struct<{
|
|
382
|
+
readonly operation: Schema.Literal<"query">;
|
|
383
|
+
readonly name: Schema.NonEmptyString;
|
|
384
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
385
|
+
}>, Schema.Struct<{
|
|
386
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
387
|
+
readonly name: Schema.NonEmptyString;
|
|
388
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
389
|
+
}>, Schema.Struct<{
|
|
390
|
+
readonly operation: Schema.Literal<"call">;
|
|
391
|
+
readonly tool: Schema.NonEmptyString;
|
|
392
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
393
|
+
}>]>;
|
|
394
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
395
|
+
readonly ok: Schema.Literal<true>;
|
|
396
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
397
|
+
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
398
|
+
}>, Schema.Struct<{
|
|
399
|
+
readonly ok: Schema.Literal<false>;
|
|
400
|
+
readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof import("../provider-error.js").ProviderError, typeof import("../mcp.js").McpError, typeof import("../skills.js").SkillLoadFailed, typeof import("./1.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof import("./1.js").HostDeclarationInvalid, typeof import("./1.js").HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./1.js").HostOperationFailed, 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("../elicitation.js").ElicitationFailed]>;
|
|
401
|
+
}>]>;
|
|
402
|
+
readonly requirements: Schema.Struct<{
|
|
403
|
+
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
404
|
+
readonly skills: Schema.Literal<true>;
|
|
405
|
+
readonly toolIndex: Schema.optionalKey<Schema.Literal<true>>;
|
|
406
|
+
readonly skillSources: Schema.optionalKey<Schema.Literal<true>>;
|
|
407
|
+
readonly scheduledTools: Schema.optionalKey<Schema.Literal<true>>;
|
|
408
|
+
}>>;
|
|
409
|
+
readonly database: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
410
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
411
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
412
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
413
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
414
|
+
readonly references: Schema.optional<Schema.String>;
|
|
415
|
+
}>>;
|
|
416
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
417
|
+
readonly name: Schema.String;
|
|
418
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
419
|
+
}>>;
|
|
420
|
+
}>>>;
|
|
421
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Struct<{
|
|
422
|
+
readonly definition: Schema.Struct<{
|
|
423
|
+
readonly name: Schema.NonEmptyString;
|
|
424
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
425
|
+
readonly type: Schema.Literal<"secrets">;
|
|
426
|
+
readonly label: Schema.String;
|
|
427
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
428
|
+
}>, Schema.Struct<{
|
|
429
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
430
|
+
readonly discover: Schema.String;
|
|
431
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
432
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
433
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
434
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
435
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
436
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
437
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
438
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
439
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
440
|
+
}>, Schema.Struct<{
|
|
441
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
442
|
+
readonly authorizationUrl: Schema.String;
|
|
443
|
+
readonly tokenUrl: Schema.String;
|
|
444
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
445
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
446
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
447
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
448
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
449
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
450
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
451
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
452
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
453
|
+
}>, Schema.Struct<{
|
|
454
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
455
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
456
|
+
readonly discover: Schema.String;
|
|
457
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
458
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
459
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
460
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
461
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
462
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
463
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
464
|
+
}>, Schema.Struct<{
|
|
465
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
466
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
467
|
+
readonly tokenUrl: Schema.String;
|
|
468
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
469
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
470
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
471
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
472
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
473
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
474
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
475
|
+
}>]>>;
|
|
476
|
+
}>;
|
|
477
|
+
readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
|
|
478
|
+
}>>;
|
|
479
|
+
}>;
|
|
480
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
481
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
482
|
+
readonly name: Schema.NonEmptyString;
|
|
483
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
484
|
+
readonly kind: Schema.Literal<"interval">;
|
|
485
|
+
readonly milliseconds: Schema.Int;
|
|
486
|
+
}>, Schema.Struct<{
|
|
487
|
+
readonly kind: Schema.Literal<"cron">;
|
|
488
|
+
readonly calendar: Schema.Struct<{
|
|
489
|
+
readonly expression: Schema.NonEmptyString;
|
|
490
|
+
readonly timezone: Schema.NonEmptyString;
|
|
491
|
+
}>;
|
|
492
|
+
}>]>;
|
|
493
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
494
|
+
}>>>;
|
|
495
|
+
readonly name: Schema.NonEmptyString;
|
|
496
|
+
readonly description: Schema.String;
|
|
497
|
+
readonly inputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
498
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
499
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
500
|
+
readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
501
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
502
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
503
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
504
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
505
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
506
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
507
|
+
}>>;
|
|
508
|
+
readonly _meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
509
|
+
}>>;
|
|
510
|
+
readonly toolSummaries: Schema.$Array<Schema.Struct<{
|
|
511
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
512
|
+
readonly name: Schema.NonEmptyString;
|
|
513
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
514
|
+
readonly kind: Schema.Literal<"interval">;
|
|
515
|
+
readonly milliseconds: Schema.Int;
|
|
516
|
+
}>, Schema.Struct<{
|
|
517
|
+
readonly kind: Schema.Literal<"cron">;
|
|
518
|
+
readonly calendar: Schema.Struct<{
|
|
519
|
+
readonly expression: Schema.NonEmptyString;
|
|
520
|
+
readonly timezone: Schema.NonEmptyString;
|
|
521
|
+
}>;
|
|
522
|
+
}>]>;
|
|
523
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
524
|
+
}>>>;
|
|
525
|
+
readonly name: Schema.NonEmptyString;
|
|
526
|
+
readonly description: Schema.String;
|
|
527
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
528
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
529
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
530
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
531
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
532
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
533
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
534
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
535
|
+
}>>;
|
|
536
|
+
}>>;
|
|
537
|
+
readonly elicitationRequest: Schema.Struct<{
|
|
538
|
+
readonly mode: Schema.Literal<"form">;
|
|
539
|
+
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
540
|
+
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
541
|
+
readonly type: Schema.tag<"object">;
|
|
542
|
+
readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/unstable/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/unstable/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/unstable/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/unstable/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/unstable/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/unstable/ai/McpSchema").ElicitationString, typeof import("effect/unstable/ai/McpSchema").ElicitationNumber, typeof import("effect/unstable/ai/McpSchema").ElicitationBoolean]>>;
|
|
543
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
544
|
+
}>>;
|
|
545
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
546
|
+
readonly message: Schema.String;
|
|
547
|
+
}>;
|
|
548
|
+
readonly elicitationReply: Schema.Union<readonly [Schema.Struct<{
|
|
549
|
+
readonly ok: Schema.Literal<true>;
|
|
550
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
551
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
552
|
+
readonly action: Schema.Literal<"accept">;
|
|
553
|
+
readonly content: Schema.decodeTo<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>;
|
|
554
|
+
}>, Schema.Struct<{
|
|
555
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
556
|
+
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
557
|
+
}>]>;
|
|
558
|
+
}>, Schema.Struct<{
|
|
559
|
+
readonly ok: Schema.Literal<false>;
|
|
560
|
+
readonly error: typeof import("../elicitation.js").ElicitationFailed;
|
|
561
|
+
}>]>;
|
|
562
|
+
readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
|
|
563
|
+
readonly operation: Schema.Literal<"do">;
|
|
564
|
+
readonly name: Schema.NonEmptyString;
|
|
565
|
+
readonly options: Schema.Struct<{
|
|
566
|
+
readonly retries: Schema.optionalKey<Schema.Struct<{
|
|
567
|
+
readonly limit: Schema.Int;
|
|
568
|
+
readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
569
|
+
readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
|
|
570
|
+
}>>;
|
|
571
|
+
readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
|
|
572
|
+
}>;
|
|
573
|
+
}>, Schema.Struct<{
|
|
574
|
+
readonly operation: Schema.Literal<"sleep">;
|
|
575
|
+
readonly name: Schema.NonEmptyString;
|
|
576
|
+
readonly duration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
577
|
+
}>, Schema.Struct<{
|
|
578
|
+
readonly operation: Schema.Literal<"until">;
|
|
579
|
+
readonly name: Schema.NonEmptyString;
|
|
580
|
+
readonly timestamp: Schema.Finite;
|
|
581
|
+
}>, Schema.Struct<{
|
|
582
|
+
readonly operation: Schema.Literal<"context">;
|
|
583
|
+
}>, Schema.Struct<{
|
|
584
|
+
readonly operation: Schema.Literal<"invoke">;
|
|
585
|
+
readonly kind: Schema.Literals<readonly ["query", "mutation"]>;
|
|
586
|
+
readonly name: Schema.NonEmptyString;
|
|
587
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
588
|
+
readonly stepId: Schema.NonEmptyString;
|
|
589
|
+
readonly timeout: Schema.Finite;
|
|
590
|
+
}>]>;
|
|
591
|
+
readonly workflowStepReply: Schema.Union<readonly [Schema.Struct<{
|
|
592
|
+
readonly ok: Schema.Literal<true>;
|
|
593
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
594
|
+
}>, Schema.Struct<{
|
|
595
|
+
readonly ok: Schema.Literal<false>;
|
|
596
|
+
readonly error: typeof import("./1.js").WorkflowFailure;
|
|
597
|
+
}>]>;
|
|
598
|
+
readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
|
|
599
|
+
readonly operation: Schema.Literal<"start">;
|
|
600
|
+
readonly workflow: Schema.NonEmptyString;
|
|
601
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
602
|
+
readonly key: Schema.optionalKey<Schema.NonEmptyString>;
|
|
603
|
+
}>, Schema.Struct<{
|
|
604
|
+
readonly operation: Schema.Literal<"get">;
|
|
605
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
606
|
+
}>, Schema.Struct<{
|
|
607
|
+
readonly operation: Schema.Literal<"list">;
|
|
608
|
+
readonly workflow: Schema.optionalKey<Schema.NonEmptyString>;
|
|
609
|
+
readonly cursor: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
610
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
611
|
+
}>, Schema.Struct<{
|
|
612
|
+
readonly operation: Schema.Literal<"terminate">;
|
|
613
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
614
|
+
}>]>;
|
|
615
|
+
readonly cacheCommand: Schema.Union<readonly [Schema.Struct<{
|
|
616
|
+
readonly operation: Schema.Literal<"read">;
|
|
617
|
+
readonly keys: Schema.$Array<Schema.String>;
|
|
618
|
+
}>, Schema.Struct<{
|
|
619
|
+
readonly operation: Schema.Literal<"acquire">;
|
|
620
|
+
readonly key: Schema.String;
|
|
621
|
+
readonly refresh: Schema.Boolean;
|
|
622
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
623
|
+
}>, Schema.Struct<{
|
|
624
|
+
readonly operation: Schema.Literal<"claim">;
|
|
625
|
+
readonly key: Schema.String;
|
|
626
|
+
readonly version: Schema.NullOr<Schema.String>;
|
|
627
|
+
}>, Schema.Struct<{
|
|
628
|
+
readonly operation: Schema.Literal<"publish">;
|
|
629
|
+
readonly key: Schema.String;
|
|
630
|
+
readonly lease: Schema.String;
|
|
631
|
+
readonly entry: Schema.Struct<{
|
|
632
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
633
|
+
readonly version: Schema.String;
|
|
634
|
+
readonly freshUntil: Schema.Finite;
|
|
635
|
+
readonly staleUntil: Schema.Finite;
|
|
636
|
+
}>;
|
|
637
|
+
}>, Schema.Struct<{
|
|
638
|
+
readonly operation: Schema.Literal<"release">;
|
|
639
|
+
readonly key: Schema.String;
|
|
640
|
+
readonly lease: Schema.String;
|
|
641
|
+
}>, Schema.Struct<{
|
|
642
|
+
readonly operation: Schema.Literal<"renew">;
|
|
643
|
+
readonly key: Schema.String;
|
|
644
|
+
readonly lease: Schema.String;
|
|
645
|
+
}>, Schema.Struct<{
|
|
646
|
+
readonly operation: Schema.Literal<"write">;
|
|
647
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
648
|
+
readonly key: Schema.String;
|
|
649
|
+
readonly entry: Schema.Struct<{
|
|
650
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
651
|
+
readonly version: Schema.String;
|
|
652
|
+
readonly freshUntil: Schema.Finite;
|
|
653
|
+
readonly staleUntil: Schema.Finite;
|
|
654
|
+
}>;
|
|
655
|
+
}>>;
|
|
656
|
+
}>, Schema.Struct<{
|
|
657
|
+
readonly operation: Schema.Literal<"invalidate">;
|
|
658
|
+
readonly key: Schema.String;
|
|
659
|
+
}>]>;
|
|
660
|
+
readonly cacheReply: Schema.Union<readonly [Schema.Struct<{
|
|
661
|
+
readonly ok: Schema.Literal<true>;
|
|
662
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
663
|
+
}>, Schema.Struct<{
|
|
664
|
+
readonly ok: Schema.Literal<false>;
|
|
665
|
+
readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
|
|
666
|
+
}>]>;
|
|
667
|
+
};
|
|
668
|
+
};
|