apps 0.0.1-beta.7 → 0.0.1-beta.73

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 (178) hide show
  1. package/README.md +25 -22
  2. package/framework-reference.json +1 -1
  3. package/js/{chunk-RJDDBDSN.js → chunk-3CVQ3VPP.js} +762 -171
  4. package/js/chunk-3R3KFCDU.js +426 -0
  5. package/js/chunk-5FHWNLCI.js +88 -0
  6. package/js/{chunk-M3B3DE4K.js → chunk-74YVXBKY.js} +463 -218
  7. package/js/chunk-7LMU3ER3.js +274 -0
  8. package/js/chunk-CDXQDN7W.js +92 -0
  9. package/js/{chunk-RFVIONFX.js → chunk-ECCWT5GJ.js} +79 -41
  10. package/js/{chunk-UK573G7W.js → chunk-EOPQ727L.js} +87 -51
  11. package/js/{chunk-CMYUWAX7.js → chunk-G7L5DHQX.js} +126 -31
  12. package/js/{chunk-27F7W2LG.js → chunk-H2CJWXA3.js} +2 -2
  13. package/js/{chunk-JU7VHODU.js → chunk-H72MEDMN.js} +65 -10
  14. package/js/{chunk-CDL5PM2Q.js → chunk-IFJU5SYQ.js} +19082 -18402
  15. package/js/{chunk-VFZKSM3T.js → chunk-JPEUKEV4.js} +3 -3
  16. package/js/{chunk-WLE7WX2U.js → chunk-JW5LYSER.js} +2262 -474
  17. package/js/{chunk-5T57N25Q.js → chunk-KGCTYL2S.js} +511 -63
  18. package/js/{chunk-KUMBKVJD.js → chunk-KLYSEHUD.js} +2 -2
  19. package/js/chunk-LTF4TLMO.js +347 -0
  20. package/js/chunk-MHB7IFG7.js +49 -0
  21. package/js/{chunk-FL2QR3XW.js → chunk-OBYMFSWA.js} +333 -69
  22. package/js/chunk-OD3KFKZD.js +1617 -0
  23. package/js/{chunk-57RKNWL2.js → chunk-PD6I2SDG.js} +4 -4
  24. package/js/{chunk-72JNVHPK.js → chunk-QGHGYH5V.js} +4 -3
  25. package/js/{chunk-NKLWZJLE.js → chunk-RUP4JMKO.js} +25 -14
  26. package/js/{chunk-IJX4CYZO.js → chunk-TUMGL2OC.js} +228 -264
  27. package/js/{chunk-UESPOTUI.js → chunk-WCVV4PPS.js} +899 -190
  28. package/js/{chunk-IPI4MFSN.js → chunk-XBG7HHXC.js} +2 -2
  29. package/js/{chunk-Z5M2LQOZ.js → chunk-ZEJ3IKEC.js} +67 -55
  30. package/js/chunk-ZR7QAG67.js +171 -0
  31. package/js/client.js +142 -94
  32. package/js/contracts.js +125 -26
  33. package/js/effect.js +19 -19
  34. package/js/{es-APDZKREY.js → es-DIULA3ZF.js} +62 -1659
  35. package/js/graphql.js +50 -40
  36. package/js/host.js +83 -58
  37. package/js/index.js +131 -46
  38. package/js/mcp/effect.js +23 -21
  39. package/js/mcp/stdio.js +44 -34
  40. package/js/mcp.js +76 -53
  41. package/js/openapi.js +4071 -1357
  42. package/js/react.js +2 -3
  43. package/js/skills/effect.js +6 -3
  44. package/js/skills.js +208 -81
  45. package/js/storage/facet.js +1 -540
  46. package/js/ui/auth/contracts.js +2 -2
  47. package/js/ui/auth.js +5 -5
  48. package/js/ui/contracts.js +5 -4
  49. package/js/ui/serving.js +8517 -214
  50. package/package.json +3 -4
  51. package/runtime.json +1 -1
  52. package/types/app-cache/src/contracts/cache.d.ts +2 -0
  53. package/types/app-cache/src/index.d.ts +10 -1
  54. package/types/apps/src/contracts/api-response-error.d.ts +4 -0
  55. package/types/apps/src/contracts/app.d.ts +7 -3
  56. package/types/apps/src/contracts/cache.d.ts +20 -0
  57. package/types/apps/src/contracts/context.d.ts +19 -11
  58. package/types/apps/src/contracts/elicitation.d.ts +6 -6
  59. package/types/apps/src/contracts/events.d.ts +93 -0
  60. package/types/apps/src/contracts/failure.d.ts +30 -1
  61. package/types/apps/src/contracts/graphql.d.ts +2 -1
  62. package/types/apps/src/contracts/host.d.ts +641 -16
  63. package/types/apps/src/contracts/live.d.ts +2 -0
  64. package/types/apps/src/contracts/mcp.d.ts +80 -10
  65. package/types/apps/src/contracts/network.d.ts +120 -0
  66. package/types/apps/src/contracts/openapi-compile.d.ts +82 -3
  67. package/types/apps/src/contracts/openapi.d.ts +41 -9
  68. package/types/apps/src/contracts/operations.d.ts +8 -4
  69. package/types/apps/src/contracts/placement.d.ts +102 -0
  70. package/types/apps/src/contracts/protocol-version.d.ts +2 -2
  71. package/types/apps/src/contracts/protocols/1.d.ts +733 -81
  72. package/types/apps/src/contracts/protocols/10.d.ts +1450 -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 +3842 -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/skills.d.ts +50 -13
  87. package/types/apps/src/contracts/sql.d.ts +63 -0
  88. package/types/apps/src/contracts/ui.d.ts +19 -1
  89. package/types/apps/src/contracts/workflows.d.ts +6 -0
  90. package/types/apps/src/facet.d.ts +4 -5
  91. package/types/apps/src/host.d.ts +5 -0
  92. package/types/apps/src/implementation/account-router.d.ts +4 -3
  93. package/types/apps/src/implementation/authoring.d.ts +25 -5
  94. package/types/apps/src/implementation/browser-scripts.gen.d.ts +6 -0
  95. package/types/apps/src/implementation/cache.d.ts +4 -0
  96. package/types/apps/src/implementation/catalog-cache.d.ts +35 -4
  97. package/types/apps/src/implementation/elicitation.d.ts +18 -15
  98. package/types/apps/src/implementation/events.d.ts +59 -0
  99. package/types/apps/src/implementation/failure-detail.d.ts +25 -3
  100. package/types/apps/src/implementation/graphql-catalog.d.ts +3 -3
  101. package/types/apps/src/implementation/graphql.d.ts +4 -3
  102. package/types/apps/src/implementation/input-problems.d.ts +6 -2
  103. package/types/apps/src/implementation/invocation-timing.d.ts +16 -0
  104. package/types/apps/src/implementation/live.d.ts +2 -2
  105. package/types/apps/src/implementation/mcp-call.d.ts +6 -5
  106. package/types/apps/src/implementation/mcp-catalog.d.ts +6 -4
  107. package/types/apps/src/implementation/mcp-client.d.ts +17 -9
  108. package/types/apps/src/implementation/mcp-stdio.d.ts +1 -1
  109. package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
  110. package/types/apps/src/implementation/mcp.d.ts +20 -9
  111. package/types/apps/src/implementation/network.d.ts +16 -0
  112. package/types/apps/src/implementation/openapi-compile.d.ts +26 -6
  113. package/types/apps/src/implementation/openapi-document.d.ts +46 -19
  114. package/types/apps/src/implementation/openapi-names.d.ts +9 -4
  115. package/types/apps/src/implementation/openapi-request.d.ts +10 -2
  116. package/types/apps/src/implementation/openapi-source.d.ts +18 -0
  117. package/types/apps/src/implementation/openapi-upgrade.d.ts +4 -0
  118. package/types/apps/src/implementation/operations.d.ts +17 -2
  119. package/types/apps/src/implementation/optimistic.d.ts +1 -1
  120. package/types/apps/src/implementation/placement.d.ts +60 -0
  121. package/types/apps/src/implementation/protocol-operations.d.ts +3 -0
  122. package/types/apps/src/implementation/provider-error.d.ts +28 -1
  123. package/types/apps/src/implementation/provider.d.ts +18 -3
  124. package/types/apps/src/implementation/query-commit.d.ts +1 -1
  125. package/types/apps/src/implementation/router-catalog.d.ts +11 -13
  126. package/types/apps/src/implementation/router.d.ts +16 -5
  127. package/types/apps/src/implementation/runtime-yield.d.ts +7 -0
  128. package/types/apps/src/implementation/schema.d.ts +90 -10
  129. package/types/apps/src/implementation/skills.d.ts +18 -24
  130. package/types/apps/src/implementation/sql.d.ts +71 -0
  131. package/types/apps/src/implementation/ui-account-notice.d.ts +9 -0
  132. package/types/apps/src/implementation/ui-auth.d.ts +1 -1
  133. package/types/apps/src/implementation/ui-client.d.ts +2 -2
  134. package/types/apps/src/implementation/ui-document.d.ts +5 -0
  135. package/types/apps/src/implementation/ui-errors.d.ts +1 -1
  136. package/types/apps/src/implementation/ui-serving.d.ts +11 -5
  137. package/types/apps/src/implementation/ui-watch.d.ts +1 -1
  138. package/types/apps/src/implementation/upstream-error.d.ts +7 -0
  139. package/types/apps/src/implementation/webhooks.d.ts +1 -1
  140. package/types/apps/src/implementation/workflows.d.ts +1 -1
  141. package/types/apps/src/index.d.ts +55 -13
  142. package/types/apps/src/mcp.d.ts +20 -1
  143. package/types/apps/src/openapi.d.ts +1 -1
  144. package/types/apps/src/react.d.ts +1 -1
  145. package/types/apps/src/skills.d.ts +10 -8
  146. package/types/telemetry/src/app-records.d.ts +42 -0
  147. package/types/telemetry/src/browser-operations.d.ts +7 -4
  148. package/types/telemetry/src/browser.d.ts +8 -3
  149. package/types/telemetry/src/config.d.ts +2 -2
  150. package/types/telemetry/src/index.d.ts +2 -1
  151. package/types/telemetry/src/layer.d.ts +2 -2
  152. package/types/telemetry/src/measurements.d.ts +1 -1
  153. package/types/telemetry/src/ownership.d.ts +56 -0
  154. package/types/telemetry/src/recorded-failure.d.ts +29 -0
  155. package/types/telemetry/src/relay.d.ts +16 -6
  156. package/types/telemetry/src/span-attributes.d.ts +17 -1
  157. package/types/telemetry/src/transport.d.ts +8 -1
  158. package/types/utils/src/api-error.d.ts +55 -0
  159. package/types/utils/src/connection-failure.d.ts +33 -0
  160. package/types/utils/src/recorded-message.d.ts +18 -0
  161. package/types/utils/src/user-facing-error.d.ts +83 -0
  162. package/js/chunk-MKWZPDR6.js +0 -63
  163. package/js/chunk-N7YDVXYJ.js +0 -186
  164. package/js/chunk-OCYUEU47.js +0 -224
  165. package/js/chunk-PJJ24GU7.js +0 -877
  166. package/js/chunk-PZB6T6KU.js +0 -19
  167. package/js/chunk-R3EV5FTO.js +0 -97
  168. package/js/chunk-YXQHV65J.js +0 -242
  169. package/js/chunk-ZQINWV4W.js +0 -630
  170. package/types/app-data/src/implementation/cursor.d.ts +0 -10
  171. package/types/app-data/src/implementation/index-key.d.ts +0 -7
  172. package/types/app-data/src/implementation/promise.d.ts +0 -68
  173. package/types/app-data/src/implementation/range.d.ts +0 -8
  174. package/types/app-data/src/implementation/schema.d.ts +0 -18
  175. package/types/app-data/src/implementation/sqlite.d.ts +0 -11
  176. package/types/app-data/src/index.d.ts +0 -4
  177. package/types/apps/src/contracts/storage.d.ts +0 -68
  178. package/types/apps/src/implementation/storage.d.ts +0 -15
