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
@@ -2,17 +2,24 @@
2
2
  * Host protocol 4: protocol 3 plus call kinds and routers. `call` carries the caller's `kind`, and
3
3
  * a bundle refuses a call whose tool has the other kind with `HostKindMismatch`. Inspection
4
4
  * answers with a catalog of tools and the routers that group them, instead of a list of tools.
5
- * Messages it does not change are protocol 3's, imported from its frozen module.
5
+ * Messages it does not change are protocol 3's, taken from its frozen module.
6
6
  *
7
7
  * Once released, this protocol is frozen like the earlier ones: `bun run check` compares
8
- * `protocol4` with `packages/apps/protocols/4.json`. See notes/apps-publishing.md.
8
+ * `protocol4` with `packages/apps/protocols/4.json`. The module imports only `effect` and earlier
9
+ * protocol modules, so no change elsewhere can alter it. See notes/apps-publishing.md.
9
10
  */
10
11
  import { Schema } from "effect";
11
- import { McpError } from "../mcp.js";
12
- import { ProviderError } from "../provider-error.js";
13
- import { SkillLoadFailed } from "../skills.js";
12
+ import { McpError, ProviderError, SkillLoadFailed } from "./1.js";
14
13
  import { HostDeclarationInvalid, HostEvaluationFailed } from "./3.js";
15
14
  export { DeclaredAuthMethod, DeclaredProvider, DeclaredRequirements, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, SkillSources, SkillCatalogResponse, HostRequestInvalid, HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostOperationNotFound, HostOperationFailed, HostToolNotFound, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, } from "./3.js";
15
+ /** An image a client may show beside a router, such as an MCP server's own icon. Models never read it. */
16
+ export declare const RouterIcon: Schema.Struct<{
17
+ readonly src: Schema.NonEmptyString;
18
+ readonly mimeType: Schema.optionalKey<Schema.String>;
19
+ readonly sizes: Schema.optionalKey<Schema.$Array<Schema.String>>;
20
+ readonly theme: Schema.optionalKey<Schema.Literals<readonly ["light", "dark"]>>;
21
+ }>;
22
+ export type RouterIcon = typeof RouterIcon.Type;
16
23
  /**
17
24
  * Serializable live tool metadata; executable callbacks never cross this boundary. `name` is the
18
25
  * tool's full dotted path. `router` is the path of the router that owns it, omitted at the root.
@@ -315,7 +322,7 @@ export declare class HostKindMismatch extends HostKindMismatch_base {
315
322
  * Safe error envelope. Author failures carry only their name and bounded message with account
316
323
  * secrets replaced; no source, account fields, stack or cause value is serialized.
317
324
  */
