apps 0.0.1-beta.5 → 0.0.1-beta.7
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 +65 -43
- package/framework-reference.json +1 -1
- package/js/{chunk-FWQC6I3C.js → chunk-5T57N25Q.js} +13 -1
- package/js/{chunk-TDNYXSIX.js → chunk-72JNVHPK.js} +21 -9
- package/js/{chunk-UDDE5KOR.js → chunk-CMYUWAX7.js} +26 -7
- package/js/chunk-FL2QR3XW.js +507 -0
- package/js/{chunk-G7T27IWB.js → chunk-MKWZPDR6.js} +1 -1
- package/js/{chunk-CYYBFC2K.js → chunk-NKLWZJLE.js} +1 -1
- package/js/{chunk-67EVWIGJ.js → chunk-OCYUEU47.js} +4 -4
- package/js/{chunk-YEPYT6SD.js → chunk-R3EV5FTO.js} +12 -0
- package/js/{chunk-XHO2ZX6W.js → chunk-RFVIONFX.js} +27 -10
- package/js/{chunk-LUVSFETN.js → chunk-UESPOTUI.js} +127 -231
- package/js/{chunk-DQAZTA4I.js → chunk-WLE7WX2U.js} +290 -20
- package/js/{chunk-C3VAOK5B.js → chunk-YXQHV65J.js} +53 -26
- package/js/chunk-Z5M2LQOZ.js +209 -0
- package/js/client.js +1 -1
- package/js/contracts.js +34 -11
- package/js/effect.js +9 -11
- package/js/graphql.js +25 -32
- package/js/host.js +9 -11
- package/js/index.js +194 -192
- package/js/mcp/effect.js +11 -13
- package/js/mcp/stdio.js +15 -17
- package/js/mcp.js +50 -36
- package/js/openapi.js +166 -108
- package/js/skills.js +6 -7
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/contracts/app.d.ts +2 -5
- package/types/apps/src/contracts/host.d.ts +19 -7
- package/types/apps/src/contracts/mcp.d.ts +16 -0
- package/types/apps/src/contracts/openapi.d.ts +4 -0
- package/types/apps/src/contracts/operations.d.ts +0 -5
- package/types/apps/src/contracts/protocol-version.d.ts +2 -2
- package/types/apps/src/contracts/protocols/4.d.ts +1229 -0
- package/types/apps/src/contracts/protocols/5.d.ts +1090 -0
- package/types/apps/src/contracts/provider.d.ts +51 -5
- package/types/apps/src/contracts/router.d.ts +59 -0
- package/types/apps/src/graphql.d.ts +1 -3
- package/types/apps/src/implementation/account-router.d.ts +12 -0
- package/types/apps/src/implementation/app.d.ts +5 -4
- package/types/apps/src/implementation/catalog-cache.d.ts +9 -2
- package/types/apps/src/implementation/graphql-catalog.d.ts +1 -4
- package/types/apps/src/implementation/mcp-catalog.d.ts +1 -4
- package/types/apps/src/implementation/mcp-client.d.ts +35 -19
- package/types/apps/src/implementation/mcp.d.ts +35 -19
- package/types/apps/src/implementation/openapi-compile.d.ts +2 -1
- package/types/apps/src/implementation/openapi-source.d.ts +2 -6
- package/types/apps/src/implementation/operations.d.ts +26 -3
- package/types/apps/src/implementation/protocol-operations.d.ts +3 -4
- package/types/apps/src/implementation/provider.d.ts +9 -4
- package/types/apps/src/implementation/router-catalog.d.ts +225 -0
- package/types/apps/src/implementation/router.d.ts +59 -0
- package/types/apps/src/implementation/schema.d.ts +5 -1
- package/types/apps/src/implementation/workflow-context.d.ts +1 -1
- package/types/apps/src/index.d.ts +5 -4
- package/types/apps/src/mcp-stdio.d.ts +2 -5
- package/types/apps/src/mcp.d.ts +5 -4
- package/types/apps/src/openapi.d.ts +6 -6
- package/js/chunk-3XKZDQLM.js +0 -93
- package/js/chunk-4M277YTM.js +0 -136
- package/js/chunk-SB3V4YVR.js +0 -18
- package/js/chunk-W4DMKWAB.js +0 -35
- package/types/apps/src/contracts/dynamic-tools.d.ts +0 -13
- package/types/apps/src/implementation/account-operations.d.ts +0 -151
- package/types/apps/src/implementation/dynamic-tools.d.ts +0 -8
|
@@ -0,0 +1,1090 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host protocol 5: protocol 4 plus account checks.
|
|
3
|
+
*
|
|
4
|
+
* Builds declare which account slots have a provider check, and hosts can ask a build to check one
|
|
5
|
+
* account for one slot without evaluating the app. Every other message is protocol 4's, re-exported
|
|
6
|
+
* unchanged.
|
|
7
|
+
*
|
|
8
|
+
* Once released this protocol is frozen like the earlier ones: `bun run check` compares `protocol5` with
|
|
9
|
+
* `packages/apps/protocols/5.json`. Define the next protocol instead of editing this file.
|
|
10
|
+
* See notes/apps-publishing.md.
|
|
11
|
+
*/
|
|
12
|
+
import { Schema } from "effect";
|
|
13
|
+
export * from "./4.js";
|
|
14
|
+
/** Account slots available without binding accounts or evaluating the app factory. */
|
|
15
|
+
export declare const DeclaredRequirements: Schema.Struct<{
|
|
16
|
+
/** Protocol support of this retained framework build, not an author-declared requirement. */
|
|
17
|
+
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
18
|
+
readonly skills: Schema.Literal<true>;
|
|
19
|
+
readonly toolIndex: Schema.optionalKey<Schema.Literal<true>>;
|
|
20
|
+
readonly skillSources: Schema.optionalKey<Schema.Literal<true>>;
|
|
21
|
+
readonly scheduledTools: Schema.optionalKey<Schema.Literal<true>>;
|
|
22
|
+
}>>;
|
|
23
|
+
readonly database: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
24
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
25
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
26
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
27
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
28
|
+
readonly references: Schema.optional<Schema.String>;
|
|
29
|
+
}>>;
|
|
30
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
31
|
+
readonly name: Schema.String;
|
|
32
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
33
|
+
}>>;
|
|
34
|
+
}>>>;
|
|
35
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Struct<{
|
|
36
|
+
readonly definition: Schema.Struct<{
|
|
37
|
+
readonly name: Schema.NonEmptyString;
|
|
38
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
39
|
+
readonly type: Schema.Literal<"secrets">;
|
|
40
|
+
readonly label: Schema.String;
|
|
41
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
42
|
+
}>, Schema.Struct<{
|
|
43
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
44
|
+
readonly discover: Schema.String;
|
|
45
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
46
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
47
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
48
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
49
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
50
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
51
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
52
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
53
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
54
|
+
}>, Schema.Struct<{
|
|
55
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
56
|
+
readonly authorizationUrl: Schema.String;
|
|
57
|
+
readonly tokenUrl: Schema.String;
|
|
58
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
59
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
60
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
61
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
62
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
63
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
64
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
65
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
66
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
67
|
+
}>, Schema.Struct<{
|
|
68
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
69
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
70
|
+
readonly discover: Schema.String;
|
|
71
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
72
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
73
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
74
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
75
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
76
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
77
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
78
|
+
}>, Schema.Struct<{
|
|
79
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
80
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
81
|
+
readonly tokenUrl: Schema.String;
|
|
82
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
83
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
84
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
85
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
86
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
87
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
88
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
89
|
+
}>]>>;
|
|
90
|
+
}>;
|
|
91
|
+
readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
|
|
92
|
+
/**
|
|
93
|
+
* The slot's provider defines an account check. Kept beside the definition, not in it, so
|
|
94
|
+
* adding or editing a check never changes the provider's identity.
|
|
95
|
+
*/
|
|
96
|
+
readonly health: Schema.optionalKey<Schema.Literal<true>>;
|
|
97
|
+
}>>;
|
|
98
|
+
}>;
|
|
99
|
+
/** Parsed declared account requirements. */
|
|
100
|
+
export type DeclaredRequirements = typeof DeclaredRequirements.Type;
|
|
101
|
+
/**
|
|
102
|
+
* Check one account for one declared slot. The invocation supplies only that slot, as a single
|
|
103
|
+
* account even when the slot takes many. The app factory is not evaluated.
|
|
104
|
+
*/
|
|
105
|
+
export declare const AccountCheckCommand: Schema.Struct<{
|
|
106
|
+
readonly operation: Schema.Literal<"account-check">;
|
|
107
|
+
readonly requirement: Schema.NonEmptyString;
|
|
108
|
+
}>;
|
|
109
|
+
export type AccountCheckCommand = typeof AccountCheckCommand.Type;
|
|
110
|
+
/** Framework-owned dispatch, independent of app-authored HTTP routing. */
|
|
111
|
+
export declare const HostRequest: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
112
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
113
|
+
}>, Schema.Struct<{
|
|
114
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
115
|
+
readonly name: Schema.NonEmptyString;
|
|
116
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
117
|
+
}>, Schema.Struct<{
|
|
118
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
119
|
+
readonly name: Schema.NonEmptyString;
|
|
120
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
121
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
122
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
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-validate">;
|
|
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-complete">;
|
|
140
|
+
}>, Schema.Struct<{
|
|
141
|
+
readonly name: Schema.NonEmptyString;
|
|
142
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
143
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
144
|
+
readonly callbackUrl: Schema.String;
|
|
145
|
+
readonly secret: Schema.String;
|
|
146
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
147
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
148
|
+
}>, Schema.Struct<{
|
|
149
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
150
|
+
readonly name: Schema.NonEmptyString;
|
|
151
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
152
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
153
|
+
readonly callbackUrl: Schema.String;
|
|
154
|
+
readonly secret: Schema.String;
|
|
155
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
156
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
157
|
+
}>, Schema.Struct<{
|
|
158
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
159
|
+
readonly request: Schema.Struct<{
|
|
160
|
+
readonly url: Schema.String;
|
|
161
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
162
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
163
|
+
readonly body: Schema.String;
|
|
164
|
+
}>;
|
|
165
|
+
readonly name: Schema.NonEmptyString;
|
|
166
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
167
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
168
|
+
readonly callbackUrl: Schema.String;
|
|
169
|
+
readonly secret: Schema.String;
|
|
170
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
171
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
172
|
+
}>]>, Schema.Struct<{
|
|
173
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
174
|
+
}>, Schema.Struct<{
|
|
175
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
176
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
177
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
178
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
179
|
+
}>, Schema.Struct<{
|
|
180
|
+
readonly operation: Schema.Literal<"skills">;
|
|
181
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
182
|
+
}>, Schema.Struct<{
|
|
183
|
+
readonly operation: Schema.Literal<"query">;
|
|
184
|
+
readonly name: Schema.NonEmptyString;
|
|
185
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
186
|
+
}>, Schema.Struct<{
|
|
187
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
188
|
+
readonly name: Schema.NonEmptyString;
|
|
189
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
190
|
+
}>, Schema.Struct<{
|
|
191
|
+
readonly operation: Schema.Literal<"call">;
|
|
192
|
+
readonly tool: Schema.NonEmptyString;
|
|
193
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["query", "mutation"]>>;
|
|
194
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
195
|
+
}>, Schema.Struct<{
|
|
196
|
+
readonly operation: Schema.Literal<"account-check">;
|
|
197
|
+
readonly requirement: Schema.NonEmptyString;
|
|
198
|
+
}>]>;
|
|
199
|
+
/** Parsed portable dispatch request. */
|
|
200
|
+
export type HostRequest = typeof HostRequest.Type;
|
|
201
|
+
/** The JSON body the host sends to a bundle's generated server entry. */
|
|
202
|
+
export declare const HostInvocation: Schema.Struct<{
|
|
203
|
+
readonly command: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
204
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
205
|
+
}>, Schema.Struct<{
|
|
206
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
207
|
+
readonly name: Schema.NonEmptyString;
|
|
208
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
209
|
+
}>, Schema.Struct<{
|
|
210
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
211
|
+
readonly name: Schema.NonEmptyString;
|
|
212
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
213
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
214
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
215
|
+
}>, Schema.Struct<{
|
|
216
|
+
readonly name: Schema.NonEmptyString;
|
|
217
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
218
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
219
|
+
readonly callbackUrl: Schema.String;
|
|
220
|
+
readonly secret: Schema.String;
|
|
221
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
222
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
223
|
+
}>, Schema.Struct<{
|
|
224
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
225
|
+
readonly name: Schema.NonEmptyString;
|
|
226
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
227
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
228
|
+
readonly callbackUrl: Schema.String;
|
|
229
|
+
readonly secret: Schema.String;
|
|
230
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
231
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
232
|
+
}>, Schema.Struct<{
|
|
233
|
+
readonly name: Schema.NonEmptyString;
|
|
234
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
235
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
236
|
+
readonly callbackUrl: Schema.String;
|
|
237
|
+
readonly secret: Schema.String;
|
|
238
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
239
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
240
|
+
}>, Schema.Struct<{
|
|
241
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
242
|
+
readonly name: Schema.NonEmptyString;
|
|
243
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
244
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
245
|
+
readonly callbackUrl: Schema.String;
|
|
246
|
+
readonly secret: Schema.String;
|
|
247
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
248
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
249
|
+
}>, Schema.Struct<{
|
|
250
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
251
|
+
readonly request: Schema.Struct<{
|
|
252
|
+
readonly url: Schema.String;
|
|
253
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
254
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
255
|
+
readonly body: Schema.String;
|
|
256
|
+
}>;
|
|
257
|
+
readonly name: Schema.NonEmptyString;
|
|
258
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
259
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
260
|
+
readonly callbackUrl: Schema.String;
|
|
261
|
+
readonly secret: Schema.String;
|
|
262
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
263
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
264
|
+
}>]>, Schema.Struct<{
|
|
265
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
266
|
+
}>, Schema.Struct<{
|
|
267
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
268
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
269
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
270
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
271
|
+
}>, Schema.Struct<{
|
|
272
|
+
readonly operation: Schema.Literal<"skills">;
|
|
273
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
274
|
+
}>, Schema.Struct<{
|
|
275
|
+
readonly operation: Schema.Literal<"query">;
|
|
276
|
+
readonly name: Schema.NonEmptyString;
|
|
277
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
278
|
+
}>, Schema.Struct<{
|
|
279
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
280
|
+
readonly name: Schema.NonEmptyString;
|
|
281
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
282
|
+
}>, Schema.Struct<{
|
|
283
|
+
readonly operation: Schema.Literal<"call">;
|
|
284
|
+
readonly tool: Schema.NonEmptyString;
|
|
285
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["query", "mutation"]>>;
|
|
286
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
287
|
+
}>, Schema.Struct<{
|
|
288
|
+
readonly operation: Schema.Literal<"account-check">;
|
|
289
|
+
readonly requirement: Schema.NonEmptyString;
|
|
290
|
+
}>]>;
|
|
291
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
292
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
293
|
+
readonly provider: Schema.Struct<{
|
|
294
|
+
readonly name: Schema.NonEmptyString;
|
|
295
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
296
|
+
readonly type: Schema.Literal<"secrets">;
|
|
297
|
+
readonly label: Schema.String;
|
|
298
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
299
|
+
}>, Schema.Struct<{
|
|
300
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
301
|
+
readonly discover: Schema.String;
|
|
302
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
303
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
304
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
305
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
306
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
307
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
308
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
309
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
310
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
311
|
+
}>, Schema.Struct<{
|
|
312
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
313
|
+
readonly authorizationUrl: Schema.String;
|
|
314
|
+
readonly tokenUrl: Schema.String;
|
|
315
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
316
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
317
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
318
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
319
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
320
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
321
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
322
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
323
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
324
|
+
}>, Schema.Struct<{
|
|
325
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
326
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
327
|
+
readonly discover: Schema.String;
|
|
328
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
329
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
330
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
331
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
332
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
333
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
334
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
335
|
+
}>, Schema.Struct<{
|
|
336
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
337
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
338
|
+
readonly tokenUrl: Schema.String;
|
|
339
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
340
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
341
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
342
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
343
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
344
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
345
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
346
|
+
}>]>>;
|
|
347
|
+
}>;
|
|
348
|
+
readonly method: Schema.NonEmptyString;
|
|
349
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
350
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
351
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
352
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
353
|
+
readonly provider: Schema.Struct<{
|
|
354
|
+
readonly name: Schema.NonEmptyString;
|
|
355
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
356
|
+
readonly type: Schema.Literal<"secrets">;
|
|
357
|
+
readonly label: Schema.String;
|
|
358
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
359
|
+
}>, Schema.Struct<{
|
|
360
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
361
|
+
readonly discover: Schema.String;
|
|
362
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
363
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
364
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
365
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
366
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
367
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
368
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
369
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
370
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
371
|
+
}>, Schema.Struct<{
|
|
372
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
373
|
+
readonly authorizationUrl: Schema.String;
|
|
374
|
+
readonly tokenUrl: Schema.String;
|
|
375
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
376
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
377
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
378
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
379
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
380
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
381
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
382
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
383
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
384
|
+
}>, Schema.Struct<{
|
|
385
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
386
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
387
|
+
readonly discover: Schema.String;
|
|
388
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
389
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
390
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
391
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
392
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
393
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
394
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
395
|
+
}>, Schema.Struct<{
|
|
396
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
397
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
398
|
+
readonly tokenUrl: Schema.String;
|
|
399
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
400
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
401
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
402
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
403
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
404
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
405
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
406
|
+
}>]>>;
|
|
407
|
+
}>;
|
|
408
|
+
readonly method: Schema.NonEmptyString;
|
|
409
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
410
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
411
|
+
}>>]>>;
|
|
412
|
+
readonly approval: Schema.optionalKey<Schema.Struct<{
|
|
413
|
+
readonly tool: Schema.NonEmptyString;
|
|
414
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
415
|
+
}>>;
|
|
416
|
+
readonly replay: Schema.optionalKey<Schema.Struct<{
|
|
417
|
+
readonly key: Schema.NonEmptyString;
|
|
418
|
+
readonly fingerprint: Schema.NonEmptyString;
|
|
419
|
+
}>>;
|
|
420
|
+
readonly deadline: Schema.optionalKey<Schema.Finite>;
|
|
421
|
+
readonly workflowRun: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
422
|
+
}>;
|
|
423
|
+
export type HostInvocation = typeof HostInvocation.Type;
|
|
424
|
+
/** Every message of protocol 5, in the order its snapshot records them. */
|
|
425
|
+
export declare const protocol5: {
|
|
426
|
+
readonly version: 5;
|
|
427
|
+
readonly schemas: {
|
|
428
|
+
readonly invocation: Schema.Struct<{
|
|
429
|
+
readonly command: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
430
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
431
|
+
}>, Schema.Struct<{
|
|
432
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
433
|
+
readonly name: Schema.NonEmptyString;
|
|
434
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
435
|
+
}>, Schema.Struct<{
|
|
436
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
437
|
+
readonly name: Schema.NonEmptyString;
|
|
438
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
439
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
440
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
441
|
+
}>, Schema.Struct<{
|
|
442
|
+
readonly name: Schema.NonEmptyString;
|
|
443
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
444
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
445
|
+
readonly callbackUrl: Schema.String;
|
|
446
|
+
readonly secret: Schema.String;
|
|
447
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
448
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
449
|
+
}>, Schema.Struct<{
|
|
450
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
451
|
+
readonly name: Schema.NonEmptyString;
|
|
452
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
453
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
454
|
+
readonly callbackUrl: Schema.String;
|
|
455
|
+
readonly secret: Schema.String;
|
|
456
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
457
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
458
|
+
}>, Schema.Struct<{
|
|
459
|
+
readonly name: Schema.NonEmptyString;
|
|
460
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
461
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
462
|
+
readonly callbackUrl: Schema.String;
|
|
463
|
+
readonly secret: Schema.String;
|
|
464
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
465
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
466
|
+
}>, Schema.Struct<{
|
|
467
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
468
|
+
readonly name: Schema.NonEmptyString;
|
|
469
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
470
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
471
|
+
readonly callbackUrl: Schema.String;
|
|
472
|
+
readonly secret: Schema.String;
|
|
473
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
474
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
475
|
+
}>, Schema.Struct<{
|
|
476
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
477
|
+
readonly request: Schema.Struct<{
|
|
478
|
+
readonly url: Schema.String;
|
|
479
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
480
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
481
|
+
readonly body: Schema.String;
|
|
482
|
+
}>;
|
|
483
|
+
readonly name: Schema.NonEmptyString;
|
|
484
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
485
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
486
|
+
readonly callbackUrl: Schema.String;
|
|
487
|
+
readonly secret: Schema.String;
|
|
488
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
489
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
490
|
+
}>]>, Schema.Struct<{
|
|
491
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
492
|
+
}>, Schema.Struct<{
|
|
493
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
494
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
495
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
496
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
497
|
+
}>, Schema.Struct<{
|
|
498
|
+
readonly operation: Schema.Literal<"skills">;
|
|
499
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
500
|
+
}>, Schema.Struct<{
|
|
501
|
+
readonly operation: Schema.Literal<"query">;
|
|
502
|
+
readonly name: Schema.NonEmptyString;
|
|
503
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
504
|
+
}>, Schema.Struct<{
|
|
505
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
506
|
+
readonly name: Schema.NonEmptyString;
|
|
507
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
508
|
+
}>, Schema.Struct<{
|
|
509
|
+
readonly operation: Schema.Literal<"call">;
|
|
510
|
+
readonly tool: Schema.NonEmptyString;
|
|
511
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["query", "mutation"]>>;
|
|
512
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
513
|
+
}>, Schema.Struct<{
|
|
514
|
+
readonly operation: Schema.Literal<"account-check">;
|
|
515
|
+
readonly requirement: Schema.NonEmptyString;
|
|
516
|
+
}>]>;
|
|
517
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
518
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
519
|
+
readonly provider: Schema.Struct<{
|
|
520
|
+
readonly name: Schema.NonEmptyString;
|
|
521
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
522
|
+
readonly type: Schema.Literal<"secrets">;
|
|
523
|
+
readonly label: Schema.String;
|
|
524
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
525
|
+
}>, Schema.Struct<{
|
|
526
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
527
|
+
readonly discover: Schema.String;
|
|
528
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
529
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
530
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
531
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
532
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
533
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
534
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
535
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
536
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
537
|
+
}>, Schema.Struct<{
|
|
538
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
539
|
+
readonly authorizationUrl: Schema.String;
|
|
540
|
+
readonly tokenUrl: Schema.String;
|
|
541
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
542
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
543
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
544
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
545
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
546
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
547
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
548
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
549
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
550
|
+
}>, Schema.Struct<{
|
|
551
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
552
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
553
|
+
readonly discover: Schema.String;
|
|
554
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
555
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
556
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
557
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
558
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
559
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
560
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
561
|
+
}>, Schema.Struct<{
|
|
562
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
563
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
564
|
+
readonly tokenUrl: Schema.String;
|
|
565
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
566
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
567
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
568
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
569
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
570
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
571
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
572
|
+
}>]>>;
|
|
573
|
+
}>;
|
|
574
|
+
readonly method: Schema.NonEmptyString;
|
|
575
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
576
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
577
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
578
|
+
readonly id: Schema.brand<Schema.String, "acc">;
|
|
579
|
+
readonly provider: Schema.Struct<{
|
|
580
|
+
readonly name: Schema.NonEmptyString;
|
|
581
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
582
|
+
readonly type: Schema.Literal<"secrets">;
|
|
583
|
+
readonly label: Schema.String;
|
|
584
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
585
|
+
}>, Schema.Struct<{
|
|
586
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
587
|
+
readonly discover: Schema.String;
|
|
588
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
589
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
590
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
591
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
592
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
593
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
594
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
595
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
596
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
597
|
+
}>, Schema.Struct<{
|
|
598
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
599
|
+
readonly authorizationUrl: Schema.String;
|
|
600
|
+
readonly tokenUrl: Schema.String;
|
|
601
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
602
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
603
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
604
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
605
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
606
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
607
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
608
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
609
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
610
|
+
}>, Schema.Struct<{
|
|
611
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
612
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
613
|
+
readonly discover: Schema.String;
|
|
614
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
615
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
616
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
617
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
618
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
619
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
620
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
621
|
+
}>, Schema.Struct<{
|
|
622
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
623
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
624
|
+
readonly tokenUrl: Schema.String;
|
|
625
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
626
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
627
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
628
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
629
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
630
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
631
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
632
|
+
}>]>>;
|
|
633
|
+
}>;
|
|
634
|
+
readonly method: Schema.NonEmptyString;
|
|
635
|
+
readonly generation: Schema.optionalKey<Schema.Int>;
|
|
636
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
637
|
+
}>>]>>;
|
|
638
|
+
readonly approval: Schema.optionalKey<Schema.Struct<{
|
|
639
|
+
readonly tool: Schema.NonEmptyString;
|
|
640
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
641
|
+
}>>;
|
|
642
|
+
readonly replay: Schema.optionalKey<Schema.Struct<{
|
|
643
|
+
readonly key: Schema.NonEmptyString;
|
|
644
|
+
readonly fingerprint: Schema.NonEmptyString;
|
|
645
|
+
}>>;
|
|
646
|
+
readonly deadline: Schema.optionalKey<Schema.Finite>;
|
|
647
|
+
readonly workflowRun: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
648
|
+
}>;
|
|
649
|
+
readonly request: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
650
|
+
readonly operation: Schema.Literal<"workflows">;
|
|
651
|
+
}>, Schema.Struct<{
|
|
652
|
+
readonly operation: Schema.Literal<"workflow-validate">;
|
|
653
|
+
readonly name: Schema.NonEmptyString;
|
|
654
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
655
|
+
}>, Schema.Struct<{
|
|
656
|
+
readonly operation: Schema.Literal<"workflow-run">;
|
|
657
|
+
readonly name: Schema.NonEmptyString;
|
|
658
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
659
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
660
|
+
readonly operation: Schema.Literal<"webhooks">;
|
|
661
|
+
}>, Schema.Struct<{
|
|
662
|
+
readonly name: Schema.NonEmptyString;
|
|
663
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
664
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
665
|
+
readonly callbackUrl: Schema.String;
|
|
666
|
+
readonly secret: Schema.String;
|
|
667
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
668
|
+
readonly operation: Schema.Literal<"webhook-validate">;
|
|
669
|
+
}>, Schema.Struct<{
|
|
670
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
671
|
+
readonly name: Schema.NonEmptyString;
|
|
672
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
673
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
674
|
+
readonly callbackUrl: Schema.String;
|
|
675
|
+
readonly secret: Schema.String;
|
|
676
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
677
|
+
readonly operation: Schema.Literal<"webhook-complete">;
|
|
678
|
+
}>, Schema.Struct<{
|
|
679
|
+
readonly name: Schema.NonEmptyString;
|
|
680
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
681
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
682
|
+
readonly callbackUrl: Schema.String;
|
|
683
|
+
readonly secret: Schema.String;
|
|
684
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
685
|
+
readonly operation: Schema.Literal<"webhook-register">;
|
|
686
|
+
}>, Schema.Struct<{
|
|
687
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
688
|
+
readonly name: Schema.NonEmptyString;
|
|
689
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
690
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
691
|
+
readonly callbackUrl: Schema.String;
|
|
692
|
+
readonly secret: Schema.String;
|
|
693
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
694
|
+
readonly operation: Schema.Literal<"webhook-unregister">;
|
|
695
|
+
}>, Schema.Struct<{
|
|
696
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
697
|
+
readonly request: Schema.Struct<{
|
|
698
|
+
readonly url: Schema.String;
|
|
699
|
+
readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
700
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
701
|
+
readonly body: Schema.String;
|
|
702
|
+
}>;
|
|
703
|
+
readonly name: Schema.NonEmptyString;
|
|
704
|
+
readonly subscriptionId: Schema.NonEmptyString;
|
|
705
|
+
readonly sourceAccount: Schema.brand<Schema.String, "acc">;
|
|
706
|
+
readonly callbackUrl: Schema.String;
|
|
707
|
+
readonly secret: Schema.String;
|
|
708
|
+
readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
709
|
+
readonly operation: Schema.Literal<"webhook-handle">;
|
|
710
|
+
}>]>, Schema.Struct<{
|
|
711
|
+
readonly operation: Schema.Literal<"requirements">;
|
|
712
|
+
}>, Schema.Struct<{
|
|
713
|
+
readonly operation: Schema.Literal<"inspect">;
|
|
714
|
+
readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
|
|
715
|
+
readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
716
|
+
readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
|
|
717
|
+
}>, Schema.Struct<{
|
|
718
|
+
readonly operation: Schema.Literal<"skills">;
|
|
719
|
+
readonly sources: Schema.optionalKey<Schema.Literal<true>>;
|
|
720
|
+
}>, Schema.Struct<{
|
|
721
|
+
readonly operation: Schema.Literal<"query">;
|
|
722
|
+
readonly name: Schema.NonEmptyString;
|
|
723
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
724
|
+
}>, Schema.Struct<{
|
|
725
|
+
readonly operation: Schema.Literal<"mutate">;
|
|
726
|
+
readonly name: Schema.NonEmptyString;
|
|
727
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
728
|
+
}>, Schema.Struct<{
|
|
729
|
+
readonly operation: Schema.Literal<"call">;
|
|
730
|
+
readonly tool: Schema.NonEmptyString;
|
|
731
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["query", "mutation"]>>;
|
|
732
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
733
|
+
}>, Schema.Struct<{
|
|
734
|
+
readonly operation: Schema.Literal<"account-check">;
|
|
735
|
+
readonly requirement: Schema.NonEmptyString;
|
|
736
|
+
}>]>;
|
|
737
|
+
readonly requirements: Schema.Struct<{
|
|
738
|
+
/** Protocol support of this retained framework build, not an author-declared requirement. */
|
|
739
|
+
readonly capabilities: Schema.optionalKey<Schema.Struct<{
|
|
740
|
+
readonly skills: Schema.Literal<true>;
|
|
741
|
+
readonly toolIndex: Schema.optionalKey<Schema.Literal<true>>;
|
|
742
|
+
readonly skillSources: Schema.optionalKey<Schema.Literal<true>>;
|
|
743
|
+
readonly scheduledTools: Schema.optionalKey<Schema.Literal<true>>;
|
|
744
|
+
}>>;
|
|
745
|
+
readonly database: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
746
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
|
|
747
|
+
readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
|
|
748
|
+
readonly optional: Schema.optional<Schema.Boolean>;
|
|
749
|
+
readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
|
|
750
|
+
readonly references: Schema.optional<Schema.String>;
|
|
751
|
+
}>>;
|
|
752
|
+
readonly indexes: Schema.$Array<Schema.Struct<{
|
|
753
|
+
readonly name: Schema.String;
|
|
754
|
+
readonly fields: Schema.NonEmptyArray<Schema.String>;
|
|
755
|
+
}>>;
|
|
756
|
+
}>>>;
|
|
757
|
+
readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Struct<{
|
|
758
|
+
readonly definition: Schema.Struct<{
|
|
759
|
+
readonly name: Schema.NonEmptyString;
|
|
760
|
+
readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
761
|
+
readonly type: Schema.Literal<"secrets">;
|
|
762
|
+
readonly label: Schema.String;
|
|
763
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
764
|
+
}>, Schema.Struct<{
|
|
765
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
766
|
+
readonly discover: Schema.String;
|
|
767
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
768
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
769
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
770
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
771
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
772
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
773
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
774
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
775
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
776
|
+
}>, Schema.Struct<{
|
|
777
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
778
|
+
readonly authorizationUrl: Schema.String;
|
|
779
|
+
readonly tokenUrl: Schema.String;
|
|
780
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
781
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
782
|
+
readonly issuer: Schema.optionalKey<Schema.String>;
|
|
783
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
784
|
+
readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
|
|
785
|
+
readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
786
|
+
readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
|
|
787
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
788
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
789
|
+
}>, Schema.Struct<{
|
|
790
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
791
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
792
|
+
readonly discover: Schema.String;
|
|
793
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
794
|
+
readonly tokenUrl: Schema.optionalKey<Schema.Never>;
|
|
795
|
+
readonly revocationUrl: Schema.optionalKey<Schema.Never>;
|
|
796
|
+
readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
797
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
798
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
799
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
800
|
+
}>, Schema.Struct<{
|
|
801
|
+
readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
802
|
+
readonly grant: Schema.Literal<"client_credentials">;
|
|
803
|
+
readonly tokenUrl: Schema.String;
|
|
804
|
+
readonly revocationUrl: Schema.optionalKey<Schema.String>;
|
|
805
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
806
|
+
readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
|
|
807
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
808
|
+
readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
|
|
809
|
+
readonly discover: Schema.optionalKey<Schema.Never>;
|
|
810
|
+
readonly type: Schema.Literal<"oauth2">;
|
|
811
|
+
}>]>>;
|
|
812
|
+
}>;
|
|
813
|
+
readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
|
|
814
|
+
/**
|
|
815
|
+
* The slot's provider defines an account check. Kept beside the definition, not in it, so
|
|
816
|
+
* adding or editing a check never changes the provider's identity.
|
|
817
|
+
*/
|
|
818
|
+
readonly health: Schema.optionalKey<Schema.Literal<true>>;
|
|
819
|
+
}>>;
|
|
820
|
+
}>;
|
|
821
|
+
readonly accountCheck: Schema.Struct<{
|
|
822
|
+
readonly accountInfo: Schema.optionalKey<Schema.Struct<{
|
|
823
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
824
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
825
|
+
readonly username: Schema.optionalKey<Schema.String>;
|
|
826
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
827
|
+
readonly avatarUrl: Schema.optionalKey<Schema.String>;
|
|
828
|
+
readonly profileUrl: Schema.optionalKey<Schema.String>;
|
|
829
|
+
}>>;
|
|
830
|
+
}>;
|
|
831
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
832
|
+
readonly ok: Schema.Literal<true>;
|
|
833
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
834
|
+
readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
|
|
835
|
+
}>, Schema.Struct<{
|
|
836
|
+
readonly ok: Schema.Literal<false>;
|
|
837
|
+
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("../workflows.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed, typeof import("./1.js").HostOperationNotFound, typeof import("./3.js").HostOperationFailed, typeof import("../../../../app-data/src/index.js").DatabaseLimitExceeded, typeof import("../../../../app-data/src/index.js").DatabaseFieldReserved, typeof import("./1.js").HostToolNotFound, typeof import("./1.js").HostInputInvalid, typeof import("./1.js").HostOutputInvalid, typeof import("./1.js").HostToolBlocked, typeof import("./1.js").HostToolApprovalRequired, typeof import("./1.js").HostToolPolicyFailed, typeof import("../elicitation.js").ElicitationFailed, typeof import("./4.js").HostKindMismatch]>;
|
|
838
|
+
}>]>;
|
|
839
|
+
readonly catalog: Schema.Struct<{
|
|
840
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
841
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
842
|
+
readonly name: Schema.NonEmptyString;
|
|
843
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
844
|
+
readonly kind: Schema.Literal<"interval">;
|
|
845
|
+
readonly milliseconds: Schema.Int;
|
|
846
|
+
}>, Schema.Struct<{
|
|
847
|
+
readonly kind: Schema.Literal<"cron">;
|
|
848
|
+
readonly calendar: Schema.Struct<{
|
|
849
|
+
readonly expression: Schema.NonEmptyString;
|
|
850
|
+
readonly timezone: Schema.NonEmptyString;
|
|
851
|
+
}>;
|
|
852
|
+
}>]>;
|
|
853
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
854
|
+
}>>>;
|
|
855
|
+
readonly name: Schema.NonEmptyString;
|
|
856
|
+
readonly router: Schema.optionalKey<Schema.NonEmptyString>;
|
|
857
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
858
|
+
readonly description: Schema.String;
|
|
859
|
+
readonly inputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
860
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
861
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
862
|
+
readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
863
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
864
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
865
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
866
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
867
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
868
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
869
|
+
}>>;
|
|
870
|
+
readonly _meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
871
|
+
}>>;
|
|
872
|
+
readonly routers: Schema.$Array<Schema.Struct<{
|
|
873
|
+
readonly path: Schema.String;
|
|
874
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
875
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
876
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
877
|
+
readonly src: Schema.NonEmptyString;
|
|
878
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
879
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
880
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
881
|
+
}>>>;
|
|
882
|
+
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
883
|
+
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
884
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("../provider-error.js").ProviderError, typeof import("../mcp.js").McpError, typeof import("../skills.js").SkillLoadFailed, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed]>>;
|
|
885
|
+
}>>;
|
|
886
|
+
}>;
|
|
887
|
+
readonly catalogSummary: Schema.Struct<{
|
|
888
|
+
readonly tools: Schema.$Array<Schema.Struct<{
|
|
889
|
+
readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
890
|
+
readonly name: Schema.NonEmptyString;
|
|
891
|
+
readonly timing: Schema.Union<readonly [Schema.Struct<{
|
|
892
|
+
readonly kind: Schema.Literal<"interval">;
|
|
893
|
+
readonly milliseconds: Schema.Int;
|
|
894
|
+
}>, Schema.Struct<{
|
|
895
|
+
readonly kind: Schema.Literal<"cron">;
|
|
896
|
+
readonly calendar: Schema.Struct<{
|
|
897
|
+
readonly expression: Schema.NonEmptyString;
|
|
898
|
+
readonly timezone: Schema.NonEmptyString;
|
|
899
|
+
}>;
|
|
900
|
+
}>]>;
|
|
901
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
902
|
+
}>>>;
|
|
903
|
+
readonly name: Schema.NonEmptyString;
|
|
904
|
+
readonly router: Schema.optionalKey<Schema.NonEmptyString>;
|
|
905
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
906
|
+
readonly description: Schema.String;
|
|
907
|
+
readonly readOnly: Schema.optionalKey<Schema.Boolean>;
|
|
908
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
909
|
+
readonly annotations: Schema.optionalKey<Schema.Struct<{
|
|
910
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
911
|
+
readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
|
|
912
|
+
readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
|
|
913
|
+
readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
|
|
914
|
+
readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
|
|
915
|
+
}>>;
|
|
916
|
+
}>>;
|
|
917
|
+
readonly routers: Schema.$Array<Schema.Struct<{
|
|
918
|
+
readonly path: Schema.String;
|
|
919
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
920
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
921
|
+
readonly icons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
922
|
+
readonly src: Schema.NonEmptyString;
|
|
923
|
+
readonly mimeType: Schema.optionalKey<Schema.String>;
|
|
924
|
+
readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
925
|
+
readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
|
|
926
|
+
}>>>;
|
|
927
|
+
readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
|
|
928
|
+
readonly skill: Schema.optionalKey<Schema.NonEmptyString>;
|
|
929
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("../provider-error.js").ProviderError, typeof import("../mcp.js").McpError, typeof import("../skills.js").SkillLoadFailed, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed]>>;
|
|
930
|
+
}>>;
|
|
931
|
+
}>;
|
|
932
|
+
readonly skills: Schema.Union<readonly [Schema.Struct<{
|
|
933
|
+
readonly skills: Schema.$Array<Schema.Struct<{
|
|
934
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
935
|
+
readonly path: Schema.NonEmptyString;
|
|
936
|
+
readonly content: Schema.String;
|
|
937
|
+
}>>;
|
|
938
|
+
readonly name: Schema.NonEmptyString;
|
|
939
|
+
readonly description: Schema.String;
|
|
940
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
941
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
942
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
943
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
944
|
+
}>>;
|
|
945
|
+
readonly dynamic: Schema.Boolean;
|
|
946
|
+
readonly cached: Schema.optionalKey<Schema.Boolean>;
|
|
947
|
+
}>, Schema.$Array<Schema.Struct<{
|
|
948
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
949
|
+
readonly path: Schema.NonEmptyString;
|
|
950
|
+
readonly content: Schema.String;
|
|
951
|
+
}>>;
|
|
952
|
+
readonly name: Schema.NonEmptyString;
|
|
953
|
+
readonly description: Schema.String;
|
|
954
|
+
readonly license: Schema.optionalKey<Schema.String>;
|
|
955
|
+
readonly compatibility: Schema.optionalKey<Schema.String>;
|
|
956
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
957
|
+
readonly "allowed-tools": Schema.optionalKey<Schema.String>;
|
|
958
|
+
}>>]>;
|
|
959
|
+
readonly elicitationRequest: Schema.Struct<{
|
|
960
|
+
readonly mode: Schema.Literal<"form">;
|
|
961
|
+
readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
|
|
962
|
+
readonly $schema: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
|
|
963
|
+
readonly type: Schema.tag<"object">;
|
|
964
|
+
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]>>;
|
|
965
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
966
|
+
}>>;
|
|
967
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
968
|
+
readonly message: Schema.String;
|
|
969
|
+
}>;
|
|
970
|
+
readonly elicitationReply: Schema.Union<readonly [Schema.Struct<{
|
|
971
|
+
readonly ok: Schema.Literal<true>;
|
|
972
|
+
readonly response: Schema.Union<readonly [Schema.Struct<{
|
|
973
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
974
|
+
readonly action: Schema.Literal<"accept">;
|
|
975
|
+
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>;
|
|
976
|
+
}>, Schema.Struct<{
|
|
977
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
978
|
+
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
979
|
+
}>]>;
|
|
980
|
+
}>, Schema.Struct<{
|
|
981
|
+
readonly ok: Schema.Literal<false>;
|
|
982
|
+
readonly error: typeof import("../elicitation.js").ElicitationFailed;
|
|
983
|
+
}>]>;
|
|
984
|
+
readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
|
|
985
|
+
readonly operation: Schema.Literal<"do">;
|
|
986
|
+
readonly name: Schema.NonEmptyString;
|
|
987
|
+
readonly options: Schema.Struct<{
|
|
988
|
+
readonly retries: Schema.optionalKey<Schema.Struct<{
|
|
989
|
+
readonly limit: Schema.Int;
|
|
990
|
+
readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
991
|
+
readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
|
|
992
|
+
}>>;
|
|
993
|
+
readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
|
|
994
|
+
}>;
|
|
995
|
+
}>, Schema.Struct<{
|
|
996
|
+
readonly operation: Schema.Literal<"sleep">;
|
|
997
|
+
readonly name: Schema.NonEmptyString;
|
|
998
|
+
readonly duration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
|
|
999
|
+
}>, Schema.Struct<{
|
|
1000
|
+
readonly operation: Schema.Literal<"until">;
|
|
1001
|
+
readonly name: Schema.NonEmptyString;
|
|
1002
|
+
readonly timestamp: Schema.Finite;
|
|
1003
|
+
}>, Schema.Struct<{
|
|
1004
|
+
readonly operation: Schema.Literal<"context">;
|
|
1005
|
+
}>, Schema.Struct<{
|
|
1006
|
+
readonly operation: Schema.Literal<"invoke">;
|
|
1007
|
+
readonly kind: Schema.Literals<readonly ["query", "mutation"]>;
|
|
1008
|
+
readonly name: Schema.NonEmptyString;
|
|
1009
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1010
|
+
readonly stepId: Schema.NonEmptyString;
|
|
1011
|
+
readonly timeout: Schema.Finite;
|
|
1012
|
+
}>]>;
|
|
1013
|
+
readonly workflowStepReply: Schema.Union<readonly [Schema.Struct<{
|
|
1014
|
+
readonly ok: Schema.Literal<true>;
|
|
1015
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1016
|
+
}>, Schema.Struct<{
|
|
1017
|
+
readonly ok: Schema.Literal<false>;
|
|
1018
|
+
readonly error: typeof import("../workflows.js").WorkflowFailure;
|
|
1019
|
+
}>]>;
|
|
1020
|
+
readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
|
|
1021
|
+
readonly operation: Schema.Literal<"start">;
|
|
1022
|
+
readonly workflow: Schema.NonEmptyString;
|
|
1023
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1024
|
+
readonly key: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1025
|
+
}>, Schema.Struct<{
|
|
1026
|
+
readonly operation: Schema.Literal<"get">;
|
|
1027
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
1028
|
+
}>, Schema.Struct<{
|
|
1029
|
+
readonly operation: Schema.Literal<"list">;
|
|
1030
|
+
readonly workflow: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1031
|
+
readonly cursor: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
|
|
1032
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
1033
|
+
}>, Schema.Struct<{
|
|
1034
|
+
readonly operation: Schema.Literal<"terminate">;
|
|
1035
|
+
readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
|
|
1036
|
+
}>]>;
|
|
1037
|
+
readonly cacheCommand: Schema.Union<readonly [Schema.Struct<{
|
|
1038
|
+
readonly operation: Schema.Literal<"read">;
|
|
1039
|
+
readonly keys: Schema.$Array<Schema.String>;
|
|
1040
|
+
}>, Schema.Struct<{
|
|
1041
|
+
readonly operation: Schema.Literal<"acquire">;
|
|
1042
|
+
readonly key: Schema.String;
|
|
1043
|
+
readonly refresh: Schema.Boolean;
|
|
1044
|
+
readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1045
|
+
}>, Schema.Struct<{
|
|
1046
|
+
readonly operation: Schema.Literal<"claim">;
|
|
1047
|
+
readonly key: Schema.String;
|
|
1048
|
+
readonly version: Schema.NullOr<Schema.String>;
|
|
1049
|
+
}>, Schema.Struct<{
|
|
1050
|
+
readonly operation: Schema.Literal<"publish">;
|
|
1051
|
+
readonly key: Schema.String;
|
|
1052
|
+
readonly lease: Schema.String;
|
|
1053
|
+
readonly entry: Schema.Struct<{
|
|
1054
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1055
|
+
readonly version: Schema.String;
|
|
1056
|
+
readonly freshUntil: Schema.Finite;
|
|
1057
|
+
readonly staleUntil: Schema.Finite;
|
|
1058
|
+
}>;
|
|
1059
|
+
}>, Schema.Struct<{
|
|
1060
|
+
readonly operation: Schema.Literal<"release">;
|
|
1061
|
+
readonly key: Schema.String;
|
|
1062
|
+
readonly lease: Schema.String;
|
|
1063
|
+
}>, Schema.Struct<{
|
|
1064
|
+
readonly operation: Schema.Literal<"renew">;
|
|
1065
|
+
readonly key: Schema.String;
|
|
1066
|
+
readonly lease: Schema.String;
|
|
1067
|
+
}>, Schema.Struct<{
|
|
1068
|
+
readonly operation: Schema.Literal<"write">;
|
|
1069
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
1070
|
+
readonly key: Schema.String;
|
|
1071
|
+
readonly entry: Schema.Struct<{
|
|
1072
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1073
|
+
readonly version: Schema.String;
|
|
1074
|
+
readonly freshUntil: Schema.Finite;
|
|
1075
|
+
readonly staleUntil: Schema.Finite;
|
|
1076
|
+
}>;
|
|
1077
|
+
}>>;
|
|
1078
|
+
}>, Schema.Struct<{
|
|
1079
|
+
readonly operation: Schema.Literal<"invalidate">;
|
|
1080
|
+
readonly key: Schema.String;
|
|
1081
|
+
}>]>;
|
|
1082
|
+
readonly cacheReply: Schema.Union<readonly [Schema.Struct<{
|
|
1083
|
+
readonly ok: Schema.Literal<true>;
|
|
1084
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1085
|
+
}>, Schema.Struct<{
|
|
1086
|
+
readonly ok: Schema.Literal<false>;
|
|
1087
|
+
readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
|
|
1088
|
+
}>]>;
|
|
1089
|
+
};
|
|
1090
|
+
};
|