@@ -6,11 +6,37 @@
6
6
  * unchanged.
7
7
  *
8
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.
9
+ * `packages/apps/protocols/5.json`. The module imports only `effect` and earlier protocol modules,
10
+ * so no change elsewhere can alter it. Define the next protocol instead of editing this file.
10
11
  * See notes/apps-publishing.md.
11
12
  */
12
13
  import { Schema } from "effect";
13
14
  export * from "./4.js";
15
+ /**
16
+ * Upstream identity that a passing account check may report for display. Only these fields are
17
+ * retained; the host never stores raw provider responses.
18
+ */
19
+ export declare const AccountInfo: Schema.Struct<{
20
+ readonly externalId: Schema.optionalKey<Schema.String>;
21
+ readonly displayName: Schema.optionalKey<Schema.String>;
22
+ readonly username: Schema.optionalKey<Schema.String>;
23
+ readonly email: Schema.optionalKey<Schema.String>;
24
+ readonly avatarUrl: Schema.optionalKey<Schema.String>;
25
+ readonly profileUrl: Schema.optionalKey<Schema.String>;
26
+ }>;
27
+ export type AccountInfo = typeof AccountInfo.Type;
28
+ /** A passing account check. Failures are thrown, so there is no failing variant. */
29
+ export declare const AccountCheckResult: Schema.Struct<{
30
+ readonly accountInfo: Schema.optionalKey<Schema.Struct<{
31
+ readonly externalId: Schema.optionalKey<Schema.String>;
32
+ readonly displayName: Schema.optionalKey<Schema.String>;
33
+ readonly username: Schema.optionalKey<Schema.String>;
34
+ readonly email: Schema.optionalKey<Schema.String>;
35
+ readonly avatarUrl: Schema.optionalKey<Schema.String>;
36
+ readonly profileUrl: Schema.optionalKey<Schema.String>;
37
+ }>>;
38
+ }>;
39
+ export type AccountCheckResult = typeof AccountCheckResult.Type;
14
40
  /** Account slots available without binding accounts or evaluating the app factory. */
