apps 0.0.1-beta.9 → 0.0.1-beta.91

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.
Files changed (191) hide show
  1. package/README.md +56 -38
  2. package/framework-reference.json +1 -1
  3. package/js/chunk-3LEVTFD4.js +712 -0
  4. package/js/chunk-5FHWNLCI.js +88 -0
  5. package/js/{chunk-FL2QR3XW.js → chunk-5MDA7MKL.js} +338 -73
  6. package/js/chunk-6XQLA5NC.js +5047 -0
  7. package/js/{chunk-M3B3DE4K.js → chunk-74YVXBKY.js} +463 -218
  8. package/js/chunk-7PHHWYV4.js +335 -0
  9. package/js/chunk-DADXWWRZ.js +449 -0
  10. package/js/{chunk-27F7W2LG.js → chunk-DDHBUKXX.js} +18 -2
  11. package/js/{chunk-UK573G7W.js → chunk-EOPQ727L.js} +87 -51
  12. package/js/{chunk-5T57N25Q.js → chunk-GQ33QSNB.js} +583 -69
  13. package/js/{chunk-JU7VHODU.js → chunk-H72MEDMN.js} +65 -10
  14. package/js/chunk-I5C7FD5Z.js +171 -0
  15. package/js/{chunk-CDL5PM2Q.js → chunk-IFJU5SYQ.js} +19082 -18402
  16. package/js/{chunk-VFZKSM3T.js → chunk-JPEUKEV4.js} +3 -3
  17. package/js/{chunk-KUMBKVJD.js → chunk-KLYSEHUD.js} +2 -2
  18. package/js/{chunk-RFVIONFX.js → chunk-KUCCHNVY.js} +123 -44
  19. package/js/chunk-OD3KFKZD.js +1617 -0
  20. package/js/{chunk-57RKNWL2.js → chunk-PD6I2SDG.js} +4 -4
  21. package/js/{chunk-72JNVHPK.js → chunk-PYQLOLOC.js} +4 -3
  22. package/js/{chunk-ODEIDRGW.js → chunk-QWQM3CLH.js} +795 -176
  23. package/js/{chunk-IJX4CYZO.js → chunk-TUMGL2OC.js} +228 -264
  24. package/js/{chunk-IPI4MFSN.js → chunk-XBG7HHXC.js} +2 -2
  25. package/js/chunk-XPRZTLHD.js +1915 -0
  26. package/js/chunk-YNJ5CZMJ.js +93 -0
  27. package/js/chunk-YRGL4QEF.js +49 -0
  28. package/js/{chunk-Z5M2LQOZ.js → chunk-YWFUWTUJ.js} +113 -58
  29. package/js/client.js +142 -78
  30. package/js/contracts.js +142 -21
  31. package/js/effect.js +18 -19
  32. package/js/{es-APDZKREY.js → es-DIULA3ZF.js} +62 -1659
  33. package/js/graphql.js +49 -40
  34. package/js/host.js +85 -62
  35. package/js/index.js +165 -70
  36. package/js/mcp/effect.js +21 -21
  37. package/js/mcp.js +76 -56
  38. package/js/openapi.js +4189 -1411
  39. package/js/react.js +2 -3
  40. package/js/skills/effect.js +6 -3
  41. package/js/skills.js +208 -81
  42. package/js/storage/facet.js +1 -540
  43. package/js/ui/auth/contracts.js +2 -2
  44. package/js/ui/auth.js +5 -5
  45. package/js/ui/contracts.js +5 -4
  46. package/js/ui/serving.js +8605 -225
  47. package/package.json +3 -8
  48. package/runtime.json +1 -1
  49. package/types/app-cache/src/contracts/cache.d.ts +18 -0
  50. package/types/app-cache/src/index.d.ts +34 -2
  51. package/types/apps/src/contracts/api-response-error.d.ts +4 -0
  52. package/types/apps/src/contracts/app.d.ts +60 -11
  53. package/types/apps/src/contracts/cache.d.ts +20 -0
  54. package/types/apps/src/contracts/context.d.ts +60 -17
  55. package/types/apps/src/contracts/elicitation.d.ts +23 -7
  56. package/types/apps/src/contracts/events.d.ts +94 -0
  57. package/types/apps/src/contracts/failure.d.ts +30 -1
  58. package/types/apps/src/contracts/graphql.d.ts +2 -1
  59. package/types/apps/src/contracts/host.d.ts +1446 -17
  60. package/types/apps/src/contracts/icons.d.ts +28 -0
  61. package/types/apps/src/contracts/live.d.ts +2 -0
  62. package/types/apps/src/contracts/mcp.d.ts +81 -20
  63. package/types/apps/src/contracts/network.d.ts +120 -0
  64. package/types/apps/src/contracts/openapi-compile.d.ts +82 -3
  65. package/types/apps/src/contracts/openapi.d.ts +41 -9
  66. package/types/apps/src/contracts/operations.d.ts +14 -7
  67. package/types/apps/src/contracts/placement.d.ts +102 -0
  68. package/types/apps/src/contracts/protocol-version.d.ts +2 -2
  69. package/types/apps/src/contracts/protocols/1.d.ts +733 -81
  70. package/types/apps/src/contracts/protocols/10.d.ts +1450 -0
  71. package/types/apps/src/contracts/protocols/11.d.ts +1149 -0
  72. package/types/apps/src/contracts/protocols/12.d.ts +3310 -0
  73. package/types/apps/src/contracts/protocols/2.d.ts +69 -26
  74. package/types/apps/src/contracts/protocols/3.d.ts +133 -33
  75. package/types/apps/src/contracts/protocols/4.d.ts +122 -45
  76. package/types/apps/src/contracts/protocols/5.d.ts +157 -47
  77. package/types/apps/src/contracts/protocols/6.d.ts +1629 -0
  78. package/types/apps/src/contracts/protocols/7.d.ts +1785 -0
  79. package/types/apps/src/contracts/protocols/8.d.ts +1182 -0
  80. package/types/apps/src/contracts/protocols/9.d.ts +1104 -0
  81. package/types/apps/src/contracts/protocols/current.d.ts +6669 -0
  82. package/types/apps/src/contracts/protocols/oauth-6.d.ts +74 -0
  83. package/types/apps/src/contracts/protocols/oauth.d.ts +134 -0
  84. package/types/apps/src/contracts/provider-error.d.ts +9 -0
  85. package/types/apps/src/contracts/provider.d.ts +90 -6
  86. package/types/apps/src/contracts/schedules.d.ts +7 -1
  87. package/types/apps/src/contracts/schema.d.ts +21 -0
  88. package/types/apps/src/contracts/skills.d.ts +50 -13
  89. package/types/apps/src/contracts/sql.d.ts +63 -0
  90. package/types/apps/src/contracts/ui.d.ts +44 -14
  91. package/types/apps/src/contracts/webhooks.d.ts +24 -7
  92. package/types/apps/src/contracts/workflows.d.ts +19 -17
  93. package/types/apps/src/facet.d.ts +4 -5
  94. package/types/apps/src/host.d.ts +5 -0
  95. package/types/apps/src/implementation/account-router.d.ts +4 -3
  96. package/types/apps/src/implementation/app.d.ts +41 -14
  97. package/types/apps/src/implementation/authoring.d.ts +25 -5
  98. package/types/apps/src/implementation/browser-scripts.gen.d.ts +6 -0
  99. package/types/apps/src/implementation/cache.d.ts +29 -2
  100. package/types/apps/src/implementation/catalog-cache.d.ts +35 -4
  101. package/types/apps/src/implementation/elicitation.d.ts +18 -15
  102. package/types/apps/src/implementation/events.d.ts +64 -0
  103. package/types/apps/src/implementation/failure-detail.d.ts +28 -5
  104. package/types/apps/src/implementation/graphql-catalog.d.ts +3 -3
  105. package/types/apps/src/implementation/graphql.d.ts +4 -3
  106. package/types/apps/src/implementation/input-problems.d.ts +6 -2
  107. package/types/apps/src/implementation/invocation-timing.d.ts +18 -0
  108. package/types/apps/src/implementation/live.d.ts +2 -2
  109. package/types/apps/src/implementation/mcp-call.d.ts +6 -5
  110. package/types/apps/src/implementation/mcp-catalog.d.ts +6 -4
  111. package/types/apps/src/implementation/mcp-client.d.ts +17 -9
  112. package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
  113. package/types/apps/src/implementation/mcp.d.ts +20 -9
  114. package/types/apps/src/implementation/network.d.ts +16 -0
  115. package/types/apps/src/implementation/openapi-compile.d.ts +28 -7
  116. package/types/apps/src/implementation/openapi-document.d.ts +46 -19
  117. package/types/apps/src/implementation/openapi-names.d.ts +9 -4
  118. package/types/apps/src/implementation/openapi-request.d.ts +10 -2
  119. package/types/apps/src/implementation/openapi-source.d.ts +23 -1
  120. package/types/apps/src/implementation/openapi-upgrade.d.ts +4 -0
  121. package/types/apps/src/implementation/operations.d.ts +57 -7
  122. package/types/apps/src/implementation/optimistic.d.ts +1 -1
  123. package/types/apps/src/implementation/placement.d.ts +60 -0
  124. package/types/apps/src/implementation/protocol-operations.d.ts +3 -0
  125. package/types/apps/src/implementation/provider-error.d.ts +28 -1
  126. package/types/apps/src/implementation/provider.d.ts +19 -4
  127. package/types/apps/src/implementation/query-commit.d.ts +1 -1
  128. package/types/apps/src/implementation/router-catalog.d.ts +20 -18
  129. package/types/apps/src/implementation/router.d.ts +24 -5
  130. package/types/apps/src/implementation/runtime-yield.d.ts +7 -0
  131. package/types/apps/src/implementation/schedules.d.ts +39 -8
  132. package/types/apps/src/implementation/schema.d.ts +98 -11
  133. package/types/apps/src/implementation/skills.d.ts +18 -24
  134. package/types/apps/src/implementation/sql.d.ts +71 -0
  135. package/types/apps/src/implementation/ui-account-notice.d.ts +9 -0
  136. package/types/apps/src/implementation/ui-auth.d.ts +1 -1
  137. package/types/apps/src/implementation/ui-client.d.ts +2 -2
  138. package/types/apps/src/implementation/ui-document.d.ts +5 -0
  139. package/types/apps/src/implementation/ui-errors.d.ts +1 -1
  140. package/types/apps/src/implementation/ui-serving.d.ts +26 -9
  141. package/types/apps/src/implementation/ui-watch.d.ts +1 -1
  142. package/types/apps/src/implementation/upstream-error.d.ts +7 -0
  143. package/types/apps/src/implementation/webhooks.d.ts +15 -6
  144. package/types/apps/src/implementation/workflow-context.d.ts +6 -2
  145. package/types/apps/src/implementation/workflows.d.ts +11 -4
  146. package/types/apps/src/index.d.ts +68 -19
  147. package/types/apps/src/mcp.d.ts +20 -1
  148. package/types/apps/src/openapi.d.ts +6 -1
  149. package/types/apps/src/react.d.ts +1 -1
  150. package/types/apps/src/skills.d.ts +10 -8
  151. package/types/apps/src/ui-serving.d.ts +1 -1
  152. package/types/telemetry/src/app-records.d.ts +42 -0
  153. package/types/telemetry/src/browser-operations.d.ts +2 -2
  154. package/types/telemetry/src/browser.d.ts +8 -3
  155. package/types/telemetry/src/config.d.ts +2 -2
  156. package/types/telemetry/src/index.d.ts +2 -1
  157. package/types/telemetry/src/layer.d.ts +10 -4
  158. package/types/telemetry/src/measurements.d.ts +1 -1
  159. package/types/telemetry/src/ownership.d.ts +60 -0
  160. package/types/telemetry/src/recorded-failure.d.ts +29 -0
  161. package/types/telemetry/src/relay.d.ts +16 -6
  162. package/types/telemetry/src/span-attributes.d.ts +17 -1
  163. package/types/telemetry/src/transport.d.ts +8 -1
  164. package/types/utils/src/api-error.d.ts +55 -0
  165. package/types/utils/src/connection-failure.d.ts +33 -0
  166. package/types/utils/src/recorded-message.d.ts +18 -0
  167. package/types/utils/src/user-facing-error.d.ts +83 -0
  168. package/js/chunk-7EK2JDX4.js +0 -299
  169. package/js/chunk-IKS2C5MQ.js +0 -224
  170. package/js/chunk-MKWZPDR6.js +0 -63
  171. package/js/chunk-N7YDVXYJ.js +0 -186
  172. package/js/chunk-NKLWZJLE.js +0 -172
  173. package/js/chunk-PJJ24GU7.js +0 -877
  174. package/js/chunk-PZB6T6KU.js +0 -19
  175. package/js/chunk-R3EV5FTO.js +0 -97
  176. package/js/chunk-SJFZCGXG.js +0 -1243
  177. package/js/chunk-WLE7WX2U.js +0 -2645
  178. package/js/chunk-YXQHV65J.js +0 -242
  179. package/js/chunk-ZQINWV4W.js +0 -630
  180. package/js/mcp/stdio.js +0 -128
  181. package/types/app-data/src/implementation/cursor.d.ts +0 -10
  182. package/types/app-data/src/implementation/index-key.d.ts +0 -7
  183. package/types/app-data/src/implementation/promise.d.ts +0 -68
  184. package/types/app-data/src/implementation/range.d.ts +0 -8
  185. package/types/app-data/src/implementation/schema.d.ts +0 -18
  186. package/types/app-data/src/implementation/sqlite.d.ts +0 -11
  187. package/types/app-data/src/index.d.ts +0 -4
  188. package/types/apps/src/contracts/storage.d.ts +0 -68
  189. package/types/apps/src/implementation/mcp-stdio.d.ts +0 -4
  190. package/types/apps/src/implementation/storage.d.ts +0 -15
  191. package/types/apps/src/mcp-stdio.d.ts +0 -5
