apps 0.0.1-beta.14 → 0.0.1-beta.140

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 (201) hide show
  1. package/README.md +60 -42
  2. package/framework-reference.json +1 -1
  3. package/js/{chunk-M3B3DE4K.js → chunk-2XDCAXAR.js} +612 -246
  4. package/js/{chunk-IPI4MFSN.js → chunk-34RH47V5.js} +2 -2
  5. package/js/chunk-5JBDHSLK.js +449 -0
  6. package/js/{chunk-KUMBKVJD.js → chunk-6QZVXLF2.js} +2 -2
  7. package/js/chunk-7MPPHKRW.js +5418 -0
  8. package/js/chunk-DQ6FIDC3.js +335 -0
  9. package/js/{chunk-5T57N25Q.js → chunk-EKXBHVMR.js} +697 -70
  10. package/js/chunk-EYZHR4UA.js +1945 -0
  11. package/js/chunk-GJG5G6CH.js +1022 -0
  12. package/js/chunk-H2K7OZ47.js +90 -0
  13. package/js/chunk-I6QAWNUM.js +161 -0
  14. package/js/{chunk-ODEIDRGW.js → chunk-JH3MOQZR.js} +1166 -504
  15. package/js/{chunk-QS6CAHKC.js → chunk-JHAHT26O.js} +4 -3
  16. package/js/{chunk-RFVIONFX.js → chunk-JIXIOWZP.js} +136 -45
  17. package/js/chunk-LSOHA2RH.js +88 -0
  18. package/js/{chunk-UK573G7W.js → chunk-MB6L5YZE.js} +1817 -632
  19. package/js/chunk-OBT33ZDK.js +95 -0
  20. package/js/{chunk-JU7VHODU.js → chunk-QTX7OUFH.js} +65 -10
  21. package/js/chunk-RBSXSRPU.js +175 -0
  22. package/js/chunk-SB2DNKDL.js +593 -0
  23. package/js/{chunk-VFZKSM3T.js → chunk-VX36SA7Y.js} +3 -3
  24. package/js/chunk-YF7TYPDS.js +49 -0
  25. package/js/{chunk-CDL5PM2Q.js → chunk-YFSOSNF3.js} +17265 -12477
  26. package/js/{chunk-IJX4CYZO.js → chunk-YVN2AMAU.js} +976 -447
  27. package/js/chunk-Z6DSU4VL.js +724 -0
  28. package/js/client.js +333 -98
  29. package/js/contracts.js +154 -21
  30. package/js/effect.js +18 -19
  31. package/js/graphql.js +231 -188
  32. package/js/host.js +138 -80
  33. package/js/index.js +153 -300
  34. package/js/mcp/effect.js +21 -21
  35. package/js/mcp.js +91 -57
  36. package/js/openapi.js +4950 -4201
  37. package/js/react.js +2 -3
  38. package/js/skills/effect.js +6 -3
  39. package/js/skills.js +220 -81
  40. package/js/storage/facet.js +1 -540
  41. package/js/ui/auth/contracts.js +2 -2
  42. package/js/ui/auth.js +5 -5
  43. package/js/ui/contracts.js +9 -8
  44. package/js/ui/serving.js +8618 -235
  45. package/package.json +3 -8
  46. package/runtime.json +1 -1
  47. package/types/app-cache/src/contracts/cache.d.ts +18 -0
  48. package/types/app-cache/src/index.d.ts +34 -2
  49. package/types/apps/src/contracts/api-response-error.d.ts +4 -0
  50. package/types/apps/src/contracts/app.d.ts +56 -11
  51. package/types/apps/src/contracts/cache.d.ts +20 -0
  52. package/types/apps/src/contracts/context.d.ts +60 -17
  53. package/types/apps/src/contracts/elicitation.d.ts +23 -7
  54. package/types/apps/src/contracts/events.d.ts +94 -0
  55. package/types/apps/src/contracts/failure.d.ts +30 -1
  56. package/types/apps/src/contracts/graphql.d.ts +40 -2
  57. package/types/apps/src/contracts/help-text.d.ts +31 -0
  58. package/types/apps/src/contracts/host.d.ts +1493 -20
  59. package/types/apps/src/contracts/icons.d.ts +28 -0
  60. package/types/apps/src/contracts/live.d.ts +2 -0
  61. package/types/apps/src/contracts/mcp.d.ts +81 -20
  62. package/types/apps/src/contracts/network.d.ts +120 -0
  63. package/types/apps/src/contracts/openapi-compile.d.ts +82 -3
  64. package/types/apps/src/contracts/openapi-document.d.ts +1 -1
  65. package/types/apps/src/contracts/openapi.d.ts +47 -8
  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 +513 -15
  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/13.d.ts +6001 -0
  74. package/types/apps/src/contracts/protocols/2.d.ts +9 -8
  75. package/types/apps/src/contracts/protocols/3.d.ts +73 -15
  76. package/types/apps/src/contracts/protocols/4.d.ts +22 -15
  77. package/types/apps/src/contracts/protocols/5.d.ts +37 -11
  78. package/types/apps/src/contracts/protocols/6.d.ts +1629 -0
  79. package/types/apps/src/contracts/protocols/7.d.ts +1785 -0
  80. package/types/apps/src/contracts/protocols/8.d.ts +1182 -0
  81. package/types/apps/src/contracts/protocols/9.d.ts +1104 -0
  82. package/types/apps/src/contracts/protocols/current.d.ts +7114 -0
  83. package/types/apps/src/contracts/protocols/oauth-6.d.ts +74 -0
  84. package/types/apps/src/contracts/protocols/oauth.d.ts +134 -0
  85. package/types/apps/src/contracts/provider-error.d.ts +9 -0
  86. package/types/apps/src/contracts/provider.d.ts +56 -0
  87. package/types/apps/src/contracts/router.d.ts +2 -1
  88. package/types/apps/src/contracts/schedules.d.ts +7 -1
  89. package/types/apps/src/contracts/schema.d.ts +21 -0
  90. package/types/apps/src/contracts/shared-catalog.d.ts +11 -0
  91. package/types/apps/src/contracts/skills.d.ts +50 -13
  92. package/types/apps/src/contracts/sql.d.ts +63 -0
  93. package/types/apps/src/contracts/ui.d.ts +70 -30
  94. package/types/apps/src/contracts/webhooks.d.ts +24 -7
  95. package/types/apps/src/contracts/workflows.d.ts +56 -34
  96. package/types/apps/src/facet.d.ts +4 -5
  97. package/types/apps/src/host.d.ts +5 -0
  98. package/types/apps/src/implementation/account-router.d.ts +20 -3
  99. package/types/apps/src/implementation/app.d.ts +41 -14
  100. package/types/apps/src/implementation/authoring.d.ts +25 -5
  101. package/types/apps/src/implementation/browser-scripts.gen.d.ts +6 -0
  102. package/types/apps/src/implementation/cache.d.ts +29 -2
  103. package/types/apps/src/implementation/catalog-cache.d.ts +35 -4
  104. package/types/apps/src/implementation/elicitation.d.ts +16 -13
  105. package/types/apps/src/implementation/events.d.ts +64 -0
  106. package/types/apps/src/implementation/failure-detail.d.ts +28 -5
  107. package/types/apps/src/implementation/graphql-catalog.d.ts +3 -3
  108. package/types/apps/src/implementation/graphql.d.ts +4 -3
  109. package/types/apps/src/implementation/help-text.d.ts +5 -0
  110. package/types/apps/src/implementation/input-problems.d.ts +6 -2
  111. package/types/apps/src/implementation/invocation-timing.d.ts +18 -0
  112. package/types/apps/src/implementation/live.d.ts +2 -2
  113. package/types/apps/src/implementation/mcp-call.d.ts +6 -5
  114. package/types/apps/src/implementation/mcp-catalog.d.ts +6 -4
  115. package/types/apps/src/implementation/mcp-client.d.ts +17 -9
  116. package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
  117. package/types/apps/src/implementation/mcp.d.ts +20 -9
  118. package/types/apps/src/implementation/network.d.ts +16 -0
  119. package/types/apps/src/implementation/openapi-compile.d.ts +33 -5
  120. package/types/apps/src/implementation/openapi-document.d.ts +35 -18
  121. package/types/apps/src/implementation/openapi-names.d.ts +9 -4
  122. package/types/apps/src/implementation/openapi-request.d.ts +2 -1
  123. package/types/apps/src/implementation/openapi-source.d.ts +23 -1
  124. package/types/apps/src/implementation/operations.d.ts +58 -7
  125. package/types/apps/src/implementation/optimistic.d.ts +1 -1
  126. package/types/apps/src/implementation/placement.d.ts +60 -0
  127. package/types/apps/src/implementation/protocol-operations.d.ts +3 -0
  128. package/types/apps/src/implementation/provider-error.d.ts +28 -1
  129. package/types/apps/src/implementation/provider.d.ts +20 -4
  130. package/types/apps/src/implementation/query-commit.d.ts +1 -1
  131. package/types/apps/src/implementation/router-catalog.d.ts +22 -97
  132. package/types/apps/src/implementation/router.d.ts +26 -6
  133. package/types/apps/src/implementation/schedules.d.ts +39 -8
  134. package/types/apps/src/implementation/schema.d.ts +148 -17
  135. package/types/apps/src/implementation/skills.d.ts +18 -24
  136. package/types/apps/src/implementation/sql.d.ts +71 -0
  137. package/types/apps/src/implementation/ui-account-notice.d.ts +9 -0
  138. package/types/apps/src/implementation/ui-auth.d.ts +1 -1
  139. package/types/apps/src/implementation/ui-client.d.ts +3 -3
  140. package/types/apps/src/implementation/ui-document.d.ts +5 -0
  141. package/types/apps/src/implementation/ui-errors.d.ts +1 -1
  142. package/types/apps/src/implementation/ui-serving.d.ts +38 -12
  143. package/types/apps/src/implementation/upstream-error.d.ts +17 -0
  144. package/types/apps/src/implementation/webhooks.d.ts +15 -6
  145. package/types/apps/src/implementation/workflow-context.d.ts +6 -2
  146. package/types/apps/src/implementation/workflows.d.ts +11 -4
  147. package/types/apps/src/index.d.ts +67 -17
  148. package/types/apps/src/mcp.d.ts +20 -1
  149. package/types/apps/src/openapi.d.ts +22 -1
  150. package/types/apps/src/react.d.ts +1 -1
  151. package/types/apps/src/skills.d.ts +10 -8
  152. package/types/apps/src/ui-serving.d.ts +1 -2
  153. package/types/telemetry/src/app-records.d.ts +42 -0
  154. package/types/telemetry/src/browser-operations.d.ts +2 -2
  155. package/types/telemetry/src/browser.d.ts +8 -3
  156. package/types/telemetry/src/config.d.ts +2 -2
  157. package/types/telemetry/src/index.d.ts +3 -2
  158. package/types/telemetry/src/keepalive.d.ts +53 -0
  159. package/types/telemetry/src/layer.d.ts +10 -4
  160. package/types/telemetry/src/measurements.d.ts +6 -2
  161. package/types/telemetry/src/ownership.d.ts +60 -0
  162. package/types/telemetry/src/recorded-failure.d.ts +29 -0
  163. package/types/telemetry/src/relay.d.ts +32 -7
  164. package/types/telemetry/src/span-attributes.d.ts +22 -3
  165. package/types/telemetry/src/transport.d.ts +10 -1
  166. package/types/utils/src/api-error.d.ts +55 -0
  167. package/types/utils/src/connection-failure.d.ts +33 -0
  168. package/types/utils/src/legacy-keys.d.ts +20 -0
  169. package/types/utils/src/random-uuid.d.ts +6 -0
  170. package/types/utils/src/recorded-message.d.ts +18 -0
  171. package/types/utils/src/schema-definitions.d.ts +13 -0
  172. package/types/utils/src/user-facing-error.d.ts +83 -0
  173. package/js/chunk-27F7W2LG.js +0 -34
  174. package/js/chunk-4ASNKGCV.js +0 -242
  175. package/js/chunk-4DWF4ZWI.js +0 -1280
  176. package/js/chunk-57RKNWL2.js +0 -75
  177. package/js/chunk-6HSH75OI.js +0 -2688
  178. package/js/chunk-G4FT53I7.js +0 -224
  179. package/js/chunk-MKWZPDR6.js +0 -63
  180. package/js/chunk-N7YDVXYJ.js +0 -186
  181. package/js/chunk-NKLWZJLE.js +0 -172
  182. package/js/chunk-PJJ24GU7.js +0 -877
  183. package/js/chunk-PZB6T6KU.js +0 -19
  184. package/js/chunk-R3EV5FTO.js +0 -97
  185. package/js/chunk-S73JGVR5.js +0 -507
  186. package/js/chunk-TG6DOCRO.js +0 -299
  187. package/js/chunk-YPKG2QO5.js +0 -209
  188. package/js/chunk-ZQINWV4W.js +0 -630
  189. package/js/mcp/stdio.js +0 -128
  190. package/types/app-data/src/implementation/cursor.d.ts +0 -10
  191. package/types/app-data/src/implementation/index-key.d.ts +0 -7
  192. package/types/app-data/src/implementation/promise.d.ts +0 -68
  193. package/types/app-data/src/implementation/range.d.ts +0 -8
  194. package/types/app-data/src/implementation/schema.d.ts +0 -18
  195. package/types/app-data/src/implementation/sqlite.d.ts +0 -11
  196. package/types/app-data/src/index.d.ts +0 -4
  197. package/types/apps/src/contracts/storage.d.ts +0 -68
  198. package/types/apps/src/implementation/mcp-stdio.d.ts +0 -4
  199. package/types/apps/src/implementation/storage.d.ts +0 -15
  200. package/types/apps/src/implementation/ui-watch.d.ts +0 -2
  201. package/types/apps/src/mcp-stdio.d.ts +0 -5