15
41
  export declare const DeclaredRequirements: Schema.Struct<{
16
42
  /** Protocol support of this retained framework build, not an author-declared requirement. */
@@ -46,10 +72,15 @@ export declare const DeclaredRequirements: Schema.Struct<{
46
72
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
47
73
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
48
74
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
75
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
76
+ readonly path: Schema.String;
77
+ }>>;
49
78
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
50
79
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
51
80
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
52
81
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
82
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
83
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
53
84
  readonly type: Schema.Literal<"oauth2">;
54
85
  }>, Schema.Struct<{
55
86
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -59,32 +90,41 @@ export declare const DeclaredRequirements: Schema.Struct<{
59
90
  readonly scopes: Schema.$Array<Schema.String>;
60
91
  readonly issuer: Schema.optionalKey<Schema.String>;
61
92
  readonly discover: Schema.optionalKey<Schema.Never>;
93
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
94
+ readonly path: Schema.String;
95
+ }>>;
62
96
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
63
97
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
64
98
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
65
99
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
100
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
101
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
66
102
  readonly type: Schema.Literal<"oauth2">;
67
103
  }>, Schema.Struct<{
68
104
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
105
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
106
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
107
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
108
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
69
109
  readonly grant: Schema.Literal<"client_credentials">;
70
110
  readonly discover: Schema.String;
71
111
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
72
112
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
73
113
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
74
114
  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
115
  readonly type: Schema.Literal<"oauth2">;
78
116
  }>, Schema.Struct<{
79
117
  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
118
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
85
119
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
86
120
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
87
121
  readonly discover: Schema.optionalKey<Schema.Never>;
122
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
123
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
124
+ readonly grant: Schema.Literal<"client_credentials">;
125
+ readonly tokenUrl: Schema.String;
126
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
127
+ readonly scopes: Schema.$Array<Schema.String>;
88
128
  readonly type: Schema.Literal<"oauth2">;
89
129
  }>]>>;
