@frontmcp/sdk 0.7.2 → 0.8.1
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
|
@@ -25,6 +25,9 @@ export declare class TransportService {
|
|
|
25
25
|
private sessionStore?;
|
|
26
26
|
/**
|
|
27
27
|
* Transport persistence configuration
|
|
28
|
+
* - `false`: Explicitly disabled
|
|
29
|
+
* - `object`: Enabled with config (redis, defaultTtlMs)
|
|
30
|
+
* - `undefined`: Not configured
|
|
28
31
|
*/
|
|
29
32
|
private persistenceConfig?;
|
|
30
33
|
/**
|
|
@@ -36,7 +39,12 @@ export declare class TransportService {
|
|
|
36
39
|
* Key: JSON-encoded {t: type, h: tokenHash, s: sessionId}, Value: Promise that resolves when creation completes
|
|
37
40
|
*/
|
|
38
41
|
private readonly creationMutex;
|
|
39
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Get the default TTL for session persistence.
|
|
44
|
+
* Returns undefined if persistence is disabled or not configured.
|
|
45
|
+
*/
|
|
46
|
+
private getDefaultTtlMs;
|
|
47
|
+
constructor(scope: Scope, persistenceConfig?: false | TransportPersistenceConfigInput);
|
|
40
48
|
private initialize;
|
|
41
49
|
destroy(): Promise<void>;
|
|
42
50
|
getTransporter(type: TransportType, token: string, sessionId: string): Promise<Transporter | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.registry.d.ts","sourceRoot":"","sources":["../../src/transport/transport.registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,WAAW,EAIX,aAAa,EAEd,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,cAAc,EAAE,+BAA+B,EAAE,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"transport.registry.d.ts","sourceRoot":"","sources":["../../src/transport/transport.registry.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { AuthenticatedServerRequest } from '../server/server.types';
|
|
2
|
-
import { ElicitResult } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
-
import { ZodType } from 'zod';
|
|
4
|
-
import { Infer } from '../types/zod.types';
|
|
5
2
|
import { ServerResponse } from '../common';
|
|
6
|
-
export type TransportType = 'sse' | 'streamable-http' | 'http' | 'stateless-http';
|
|
3
|
+
export type TransportType = 'sse' | 'streamable-http' | 'http' | 'stateless-http' | 'in-memory' | 'stdio';
|
|
7
4
|
export interface TransportKey {
|
|
8
5
|
type: TransportType;
|
|
9
6
|
token: string;
|
|
@@ -54,8 +51,4 @@ export interface TransportRegistryOptions {
|
|
|
54
51
|
export type TransportTokenBucket = Map<string, Transporter>;
|
|
55
52
|
export type TransportTypeBucket = Map<string, TransportTokenBucket>;
|
|
56
53
|
export type TransportRegistryBucket = Map<TransportType, TransportTypeBucket>;
|
|
57
|
-
export type TypedElicitResult<T extends ZodType> = {
|
|
58
|
-
action: ElicitResult['action'];
|
|
59
|
-
content: Infer<T>;
|
|
60
|
-
};
|
|
61
54
|
//# sourceMappingURL=transport.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.types.d.ts","sourceRoot":"","sources":["../../src/transport/transport.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"transport.types.d.ts","sourceRoot":"","sources":["../../src/transport/transport.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { JSONWebKeySet } from 'jose';
|
|
2
|
-
/**
|
|
3
|
-
* Data structure for persisted development keys
|
|
4
|
-
*/
|
|
5
|
-
export interface DevKeyData {
|
|
6
|
-
/** Key ID (kid) */
|
|
7
|
-
kid: string;
|
|
8
|
-
/** Private key in JWK format (portable) */
|
|
9
|
-
privateKey: JsonWebKey;
|
|
10
|
-
/** Public JWKS for verification */
|
|
11
|
-
publicJwk: JSONWebKeySet;
|
|
12
|
-
/** Key creation timestamp (ms) */
|
|
13
|
-
createdAt: number;
|
|
14
|
-
/** Algorithm used */
|
|
15
|
-
alg: 'RS256' | 'ES256';
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Options for dev key persistence
|
|
19
|
-
*/
|
|
20
|
-
export interface DevKeyPersistenceOptions {
|
|
21
|
-
/**
|
|
22
|
-
* Path to store dev keys
|
|
23
|
-
* @default '.frontmcp/dev-keys.json'
|
|
24
|
-
*/
|
|
25
|
-
keyPath?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Enable persistence in production (NOT RECOMMENDED)
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
forceEnable?: boolean;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if dev key persistence is enabled based on environment and options
|
|
34
|
-
*/
|
|
35
|
-
export declare function isDevKeyPersistenceEnabled(options?: DevKeyPersistenceOptions): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Resolve the key file path
|
|
38
|
-
*/
|
|
39
|
-
export declare function resolveKeyPath(options?: DevKeyPersistenceOptions): string;
|
|
40
|
-
/**
|
|
41
|
-
* Load persisted dev key from file
|
|
42
|
-
*
|
|
43
|
-
* @param options - Persistence options
|
|
44
|
-
* @returns The loaded key data or null if not found/invalid
|
|
45
|
-
*/
|
|
46
|
-
export declare function loadDevKey(options?: DevKeyPersistenceOptions): Promise<DevKeyData | null>;
|
|
47
|
-
/**
|
|
48
|
-
* Save dev key to file
|
|
49
|
-
*
|
|
50
|
-
* Uses atomic write (temp file + rename) to prevent corruption.
|
|
51
|
-
* Sets file permissions to 0o600 (owner read/write only) for security.
|
|
52
|
-
*
|
|
53
|
-
* @param keyData - Key data to persist
|
|
54
|
-
* @param options - Persistence options
|
|
55
|
-
* @returns true if save succeeded, false otherwise
|
|
56
|
-
*/
|
|
57
|
-
export declare function saveDevKey(keyData: DevKeyData, options?: DevKeyPersistenceOptions): Promise<boolean>;
|
|
58
|
-
/**
|
|
59
|
-
* Delete persisted dev key
|
|
60
|
-
*
|
|
61
|
-
* @param options - Persistence options
|
|
62
|
-
*/
|
|
63
|
-
export declare function deleteDevKey(options?: DevKeyPersistenceOptions): Promise<void>;
|
|
64
|
-
//# sourceMappingURL=dev-key-persistence.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-key-persistence.d.ts","sourceRoot":"","sources":["../../../src/auth/jwks/dev-key-persistence.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAIrC;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,mBAAmB;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,2CAA2C;IAC3C,UAAU,EAAE,UAAU,CAAC;IACvB,mCAAmC;IACnC,SAAS,EAAE,aAAa,CAAC;IACzB,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA2GD;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAUtF;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,MAAM,CAUzE;AAED;;;;;GAKG;AACH,wBAAsB,UAAU,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CA6B/F;AAED;;;;;;;;;GASG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC,CAgC1G;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAWpF"}
|
package/auth/jwks/index.d.ts
DELETED
package/auth/jwks/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/jwks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { JSONWebKeySet } from 'jose';
|
|
2
|
-
import { JwksServiceOptions, ProviderVerifyRef, VerifyResult } from './jwks.types';
|
|
3
|
-
export declare class JwksService {
|
|
4
|
-
private readonly opts;
|
|
5
|
-
private warnedProviders;
|
|
6
|
-
private orchestratorKey;
|
|
7
|
-
private providerJwks;
|
|
8
|
-
private keyInitialized;
|
|
9
|
-
private keyInitPromise;
|
|
10
|
-
constructor(opts?: JwksServiceOptions);
|
|
11
|
-
/** Gateway's public JWKS (publish at /.well-known/jwks.json when orchestrated). */
|
|
12
|
-
getPublicJwks(): Promise<JSONWebKeySet>;
|
|
13
|
-
/** Verify a token issued by the gateway itself (orchestrated mode). */
|
|
14
|
-
verifyGatewayToken(token: string, expectedIssuer: string): Promise<VerifyResult>;
|
|
15
|
-
/**
|
|
16
|
-
* Verify a token against candidate transparent providers.
|
|
17
|
-
* Ensures JWKS are available (cached/TTL/AS discovery) per provider.
|
|
18
|
-
*/
|
|
19
|
-
verifyTransparentToken(token: string, candidates: ProviderVerifyRef[]): Promise<VerifyResult>;
|
|
20
|
-
/**
|
|
21
|
-
* Check if the error is due to weak RSA key (< 2048 bits)
|
|
22
|
-
*/
|
|
23
|
-
private isWeakKeyError;
|
|
24
|
-
/**
|
|
25
|
-
* Fallback verification for providers using RSA keys smaller than 2048 bits.
|
|
26
|
-
* Logs a security warning but allows verification to proceed.
|
|
27
|
-
*/
|
|
28
|
-
private verifyWithWeakKey;
|
|
29
|
-
/**
|
|
30
|
-
* Find a matching key from JWKS based on token header
|
|
31
|
-
*/
|
|
32
|
-
private findMatchingKey;
|
|
33
|
-
/** Directly set provider JWKS (e.g., inline keys from config). */
|
|
34
|
-
setProviderJwks(providerId: string, jwks: JSONWebKeySet): void;
|
|
35
|
-
/**
|
|
36
|
-
* Ensure JWKS for a provider:
|
|
37
|
-
* 1) inline jwks (if provided) → cache & return
|
|
38
|
-
* 2) cached & fresh (TTL) → return
|
|
39
|
-
* 3) explicit jwksUri → fetch, cache, return
|
|
40
|
-
* 4) discover jwks_uri via AS → fetch AS metadata, then jwks_uri, cache, return
|
|
41
|
-
*/
|
|
42
|
-
getJwksForProvider(ref: ProviderVerifyRef): Promise<JSONWebKeySet | undefined>;
|
|
43
|
-
/** Return the orchestrator public JWKS (generates/rotates as needed). */
|
|
44
|
-
getOrchestratorJwks(): Promise<JSONWebKeySet>;
|
|
45
|
-
/** Return private signing key + kid for issuing orchestrator tokens. */
|
|
46
|
-
getOrchestratorSigningKey(): Promise<{
|
|
47
|
-
kid: string;
|
|
48
|
-
key: import('node:crypto').KeyObject;
|
|
49
|
-
alg: string;
|
|
50
|
-
}>;
|
|
51
|
-
private tryFetchJwks;
|
|
52
|
-
private tryFetchAsMeta;
|
|
53
|
-
private fetchJson;
|
|
54
|
-
private ensureOrchestratorKey;
|
|
55
|
-
private initializeOrchestratorKey;
|
|
56
|
-
private generateKey;
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=jwks.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jwks.service.d.ts","sourceRoot":"","sources":["../../../src/auth/jwks/jwks.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAuD,aAAa,EAAO,MAAM,MAAM,CAAC;AAE/F,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAYnF,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAEnB;IAEF,OAAO,CAAC,eAAe,CAAqB;IAG5C,OAAO,CAAC,eAAe,CAKrB;IAGF,OAAO,CAAC,YAAY,CAAiE;IAGrF,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,cAAc,CAA4B;gBAEtC,IAAI,CAAC,EAAE,kBAAkB;IAcrC,mFAAmF;IAC7E,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC;IAQ7C,uEAAuE;IACjE,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAqCtF;;;OAGG;IACG,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC;IAqDnG;;OAEG;IACH,OAAO,CAAC,cAAc;IAatB;;;OAGG;YACW,iBAAiB;IA2E/B;;OAEG;IACH,OAAO,CAAC,eAAe;IAqBvB,kEAAkE;IAClE,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa;IAIvD;;;;;;OAMG;IACG,kBAAkB,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;IAmCpF,yEAAyE;IACnE,mBAAmB,IAAI,OAAO,CAAC,aAAa,CAAC;IAKnD,wEAAwE;IAClE,yBAAyB,IAAI,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,OAAO,aAAa,EAAE,SAAS,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;YAShG,YAAY;YAaZ,cAAc;YAQd,SAAS;YAgBT,qBAAqB;YAyBrB,yBAAyB;IAuDvC,OAAO,CAAC,WAAW;CAiBpB"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { JSONWebKeySet } from 'jose';
|
|
2
|
-
import { DevKeyPersistenceOptions } from './dev-key-persistence';
|
|
3
|
-
export type JwksServiceOptions = {
|
|
4
|
-
orchestratorAlg?: 'RS256' | 'ES256';
|
|
5
|
-
rotateDays?: number;
|
|
6
|
-
/** TTL (ms) for cached provider JWKS before attempting refresh. Default: 6h */
|
|
7
|
-
providerJwksTtlMs?: number;
|
|
8
|
-
/** Timeout (ms) for network metadata/JWKS fetches. Default: 5s */
|
|
9
|
-
networkTimeoutMs?: number;
|
|
10
|
-
/**
|
|
11
|
-
* Options for dev key persistence (development mode only by default).
|
|
12
|
-
* When enabled, keys are saved to a file and reloaded on server restart.
|
|
13
|
-
*/
|
|
14
|
-
devKeyPersistence?: DevKeyPersistenceOptions;
|
|
15
|
-
};
|
|
16
|
-
export type { DevKeyPersistenceOptions };
|
|
17
|
-
/** Rich descriptor used by verification & fetching */
|
|
18
|
-
export type ProviderVerifyRef = {
|
|
19
|
-
id: string;
|
|
20
|
-
issuerUrl: string;
|
|
21
|
-
jwksUri?: string;
|
|
22
|
-
jwks?: JSONWebKeySet;
|
|
23
|
-
};
|
|
24
|
-
export type VerifyResult = {
|
|
25
|
-
ok: boolean;
|
|
26
|
-
issuer?: string;
|
|
27
|
-
sub?: string;
|
|
28
|
-
providerId?: string;
|
|
29
|
-
header?: any;
|
|
30
|
-
payload?: any;
|
|
31
|
-
error?: string;
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=jwks.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jwks.types.d.ts","sourceRoot":"","sources":["../../../src/auth/jwks/jwks.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;CAC9C,CAAC;AAEF,YAAY,EAAE,wBAAwB,EAAE,CAAC;AAEzC,sDAAsD;AACtD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function trimSlash(s: string): string;
|
|
2
|
-
export declare function normalizeIssuer(u?: string): string;
|
|
3
|
-
/** Safe, no-verify JWT payload decode (returns undefined on error). */
|
|
4
|
-
export declare function decodeJwtPayloadSafe(token?: string): Record<string, unknown> | undefined;
|
|
5
|
-
//# sourceMappingURL=jwks.utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jwks.utils.d.ts","sourceRoot":"","sources":["../../../src/auth/jwks/jwks.utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,UAElC;AACD,wBAAgB,eAAe,CAAC,CAAC,CAAC,EAAE,MAAM,UAEzC;AAED,uEAAuE;AACvE,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAgBxF"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
/**
|
|
3
|
-
* Authorization Endpoint — GET /oauth/authorize
|
|
4
|
-
*
|
|
5
|
-
* Who calls: Browser via the Client (RP).
|
|
6
|
-
*
|
|
7
|
-
* When: Start of the flow.
|
|
8
|
-
*
|
|
9
|
-
* Purpose: Authenticate the user and obtain consent; returns an authorization code to the client’s redirect URI.
|
|
10
|
-
*
|
|
11
|
-
* Notes: Must support PKCE. Implicit/Hybrid are out in OAuth 2.1.
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* Typical parameter shapes
|
|
15
|
-
*
|
|
16
|
-
* /oauth/authorize (GET)
|
|
17
|
-
*
|
|
18
|
-
* response_type=code, client_id, redirect_uri, scope, state, code_challenge, code_challenge_method=S256, (optionally request_uri from PAR)
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* Quick checklist (security & correctness)
|
|
22
|
-
* - PKCE (S256) required for public clients (and basically for all).
|
|
23
|
-
* - Use authorization code grant only (no implicit/hybrid).
|
|
24
|
-
* - Rotate refresh tokens and bind them to client + user + scopes.
|
|
25
|
-
* - Prefer private_key_jwt or mTLS for confidential clients.
|
|
26
|
-
* - PAR + JAR recommended for higher security.
|
|
27
|
-
* - Consider DPoP (proof-of-possession) to reduce token replay.
|
|
28
|
-
* - Keep codes very short-lived (e.g., ≤60 s) and single-use.
|
|
29
|
-
* - Publish discovery and JWKS, rotate keys safely.
|
|
30
|
-
* - Decide JWT vs opaque access tokens; provide introspection if opaque.
|
|
31
|
-
*/
|
|
32
|
-
//# sourceMappingURL=oauth.authorize.flow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.authorize.flow.d.ts","sourceRoot":"","sources":["../../../../src/auth/oauth/flows/oauth.authorize.flow.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;AACH;;;;;;GAMG;AACH;;;;;;;;;;;GAWG"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Device Authorization — POST /oauth/device_authorization
|
|
3
|
-
*
|
|
4
|
-
* Who calls: Device/TV app.
|
|
5
|
-
*
|
|
6
|
-
* Purpose: Start the device flow (user completes authorization on a second screen).
|
|
7
|
-
*/
|
|
8
|
-
export {};
|
|
9
|
-
/**
|
|
10
|
-
* Quick checklist (security & correctness)
|
|
11
|
-
* - PKCE (S256) required for public clients (and basically for all).
|
|
12
|
-
* - Use authorization code grant only (no implicit/hybrid).
|
|
13
|
-
* - Rotate refresh tokens and bind them to client + user + scopes.
|
|
14
|
-
* - Prefer private_key_jwt or mTLS for confidential clients.
|
|
15
|
-
* - PAR + JAR recommended for higher security.
|
|
16
|
-
* - Consider DPoP (proof-of-possession) to reduce token replay.
|
|
17
|
-
* - Keep codes very short-lived (e.g., ≤60 s) and single-use.
|
|
18
|
-
* - Publish discovery and JWKS, rotate keys safely.
|
|
19
|
-
* - Decide JWT vs opaque access tokens; provide introspection if opaque.
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* OAuth 2.0 Device Authorization Grant (“device code flow”)
|
|
24
|
-
* Who does what (at a glance)
|
|
25
|
-
*
|
|
26
|
-
* Device/TV/CLI (no browser)
|
|
27
|
-
* Calls POST /oauth/device_authorization, shows the user a code + URL, and polls POST /oauth/token.
|
|
28
|
-
*
|
|
29
|
-
* User (on phone/laptop browser)
|
|
30
|
-
* Visits the given verification_uri and authenticates using your normal OAuth login (whatever you already have). No new UI required beyond two tiny endpoints.
|
|
31
|
-
*
|
|
32
|
-
* Auth Server (you)
|
|
33
|
-
* Stores the device transaction and, after the user authenticates, marks it as approved so the device’s /oauth/token polling succeeds.
|
|
34
|
-
*
|
|
35
|
-
* Endpoints you need (only two “new” ones)
|
|
36
|
-
*
|
|
37
|
-
* POST /oauth/device_authorization ✅ (device calls)
|
|
38
|
-
*
|
|
39
|
-
* POST /oauth/token with grant urn:ietf:params:oauth:grant-type:device_code ✅ (device polls)
|
|
40
|
-
*
|
|
41
|
-
* GET /activate ➜ “UI handler” (user lands here from verification_uri — this just redirects into your existing /oauth/authorize)
|
|
42
|
-
*
|
|
43
|
-
* GET /activate/callback ➜ “UI handler” (your existing flow returns here after the user logs in; you flip the device record to approved and show a basic “All set” page)
|
|
44
|
-
*
|
|
45
|
-
* That’s it. No pages with complex consent screens are required; reuse your normal /oauth/authorize
|
|
46
|
-
*/
|
|
47
|
-
//# sourceMappingURL=oauth.device-authorization.flow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.device-authorization.flow.d.ts","sourceRoot":"","sources":["../../../../src/auth/oauth/flows/oauth.device-authorization.flow.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Token Introspection — POST /oauth/introspect
|
|
3
|
-
*
|
|
4
|
-
* Who calls: Resource servers (API gateways).
|
|
5
|
-
*
|
|
6
|
-
* Purpose: Check if a token is active and fetch metadata (subject, scopes, expiry)
|
|
7
|
-
* when you use opaque tokens or want server-side validation (RFC 7662).
|
|
8
|
-
*/
|
|
9
|
-
export {};
|
|
10
|
-
/**
|
|
11
|
-
* Typical parameter shapes
|
|
12
|
-
*
|
|
13
|
-
* /oauth/introspect (POST): token, optional token_type_hint
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* Quick checklist (security & correctness)
|
|
17
|
-
* - PKCE (S256) required for public clients (and basically for all).
|
|
18
|
-
* - Use authorization code grant only (no implicit/hybrid).
|
|
19
|
-
* - Rotate refresh tokens and bind them to client + user + scopes.
|
|
20
|
-
* - Prefer private_key_jwt or mTLS for confidential clients.
|
|
21
|
-
* - PAR + JAR recommended for higher security.
|
|
22
|
-
* - Consider DPoP (proof-of-possession) to reduce token replay.
|
|
23
|
-
* - Keep codes very short-lived (e.g., ≤60 s) and single-use.
|
|
24
|
-
* - Publish discovery and JWKS, rotate keys safely.
|
|
25
|
-
* - Decide JWT vs opaque access tokens; provide introspection if opaque.
|
|
26
|
-
*/
|
|
27
|
-
//# sourceMappingURL=oauth.introspect.flow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.introspect.flow.d.ts","sourceRoot":"","sources":["../../../../src/auth/oauth/flows/oauth.introspect.flow.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAEH;;;;GAIG;AACH;;;;;;;;;;;GAWG"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
/**
|
|
3
|
-
* Pushed Authorization Requests (PAR) — POST /oauth/par
|
|
4
|
-
*
|
|
5
|
-
* Who calls: Client (before sending user to /authorize).
|
|
6
|
-
*
|
|
7
|
-
* Purpose: Client uploads the full authorization request; you return a request_uri the client forwards to /authorize.
|
|
8
|
-
*
|
|
9
|
-
* Why: Prevents parameter tampering and URL-length issues; recommended for high-security setups and with DPoP/JAR.
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Typical parameter shapes
|
|
13
|
-
|
|
14
|
-
* /oauth/par (POST): same authz params as /authorize (client-authenticated), returns { request_uri, expires_in }
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Quick checklist (security & correctness)
|
|
18
|
-
* - PKCE (S256) required for public clients (and basically for all).
|
|
19
|
-
* - Use authorization code grant only (no implicit/hybrid).
|
|
20
|
-
* - Rotate refresh tokens and bind them to client + user + scopes.
|
|
21
|
-
* - Prefer private_key_jwt or mTLS for confidential clients.
|
|
22
|
-
* - PAR + JAR recommended for higher security.
|
|
23
|
-
* - Consider DPoP (proof-of-possession) to reduce token replay.
|
|
24
|
-
* - Keep codes very short-lived (e.g., ≤60 s) and single-use.
|
|
25
|
-
* - Publish discovery and JWKS, rotate keys safely.
|
|
26
|
-
* - Decide JWT vs opaque access tokens; provide introspection if opaque.
|
|
27
|
-
*/
|
|
28
|
-
//# sourceMappingURL=oauth.par.flow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.par.flow.d.ts","sourceRoot":"","sources":["../../../../src/auth/oauth/flows/oauth.par.flow.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;AACH;;;;GAIG;AACH;;;;;;;;;;;GAWG"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
/**
|
|
3
|
-
* Token Revocation — POST /oauth/revoke
|
|
4
|
-
*
|
|
5
|
-
* Who calls: Client.
|
|
6
|
-
*
|
|
7
|
-
* Purpose: Invalidate an access or refresh token early (RFC 7009).
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Typical parameter shapes
|
|
11
|
-
*
|
|
12
|
-
* /oauth/revoke (POST): token, token_type_hint=access_token|refresh_token
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Quick checklist (security & correctness)
|
|
16
|
-
* - PKCE (S256) required for public clients (and basically for all).
|
|
17
|
-
* - Use authorization code grant only (no implicit/hybrid).
|
|
18
|
-
* - Rotate refresh tokens and bind them to client + user + scopes.
|
|
19
|
-
* - Prefer private_key_jwt or mTLS for confidential clients.
|
|
20
|
-
* - PAR + JAR recommended for higher security.
|
|
21
|
-
* - Consider DPoP (proof-of-possession) to reduce token replay.
|
|
22
|
-
* - Keep codes very short-lived (e.g., ≤60 s) and single-use.
|
|
23
|
-
* - Publish discovery and JWKS, rotate keys safely.
|
|
24
|
-
* - Decide JWT vs opaque access tokens; provide introspection if opaque.
|
|
25
|
-
*/
|
|
26
|
-
//# sourceMappingURL=oauth.revoke.flow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.revoke.flow.d.ts","sourceRoot":"","sources":["../../../../src/auth/oauth/flows/oauth.revoke.flow.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH;;;;GAIG;AACH;;;;;;;;;;;GAWG"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Token Endpoint — POST /oauth/token
|
|
3
|
-
*
|
|
4
|
-
* Who calls: Client (server-to-server).
|
|
5
|
-
*
|
|
6
|
-
* When: After getting the code (or for refresh).
|
|
7
|
-
*
|
|
8
|
-
* Purpose: Exchange authorization code + PKCE verifier for access token (and optional refresh token), or refresh an access token.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Typical parameter shapes
|
|
12
|
-
*
|
|
13
|
-
* /oauth/token (POST, application/x-www-form-urlencoded)
|
|
14
|
-
*
|
|
15
|
-
* For code exchange: grant_type=authorization_code, code, redirect_uri, client_id (and auth), code_verifier
|
|
16
|
-
*
|
|
17
|
-
* For refresh: grant_type=refresh_token, refresh_token, client_id (and auth)
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* Quick checklist (security & correctness)
|
|
21
|
-
* - PKCE (S256) required for public clients (and basically for all).
|
|
22
|
-
* - Use authorization code grant only (no implicit/hybrid).
|
|
23
|
-
* - Rotate refresh tokens and bind them to client + user + scopes.
|
|
24
|
-
* - Prefer private_key_jwt or mTLS for confidential clients.
|
|
25
|
-
* - PAR + JAR recommended for higher security.
|
|
26
|
-
* - Consider DPoP (proof-of-possession) to reduce token replay.
|
|
27
|
-
* - Keep codes very short-lived (e.g., ≤60 s) and single-use.
|
|
28
|
-
* - Publish discovery and JWKS, rotate keys safely.
|
|
29
|
-
* - Decide JWT vs opaque access tokens; provide introspection if opaque.
|
|
30
|
-
*/
|
|
31
|
-
export {};
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* OAuth 2.0 Device Authorization Grant (“device code flow”)
|
|
35
|
-
* Who does what (at a glance)
|
|
36
|
-
*
|
|
37
|
-
* Device/TV/CLI (no browser)
|
|
38
|
-
* Calls POST /oauth/device_authorization, shows the user a code + URL, and polls POST /oauth/token.
|
|
39
|
-
*
|
|
40
|
-
* User (on phone/laptop browser)
|
|
41
|
-
* Visits the given verification_uri and authenticates using your normal OAuth login (whatever you already have). No new UI required beyond two tiny endpoints.
|
|
42
|
-
*
|
|
43
|
-
* Auth Server (you)
|
|
44
|
-
* Stores the device transaction and, after the user authenticates, marks it as approved so the device’s /oauth/token polling succeeds.
|
|
45
|
-
*
|
|
46
|
-
* Endpoints you need (only two “new” ones)
|
|
47
|
-
*
|
|
48
|
-
* POST /oauth/device_authorization ✅ (device calls)
|
|
49
|
-
*
|
|
50
|
-
* POST /oauth/token with grant urn:ietf:params:oauth:grant-type:device_code ✅ (device polls)
|
|
51
|
-
*
|
|
52
|
-
* GET /activate ➜ “UI handler” (user lands here from verification_uri — this just redirects into your existing /oauth/authorize)
|
|
53
|
-
*
|
|
54
|
-
* GET /activate/callback ➜ “UI handler” (your existing flow returns here after the user logs in; you flip the device record to approved and show a basic “All set” page)
|
|
55
|
-
*
|
|
56
|
-
* That’s it. No pages with complex consent screens are required; reuse your normal /oauth/authorize
|
|
57
|
-
*/
|
|
58
|
-
//# sourceMappingURL=oauth.token.flow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.token.flow.d.ts","sourceRoot":"","sources":["../../../../src/auth/oauth/flows/oauth.token.flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH;;;;;;;;GAQG;AACH;;;;;;;;;;;GAWG;;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
/**
|
|
3
|
-
* UserInfo (OIDC) — GET/POST /oauth/userinfo (Only if you add OpenID Connect)
|
|
4
|
-
*
|
|
5
|
-
* Who calls: Client with access token.
|
|
6
|
-
*
|
|
7
|
-
* Purpose: Return standard user claims.
|
|
8
|
-
*
|
|
9
|
-
* Note: Requires the openid scope; if you do OIDC, also expose /.well-known/openid-configuration (separate from OAuth discovery).
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Quick checklist (security & correctness)
|
|
13
|
-
* - PKCE (S256) required for public clients (and basically for all).
|
|
14
|
-
* - Use authorization code grant only (no implicit/hybrid).
|
|
15
|
-
* - Rotate refresh tokens and bind them to client + user + scopes.
|
|
16
|
-
* - Prefer private_key_jwt or mTLS for confidential clients.
|
|
17
|
-
* - PAR + JAR recommended for higher security.
|
|
18
|
-
* - Consider DPoP (proof-of-possession) to reduce token replay.
|
|
19
|
-
* - Keep codes very short-lived (e.g., ≤60 s) and single-use.
|
|
20
|
-
* - Publish discovery and JWKS, rotate keys safely.
|
|
21
|
-
* - Decide JWT vs opaque access tokens; provide introspection if opaque.
|
|
22
|
-
*/
|
|
23
|
-
//# sourceMappingURL=oauth.userinfo.flow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.userinfo.flow.d.ts","sourceRoot":"","sources":["../../../../src/auth/oauth/flows/oauth.userinfo.flow.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;AACH;;;;;;;;;;;GAWG"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
/**
|
|
3
|
-
* Session/Logout (OIDC) — e.g., GET /oidc/logout (front-/back-channel variants)
|
|
4
|
-
*
|
|
5
|
-
* Purpose: Coordinate RP logout if you support OIDC logout.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Quick checklist (security & correctness)
|
|
9
|
-
* - PKCE (S256) required for public clients (and basically for all).
|
|
10
|
-
* - Use authorization code grant only (no implicit/hybrid).
|
|
11
|
-
* - Rotate refresh tokens and bind them to client + user + scopes.
|
|
12
|
-
* - Prefer private_key_jwt or mTLS for confidential clients.
|
|
13
|
-
* - PAR + JAR recommended for higher security.
|
|
14
|
-
* - Consider DPoP (proof-of-possession) to reduce token replay.
|
|
15
|
-
* - Keep codes very short-lived (e.g., ≤60 s) and single-use.
|
|
16
|
-
* - Publish discovery and JWKS, rotate keys safely.
|
|
17
|
-
* - Decide JWT vs opaque access tokens; provide introspection if opaque.
|
|
18
|
-
*/
|
|
19
|
-
//# sourceMappingURL=oidc.logout.flow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oidc.logout.flow.d.ts","sourceRoot":"","sources":["../../../../src/auth/oauth/flows/oidc.logout.flow.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH;;;;;;;;;;;GAWG"}
|