apps 0.0.1-beta.0 → 0.0.1-beta.10

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 (141) hide show
  1. package/README.md +145 -30
  2. package/framework-reference.json +1 -1
  3. package/js/browser-XIPJGLH2.js +65 -0
  4. package/js/{chunk-36DNRFZQ.js → chunk-27F7W2LG.js} +1 -1
  5. package/js/{chunk-VFUZI3NY.js → chunk-57RKNWL2.js} +4 -4
  6. package/js/{chunk-BPEFS4YF.js → chunk-5T57N25Q.js} +122 -18
  7. package/js/chunk-72JNVHPK.js +41 -0
  8. package/js/{chunk-2OTCEKL2.js → chunk-CDL5PM2Q.js} +2643 -1646
  9. package/js/{chunk-KWTCHVLT.js → chunk-CRDWFA74.js} +69 -54
  10. package/js/chunk-CZ7CSFO4.js +39 -0
  11. package/js/{chunk-WIDTG42X.js → chunk-EPT3ZP52.js} +79 -26
  12. package/js/chunk-FL2QR3XW.js +507 -0
  13. package/js/{chunk-3ANFZFCV.js → chunk-IJX4CYZO.js} +15 -18
  14. package/js/chunk-IPI4MFSN.js +78 -0
  15. package/js/chunk-JU7VHODU.js +104 -0
  16. package/js/chunk-KUMBKVJD.js +39 -0
  17. package/js/{chunk-YDR4CPJA.js → chunk-M3B3DE4K.js} +8 -8
  18. package/js/chunk-MKWZPDR6.js +63 -0
  19. package/js/{chunk-7JXHF5IF.js → chunk-N7YDVXYJ.js} +49 -1
  20. package/js/chunk-NKLWZJLE.js +172 -0
  21. package/js/{chunk-OWD2YICM.js → chunk-ODEIDRGW.js} +116 -88
  22. package/js/{chunk-D6BKYP2L.js → chunk-PJJ24GU7.js} +4 -4
  23. package/js/{chunk-EP6AEUZO.js → chunk-PZB6T6KU.js} +1 -1
  24. package/js/chunk-R3EV5FTO.js +97 -0
  25. package/js/chunk-RFVIONFX.js +189 -0
  26. package/js/{chunk-W7Q5EOTS.js → chunk-UK573G7W.js} +32 -32
  27. package/js/chunk-UVL56Z6E.js +6641 -0
  28. package/js/{chunk-Q2FD5IBM.js → chunk-V5KNQVCT.js} +505 -124
  29. package/js/{chunk-SBKHUC5L.js → chunk-VFZKSM3T.js} +5 -25
  30. package/js/{chunk-HP7E42X6.js → chunk-WLE7WX2U.js} +1158 -232
  31. package/js/{chunk-X3YBZCJW.js → chunk-YXQHV65J.js} +58 -62
  32. package/js/chunk-Z5M2LQOZ.js +209 -0
  33. package/js/{chunk-R6JMJSVT.js → chunk-ZQINWV4W.js} +60 -20
  34. package/js/client.js +11 -27
  35. package/js/contracts.js +138 -27
  36. package/js/effect.js +20 -15
  37. package/js/es-APDZKREY.js +40968 -0
  38. package/js/graphql.js +220 -123
  39. package/js/host.js +75 -19
  40. package/js/index.js +261 -117
  41. package/js/mcp/effect.js +24 -17
  42. package/js/mcp/stdio.js +26 -21
  43. package/js/mcp.js +127 -26
  44. package/js/openapi.js +3048 -150
  45. package/js/operations/approval.js +1 -1
  46. package/js/react.js +4 -4
  47. package/js/skills/effect.js +11 -0
  48. package/js/skills.js +893 -0
  49. package/js/storage/facet.js +7 -7
  50. package/js/ui/auth/contracts.js +9 -10
  51. package/js/ui/auth.js +17 -15
  52. package/js/ui/contracts.js +5 -5
  53. package/js/ui/serving.js +14 -13
  54. package/package.json +9 -1
  55. package/runtime.json +1 -1
  56. package/types/app-cache/src/contracts/cache.d.ts +119 -0
  57. package/types/app-cache/src/index.d.ts +93 -0
  58. package/types/app-data/src/contracts/database.d.ts +33 -6
  59. package/types/app-data/src/implementation/schema.d.ts +2 -17
  60. package/types/apps/src/contracts/api-response-error.d.ts +43 -0
  61. package/types/apps/src/contracts/app.d.ts +16 -4
  62. package/types/apps/src/contracts/cache.d.ts +44 -0
  63. package/types/apps/src/contracts/dynamic-skills.d.ts +10 -0
  64. package/types/apps/src/contracts/failure.d.ts +25 -0
  65. package/types/apps/src/contracts/graphql.d.ts +18 -1
  66. package/types/apps/src/contracts/host.d.ts +76 -528
  67. package/types/apps/src/contracts/mcp.d.ts +19 -1
  68. package/types/apps/src/contracts/openapi-compile.d.ts +11 -0
  69. package/types/apps/src/contracts/openapi-document.d.ts +53 -0
  70. package/types/apps/src/contracts/openapi.d.ts +160 -30
  71. package/types/apps/src/contracts/operations.d.ts +0 -5
  72. package/types/apps/src/contracts/protocol-version.d.ts +6 -0
  73. package/types/apps/src/contracts/protocols/1.d.ts +1589 -0
  74. package/types/apps/src/contracts/protocols/2.d.ts +668 -0
  75. package/types/apps/src/contracts/protocols/3.d.ts +676 -0
  76. package/types/apps/src/contracts/protocols/4.d.ts +1229 -0
  77. package/types/apps/src/contracts/protocols/5.d.ts +1090 -0
  78. package/types/apps/src/contracts/provider-error.d.ts +15 -0
  79. package/types/apps/src/contracts/provider.d.ts +69 -6
  80. package/types/apps/src/contracts/router.d.ts +59 -0
  81. package/types/apps/src/contracts/skills.d.ts +122 -0
  82. package/types/apps/src/contracts/storage.d.ts +3 -3
  83. package/types/apps/src/contracts/swagger-client.d.ts +29 -0
  84. package/types/apps/src/contracts/ui-auth.d.ts +6 -14
  85. package/types/apps/src/contracts/workflows.d.ts +34 -3
  86. package/types/apps/src/graphql.d.ts +5 -7
  87. package/types/apps/src/host.d.ts +1 -0
  88. package/types/apps/src/implementation/account-router.d.ts +12 -0
  89. package/types/apps/src/implementation/app.d.ts +5 -4
  90. package/types/apps/src/implementation/cache-session.d.ts +7 -0
  91. package/types/apps/src/implementation/cache.d.ts +8 -0
  92. package/types/apps/src/implementation/catalog-cache.d.ts +36 -0
  93. package/types/apps/src/implementation/dynamic-skills.d.ts +7 -0
  94. package/types/apps/src/implementation/elicitation.d.ts +13 -13
  95. package/types/apps/src/implementation/failure-detail.d.ts +25 -0
  96. package/types/apps/src/implementation/git.d.ts +25 -0
  97. package/types/apps/src/implementation/graphql-catalog.d.ts +7 -0
  98. package/types/apps/src/implementation/graphql.d.ts +81 -3
  99. package/types/apps/src/implementation/inflate.d.ts +16 -0
  100. package/types/apps/src/implementation/input-problems.d.ts +3 -0
  101. package/types/apps/src/implementation/mcp-call.d.ts +3 -2
  102. package/types/apps/src/implementation/mcp-catalog.d.ts +9 -0
  103. package/types/apps/src/implementation/mcp-client.d.ts +39 -22
  104. package/types/apps/src/implementation/mcp-stdio.d.ts +1 -1
  105. package/types/apps/src/implementation/mcp-tools.d.ts +6 -3
  106. package/types/apps/src/implementation/mcp.d.ts +55 -2
  107. package/types/apps/src/implementation/openapi-compile.d.ts +120 -0
  108. package/types/apps/src/implementation/openapi-document.d.ts +51 -0
  109. package/types/apps/src/implementation/openapi-names.d.ts +18 -0
  110. package/types/apps/src/implementation/openapi-request.d.ts +10 -4
  111. package/types/apps/src/implementation/openapi-source.d.ts +36 -0
  112. package/types/apps/src/implementation/openapi.d.ts +39 -3
  113. package/types/apps/src/implementation/operations.d.ts +26 -3
  114. package/types/apps/src/implementation/protocol-operations.d.ts +3 -4
  115. package/types/apps/src/implementation/provider-error.d.ts +10 -0
  116. package/types/apps/src/implementation/provider.d.ts +9 -4
  117. package/types/apps/src/implementation/router-catalog.d.ts +225 -0
  118. package/types/apps/src/implementation/router.d.ts +59 -0
  119. package/types/apps/src/implementation/schema.d.ts +11 -6
  120. package/types/apps/src/implementation/skill-files.d.ts +10 -0
  121. package/types/apps/src/implementation/skills.d.ts +43 -0
  122. package/types/apps/src/implementation/storage.d.ts +5 -3
  123. package/types/apps/src/implementation/swagger-client.d.ts +28 -0
  124. package/types/apps/src/implementation/ui-auth.d.ts +11 -5
  125. package/types/apps/src/implementation/ui-serving.d.ts +4 -2
  126. package/types/apps/src/implementation/webhooks.d.ts +1 -1
  127. package/types/apps/src/implementation/workflow-context.d.ts +11 -3
  128. package/types/apps/src/index.d.ts +11 -3
  129. package/types/apps/src/mcp-stdio.d.ts +2 -5
  130. package/types/apps/src/mcp.d.ts +8 -7
  131. package/types/apps/src/openapi.d.ts +8 -6
  132. package/types/apps/src/skills.d.ts +75 -0
  133. package/types/apps/src/ui-auth.d.ts +2 -2
  134. package/types/telemetry/src/browser-operations.d.ts +5 -2
  135. package/types/telemetry/src/config.d.ts +2 -0
  136. package/js/chunk-22WRQZT7.js +0 -389
  137. package/js/chunk-BKVL7XAJ.js +0 -47
  138. package/js/chunk-C24KEZXR.js +0 -59
  139. package/js/chunk-LOKGDT6B.js +0 -28
  140. package/js/chunk-MLKGABMK.js +0 -9
  141. package/types/apps/src/implementation/account-operations.d.ts +0 -32