318
- export declare const HostError: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("../workflows.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof 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 HostKindMismatch]>;
325
+ export declare const HostError: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("./3.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof 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 HostKindMismatch]>;
319
326
  /** Expected host failures. */
320
327
  export type HostError = typeof HostError.Type;
321
328
  /** Portable response envelope; callers parse the success value for their operation. */
@@ -325,7 +332,7 @@ export declare const HostResponse: Schema.Union<readonly [Schema.Struct<{
325
332
  readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
326
333
  }>, Schema.Struct<{
327
334
  readonly ok: Schema.Literal<false>;
328
- readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("../workflows.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof 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 HostKindMismatch]>;
335
+ readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("./3.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof 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 HostKindMismatch]>;
329
336
  }>]>;
330
337
  /** Parsed response envelope. */
331
338
  export type HostResponse = typeof HostResponse.Type;
@@ -442,10 +449,15 @@ export declare const HostInvocation: Schema.Struct<{
442
449
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
443
450
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
444
451
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
452
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
453
+ readonly path: Schema.String;
454
+ }>>;
445
455
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
446
456
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
447
457
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
448
458
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
459
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
460
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
449
461
  readonly type: Schema.Literal<"oauth2">;
450
462
  }>, Schema.Struct<{
451
463
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -455,32 +467,41 @@ export declare const HostInvocation: Schema.Struct<{
455
467
  readonly scopes: Schema.$Array<Schema.String>;
456
468
  readonly issuer: Schema.optionalKey<Schema.String>;
457
469
  readonly discover: Schema.optionalKey<Schema.Never>;
470
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
471
+ readonly path: Schema.String;
472
+ }>>;
458
473
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
459
474
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
460
475
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
461
476
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
477
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
478
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
462
479
  readonly type: Schema.Literal<"oauth2">;
463
480
  }>, Schema.Struct<{
464
481
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
482
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
483
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
484
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
485
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
465
486
  readonly grant: Schema.Literal<"client_credentials">;
466
487
  readonly discover: Schema.String;
467
488
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
468
489
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
469
490
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
470
491
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
471
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
472
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
473
492
  readonly type: Schema.Literal<"oauth2">;
474
493
  }>, Schema.Struct<{
475
494
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
476
- readonly grant: Schema.Literal<"client_credentials">;
477
- readonly tokenUrl: Schema.String;
478
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
479
- readonly scopes: Schema.$Array<Schema.String>;
480
495
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
481
496
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
482
497
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
483
498
  readonly discover: Schema.optionalKey<Schema.Never>;
499
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
500
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
501
+ readonly grant: Schema.Literal<"client_credentials">;
502
+ readonly tokenUrl: Schema.String;
503
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
504
+ readonly scopes: Schema.$Array<Schema.String>;
484
505
  readonly type: Schema.Literal<"oauth2">;
485
506
  }>]>>;
486
507
  }>;
@@ -502,10 +523,15 @@ export declare const HostInvocation: Schema.Struct<{
502
523
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
503
524
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
504
525
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
526
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
527
+ readonly path: Schema.String;
528
+ }>>;
505
529
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
506
530
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
507
531
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
508
532
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
533
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
534
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
509
535
  readonly type: Schema.Literal<"oauth2">;
510
536
  }>, Schema.Struct<{
511
537
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -515,32 +541,41 @@ export declare const HostInvocation: Schema.Struct<{
515
541
  readonly scopes: Schema.$Array<Schema.String>;
516
542
  readonly issuer: Schema.optionalKey<Schema.String>;
517
543
  readonly discover: Schema.optionalKey<Schema.Never>;
544
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
545
+ readonly path: Schema.String;
546
+ }>>;
518
547
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
519
548
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
520
549
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
521
550
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
551
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
552
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
522
553
  readonly type: Schema.Literal<"oauth2">;
523
554
  }>, Schema.Struct<{
524
555
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
556
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
557
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
558
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
559
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
525
560
  readonly grant: Schema.Literal<"client_credentials">;
526
561
  readonly discover: Schema.String;
527
562
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
528
563
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
529
564
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
530
565
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
531
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
532
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
533
566
  readonly type: Schema.Literal<"oauth2">;
534
567
  }>, Schema.Struct<{
535
568
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
536
- readonly grant: Schema.Literal<"client_credentials">;
537
- readonly tokenUrl: Schema.String;
538
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
539
- readonly scopes: Schema.$Array<Schema.String>;
540
569
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
541
570
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
542
571
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
543
572
  readonly discover: Schema.optionalKey<Schema.Never>;
573
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
574
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
575
+ readonly grant: Schema.Literal<"client_credentials">;
576
+ readonly tokenUrl: Schema.String;
577
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
578
+ readonly scopes: Schema.$Array<Schema.String>;
544
579
  readonly type: Schema.Literal<"oauth2">;
545
580
  }>]>>;
546
581
  }>;
@@ -676,10 +711,15 @@ export declare const protocol4: {
676
711
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
677
712
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
678
713
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
714
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
715
+ readonly path: Schema.String;
716
+ }>>;
679
717
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
680
718
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
681
719
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
682
720
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
721
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
722
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
683
723
  readonly type: Schema.Literal<"oauth2">;
