@frontmcp/sdk 0.9.0 → 0.11.0

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 (248) hide show
  1. package/adapter/adapter.instance.d.ts +10 -3
  2. package/adapter/adapter.instance.d.ts.map +1 -1
  3. package/adapter/{adapter.regsitry.d.ts → adapter.registry.d.ts} +2 -1
  4. package/adapter/adapter.registry.d.ts.map +1 -0
  5. package/adapter/adapter.utils.d.ts.map +1 -1
  6. package/agent/agent.instance.d.ts.map +1 -1
  7. package/agent/agent.scope.d.ts +9 -9
  8. package/agent/agent.scope.d.ts.map +1 -1
  9. package/agent/agent.utils.d.ts.map +1 -1
  10. package/app/app.registry.d.ts.map +1 -1
  11. package/app/app.utils.d.ts.map +1 -1
  12. package/app/instances/app.local.instance.d.ts +1 -1
  13. package/auth/auth.registry.d.ts +1 -1
  14. package/auth/auth.registry.d.ts.map +1 -1
  15. package/auth/auth.utils.d.ts.map +1 -1
  16. package/auth/authorization/index.d.ts +0 -6
  17. package/auth/authorization/index.d.ts.map +1 -1
  18. package/auth/authorization/orchestrated.context-extension.d.ts +1 -1
  19. package/auth/authorization/orchestrated.context-extension.d.ts.map +1 -1
  20. package/auth/flows/auth.verify.flow.d.ts +1 -1
  21. package/auth/flows/auth.verify.flow.d.ts.map +1 -1
  22. package/auth/flows/oauth.authorize.flow.d.ts.map +1 -1
  23. package/auth/flows/oauth.callback.flow.d.ts.map +1 -1
  24. package/auth/flows/oauth.provider-callback.flow.d.ts.map +1 -1
  25. package/auth/flows/session.verify.flow.d.ts +2 -2
  26. package/auth/flows/session.verify.flow.d.ts.map +1 -1
  27. package/auth/flows/well-known.jwks.flow.d.ts.map +1 -1
  28. package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -1
  29. package/auth/flows/well-known.prm.flow.d.ts.map +1 -1
  30. package/auth/instances/instance.local-primary-auth.d.ts +2 -2
  31. package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
  32. package/auth/session/index.d.ts +7 -11
  33. package/auth/session/index.d.ts.map +1 -1
  34. package/auth/session/record/session.base.d.ts +1 -1
  35. package/auth/session/record/session.base.d.ts.map +1 -1
  36. package/auth/session/session-store.factory.d.ts +19 -3
  37. package/auth/session/session-store.factory.d.ts.map +1 -1
  38. package/auth/session/session.service.d.ts +1 -1
  39. package/auth/session/session.service.d.ts.map +1 -1
  40. package/auth/session/transport-session.manager.d.ts +1 -1
  41. package/auth/session/transport-session.manager.d.ts.map +1 -1
  42. package/auth/session/utils/session-id.utils.d.ts +1 -2
  43. package/auth/session/utils/session-id.utils.d.ts.map +1 -1
  44. package/auth/vault/auth-providers.context-extension.d.ts +2 -2
  45. package/auth/vault/auth-providers.context-extension.d.ts.map +1 -1
  46. package/auth/vault/auth-providers.providers.d.ts +1 -1
  47. package/auth/vault/auth-providers.providers.d.ts.map +1 -1
  48. package/auth/vault/index.d.ts +0 -52
  49. package/auth/vault/index.d.ts.map +1 -1
  50. package/builtin/config/config-resolver.d.ts.map +1 -1
  51. package/common/decorators/app.decorator.d.ts +1 -1
  52. package/common/decorators/app.decorator.d.ts.map +1 -1
  53. package/common/decorators/front-mcp.decorator.d.ts.map +1 -1
  54. package/common/decorators/plugin.decorator.d.ts.map +1 -1
  55. package/common/dynamic/dynamic.adapter.d.ts.map +1 -1
  56. package/common/dynamic/dynamic.plugin.d.ts.map +1 -1
  57. package/common/interfaces/agent.interface.d.ts.map +1 -1
  58. package/common/interfaces/internal/flow.utils.d.ts.map +1 -1
  59. package/common/interfaces/server.interface.d.ts +4 -2
  60. package/common/interfaces/server.interface.d.ts.map +1 -1
  61. package/common/metadata/app.metadata.d.ts +16 -16
  62. package/common/metadata/front-mcp.metadata.d.ts +184 -52
  63. package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
  64. package/common/providers/base-config.provider.d.ts.map +1 -1
  65. package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
  66. package/common/types/auth/jwt.types.d.ts +2 -86
  67. package/common/types/auth/jwt.types.d.ts.map +1 -1
  68. package/common/types/auth/session.types.d.ts +5 -101
  69. package/common/types/auth/session.types.d.ts.map +1 -1
  70. package/common/types/options/auth/app-auth.schema.d.ts +8 -8
  71. package/common/types/options/auth/index.d.ts +14 -14
  72. package/common/types/options/auth/index.d.ts.map +1 -1
  73. package/common/types/options/auth/interfaces.d.ts +1 -1
  74. package/common/types/options/auth/interfaces.d.ts.map +1 -1
  75. package/common/types/options/auth/orchestrated.schema.d.ts +10 -10
  76. package/common/types/options/auth/public.schema.d.ts +2 -2
  77. package/common/types/options/auth/schema.d.ts +8 -8
  78. package/common/types/options/auth/shared.schemas.d.ts +2 -132
  79. package/common/types/options/auth/shared.schemas.d.ts.map +1 -1
  80. package/common/types/options/auth/transparent.schema.d.ts +1 -1
  81. package/common/types/options/http/index.d.ts +1 -1
  82. package/common/types/options/http/index.d.ts.map +1 -1
  83. package/common/types/options/http/interfaces.d.ts +36 -0
  84. package/common/types/options/http/interfaces.d.ts.map +1 -1
  85. package/common/types/options/http/schema.d.ts +6 -0
  86. package/common/types/options/http/schema.d.ts.map +1 -1
  87. package/common/types/options/index.d.ts +1 -0
  88. package/common/types/options/index.d.ts.map +1 -1
  89. package/common/types/options/session/schema.d.ts +3 -3
  90. package/common/types/options/sqlite/index.d.ts +3 -0
  91. package/common/types/options/sqlite/index.d.ts.map +1 -0
  92. package/common/types/options/sqlite/schema.d.ts +26 -0
  93. package/common/types/options/sqlite/schema.d.ts.map +1 -0
  94. package/common/types/options/transport/schema.d.ts +1 -1
  95. package/elicitation/store/elicitation-encryption.d.ts +1 -1
  96. package/elicitation/store/elicitation-encryption.d.ts.map +1 -1
  97. package/elicitation/store/elicitation-store.factory.d.ts +21 -1
  98. package/elicitation/store/elicitation-store.factory.d.ts.map +1 -1
  99. package/errors/auth-internal.errors.d.ts +2 -0
  100. package/errors/auth-internal.errors.d.ts.map +1 -0
  101. package/errors/decorator.errors.d.ts +14 -0
  102. package/errors/decorator.errors.d.ts.map +1 -0
  103. package/errors/index.d.ts +8 -1
  104. package/errors/index.d.ts.map +1 -1
  105. package/errors/normalization.errors.d.ts +32 -0
  106. package/errors/normalization.errors.d.ts.map +1 -0
  107. package/errors/provider.errors.d.ts +63 -0
  108. package/errors/provider.errors.d.ts.map +1 -0
  109. package/errors/registry.errors.d.ts +50 -0
  110. package/errors/registry.errors.d.ts.map +1 -0
  111. package/errors/remote.errors.d.ts +8 -0
  112. package/errors/remote.errors.d.ts.map +1 -1
  113. package/errors/sdk.errors.d.ts +139 -0
  114. package/errors/sdk.errors.d.ts.map +1 -0
  115. package/errors/transport.errors.d.ts +46 -0
  116. package/errors/transport.errors.d.ts.map +1 -0
  117. package/esm/index.mjs +7422 -8497
  118. package/esm/package.json +11 -7
  119. package/flows/flow.instance.d.ts.map +1 -1
  120. package/flows/flow.registry.d.ts.map +1 -1
  121. package/flows/flow.utils.d.ts.map +1 -1
  122. package/front-mcp/front-mcp.d.ts +30 -1
  123. package/front-mcp/front-mcp.d.ts.map +1 -1
  124. package/front-mcp/front-mcp.providers.d.ts +76 -20
  125. package/front-mcp/front-mcp.providers.d.ts.map +1 -1
  126. package/front-mcp/serverless-handler.d.ts +0 -4
  127. package/front-mcp/serverless-handler.d.ts.map +1 -1
  128. package/hooks/hook.instance.d.ts.map +1 -1
  129. package/hooks/hook.registry.d.ts.map +1 -1
  130. package/index.d.ts +1 -1
  131. package/index.js +19714 -20739
  132. package/logger/logger.registry.d.ts.map +1 -1
  133. package/logger/logger.utils.d.ts.map +1 -1
  134. package/package.json +11 -7
  135. package/plugin/plugin.utils.d.ts.map +1 -1
  136. package/prompt/prompt.instance.d.ts.map +1 -1
  137. package/prompt/prompt.registry.d.ts.map +1 -1
  138. package/prompt/prompt.utils.d.ts.map +1 -1
  139. package/provider/provider.registry.d.ts.map +1 -1
  140. package/provider/provider.utils.d.ts.map +1 -1
  141. package/regsitry/registry.base.d.ts.map +1 -1
  142. package/remote-mcp/mcp-client.service.d.ts.map +1 -1
  143. package/remote-mcp/resilience/retry.d.ts.map +1 -1
  144. package/resource/resource.instance.d.ts.map +1 -1
  145. package/resource/resource.registry.d.ts.map +1 -1
  146. package/resource/resource.utils.d.ts.map +1 -1
  147. package/scope/flows/http.request.flow.d.ts +1 -1
  148. package/scope/flows/http.request.flow.d.ts.map +1 -1
  149. package/scope/scope.instance.d.ts.map +1 -1
  150. package/scope/scope.registry.d.ts.map +1 -1
  151. package/scope/scope.utils.d.ts.map +1 -1
  152. package/server/adapters/base.host.adapter.d.ts +4 -2
  153. package/server/adapters/base.host.adapter.d.ts.map +1 -1
  154. package/server/adapters/express.host.adapter.d.ts +6 -32
  155. package/server/adapters/express.host.adapter.d.ts.map +1 -1
  156. package/server/server.instance.d.ts +1 -1
  157. package/server/server.instance.d.ts.map +1 -1
  158. package/skill/flows/search-skills.flow.d.ts +2 -2
  159. package/skill/session/skill-session.manager.d.ts.map +1 -1
  160. package/skill/skill.utils.d.ts.map +1 -1
  161. package/skill/tools/search-skills.tool.d.ts +1 -1
  162. package/tool/tool.instance.d.ts.map +1 -1
  163. package/tool/tool.registry.d.ts.map +1 -1
  164. package/tool/tool.utils.d.ts.map +1 -1
  165. package/transport/adapters/streamable-http-transport.d.ts +9 -3
  166. package/transport/adapters/streamable-http-transport.d.ts.map +1 -1
  167. package/transport/event-stores/event-store.factory.d.ts +8 -3
  168. package/transport/event-stores/event-store.factory.d.ts.map +1 -1
  169. package/transport/event-stores/redis.event-store.d.ts.map +1 -1
  170. package/transport/flows/handle.sse.flow.d.ts +1 -1
  171. package/transport/flows/handle.streamable-http.flow.d.ts +1 -1
  172. package/transport/legacy/legacy.sse.tranporter.d.ts.map +1 -1
  173. package/transport/mcp-handlers/skills-mcp.types.d.ts +1 -1
  174. package/transport/transport.local.d.ts.map +1 -1
  175. package/transport/transport.registry.d.ts +1 -1
  176. package/transport/transport.registry.d.ts.map +1 -1
  177. package/transport/transport.remote.d.ts.map +1 -1
  178. package/adapter/adapter.regsitry.d.ts.map +0 -1
  179. package/auth/authorization/authorization.class.d.ts +0 -123
  180. package/auth/authorization/authorization.class.d.ts.map +0 -1
  181. package/auth/authorization/authorization.types.d.ts +0 -128
  182. package/auth/authorization/authorization.types.d.ts.map +0 -1
  183. package/auth/authorization/orchestrated.accessor.d.ts +0 -161
  184. package/auth/authorization/orchestrated.accessor.d.ts.map +0 -1
  185. package/auth/authorization/orchestrated.authorization.d.ts +0 -258
  186. package/auth/authorization/orchestrated.authorization.d.ts.map +0 -1
  187. package/auth/authorization/public.authorization.d.ts +0 -92
  188. package/auth/authorization/public.authorization.d.ts.map +0 -1
  189. package/auth/authorization/transparent.authorization.d.ts +0 -131
  190. package/auth/authorization/transparent.authorization.d.ts.map +0 -1
  191. package/auth/consent/consent.types.d.ts +0 -112
  192. package/auth/consent/consent.types.d.ts.map +0 -1
  193. package/auth/consent/index.d.ts +0 -2
  194. package/auth/consent/index.d.ts.map +0 -1
  195. package/auth/detection/auth-provider-detection.d.ts +0 -85
  196. package/auth/detection/auth-provider-detection.d.ts.map +0 -1
  197. package/auth/detection/index.d.ts +0 -2
  198. package/auth/detection/index.d.ts.map +0 -1
  199. package/auth/machine-id.d.ts +0 -28
  200. package/auth/machine-id.d.ts.map +0 -1
  201. package/auth/session/encrypted-authorization-vault.d.ts +0 -181
  202. package/auth/session/encrypted-authorization-vault.d.ts.map +0 -1
  203. package/auth/session/federated-auth.session.d.ts +0 -252
  204. package/auth/session/federated-auth.session.d.ts.map +0 -1
  205. package/auth/session/orchestrated-token.store.d.ts +0 -155
  206. package/auth/session/orchestrated-token.store.d.ts.map +0 -1
  207. package/auth/session/redis-session.store.d.ts +0 -93
  208. package/auth/session/redis-session.store.d.ts.map +0 -1
  209. package/auth/session/session-crypto.d.ts +0 -84
  210. package/auth/session/session-crypto.d.ts.map +0 -1
  211. package/auth/session/session-rate-limiter.d.ts +0 -114
  212. package/auth/session/session-rate-limiter.d.ts.map +0 -1
  213. package/auth/session/session.transport.d.ts +0 -11
  214. package/auth/session/session.transport.d.ts.map +0 -1
  215. package/auth/session/session.types.d.ts +0 -66
  216. package/auth/session/session.types.d.ts.map +0 -1
  217. package/auth/session/token.refresh.d.ts +0 -60
  218. package/auth/session/token.refresh.d.ts.map +0 -1
  219. package/auth/session/transport-session.types.d.ts +0 -479
  220. package/auth/session/transport-session.types.d.ts.map +0 -1
  221. package/auth/session/utils/auth-token.utils.d.ts +0 -12
  222. package/auth/session/utils/auth-token.utils.d.ts.map +0 -1
  223. package/auth/session/vercel-kv-session.store.d.ts +0 -117
  224. package/auth/session/vercel-kv-session.store.d.ts.map +0 -1
  225. package/auth/ui/base-layout.d.ts +0 -181
  226. package/auth/ui/base-layout.d.ts.map +0 -1
  227. package/auth/ui/index.d.ts +0 -11
  228. package/auth/ui/index.d.ts.map +0 -1
  229. package/auth/ui/templates.d.ts +0 -135
  230. package/auth/ui/templates.d.ts.map +0 -1
  231. package/auth/utils/authorization-id.utils.d.ts +0 -12
  232. package/auth/utils/authorization-id.utils.d.ts.map +0 -1
  233. package/auth/utils/index.d.ts +0 -2
  234. package/auth/utils/index.d.ts.map +0 -1
  235. package/auth/vault/auth-providers.accessor.d.ts +0 -153
  236. package/auth/vault/auth-providers.accessor.d.ts.map +0 -1
  237. package/auth/vault/auth-providers.accessor.impl.d.ts +0 -52
  238. package/auth/vault/auth-providers.accessor.impl.d.ts.map +0 -1
  239. package/auth/vault/auth-providers.registry.d.ts +0 -110
  240. package/auth/vault/auth-providers.registry.d.ts.map +0 -1
  241. package/auth/vault/auth-providers.vault.d.ts +0 -93
  242. package/auth/vault/auth-providers.vault.d.ts.map +0 -1
  243. package/auth/vault/credential-loaders/eager-loader.d.ts +0 -46
  244. package/auth/vault/credential-loaders/eager-loader.d.ts.map +0 -1
  245. package/auth/vault/credential-loaders/index.d.ts +0 -7
  246. package/auth/vault/credential-loaders/index.d.ts.map +0 -1
  247. package/auth/vault/credential-loaders/lazy-loader.d.ts +0 -53
  248. package/auth/vault/credential-loaders/lazy-loader.d.ts.map +0 -1