90
130
  }>;
@@ -303,10 +343,15 @@ export declare const HostInvocation: Schema.Struct<{
303
343
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
304
344
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
305
345
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
346
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
347
+ readonly path: Schema.String;
348
+ }>>;
306
349
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
307
350
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
308
351
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
309
352
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
353
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
354
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
310
355
  readonly type: Schema.Literal<"oauth2">;
311
356
  }>, Schema.Struct<{
312
357
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -316,32 +361,41 @@ export declare const HostInvocation: Schema.Struct<{
316
361
  readonly scopes: Schema.$Array<Schema.String>;
317
362
  readonly issuer: Schema.optionalKey<Schema.String>;
318
363
  readonly discover: Schema.optionalKey<Schema.Never>;
364
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
365
+ readonly path: Schema.String;
366
+ }>>;
319
367
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
320
368
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
321
369
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
322
370
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
371
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
372
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
323
373
  readonly type: Schema.Literal<"oauth2">;
324
374
  }>, Schema.Struct<{
325
375
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
376
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
377
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
378
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
379
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
326
380
  readonly grant: Schema.Literal<"client_credentials">;
327
381
  readonly discover: Schema.String;
328
382
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
329
383
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
330
384
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
331
385
  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
386
  readonly type: Schema.Literal<"oauth2">;
335
387
  }>, Schema.Struct<{
336
388
  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
389
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
342
390
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
343
391
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
344
392
  readonly discover: Schema.optionalKey<Schema.Never>;
393
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
394
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
395
+ readonly grant: Schema.Literal<"client_credentials">;
396
+ readonly tokenUrl: Schema.String;
397
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
398
+ readonly scopes: Schema.$Array<Schema.String>;
345
399
  readonly type: Schema.Literal<"oauth2">;
346
400
  }>]>>;