@@ -4,7 +4,8 @@
4
4
  *
5
5
  * Every other message is protocol 1's, re-exported unchanged. Once released this protocol is
6
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.
7
+ * The module imports only `effect` and earlier protocol modules, so no change elsewhere can alter
8
+ * it. Define the next protocol to change it. See notes/apps-publishing.md.
8
9
  */
9
10
  import { Schema } from "effect";
10
11
  export * from "./1.js";
@@ -190,10 +191,15 @@ export declare const protocol2: {
190
191
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
191
192
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
192
193
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
194
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
195
+ readonly path: Schema.String;
196
+ }>>;
193
197
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
194
198
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
195
199
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
196
200
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
201
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
202
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
197
203
  readonly type: Schema.Literal<"oauth2">;
198
204
  }>, Schema.Struct<{
199
205
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -203,32 +209,41 @@ export declare const protocol2: {
203
209
  readonly scopes: Schema.$Array<Schema.String>;
204
210
  readonly issuer: Schema.optionalKey<Schema.String>;
205
211
  readonly discover: Schema.optionalKey<Schema.Never>;
212
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
213
+ readonly path: Schema.String;
214
+ }>>;
206
215
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
207
216
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
208
217
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
209
218
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
219
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
220
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
210
221
  readonly type: Schema.Literal<"oauth2">;
211
222
  }>, Schema.Struct<{
212
223
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
224
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
225
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
226
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
227
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
213
228
  readonly grant: Schema.Literal<"client_credentials">;
214
229
  readonly discover: Schema.String;
215
230
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
216
231
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
217
232
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
218
233
  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
234
  readonly type: Schema.Literal<"oauth2">;
222
235
  }>, Schema.Struct<{
223
236
  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
237
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
229
238
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
230
239
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
231
240
  readonly discover: Schema.optionalKey<Schema.Never>;
241
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
242
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
243
+ readonly grant: Schema.Literal<"client_credentials">;
244
+ readonly tokenUrl: Schema.String;
245
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
246
+ readonly scopes: Schema.$Array<Schema.String>;
232
247
  readonly type: Schema.Literal<"oauth2">;
233
248
  }>]>>;