@@ -1,133 +1,3 @@
1
- import { z } from 'zod';
2
- import { RedisConfig } from '../../../../auth/session/transport-session.types';
3
- /**
4
- * Public access configuration for tools/prompts
5
- */
6
- export declare const publicAccessConfigSchema: z.ZodObject<{
7
- tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
8
- prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
9
- rateLimit: z.ZodDefault<z.ZodNumber>;
10
- }, z.core.$strip>;
11
- export type PublicAccessConfig = z.infer<typeof publicAccessConfigSchema>;
12
- export type PublicAccessConfigInput = z.input<typeof publicAccessConfigSchema>;
13
- /**
14
- * Local signing configuration (for orchestrated local type)
15
- */
16
- export declare const localSigningConfigSchema: z.ZodObject<{
17
- signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<import("../../auth").JWK, unknown, z.core.$ZodTypeInternals<import("../../auth").JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
18
- jwks: z.ZodOptional<z.ZodObject<{
19
- keys: z.ZodArray<z.ZodType<import("../../auth").JWK, unknown, z.core.$ZodTypeInternals<import("../../auth").JWK, unknown>>>;
20
- }, z.core.$strip>>;
21
- issuer: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strip>;
23
- export type LocalSigningConfig = z.infer<typeof localSigningConfigSchema>;
24
- export type LocalSigningConfigInput = z.input<typeof localSigningConfigSchema>;
25
- /**
26
- * Remote OAuth provider configuration (for orchestrated remote and transparent)
27
- */
28
- export declare const remoteProviderConfigSchema: z.ZodObject<{
29
- provider: z.ZodString;
30
- name: z.ZodOptional<z.ZodString>;
31
- id: z.ZodOptional<z.ZodString>;
32
- jwks: z.ZodOptional<z.ZodObject<{
33
- keys: z.ZodArray<z.ZodType<import("../../auth").JWK, unknown, z.core.$ZodTypeInternals<import("../../auth").JWK, unknown>>>;
34
- }, z.core.$strip>>;
35
- jwksUri: z.ZodOptional<z.ZodString>;
36
- clientId: z.ZodOptional<z.ZodString>;
37
- clientSecret: z.ZodOptional<z.ZodString>;
38
- scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
39
- dcrEnabled: z.ZodDefault<z.ZodBoolean>;
40
- authEndpoint: z.ZodOptional<z.ZodString>;
41
- tokenEndpoint: z.ZodOptional<z.ZodString>;
42
- registrationEndpoint: z.ZodOptional<z.ZodString>;
43
- userInfoEndpoint: z.ZodOptional<z.ZodString>;
44
- }, z.core.$strip>;
45
- export type RemoteProviderConfig = z.infer<typeof remoteProviderConfigSchema>;
46
- export type RemoteProviderConfigInput = z.input<typeof remoteProviderConfigSchema>;
47
- /**
48
- * Token storage configuration for orchestrated mode
49
- */
50
- export declare const tokenStorageConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
51
- type: z.ZodLiteral<"memory">;
52
- }, z.core.$strip>, z.ZodObject<{
53
- type: z.ZodLiteral<"redis">;
54
- config: z.ZodObject<{
55
- host: z.ZodString;
56
- port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
57
- password: z.ZodOptional<z.ZodString>;
58
- db: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
59
- tls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
60
- keyPrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
61
- defaultTtlMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
62
- }, z.core.$strip>;
63
- }, z.core.$strip>], "type">;
64
- export type TokenStorageConfig = z.infer<typeof tokenStorageConfigSchema>;
65
- export type TokenStorageConfigInput = z.input<typeof tokenStorageConfigSchema>;
66
- /**
67
- * Token refresh configuration
68
- */
69
- export declare const tokenRefreshConfigSchema: z.ZodObject<{
70
- enabled: z.ZodDefault<z.ZodBoolean>;
71
- skewSeconds: z.ZodDefault<z.ZodNumber>;
72
- }, z.core.$strip>;
73
- export type TokenRefreshConfig = z.infer<typeof tokenRefreshConfigSchema>;
74
- export type TokenRefreshConfigInput = z.input<typeof tokenRefreshConfigSchema>;
75
- /**
76
- * Behavior when a tool from a skipped (not yet authorized) app is called
77
- */
78
- export declare const skippedAppBehaviorSchema: z.ZodEnum<{
79
- anonymous: "anonymous";
80
- "require-auth": "require-auth";
81
- }>;
82
- export type SkippedAppBehavior = z.infer<typeof skippedAppBehaviorSchema>;
83
- /**
84
- * Consent configuration for tool selection
85
- * Allows users to choose which MCP tools to expose to the LLM
86
- *
87
- * Note: This schema is the canonical definition. It is duplicated in
88
- * auth/consent/consent.types.ts for domain-specific use. Both schemas
89
- * MUST be kept in sync. The duplication exists to avoid circular
90
- * dependencies between common/ and auth/ modules.
91
- */
92
- export declare const consentConfigSchema: z.ZodObject<{
93
- enabled: z.ZodDefault<z.ZodBoolean>;
94
- groupByApp: z.ZodDefault<z.ZodBoolean>;
95
- showDescriptions: z.ZodDefault<z.ZodBoolean>;
96
- allowSelectAll: z.ZodDefault<z.ZodBoolean>;
97
- requireSelection: z.ZodDefault<z.ZodBoolean>;
98
- customMessage: z.ZodOptional<z.ZodString>;
99
- rememberConsent: z.ZodDefault<z.ZodBoolean>;
100
- excludedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
101
- defaultSelectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
102
- }, z.core.$strip>;
103
- export type ConsentConfig = z.infer<typeof consentConfigSchema>;
104
- export type ConsentConfigInput = z.input<typeof consentConfigSchema>;
105
- /**
106
- * Federated authentication configuration
107
- */
108
- export declare const federatedAuthConfigSchema: z.ZodObject<{
109
- stateValidation: z.ZodDefault<z.ZodEnum<{
110
- format: "format";
111
- strict: "strict";
112
- }>>;
113
- }, z.core.$strip>;
114
- export type FederatedAuthConfig = z.infer<typeof federatedAuthConfigSchema>;
115
- export type FederatedAuthConfigInput = z.input<typeof federatedAuthConfigSchema>;
116
- /**
117
- * Progressive/Incremental authorization configuration
118
- * Allows users to authorize apps one at a time after initial auth
119
- */
120
- export declare const incrementalAuthConfigSchema: z.ZodObject<{
121
- enabled: z.ZodDefault<z.ZodBoolean>;
122
- skippedAppBehavior: z.ZodDefault<z.ZodEnum<{
123
- anonymous: "anonymous";
124
- "require-auth": "require-auth";
125
- }>>;
126
- allowSkip: z.ZodDefault<z.ZodBoolean>;
127
- showAllAppsAtOnce: z.ZodDefault<z.ZodBoolean>;
128
- }, z.core.$strip>;
129
- export type IncrementalAuthConfig = z.infer<typeof incrementalAuthConfigSchema>;
130
- export type IncrementalAuthConfigInput = z.input<typeof incrementalAuthConfigSchema>;
131
- export { cimdCacheConfigSchema, cimdSecurityConfigSchema, cimdNetworkConfigSchema, cimdConfigSchema, type CimdCacheConfig, type CimdSecurityConfig, type CimdNetworkConfig, type CimdConfig, type CimdConfigInput, } from '@frontmcp/auth';
132
- export type { RedisConfig };
1
+ export { publicAccessConfigSchema, localSigningConfigSchema, remoteProviderConfigSchema, tokenStorageConfigSchema, tokenRefreshConfigSchema, skippedAppBehaviorSchema, consentConfigSchema, federatedAuthConfigSchema, incrementalAuthConfigSchema, cimdCacheConfigSchema, cimdSecurityConfigSchema, cimdNetworkConfigSchema, cimdConfigSchema, } from '@frontmcp/auth';
2
+ export type { PublicAccessConfig, PublicAccessConfigInput, LocalSigningConfig, LocalSigningConfigInput, RemoteProviderConfig, RemoteProviderConfigInput, TokenStorageConfig, TokenStorageConfigInput, TokenRefreshConfig, TokenRefreshConfigInput, SkippedAppBehavior, ConsentConfig, ConsentConfigInput, FederatedAuthConfig, FederatedAuthConfigInput, IncrementalAuthConfig, IncrementalAuthConfigInput, CimdCacheConfig, CimdSecurityConfig, CimdNetworkConfig, CimdConfig, CimdConfigInput, RedisConfig, } from '@frontmcp/auth';
133
3
  //# sourceMappingURL=shared.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/auth/shared.schemas.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,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;;;EAAwC,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAM1E;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAqD9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAMrE;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;iBAQpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAMjF;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;iBA4BtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMrF,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,eAAe,GACrB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"shared.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/auth/shared.schemas.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,WAAW,GACZ,MAAM,gBAAgB,CAAC"}