@@ -1,11 +1,10 @@
1
1
  export * from "./skills.js";
2
- import { SkillLoadFailed, type SkillFile } from "./skills.js";
2
+ import { type SkillFile } from "./skills.js";
3
3
  import { ProviderError } from "./provider-error.js";
4
- import { McpError } from "./mcp.js";
5
4
  import { OpenapiResponseError } from "./api-response-error.js";
6
- export { ApiErrorResponse, OpenapiResponseError } from "./api-response-error.js";
5
+ export { ApiErrorResponse, maxApiErrorInstructionsLength, maxApiErrorMessageLength, OpenapiResponseError, } from "./api-response-error.js";
7
6
  export { ProviderError } from "./provider-error.js";
8
- export { McpError } from "./mcp.js";
7
+ export { FetchOptionUnsupported, NetworkRefusal, NetworkRefused, networkRefusalHeader, networkRefusalResponse, networkRefusalStatus, } from "./network.js";
9
8
  import { WorkflowFailure, type WorkflowExecution, type WorkflowReplay, type WorkflowHostControls } from "./workflows.js";
10
9
  export * from "./workflows.js";
11
10
  export * from "./failure.js";
@@ -13,31 +12,1474 @@ import { DatabaseFieldReserved, DatabaseLimitExceeded } from "../../../app-data/
13
12
  export { DatabaseFieldReserved, DatabaseLimitExceeded } from "../../../app-data/src/contracts/database.js";
14
13
  /** Portable framework dispatch contracts. Requests never carry account bindings. */
15
14
  import { Context, Schema, type Effect, type Redacted } from "effect";
16
- import type { AppStorage } from "./storage.js";
15
+ import type { AppSqlStorage } from "./sql.js";
17
16
  import type { InvocationTelemetry } from "../../../telemetry/src/index.js";
18
- export { AppStorageError, AppStorageUnavailable, StorageName, type AppStorage } from "./storage.js";
17
+ export { type AppSqlStorage, type Sql, type SqlCursor, type SqlReader, type SqlRow, type SqlValue, } from "./sql.js";
19
18
  import { ElicitationFailed, type ElicitationHandler } from "./elicitation.js";
20
- export { ElicitationLimits, defaultElicitationLimits, FormElicitation, ElicitationResponse, ElicitationReply, ElicitationFailed, type ElicitationHandler, ApprovalElicitation, ApprovalResponse, approvalElicitation, } from "./elicitation.js";
19
+ export { ElicitationLimits, defaultElicitationLimits, FormElicitation, ElicitationResponse, ElicitationReply, ElicitationFailed, type ElicitationHandler, ApprovalElicitation, ApprovalResponse, approvalElicitation, exactApprovalElicitation, } from "./elicitation.js";
21
20
  export { McpClientLimits, defaultMcpClientLimits } from "./mcp.js";
22
21
  export * from "./webhook-protocol.js";
22
+ export * from "./events.js";
23
+ export { AppIcon, AppIcons, appIconLimits } from "./icons.js";
24
+ export { fieldDescriptions, helpTextLimits, withoutHelp } from "./help-text.js";
25
+ export * from "./placement.js";
23
26
  export { AccountId, HttpUrl } from "./schema.js";
24
- export { OAuthClientAuth, OAuthSecretClientAuth, OAuthTokenRequestFormat, OAuthTokenResponse, } from "./provider.js";
27
+ export { OAuthAuthorizationParams, OAuthClientAuth, OAuthSecretClientAuth, OAuthTokenRequestFormat, OAuthTokenResponse, reservedAuthorizationParams, type ReservedAuthorizationParam, } from "./provider.js";
25
28
  /**
26
- * The host protocol this framework speaks and its wire schemas. A later protocol replaces this
27
- * re-export; released protocol modules stay unchanged for host adapters.
29
+ * The host protocol this framework speaks and its wire schemas, from `protocols/current.ts`. The
30
+ * released protocol modules are frozen records that host adapters read.
28
31
  */
29
32
  export { frameworkProtocol } from "./protocol-version.js";
30
33
  export { protocol1 } from "./protocols/1.js";
31
34
  export { protocol2 } from "./protocols/2.js";
32
35
  export { protocol3 } from "./protocols/3.js";
33
36
  export { protocol4 } from "./protocols/4.js";