234
249
  }>;
@@ -250,10 +265,15 @@ export declare const protocol2: {
250
265
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
251
266
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
252
267
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
268
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
269
+ readonly path: Schema.String;
270
+ }>>;
253
271
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
254
272
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
255
273
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
256
274
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
275
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
276
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
257
277
  readonly type: Schema.Literal<"oauth2">;
258
278
  }>, Schema.Struct<{
259
279
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -263,32 +283,41 @@ export declare const protocol2: {
263
283
  readonly scopes: Schema.$Array<Schema.String>;
264
284
  readonly issuer: Schema.optionalKey<Schema.String>;
265
285
  readonly discover: Schema.optionalKey<Schema.Never>;
286
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
287
+ readonly path: Schema.String;
288
+ }>>;
266
289
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
267
290
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
268
291
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
269
292
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
293
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
294
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
270
295
  readonly type: Schema.Literal<"oauth2">;
271
296
  }>, Schema.Struct<{
272
297
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
298
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
299
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
300
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
301
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
273
302
  readonly grant: Schema.Literal<"client_credentials">;
274
303
  readonly discover: Schema.String;
275
304
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
276
305
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
277
306
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
278
307
  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
308
  readonly type: Schema.Literal<"oauth2">;
282
309
  }>, Schema.Struct<{
283
310
  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
311
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
289
312
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
290
313
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
291
314
  readonly discover: Schema.optionalKey<Schema.Never>;
315
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
316
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
317
+ readonly grant: Schema.Literal<"client_credentials">;
318
+ readonly tokenUrl: Schema.String;
319
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
320
+ readonly scopes: Schema.$Array<Schema.String>;
292
321
  readonly type: Schema.Literal<"oauth2">;
293
322
  }>]>>;