347
401
  }>;
@@ -363,10 +417,15 @@ export declare const HostInvocation: Schema.Struct<{
363
417
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
364
418
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
365
419
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
420
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
421
+ readonly path: Schema.String;
422
+ }>>;
366
423
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
367
424
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
368
425
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
369
426
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
427
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
428
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
370
429
  readonly type: Schema.Literal<"oauth2">;
371
430
  }>, Schema.Struct<{
372
431
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -376,32 +435,41 @@ export declare const HostInvocation: Schema.Struct<{
376
435
  readonly scopes: Schema.$Array<Schema.String>;
377
436
  readonly issuer: Schema.optionalKey<Schema.String>;
378
437
  readonly discover: Schema.optionalKey<Schema.Never>;
438
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
439
+ readonly path: Schema.String;
440
+ }>>;
379
441
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
380
442
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
381
443
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
382
444
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
445
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
446
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
383
447
  readonly type: Schema.Literal<"oauth2">;
384
448
  }>, Schema.Struct<{
385
449
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
450
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
451
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
452
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
453
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
386
454
  readonly grant: Schema.Literal<"client_credentials">;
387
455
  readonly discover: Schema.String;
388
456
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
389
457
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
390
458
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
391
459
  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
460
  readonly type: Schema.Literal<"oauth2">;
395
461
  }>, Schema.Struct<{
396
462
  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
463
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
402
464
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
403
465
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
404
466
  readonly discover: Schema.optionalKey<Schema.Never>;
467
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
468
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
469
+ readonly grant: Schema.Literal<"client_credentials">;
470
+ readonly tokenUrl: Schema.String;
471
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
472
+ readonly scopes: Schema.$Array<Schema.String>;
405
473
  readonly type: Schema.Literal<"oauth2">;
406
474
  }>]>>;
407
475
  }>;
@@ -529,10 +597,15 @@ export declare const protocol5: {
529
597
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
530
598
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
531
599
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
600
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
601
+ readonly path: Schema.String;
602
+ }>>;
532
603
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
533
604
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
534
605
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
535
606
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
607
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
608
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
536
609
  readonly type: Schema.Literal<"oauth2">;