34
- export { protocol5, AccountCheckCommand } from "./protocols/5.js";
37
+ export { protocol5 } from "./protocols/5.js";
38
+ export { protocol6 } from "./protocols/6.js";
39
+ export { protocol7 } from "./protocols/7.js";
40
+ export { protocol8 } from "./protocols/8.js";
41
+ export { protocol9 } from "./protocols/9.js";
42
+ export { protocol10 } from "./protocols/10.js";
43
+ export { protocol11 } from "./protocols/11.js";
44
+ export { protocol12 } from "./protocols/12.js";
45
+ export { protocol13 } from "./protocols/13.js";
46
+ export { current as protocol14, AccountCheckCommand, CredentialHost, MigrateCommand, MigrateResult, } from "./protocols/current.js";
35
47
  export { AccountCheckResult, AccountInfo } from "./provider.js";
36
- import { HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostInputInvalid, HostKindMismatch, HostOperationFailed, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, SkillSources, type InvocationDeadline, ResolvedAccounts, type SkillCatalogResponse, type TrustedToolApproval } from "./protocols/5.js";
37
- export { DeclaredRequirements, HostRequest } from "./protocols/5.js";
38
- export { DeclaredAuthMethod, DeclaredProvider, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, HostedTool, HostedToolSummary, HostRouterError, HostedRouter, HostedCatalog, HostedCatalogSummary, SkillSources, SkillCatalogResponse, HostRequestInvalid, HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostOperationNotFound, HostOperationFailed, HostToolNotFound, HostKindMismatch, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, HostError, HostResponse, HostInvocation, } from "./protocols/5.js";
48
+ import { HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostInputInvalid, HostKindMismatch, HostOperationFailed, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed, McpError, SkillLoadFailed, SkillSources, type InvocationDeadline, ResolvedAccounts, type SkillCatalogResponse, type TrustedToolApproval } from "./protocols/current.js";
49
+ export { DeclaredRequirements, HostRequest } from "./protocols/current.js";
50
+ /**
51
+ * The MCP and skill loader failures as they cross the host boundary. Apps throw the author-facing
52
+ * classes from `apps/mcp` and `apps/skills`.
53
+ */
54
+ export { McpError, SkillLoadFailed } from "./protocols/current.js";
55
+ export { DeclaredAuthMethod, DeclaredProvider, DeclaredAccountSlot, DeclaredAccountSlots, ResolvedAccount, ResolvedAccounts, ResolvedAccountSlots, TrustedToolApproval, InvocationDeadline, HostedTool, HostedToolSummary, HostRouterError, HostedRouter, HostedCatalog, HostedCatalogSummary, HostedSharedCatalog, HostedSharedTool, SharedSchemaKey, SkillSources, SkillCatalogResponse, HostRequestInvalid, HostAccountsInvalid, HostDeclarationInvalid, HostEvaluationFailed, HostOperationNotFound, HostOperationFailed, HostToolNotFound, HostKindMismatch, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, HostError, HostResponse, HostInvocation, } from "./protocols/current.js";
39
56
  /** Raw host inputs; the host boundary parses and redacts these immediately. */
40
57
  export type ResolvedAccountsInput = typeof ResolvedAccounts.Encoded;