294
323
  }>;
@@ -397,7 +426,7 @@ export declare const protocol2: {
397
426
  readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
398
427
  }>, Schema.Struct<{
399
428
  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]>;
429
+ readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.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("./1.js").ElicitationFailed]>;
401
430
  }>]>;
402
431
  readonly requirements: Schema.Struct<{
403
432
  readonly capabilities: Schema.optionalKey<Schema.Struct<{
@@ -432,10 +461,15 @@ export declare const protocol2: {
432
461
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
433
462
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
434
463
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
464
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
465
+ readonly path: Schema.String;
466
+ }>>;
435
467
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
436
468
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
437
469
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
438
470
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
471
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
472
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
439
473
  readonly type: Schema.Literal<"oauth2">;
440
474
  }>, Schema.Struct<{
441
475
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -445,32 +479,41 @@ export declare const protocol2: {
445
479
  readonly scopes: Schema.$Array<Schema.String>;
446
480
  readonly issuer: Schema.optionalKey<Schema.String>;
447
481
  readonly discover: Schema.optionalKey<Schema.Never>;
482
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
483
+ readonly path: Schema.String;
484
+ }>>;
448
485
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
449
486
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
450
487
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
451
488
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
489
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
490
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
452
491
  readonly type: Schema.Literal<"oauth2">;
453
492
  }>, Schema.Struct<{
454
493
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
494
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
495
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
496
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
497
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
455
498
  readonly grant: Schema.Literal<"client_credentials">;
456
499
  readonly discover: Schema.String;
457
500
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
458
501
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
459
502
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
460
503
  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
504
  readonly type: Schema.Literal<"oauth2">;
464
505
  }>, Schema.Struct<{
465
506
  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
507
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
471
508
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
472
509
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
473
510
  readonly discover: Schema.optionalKey<Schema.Never>;
511
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
512
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
513
+ readonly grant: Schema.Literal<"client_credentials">;
514
+ readonly tokenUrl: Schema.String;
515
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
516
+ readonly scopes: Schema.$Array<Schema.String>;
474
517
  readonly type: Schema.Literal<"oauth2">;
475
518
  }>]>>;