537
610
  }>, Schema.Struct<{
538
611
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -542,32 +615,41 @@ export declare const protocol5: {
542
615
  readonly scopes: Schema.$Array<Schema.String>;
543
616
  readonly issuer: Schema.optionalKey<Schema.String>;
544
617
  readonly discover: Schema.optionalKey<Schema.Never>;
618
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
619
+ readonly path: Schema.String;
620
+ }>>;
545
621
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
546
622
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
547
623
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
548
624
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
625
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
626
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
549
627
  readonly type: Schema.Literal<"oauth2">;
550
628
  }>, Schema.Struct<{
551
629
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
630
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
631
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
632
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
633
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
552
634
  readonly grant: Schema.Literal<"client_credentials">;
553
635
  readonly discover: Schema.String;
554
636
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
555
637
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
556
638
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
557
639
  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
640
  readonly type: Schema.Literal<"oauth2">;
561
641
  }>, Schema.Struct<{
562
642
  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
643
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
568
644
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
569
645
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
570
646
  readonly discover: Schema.optionalKey<Schema.Never>;
647
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
648
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
649
+ readonly grant: Schema.Literal<"client_credentials">;
650
+ readonly tokenUrl: Schema.String;
651
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
652
+ readonly scopes: Schema.$Array<Schema.String>;
571
653
  readonly type: Schema.Literal<"oauth2">;
572
654
  }>]>>;
573
655
  }>;
@@ -589,10 +671,15 @@ export declare const protocol5: {
589
671
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
590
672
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
591
673
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
674
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
675
+ readonly path: Schema.String;
676
+ }>>;
592
677
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
593
678
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
594
679
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
595
680
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
681
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
682
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
596
683
  readonly type: Schema.Literal<"oauth2">;
597
684
  }>, Schema.Struct<{
598
685
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -602,32 +689,41 @@ export declare const protocol5: {
602
689
  readonly scopes: Schema.$Array<Schema.String>;
603
690
  readonly issuer: Schema.optionalKey<Schema.String>;
604
691
  readonly discover: Schema.optionalKey<Schema.Never>;
692
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
693
+ readonly path: Schema.String;
694
+ }>>;
605
695
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
606
696
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
607
697
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
608
698
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
699
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
700
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
609
701
  readonly type: Schema.Literal<"oauth2">;
610
702
  }>, Schema.Struct<{
611
703
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
704
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
705
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
706
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
707
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
612
708
  readonly grant: Schema.Literal<"client_credentials">;
613
709
  readonly discover: Schema.String;
614
710
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
615
711
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
616
712
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
617
713
  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
714
  readonly type: Schema.Literal<"oauth2">;
621
715
  }>, Schema.Struct<{
622
716
  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
717
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
628
718
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
629
719
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
630
720
  readonly discover: Schema.optionalKey<Schema.Never>;
721
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
722
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
723
+ readonly grant: Schema.Literal<"client_credentials">;
724
+ readonly tokenUrl: Schema.String;
725
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
726
+ readonly scopes: Schema.$Array<Schema.String>;
631
727
  readonly type: Schema.Literal<"oauth2">;
632
728
  }>]>>;
633
729
  }>;
@@ -768,10 +864,15 @@ export declare const protocol5: {
768
864
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
769
865
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
770
866
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
867
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
868
+ readonly path: Schema.String;
869
+ }>>;
771
870
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
772
871
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
773
872
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
774
873
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
874
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
875
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
775
876
  readonly type: Schema.Literal<"oauth2">;
776
877
  }>, Schema.Struct<{
777
878
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -781,32 +882,41 @@ export declare const protocol5: {
781
882
  readonly scopes: Schema.$Array<Schema.String>;
782
883
  readonly issuer: Schema.optionalKey<Schema.String>;
783
884
  readonly discover: Schema.optionalKey<Schema.Never>;
885
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
886
+ readonly path: Schema.String;
887
+ }>>;
784
888
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
785
889
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
786
890
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
787
891
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
892
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
893
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
788
894
  readonly type: Schema.Literal<"oauth2">;
789
895
  }>, Schema.Struct<{
790
896
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
897
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
898
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
899
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
900
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
791
901
  readonly grant: Schema.Literal<"client_credentials">;
792
902
  readonly discover: Schema.String;
793
903
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
794
904
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
795
905
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
796
906
  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
907
  readonly type: Schema.Literal<"oauth2">;
800
908
  }>, Schema.Struct<{
801
909
  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
910
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
807
911
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
808
912
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
809
913
  readonly discover: Schema.optionalKey<Schema.Never>;
914
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
915
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
916
+ readonly grant: Schema.Literal<"client_credentials">;
917
+ readonly tokenUrl: Schema.String;
918
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
919
+ readonly scopes: Schema.$Array<Schema.String>;
810
920
  readonly type: Schema.Literal<"oauth2">;
811
921
  }>]>>;