@@ -6,7 +6,7 @@ export declare const transparentAuthOptionsSchema: z.ZodObject<{
6
6
  name: z.ZodOptional<z.ZodString>;
7
7
  id: z.ZodOptional<z.ZodString>;
8
8
  jwks: z.ZodOptional<z.ZodObject<{
9
- keys: z.ZodArray<z.ZodType<import("@frontmcp/sdk").JWK, unknown, z.core.$ZodTypeInternals<import("@frontmcp/sdk").JWK, unknown>>>;
9
+ keys: z.ZodArray<z.ZodType<import("@frontmcp/auth").JWK, unknown, z.core.$ZodTypeInternals<import("@frontmcp/auth").JWK, unknown>>>;
10
10
  }, z.core.$strip>>;
11
11
  jwksUri: z.ZodOptional<z.ZodString>;
12
12
  clientId: z.ZodOptional<z.ZodString>;
@@ -1,4 +1,4 @@
1
- export type { HttpOptionsInterface } from './interfaces';
1
+ export type { HttpOptionsInterface, CorsOptions } from './interfaces';
2
2
  export { httpOptionsSchema } from './schema';
3
3
  export type { HttpOptions, HttpOptionsInput } from './schema';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/http/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/http/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC"}
@@ -1,4 +1,26 @@
1
1
  import { FrontMcpServer } from '../../../interfaces';
2
+ /**
3
+ * Framework-agnostic CORS configuration options.
4
+ */
5
+ export interface CorsOptions {
6
+ /**
7
+ * Allowed origins. Can be:
8
+ * - `true` to reflect the request origin (allows all origins with credentials)
9
+ * - A string for a single origin
10
+ * - An array of strings for multiple origins
11
+ * - A function that dynamically determines if an origin is allowed
12
+ */
13
+ origin?: boolean | string | string[] | ((origin: string | undefined, callback: (err: Error | null, allow?: boolean) => void) => void);
14
+ /**
15
+ * Whether to allow credentials (cookies, authorization headers).
16
+ * @default false
17
+ */
18
+ credentials?: boolean;
19
+ /**
20
+ * How long preflight results can be cached (in seconds).
21
+ */
22
+ maxAge?: number;
23
+ }
2
24
  /**
3
25
  * HTTP server configuration options.
4
26
  */
@@ -19,5 +41,19 @@ export interface HttpOptionsInterface {
19
41
  * Can be a FrontMcpServer instance or a factory function.
20
42
  */
21
43
  hostFactory?: FrontMcpServer | ((config: HttpOptionsInterface) => FrontMcpServer);
44
+ /**
45
+ * Unix socket path for local-only server mode.
46
+ * When set, the server listens on a Unix socket instead of a TCP port.
47
+ * The entire HTTP feature set (streamable HTTP, SSE, elicitation, sessions)
48
+ * works unchanged over Unix sockets.
49
+ */
50
+ socketPath?: string;
51
+ /**
52
+ * CORS configuration.
53
+ * - `undefined` (default): permissive CORS enabled (all origins, no credentials)
54
+ * - `false`: CORS disabled entirely
55
+ * - `CorsOptions`: custom CORS configuration
56
+ */
57
+ cors?: CorsOptions | false;
22
58
  }
23
59
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/http/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,oBAAoB,KAAK,cAAc,CAAC,CAAC;CACnF"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/http/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;OAMG;IACH,MAAM,CAAC,EACH,OAAO,GACP,MAAM,GACN,MAAM,EAAE,GACR,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,KAAK,IAAI,CAAC,CAAC;IAEnG;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,oBAAoB,KAAK,cAAc,CAAC,CAAC;IAElF;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC;CAC5B"}
@@ -6,6 +6,12 @@ export declare const httpOptionsSchema: z.ZodObject<{
6
6
  port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7
7
  entryPath: z.ZodDefault<z.ZodString>;
8
8
  hostFactory: z.ZodOptional<z.ZodAny>;
9
+ socketPath: z.ZodOptional<z.ZodString>;
10
+ cors: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
11
+ origin: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString>, z.ZodCustom<(origin: string | undefined, callback: (err: Error | null, allow?: boolean) => void) => void, (origin: string | undefined, callback: (err: Error | null, allow?: boolean) => void) => void>]>>;
12
+ credentials: z.ZodOptional<z.ZodBoolean>;
13
+ maxAge: z.ZodOptional<z.ZodNumber>;
14
+ }, z.core.$strip>]>>;
9
15
  }, z.core.$strip>;