684
724
  }>, Schema.Struct<{
685
725
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -689,32 +729,41 @@ export declare const protocol4: {
689
729
  readonly scopes: Schema.$Array<Schema.String>;
690
730
  readonly issuer: Schema.optionalKey<Schema.String>;
691
731
  readonly discover: Schema.optionalKey<Schema.Never>;
732
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
733
+ readonly path: Schema.String;
734
+ }>>;
692
735
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
693
736
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
694
737
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
695
738
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
739
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
740
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
696
741
  readonly type: Schema.Literal<"oauth2">;
697
742
  }>, Schema.Struct<{
698
743
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
744
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
745
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
746
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
747
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
699
748
  readonly grant: Schema.Literal<"client_credentials">;
700
749
  readonly discover: Schema.String;
701
750
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
702
751
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
703
752
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
704
753
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
705
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
706
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
707
754
  readonly type: Schema.Literal<"oauth2">;
708
755
  }>, Schema.Struct<{
709
756
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
710
- readonly grant: Schema.Literal<"client_credentials">;
711
- readonly tokenUrl: Schema.String;
712
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
713
- readonly scopes: Schema.$Array<Schema.String>;
714
757
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
715
758
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
716
759
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
717
760
  readonly discover: Schema.optionalKey<Schema.Never>;
761
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
762
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
763
+ readonly grant: Schema.Literal<"client_credentials">;
764
+ readonly tokenUrl: Schema.String;
765
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
766
+ readonly scopes: Schema.$Array<Schema.String>;
718
767
  readonly type: Schema.Literal<"oauth2">;
719
768
  }>]>>;
720
769
  }>;
@@ -736,10 +785,15 @@ export declare const protocol4: {
736
785
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
737
786
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
738
787
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
788
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
789
+ readonly path: Schema.String;
790
+ }>>;
739
791
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
740
792
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
741
793
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
742
794
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
795
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
796
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
743
797
  readonly type: Schema.Literal<"oauth2">;
744
798
  }>, Schema.Struct<{
745
799
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -749,32 +803,41 @@ export declare const protocol4: {
749
803
  readonly scopes: Schema.$Array<Schema.String>;
750
804
  readonly issuer: Schema.optionalKey<Schema.String>;
751
805
  readonly discover: Schema.optionalKey<Schema.Never>;
806
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
807
+ readonly path: Schema.String;
808
+ }>>;
752
809
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
753
810
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
754
811
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
755
812
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
813
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
814
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
756
815
  readonly type: Schema.Literal<"oauth2">;
757
816
  }>, Schema.Struct<{
758
817
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
818
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
819
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
820
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
821
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
759
822
  readonly grant: Schema.Literal<"client_credentials">;
760
823
  readonly discover: Schema.String;
761
824
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
762
825
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
763
826
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
764
827
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
765
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
766
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
767
828
  readonly type: Schema.Literal<"oauth2">;
768
829
  }>, Schema.Struct<{
769
830
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
770
- readonly grant: Schema.Literal<"client_credentials">;
771
- readonly tokenUrl: Schema.String;
772
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
773
- readonly scopes: Schema.$Array<Schema.String>;
774
831
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
775
832
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
776
833
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
777
834
  readonly discover: Schema.optionalKey<Schema.Never>;
835
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
836
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
837
+ readonly grant: Schema.Literal<"client_credentials">;
838
+ readonly tokenUrl: Schema.String;
839
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
840
+ readonly scopes: Schema.$Array<Schema.String>;
778
841
  readonly type: Schema.Literal<"oauth2">;
779
842
  }>]>>;
780
843
  }>;
@@ -895,7 +958,7 @@ export declare const protocol4: {
895
958
  readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
896
959
  }>, Schema.Struct<{
897
960
  readonly ok: Schema.Literal<false>;
898
- readonly error: Schema.Union<readonly [typeof import("../api-response-error.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("../workflows.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof 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 HostKindMismatch]>;
961
+ readonly error: Schema.Union<readonly [typeof import("./1.js").OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof import("./3.js").WorkflowFailure, typeof import("./1.js").HostRequestInvalid, typeof import("./1.js").HostAccountsInvalid, typeof HostDeclarationInvalid, typeof 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 HostKindMismatch]>;
899
962
  }>]>;
