@frontmcp/sdk 0.7.2 → 0.8.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.
- package/agent/adapters/adapter.factory.d.ts +27 -18
- package/agent/adapters/adapter.factory.d.ts.map +1 -1
- package/agent/agent.instance.d.ts +5 -0
- package/agent/agent.instance.d.ts.map +1 -1
- package/agent/agent.scope.d.ts +54 -72
- package/agent/agent.scope.d.ts.map +1 -1
- package/agent/flows/call-agent.flow.d.ts +1 -0
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- package/app/instances/app.local.instance.d.ts +3 -0
- package/app/instances/app.local.instance.d.ts.map +1 -1
- package/app/instances/app.remote.instance.d.ts +3 -0
- package/app/instances/app.remote.instance.d.ts.map +1 -1
- package/auth/auth.registry.d.ts.map +1 -1
- package/auth/authorization/authorization.types.d.ts +7 -180
- package/auth/authorization/authorization.types.d.ts.map +1 -1
- package/auth/authorization/index.d.ts +2 -0
- package/auth/authorization/index.d.ts.map +1 -1
- package/auth/authorization/orchestrated.accessor.d.ts +161 -0
- package/auth/authorization/orchestrated.accessor.d.ts.map +1 -0
- package/auth/authorization/orchestrated.authorization.d.ts +19 -4
- package/auth/authorization/orchestrated.authorization.d.ts.map +1 -1
- package/auth/authorization/orchestrated.context-extension.d.ts +108 -0
- package/auth/authorization/orchestrated.context-extension.d.ts.map +1 -0
- package/auth/cimd/index.d.ts +14 -0
- package/auth/cimd/index.d.ts.map +1 -0
- package/auth/flows/auth.verify.flow.d.ts.map +1 -1
- package/auth/flows/oauth.authorize.flow.d.ts +30 -3
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -1
- package/auth/flows/oauth.callback.flow.d.ts +11 -3
- package/auth/flows/oauth.callback.flow.d.ts.map +1 -1
- package/auth/flows/oauth.provider-callback.flow.d.ts +118 -0
- package/auth/flows/oauth.provider-callback.flow.d.ts.map +1 -0
- package/auth/flows/oauth.register.flow.d.ts +1 -1
- package/auth/flows/oauth.token.flow.d.ts +1 -1
- package/auth/flows/session.verify.flow.d.ts +8 -0
- package/auth/flows/session.verify.flow.d.ts.map +1 -1
- package/auth/flows/well-known.jwks.flow.d.ts +3 -3
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +3 -2
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -1
- package/auth/flows/well-known.prm.flow.d.ts +1 -1
- package/auth/instances/instance.local-primary-auth.d.ts +88 -1
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
- package/auth/machine-id.d.ts +14 -0
- package/auth/machine-id.d.ts.map +1 -1
- package/auth/session/encrypted-authorization-vault.d.ts +2 -3
- package/auth/session/encrypted-authorization-vault.d.ts.map +1 -1
- package/auth/session/federated-auth.session.d.ts +252 -0
- package/auth/session/federated-auth.session.d.ts.map +1 -0
- package/auth/session/index.d.ts +6 -2
- package/auth/session/index.d.ts.map +1 -1
- package/auth/session/orchestrated-token.store.d.ts +155 -0
- package/auth/session/orchestrated-token.store.d.ts.map +1 -0
- package/auth/session/record/session.base.d.ts +7 -7
- package/auth/session/record/session.base.d.ts.map +1 -1
- package/auth/session/record/session.mcp.d.ts +11 -0
- package/auth/session/record/session.mcp.d.ts.map +1 -0
- package/auth/session/redis-session.store.d.ts +10 -5
- package/auth/session/redis-session.store.d.ts.map +1 -1
- package/auth/session/session-crypto.d.ts +6 -9
- package/auth/session/session-crypto.d.ts.map +1 -1
- package/{store/store.factory.d.ts → auth/session/session-store.factory.d.ts} +10 -36
- package/auth/session/session-store.factory.d.ts.map +1 -0
- package/auth/session/session.service.d.ts +4 -8
- package/auth/session/session.service.d.ts.map +1 -1
- package/auth/session/session.transport.d.ts +8 -2
- package/auth/session/session.transport.d.ts.map +1 -1
- package/auth/session/session.types.d.ts +5 -5
- package/auth/session/session.types.d.ts.map +1 -1
- package/auth/session/token.refresh.d.ts +1 -2
- package/auth/session/token.refresh.d.ts.map +1 -1
- package/auth/session/transport-session.manager.d.ts +7 -6
- package/auth/session/transport-session.manager.d.ts.map +1 -1
- package/auth/session/utils/session-id.utils.d.ts +18 -1
- package/auth/session/utils/session-id.utils.d.ts.map +1 -1
- package/auth/session/vercel-kv-session.store.d.ts +16 -16
- package/auth/session/vercel-kv-session.store.d.ts.map +1 -1
- package/auth/utils/authorization-id.utils.d.ts +12 -0
- package/auth/utils/authorization-id.utils.d.ts.map +1 -0
- package/auth/utils/index.d.ts +1 -2
- package/auth/utils/index.d.ts.map +1 -1
- package/auth/vault/auth-providers.accessor.d.ts +153 -0
- package/auth/vault/auth-providers.accessor.d.ts.map +1 -0
- package/auth/vault/auth-providers.accessor.impl.d.ts +52 -0
- package/auth/vault/auth-providers.accessor.impl.d.ts.map +1 -0
- package/auth/vault/auth-providers.context-extension.d.ts +68 -0
- package/auth/vault/auth-providers.context-extension.d.ts.map +1 -0
- package/auth/vault/auth-providers.providers.d.ts +40 -0
- package/auth/vault/auth-providers.providers.d.ts.map +1 -0
- package/auth/vault/auth-providers.registry.d.ts +110 -0
- package/auth/vault/auth-providers.registry.d.ts.map +1 -0
- package/auth/vault/auth-providers.vault.d.ts +93 -0
- package/auth/vault/auth-providers.vault.d.ts.map +1 -0
- package/auth/vault/credential-cache.d.ts +13 -0
- package/auth/vault/credential-cache.d.ts.map +1 -0
- package/auth/vault/credential-loaders/eager-loader.d.ts +46 -0
- package/auth/vault/credential-loaders/eager-loader.d.ts.map +1 -0
- package/auth/vault/credential-loaders/index.d.ts +7 -0
- package/auth/vault/credential-loaders/index.d.ts.map +1 -0
- package/auth/vault/credential-loaders/lazy-loader.d.ts +53 -0
- package/auth/vault/credential-loaders/lazy-loader.d.ts.map +1 -0
- package/auth/vault/index.d.ts +56 -0
- package/auth/vault/index.d.ts.map +1 -0
- package/builtin/config/config-resolver.d.ts +162 -0
- package/builtin/config/config-resolver.d.ts.map +1 -0
- package/builtin/config/config.plugin.d.ts +63 -0
- package/builtin/config/config.plugin.d.ts.map +1 -0
- package/builtin/config/config.symbols.d.ts +7 -0
- package/builtin/config/config.symbols.d.ts.map +1 -0
- package/builtin/config/config.types.d.ts +71 -0
- package/builtin/config/config.types.d.ts.map +1 -0
- package/builtin/config/index.d.ts +68 -0
- package/builtin/config/index.d.ts.map +1 -0
- package/builtin/config/providers/config-loader.d.ts +36 -0
- package/builtin/config/providers/config-loader.d.ts.map +1 -0
- package/builtin/config/providers/config.service.d.ts +108 -0
- package/builtin/config/providers/config.service.d.ts.map +1 -0
- package/builtin/config/providers/env-loader.d.ts +76 -0
- package/builtin/config/providers/env-loader.d.ts.map +1 -0
- package/builtin/index.d.ts +7 -0
- package/builtin/index.d.ts.map +1 -0
- package/common/decorators/front-mcp.decorator.d.ts.map +1 -1
- package/common/decorators/hook.decorator.d.ts +0 -10
- package/common/decorators/hook.decorator.d.ts.map +1 -1
- package/common/decorators/index.d.ts +1 -0
- package/common/decorators/index.d.ts.map +1 -1
- package/common/decorators/skill.decorator.d.ts +105 -0
- package/common/decorators/skill.decorator.d.ts.map +1 -0
- package/common/dynamic/dynamic.adapter.d.ts +14 -4
- package/common/dynamic/dynamic.adapter.d.ts.map +1 -1
- package/common/entries/app.entry.d.ts +2 -0
- package/common/entries/app.entry.d.ts.map +1 -1
- package/common/entries/index.d.ts +1 -0
- package/common/entries/index.d.ts.map +1 -1
- package/common/entries/prompt.entry.d.ts +0 -6
- package/common/entries/prompt.entry.d.ts.map +1 -1
- package/common/entries/resource.entry.d.ts +0 -6
- package/common/entries/resource.entry.d.ts.map +1 -1
- package/common/entries/scope.entry.d.ts +2 -0
- package/common/entries/scope.entry.d.ts.map +1 -1
- package/common/entries/skill.entry.d.ts +95 -0
- package/common/entries/skill.entry.d.ts.map +1 -0
- package/common/entries/tool.entry.d.ts +17 -9
- package/common/entries/tool.entry.d.ts.map +1 -1
- package/common/interfaces/agent.interface.d.ts +35 -6
- package/common/interfaces/agent.interface.d.ts.map +1 -1
- package/common/interfaces/execution-context.interface.d.ts +14 -0
- package/common/interfaces/execution-context.interface.d.ts.map +1 -1
- package/common/interfaces/index.d.ts +1 -0
- package/common/interfaces/index.d.ts.map +1 -1
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts +1 -7
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts.map +1 -1
- package/common/interfaces/internal/registry.interface.d.ts +4 -1
- package/common/interfaces/internal/registry.interface.d.ts.map +1 -1
- package/common/interfaces/skill.interface.d.ts +91 -0
- package/common/interfaces/skill.interface.d.ts.map +1 -0
- package/common/interfaces/tool.interface.d.ts +39 -0
- package/common/interfaces/tool.interface.d.ts.map +1 -1
- package/common/metadata/agent.metadata.d.ts +62 -2
- package/common/metadata/agent.metadata.d.ts.map +1 -1
- package/common/metadata/app.metadata.d.ts +168 -169
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp.metadata.d.ts +2182 -721
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/index.d.ts +1 -0
- package/common/metadata/index.d.ts.map +1 -1
- package/common/metadata/plugin.metadata.d.ts +8 -1
- package/common/metadata/plugin.metadata.d.ts.map +1 -1
- package/common/metadata/skill.metadata.d.ts +366 -0
- package/common/metadata/skill.metadata.d.ts.map +1 -0
- package/common/metadata/tool.metadata.d.ts +71 -0
- package/common/metadata/tool.metadata.d.ts.map +1 -1
- package/common/records/index.d.ts +1 -0
- package/common/records/index.d.ts.map +1 -1
- package/common/records/skill.record.d.ts +55 -0
- package/common/records/skill.record.d.ts.map +1 -0
- package/common/schemas/annotated-class.schema.d.ts +1 -0
- package/common/schemas/annotated-class.schema.d.ts.map +1 -1
- package/common/schemas/http-output.schema.d.ts +24 -24
- package/common/tokens/app.tokens.d.ts.map +1 -1
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
- package/common/tokens/index.d.ts +1 -0
- package/common/tokens/index.d.ts.map +1 -1
- package/common/tokens/plugin.tokens.d.ts +1 -0
- package/common/tokens/plugin.tokens.d.ts.map +1 -1
- package/common/tokens/skill.tokens.d.ts +18 -0
- package/common/tokens/skill.tokens.d.ts.map +1 -0
- package/common/tokens/tool.tokens.d.ts +2 -0
- package/common/tokens/tool.tokens.d.ts.map +1 -1
- package/common/types/auth/session.types.d.ts +21 -0
- package/common/types/auth/session.types.d.ts.map +1 -1
- package/common/types/options/auth/app-auth.schema.d.ts +80 -84
- package/common/types/options/auth/app-auth.schema.d.ts.map +1 -1
- package/common/types/options/auth/index.d.ts +6 -8
- package/common/types/options/auth/index.d.ts.map +1 -1
- package/common/types/options/auth/{auth.interfaces.d.ts → interfaces.d.ts} +17 -48
- package/common/types/options/auth/interfaces.d.ts.map +1 -0
- package/common/types/options/auth/orchestrated.schema.d.ts +160 -84
- package/common/types/options/auth/orchestrated.schema.d.ts.map +1 -1
- package/common/types/options/auth/public.schema.d.ts +0 -21
- package/common/types/options/auth/public.schema.d.ts.map +1 -1
- package/common/types/options/auth/{auth.schema.d.ts → schema.d.ts} +81 -85
- package/common/types/options/auth/schema.d.ts.map +1 -0
- package/common/types/options/auth/shared.schemas.d.ts +12 -0
- package/common/types/options/auth/shared.schemas.d.ts.map +1 -1
- package/common/types/options/auth/transparent.schema.d.ts +0 -21
- package/common/types/options/auth/transparent.schema.d.ts.map +1 -1
- package/common/types/options/auth/typecheck.d.ts +2 -0
- package/common/types/options/auth/typecheck.d.ts.map +1 -0
- package/common/types/options/auth/{auth.utils.d.ts → utils.d.ts} +2 -2
- package/common/types/options/auth/utils.d.ts.map +1 -0
- package/common/types/options/elicitation/index.d.ts +4 -0
- package/common/types/options/elicitation/index.d.ts.map +1 -0
- package/common/types/options/elicitation/interfaces.d.ts +80 -0
- package/common/types/options/elicitation/interfaces.d.ts.map +1 -0
- package/common/types/options/elicitation/schema.d.ts +75 -0
- package/common/types/options/elicitation/schema.d.ts.map +1 -0
- package/common/types/options/ext-apps/index.d.ts +3 -0
- package/common/types/options/ext-apps/index.d.ts.map +1 -0
- package/common/types/options/ext-apps/interfaces.d.ts +2 -0
- package/common/types/options/ext-apps/interfaces.d.ts.map +1 -0
- package/common/types/options/ext-apps/schema.d.ts +80 -0
- package/common/types/options/ext-apps/schema.d.ts.map +1 -0
- package/common/types/options/http/index.d.ts +4 -0
- package/common/types/options/http/index.d.ts.map +1 -0
- package/common/types/options/http/interfaces.d.ts +23 -0
- package/common/types/options/http/interfaces.d.ts.map +1 -0
- package/common/types/options/http/schema.d.ts +18 -0
- package/common/types/options/http/schema.d.ts.map +1 -0
- package/common/types/options/index.d.ts +10 -6
- package/common/types/options/index.d.ts.map +1 -1
- package/common/types/options/logging/index.d.ts +5 -0
- package/common/types/options/logging/index.d.ts.map +1 -0
- package/common/types/options/logging/interfaces.d.ts +41 -0
- package/common/types/options/logging/interfaces.d.ts.map +1 -0
- package/common/types/options/logging/schema.d.ts +24 -0
- package/common/types/options/logging/schema.d.ts.map +1 -0
- package/common/types/options/pagination/index.d.ts +4 -0
- package/common/types/options/pagination/index.d.ts.map +1 -0
- package/common/types/options/pagination/interfaces.d.ts +43 -0
- package/common/types/options/pagination/interfaces.d.ts.map +1 -0
- package/common/types/options/pagination/schema.d.ts +41 -0
- package/common/types/options/pagination/schema.d.ts.map +1 -0
- package/common/types/options/redis/index.d.ts +4 -0
- package/common/types/options/redis/index.d.ts.map +1 -0
- package/common/types/options/redis/interfaces.d.ts +81 -0
- package/common/types/options/redis/interfaces.d.ts.map +1 -0
- package/common/types/options/{redis.options.d.ts → redis/schema.d.ts} +2 -2
- package/common/types/options/redis/schema.d.ts.map +1 -0
- package/common/types/options/server-info/index.d.ts +4 -0
- package/common/types/options/server-info/index.d.ts.map +1 -0
- package/common/types/options/server-info/interfaces.d.ts +27 -0
- package/common/types/options/server-info/interfaces.d.ts.map +1 -0
- package/common/types/options/{server-info.options.d.ts → server-info/schema.d.ts} +13 -10
- package/common/types/options/server-info/schema.d.ts.map +1 -0
- package/common/types/options/session/index.d.ts +4 -0
- package/common/types/options/session/index.d.ts.map +1 -0
- package/common/types/options/session/interfaces.d.ts +66 -0
- package/common/types/options/session/interfaces.d.ts.map +1 -0
- package/common/types/options/session/schema.d.ts +79 -0
- package/common/types/options/session/schema.d.ts.map +1 -0
- package/common/types/options/skills-http/index.d.ts +4 -0
- package/common/types/options/skills-http/index.d.ts.map +1 -0
- package/common/types/options/skills-http/interfaces.d.ts +321 -0
- package/common/types/options/skills-http/interfaces.d.ts.map +1 -0
- package/common/types/options/skills-http/schema.d.ts +139 -0
- package/common/types/options/skills-http/schema.d.ts.map +1 -0
- package/common/types/options/transport/index.d.ts +4 -0
- package/common/types/options/transport/index.d.ts.map +1 -0
- package/common/types/options/transport/interfaces.d.ts +354 -0
- package/common/types/options/transport/interfaces.d.ts.map +1 -0
- package/common/types/options/transport/schema.d.ts +309 -0
- package/common/types/options/transport/schema.d.ts.map +1 -0
- package/common/types/options/transport/typecheck.d.ts +2 -0
- package/common/types/options/transport/typecheck.d.ts.map +1 -0
- package/common/utils/decide-request-intent.utils.d.ts +3 -3
- package/common/utils/decide-request-intent.utils.d.ts.map +1 -1
- package/context/context-extension.d.ts +1 -28
- package/context/context-extension.d.ts.map +1 -1
- package/context/frontmcp-context-storage.d.ts.map +1 -1
- package/context/frontmcp-context.d.ts +36 -39
- package/context/frontmcp-context.d.ts.map +1 -1
- package/context/frontmcp-context.provider.d.ts +3 -9
- package/context/frontmcp-context.provider.d.ts.map +1 -1
- package/context/index.d.ts +5 -20
- package/context/index.d.ts.map +1 -1
- package/context/metadata.utils.d.ts +24 -0
- package/context/metadata.utils.d.ts.map +1 -0
- package/direct/client.types.d.ts +447 -0
- package/direct/client.types.d.ts.map +1 -0
- package/direct/connect.d.ts +188 -0
- package/direct/connect.d.ts.map +1 -0
- package/direct/direct-client.d.ts +7 -0
- package/direct/direct-client.d.ts.map +1 -0
- package/direct/direct-server.d.ts +38 -0
- package/direct/direct-server.d.ts.map +1 -0
- package/direct/direct.types.d.ts +134 -0
- package/direct/direct.types.d.ts.map +1 -0
- package/direct/index.d.ts +15 -0
- package/direct/index.d.ts.map +1 -0
- package/direct/llm-platform.d.ts +94 -0
- package/direct/llm-platform.d.ts.map +1 -0
- package/elicitation/elicitation-fallback.schema.d.ts +32 -0
- package/elicitation/elicitation-fallback.schema.d.ts.map +1 -0
- package/elicitation/elicitation.types.d.ts +160 -0
- package/elicitation/elicitation.types.d.ts.map +1 -0
- package/elicitation/flows/elicitation-request.flow.d.ts +98 -0
- package/elicitation/flows/elicitation-request.flow.d.ts.map +1 -0
- package/elicitation/flows/elicitation-result.flow.d.ts +79 -0
- package/elicitation/flows/elicitation-result.flow.d.ts.map +1 -0
- package/elicitation/flows/index.d.ts +10 -0
- package/elicitation/flows/index.d.ts.map +1 -0
- package/elicitation/helpers/elicit.helper.d.ts +65 -0
- package/elicitation/helpers/elicit.helper.d.ts.map +1 -0
- package/elicitation/helpers/extend-output-schema.d.ts +31 -0
- package/elicitation/helpers/extend-output-schema.d.ts.map +1 -0
- package/elicitation/helpers/fallback.helper.d.ts +60 -0
- package/elicitation/helpers/fallback.helper.d.ts.map +1 -0
- package/elicitation/helpers/index.d.ts +12 -0
- package/elicitation/helpers/index.d.ts.map +1 -0
- package/elicitation/helpers/validate-elicitation-content.d.ts +52 -0
- package/elicitation/helpers/validate-elicitation-content.d.ts.map +1 -0
- package/elicitation/hooks/elicitation.hooks.d.ts +66 -0
- package/elicitation/hooks/elicitation.hooks.d.ts.map +1 -0
- package/elicitation/hooks/index.d.ts +9 -0
- package/elicitation/hooks/index.d.ts.map +1 -0
- package/elicitation/index.d.ts +18 -0
- package/elicitation/index.d.ts.map +1 -0
- package/elicitation/send-elicitation-result.tool.d.ts +18 -0
- package/elicitation/send-elicitation-result.tool.d.ts.map +1 -0
- package/elicitation/store/elicitation-encryption.d.ts +134 -0
- package/elicitation/store/elicitation-encryption.d.ts.map +1 -0
- package/elicitation/store/elicitation-store.factory.d.ts +197 -0
- package/elicitation/store/elicitation-store.factory.d.ts.map +1 -0
- package/elicitation/store/elicitation.store.d.ts +191 -0
- package/elicitation/store/elicitation.store.d.ts.map +1 -0
- package/elicitation/store/encrypted-elicitation.store.d.ts +121 -0
- package/elicitation/store/encrypted-elicitation.store.d.ts.map +1 -0
- package/elicitation/store/index.d.ts +14 -0
- package/elicitation/store/index.d.ts.map +1 -0
- package/elicitation/store/storage-elicitation.store.d.ts +118 -0
- package/elicitation/store/storage-elicitation.store.d.ts.map +1 -0
- package/errors/elicitation.error.d.ts +115 -0
- package/errors/elicitation.error.d.ts.map +1 -0
- package/errors/index.d.ts +1 -0
- package/errors/index.d.ts.map +1 -1
- package/esm/index.mjs +30824 -19537
- package/esm/package.json +13 -7
- package/ext-apps/ext-apps.handler.d.ts +177 -0
- package/ext-apps/ext-apps.handler.d.ts.map +1 -0
- package/ext-apps/ext-apps.types.d.ts +273 -0
- package/ext-apps/ext-apps.types.d.ts.map +1 -0
- package/ext-apps/index.d.ts +13 -0
- package/ext-apps/index.d.ts.map +1 -0
- package/flows/flow.instance.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts +64 -2
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/front-mcp/front-mcp.providers.d.ts +604 -236
- package/front-mcp/front-mcp.providers.d.ts.map +1 -1
- package/index.d.ts +17 -0
- package/index.d.ts.map +1 -1
- package/index.js +31066 -19707
- package/notification/index.d.ts +1 -1
- package/notification/index.d.ts.map +1 -1
- package/notification/notification.service.d.ts +18 -0
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +13 -7
- package/plugin/plugin.registry.d.ts +2 -0
- package/plugin/plugin.registry.d.ts.map +1 -1
- package/provider/provider.registry.d.ts +8 -3
- package/provider/provider.registry.d.ts.map +1 -1
- package/scope/flows/http.request.flow.d.ts +4 -0
- package/scope/flows/http.request.flow.d.ts.map +1 -1
- package/scope/scope.instance.d.ts +74 -0
- package/scope/scope.instance.d.ts.map +1 -1
- package/server/server.instance.d.ts +3 -3
- package/server/server.instance.d.ts.map +1 -1
- package/skill/auth/index.d.ts +10 -0
- package/skill/auth/index.d.ts.map +1 -0
- package/skill/auth/skill-http-auth.d.ts +112 -0
- package/skill/auth/skill-http-auth.d.ts.map +1 -0
- package/skill/cache/index.d.ts +13 -0
- package/skill/cache/index.d.ts.map +1 -0
- package/skill/cache/skill-http-cache.d.ts +144 -0
- package/skill/cache/skill-http-cache.d.ts.map +1 -0
- package/skill/cache/skill-http-cache.factory.d.ts +83 -0
- package/skill/cache/skill-http-cache.factory.d.ts.map +1 -0
- package/skill/cache/skill-http-cache.holder.d.ts +35 -0
- package/skill/cache/skill-http-cache.holder.d.ts.map +1 -0
- package/skill/errors/index.d.ts +3 -0
- package/skill/errors/index.d.ts.map +1 -0
- package/skill/errors/skill-validation.error.d.ts +110 -0
- package/skill/errors/skill-validation.error.d.ts.map +1 -0
- package/skill/errors/tool-not-allowed.error.d.ts +66 -0
- package/skill/errors/tool-not-allowed.error.d.ts.map +1 -0
- package/skill/flows/http/index.d.ts +12 -0
- package/skill/flows/http/index.d.ts.map +1 -0
- package/skill/flows/http/llm-full-txt.flow.d.ts +70 -0
- package/skill/flows/http/llm-full-txt.flow.d.ts.map +1 -0
- package/skill/flows/http/llm-txt.flow.d.ts +77 -0
- package/skill/flows/http/llm-txt.flow.d.ts.map +1 -0
- package/skill/flows/http/skills-api.flow.d.ts +81 -0
- package/skill/flows/http/skills-api.flow.d.ts.map +1 -0
- package/skill/flows/index.d.ts +13 -0
- package/skill/flows/index.d.ts.map +1 -0
- package/skill/flows/load-skill.flow.d.ts +169 -0
- package/skill/flows/load-skill.flow.d.ts.map +1 -0
- package/skill/flows/search-skills.flow.d.ts +101 -0
- package/skill/flows/search-skills.flow.d.ts.map +1 -0
- package/skill/guards/index.d.ts +2 -0
- package/skill/guards/index.d.ts.map +1 -0
- package/skill/guards/tool-authorization.guard.d.ts +87 -0
- package/skill/guards/tool-authorization.guard.d.ts.map +1 -0
- package/skill/hooks/index.d.ts +2 -0
- package/skill/hooks/index.d.ts.map +1 -0
- package/skill/hooks/skill-tool.hook.d.ts +52 -0
- package/skill/hooks/skill-tool.hook.d.ts.map +1 -0
- package/skill/index.d.ts +74 -0
- package/skill/index.d.ts.map +1 -0
- package/skill/providers/external-skill.provider.d.ts +240 -0
- package/skill/providers/external-skill.provider.d.ts.map +1 -0
- package/skill/providers/index.d.ts +12 -0
- package/skill/providers/index.d.ts.map +1 -0
- package/skill/providers/memory-skill.provider.d.ts +97 -0
- package/skill/providers/memory-skill.provider.d.ts.map +1 -0
- package/skill/session/index.d.ts +4 -0
- package/skill/session/index.d.ts.map +1 -0
- package/skill/session/skill-session-store.interface.d.ts +79 -0
- package/skill/session/skill-session-store.interface.d.ts.map +1 -0
- package/skill/session/skill-session.manager.d.ts +137 -0
- package/skill/session/skill-session.manager.d.ts.map +1 -0
- package/skill/session/skill-session.types.d.ts +303 -0
- package/skill/session/skill-session.types.d.ts.map +1 -0
- package/skill/skill-http.utils.d.ts +107 -0
- package/skill/skill-http.utils.d.ts.map +1 -0
- package/skill/skill-mode.utils.d.ts +53 -0
- package/skill/skill-mode.utils.d.ts.map +1 -0
- package/skill/skill-scope.helper.d.ts +55 -0
- package/skill/skill-scope.helper.d.ts.map +1 -0
- package/skill/skill-storage.factory.d.ts +194 -0
- package/skill/skill-storage.factory.d.ts.map +1 -0
- package/skill/skill-storage.interface.d.ts +230 -0
- package/skill/skill-storage.interface.d.ts.map +1 -0
- package/skill/skill-validator.d.ts +63 -0
- package/skill/skill-validator.d.ts.map +1 -0
- package/skill/skill.events.d.ts +88 -0
- package/skill/skill.events.d.ts.map +1 -0
- package/skill/skill.instance.d.ts +92 -0
- package/skill/skill.instance.d.ts.map +1 -0
- package/skill/skill.registry.d.ts +309 -0
- package/skill/skill.registry.d.ts.map +1 -0
- package/skill/skill.utils.d.ts +90 -0
- package/skill/skill.utils.d.ts.map +1 -0
- package/skill/sync/index.d.ts +16 -0
- package/skill/sync/index.d.ts.map +1 -0
- package/skill/sync/memory-sync-state.store.d.ts +49 -0
- package/skill/sync/memory-sync-state.store.d.ts.map +1 -0
- package/skill/sync/skill-hash.d.ts +65 -0
- package/skill/sync/skill-hash.d.ts.map +1 -0
- package/skill/sync/sync-state.interface.d.ts +125 -0
- package/skill/sync/sync-state.interface.d.ts.map +1 -0
- package/skill/tools/index.d.ts +21 -0
- package/skill/tools/index.d.ts.map +1 -0
- package/skill/tools/load-skills.tool.d.ts +76 -0
- package/skill/tools/load-skills.tool.d.ts.map +1 -0
- package/skill/tools/search-skills.tool.d.ts +61 -0
- package/skill/tools/search-skills.tool.d.ts.map +1 -0
- package/tool/flows/call-tool.flow.d.ts +1 -0
- package/tool/flows/call-tool.flow.d.ts.map +1 -1
- package/tool/flows/tools-list.flow.d.ts +15 -0
- package/tool/flows/tools-list.flow.d.ts.map +1 -1
- package/tool/tool.instance.d.ts +8 -0
- package/tool/tool.instance.d.ts.map +1 -1
- package/tool/tool.registry.d.ts +11 -0
- package/tool/tool.registry.d.ts.map +1 -1
- package/tool/tool.utils.d.ts.map +1 -1
- package/tool/ui/template-helpers.d.ts +0 -5
- package/tool/ui/template-helpers.d.ts.map +1 -1
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -1
- package/transport/adapters/transport.local.adapter.d.ts +54 -9
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.sse.adapter.d.ts +11 -2
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.streamable-http.adapter.d.ts +21 -2
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -1
- package/transport/event-stores/event-store.factory.d.ts +96 -0
- package/transport/event-stores/event-store.factory.d.ts.map +1 -0
- package/transport/event-stores/index.d.ts +47 -0
- package/transport/event-stores/index.d.ts.map +1 -0
- package/transport/event-stores/memory.event-store.d.ts +51 -0
- package/transport/event-stores/memory.event-store.d.ts.map +1 -0
- package/transport/event-stores/redis.event-store.d.ts +79 -0
- package/transport/event-stores/redis.event-store.d.ts.map +1 -0
- package/transport/flows/handle.sse.flow.d.ts.map +1 -1
- package/transport/flows/handle.streamable-http.flow.d.ts +3 -1
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -1
- package/transport/in-memory-server.d.ts +85 -0
- package/transport/in-memory-server.d.ts.map +1 -0
- package/transport/index.d.ts +47 -0
- package/transport/index.d.ts.map +1 -1
- package/transport/mcp-handlers/complete-request.handler.d.ts +3 -84
- package/transport/mcp-handlers/complete-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts +3 -128
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/index.d.ts +463 -490
- package/transport/mcp-handlers/index.d.ts.map +1 -1
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts +3 -70
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +3 -72
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-resources-request.handler.d.ts +3 -72
- package/transport/mcp-handlers/list-resources-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-tools-request.handler.d.ts +3 -85
- package/transport/mcp-handlers/list-tools-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/read-resource-request.handler.d.ts +3 -61
- package/transport/mcp-handlers/read-resource-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/skills-list-request.handler.d.ts +9 -0
- package/transport/mcp-handlers/skills-list-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/skills-load-request.handler.d.ts +9 -0
- package/transport/mcp-handlers/skills-load-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/skills-mcp.types.d.ts +157 -0
- package/transport/mcp-handlers/skills-mcp.types.d.ts.map +1 -0
- package/transport/mcp-handlers/skills-search-request.handler.d.ts +9 -0
- package/transport/mcp-handlers/skills-search-request.handler.d.ts.map +1 -0
- package/transport/transport.registry.d.ts +9 -1
- package/transport/transport.registry.d.ts.map +1 -1
- package/transport/transport.types.d.ts +1 -8
- package/transport/transport.types.d.ts.map +1 -1
- package/auth/jwks/dev-key-persistence.d.ts +0 -64
- package/auth/jwks/dev-key-persistence.d.ts.map +0 -1
- package/auth/jwks/index.d.ts +0 -4
- package/auth/jwks/index.d.ts.map +0 -1
- package/auth/jwks/jwks.service.d.ts +0 -58
- package/auth/jwks/jwks.service.d.ts.map +0 -1
- package/auth/jwks/jwks.types.d.ts +0 -33
- package/auth/jwks/jwks.types.d.ts.map +0 -1
- package/auth/jwks/jwks.utils.d.ts +0 -5
- package/auth/jwks/jwks.utils.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.authorize.flow.d.ts +0 -32
- package/auth/oauth/flows/oauth.authorize.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts +0 -47
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.introspect.flow.d.ts +0 -27
- package/auth/oauth/flows/oauth.introspect.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.par.flow.d.ts +0 -28
- package/auth/oauth/flows/oauth.par.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.revoke.flow.d.ts +0 -26
- package/auth/oauth/flows/oauth.revoke.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.token.flow.d.ts +0 -58
- package/auth/oauth/flows/oauth.token.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts +0 -23
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oidc.logout.flow.d.ts +0 -19
- package/auth/oauth/flows/oidc.logout.flow.d.ts.map +0 -1
- package/auth/session/authorization-vault.d.ts +0 -612
- package/auth/session/authorization-vault.d.ts.map +0 -1
- package/auth/session/authorization.store.d.ts +0 -302
- package/auth/session/authorization.store.d.ts.map +0 -1
- package/auth/session/record/session.stateful.d.ts +0 -21
- package/auth/session/record/session.stateful.d.ts.map +0 -1
- package/auth/session/record/session.stateless.d.ts +0 -18
- package/auth/session/record/session.stateless.d.ts.map +0 -1
- package/auth/session/record/session.transparent.d.ts +0 -18
- package/auth/session/record/session.transparent.d.ts.map +0 -1
- package/auth/session/session.crypto.d.ts +0 -8
- package/auth/session/session.crypto.d.ts.map +0 -1
- package/auth/session/session.schema.d.ts +0 -6
- package/auth/session/session.schema.d.ts.map +0 -1
- package/auth/session/token.store.d.ts +0 -36
- package/auth/session/token.store.d.ts.map +0 -1
- package/auth/session/token.vault.d.ts +0 -27
- package/auth/session/token.vault.d.ts.map +0 -1
- package/auth/session/vault-encryption.d.ts +0 -190
- package/auth/session/vault-encryption.d.ts.map +0 -1
- package/auth/utils/audience.validator.d.ts +0 -130
- package/auth/utils/audience.validator.d.ts.map +0 -1
- package/auth/utils/www-authenticate.utils.d.ts +0 -98
- package/auth/utils/www-authenticate.utils.d.ts.map +0 -1
- package/common/migrate/auth-transport.migrate.d.ts +0 -63
- package/common/migrate/auth-transport.migrate.d.ts.map +0 -1
- package/common/migrate/index.d.ts +0 -2
- package/common/migrate/index.d.ts.map +0 -1
- package/common/types/options/auth/auth.interfaces.d.ts.map +0 -1
- package/common/types/options/auth/auth.schema.d.ts.map +0 -1
- package/common/types/options/auth/auth.typecheck.d.ts +0 -2
- package/common/types/options/auth/auth.typecheck.d.ts.map +0 -1
- package/common/types/options/auth/auth.utils.d.ts.map +0 -1
- package/common/types/options/auth/transport.deprecated.d.ts +0 -64
- package/common/types/options/auth/transport.deprecated.d.ts.map +0 -1
- package/common/types/options/http.options.d.ts +0 -15
- package/common/types/options/http.options.d.ts.map +0 -1
- package/common/types/options/logging.options.d.ts +0 -29
- package/common/types/options/logging.options.d.ts.map +0 -1
- package/common/types/options/redis.options.d.ts.map +0 -1
- package/common/types/options/server-info.options.d.ts.map +0 -1
- package/common/types/options/session.options.d.ts +0 -148
- package/common/types/options/session.options.d.ts.map +0 -1
- package/common/types/options/transport.options.d.ts +0 -178
- package/common/types/options/transport.options.d.ts.map +0 -1
- package/context/request-context-storage.d.ts +0 -90
- package/context/request-context-storage.d.ts.map +0 -1
- package/context/request-context.d.ts +0 -185
- package/context/request-context.d.ts.map +0 -1
- package/context/request-context.provider.d.ts +0 -38
- package/context/request-context.provider.d.ts.map +0 -1
- package/context/session-key.provider.d.ts +0 -46
- package/context/session-key.provider.d.ts.map +0 -1
- package/store/adapters/store.base.adapter.d.ts +0 -22
- package/store/adapters/store.base.adapter.d.ts.map +0 -1
- package/store/adapters/store.memory.adapter.d.ts +0 -27
- package/store/adapters/store.memory.adapter.d.ts.map +0 -1
- package/store/adapters/store.redis.adapter.d.ts +0 -34
- package/store/adapters/store.redis.adapter.d.ts.map +0 -1
- package/store/adapters/store.vercel-kv.adapter.d.ts +0 -87
- package/store/adapters/store.vercel-kv.adapter.d.ts.map +0 -1
- package/store/index.d.ts +0 -11
- package/store/index.d.ts.map +0 -1
- package/store/store.factory.d.ts.map +0 -1
- package/store/store.helpers.d.ts +0 -10
- package/store/store.helpers.d.ts.map +0 -1
- package/store/store.registry.d.ts +0 -14
- package/store/store.registry.d.ts.map +0 -1
- package/store/store.tokens.d.ts +0 -4
- package/store/store.tokens.d.ts.map +0 -1
- package/store/store.types.d.ts +0 -65
- package/store/store.types.d.ts.map +0 -1
- package/store/store.utils.d.ts +0 -9
- package/store/store.utils.d.ts.map +0 -1
- package/transport/transport.event-store.d.ts +0 -11
- package/transport/transport.event-store.d.ts.map +0 -1
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vault Encryption
|
|
3
|
-
*
|
|
4
|
-
* Client-side key derivation for zero-knowledge credential storage.
|
|
5
|
-
*
|
|
6
|
-
* Security Model:
|
|
7
|
-
* - The JWT authorization token contains a unique `jti` (JWT ID) claim
|
|
8
|
-
* - A secret portion of the token (or a derived key) is used as the encryption key
|
|
9
|
-
* - The server stores encrypted blobs in Redis but CANNOT decrypt them
|
|
10
|
-
* - Only the client presenting the valid JWT can decrypt their vault
|
|
11
|
-
*
|
|
12
|
-
* Key Derivation:
|
|
13
|
-
* - Input: JWT token (after signature verification)
|
|
14
|
-
* - Extract: jti + a secret claim (e.g., `vaultKey` or derived from signature)
|
|
15
|
-
* - Derive: HKDF-SHA256 to produce AES-256 key
|
|
16
|
-
*
|
|
17
|
-
* Encryption:
|
|
18
|
-
* - Algorithm: AES-256-GCM (authenticated encryption)
|
|
19
|
-
* - IV: Random 12 bytes per encryption (stored with ciphertext)
|
|
20
|
-
* - Auth Tag: 16 bytes (ensures integrity)
|
|
21
|
-
*/
|
|
22
|
-
import { z } from 'zod';
|
|
23
|
-
/**
|
|
24
|
-
* Encrypted data format stored in Redis
|
|
25
|
-
*/
|
|
26
|
-
export declare const encryptedDataSchema: z.ZodObject<{
|
|
27
|
-
v: z.ZodLiteral<1>;
|
|
28
|
-
alg: z.ZodLiteral<"aes-256-gcm">;
|
|
29
|
-
iv: z.ZodString;
|
|
30
|
-
ct: z.ZodString;
|
|
31
|
-
tag: z.ZodString;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type EncryptedData = z.infer<typeof encryptedDataSchema>;
|
|
34
|
-
/**
|
|
35
|
-
* JWT claims required for key derivation
|
|
36
|
-
*/
|
|
37
|
-
export interface VaultKeyDerivationClaims {
|
|
38
|
-
/** JWT ID - unique identifier for this token/vault */
|
|
39
|
-
jti: string;
|
|
40
|
-
/** Vault key material - secret claim added during token generation */
|
|
41
|
-
vaultKey?: string;
|
|
42
|
-
/** Subject - user identifier */
|
|
43
|
-
sub: string;
|
|
44
|
-
/** Issued at timestamp */
|
|
45
|
-
iat: number;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Vault encryption configuration
|
|
49
|
-
*/
|
|
50
|
-
export interface VaultEncryptionConfig {
|
|
51
|
-
/**
|
|
52
|
-
* Server-side pepper added to key derivation
|
|
53
|
-
* This adds defense-in-depth: even with a stolen JWT,
|
|
54
|
-
* attacker needs the pepper to derive the key
|
|
55
|
-
*/
|
|
56
|
-
pepper?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Key derivation info string for HKDF
|
|
59
|
-
* Allows domain separation between different uses
|
|
60
|
-
*/
|
|
61
|
-
hkdfInfo?: string;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* VaultEncryption handles encryption/decryption of vault credentials
|
|
65
|
-
* using keys derived from the client's JWT authorization token.
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```typescript
|
|
69
|
-
* const encryption = new VaultEncryption({ pepper: process.env.VAULT_PEPPER });
|
|
70
|
-
*
|
|
71
|
-
* // After JWT verification, derive the encryption key
|
|
72
|
-
* const key = encryption.deriveKey(jwtClaims);
|
|
73
|
-
*
|
|
74
|
-
* // Encrypt credentials before storing
|
|
75
|
-
* const encrypted = encryption.encrypt(JSON.stringify(credentials), key);
|
|
76
|
-
*
|
|
77
|
-
* // Decrypt when reading
|
|
78
|
-
* const decrypted = encryption.decrypt(encrypted, key);
|
|
79
|
-
* const credentials = JSON.parse(decrypted);
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
export declare class VaultEncryption {
|
|
83
|
-
private readonly pepper;
|
|
84
|
-
private readonly hkdfInfo;
|
|
85
|
-
constructor(config?: VaultEncryptionConfig);
|
|
86
|
-
/**
|
|
87
|
-
* Derive an encryption key from JWT claims
|
|
88
|
-
*
|
|
89
|
-
* The key derivation uses HKDF-like construction:
|
|
90
|
-
* 1. Combine jti + vaultKey + sub + iat + pepper
|
|
91
|
-
* 2. Apply HMAC-SHA256 to derive a 256-bit key
|
|
92
|
-
*
|
|
93
|
-
* @param claims - JWT claims containing key material
|
|
94
|
-
* @returns 32-byte encryption key
|
|
95
|
-
*/
|
|
96
|
-
deriveKey(claims: VaultKeyDerivationClaims): Buffer;
|
|
97
|
-
/**
|
|
98
|
-
* Derive a key directly from the raw JWT token string
|
|
99
|
-
*
|
|
100
|
-
* This is useful when you want to derive the key from the token
|
|
101
|
-
* before or without fully parsing the claims. Uses the token's
|
|
102
|
-
* signature portion as additional entropy.
|
|
103
|
-
*
|
|
104
|
-
* @param token - The raw JWT token string
|
|
105
|
-
* @param claims - Parsed JWT claims
|
|
106
|
-
* @returns 32-byte encryption key
|
|
107
|
-
*/
|
|
108
|
-
deriveKeyFromToken(token: string, claims: VaultKeyDerivationClaims): Buffer;
|
|
109
|
-
/**
|
|
110
|
-
* Encrypt plaintext data using AES-256-GCM
|
|
111
|
-
*
|
|
112
|
-
* @param plaintext - Data to encrypt (typically JSON string)
|
|
113
|
-
* @param key - 32-byte encryption key from deriveKey()
|
|
114
|
-
* @returns Encrypted data object (safe to store in Redis)
|
|
115
|
-
*/
|
|
116
|
-
encrypt(plaintext: string, key: Buffer): EncryptedData;
|
|
117
|
-
/**
|
|
118
|
-
* Decrypt encrypted data using AES-256-GCM
|
|
119
|
-
*
|
|
120
|
-
* @param encrypted - Encrypted data object from encrypt()
|
|
121
|
-
* @param key - 32-byte encryption key from deriveKey()
|
|
122
|
-
* @returns Decrypted plaintext
|
|
123
|
-
* @throws Error if decryption fails (wrong key, tampered data, etc.)
|
|
124
|
-
*/
|
|
125
|
-
decrypt(encrypted: EncryptedData, key: Buffer): string;
|
|
126
|
-
/**
|
|
127
|
-
* Encrypt a JavaScript object (serializes to JSON first)
|
|
128
|
-
*
|
|
129
|
-
* @param data - Object to encrypt
|
|
130
|
-
* @param key - Encryption key
|
|
131
|
-
* @returns Encrypted data
|
|
132
|
-
*/
|
|
133
|
-
encryptObject<T>(data: T, key: Buffer): EncryptedData;
|
|
134
|
-
/**
|
|
135
|
-
* Decrypt and parse a JavaScript object
|
|
136
|
-
*
|
|
137
|
-
* @param encrypted - Encrypted data
|
|
138
|
-
* @param key - Encryption key
|
|
139
|
-
* @returns Decrypted and parsed object
|
|
140
|
-
*/
|
|
141
|
-
decryptObject<T>(encrypted: EncryptedData, key: Buffer): T;
|
|
142
|
-
/**
|
|
143
|
-
* Check if data is in encrypted format
|
|
144
|
-
*
|
|
145
|
-
* @param data - Data to check
|
|
146
|
-
* @returns True if data appears to be encrypted
|
|
147
|
-
*/
|
|
148
|
-
isEncrypted(data: unknown): data is EncryptedData;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Vault entry with encrypted credentials
|
|
152
|
-
*
|
|
153
|
-
* The structure separates:
|
|
154
|
-
* - Metadata (unencrypted): id, userSub, timestamps, app lists
|
|
155
|
-
* - Sensitive data (encrypted): provider tokens, app credentials
|
|
156
|
-
*/
|
|
157
|
-
export declare const encryptedVaultEntrySchema: z.ZodObject<{
|
|
158
|
-
id: z.ZodString;
|
|
159
|
-
userSub: z.ZodString;
|
|
160
|
-
userEmail: z.ZodOptional<z.ZodString>;
|
|
161
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
162
|
-
clientId: z.ZodString;
|
|
163
|
-
createdAt: z.ZodNumber;
|
|
164
|
-
lastAccessAt: z.ZodNumber;
|
|
165
|
-
encryptedData: z.ZodObject<{
|
|
166
|
-
v: z.ZodLiteral<1>;
|
|
167
|
-
alg: z.ZodLiteral<"aes-256-gcm">;
|
|
168
|
-
iv: z.ZodString;
|
|
169
|
-
ct: z.ZodString;
|
|
170
|
-
tag: z.ZodString;
|
|
171
|
-
}, z.core.$strip>;
|
|
172
|
-
authorizedAppIds: z.ZodArray<z.ZodString>;
|
|
173
|
-
skippedAppIds: z.ZodArray<z.ZodString>;
|
|
174
|
-
pendingAuthIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
175
|
-
}, z.core.$strip>;
|
|
176
|
-
export type EncryptedVaultEntry = z.infer<typeof encryptedVaultEntrySchema>;
|
|
177
|
-
/**
|
|
178
|
-
* Sensitive data that gets encrypted
|
|
179
|
-
*/
|
|
180
|
-
export interface VaultSensitiveData {
|
|
181
|
-
/** App credentials */
|
|
182
|
-
appCredentials: Record<string, unknown>;
|
|
183
|
-
/** Consent record */
|
|
184
|
-
consent?: unknown;
|
|
185
|
-
/** Federated login record */
|
|
186
|
-
federated?: unknown;
|
|
187
|
-
/** Pending auth details (URLs, scopes, etc.) */
|
|
188
|
-
pendingAuths: unknown[];
|
|
189
|
-
}
|
|
190
|
-
//# sourceMappingURL=vault-encryption.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vault-encryption.d.ts","sourceRoot":"","sources":["../../../src/auth/session/vault-encryption.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;iBAW9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,sDAAsD;IACtD,GAAG,EAAE,MAAM,CAAC;IACZ,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,0BAA0B;IAC1B,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAMD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEtB,MAAM,GAAE,qBAA0B;IAM9C;;;;;;;;;OASG;IACH,SAAS,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM;IAwBnD;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,GAAG,MAAM;IAuB3E;;;;;;OAMG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,aAAa;IA0BtD;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM;IAiCtD;;;;;;OAMG;IACH,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,aAAa;IAIrD;;;;;;OAMG;IACH,aAAa,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC;IAK1D;;;;;OAKG;IACH,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,aAAa;CAGlD;AAMD;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;iBAuBpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,qBAAqB;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gDAAgD;IAChD,YAAY,EAAE,OAAO,EAAE,CAAC;CACzB"}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Audience Validator
|
|
3
|
-
*
|
|
4
|
-
* Validates JWT audience claims per RFC 7519 and MCP Authorization spec.
|
|
5
|
-
* The audience (aud) claim identifies the recipients that the JWT is intended for.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Validation result
|
|
9
|
-
*/
|
|
10
|
-
export interface AudienceValidationResult {
|
|
11
|
-
/** Whether the audience is valid */
|
|
12
|
-
valid: boolean;
|
|
13
|
-
/** Error message if invalid */
|
|
14
|
-
error?: string;
|
|
15
|
-
/** Matched audience value (if valid) */
|
|
16
|
-
matchedAudience?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Audience validator options
|
|
20
|
-
*/
|
|
21
|
-
export interface AudienceValidatorOptions {
|
|
22
|
-
/**
|
|
23
|
-
* Expected audience values
|
|
24
|
-
* Token must contain at least one of these audiences
|
|
25
|
-
*/
|
|
26
|
-
expectedAudiences: string[];
|
|
27
|
-
/**
|
|
28
|
-
* Whether to allow tokens with no audience claim
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
allowNoAudience?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Case-sensitive comparison
|
|
34
|
-
* @default true
|
|
35
|
-
*/
|
|
36
|
-
caseSensitive?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Allow wildcard matching (e.g., *.example.com)
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
allowWildcards?: boolean;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Validate JWT audience claim
|
|
45
|
-
*
|
|
46
|
-
* @param tokenAudience - The audience claim from the JWT (can be string or array)
|
|
47
|
-
* @param options - Validation options
|
|
48
|
-
* @returns Validation result
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```typescript
|
|
52
|
-
* // Single expected audience
|
|
53
|
-
* validateAudience('https://api.example.com', {
|
|
54
|
-
* expectedAudiences: ['https://api.example.com'],
|
|
55
|
-
* });
|
|
56
|
-
* // => { valid: true, matchedAudience: 'https://api.example.com' }
|
|
57
|
-
*
|
|
58
|
-
* // Multiple audiences in token
|
|
59
|
-
* validateAudience(['aud1', 'aud2', 'aud3'], {
|
|
60
|
-
* expectedAudiences: ['aud2'],
|
|
61
|
-
* });
|
|
62
|
-
* // => { valid: true, matchedAudience: 'aud2' }
|
|
63
|
-
*
|
|
64
|
-
* // No match
|
|
65
|
-
* validateAudience('wrong-aud', {
|
|
66
|
-
* expectedAudiences: ['expected-aud'],
|
|
67
|
-
* });
|
|
68
|
-
* // => { valid: false, error: 'Token audience does not match expected audiences' }
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
export declare function validateAudience(tokenAudience: string | string[] | undefined, options: AudienceValidatorOptions): AudienceValidationResult;
|
|
72
|
-
/**
|
|
73
|
-
* Create an audience validator function
|
|
74
|
-
*
|
|
75
|
-
* @param options - Validator options
|
|
76
|
-
* @returns A validation function that takes token audience and returns validation result
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* ```typescript
|
|
80
|
-
* const validator = createAudienceValidator({
|
|
81
|
-
* expectedAudiences: ['https://api.example.com', 'https://api.example.org'],
|
|
82
|
-
* });
|
|
83
|
-
*
|
|
84
|
-
* validator('https://api.example.com'); // => { valid: true, ... }
|
|
85
|
-
* validator('wrong-aud'); // => { valid: false, ... }
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
export declare function createAudienceValidator(options: AudienceValidatorOptions): (audience: string | string[] | undefined) => AudienceValidationResult;
|
|
89
|
-
/**
|
|
90
|
-
* Derive expected audience from the resource URL
|
|
91
|
-
*
|
|
92
|
-
* Per MCP Authorization spec, the audience should typically be the
|
|
93
|
-
* resource server URL (the MCP server URL).
|
|
94
|
-
*
|
|
95
|
-
* @param resourceUrl - The resource server URL
|
|
96
|
-
* @returns Array of expected audiences
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* ```typescript
|
|
100
|
-
* deriveExpectedAudience('https://api.example.com/v1/mcp');
|
|
101
|
-
* // => ['https://api.example.com/v1/mcp', 'https://api.example.com', 'api.example.com']
|
|
102
|
-
* ```
|
|
103
|
-
*/
|
|
104
|
-
export declare function deriveExpectedAudience(resourceUrl: string): string[];
|
|
105
|
-
/**
|
|
106
|
-
* AudienceValidator class for reusable validation with configuration
|
|
107
|
-
*/
|
|
108
|
-
export declare class AudienceValidator {
|
|
109
|
-
private options;
|
|
110
|
-
constructor(options?: Partial<AudienceValidatorOptions> & {
|
|
111
|
-
expectedAudiences?: string[];
|
|
112
|
-
});
|
|
113
|
-
/**
|
|
114
|
-
* Validate an audience claim
|
|
115
|
-
*/
|
|
116
|
-
validate(audience: string | string[] | undefined): AudienceValidationResult;
|
|
117
|
-
/**
|
|
118
|
-
* Add expected audiences
|
|
119
|
-
*/
|
|
120
|
-
addAudiences(...audiences: string[]): void;
|
|
121
|
-
/**
|
|
122
|
-
* Set expected audiences (replace existing)
|
|
123
|
-
*/
|
|
124
|
-
setAudiences(audiences: string[]): void;
|
|
125
|
-
/**
|
|
126
|
-
* Create validator from resource URL
|
|
127
|
-
*/
|
|
128
|
-
static fromResourceUrl(resourceUrl: string, options?: Omit<AudienceValidatorOptions, 'expectedAudiences'>): AudienceValidator;
|
|
129
|
-
}
|
|
130
|
-
//# sourceMappingURL=audience.validator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audience.validator.d.ts","sourceRoot":"","sources":["../../../src/auth/utils/audience.validator.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,oCAAoC;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAE5B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,gBAAgB,CAC9B,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EAC5C,OAAO,EAAE,wBAAwB,GAChC,wBAAwB,CAyC1B;AAqCD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,wBAAwB,GAChC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,KAAK,wBAAwB,CAEvE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAsBpE;AAED;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,OAAO,CAA2B;gBAE9B,OAAO,GAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG;QAAE,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;KAAO;IAS9F;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,GAAG,wBAAwB;IAI3E;;OAEG;IACH,YAAY,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI;IAI1C;;OAEG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI;IAIvC;;OAEG;IACH,MAAM,CAAC,eAAe,CACpB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,IAAI,CAAC,wBAAwB,EAAE,mBAAmB,CAAM,GAChE,iBAAiB;CAMrB"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WWW-Authenticate Header Builder
|
|
3
|
-
*
|
|
4
|
-
* Implements RFC 9728 (OAuth 2.0 Protected Resource Metadata) and
|
|
5
|
-
* RFC 6750 (Bearer Token Usage) compliant WWW-Authenticate headers.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Error codes per RFC 6750 Section 3.1
|
|
9
|
-
*/
|
|
10
|
-
export type BearerErrorCode = 'invalid_request' | 'invalid_token' | 'insufficient_scope';
|
|
11
|
-
/**
|
|
12
|
-
* Options for building WWW-Authenticate header
|
|
13
|
-
*/
|
|
14
|
-
export interface WwwAuthenticateOptions {
|
|
15
|
-
/**
|
|
16
|
-
* The resource_metadata URL pointing to the PRM document
|
|
17
|
-
* Per RFC 9728, this is the primary mechanism for resource discovery
|
|
18
|
-
*/
|
|
19
|
-
resourceMetadataUrl?: string;
|
|
20
|
-
/**
|
|
21
|
-
* OAuth 2.0 realm (optional per RFC 6750)
|
|
22
|
-
*/
|
|
23
|
-
realm?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Required scopes for the resource (space-delimited)
|
|
26
|
-
*/
|
|
27
|
-
scope?: string | string[];
|
|
28
|
-
/**
|
|
29
|
-
* Error code when authentication fails
|
|
30
|
-
*/
|
|
31
|
-
error?: BearerErrorCode;
|
|
32
|
-
/**
|
|
33
|
-
* Human-readable error description
|
|
34
|
-
*/
|
|
35
|
-
errorDescription?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Error URI pointing to additional information
|
|
38
|
-
*/
|
|
39
|
-
errorUri?: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Build a WWW-Authenticate header for Bearer authentication
|
|
43
|
-
*
|
|
44
|
-
* @param options - Header options
|
|
45
|
-
* @returns The formatted WWW-Authenticate header value
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```typescript
|
|
49
|
-
* // Basic protected resource metadata header
|
|
50
|
-
* buildWwwAuthenticate({
|
|
51
|
-
* resourceMetadataUrl: 'https://api.example.com/.well-known/oauth-protected-resource',
|
|
52
|
-
* });
|
|
53
|
-
* // => 'Bearer resource_metadata="https://api.example.com/.well-known/oauth-protected-resource"'
|
|
54
|
-
*
|
|
55
|
-
* // With error information
|
|
56
|
-
* buildWwwAuthenticate({
|
|
57
|
-
* resourceMetadataUrl: 'https://api.example.com/.well-known/oauth-protected-resource',
|
|
58
|
-
* error: 'insufficient_scope',
|
|
59
|
-
* scope: ['read', 'write'],
|
|
60
|
-
* errorDescription: 'Additional permissions required',
|
|
61
|
-
* });
|
|
62
|
-
* // => 'Bearer resource_metadata="...", error="insufficient_scope", scope="read write", error_description="..."'
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare function buildWwwAuthenticate(options?: WwwAuthenticateOptions): string;
|
|
66
|
-
/**
|
|
67
|
-
* Build the Protected Resource Metadata URL for a given base URL and path
|
|
68
|
-
*
|
|
69
|
-
* @param baseUrl - The server base URL
|
|
70
|
-
* @param entryPath - The entry path prefix
|
|
71
|
-
* @param routeBase - The route base path
|
|
72
|
-
* @returns The full PRM URL
|
|
73
|
-
*/
|
|
74
|
-
export declare function buildPrmUrl(baseUrl: string, entryPath: string, routeBase: string): string;
|
|
75
|
-
/**
|
|
76
|
-
* Build WWW-Authenticate header for unauthorized requests (no token)
|
|
77
|
-
*/
|
|
78
|
-
export declare function buildUnauthorizedHeader(prmUrl: string): string;
|
|
79
|
-
/**
|
|
80
|
-
* Build WWW-Authenticate header for invalid token errors
|
|
81
|
-
*/
|
|
82
|
-
export declare function buildInvalidTokenHeader(prmUrl: string, description?: string): string;
|
|
83
|
-
/**
|
|
84
|
-
* Build WWW-Authenticate header for insufficient scope errors
|
|
85
|
-
*/
|
|
86
|
-
export declare function buildInsufficientScopeHeader(prmUrl: string, requiredScopes: string[], description?: string): string;
|
|
87
|
-
/**
|
|
88
|
-
* Build WWW-Authenticate header for invalid request errors
|
|
89
|
-
*/
|
|
90
|
-
export declare function buildInvalidRequestHeader(prmUrl: string, description?: string): string;
|
|
91
|
-
/**
|
|
92
|
-
* Parse a WWW-Authenticate header value
|
|
93
|
-
*
|
|
94
|
-
* @param header - The WWW-Authenticate header value
|
|
95
|
-
* @returns Parsed header options
|
|
96
|
-
*/
|
|
97
|
-
export declare function parseWwwAuthenticate(header: string): WwwAuthenticateOptions;
|
|
98
|
-
//# sourceMappingURL=www-authenticate.utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"www-authenticate.utils.d.ts","sourceRoot":"","sources":["../../../src/auth/utils/www-authenticate.utils.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH;;GAEG;A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sInput } from '../types/options/transport.options';
|
|
2
|
-
import type { RedisOptionsInput } from '../types/options/redis.options';
|
|
3
|
-
import type { SessionOptions } from '../types/options/session.options';
|
|
4
|
-
/**
|
|
5
|
-
* Old transport config structure (nested under auth)
|
|
6
|
-
*/
|
|
7
|
-
interface OldTransportConfig {
|
|
8
|
-
enableLegacySSE?: boolean;
|
|
9
|
-
enableSseListener?: boolean;
|
|
10
|
-
enableStreamableHttp?: boolean;
|
|
11
|
-
enableStatelessHttp?: boolean;
|
|
12
|
-
enableStatefulHttp?: boolean;
|
|
13
|
-
requireSessionForStreamable?: boolean;
|
|
14
|
-
recreation?: {
|
|
15
|
-
enabled?: boolean;
|
|
16
|
-
redis?: RedisOptionsInput;
|
|
17
|
-
defaultTtlMs?: number;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Old auth config structure (with nested transport)
|
|
22
|
-
*/
|
|
23
|
-
interface OldAuthConfig {
|
|
24
|
-
mode: string;
|
|
25
|
-
transport?: OldTransportConfig;
|
|
26
|
-
[key: string]: unknown;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Metadata structure for migration
|
|
30
|
-
*/
|
|
31
|
-
interface MigratableMetadata {
|
|
32
|
-
auth?: OldAuthConfig;
|
|
33
|
-
session?: SessionOptions;
|
|
34
|
-
transport?: TransportOptionsInput;
|
|
35
|
-
redis?: RedisOptionsInput;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Reset deprecation warning flag (for testing)
|
|
39
|
-
*/
|
|
40
|
-
export declare function resetDeprecationWarning(): void;
|
|
41
|
-
/**
|
|
42
|
-
* Check if config needs migration
|
|
43
|
-
*/
|
|
44
|
-
export declare function needsMigration(metadata: MigratableMetadata): boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Migrate old config structure to new structure
|
|
47
|
-
*
|
|
48
|
-
* Returns the migrated values that should be applied to the metadata
|
|
49
|
-
*/
|
|
50
|
-
export declare function migrateAuthTransportConfig(metadata: MigratableMetadata): {
|
|
51
|
-
transport?: TransportOptionsInput;
|
|
52
|
-
redis?: RedisOptionsInput;
|
|
53
|
-
auth?: OldAuthConfig;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Apply migration to metadata (mutates in place for decorator use)
|
|
57
|
-
*
|
|
58
|
-
* This function takes a metadata object with the old config structure
|
|
59
|
-
* and transforms it to the new structure in place.
|
|
60
|
-
*/
|
|
61
|
-
export declare function applyMigration<T extends MigratableMetadata>(metadata: T): T;
|
|
62
|
-
export {};
|
|
63
|
-
//# sourceMappingURL=auth-transport.migrate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-transport.migrate.d.ts","sourceRoot":"","sources":["../../../src/common/migrate/auth-transport.migrate.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE;;GAEG;AACH,UAAU,kBAAkB;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,KAAK,CAAC,EAAE,iBAAiB,CAAC;QAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED;;GAEG;AACH,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B;AA6BD;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAIpE;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,kBAAkB,GAAG;IACxE,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAoEA;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,kBAAkB,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,CA0B3E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/migrate/index.ts"],"names":[],"mappings":"AAEA,cAAc,0BAA0B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/auth/auth.interfaces.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AAM/E;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,CAAC;IAEzB;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,CAAC;IAE3B;;;OAGG;IACH,SAAS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AG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,aAAa,GAAG,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.typecheck.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/auth/auth.typecheck.ts"],"names":[],"mappings":"AA0GA,OAAO,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.utils.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/auth/auth.utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqB,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAMrH;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,GAAG,WAAW,CAErE;AAMD;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,gBAAgB,GAAG,OAAO,IAAI,iBAAiB,CAElG;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,gBAAgB,GAAG,OAAO,IAAI,sBAAsB,CAE5G;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,gBAAgB,GAAG,OAAO,IAAI,uBAAuB,CAE9G;AAMD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,IAAI,wBAAwB,CAEzG;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,IAAI,yBAAyB,CAE3G;AAMD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAKhE"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Use top-level transport config instead. This will be removed in v1.0.0.
|
|
4
|
-
*/
|
|
5
|
-
export declare const transportRecreationConfigSchema: z.ZodObject<{
|
|
6
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
-
redis: z.ZodOptional<z.ZodObject<{
|
|
8
|
-
host: z.ZodString;
|
|
9
|
-
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
-
password: z.ZodOptional<z.ZodString>;
|
|
11
|
-
db: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
-
tls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
-
keyPrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14
|
-
defaultTtlMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
15
|
-
}, z.core.$strip>>;
|
|
16
|
-
defaultTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Use top-level transport config instead. This will be removed in v1.0.0.
|
|
20
|
-
*/
|
|
21
|
-
export declare const transportConfigSchema: z.ZodObject<{
|
|
22
|
-
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
-
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
-
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
-
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
-
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
-
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
-
recreation: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
29
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
-
redis: z.ZodOptional<z.ZodObject<{
|
|
31
|
-
host: z.ZodString;
|
|
32
|
-
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
33
|
-
password: z.ZodOptional<z.ZodString>;
|
|
34
|
-
db: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
35
|
-
tls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
36
|
-
keyPrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
37
|
-
defaultTtlMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
38
|
-
}, z.core.$strip>>;
|
|
39
|
-
defaultTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
40
|
-
}, z.core.$strip>>>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated Use TransportOptions from transport.options.ts instead
|
|
44
|
-
*/
|
|
45
|
-
export type TransportConfig = z.infer<typeof transportConfigSchema>;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated Use TransportOptionsInput from transport.options.ts instead
|
|
48
|
-
*/
|
|
49
|
-
export type TransportConfigInput = z.input<typeof transportConfigSchema>;
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Use TransportPersistenceConfig from transport.options.ts instead
|
|
52
|
-
*/
|
|
53
|
-
export type TransportRecreationConfig = z.infer<typeof transportRecreationConfigSchema>;
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated Use TransportPersistenceConfigInput from transport.options.ts instead
|
|
56
|
-
*/
|
|
57
|
-
export type TransportRecreationConfigInput = z.input<typeof transportRecreationConfigSchema>;
|
|
58
|
-
/**
|
|
59
|
-
* Default transport configuration values.
|
|
60
|
-
* Single source of truth - generated by parsing empty object through Zod schema.
|
|
61
|
-
* @deprecated Use top-level transport config instead. This will be removed in v1.0.0.
|
|
62
|
-
*/
|
|
63
|
-
export declare const DEFAULT_TRANSPORT_CONFIG: TransportConfig;
|
|
64
|
-
//# sourceMappingURL=transport.deprecated.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transport.deprecated.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/auth/transport.deprecated.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;iBAiBzC,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;iBAQhC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAE7F;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,eAAiD,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { FrontMcpServer } from '../../interfaces';
|
|
3
|
-
export type HttpOptions = {
|
|
4
|
-
port?: number;
|
|
5
|
-
/** MCP JSON-RPC entry ('' or '/mcp'); MUST match PRM resourcePath returned in well-known */
|
|
6
|
-
entryPath?: string;
|
|
7
|
-
hostFactory?: FrontMcpServer | ((config: HttpOptions) => FrontMcpServer);
|
|
8
|
-
};
|
|
9
|
-
export declare const httpOptionsSchema: z.ZodObject<{
|
|
10
|
-
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
11
|
-
entryPath: z.ZodDefault<z.ZodString>;
|
|
12
|
-
hostFactory: z.ZodOptional<z.ZodAny>;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
export type HttpConfig = z.infer<typeof httpOptionsSchema>;
|
|
15
|
-
//# sourceMappingURL=http.options.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http.options.d.ts","sourceRoot":"","sources":["../../../../src/common/types/options/http.options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAElE,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4FAA4F;IAC5F,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,KAAK,cAAc,CAAC,CAAC;CAC1E,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;iBAI5B,CAAC;AAIH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { LogTransportType } from '../../interfaces';
|
|
3
|
-
export declare enum LogLevel {
|
|
4
|
-
Debug = 0,
|
|
5
|
-
Verbose = 1,
|
|
6
|
-
Info = 2,
|
|
7
|
-
Warn = 3,
|
|
8
|
-
Error = 4,
|
|
9
|
-
Off = 100
|
|
10
|
-
}
|
|
11
|
-
export declare const LogLevelName: Record<LogLevel, string>;
|
|
12
|
-
export type LoggingOptions = {
|
|
13
|
-
level?: LogLevel;
|
|
14
|
-
enableConsole?: boolean;
|
|
15
|
-
prefix?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Additional custom LogTransport types to register.
|
|
18
|
-
* @default []
|
|
19
|
-
*/
|
|
20
|
-
transports?: LogTransportType[];
|
|
21
|
-
};
|
|
22
|
-
export declare const loggingOptionsSchema: z.ZodObject<{
|
|
23
|
-
level: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof LogLevel>>>;
|
|
24
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
25
|
-
enableConsole: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
26
|
-
transports: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodCustom<import("libs/di/dist/interfaces/base.interface").Type<unknown>, import("libs/di/dist/interfaces/base.interface").Type<unknown>>>>>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
export type LoggingConfigType = Omit<z.infer<typeof loggingOptionsSchema>, 'transports'>;
|
|
29
|
-
//# sourceMappingURL=logging.options.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logging.options.d.ts","sourceRoot":"","sources":["../../../../src/common/types/options/logging.options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,oBAAY,QAAQ;IAClB,KAAK,IAAI;IACT,OAAO,IAAI;IACX,IAAI,IAAI;IACR,IAAI,IAAI;IACR,KAAK,IAAI;IACT,GAAG,MAAM;CACV;AAED,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAOjD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;iBAKO,CAAC;AAEzC,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAAE,YAAY,CAAC,CAAC"}
|