58
+ /**
59
+ * An account as the host sends it to the runner. `managed` marks a credential issued to the
60
+ * instance operator's own OAuth client: the runner seals every one of its strings, whatever the
61
+ * method exposes, so that only the operator's placement can send it. The runner removes the mark;
62
+ * a bundle reads a `ResolvedAccount`. Not part of any host protocol.
63
+ */
64
+ export declare const HostAccount: Schema.Struct<{
65
+ readonly managed: Schema.optionalKey<Schema.Literal<true>>;
66
+ readonly id: Schema.brand<Schema.String, "acc">;
67
+ readonly provider: Schema.Struct<{
68
+ readonly name: Schema.NonEmptyString;
69
+ readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
70
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
71
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
72
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
73
+ readonly in: Schema.Literal<"header">;
74
+ readonly name: Schema.String;
75
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
76
+ readonly field: Schema.NonEmptyString;
77
+ }>, Schema.Struct<{
78
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
79
+ readonly field: Schema.NonEmptyString;
80
+ }>]>>;
81
+ }>]>>;
82
+ }>, Schema.Struct<{
83
+ readonly in: Schema.Literal<"query">;
84
+ readonly name: Schema.NonEmptyString;
85
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
86
+ readonly field: Schema.NonEmptyString;
87
+ }>, Schema.Struct<{
88
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
89
+ readonly field: Schema.NonEmptyString;
90
+ }>]>>;
91
+ }>]>>;
92
+ }>]>>>;
93
+ readonly type: Schema.Literal<"secrets">;
94
+ readonly label: Schema.String;
95
+ readonly guide: Schema.optionalKey<Schema.String>;
96
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
97
+ }>, Schema.Struct<{
98
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
99
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
100
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
101
+ readonly in: Schema.Literal<"header">;
102
+ readonly name: Schema.String;
103
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
104
+ readonly field: Schema.NonEmptyString;
105
+ }>, Schema.Struct<{
106
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
107
+ readonly field: Schema.NonEmptyString;
108
+ }>]>>;
109
+ }>]>>;
110
+ }>, Schema.Struct<{
111
+ readonly in: Schema.Literal<"query">;
112
+ readonly name: Schema.NonEmptyString;
113
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
114
+ readonly field: Schema.NonEmptyString;
115
+ }>, Schema.Struct<{
116
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
117
+ readonly field: Schema.NonEmptyString;
118
+ }>]>>;
119
+ }>]>>;
120
+ }>]>>>;
121
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
122
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
123
+ readonly discover: Schema.String;
124
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
125
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
126
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
127
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
128
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
129
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
130
+ readonly path: Schema.String;
131
+ }>>;
132
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
133
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
134
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
135
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
136
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
137
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
138
+ readonly type: Schema.Literal<"oauth2">;
139
+ }>, Schema.Struct<{
140
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
141
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
142
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
143
+ readonly in: Schema.Literal<"header">;
144
+ readonly name: Schema.String;
145
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
146
+ readonly field: Schema.NonEmptyString;
147
+ }>, Schema.Struct<{
148
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
149
+ readonly field: Schema.NonEmptyString;
150
+ }>]>>;
151
+ }>]>>;
152
+ }>, Schema.Struct<{
153
+ readonly in: Schema.Literal<"query">;
154
+ readonly name: Schema.NonEmptyString;
155
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
156
+ readonly field: Schema.NonEmptyString;
157
+ }>, Schema.Struct<{
158
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
159
+ readonly field: Schema.NonEmptyString;
160
+ }>]>>;
161
+ }>]>>;
162
+ }>]>>>;
163
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
164
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
165
+ readonly authorizationUrl: Schema.String;
166
+ readonly tokenUrl: Schema.String;
167
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
168
+ readonly scopes: Schema.$Array<Schema.String>;
169
+ readonly issuer: Schema.optionalKey<Schema.String>;
170
+ readonly discover: Schema.optionalKey<Schema.Never>;
171
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
172
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
173
+ readonly path: Schema.String;
174
+ }>>;
175
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
176
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
177
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
178
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
179
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
180
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
181
+ readonly type: Schema.Literal<"oauth2">;
182
+ }>, Schema.Struct<{
183
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
184
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
185
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
186
+ readonly in: Schema.Literal<"header">;
187
+ readonly name: Schema.String;
188
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
189
+ readonly field: Schema.NonEmptyString;
190
+ }>, Schema.Struct<{
191
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
192
+ readonly field: Schema.NonEmptyString;
193
+ }>]>>;
194
+ }>]>>;
195
+ }>, Schema.Struct<{
196
+ readonly in: Schema.Literal<"query">;
197
+ readonly name: Schema.NonEmptyString;
198
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
199
+ readonly field: Schema.NonEmptyString;
200
+ }>, Schema.Struct<{
201
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
202
+ readonly field: Schema.NonEmptyString;
203
+ }>]>>;
204
+ }>]>>;
205
+ }>]>>>;
206
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
207
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
208
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
209
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
210
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
211
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
212
+ readonly grant: Schema.Literal<"client_credentials">;
213
+ readonly discover: Schema.String;
214
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
215
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
216
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
217
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
218
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
219
+ readonly type: Schema.Literal<"oauth2">;
220
+ }>, Schema.Struct<{
221
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
222
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
223
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
224
+ readonly in: Schema.Literal<"header">;
225
+ readonly name: Schema.String;
226
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
227
+ readonly field: Schema.NonEmptyString;
228
+ }>, Schema.Struct<{
229
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
230
+ readonly field: Schema.NonEmptyString;
231
+ }>]>>;
232
+ }>]>>;
233
+ }>, Schema.Struct<{
234
+ readonly in: Schema.Literal<"query">;
235
+ readonly name: Schema.NonEmptyString;
236
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
237
+ readonly field: Schema.NonEmptyString;
238
+ }>, Schema.Struct<{
239
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
240
+ readonly field: Schema.NonEmptyString;
241
+ }>]>>;
242
+ }>]>>;
243
+ }>]>>>;
244
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
245
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
246
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
247
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
248
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
249
+ readonly discover: Schema.optionalKey<Schema.Never>;
250
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
251
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
252
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
253
+ readonly grant: Schema.Literal<"client_credentials">;
254
+ readonly tokenUrl: Schema.String;
255
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
256
+ readonly scopes: Schema.$Array<Schema.String>;
257
+ readonly type: Schema.Literal<"oauth2">;
258
+ }>]>>;
259
+ readonly hosts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.String]>>>;
260
+ }>;
261
+ readonly method: Schema.NonEmptyString;
262
+ readonly generation: Schema.optionalKey<Schema.Int>;
263
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
264
+ }>;
265
+ export type HostAccount = typeof HostAccount.Type;
266
+ /** One scope's accounts as the host sends them to the runner; see `HostAccount`. */
267
+ export declare const HostAccountSlots: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
268
+ readonly managed: Schema.optionalKey<Schema.Literal<true>>;
269
+ readonly id: Schema.brand<Schema.String, "acc">;
270
+ readonly provider: Schema.Struct<{
271
+ readonly name: Schema.NonEmptyString;
272
+ readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
273
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
274
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
275
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
276
+ readonly in: Schema.Literal<"header">;
277
+ readonly name: Schema.String;
278
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
279
+ readonly field: Schema.NonEmptyString;
280
+ }>, Schema.Struct<{
281
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
282
+ readonly field: Schema.NonEmptyString;
283
+ }>]>>;
284
+ }>]>>;
285
+ }>, Schema.Struct<{
286
+ readonly in: Schema.Literal<"query">;
287
+ readonly name: Schema.NonEmptyString;
288
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
289
+ readonly field: Schema.NonEmptyString;
290
+ }>, Schema.Struct<{
291
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
292
+ readonly field: Schema.NonEmptyString;
293
+ }>]>>;
294
+ }>]>>;
295
+ }>]>>>;
296
+ readonly type: Schema.Literal<"secrets">;
297
+ readonly label: Schema.String;
298
+ readonly guide: Schema.optionalKey<Schema.String>;
299
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
300
+ }>, Schema.Struct<{
301
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
302
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
303
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
304
+ readonly in: Schema.Literal<"header">;
305
+ readonly name: Schema.String;
306
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
307
+ readonly field: Schema.NonEmptyString;
308
+ }>, Schema.Struct<{
309
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
310
+ readonly field: Schema.NonEmptyString;
311
+ }>]>>;
312
+ }>]>>;
313
+ }>, Schema.Struct<{
314
+ readonly in: Schema.Literal<"query">;
315
+ readonly name: Schema.NonEmptyString;
316
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
317
+ readonly field: Schema.NonEmptyString;
318
+ }>, Schema.Struct<{
319
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
320
+ readonly field: Schema.NonEmptyString;
321
+ }>]>>;
322
+ }>]>>;
323
+ }>]>>>;
324
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
325
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
326
+ readonly discover: Schema.String;
327
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
328
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
329
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
330
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
331
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
332
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
333
+ readonly path: Schema.String;
334
+ }>>;
335
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
336
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
337
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
338
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
339
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
340
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
341
+ readonly type: Schema.Literal<"oauth2">;
342
+ }>, Schema.Struct<{
343
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
344
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
345
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
346
+ readonly in: Schema.Literal<"header">;
347
+ readonly name: Schema.String;
348
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
349
+ readonly field: Schema.NonEmptyString;
350
+ }>, Schema.Struct<{
351
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
352
+ readonly field: Schema.NonEmptyString;
353
+ }>]>>;
354
+ }>]>>;
355
+ }>, Schema.Struct<{
356
+ readonly in: Schema.Literal<"query">;
357
+ readonly name: Schema.NonEmptyString;
358
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
359
+ readonly field: Schema.NonEmptyString;
360
+ }>, Schema.Struct<{
361
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
362
+ readonly field: Schema.NonEmptyString;
363
+ }>]>>;
364
+ }>]>>;
365
+ }>]>>>;
366
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
367
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
368
+ readonly authorizationUrl: Schema.String;
369
+ readonly tokenUrl: Schema.String;
370
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
371
+ readonly scopes: Schema.$Array<Schema.String>;
372
+ readonly issuer: Schema.optionalKey<Schema.String>;
373
+ readonly discover: Schema.optionalKey<Schema.Never>;
374
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
375
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
376
+ readonly path: Schema.String;
377
+ }>>;
378
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
379
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
380
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
381
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
382
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
383
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
384
+ readonly type: Schema.Literal<"oauth2">;
385
+ }>, Schema.Struct<{
386
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
387
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
388
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
389
+ readonly in: Schema.Literal<"header">;
390
+ readonly name: Schema.String;
391
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
392
+ readonly field: Schema.NonEmptyString;
393
+ }>, Schema.Struct<{
394
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
395
+ readonly field: Schema.NonEmptyString;
396
+ }>]>>;
397
+ }>]>>;
398
+ }>, Schema.Struct<{
399
+ readonly in: Schema.Literal<"query">;
400
+ readonly name: Schema.NonEmptyString;
401
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
402
+ readonly field: Schema.NonEmptyString;
403
+ }>, Schema.Struct<{
404
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
405
+ readonly field: Schema.NonEmptyString;
406
+ }>]>>;
407
+ }>]>>;
408
+ }>]>>>;
409
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
410
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
411
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
412
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
413
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
414
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
415
+ readonly grant: Schema.Literal<"client_credentials">;
416
+ readonly discover: Schema.String;
417
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
418
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
419
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
420
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
421
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
422
+ readonly type: Schema.Literal<"oauth2">;
423
+ }>, Schema.Struct<{
424
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
425
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
426
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
427
+ readonly in: Schema.Literal<"header">;
428
+ readonly name: Schema.String;
429
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
430
+ readonly field: Schema.NonEmptyString;
431
+ }>, Schema.Struct<{
432
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
433
+ readonly field: Schema.NonEmptyString;
434
+ }>]>>;
435
+ }>]>>;
436
+ }>, Schema.Struct<{
437
+ readonly in: Schema.Literal<"query">;
438
+ readonly name: Schema.NonEmptyString;
439
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
440
+ readonly field: Schema.NonEmptyString;
441
+ }>, Schema.Struct<{
442
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
443
+ readonly field: Schema.NonEmptyString;
444
+ }>]>>;
445
+ }>]>>;
446
+ }>]>>>;
447
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
448
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
449
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
450
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
451
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
452
+ readonly discover: Schema.optionalKey<Schema.Never>;
453
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
454
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
455
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
456
+ readonly grant: Schema.Literal<"client_credentials">;
457
+ readonly tokenUrl: Schema.String;
458
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
459
+ readonly scopes: Schema.$Array<Schema.String>;
460
+ readonly type: Schema.Literal<"oauth2">;
461
+ }>]>>;
462
+ readonly hosts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.String]>>>;
463
+ }>;
464
+ readonly method: Schema.NonEmptyString;
465
+ readonly generation: Schema.optionalKey<Schema.Int>;
466
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
467
+ }>, Schema.$Array<Schema.Struct<{
468
+ readonly managed: Schema.optionalKey<Schema.Literal<true>>;
469
+ readonly id: Schema.brand<Schema.String, "acc">;
470
+ readonly provider: Schema.Struct<{
471
+ readonly name: Schema.NonEmptyString;
472
+ readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
473
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
474
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
475
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
476
+ readonly in: Schema.Literal<"header">;
477
+ readonly name: Schema.String;
478
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
479
+ readonly field: Schema.NonEmptyString;
480
+ }>, Schema.Struct<{
481
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
482
+ readonly field: Schema.NonEmptyString;
483
+ }>]>>;
484
+ }>]>>;
485
+ }>, Schema.Struct<{
486
+ readonly in: Schema.Literal<"query">;
487
+ readonly name: Schema.NonEmptyString;
488
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
489
+ readonly field: Schema.NonEmptyString;
490
+ }>, Schema.Struct<{
491
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
492
+ readonly field: Schema.NonEmptyString;
493
+ }>]>>;
494
+ }>]>>;
495
+ }>]>>>;
496
+ readonly type: Schema.Literal<"secrets">;
497
+ readonly label: Schema.String;
498
+ readonly guide: Schema.optionalKey<Schema.String>;
499
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
500
+ }>, Schema.Struct<{
501
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
502
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
503
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
504
+ readonly in: Schema.Literal<"header">;
505
+ readonly name: Schema.String;
506
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
507
+ readonly field: Schema.NonEmptyString;
508
+ }>, Schema.Struct<{
509
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
510
+ readonly field: Schema.NonEmptyString;
511
+ }>]>>;
512
+ }>]>>;
513
+ }>, Schema.Struct<{
514
+ readonly in: Schema.Literal<"query">;
515
+ readonly name: Schema.NonEmptyString;
516
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
517
+ readonly field: Schema.NonEmptyString;
518
+ }>, Schema.Struct<{
519
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
520
+ readonly field: Schema.NonEmptyString;
521
+ }>]>>;
522
+ }>]>>;
523
+ }>]>>>;
524
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
525
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
526
+ readonly discover: Schema.String;
527
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
528
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
529
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
530
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
531
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
532
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
533
+ readonly path: Schema.String;
534
+ }>>;
535
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
536
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
537
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
538
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
539
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
540
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
541
+ readonly type: Schema.Literal<"oauth2">;
542
+ }>, Schema.Struct<{
543
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
544
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
545
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
546
+ readonly in: Schema.Literal<"header">;
547
+ readonly name: Schema.String;
548
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
549
+ readonly field: Schema.NonEmptyString;
550
+ }>, Schema.Struct<{
551
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
552
+ readonly field: Schema.NonEmptyString;
553
+ }>]>>;
554
+ }>]>>;
555
+ }>, Schema.Struct<{
556
+ readonly in: Schema.Literal<"query">;
557
+ readonly name: Schema.NonEmptyString;
558
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
559
+ readonly field: Schema.NonEmptyString;
560
+ }>, Schema.Struct<{
561
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
562
+ readonly field: Schema.NonEmptyString;
563
+ }>]>>;
564
+ }>]>>;
565
+ }>]>>>;
566
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
567
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
568
+ readonly authorizationUrl: Schema.String;
569
+ readonly tokenUrl: Schema.String;
570
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
571
+ readonly scopes: Schema.$Array<Schema.String>;
572
+ readonly issuer: Schema.optionalKey<Schema.String>;
573
+ readonly discover: Schema.optionalKey<Schema.Never>;
574
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
575
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
576
+ readonly path: Schema.String;
577
+ }>>;
578
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
579
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
580
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
581
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
582
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
583
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
584
+ readonly type: Schema.Literal<"oauth2">;
585
+ }>, Schema.Struct<{
586
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
587
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
588
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
589
+ readonly in: Schema.Literal<"header">;
590
+ readonly name: Schema.String;
591
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
592
+ readonly field: Schema.NonEmptyString;
593
+ }>, Schema.Struct<{
594
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
595
+ readonly field: Schema.NonEmptyString;
596
+ }>]>>;
597
+ }>]>>;
598
+ }>, Schema.Struct<{
599
+ readonly in: Schema.Literal<"query">;
600
+ readonly name: Schema.NonEmptyString;
601
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
602
+ readonly field: Schema.NonEmptyString;
603
+ }>, Schema.Struct<{
604
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
605
+ readonly field: Schema.NonEmptyString;
606
+ }>]>>;
607
+ }>]>>;
608
+ }>]>>>;
609
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
610
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
611
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
612
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
613
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
614
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
615
+ readonly grant: Schema.Literal<"client_credentials">;
616
+ readonly discover: Schema.String;
617
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
618
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
619
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
620
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
621
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
622
+ readonly type: Schema.Literal<"oauth2">;
623
+ }>, Schema.Struct<{
624
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
625
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
626
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
627
+ readonly in: Schema.Literal<"header">;
628
+ readonly name: Schema.String;
629
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
630
+ readonly field: Schema.NonEmptyString;
631
+ }>, Schema.Struct<{
632
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
633
+ readonly field: Schema.NonEmptyString;
634
+ }>]>>;
635
+ }>]>>;
636
+ }>, Schema.Struct<{
637
+ readonly in: Schema.Literal<"query">;
638
+ readonly name: Schema.NonEmptyString;
639
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
640
+ readonly field: Schema.NonEmptyString;
641
+ }>, Schema.Struct<{
642
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
643
+ readonly field: Schema.NonEmptyString;
644
+ }>]>>;
645
+ }>]>>;
646
+ }>]>>>;
647
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
648
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
649
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
650
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
651
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
652
+ readonly discover: Schema.optionalKey<Schema.Never>;
653
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
654
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
655
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
656
+ readonly grant: Schema.Literal<"client_credentials">;
657
+ readonly tokenUrl: Schema.String;
658
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
659
+ readonly scopes: Schema.$Array<Schema.String>;
660
+ readonly type: Schema.Literal<"oauth2">;
661
+ }>]>>;
662
+ readonly hosts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.String]>>>;
663
+ }>;
664
+ readonly method: Schema.NonEmptyString;
665
+ readonly generation: Schema.optionalKey<Schema.Int>;
666
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
667
+ }>>]>>;
668
+ export type HostAccountSlots = typeof HostAccountSlots.Type;
669
+ /**
670
+ * An invocation's accounts by scope as the host sends them to the runner; see `HostAccount`.
671
+ * `user` is absent for work without a caller, as in `ResolvedAccounts`.
672
+ */
673
+ export declare const HostAccounts: Schema.Struct<{
674
+ readonly app: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
675
+ readonly managed: Schema.optionalKey<Schema.Literal<true>>;
676
+ readonly id: Schema.brand<Schema.String, "acc">;
677
+ readonly provider: Schema.Struct<{
678
+ readonly name: Schema.NonEmptyString;
679
+ readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
680
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
681
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
682
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
683
+ readonly in: Schema.Literal<"header">;
684
+ readonly name: Schema.String;
685
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
686
+ readonly field: Schema.NonEmptyString;
687
+ }>, Schema.Struct<{
688
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
689
+ readonly field: Schema.NonEmptyString;
690
+ }>]>>;
691
+ }>]>>;
692
+ }>, Schema.Struct<{
693
+ readonly in: Schema.Literal<"query">;
694
+ readonly name: Schema.NonEmptyString;
695
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
696
+ readonly field: Schema.NonEmptyString;
697
+ }>, Schema.Struct<{
698
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
699
+ readonly field: Schema.NonEmptyString;
700
+ }>]>>;
701
+ }>]>>;
702
+ }>]>>>;
703
+ readonly type: Schema.Literal<"secrets">;
704
+ readonly label: Schema.String;
705
+ readonly guide: Schema.optionalKey<Schema.String>;
706
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
707
+ }>, Schema.Struct<{
708
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
709
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
710
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
711
+ readonly in: Schema.Literal<"header">;
712
+ readonly name: Schema.String;
713
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
714
+ readonly field: Schema.NonEmptyString;
715
+ }>, Schema.Struct<{
716
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
717
+ readonly field: Schema.NonEmptyString;
718
+ }>]>>;
719
+ }>]>>;
720
+ }>, Schema.Struct<{
721
+ readonly in: Schema.Literal<"query">;
722
+ readonly name: Schema.NonEmptyString;
723
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
724
+ readonly field: Schema.NonEmptyString;
725
+ }>, Schema.Struct<{
726
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
727
+ readonly field: Schema.NonEmptyString;
728
+ }>]>>;
729
+ }>]>>;
730
+ }>]>>>;
731
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
732
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
733
+ readonly discover: Schema.String;
734
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
735
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
736
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
737
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
738
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
739
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
740
+ readonly path: Schema.String;
741
+ }>>;
742
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
743
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
744
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "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"]>>;
748
+ readonly type: Schema.Literal<"oauth2">;
749
+ }>, Schema.Struct<{
750
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
751
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
752
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
753
+ readonly in: Schema.Literal<"header">;
754
+ readonly name: Schema.String;
755
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
756
+ readonly field: Schema.NonEmptyString;
757
+ }>, Schema.Struct<{
758
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
759
+ readonly field: Schema.NonEmptyString;
760
+ }>]>>;
761
+ }>]>>;
762
+ }>, Schema.Struct<{
763
+ readonly in: Schema.Literal<"query">;
764
+ readonly name: Schema.NonEmptyString;
765
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
766
+ readonly field: Schema.NonEmptyString;
767
+ }>, Schema.Struct<{
768
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
769
+ readonly field: Schema.NonEmptyString;
770
+ }>]>>;
771
+ }>]>>;
772
+ }>]>>>;
773
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
774
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
775
+ readonly authorizationUrl: Schema.String;
776
+ readonly tokenUrl: Schema.String;
777
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
778
+ readonly scopes: Schema.$Array<Schema.String>;
779
+ readonly issuer: Schema.optionalKey<Schema.String>;
780
+ readonly discover: Schema.optionalKey<Schema.Never>;
781
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
782
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
783
+ readonly path: Schema.String;
784
+ }>>;
785
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
786
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
787
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
788
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
789
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
790
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
791
+ readonly type: Schema.Literal<"oauth2">;
792
+ }>, Schema.Struct<{
793
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
794
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
795
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
796
+ readonly in: Schema.Literal<"header">;
797
+ readonly name: Schema.String;
798
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
799
+ readonly field: Schema.NonEmptyString;
800
+ }>, Schema.Struct<{
801
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
802
+ readonly field: Schema.NonEmptyString;
803
+ }>]>>;
804
+ }>]>>;
805
+ }>, Schema.Struct<{
806
+ readonly in: Schema.Literal<"query">;
807
+ readonly name: Schema.NonEmptyString;
808
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
809
+ readonly field: Schema.NonEmptyString;
810
+ }>, Schema.Struct<{
811
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
812
+ readonly field: Schema.NonEmptyString;
813
+ }>]>>;
814
+ }>]>>;
815
+ }>]>>>;
816
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
817
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
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"]>>;
822
+ readonly grant: Schema.Literal<"client_credentials">;
823
+ readonly discover: Schema.String;
824
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
825
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
826
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
827
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
828
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
829
+ readonly type: Schema.Literal<"oauth2">;
830
+ }>, Schema.Struct<{
831
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
832
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
833
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
834
+ readonly in: Schema.Literal<"header">;
835
+ readonly name: Schema.String;
836
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
837
+ readonly field: Schema.NonEmptyString;
838
+ }>, Schema.Struct<{
839
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
840
+ readonly field: Schema.NonEmptyString;
841
+ }>]>>;
842
+ }>]>>;
843
+ }>, Schema.Struct<{
844
+ readonly in: Schema.Literal<"query">;
845
+ readonly name: Schema.NonEmptyString;
846
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
847
+ readonly field: Schema.NonEmptyString;
848
+ }>, Schema.Struct<{
849
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
850
+ readonly field: Schema.NonEmptyString;
851
+ }>]>>;
852
+ }>]>>;
853
+ }>]>>>;
854
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
855
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
856
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
857
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
858
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
859
+ readonly discover: Schema.optionalKey<Schema.Never>;
860
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
861
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
862
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
863
+ readonly grant: Schema.Literal<"client_credentials">;
864
+ readonly tokenUrl: Schema.String;
865
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
866
+ readonly scopes: Schema.$Array<Schema.String>;
867
+ readonly type: Schema.Literal<"oauth2">;
868
+ }>]>>;
869
+ readonly hosts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.String]>>>;
870
+ }>;
871
+ readonly method: Schema.NonEmptyString;
872
+ readonly generation: Schema.optionalKey<Schema.Int>;
873
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
874
+ }>, Schema.$Array<Schema.Struct<{
875
+ readonly managed: Schema.optionalKey<Schema.Literal<true>>;
876
+ readonly id: Schema.brand<Schema.String, "acc">;
877
+ readonly provider: Schema.Struct<{
878
+ readonly name: Schema.NonEmptyString;
879
+ readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
880
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
881
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
882
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
883
+ readonly in: Schema.Literal<"header">;
884
+ readonly name: Schema.String;
885
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
886
+ readonly field: Schema.NonEmptyString;
887
+ }>, Schema.Struct<{
888
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
889
+ readonly field: Schema.NonEmptyString;
890
+ }>]>>;
891
+ }>]>>;
892
+ }>, Schema.Struct<{
893
+ readonly in: Schema.Literal<"query">;
894
+ readonly name: Schema.NonEmptyString;
895
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
896
+ readonly field: Schema.NonEmptyString;
897
+ }>, Schema.Struct<{
898
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
899
+ readonly field: Schema.NonEmptyString;
900
+ }>]>>;
901
+ }>]>>;
902
+ }>]>>>;
903
+ readonly type: Schema.Literal<"secrets">;
904
+ readonly label: Schema.String;
905
+ readonly guide: Schema.optionalKey<Schema.String>;
906
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
907
+ }>, Schema.Struct<{
908
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
909
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
910
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
911
+ readonly in: Schema.Literal<"header">;
912
+ readonly name: Schema.String;
913
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
914
+ readonly field: Schema.NonEmptyString;
915
+ }>, Schema.Struct<{
916
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
917
+ readonly field: Schema.NonEmptyString;
918
+ }>]>>;
919
+ }>]>>;
920
+ }>, Schema.Struct<{
921
+ readonly in: Schema.Literal<"query">;
922
+ readonly name: Schema.NonEmptyString;
923
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
924
+ readonly field: Schema.NonEmptyString;
925
+ }>, Schema.Struct<{
926
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
927
+ readonly field: Schema.NonEmptyString;
928
+ }>]>>;
929
+ }>]>>;
930
+ }>]>>>;
931
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
932
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
933
+ readonly discover: Schema.String;
934
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
935
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
936
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
937
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
938
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
939
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
940
+ readonly path: Schema.String;
941
+ }>>;
942
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
943
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
944
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
945
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
946
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
947
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
948
+ readonly type: Schema.Literal<"oauth2">;
949
+ }>, Schema.Struct<{
950
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
951
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
952
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
953
+ readonly in: Schema.Literal<"header">;
954
+ readonly name: Schema.String;
955
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
956
+ readonly field: Schema.NonEmptyString;
957
+ }>, Schema.Struct<{
958
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
959
+ readonly field: Schema.NonEmptyString;
960
+ }>]>>;
961
+ }>]>>;
962
+ }>, Schema.Struct<{
963
+ readonly in: Schema.Literal<"query">;
964
+ readonly name: Schema.NonEmptyString;
965
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
966
+ readonly field: Schema.NonEmptyString;
967
+ }>, Schema.Struct<{
968
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
969
+ readonly field: Schema.NonEmptyString;
970
+ }>]>>;
971
+ }>]>>;
972
+ }>]>>>;
973
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
974
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
975
+ readonly authorizationUrl: Schema.String;
976
+ readonly tokenUrl: Schema.String;
977
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
978
+ readonly scopes: Schema.$Array<Schema.String>;
979
+ readonly issuer: Schema.optionalKey<Schema.String>;
980
+ readonly discover: Schema.optionalKey<Schema.Never>;
981
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
982
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
983
+ readonly path: Schema.String;
984
+ }>>;
985
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
986
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
987
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
988
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
989
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
990
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
991
+ readonly type: Schema.Literal<"oauth2">;
992
+ }>, Schema.Struct<{
993
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
994
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
995
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
996
+ readonly in: Schema.Literal<"header">;
997
+ readonly name: Schema.String;
998
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
999
+ readonly field: Schema.NonEmptyString;
1000
+ }>, Schema.Struct<{
1001
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1002
+ readonly field: Schema.NonEmptyString;
1003
+ }>]>>;
1004
+ }>]>>;
1005
+ }>, Schema.Struct<{
1006
+ readonly in: Schema.Literal<"query">;
1007
+ readonly name: Schema.NonEmptyString;
1008
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1009
+ readonly field: Schema.NonEmptyString;
1010
+ }>, Schema.Struct<{
1011
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1012
+ readonly field: Schema.NonEmptyString;
1013
+ }>]>>;
1014
+ }>]>>;
1015
+ }>]>>>;
1016
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1017
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
1018
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
1019
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1020
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1021
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
1022
+ readonly grant: Schema.Literal<"client_credentials">;
1023
+ readonly discover: Schema.String;
1024
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
1025
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
1026
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
1027
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
1028
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1029
+ readonly type: Schema.Literal<"oauth2">;
1030
+ }>, Schema.Struct<{
1031
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1032
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1033
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1034
+ readonly in: Schema.Literal<"header">;
1035
+ readonly name: Schema.String;
1036
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1037
+ readonly field: Schema.NonEmptyString;
1038
+ }>, Schema.Struct<{
1039
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1040
+ readonly field: Schema.NonEmptyString;
1041
+ }>]>>;
1042
+ }>]>>;
1043
+ }>, Schema.Struct<{
1044
+ readonly in: Schema.Literal<"query">;
1045
+ readonly name: Schema.NonEmptyString;
1046
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1047
+ readonly field: Schema.NonEmptyString;
1048
+ }>, Schema.Struct<{
1049
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1050
+ readonly field: Schema.NonEmptyString;
1051
+ }>]>>;
1052
+ }>]>>;
1053
+ }>]>>>;
1054
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1055
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
1056
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
1057
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1058
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
1059
+ readonly discover: Schema.optionalKey<Schema.Never>;
1060
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
1061
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1062
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
1063
+ readonly grant: Schema.Literal<"client_credentials">;
1064
+ readonly tokenUrl: Schema.String;
1065
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
1066
+ readonly scopes: Schema.$Array<Schema.String>;
1067
+ readonly type: Schema.Literal<"oauth2">;
1068
+ }>]>>;
1069
+ readonly hosts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.String]>>>;
1070
+ }>;
1071
+ readonly method: Schema.NonEmptyString;
1072
+ readonly generation: Schema.optionalKey<Schema.Int>;
1073
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1074
+ }>>]>>;
1075
+ readonly user: Schema.optionalKey<Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
1076
+ readonly managed: Schema.optionalKey<Schema.Literal<true>>;
1077
+ readonly id: Schema.brand<Schema.String, "acc">;
1078
+ readonly provider: Schema.Struct<{
1079
+ readonly name: Schema.NonEmptyString;
1080
+ readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
1081
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1082
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1083
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1084
+ readonly in: Schema.Literal<"header">;
1085
+ readonly name: Schema.String;
1086
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1087
+ readonly field: Schema.NonEmptyString;
1088
+ }>, Schema.Struct<{
1089
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1090
+ readonly field: Schema.NonEmptyString;
1091
+ }>]>>;
1092
+ }>]>>;
1093
+ }>, Schema.Struct<{
1094
+ readonly in: Schema.Literal<"query">;
1095
+ readonly name: Schema.NonEmptyString;
1096
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1097
+ readonly field: Schema.NonEmptyString;
1098
+ }>, Schema.Struct<{
1099
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1100
+ readonly field: Schema.NonEmptyString;
1101
+ }>]>>;
1102
+ }>]>>;
1103
+ }>]>>>;
1104
+ readonly type: Schema.Literal<"secrets">;
1105
+ readonly label: Schema.String;
1106
+ readonly guide: Schema.optionalKey<Schema.String>;
1107
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1108
+ }>, Schema.Struct<{
1109
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1110
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1111
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1112
+ readonly in: Schema.Literal<"header">;
1113
+ readonly name: Schema.String;
1114
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1115
+ readonly field: Schema.NonEmptyString;
1116
+ }>, Schema.Struct<{
1117
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1118
+ readonly field: Schema.NonEmptyString;
1119
+ }>]>>;
1120
+ }>]>>;
1121
+ }>, Schema.Struct<{
1122
+ readonly in: Schema.Literal<"query">;
1123
+ readonly name: Schema.NonEmptyString;
1124
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1125
+ readonly field: Schema.NonEmptyString;
1126
+ }>, Schema.Struct<{
1127
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1128
+ readonly field: Schema.NonEmptyString;
1129
+ }>]>>;
1130
+ }>]>>;
1131
+ }>]>>>;
1132
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1133
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
1134
+ readonly discover: Schema.String;
1135
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
1136
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
1137
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
1138
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
1139
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1140
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
1141
+ readonly path: Schema.String;
1142
+ }>>;
1143
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
1144
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1145
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
1146
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1147
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1148
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
1149
+ readonly type: Schema.Literal<"oauth2">;
1150
+ }>, Schema.Struct<{
1151
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1152
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1153
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1154
+ readonly in: Schema.Literal<"header">;
1155
+ readonly name: Schema.String;
1156
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1157
+ readonly field: Schema.NonEmptyString;
1158
+ }>, Schema.Struct<{
1159
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1160
+ readonly field: Schema.NonEmptyString;
1161
+ }>]>>;
1162
+ }>]>>;
1163
+ }>, Schema.Struct<{
1164
+ readonly in: Schema.Literal<"query">;
1165
+ readonly name: Schema.NonEmptyString;
1166
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1167
+ readonly field: Schema.NonEmptyString;
1168
+ }>, Schema.Struct<{
1169
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1170
+ readonly field: Schema.NonEmptyString;
1171
+ }>]>>;
1172
+ }>]>>;
1173
+ }>]>>>;
1174
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1175
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
1176
+ readonly authorizationUrl: Schema.String;
1177
+ readonly tokenUrl: Schema.String;
1178
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
1179
+ readonly scopes: Schema.$Array<Schema.String>;
1180
+ readonly issuer: Schema.optionalKey<Schema.String>;
1181
+ readonly discover: Schema.optionalKey<Schema.Never>;
1182
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
1183
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
1184
+ readonly path: Schema.String;
1185
+ }>>;
1186
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
1187
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1188
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
1189
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1190
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1191
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
1192
+ readonly type: Schema.Literal<"oauth2">;
1193
+ }>, Schema.Struct<{
1194
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1195
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1196
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1197
+ readonly in: Schema.Literal<"header">;
1198
+ readonly name: Schema.String;
1199
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1200
+ readonly field: Schema.NonEmptyString;
1201
+ }>, Schema.Struct<{
1202
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1203
+ readonly field: Schema.NonEmptyString;
1204
+ }>]>>;
1205
+ }>]>>;
1206
+ }>, Schema.Struct<{
1207
+ readonly in: Schema.Literal<"query">;
1208
+ readonly name: Schema.NonEmptyString;
1209
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1210
+ readonly field: Schema.NonEmptyString;
1211
+ }>, Schema.Struct<{
1212
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1213
+ readonly field: Schema.NonEmptyString;
1214
+ }>]>>;
1215
+ }>]>>;
1216
+ }>]>>>;
1217
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1218
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
1219
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
1220
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1221
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1222
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
1223
+ readonly grant: Schema.Literal<"client_credentials">;
1224
+ readonly discover: Schema.String;
1225
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
1226
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
1227
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
1228
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
1229
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1230
+ readonly type: Schema.Literal<"oauth2">;
1231
+ }>, Schema.Struct<{
1232
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1233
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1234
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1235
+ readonly in: Schema.Literal<"header">;
1236
+ readonly name: Schema.String;
1237
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1238
+ readonly field: Schema.NonEmptyString;
1239
+ }>, Schema.Struct<{
1240
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1241
+ readonly field: Schema.NonEmptyString;
1242
+ }>]>>;
1243
+ }>]>>;
1244
+ }>, Schema.Struct<{
1245
+ readonly in: Schema.Literal<"query">;
1246
+ readonly name: Schema.NonEmptyString;
1247
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1248
+ readonly field: Schema.NonEmptyString;
1249
+ }>, Schema.Struct<{
1250
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1251
+ readonly field: Schema.NonEmptyString;
1252
+ }>]>>;
1253
+ }>]>>;
1254
+ }>]>>>;
1255
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1256
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
1257
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
1258
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1259
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
1260
+ readonly discover: Schema.optionalKey<Schema.Never>;
1261
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
1262
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1263
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
1264
+ readonly grant: Schema.Literal<"client_credentials">;
1265
+ readonly tokenUrl: Schema.String;
1266
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
1267
+ readonly scopes: Schema.$Array<Schema.String>;
1268
+ readonly type: Schema.Literal<"oauth2">;
1269
+ }>]>>;
1270
+ readonly hosts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.String]>>>;
1271
+ }>;
1272
+ readonly method: Schema.NonEmptyString;
1273
+ readonly generation: Schema.optionalKey<Schema.Int>;
1274
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1275
+ }>, Schema.$Array<Schema.Struct<{
1276
+ readonly managed: Schema.optionalKey<Schema.Literal<true>>;
1277
+ readonly id: Schema.brand<Schema.String, "acc">;
1278
+ readonly provider: Schema.Struct<{
1279
+ readonly name: Schema.NonEmptyString;
1280
+ readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
1281
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1282
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1283
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1284
+ readonly in: Schema.Literal<"header">;
1285
+ readonly name: Schema.String;
1286
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1287
+ readonly field: Schema.NonEmptyString;
1288
+ }>, Schema.Struct<{
1289
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1290
+ readonly field: Schema.NonEmptyString;
1291
+ }>]>>;
1292
+ }>]>>;
1293
+ }>, Schema.Struct<{
1294
+ readonly in: Schema.Literal<"query">;
1295
+ readonly name: Schema.NonEmptyString;
1296
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1297
+ readonly field: Schema.NonEmptyString;
1298
+ }>, Schema.Struct<{
1299
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1300
+ readonly field: Schema.NonEmptyString;
1301
+ }>]>>;
1302
+ }>]>>;
1303
+ }>]>>>;
1304
+ readonly type: Schema.Literal<"secrets">;
1305
+ readonly label: Schema.String;
1306
+ readonly guide: Schema.optionalKey<Schema.String>;
1307
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1308
+ }>, Schema.Struct<{
1309
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1310
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1311
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1312
+ readonly in: Schema.Literal<"header">;
1313
+ readonly name: Schema.String;
1314
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1315
+ readonly field: Schema.NonEmptyString;
1316
+ }>, Schema.Struct<{
1317
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1318
+ readonly field: Schema.NonEmptyString;
1319
+ }>]>>;
1320
+ }>]>>;
1321
+ }>, Schema.Struct<{
1322
+ readonly in: Schema.Literal<"query">;
1323
+ readonly name: Schema.NonEmptyString;
1324
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1325
+ readonly field: Schema.NonEmptyString;
1326
+ }>, Schema.Struct<{
1327
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1328
+ readonly field: Schema.NonEmptyString;
1329
+ }>]>>;
1330
+ }>]>>;
1331
+ }>]>>>;
1332
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1333
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
1334
+ readonly discover: Schema.String;
1335
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
1336
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
1337
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
1338
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
1339
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1340
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
1341
+ readonly path: Schema.String;
1342
+ }>>;
1343
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
1344
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1345
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
1346
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1347
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1348
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
1349
+ readonly type: Schema.Literal<"oauth2">;
1350
+ }>, Schema.Struct<{
1351
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1352
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1353
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1354
+ readonly in: Schema.Literal<"header">;
1355
+ readonly name: Schema.String;
1356
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1357
+ readonly field: Schema.NonEmptyString;
1358
+ }>, Schema.Struct<{
1359
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1360
+ readonly field: Schema.NonEmptyString;
1361
+ }>]>>;
1362
+ }>]>>;
1363
+ }>, Schema.Struct<{
1364
+ readonly in: Schema.Literal<"query">;
1365
+ readonly name: Schema.NonEmptyString;
1366
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1367
+ readonly field: Schema.NonEmptyString;
1368
+ }>, Schema.Struct<{
1369
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1370
+ readonly field: Schema.NonEmptyString;
1371
+ }>]>>;
1372
+ }>]>>;
1373
+ }>]>>>;
1374
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1375
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
1376
+ readonly authorizationUrl: Schema.String;
1377
+ readonly tokenUrl: Schema.String;
1378
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
1379
+ readonly scopes: Schema.$Array<Schema.String>;
1380
+ readonly issuer: Schema.optionalKey<Schema.String>;
1381
+ readonly discover: Schema.optionalKey<Schema.Never>;
1382
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
1383
+ readonly tokenResponse: Schema.optionalKey<Schema.Struct<{
1384
+ readonly path: Schema.String;
1385
+ }>>;
1386
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
1387
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1388
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
1389
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1390
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1391
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
1392
+ readonly type: Schema.Literal<"oauth2">;
1393
+ }>, Schema.Struct<{
1394
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1395
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1396
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1397
+ readonly in: Schema.Literal<"header">;
1398
+ readonly name: Schema.String;
1399
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1400
+ readonly field: Schema.NonEmptyString;
1401
+ }>, Schema.Struct<{
1402
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1403
+ readonly field: Schema.NonEmptyString;
1404
+ }>]>>;
1405
+ }>]>>;
1406
+ }>, Schema.Struct<{
1407
+ readonly in: Schema.Literal<"query">;
1408
+ readonly name: Schema.NonEmptyString;
1409
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1410
+ readonly field: Schema.NonEmptyString;
1411
+ }>, Schema.Struct<{
1412
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1413
+ readonly field: Schema.NonEmptyString;
1414
+ }>]>>;
1415
+ }>]>>;
1416
+ }>]>>>;
1417
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1418
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
1419
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
1420
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1421
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1422
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
1423
+ readonly grant: Schema.Literal<"client_credentials">;
1424
+ readonly discover: Schema.String;
1425
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.String>;
1426
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
1427
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
1428
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
1429
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1430
+ readonly type: Schema.Literal<"oauth2">;
1431
+ }>, Schema.Struct<{
1432
+ readonly plain: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1433
+ readonly raw: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
1434
+ readonly request: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1435
+ readonly in: Schema.Literal<"header">;
1436
+ readonly name: Schema.String;
1437
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1438
+ readonly field: Schema.NonEmptyString;
1439
+ }>, Schema.Struct<{
1440
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1441
+ readonly field: Schema.NonEmptyString;
1442
+ }>]>>;
1443
+ }>]>>;
1444
+ }>, Schema.Struct<{
1445
+ readonly in: Schema.Literal<"query">;
1446
+ readonly name: Schema.NonEmptyString;
1447
+ readonly value: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1448
+ readonly field: Schema.NonEmptyString;
1449
+ }>, Schema.Struct<{
1450
+ readonly base64: Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
1451
+ readonly field: Schema.NonEmptyString;
1452
+ }>]>>;
1453
+ }>]>>;
1454
+ }>]>>>;
1455
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1456
+ readonly clientGuide: Schema.optionalKey<Schema.String>;
1457
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
1458
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
1459
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
1460
+ readonly discover: Schema.optionalKey<Schema.Never>;
1461
+ readonly authorizationServerMetadataUrl: Schema.optionalKey<Schema.Never>;
1462
+ readonly scopeSeparator: Schema.optionalKey<Schema.String>;
1463
+ readonly tokenRequestFormat: Schema.optionalKey<Schema.Literals<readonly ["form", "json"]>>;
1464
+ readonly grant: Schema.Literal<"client_credentials">;
1465
+ readonly tokenUrl: Schema.String;
1466
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
1467
+ readonly scopes: Schema.$Array<Schema.String>;
1468
+ readonly type: Schema.Literal<"oauth2">;
1469
+ }>]>>;
1470
+ readonly hosts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.String]>>>;
1471
+ }>;
1472
+ readonly method: Schema.NonEmptyString;
1473
+ readonly generation: Schema.optionalKey<Schema.Int>;
1474
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1475
+ }>>]>>>;
1476
+ }>;
1477
+ export type HostAccounts = typeof HostAccounts.Type;
1478
+ /** Each requirement's accounts across both scopes; requirement names are unique across them. */
1479
+ export declare const scopedSlots: <Slot>(accounts: {
1480
+ readonly app: Readonly<Record<string, Slot>>;
1481
+ readonly user?: Readonly<Record<string, Slot>>;
1482
+ }) => ReadonlyArray<readonly [string, Slot]>;
41
1483
  /** Trusted invocation context, supplied separately from the Request. */