900
963
  readonly requirements: Schema.Struct<{
901
964
  readonly capabilities: Schema.optionalKey<Schema.Struct<{
@@ -930,10 +993,15 @@ export declare const protocol4: {
930
993
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
931
994
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
932
995
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
996
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
997
+ readonly path: Schema.String;
998
+ }>>;
933
999
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
934
1000
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
935
1001
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
936
1002
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1003
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1004
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
937
1005
  readonly type: Schema.Literal<"oauth2">;
938
1006
  }>, Schema.Struct<{
939
1007
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
@@ -943,32 +1011,41 @@ export declare const protocol4: {
943
1011
  readonly scopes: Schema.$Array<Schema.String>;
944
1012
  readonly issuer: Schema.optionalKey<Schema.String>;
945
1013
  readonly discover: Schema.optionalKey<Schema.Never>;
1014
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
1015
+ readonly path: Schema.String;
1016
+ }>>;
946
1017
  readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
947
1018
  readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
948
1019
  readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
949
1020
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1021
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1022
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
950
1023
  readonly type: Schema.Literal<"oauth2">;
951
1024
  }>, Schema.Struct<{
952
1025
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1026
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
1027
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1028
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1029
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
953
1030
  readonly grant: Schema.Literal<"client_credentials">;
954
1031
  readonly discover: Schema.String;
955
1032
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
956
1033
  readonly tokenUrl: Schema.optionalKey<Schema.Never>;
957
1034
  readonly revocationUrl: Schema.optionalKey<Schema.Never>;
958
1035
  readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
959
- readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
960
- readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
961
1036
  readonly type: Schema.Literal<"oauth2">;
962
1037
  }>, Schema.Struct<{
963
1038
  readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
964
- readonly grant: Schema.Literal<"client_credentials">;
965
- readonly tokenUrl: Schema.String;
966
- readonly revocationUrl: Schema.optionalKey<Schema.String>;
967
- readonly scopes: Schema.$Array<Schema.String>;
968
1039
  readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
969
1040
  readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
970
1041
  readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
971
1042
  readonly discover: Schema.optionalKey<Schema.Never>;
1043
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1044
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
1045
+ readonly grant: Schema.Literal<"client_credentials">;
1046
+ readonly tokenUrl: Schema.String;
1047
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
1048
+ readonly scopes: Schema.$Array<Schema.String>;
972
1049
  readonly type: Schema.Literal<"oauth2">;
973
1050
  }>]>>;
974
1051
  }>;
@@ -1098,10 +1175,10 @@ export declare const protocol4: {
1098
1175
  readonly elicitationRequest: Schema.Struct<{
1099
1176
  readonly mode: Schema.Literal<"form">;
1100
1177
  readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
1101
- readonly $schema: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
1178
+ readonly $schema: Schema.decodeTo<Schema.toType<Schema.optional<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1102
1179
  readonly type: Schema.tag<"object">;
1103
- 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]>>;
1104
- readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
1180
+ 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]>>;
1181
+ readonly required: Schema.decodeTo<Schema.toType<Schema.optional<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
1105
1182
  }>>;
1106
1183
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1107
1184
  readonly message: Schema.String;
@@ -1111,14 +1188,14 @@ export declare const protocol4: {
1111
1188
  readonly response: Schema.Union<readonly [Schema.Struct<{
1112
1189
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1113
1190
  readonly action: Schema.Literal<"accept">;
1114
- 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>;
1191
+ 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>;
1115
1192
  }>, Schema.Struct<{
1116
1193
  readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1117
1194
  readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
1118
1195
  }>]>;
1119
1196
  }>, Schema.Struct<{
1120
1197
  readonly ok: Schema.Literal<false>;
1121
- readonly error: typeof import("../elicitation.js").ElicitationFailed;
1198
+ readonly error: typeof import("./1.js").ElicitationFailed;
1122
1199
  }>]>;
1123
1200
  readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
1124
1201
  readonly operation: Schema.Literal<"do">;
@@ -1154,7 +1231,7 @@ export declare const protocol4: {
1154
1231
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1155
1232
  }>, Schema.Struct<{
1156
1233
  readonly ok: Schema.Literal<false>;
1157
- readonly error: typeof import("../workflows.js").WorkflowFailure;
1234
+ readonly error: typeof import("./3.js").WorkflowFailure;
1158
1235
  }>]>;
1159
1236
  readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
1160
1237
  readonly operation: Schema.Literal<"start">;
@@ -1223,7 +1300,7 @@ export declare const protocol4: {
1223
1300
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1224
1301
  }>, Schema.Struct<{
1225
1302
  readonly ok: Schema.Literal<false>;
1226
- readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
1303
+ readonly error: typeof import("./1.js").CacheError;
1227
1304
  }>]>;
1228
1305
  };
1229
1306
  };