476
519
  }>;
@@ -537,10 +580,10 @@ export declare const protocol2: {
537
580
  readonly elicitationRequest: Schema.Struct<{
538
581
  readonly mode: Schema.Literal<"form">;
539
582
  readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
540
- readonly $schema: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
583
+ readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
541
584
  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>;
585
+ readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
586
+ readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
544
587
  }>>;
545
588
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
546
589
  readonly message: Schema.String;
@@ -550,14 +593,14 @@ export declare const protocol2: {
550
593
  readonly response: Schema.Union<readonly [Schema.Struct<{
551
594
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
552
595
  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>;
596
+ readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
554
597
  }>, Schema.Struct<{
555
598
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
556
599
  readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
557
600
  }>]>;
558
601
  }>, Schema.Struct<{
559
602
  readonly ok: Schema.Literal<false>;
560
- readonly error: typeof import("../elicitation.js").ElicitationFailed;
603
+ readonly error: typeof import("./1.js").ElicitationFailed;
561
604
  }>]>;
562
605
  readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
563
606
  readonly operation: Schema.Literal<"do">;
@@ -662,7 +705,7 @@ export declare const protocol2: {
662
705
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
663
706
  }>, Schema.Struct<{
664
707
  readonly ok: Schema.Literal<false>;
665
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
708
+ readonly error: typeof import("./1.js").CacheError;
666
709
  }>]>;
667
710
  };
668
711
  };
@@ -5,20 +5,78 @@
5
5
  * database budget, and declarations with a reserved database field, fail with their named error.
6
6
  *
7
7
  * This protocol is released and frozen once merged. `bun run check` compares `protocol3` with
8
- * `packages/apps/protocols/3.json`. Do not edit this file or the schemas it reaches to change the
9
- * wire format; define the next protocol instead. See notes/apps-publishing.md.
8
+ * `packages/apps/protocols/3.json`. The module imports only `effect` and earlier protocol modules,
9
+ * so no change elsewhere can alter it; define the next protocol to change the wire format.
10
+ * See notes/apps-publishing.md.
10
11
  */