@@ -0,0 +1,676 @@
1
+ /**
2
+ * Host protocol 3: protocol 2 plus the app's own failure detail. Operation, evaluation and
3
+ * declaration failures carry the error name and bounded, secret-free message the app raised, and
4
+ * workflow failures carry the failing step and app error. Queries and mutations that exceed a
5
+ * database budget, and declarations with a reserved database field, fail with their named error.
6
+ *
7
+ * This protocol is released and frozen once merged. `bun run check` compares `protocol3` with
8
+ * `packages/apps/protocols/3.json`. Do not edit this file or the schemas it reaches to change the
9
+ * wire format; define the next protocol instead. See notes/apps-publishing.md.
10
+ */
11
+ import { Schema } from "effect";
12
+ import { DatabaseFieldReserved, DatabaseLimitExceeded } from "../../../../app-data/src/contracts/database.js";
13
+ import { OpenapiResponseError } from "../api-response-error.js";
14
+ import { ElicitationFailed } from "../elicitation.js";
15
+ import { McpError } from "../mcp.js";
16
+ import { ProviderError } from "../provider-error.js";
17
+ import { SkillLoadFailed } from "../skills.js";
18
+ import { WorkflowFailure } from "../workflows.js";
19
+ import { HostAccountsInvalid, HostInputInvalid, HostOperationNotFound, HostOutputInvalid, HostRequestInvalid, HostToolApprovalRequired, HostToolBlocked, HostToolNotFound, HostToolPolicyFailed } from "./1.js";
20
+ export { DeclaredAuthMethod, DeclaredProvider, DeclaredRequirements, ResolvedAccount, ResolvedAccounts, TrustedToolApproval, InvocationDeadline, HostedTool, HostedToolSummary, HostRequest, HostRequestInvalid, HostAccountsInvalid, HostOperationNotFound, HostToolNotFound, InputProblem, maxInputProblems, HostInputInvalid, HostToolBlocked, HostToolApprovalRequired, HostToolPolicyFailed, HostOutputInvalid, HostInvocation, } from "./1.js";
21
+ export { SkillSources, SkillCatalogResponse } from "./2.js";
22
+ declare const HostDeclarationInvalid_base: Schema.Class<HostDeclarationInvalid, Schema.TaggedStruct<"HostDeclarationInvalid", {
23
+ source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
24
+ errorName: Schema.optionalKey<Schema.String>;
25
+ code: Schema.optionalKey<Schema.String>;
26
+ message: Schema.optionalKey<Schema.String>;
27
+ }>, import("effect/Cause").YieldableError>;
28
+ /**
29
+ * The module or declared capability shape could not be hosted. The detail names what the app
30
+ * declared wrongly; declarations bind no accounts.
31
+ */
32
+ export declare class HostDeclarationInvalid extends HostDeclarationInvalid_base {
33
+ }
34
+ declare const HostEvaluationFailed_base: Schema.Class<HostEvaluationFailed, Schema.TaggedStruct<"HostEvaluationFailed", {
35
+ source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
36
+ errorName: Schema.optionalKey<Schema.String>;
37
+ code: Schema.optionalKey<Schema.String>;
38
+ message: Schema.optionalKey<Schema.String>;
39
+ }>, import("effect/Cause").YieldableError>;
40
+ /** Fresh app evaluation failed before calling a tool. */
41
+ export declare class HostEvaluationFailed extends HostEvaluationFailed_base {
42
+ }
43
+ declare const HostOperationFailed_base: Schema.Class<HostOperationFailed, Schema.TaggedStruct<"HostOperationFailed", {
44
+ source: Schema.optionalKey<Schema.Literals<readonly ["app", "storage", "service"]>>;
45
+ errorName: Schema.optionalKey<Schema.String>;
46
+ code: Schema.optionalKey<Schema.String>;
47
+ message: Schema.optionalKey<Schema.String>;
48
+ }>, import("effect/Cause").YieldableError>;
49
+ /** An app operation failed. Carries the app's own error name and bounded, secret-free message. */
50
+ export declare class HostOperationFailed extends HostOperationFailed_base {
51
+ }
52
+ /**
53
+ * Safe error envelope. Author failures carry only their name and bounded message with account
54
+ * secrets replaced; no source, account fields, stack or cause value is serialized.
55
+ */
56
+ export declare const HostError: Schema.Union<readonly [typeof OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof DatabaseLimitExceeded, typeof DatabaseFieldReserved, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
57
+ /** Expected host failures. */
58
+ export type HostError = typeof HostError.Type;
59
+ /** Portable response envelope; callers parse the success value for their operation. */
60
+ export declare const HostResponse: Schema.Union<readonly [Schema.Struct<{
61
+ readonly ok: Schema.Literal<true>;
62
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
63
+ readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
64
+ }>, Schema.Struct<{
65
+ readonly ok: Schema.Literal<false>;
66
+ readonly error: Schema.Union<readonly [typeof OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof DatabaseLimitExceeded, typeof DatabaseFieldReserved, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
67
+ }>]>;
68
+ /** Parsed response envelope. */
69
+ export type HostResponse = typeof HostResponse.Type;
70
+ /** Every message of protocol 3, in the order its snapshot records them. */
71
+ export declare const protocol3: {
72
+ readonly version: 3;
73
+ readonly schemas: {
74
+ readonly invocation: Schema.Struct<{
75
+ readonly command: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
76
+ readonly operation: Schema.Literal<"workflows">;
77
+ }>, Schema.Struct<{
78
+ readonly operation: Schema.Literal<"workflow-validate">;
79
+ readonly name: Schema.NonEmptyString;
80
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
81
+ }>, Schema.Struct<{
82
+ readonly operation: Schema.Literal<"workflow-run">;
83
+ readonly name: Schema.NonEmptyString;
84
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
85
+ }>]>, Schema.Union<readonly [Schema.Struct<{
86
+ readonly operation: Schema.Literal<"webhooks">;
87
+ }>, Schema.Struct<{
88
+ readonly name: Schema.NonEmptyString;
89
+ readonly subscriptionId: Schema.NonEmptyString;
90
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
91
+ readonly callbackUrl: Schema.String;
92
+ readonly secret: Schema.String;
93
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
94
+ readonly operation: Schema.Literal<"webhook-validate">;
95
+ }>, Schema.Struct<{
96
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
97
+ readonly name: Schema.NonEmptyString;
98
+ readonly subscriptionId: Schema.NonEmptyString;
99
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
100
+ readonly callbackUrl: Schema.String;
101
+ readonly secret: Schema.String;
102
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
103
+ readonly operation: Schema.Literal<"webhook-complete">;
104
+ }>, Schema.Struct<{
105
+ readonly name: Schema.NonEmptyString;
106
+ readonly subscriptionId: Schema.NonEmptyString;
107
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
108
+ readonly callbackUrl: Schema.String;
109
+ readonly secret: Schema.String;
110
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
111
+ readonly operation: Schema.Literal<"webhook-register">;
112
+ }>, Schema.Struct<{
113
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
114
+ readonly name: Schema.NonEmptyString;
115
+ readonly subscriptionId: Schema.NonEmptyString;
116
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
117
+ readonly callbackUrl: Schema.String;
118
+ readonly secret: Schema.String;
119
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
120
+ readonly operation: Schema.Literal<"webhook-unregister">;
121
+ }>, Schema.Struct<{
122
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
123
+ readonly request: Schema.Struct<{
124
+ readonly url: Schema.String;
125
+ readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
126
+ readonly headers: Schema.$Record<Schema.String, Schema.String>;
127
+ readonly body: Schema.String;
128
+ }>;
129
+ readonly name: Schema.NonEmptyString;
130
+ readonly subscriptionId: Schema.NonEmptyString;
131
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
132
+ readonly callbackUrl: Schema.String;
133
+ readonly secret: Schema.String;
134
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
135
+ readonly operation: Schema.Literal<"webhook-handle">;
136
+ }>]>, Schema.Struct<{
137
+ readonly operation: Schema.Literal<"requirements">;
138
+ }>, Schema.Struct<{
139
+ readonly operation: Schema.Literal<"inspect">;
140
+ readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
141
+ readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
142
+ readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
143
+ }>, Schema.Struct<{
144
+ readonly operation: Schema.Literal<"skills">;
145
+ readonly sources: Schema.optionalKey<Schema.Literal<true>>;
146
+ }>, Schema.Struct<{
147
+ readonly operation: Schema.Literal<"query">;
148
+ readonly name: Schema.NonEmptyString;
149
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
150
+ }>, Schema.Struct<{
151
+ readonly operation: Schema.Literal<"mutate">;
152
+ readonly name: Schema.NonEmptyString;
153
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
154
+ }>, Schema.Struct<{
155
+ readonly operation: Schema.Literal<"call">;
156
+ readonly tool: Schema.NonEmptyString;
157
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
158
+ }>]>;
159
+ readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
160
+ readonly id: Schema.brand<Schema.String, "acc">;
161
+ readonly provider: Schema.Struct<{
162
+ readonly name: Schema.NonEmptyString;
163
+ readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
164
+ readonly type: Schema.Literal<"secrets">;
165
+ readonly label: Schema.String;
166
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
167
+ }>, Schema.Struct<{
168
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
169
+ readonly discover: Schema.String;
170
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
171
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
172
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
173
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
174
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
175
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
176
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
177
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
178
+ readonly type: Schema.Literal<"oauth2">;
179
+ }>, Schema.Struct<{
180
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
181
+ readonly authorizationUrl: Schema.String;
182
+ readonly tokenUrl: Schema.String;
183
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
184
+ readonly scopes: Schema.$Array<Schema.String>;
185
+ readonly issuer: Schema.optionalKey<Schema.String>;
186
+ readonly discover: Schema.optionalKey<Schema.Never>;
187
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
188
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
189
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
190
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
191
+ readonly type: Schema.Literal<"oauth2">;
192
+ }>, Schema.Struct<{
193
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
194
+ readonly grant: Schema.Literal<"client_credentials">;
195
+ readonly discover: Schema.String;
196
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
197
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
198
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
199
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
200
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
201
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
202
+ readonly type: Schema.Literal<"oauth2">;
203
+ }>, Schema.Struct<{
204
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
205
+ readonly grant: Schema.Literal<"client_credentials">;
206
+ readonly tokenUrl: Schema.String;
207
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
208
+ readonly scopes: Schema.$Array<Schema.String>;
209
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
210
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
211
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
212
+ readonly discover: Schema.optionalKey<Schema.Never>;
213
+ readonly type: Schema.Literal<"oauth2">;
214
+ }>]>>;
215
+ }>;
216
+ readonly method: Schema.NonEmptyString;
217
+ readonly generation: Schema.optionalKey<Schema.Int>;
218
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
219
+ }>, Schema.$Array<Schema.Struct<{
220
+ readonly id: Schema.brand<Schema.String, "acc">;
221
+ readonly provider: Schema.Struct<{
222
+ readonly name: Schema.NonEmptyString;
223
+ readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
224
+ readonly type: Schema.Literal<"secrets">;
225
+ readonly label: Schema.String;
226
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
227
+ }>, Schema.Struct<{
228
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
229
+ readonly discover: Schema.String;
230
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
231
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
232
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
233
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
234
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
235
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
236
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
237
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
238
+ readonly type: Schema.Literal<"oauth2">;
239
+ }>, Schema.Struct<{
240
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
241
+ readonly authorizationUrl: Schema.String;
242
+ readonly tokenUrl: Schema.String;
243
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
244
+ readonly scopes: Schema.$Array<Schema.String>;
245
+ readonly issuer: Schema.optionalKey<Schema.String>;
246
+ readonly discover: Schema.optionalKey<Schema.Never>;
247
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
248
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
249
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
250
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
251
+ readonly type: Schema.Literal<"oauth2">;
252
+ }>, Schema.Struct<{
253
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
254
+ readonly grant: Schema.Literal<"client_credentials">;
255
+ readonly discover: Schema.String;
256
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
257
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
258
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
259
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
260
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
261
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
262
+ readonly type: Schema.Literal<"oauth2">;
263
+ }>, Schema.Struct<{
264
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
265
+ readonly grant: Schema.Literal<"client_credentials">;
266
+ readonly tokenUrl: Schema.String;
267
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
268
+ readonly scopes: Schema.$Array<Schema.String>;
269
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
270
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
271
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
272
+ readonly discover: Schema.optionalKey<Schema.Never>;
273
+ readonly type: Schema.Literal<"oauth2">;
274
+ }>]>>;
275
+ }>;
276
+ readonly method: Schema.NonEmptyString;
277
+ readonly generation: Schema.optionalKey<Schema.Int>;
278
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
279
+ }>>]>>;
280
+ readonly approval: Schema.optionalKey<Schema.Struct<{
281
+ readonly tool: Schema.NonEmptyString;
282
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
283
+ }>>;
284
+ readonly replay: Schema.optionalKey<Schema.Struct<{
285
+ readonly key: Schema.NonEmptyString;
286
+ readonly fingerprint: Schema.NonEmptyString;
287
+ }>>;
288
+ readonly deadline: Schema.optionalKey<Schema.Finite>;
289
+ readonly workflowRun: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
290
+ }>;
291
+ readonly request: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
292
+ readonly operation: Schema.Literal<"workflows">;
293
+ }>, Schema.Struct<{
294
+ readonly operation: Schema.Literal<"workflow-validate">;
295
+ readonly name: Schema.NonEmptyString;
296
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
297
+ }>, Schema.Struct<{
298
+ readonly operation: Schema.Literal<"workflow-run">;
299
+ readonly name: Schema.NonEmptyString;
300
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
301
+ }>]>, Schema.Union<readonly [Schema.Struct<{
302
+ readonly operation: Schema.Literal<"webhooks">;
303
+ }>, Schema.Struct<{
304
+ readonly name: Schema.NonEmptyString;
305
+ readonly subscriptionId: Schema.NonEmptyString;
306
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
307
+ readonly callbackUrl: Schema.String;
308
+ readonly secret: Schema.String;
309
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
310
+ readonly operation: Schema.Literal<"webhook-validate">;
311
+ }>, Schema.Struct<{
312
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
313
+ readonly name: Schema.NonEmptyString;
314
+ readonly subscriptionId: Schema.NonEmptyString;
315
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
316
+ readonly callbackUrl: Schema.String;
317
+ readonly secret: Schema.String;
318
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
319
+ readonly operation: Schema.Literal<"webhook-complete">;
320
+ }>, Schema.Struct<{
321
+ readonly name: Schema.NonEmptyString;
322
+ readonly subscriptionId: Schema.NonEmptyString;
323
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
324
+ readonly callbackUrl: Schema.String;
325
+ readonly secret: Schema.String;
326
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
327
+ readonly operation: Schema.Literal<"webhook-register">;
328
+ }>, Schema.Struct<{
329
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
330
+ readonly name: Schema.NonEmptyString;
331
+ readonly subscriptionId: Schema.NonEmptyString;
332
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
333
+ readonly callbackUrl: Schema.String;
334
+ readonly secret: Schema.String;
335
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
336
+ readonly operation: Schema.Literal<"webhook-unregister">;
337
+ }>, Schema.Struct<{
338
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
339
+ readonly request: Schema.Struct<{
340
+ readonly url: Schema.String;
341
+ readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
342
+ readonly headers: Schema.$Record<Schema.String, Schema.String>;
343
+ readonly body: Schema.String;
344
+ }>;
345
+ readonly name: Schema.NonEmptyString;
346
+ readonly subscriptionId: Schema.NonEmptyString;
347
+ readonly sourceAccount: Schema.brand<Schema.String, "acc">;
348
+ readonly callbackUrl: Schema.String;
349
+ readonly secret: Schema.String;
350
+ readonly config: Schema.Codec<Schema.Json, Schema.Json, never, never>;
351
+ readonly operation: Schema.Literal<"webhook-handle">;
352
+ }>]>, Schema.Struct<{
353
+ readonly operation: Schema.Literal<"requirements">;
354
+ }>, Schema.Struct<{
355
+ readonly operation: Schema.Literal<"inspect">;
356
+ readonly detail: Schema.optionalKey<Schema.Literal<"summary">>;
357
+ readonly tools: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
358
+ readonly scheduled: Schema.optionalKey<Schema.Literal<true>>;
359
+ }>, Schema.Struct<{
360
+ readonly operation: Schema.Literal<"skills">;
361
+ readonly sources: Schema.optionalKey<Schema.Literal<true>>;
362
+ }>, Schema.Struct<{
363
+ readonly operation: Schema.Literal<"query">;
364
+ readonly name: Schema.NonEmptyString;
365
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
366
+ }>, Schema.Struct<{
367
+ readonly operation: Schema.Literal<"mutate">;
368
+ readonly name: Schema.NonEmptyString;
369
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
370
+ }>, Schema.Struct<{
371
+ readonly operation: Schema.Literal<"call">;
372
+ readonly tool: Schema.NonEmptyString;
373
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
374
+ }>]>;
375
+ readonly response: Schema.Union<readonly [Schema.Struct<{
376
+ readonly ok: Schema.Literal<true>;
377
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
378
+ readonly toolError: Schema.optionalKey<Schema.Literal<true>>;
379
+ }>, Schema.Struct<{
380
+ readonly ok: Schema.Literal<false>;
381
+ readonly error: Schema.Union<readonly [typeof OpenapiResponseError, typeof ProviderError, typeof McpError, typeof SkillLoadFailed, typeof WorkflowFailure, typeof HostRequestInvalid, typeof HostAccountsInvalid, typeof HostDeclarationInvalid, typeof HostEvaluationFailed, typeof HostOperationNotFound, typeof HostOperationFailed, typeof DatabaseLimitExceeded, typeof DatabaseFieldReserved, typeof HostToolNotFound, typeof HostInputInvalid, typeof HostOutputInvalid, typeof HostToolBlocked, typeof HostToolApprovalRequired, typeof HostToolPolicyFailed, typeof ElicitationFailed]>;
382
+ }>]>;
383
+ readonly requirements: Schema.Struct<{
384
+ readonly capabilities: Schema.optionalKey<Schema.Struct<{
385
+ readonly skills: Schema.Literal<true>;
386
+ readonly toolIndex: Schema.optionalKey<Schema.Literal<true>>;
387
+ readonly skillSources: Schema.optionalKey<Schema.Literal<true>>;
388
+ readonly scheduledTools: Schema.optionalKey<Schema.Literal<true>>;
389
+ }>>;
390
+ readonly database: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
391
+ readonly fields: Schema.$Record<Schema.String, Schema.Struct<{
392
+ readonly kind: Schema.Literals<readonly ["string", "number", "boolean", "id", "userId"]>;
393
+ readonly optional: Schema.optional<Schema.Boolean>;
394
+ readonly default: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean]>>;
395
+ readonly references: Schema.optional<Schema.String>;
396
+ }>>;
397
+ readonly indexes: Schema.$Array<Schema.Struct<{
398
+ readonly name: Schema.String;
399
+ readonly fields: Schema.NonEmptyArray<Schema.String>;
400
+ }>>;
401
+ }>>>;
402
+ readonly accounts: Schema.$Record<Schema.NonEmptyString, Schema.Struct<{
403
+ readonly definition: Schema.Struct<{
404
+ readonly name: Schema.NonEmptyString;
405
+ readonly auth: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
406
+ readonly type: Schema.Literal<"secrets">;
407
+ readonly label: Schema.String;
408
+ readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
409
+ }>, Schema.Struct<{
410
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
411
+ readonly discover: Schema.String;
412
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
413
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
414
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
415
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
416
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
417
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
418
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
419
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
420
+ readonly type: Schema.Literal<"oauth2">;
421
+ }>, Schema.Struct<{
422
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
423
+ readonly authorizationUrl: Schema.String;
424
+ readonly tokenUrl: Schema.String;
425
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
426
+ readonly scopes: Schema.$Array<Schema.String>;
427
+ readonly issuer: Schema.optionalKey<Schema.String>;
428
+ readonly discover: Schema.optionalKey<Schema.Never>;
429
+ readonly grant: Schema.optionalKey<Schema.Literal<"authorization_code">>;
430
+ readonly authorizationParams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
431
+ readonly tokenEndpointAuthMethod: Schema.optionalKey<Schema.Literals<readonly ["none", "client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>>;
432
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
433
+ readonly type: Schema.Literal<"oauth2">;
434
+ }>, Schema.Struct<{
435
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
436
+ readonly grant: Schema.Literal<"client_credentials">;
437
+ readonly discover: Schema.String;
438
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
439
+ readonly tokenUrl: Schema.optionalKey<Schema.Never>;
440
+ readonly revocationUrl: Schema.optionalKey<Schema.Never>;
441
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
442
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
443
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
444
+ readonly type: Schema.Literal<"oauth2">;
445
+ }>, Schema.Struct<{
446
+ readonly response: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
447
+ readonly grant: Schema.Literal<"client_credentials">;
448
+ readonly tokenUrl: Schema.String;
449
+ readonly revocationUrl: Schema.optionalKey<Schema.String>;
450
+ readonly scopes: Schema.$Array<Schema.String>;
451
+ readonly tokenEndpointAuthMethod: Schema.Literals<readonly ["client_secret_post", "client_secret_basic", "client_secret_basic_raw"]>;
452
+ readonly resource: Schema.optionalKey<Schema.NullOr<Schema.String>>;
453
+ readonly authorizationUrl: Schema.optionalKey<Schema.Never>;
454
+ readonly discover: Schema.optionalKey<Schema.Never>;
455
+ readonly type: Schema.Literal<"oauth2">;
456
+ }>]>>;
457
+ }>;
458
+ readonly cardinality: Schema.Literals<readonly ["one", "many"]>;
459
+ }>>;
460
+ }>;
461
+ readonly tools: Schema.$Array<Schema.Struct<{
462
+ readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
463
+ readonly name: Schema.NonEmptyString;
464
+ readonly timing: Schema.Union<readonly [Schema.Struct<{
465
+ readonly kind: Schema.Literal<"interval">;
466
+ readonly milliseconds: Schema.Int;
467
+ }>, Schema.Struct<{
468
+ readonly kind: Schema.Literal<"cron">;
469
+ readonly calendar: Schema.Struct<{
470
+ readonly expression: Schema.NonEmptyString;
471
+ readonly timezone: Schema.NonEmptyString;
472
+ }>;
473
+ }>]>;
474
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
475
+ }>>>;
476
+ readonly name: Schema.NonEmptyString;
477
+ readonly description: Schema.String;
478
+ readonly inputSchema: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
479
+ readonly readOnly: Schema.optionalKey<Schema.Boolean>;
480
+ readonly title: Schema.optionalKey<Schema.String>;
481
+ readonly outputSchema: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
482
+ readonly annotations: Schema.optionalKey<Schema.Struct<{
483
+ readonly title: Schema.optionalKey<Schema.String>;
484
+ readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
485
+ readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
486
+ readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
487
+ readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
488
+ }>>;
489
+ readonly _meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
490
+ }>>;
491
+ readonly toolSummaries: Schema.$Array<Schema.Struct<{
492
+ readonly schedules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
493
+ readonly name: Schema.NonEmptyString;
494
+ readonly timing: Schema.Union<readonly [Schema.Struct<{
495
+ readonly kind: Schema.Literal<"interval">;
496
+ readonly milliseconds: Schema.Int;
497
+ }>, Schema.Struct<{
498
+ readonly kind: Schema.Literal<"cron">;
499
+ readonly calendar: Schema.Struct<{
500
+ readonly expression: Schema.NonEmptyString;
501
+ readonly timezone: Schema.NonEmptyString;
502
+ }>;
503
+ }>]>;
504
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
505
+ }>>>;
506
+ readonly name: Schema.NonEmptyString;
507
+ readonly description: Schema.String;
508
+ readonly readOnly: Schema.optionalKey<Schema.Boolean>;
509
+ readonly title: Schema.optionalKey<Schema.String>;
510
+ readonly annotations: Schema.optionalKey<Schema.Struct<{
511
+ readonly title: Schema.optionalKey<Schema.String>;
512
+ readonly readOnlyHint: Schema.optionalKey<Schema.Boolean>;
513
+ readonly destructiveHint: Schema.optionalKey<Schema.Boolean>;
514
+ readonly idempotentHint: Schema.optionalKey<Schema.Boolean>;
515
+ readonly openWorldHint: Schema.optionalKey<Schema.Boolean>;
516
+ }>>;
517
+ }>>;
518
+ readonly skills: Schema.Union<readonly [Schema.Struct<{
519
+ readonly skills: Schema.$Array<Schema.Struct<{
520
+ readonly files: Schema.$Array<Schema.Struct<{
521
+ readonly path: Schema.NonEmptyString;
522
+ readonly content: Schema.String;
523
+ }>>;
524
+ readonly name: Schema.NonEmptyString;
525
+ readonly description: Schema.String;
526
+ readonly license: Schema.optionalKey<Schema.String>;
527
+ readonly compatibility: Schema.optionalKey<Schema.String>;
528
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
529
+ readonly "allowed-tools": Schema.optionalKey<Schema.String>;
530
+ }>>;
531
+ readonly dynamic: Schema.Boolean;
532
+ readonly cached: Schema.optionalKey<Schema.Boolean>;
533
+ }>, Schema.$Array<Schema.Struct<{
534
+ readonly files: Schema.$Array<Schema.Struct<{
535
+ readonly path: Schema.NonEmptyString;
536
+ readonly content: Schema.String;
537
+ }>>;
538
+ readonly name: Schema.NonEmptyString;
539
+ readonly description: Schema.String;
540
+ readonly license: Schema.optionalKey<Schema.String>;
541
+ readonly compatibility: Schema.optionalKey<Schema.String>;
542
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
543
+ readonly "allowed-tools": Schema.optionalKey<Schema.String>;
544
+ }>>]>;
545
+ readonly elicitationRequest: Schema.Struct<{
546
+ readonly mode: Schema.Literal<"form">;
547
+ readonly requestedSchema: Schema.toEncoded<Schema.Struct<{
548
+ readonly $schema: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
549
+ readonly type: Schema.tag<"object">;
550
+ readonly properties: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Union<readonly [typeof import("effect/unstable/ai/McpSchema").LegacyTitledEnum, Schema.Union<readonly [typeof import("effect/unstable/ai/McpSchema").UntitledSingleSelectEnum, typeof import("effect/unstable/ai/McpSchema").TitledSingleSelectEnum]>, Schema.Union<readonly [typeof import("effect/unstable/ai/McpSchema").UntitledMultiSelectEnum, typeof import("effect/unstable/ai/McpSchema").TitledMultiSelectEnum]>]>, typeof import("effect/unstable/ai/McpSchema").ElicitationString, typeof import("effect/unstable/ai/McpSchema").ElicitationNumber, typeof import("effect/unstable/ai/McpSchema").ElicitationBoolean]>>;
551
+ readonly required: Schema.decodeTo<Schema.optional<Schema.$Array<Schema.String>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
552
+ }>>;
553
+ readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
554
+ readonly message: Schema.String;
555
+ }>;
556
+ readonly elicitationReply: Schema.Union<readonly [Schema.Struct<{
557
+ readonly ok: Schema.Literal<true>;
558
+ readonly response: Schema.Union<readonly [Schema.Struct<{
559
+ readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
560
+ readonly action: Schema.Literal<"accept">;
561
+ readonly content: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
562
+ }>, Schema.Struct<{
563
+ readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
564
+ readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
565
+ }>]>;
566
+ }>, Schema.Struct<{
567
+ readonly ok: Schema.Literal<false>;
568
+ readonly error: typeof ElicitationFailed;
569
+ }>]>;
570
+ readonly workflowStep: Schema.Union<readonly [Schema.Struct<{
571
+ readonly operation: Schema.Literal<"do">;
572
+ readonly name: Schema.NonEmptyString;
573
+ readonly options: Schema.Struct<{
574
+ readonly retries: Schema.optionalKey<Schema.Struct<{
575
+ readonly limit: Schema.Int;
576
+ readonly delay: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
577
+ readonly backoff: Schema.optionalKey<Schema.Literals<readonly ["constant", "linear", "exponential"]>>;
578
+ }>>;
579
+ readonly timeout: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>>;
580
+ }>;
581
+ }>, Schema.Struct<{
582
+ readonly operation: Schema.Literal<"sleep">;
583
+ readonly name: Schema.NonEmptyString;
584
+ readonly duration: Schema.Union<readonly [Schema.Finite, Schema.NonEmptyString]>;
585
+ }>, Schema.Struct<{
586
+ readonly operation: Schema.Literal<"until">;
587
+ readonly name: Schema.NonEmptyString;
588
+ readonly timestamp: Schema.Finite;
589
+ }>, Schema.Struct<{
590
+ readonly operation: Schema.Literal<"context">;
591
+ }>, Schema.Struct<{
592
+ readonly operation: Schema.Literal<"invoke">;
593
+ readonly kind: Schema.Literals<readonly ["query", "mutation"]>;
594
+ readonly name: Schema.NonEmptyString;
595
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
596
+ readonly stepId: Schema.NonEmptyString;
597
+ readonly timeout: Schema.Finite;
598
+ }>]>;
599
+ readonly workflowStepReply: Schema.Union<readonly [Schema.Struct<{
600
+ readonly ok: Schema.Literal<true>;
601
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
602
+ }>, Schema.Struct<{
603
+ readonly ok: Schema.Literal<false>;
604
+ readonly error: typeof WorkflowFailure;
605
+ }>]>;
606
+ readonly workflowControl: Schema.Union<readonly [Schema.Struct<{
607
+ readonly operation: Schema.Literal<"start">;
608
+ readonly workflow: Schema.NonEmptyString;
609
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
610
+ readonly key: Schema.optionalKey<Schema.NonEmptyString>;
611
+ }>, Schema.Struct<{
612
+ readonly operation: Schema.Literal<"get">;
613
+ readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
614
+ }>, Schema.Struct<{
615
+ readonly operation: Schema.Literal<"list">;
616
+ readonly workflow: Schema.optionalKey<Schema.NonEmptyString>;
617
+ readonly cursor: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "wfr">>;
618
+ readonly limit: Schema.optionalKey<Schema.Int>;
619
+ }>, Schema.Struct<{
620
+ readonly operation: Schema.Literal<"terminate">;
621
+ readonly run: Schema.brand<Schema.NonEmptyString, "wfr">;
622
+ }>]>;
623
+ readonly cacheCommand: Schema.Union<readonly [Schema.Struct<{
624
+ readonly operation: Schema.Literal<"read">;
625
+ readonly keys: Schema.$Array<Schema.String>;
626
+ }>, Schema.Struct<{
627
+ readonly operation: Schema.Literal<"acquire">;
628
+ readonly key: Schema.String;
629
+ readonly refresh: Schema.Boolean;
630
+ readonly version: Schema.optionalKey<Schema.NullOr<Schema.String>>;
631
+ }>, Schema.Struct<{
632
+ readonly operation: Schema.Literal<"claim">;
633
+ readonly key: Schema.String;
634
+ readonly version: Schema.NullOr<Schema.String>;
635
+ }>, Schema.Struct<{
636
+ readonly operation: Schema.Literal<"publish">;
637
+ readonly key: Schema.String;
638
+ readonly lease: Schema.String;
639
+ readonly entry: Schema.Struct<{
640
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
641
+ readonly version: Schema.String;
642
+ readonly freshUntil: Schema.Finite;
643
+ readonly staleUntil: Schema.Finite;
644
+ }>;
645
+ }>, Schema.Struct<{
646
+ readonly operation: Schema.Literal<"release">;
647
+ readonly key: Schema.String;
648
+ readonly lease: Schema.String;
649
+ }>, Schema.Struct<{
650
+ readonly operation: Schema.Literal<"renew">;
651
+ readonly key: Schema.String;
652
+ readonly lease: Schema.String;
653
+ }>, Schema.Struct<{
654
+ readonly operation: Schema.Literal<"write">;
655
+ readonly entries: Schema.$Array<Schema.Struct<{
656
+ readonly key: Schema.String;
657
+ readonly entry: Schema.Struct<{
658
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
659
+ readonly version: Schema.String;
660
+ readonly freshUntil: Schema.Finite;
661
+ readonly staleUntil: Schema.Finite;
662
+ }>;
663
+ }>>;
664
+ }>, Schema.Struct<{
665
+ readonly operation: Schema.Literal<"invalidate">;
666
+ readonly key: Schema.String;
667
+ }>]>;
668
+ readonly cacheReply: Schema.Union<readonly [Schema.Struct<{
669
+ readonly ok: Schema.Literal<true>;
670
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
671
+ }>, Schema.Struct<{
672
+ readonly ok: Schema.Literal<false>;
673
+ readonly error: typeof import("../../../../app-cache/src/index.js").CacheError;
674
+ }>]>;
675
+ };
676
+ };