812
922
  }>;
@@ -834,7 +944,7 @@ export declare const protocol5: {
834
944
  readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
835
945
  }>, Schema.Struct<{
836
946
  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]>;
947
+ 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("./3.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("./3.js").DatabaseLimitExceeded, typeof import("./3.js").DatabaseFieldReserved, typeof import("./1.js").HostToolNotFound, typeof import("./1.js").HostInputInvalid, typeof import("./1.js").HostOutputInvalid, typeof import("./1.js").HostToolBlocked, typeof import("./1.js").HostToolApprovalRequired, typeof import("./1.js").HostToolPolicyFailed, typeof import("./1.js").ElicitationFailed, typeof import("./4.js").HostKindMismatch]>;
838
948
  }>]>;
839
949
  readonly catalog: Schema.Struct<{
840
950
  readonly tools: Schema.$Array<Schema.Struct<{
@@ -881,7 +991,7 @@ export declare const protocol5: {
881
991
  }>>>;
882
992
  readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
883
993
  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]>>;
994
+ readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed]>>;
885
995
  }>>;
886
996
  }>;
887
997
  readonly catalogSummary: Schema.Struct<{
@@ -926,7 +1036,7 @@ export declare const protocol5: {
926
1036
  }>>>;
927
1037
  readonly tags: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.String>>;
928
1038
  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]>>;
1039
+ readonly error: Schema.optionalKey<Schema.Union<readonly [typeof import("./1.js").ProviderError, typeof import("./1.js").McpError, typeof import("./1.js").SkillLoadFailed, typeof import("./3.js").HostDeclarationInvalid, typeof import("./3.js").HostEvaluationFailed]>>;
930
1040
  }>>;
931
1041
  }>;
932
1042
  readonly skills: Schema.Union<readonly [Schema.Struct<{
@@ -959,10 +1069,10 @@ export declare const protocol5: {
959
1069
  readonly elicitationRequest: Schema.Struct<{
960
1070
  readonly mode: Schema.Literal<"form">;
961
1071
  readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
962
- readonly $schema: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
1072
+ readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
963
1073
  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>;
1074
+ 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]>>;
1075
+ readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
966
1076
  }>>;
967
1077
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
968
1078
  readonly message: Schema.String;
@@ -972,14 +1082,14 @@ export declare const protocol5: {
972
1082
  readonly response: Schema.Union<readonly [Schema.Struct<{
973
1083
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
974
1084
  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>;
1085
+ 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>;
976
1086
  }>, Schema.Struct<{
977
1087
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
978
1088
  readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
979
1089
  }>]>;
980
1090
  }>, Schema.Struct<{
981
1091
  readonly ok: Schema.Literal<false>;
982
- readonly error: typeof import("../elicitation.js").ElicitationFailed;
1092
+ readonly error: typeof import("./1.js").ElicitationFailed;
983
1093
  }>]>;
984
1094
  readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
985
1095
  readonly operation: Schema.Literal<"do">;
@@ -1015,7 +1125,7 @@ export declare const protocol5: {
1015
1125
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1016
1126
  }>, Schema.Struct<{
1017
1127
  readonly ok: Schema.Literal<false>;
1018
- readonly error: typeof import("../workflows.js").WorkflowFailure;
1128
+ readonly error: typeof import("./3.js").WorkflowFailure;
1019
1129
  }>]>;
1020
1130
  readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
1021
1131
  readonly operation: Schema.Literal<"start">;
@@ -1084,7 +1194,7 @@ export declare const protocol5: {
1084
1194
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1085
1195
  }>, Schema.Struct<{
1086
1196
  readonly ok: Schema.Literal<false>;
1087
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
1197
+ readonly error: typeof import("./1.js").CacheError;
1088
1198
  }>]>;
1089
1199
  };
1090
1200
  };