11
12
  import { Schema } from "effect";
12
- import { DatabaseFieldReserved, DatabaseLimitExceeded } from "../../../../app-data/src/contracts/database.js";
13
- import { OpenapiResponseError } from "../api-response-error.js";
14
- import { ElicitationFailed } from "../elicitation.js";
15
- import { McpError } from "../mcp.js";
16
- import { ProviderError } from "../provider-error.js";
17
- import { SkillLoadFailed } from "../skills.js";
18
- import { WorkflowFailure } from "../workflows.js";
19
- import { HostAccountsInvalid, HostInputInvalid, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed } from "./1.js";
13
+ import { ElicitationFailed, HostAccountsInvalid, HostInputInvalid, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, McpError, OpenapiResponseError, ProviderError, SkillLoadFailed } from "./1.js";
20
14
  export { DeclaredAuthMethod, DeclaredProvider, DeclaredRequirements, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, HostedTool, HostedToolSummary, HostRequest, HostRequestInvalid, HostAccountsInvalid, HostOperationNotFound, HostToolNotFound, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, HostInvocation, } from "./1.js";
21
15
  export { SkillSources, SkillCatalogResponse } from "./2.js";
16
+ /** Longest failure message carried across the runtime boundary. */
17
+ export declare const maxFailureMessageLength = 2048;
18
+ /**
19
+ * `app` for errors thrown by authored code, `storage` for app data failures the host raised, and
20
+ * `service` for an external API the app called through a framework helper.
21
+ */
22
+ export declare const FailureSource: Schema.Literals<readonly ["app", "storage", "service"]>;
23
+ /** The thrown error's name, such as `TypeError`, or the host error's tag. */
24
+ export declare const FailureName: Schema.String;
25
+ /** A stable host failure code, such as an app data reason, or the thrown error's own `code`. */
26
+ export declare const FailureCode: Schema.String;
27
+ /** Bounded, with the invocation's account secrets replaced. */
28
+ export declare const FailureMessage: Schema.String;
29
+ /**
30
+ * Where and why a run failed: the failing step and the error the app's own code raised, its
31
+ * message bounded and with account secrets replaced. Runs from before these fields existed have none.
32
+ */
33
+ export declare const WorkflowFailureDetail: {
34
+ step: Schema.optionalKey<Schema.String>;
35
+ errorName: Schema.optionalKey<Schema.String>;
36
+ message: Schema.optionalKey<Schema.String>;
37
+ };
38
+ declare const WorkflowFailure_base: Schema.Class<WorkflowFailure, Schema.TaggedStruct<"WorkflowFailure", {
39
+ readonly reason: Schema.Literals<readonly ["unavailable", "not_found", "input", "output", "operation", "approval", "credentials", "terminated", "execution", "conflict", "engine"]>;
40
+ readonly retryable: Schema.Boolean;
41
+ readonly step: Schema.optionalKey<Schema.String>;
42
+ readonly errorName: Schema.optionalKey<Schema.String>;
43
+ readonly message: Schema.optionalKey<Schema.String>;
44
+ }>, import("effect/Cause").YieldableError>;
45
+ /** Failures cross host boundaries as reason codes plus the app's own bounded error detail. */
46
+ export declare class WorkflowFailure extends WorkflowFailure_base {
47
+ }
48
+ /** Protocol 3's workflow step reply, carrying the failing step and app error. */
49
+ export declare const WorkflowRpcResult: Schema.Union<readonly [Schema.Struct<{
50
+ readonly ok: Schema.Literal<true>;
51
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
52
+ }>, Schema.Struct<{
53
+ readonly ok: Schema.Literal<false>;
54
+ readonly error: typeof WorkflowFailure;
55
+ }>]>;
56
+ export type WorkflowRpcResult = typeof WorkflowRpcResult.Type;
57
+ /**
58
+ * The budget a query or mutation exhausted. `pageSize` bounds one take(n) or paginate call;
59
+ * `valueBytes` bounds one stored row; the rest accumulate across the whole invocation.
60
+ */
61
+ export declare const DatabaseLimit: Schema.Literals<readonly ["scanCalls", "directGets", "rowsRead", "rowsReturned", "pageSize", "bytesRead", "writes", "valueBytes"]>;
62
+ export type DatabaseLimit = typeof DatabaseLimit.Type;
63
+ declare const DatabaseLimitExceeded_base: Schema.Class<DatabaseLimitExceeded, Schema.TaggedStruct<"DatabaseLimitExceeded", {
64
+ readonly limit: Schema.Literals<readonly ["scanCalls", "directGets", "rowsRead", "rowsReturned", "pageSize", "bytesRead", "writes", "valueBytes"]>;
65
+ readonly maximum: Schema.Int;
66
+ readonly requested: Schema.Int;
67
+ }>, import("effect/Cause").YieldableError>;
68
+ /** A query or mutation exceeded one of its database budgets. Nothing it wrote is committed. */
69
+ export declare class DatabaseLimitExceeded extends DatabaseLimitExceeded_base {
70
+ }
71
+ /** Host-owned row metadata that authored tables cannot declare. */
72
+ export declare const reservedFieldNames: readonly ["id", "createdAt", "updatedAt"];
73
+ declare const DatabaseFieldReserved_base: Schema.Class<DatabaseFieldReserved, Schema.TaggedStruct<"DatabaseFieldReserved", {
74
+ readonly table: Schema.String;
75
+ readonly field: Schema.Literals<readonly ["id", "createdAt", "updatedAt"]>;
76
+ }>, import("effect/Cause").YieldableError>;
77
+ /** A table declared a field the host adds to every row. */
78
+ export declare class DatabaseFieldReserved extends DatabaseFieldReserved_base {
79
+ }
22
80
  declare const HostDeclarationInvalid_base: Schema.Class<HostDeclarationInvalid, Schema.TaggedStruct<"HostDeclarationInvalid", {
23
81
  source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
24
82
  errorName: Schema.optionalKey<Schema.String>;
@@ -171,10 +229,15 @@ export declare const protocol3: {
171
229
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
172
230
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
173
231
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
232
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
233
+ readonly path: Schema.String;
234
+ }>>;
174
235
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
175
236
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
176
237
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
177
238
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
239
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
240
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
178
241
  readonly type: Schema.Literal<"oauth2">;
179
242
  }>, Schema.Struct<{
180
243
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -184,32 +247,41 @@ export declare const protocol3: {
184
247
  readonly scopes: Schema.$Array<Schema.String>;
185
248
  readonly issuer: Schema.optionalKey<Schema.String>;
186
249
  readonly discover: Schema.optionalKey<Schema.Never>;
250
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
251
+ readonly path: Schema.String;
252
+ }>>;
187
253
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
188
254
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
189
255
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
190
256
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
257
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
258
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
191
259
  readonly type: Schema.Literal<"oauth2">;
192
260
  }>, Schema.Struct<{
193
261
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
262
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
263
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
264
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
265
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
194
266
  readonly grant: Schema.Literal<"client_credentials">;
195
267
  readonly discover: Schema.String;
196
268
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
197
269
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
198
270
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
199
271
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
200
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
201
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
202
272
  readonly type: Schema.Literal<"oauth2">;
203
273
  }>, Schema.Struct<{
204
274
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
205
- readonly grant: Schema.Literal<"client_credentials">;
206
- readonly tokenUrl: Schema.String;
207
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
208
- readonly scopes: Schema.$Array<Schema.String>;
209
275
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
210
276
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
211
277
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
212
278
  readonly discover: Schema.optionalKey<Schema.Never>;
279
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
280
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
281
+ readonly grant: Schema.Literal<"client_credentials">;
282
+ readonly tokenUrl: Schema.String;
283
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
284
+ readonly scopes: Schema.$Array<Schema.String>;
213
285
  readonly type: Schema.Literal<"oauth2">;
214
286
  }>]>>;