10
16
  /**
11
17
  * HTTP configuration type (with defaults applied).
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/http/schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;iBAM5B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/http/schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsBxB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;mLAFhB,CAAC,6FAAD,CAAC;;;;iBAqBb,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -9,4 +9,5 @@ export * from './pagination';
9
9
  export * from './elicitation';
10
10
  export * from './skills-http';
11
11
  export * from './ext-apps';
12
+ export * from './sqlite';
12
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/types/options/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/types/options/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
@@ -7,11 +7,11 @@ export declare const platformMappingEntrySchema: z.ZodObject<{
7
7
  pattern: z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
8
8
  platform: z.ZodEnum<{
9
9
  unknown: "unknown";
10
- continue: "continue";
11
10
  openai: "openai";
12
11
  claude: "claude";
13
12
  gemini: "gemini";
14
13
  cursor: "cursor";
14
+ continue: "continue";
15
15
  cody: "cody";
16
16
  "generic-mcp": "generic-mcp";
17
17
  "ext-apps": "ext-apps";
@@ -25,11 +25,11 @@ export declare const platformDetectionConfigSchema: z.ZodObject<{
25
25
  pattern: z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
26
26
  platform: z.ZodEnum<{
27
27
  unknown: "unknown";
28
- continue: "continue";
29
28
  openai: "openai";
30
29
  claude: "claude";
31
30
  gemini: "gemini";
32
31
  cursor: "cursor";
32
+ continue: "continue";
33
33
  cody: "cody";
34
34
  "generic-mcp": "generic-mcp";
35
35
  "ext-apps": "ext-apps";
@@ -47,11 +47,11 @@ export declare const sessionOptionsSchema: z.ZodObject<{
47
47
  pattern: z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
48
48
  platform: z.ZodEnum<{
49
49
  unknown: "unknown";
50
- continue: "continue";
51
50
  openai: "openai";
52
51
  claude: "claude";
53
52
  gemini: "gemini";
54
53
  cursor: "cursor";
54
+ continue: "continue";
55
55
  cody: "cody";
56
56
  "generic-mcp": "generic-mcp";
57
57
  "ext-apps": "ext-apps";
@@ -0,0 +1,3 @@
1
+ export { sqliteOptionsSchema } from './schema';
2
+ export type { SqliteOptionsInput, SqliteOptions } from './schema';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/sqlite/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * SQLite Configuration Schema for SDK
3
+ *
4
+ * Zod schema for SQLite storage options used in FrontMCP config.
5
+ */
6
+ import { z } from 'zod';
7
+ /**
8
+ * SQLite storage configuration schema.
9
+ */
10
+ export declare const sqliteOptionsSchema: z.ZodObject<{
11
+ path: z.ZodString;
12
+ encryption: z.ZodOptional<z.ZodObject<{
13
+ secret: z.ZodString;
14
+ }, z.core.$strip>>;
15
+ ttlCleanupIntervalMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
16
+ walMode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
17
+ }, z.core.$strip>;
18
+ /**
19
+ * SQLite storage input type (before Zod defaults).
20
+ */
21
+ export type SqliteOptionsInput = z.input<typeof sqliteOptionsSchema>;
22
+ /**
23
+ * SQLite storage output type (after Zod defaults).
24
+ */
25
+ export type SqliteOptions = z.infer<typeof sqliteOptionsSchema>;
26
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/sqlite/schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;iBAyB9B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -146,11 +146,11 @@ export declare const transportOptionsSchema: z.ZodObject<{
146
146
  pattern: z.ZodUnion<readonly [z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
147
147
  platform: z.ZodEnum<{
148
148
  unknown: "unknown";
149
- continue: "continue";
150
149
  openai: "openai";
151
150
  claude: "claude";
152
151
  gemini: "gemini";
153
152
  cursor: "cursor";
153
+ continue: "continue";
154
154
  cody: "cody";
155
155
  "generic-mcp": "generic-mcp";
156
156
  "ext-apps": "ext-apps";
@@ -61,7 +61,7 @@ export declare function isElicitationEncryptionAvailable(): boolean;
61
61
  * @param sessionId - The session ID to derive a key for
62
62
  * @param secret - Optional secret override (defaults to env var)
63
63
  * @returns 32-byte encryption key
64
- * @throws Error if no secret is available
64
+ * @throws ElicitationSecretRequiredError if no secret is available
65
65
  */
66
66
  export declare function deriveElicitationKey(sessionId: string, secret?: string): Promise<Uint8Array>;
67
67
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"elicitation-encryption.d.ts","sourceRoot":"","sources":["../../../src/elicitation/store/elicitation-encryption.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAOL,KAAK,OAAO,EACb,MAAM,iBAAiB,CAAC;AAMzB;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmBD;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,IAAI,CAOpD;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,IAAI,OAAO,CAE1D;AAMD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAmBlG;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAsB,sBAAsB,CAAC,CAAC,EAC5C,IAAI,EAAE,CAAC,EACP,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,wBAAwB,CAAC,CAanC;AAED;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAAC,CAAC,EAC5C,IAAI,EAAE,wBAAwB,EAC9B,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAenB;AAMD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,wBAAwB,GAAG,MAAM,CAE/E;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,GAAG,IAAI,CAUvF;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,wBAAwB,CAajF;AAMD;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAGzG;AAED;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAMjH;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAKpH"}
1
+ {"version":3,"file":"elicitation-encryption.d.ts","sourceRoot":"","sources":["../../../src/elicitation/store/elicitation-encryption.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAOL,KAAK,OAAO,EACb,MAAM,iBAAiB,CAAC;AAOzB;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAE/C;;GAEG;AACH,MAAM,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,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAMjH;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAKpH"}
@@ -10,7 +10,7 @@
10
10
  * @module elicitation/store/elicitation-store.factory
11
11
  */
12
12
  import type { StorageConfig, RootStorage } from '@frontmcp/utils';
13
- import type { FrontMcpLogger, RedisOptionsInput } from '../../common';
13
+ import type { FrontMcpLogger, RedisOptionsInput, SqliteOptionsInput } from '../../common';
14
14
  import type { ElicitationStore } from './elicitation.store';
15
15
  /**
16
16
  * Options for creating an elicitation store.
@@ -194,4 +194,24 @@ export declare function createElicitationStoreFromStorage(storage: RootStorage,
194
194
  secret?: string;
195
195
  };
196
196
  }): ElicitationStoreResult;
197
+ /**
198
+ * Create a SQLite-backed elicitation store for local-only deployments.
199
+ * Uses EventEmitter for single-process pub/sub (no distributed pub/sub needed).
200
+ *
201
+ * @param sqliteConfig - SQLite storage configuration
202
+ * @param storeOptions - Optional store configuration
203
+ * @returns A SQLite-backed elicitation store
204
+ *
205
+ * @example
206
+ * ```typescript
207
+ * const store = createSqliteElicitationStore(
208
+ * { path: '~/.frontmcp/data/elicitation.sqlite' },
209
+ * { logger },
210
+ * );
211
+ * ```
212
+ */
213
+ export declare function createSqliteElicitationStore(sqliteConfig: SqliteOptionsInput, storeOptions?: {
214
+ keyPrefix?: string;
215
+ logger?: FrontMcpLogger;
216
+ }): ElicitationStore;
197
217
  //# sourceMappingURL=elicitation-store.factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"elicitation-store.factory.d.ts","sourceRoot":"","sources":["../../../src/elicitation/store/elicitation-store.factory.ts"],"names":[],"mapp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;IACP,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACE,GACL,sBAAsB,CAwBxB;AAED;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE;IACP,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACE,GACL,sBAAsB,CAsCxB"}
1
+ {"version":3,"file":"elicitation-store.factory.d.ts","sourceRoot":"","sources":["../../../src/elicitation/store/elicitation-store.factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAM5D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB;;;;OAIG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAE1B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,cAAc,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;;;;;;;;;GAeG;AACH,wBAAgB,4BAA4B,CAC1C,YAAY,EAAE,kBAAkB,EAChC,YAAY,GAAE;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;CACpB,GACL,gBAAgB,CAgBlB"}
@@ -0,0 +1,2 @@
1
+ export { EncryptionContextNotSetError, VaultLoadError, VaultNotFoundError, TokenNotAvailableError, TokenStoreRequiredError, NoProviderIdError, TokenLeakDetectedError, SessionSecretRequiredError, CredentialProviderAlreadyRegisteredError, AuthProvidersNotConfiguredError, OrchestratedAuthNotAvailableError, EncryptionKeyNotConfiguredError, SessionIdEmptyError, ElicitationSecretRequiredError, ScopeDeniedError, InMemoryStoreRequiredError, OrchestratorJwksNotAvailableError, } from '@frontmcp/auth';
2
+ //# sourceMappingURL=auth-internal.errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-internal.errors.d.ts","sourceRoot":"","sources":["../../src/errors/auth-internal.errors.ts"],"names":[],"mappings":"AACA,OAAO,EACL,4BAA4B,EAC5B,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,wCAAwC,EACxC,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAC/B,mBAAmB,EACnB,8BAA8B,EAC9B,gBAAgB,EAChB,0BAA0B,EAC1B,iCAAiC,GAClC,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { InternalMcpError } from './mcp.error';
2
+ /**
3
+ * Thrown when a decorator receives invalid metadata (e.g., @App, @Plugin, @FrontMcp).
4
+ */
5
+ export declare class InvalidDecoratorMetadataError extends InternalMcpError {
6
+ constructor(decoratorName: string, field: string, details: string);
7
+ }
8
+ /**
9
+ * Thrown when a hook target method is not defined on the class.
10
+ */
11
+ export declare class HookTargetNotDefinedError extends InternalMcpError {
12
+ constructor(method: string);
13
+ }
14
+ //# sourceMappingURL=decorator.errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decorator.errors.d.ts","sourceRoot":"","sources":["../../src/errors/decorator.errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,gBAAgB;gBACrD,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAGlE;AAED;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,gBAAgB;gBACjD,MAAM,EAAE,MAAM;CAG3B"}
package/errors/index.d.ts CHANGED
@@ -3,5 +3,12 @@ export { authorizationRequiredDataSchema, authorizationRequiredParamsSchema, aut
3
3
  export { ErrorHandler, ErrorHandlerOptions, createErrorHandler, shouldStopExecution } from './error-handler';
4
4
  export { AgentNotFoundError, AgentExecutionError, AgentLoopExceededError, AgentTimeoutError, AgentVisibilityError, AgentLlmError, AgentConfigurationError, AgentNotConfiguredError, AgentToolNotFoundError, } from './agent.errors';
5
5
  export { ElicitationNotSupportedError, ElicitationTimeoutError, ElicitationFallbackRequired, ElicitationStoreNotInitializedError, ElicitationDisabledError, ElicitationEncryptionError, ElicitationSubscriptionError, } from './elicitation.error';
6
- export { RemoteConnectionError, RemoteDisconnectError, RemoteTimeoutError, RemoteToolNotFoundError, RemoteResourceNotFoundError, RemotePromptNotFoundError, RemoteAuthError, RemoteAuthorizationError, RemoteToolExecutionError, RemoteResourceReadError, RemotePromptGetError, RemoteTransportError, RemoteUnsupportedTransportError, RemoteCapabilityDiscoveryError, RemoteCapabilityNotSupportedError, RemoteConfigurationError, RemoteNotConnectedError, } from './remote.errors';
6
+ export { RemoteConnectionError, RemoteDisconnectError, RemoteTimeoutError, RemoteToolNotFoundError, RemoteResourceNotFoundError, RemotePromptNotFoundError, RemoteAuthError, RemoteAuthorizationError, RemoteToolExecutionError, RemoteResourceReadError, RemotePromptGetError, RemoteTransportError, RemoteUnsupportedTransportError, RemoteCapabilityDiscoveryError, RemoteCapabilityNotSupportedError, RemoteConfigurationError, RemoteNotConnectedError, InvalidRetryOptionsError, } from './remote.errors';
7
+ export { MissingProvideError, InvalidUseClassError, InvalidUseFactoryError, InvalidUseValueError, InvalidEntityError, } from './normalization.errors';
8
+ export { RegistryDefinitionNotFoundError, RegistryGraphEntryNotFoundError, RegistryDependencyNotRegisteredError, InvalidRegistryKindError, NameDisambiguationError, EntryValidationError, FlowNotRegisteredError, UnsupportedHookOwnerKindError, } from './registry.errors';
9
+ export { ProviderNotRegisteredError, ProviderScopeMismatchError, ProviderNotInstantiatedError, DependencyCycleError, ProviderConstructionError, ProviderDependencyError, ProviderScopedAccessError, ProviderNotAvailableError, PluginDependencyError, InvalidDependencyScopeError, } from './provider.errors';
10
+ export { InvalidDecoratorMetadataError, HookTargetNotDefinedError } from './decorator.errors';
11
+ export { MethodNotImplementedError, UnsupportedTransportTypeError, TransportBusRequiredError, InvalidTransportSessionError, TransportNotConnectedError, TransportAlreadyStartedError, UnsupportedContentTypeError, } from './transport.errors';
12
+ export { EncryptionContextNotSetError, VaultLoadError, VaultNotFoundError, TokenNotAvailableError, TokenStoreRequiredError, NoProviderIdError, TokenLeakDetectedError, SessionSecretRequiredError, CredentialProviderAlreadyRegisteredError, AuthProvidersNotConfiguredError, OrchestratedAuthNotAvailableError, EncryptionKeyNotConfiguredError, SessionIdEmptyError, ElicitationSecretRequiredError, ScopeDeniedError, InMemoryStoreRequiredError, OrchestratorJwksNotAvailableError, } from './auth-internal.errors';
13
+ export { FlowExitedWithoutOutputError, ServerNotFoundError, ConfigNotFoundError, SessionVerificationFailedError, ContextExtensionNotAvailableError, ScopeConfigurationError, InvokeStateMissingKeyError, SkillSessionError, InvalidSkillError, SkillInstructionFetchError, InvalidInstructionSourceError, ServerlessHandlerNotInitializedError, MissingPromptArgumentError, DynamicAdapterNameError, AgentConfigKeyNotFoundError, AgentToolExecutionError, AgentMethodNotAvailableError, VercelKvNotSupportedError, VercelKvAsyncInitRequiredError, RequiredConfigUndefinedError, RegistryNotInitializedError, FlowInputMissingError, } from './sdk.errors';
7
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,QAAQ,EACR,cAAc,EACd,gBAAgB,EAEhB,iBAAiB,EACjB,kBAAkB,EAElB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EAEvB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAElB,cAAc,EACd,kBAAkB,EAElB,iBAAiB,EAEjB,mBAAmB,EACnB,6BAA6B,EAE7B,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,+BAA+B,EAE/B,sBAAsB,EACtB,yBAAyB,EAEzB,mBAAmB,EACnB,oBAAoB,EAEpB,aAAa,EACb,UAAU,EACV,sBAAsB,EAEtB,eAAe,EACf,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAEL,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAE/B,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EAEzB,0BAA0B,GAC3B,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG7G,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,EACvB,2BAA2B,EAC3B,mCAAmC,EACnC,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAEL,qBAAqB,EACrB,qBAAqB,EAErB,kBAAkB,EAElB,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EAEzB,eAAe,EACf,wBAAwB,EAExB,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EAEpB,oBAAoB,EACpB,+BAA+B,EAE/B,8BAA8B,EAC9B,iCAAiC,EAEjC,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,QAAQ,EACR,cAAc,EACd,gBAAgB,EAEhB,iBAAiB,EACjB,kBAAkB,EAElB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EAEvB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAElB,cAAc,EACd,kBAAkB,EAElB,iBAAiB,EAEjB,mBAAmB,EACnB,6BAA6B,EAE7B,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,+BAA+B,EAE/B,sBAAsB,EACtB,yBAAyB,EAEzB,mBAAmB,EACnB,oBAAoB,EAEpB,aAAa,EACb,UAAU,EACV,sBAAsB,EAEtB,eAAe,EACf,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAEL,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAE/B,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EAEzB,0BAA0B,GAC3B,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG7G,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,4BAA4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wC,EACxC,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAC/B,mBAAmB,EACnB,8BAA8B,EAC9B,gBAAgB,EAChB,0BAA0B,EAC1B,iCAAiC,GAClC,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,EACnB,mBAAmB,EACnB,8BAA8B,EAC9B,iCAAiC,EACjC,uBAAuB,EACvB,0BAA0B,EAC1B,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,6BAA6B,EAC7B,oCAAoC,EACpC,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,4BAA4B,EAC5B,yBAAyB,EACzB,8BAA8B,EAC9B,4BAA4B,EAC5B,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,cAAc,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { InternalMcpError } from './mcp.error';
2
+ /**
3
+ * Thrown when a provider/entity definition is missing the 'provide' token.
4
+ */
5
+ export declare class MissingProvideError extends InternalMcpError {
6
+ constructor(entityType: string, name: string);
7
+ }
8
+ /**
9
+ * Thrown when 'useClass' on a provider/entity is not a valid class (constructor function).
10
+ */
11
+ export declare class InvalidUseClassError extends InternalMcpError {
12
+ constructor(entityType: string, tokenName: string);
13
+ }
14
+ /**
15
+ * Thrown when 'useFactory' on a provider/entity is not a function.
16
+ */
17
+ export declare class InvalidUseFactoryError extends InternalMcpError {
18
+ constructor(entityType: string, tokenName: string);
19
+ }
20
+ /**
21
+ * Thrown when 'useValue' on a provider/entity is undefined.
22
+ */
23
+ export declare class InvalidUseValueError extends InternalMcpError {
24
+ constructor(entityType: string, tokenName: string);
25
+ }
26
+ /**
27
+ * Thrown when an entity (tool, resource, adapter, etc.) has an invalid shape.
28
+ */
29
+ export declare class InvalidEntityError extends InternalMcpError {
30
+ constructor(entityType: string, name: string, expected: string);
31
+ }
32
+ //# sourceMappingURL=normalization.errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalization.errors.d.ts","sourceRoot":"","sources":["../../src/errors/normalization.errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,gBAAgB;gBAC3C,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAG7C;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,gBAAgB;gBAC5C,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;CAGlD;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,gBAAgB;gBAC9C,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;CAGlD;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,gBAAgB;gBAC5C,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;CAGlD;AAED;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,gBAAgB;gBAC1C,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAG/D"}
@@ -0,0 +1,63 @@
1
+ import { InternalMcpError } from './mcp.error';
2
+ /**
3
+ * Thrown when a provider token is not registered.
4
+ */
5
+ export declare class ProviderNotRegisteredError extends InternalMcpError {
6
+ constructor(tokenName: string, context?: string);
7
+ }
8
+ /**
9
+ * Thrown when a provider's scope doesn't match the expected scope.
10
+ */
11
+ export declare class ProviderScopeMismatchError extends InternalMcpError {
12
+ constructor(tokenName: string, scopeName: string, registryName: string);
13
+ }
14
+ /**
15
+ * Thrown when a provider is expected to be instantiated but isn't.
16
+ */
17
+ export declare class ProviderNotInstantiatedError extends InternalMcpError {
18
+ constructor(tokenName: string, scope?: string, context?: string);
19
+ }
20
+ /**
21
+ * Thrown when a circular dependency is detected.
22
+ */
23
+ export declare class DependencyCycleError extends InternalMcpError {
24
+ constructor(cycle: string);
25
+ }
26
+ /**
27
+ * Thrown when provider construction fails.
28
+ */
29
+ export declare class ProviderConstructionError extends InternalMcpError {
30
+ readonly originalError?: Error;
31
+ constructor(tokenName: string, cause?: Error | string, qualifier?: string);
32
+ }
33
+ /**
34
+ * Thrown when a provider dependency cannot be resolved.
35
+ */
36
+ export declare class ProviderDependencyError extends InternalMcpError {
37
+ constructor(message: string);
38
+ }
39
+ /**
40
+ * Thrown when a scoped provider is accessed from the wrong scope.
41
+ */
42
+ export declare class ProviderScopedAccessError extends InternalMcpError {
43
+ constructor(tokenName: string, scopeName: string);
44
+ }
45
+ /**
46
+ * Thrown when a provider is not available in the current context.
47
+ */
48
+ export declare class ProviderNotAvailableError extends InternalMcpError {
49
+ constructor(tokenName: string, context?: string);
50
+ }
51
+ /**
52
+ * Thrown when a plugin dependency cannot be resolved.
53
+ */
54
+ export declare class PluginDependencyError extends InternalMcpError {
55
+ constructor(message: string);
56
+ }
57
+ /**
58
+ * Thrown when a dependency has an invalid scope configuration.
59
+ */
60
+ export declare class InvalidDependencyScopeError extends InternalMcpError {
61
+ constructor(message: string);
62
+ }
63
+ //# sourceMappingURL=provider.errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.errors.d.ts","sourceRoot":"","sources":["../../src/errors/provider.errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,gBAAgB;gBAClD,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAMhD;AAED;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,gBAAgB;gBAClD,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM;CAMvE;AAED;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,gBAAgB;gBACpD,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAMhE;AAED;;GAEG;AACH,qBAAa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