42
1484
  export interface HostContext {
43
1485
  /** Trusted host deadline; never accepted in public operation JSON. */
@@ -54,8 +1496,10 @@ export interface HostContext {
54
1496
  /** Trusted in-process tracing capability; never decoded from a public request. */
55
1497
  readonly telemetry?: InvocationTelemetry;
56
1498
  readonly approval?: TrustedToolApproval;
57
- readonly storage?: AppStorage;
58
- readonly accounts: Redacted.Redacted<ResolvedAccounts>;
1499
+ /** The data facet's SQLite storage, for apps that declare `sql`. Never exposed to app code. */
1500
+ readonly storage?: AppSqlStorage;
1501
+ /** The invocation's accounts as the host resolved them; see `HostAccount`. */
1502
+ readonly accounts: Redacted.Redacted<HostAccounts>;
59
1503
  }
60
1504
  /** Skill commands. Send sources only to builds that declare skillSources. */
61
1505
  export declare const skillsCommand: (sources: boolean) => {
@@ -72,10 +1516,16 @@ export interface SkillCatalog {
72
1516
  }
73
1517
  export declare const skillCatalog: (response: typeof SkillCatalogResponse.Type) => SkillCatalog;
74
1518
  /**
75
- * Inspection commands. Send detail or tools only to builds that declare toolIndex,
76
- * and scheduled only to builds that declare scheduledTools.
1519
+ * Inspection commands. Send detail or tools only to builds that declare toolIndex, scheduled
1520
+ * only to builds that declare scheduledTools, and definitions only to builds that declare
1521
+ * sharedDefinitions: they answer it with a `HostedSharedCatalog`.
77
1522
  */
78
- export declare const inspectCommand: (tools?: readonly string[], scheduled?: true) => {
1523
+ export declare const inspectCommand: (options: {
1524
+ readonly tools?: readonly string[] | undefined;
1525
+ readonly scheduled?: true | undefined;
1526
+ readonly definitions?: "shared" | undefined;
1527
+ }) => {
1528
+ definitions?: "shared";
79
1529
  scheduled?: true;
80
1530
  tools?: string[];
81
1531
  operation: "inspect";
@@ -84,6 +1534,7 @@ export declare const indexCommand: {
84
1534
  readonly operation: "inspect";
85
1535
  readonly detail: "summary";
86
1536
  };
1537
+ export { restoreSharedCatalog } from "./shared-catalog.js";
87
1538
  /** Keep only the requested tools from an inspection that may have described every tool. */
88
1539
  export declare const selectTools: (tools?: readonly string[]) => <A extends {
89
1540
  readonly tools: readonly {
@@ -91,7 +1542,7 @@ export declare const selectTools: (tools?: readonly string[]) => <A extends {
91
1542
  }[];
92
1543
  }>(catalog: A) => A;
93
1544
  /** Declaration reads do not bind accounts or evaluate the app factory. A named declaration
94
- * problem, such as a reserved database field, is reported so the deploy can explain it. */
1545
+ * problem is reported so the deploy can explain it. */
95
1546
  export declare const HostRequirementsError: Schema.Union<readonly [typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof DatabaseFieldReserved]>;
96
1547
  /** Inspection can fail while binding accounts or evaluating the live definition. */
97
1548
  export declare const HostInspectError: Schema.Union<readonly [typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof HostRequestInvalid, typeof HostDeclarationInvalid, typeof HostAccountsInvalid, typeof HostEvaluationFailed]>;
@@ -109,6 +1560,28 @@ export declare const HostDataError: Schema.Union<readonly [typeof OpenapiRespons
109
1560
  export declare const ToolResultObservation: Context.Reference<{
110
1561
  readonly failed: () => void;
111
1562
  }>;
1563
+ /**
1564
+ * One tool invocation's own timing, on the isolate's clock: how long it ran, and how much of that
1565
+ * it waited on upstream providers, waited on elicitation answers and ran the app's authored code.
1566
+ * Each instant counts once, so the rest is Executor's own time. The isolated handler returns it
1567
+ * beside the result so the host can add the other isolates' parts.
1568
+ */
1569
+ export declare const InvocationTiming: Schema.Struct<{
1570
+ readonly elapsedMs: Schema.Finite;
1571
+ readonly upstreamMs: Schema.Finite;
1572
+ readonly elicitationMs: Schema.Finite;
1573
+ readonly authoredMs: Schema.Finite;
1574
+ /** Waiting on another call that holds the lease to load a cache entry this call needs. */
1575
+ readonly leaseMs: Schema.optionalKey<Schema.Finite>;
1576
+ /**
1577
+ * How long background work, such as a stale cache entry's refresh, ran within the invocation.
1578
+ * It runs beside the invocation, so it is not part of the division above.
1579
+ */
1580
+ readonly backgroundMs: Schema.optionalKey<Schema.Finite>;
1581
+ }>;
1582
+ export type InvocationTiming = typeof InvocationTiming.Type;
1583
+ /** Receives the invocation's timing once it is over; hosts that do not return it ignore it. */
1584
+ export declare const InvocationTimingSink: Context.Reference<(timing: InvocationTiming) => void>;
112
1585
  /** Native handler; context comes from host authority, never from request content. */
113
1586
  export type AppHandler = (request: Request, context: HostContext) => Effect.Effect<Response>;
114
1587
  export { type AppOperation, type OperationContext } from "./operations.js";