215
287
  }>;
@@ -231,10 +303,15 @@ export declare const protocol3: {
231
303
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
232
304
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
233
305
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
306
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
307
+ readonly path: Schema.String;
308
+ }>>;
234
309
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
235
310
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
236
311
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
237
312
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
313
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
314
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
238
315
  readonly type: Schema.Literal<"oauth2">;
239
316
  }>, Schema.Struct<{
240
317
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -244,32 +321,41 @@ export declare const protocol3: {
244
321
  readonly scopes: Schema.$Array<Schema.String>;
245
322
  readonly issuer: Schema.optionalKey<Schema.String>;
246
323
  readonly discover: Schema.optionalKey<Schema.Never>;
324
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
325
+ readonly path: Schema.String;
326
+ }>>;
247
327
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
248
328
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
249
329
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
250
330
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
331
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
332
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
251
333
  readonly type: Schema.Literal<"oauth2">;
252
334
  }>, Schema.Struct<{
253
335
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
336
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
337
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
338
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
339
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
254
340
  readonly grant: Schema.Literal<"client_credentials">;
255
341
  readonly discover: Schema.String;
256
342
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
257
343
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
258
344
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
259
345
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
260
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
261
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
262
346
  readonly type: Schema.Literal<"oauth2">;
263
347
  }>, Schema.Struct<{
264
348
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
265
- readonly grant: Schema.Literal<"client_credentials">;
266
- readonly tokenUrl: Schema.String;
267
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
268
- readonly scopes: Schema.$Array<Schema.String>;
269
349
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
270
350
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
271
351
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
272
352
  readonly discover: Schema.optionalKey<Schema.Never>;
353
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
354
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
355
+ readonly grant: Schema.Literal<"client_credentials">;
356
+ readonly tokenUrl: Schema.String;
357
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
358
+ readonly scopes: Schema.$Array<Schema.String>;
273
359
  readonly type: Schema.Literal<"oauth2">;
274
360
  }>]>>;
275
361
  }>;
@@ -413,10 +499,15 @@ export declare const protocol3: {
413
499
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
414
500
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
415
501
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
502
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
503
+ readonly path: Schema.String;
504
+ }>>;
416
505
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
417
506
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
418
507
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
419
508
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
509
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
510
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
420
511
  readonly type: Schema.Literal<"oauth2">;
421
512
  }>, Schema.Struct<{
422
513
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -426,32 +517,41 @@ export declare const protocol3: {
426
517
  readonly scopes: Schema.$Array<Schema.String>;
427
518
  readonly issuer: Schema.optionalKey<Schema.String>;
428
519
  readonly discover: Schema.optionalKey<Schema.Never>;
520
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
521
+ readonly path: Schema.String;
522
+ }>>;
429
523
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
430
524
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
431
525
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
432
526
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
527
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
528
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
433
529
  readonly type: Schema.Literal<"oauth2">;
434
530
  }>, Schema.Struct<{
435
531
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
532
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
533
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
534
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
535
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
436
536
  readonly grant: Schema.Literal<"client_credentials">;
437
537
  readonly discover: Schema.String;
438
538
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
439
539
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
440
540
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
441
541
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
442
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
443
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
444
542
  readonly type: Schema.Literal<"oauth2">;
445
543
  }>, Schema.Struct<{
446
544
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
447
- readonly grant: Schema.Literal<"client_credentials">;
448
- readonly tokenUrl: Schema.String;
449
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
450
- readonly scopes: Schema.$Array<Schema.String>;
451
545
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
452
546
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
453
547
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
454
548
  readonly discover: Schema.optionalKey<Schema.Never>;
549
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
550
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
551
+ readonly grant: Schema.Literal<"client_credentials">;
552
+ readonly tokenUrl: Schema.String;
553
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
554
+ readonly scopes: Schema.$Array<Schema.String>;
455
555
  readonly type: Schema.Literal<"oauth2">;
456
556
  }>]>>;
457
557
  }>;
@@ -545,10 +645,10 @@ export declare const protocol3: {
545
645
  readonly elicitationRequest: Schema.Struct<{
546
646
  readonly mode: Schema.Literal<"form">;
547
647
  readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
548
- readonly $schema: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
648
+ readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
549
649
  readonly type: Schema.tag<"object">;
550
- 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]>>;
551
- readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
650
+ readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/ai/McpSchema").ElicitationString, typeof import("effect/ai/McpSchema").ElicitationNumber, typeof import("effect/ai/McpSchema").ElicitationBoolean]>>;
651
+ readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
552
652
  }>>;
553
653
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
554
654
  readonly message: Schema.String;
@@ -558,7 +658,7 @@ export declare const protocol3: {
558
658
  readonly response: Schema.Union<readonly [Schema.Struct<{
559
659
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
560
660
  readonly action: Schema.Literal<"accept">;
561
- 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>;
661
+ readonly content: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
562
662
  }>, Schema.Struct<{
563
663
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
564
664
  readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
@@ -670,7 +770,7 @@ export declare const protocol3: {
670
770
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
671
771
  }>, Schema.Struct<{
672
772
  readonly ok: Schema.Literal<false>;
673
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
773
+ readonly error: typeof import("./1.js").CacheError;
674
774
  }>]>;
675
775
  };
676
776
  };