@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
|
@@ -1,612 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Authorization Vault
|
|
3
|
-
*
|
|
4
|
-
* Secure storage for stateful authorization sessions.
|
|
5
|
-
* Stores provider tokens, consent selections, and session metadata.
|
|
6
|
-
*
|
|
7
|
-
* Supports multiple credential types:
|
|
8
|
-
* - OAuth tokens (access_token, refresh_token, scopes)
|
|
9
|
-
* - API Keys (key value, header name)
|
|
10
|
-
* - Basic Auth (username, password)
|
|
11
|
-
* - Private Keys (PEM/JWK format for signing)
|
|
12
|
-
* - Custom credentials (extensible)
|
|
13
|
-
*
|
|
14
|
-
* In stateful mode:
|
|
15
|
-
* - Access token is a non-rotatable key to this vault
|
|
16
|
-
* - All sensitive data stored server-side
|
|
17
|
-
* - Supports incremental authorization via links
|
|
18
|
-
*
|
|
19
|
-
* In stateless mode:
|
|
20
|
-
* - No vault used, all data in JWT claims
|
|
21
|
-
* - No incremental authorization support
|
|
22
|
-
*/
|
|
23
|
-
import { z } from 'zod';
|
|
24
|
-
/**
|
|
25
|
-
* Supported credential types for app authentication
|
|
26
|
-
*/
|
|
27
|
-
export declare const credentialTypeSchema: z.ZodEnum<{
|
|
28
|
-
custom: "custom";
|
|
29
|
-
bearer: "bearer";
|
|
30
|
-
basic: "basic";
|
|
31
|
-
oauth: "oauth";
|
|
32
|
-
api_key: "api_key";
|
|
33
|
-
private_key: "private_key";
|
|
34
|
-
mtls: "mtls";
|
|
35
|
-
}>;
|
|
36
|
-
export type CredentialType = z.infer<typeof credentialTypeSchema>;
|
|
37
|
-
/**
|
|
38
|
-
* OAuth credential - standard OAuth 2.0 tokens
|
|
39
|
-
*/
|
|
40
|
-
export declare const oauthCredentialSchema: z.ZodObject<{
|
|
41
|
-
type: z.ZodLiteral<"oauth">;
|
|
42
|
-
accessToken: z.ZodString;
|
|
43
|
-
refreshToken: z.ZodOptional<z.ZodString>;
|
|
44
|
-
tokenType: z.ZodDefault<z.ZodString>;
|
|
45
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
46
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
47
|
-
idToken: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strip>;
|
|
49
|
-
/**
|
|
50
|
-
* API Key credential - sent in header or query param
|
|
51
|
-
*/
|
|
52
|
-
export declare const apiKeyCredentialSchema: z.ZodObject<{
|
|
53
|
-
type: z.ZodLiteral<"api_key">;
|
|
54
|
-
key: z.ZodString;
|
|
55
|
-
headerName: z.ZodDefault<z.ZodString>;
|
|
56
|
-
headerPrefix: z.ZodOptional<z.ZodString>;
|
|
57
|
-
queryParam: z.ZodOptional<z.ZodString>;
|
|
58
|
-
}, z.core.$strip>;
|
|
59
|
-
/**
|
|
60
|
-
* Basic Auth credential - username and password
|
|
61
|
-
*/
|
|
62
|
-
export declare const basicAuthCredentialSchema: z.ZodObject<{
|
|
63
|
-
type: z.ZodLiteral<"basic">;
|
|
64
|
-
username: z.ZodString;
|
|
65
|
-
password: z.ZodString;
|
|
66
|
-
encodedValue: z.ZodOptional<z.ZodString>;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
|
-
/**
|
|
69
|
-
* Bearer token credential - static bearer token
|
|
70
|
-
*/
|
|
71
|
-
export declare const bearerCredentialSchema: z.ZodObject<{
|
|
72
|
-
type: z.ZodLiteral<"bearer">;
|
|
73
|
-
token: z.ZodString;
|
|
74
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
/**
|
|
77
|
-
* Private key credential - for JWT signing or request signing
|
|
78
|
-
*/
|
|
79
|
-
export declare const privateKeyCredentialSchema: z.ZodObject<{
|
|
80
|
-
type: z.ZodLiteral<"private_key">;
|
|
81
|
-
format: z.ZodEnum<{
|
|
82
|
-
pem: "pem";
|
|
83
|
-
jwk: "jwk";
|
|
84
|
-
pkcs8: "pkcs8";
|
|
85
|
-
pkcs12: "pkcs12";
|
|
86
|
-
}>;
|
|
87
|
-
keyData: z.ZodString;
|
|
88
|
-
keyId: z.ZodOptional<z.ZodString>;
|
|
89
|
-
algorithm: z.ZodOptional<z.ZodString>;
|
|
90
|
-
passphrase: z.ZodOptional<z.ZodString>;
|
|
91
|
-
certificate: z.ZodOptional<z.ZodString>;
|
|
92
|
-
}, z.core.$strip>;
|
|
93
|
-
/**
|
|
94
|
-
* mTLS credential - client certificate for mutual TLS
|
|
95
|
-
*/
|
|
96
|
-
export declare const mtlsCredentialSchema: z.ZodObject<{
|
|
97
|
-
type: z.ZodLiteral<"mtls">;
|
|
98
|
-
certificate: z.ZodString;
|
|
99
|
-
privateKey: z.ZodString;
|
|
100
|
-
passphrase: z.ZodOptional<z.ZodString>;
|
|
101
|
-
caCertificate: z.ZodOptional<z.ZodString>;
|
|
102
|
-
}, z.core.$strip>;
|
|
103
|
-
/**
|
|
104
|
-
* Custom credential - extensible for app-specific auth
|
|
105
|
-
*/
|
|
106
|
-
export declare const customCredentialSchema: z.ZodObject<{
|
|
107
|
-
type: z.ZodLiteral<"custom">;
|
|
108
|
-
customType: z.ZodString;
|
|
109
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
110
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
111
|
-
}, z.core.$strip>;
|
|
112
|
-
/**
|
|
113
|
-
* Union of all credential types
|
|
114
|
-
*/
|
|
115
|
-
export declare const credentialSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
116
|
-
type: z.ZodLiteral<"oauth">;
|
|
117
|
-
accessToken: z.ZodString;
|
|
118
|
-
refreshToken: z.ZodOptional<z.ZodString>;
|
|
119
|
-
tokenType: z.ZodDefault<z.ZodString>;
|
|
120
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
121
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
122
|
-
idToken: z.ZodOptional<z.ZodString>;
|
|
123
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
124
|
-
type: z.ZodLiteral<"api_key">;
|
|
125
|
-
key: z.ZodString;
|
|
126
|
-
headerName: z.ZodDefault<z.ZodString>;
|
|
127
|
-
headerPrefix: z.ZodOptional<z.ZodString>;
|
|
128
|
-
queryParam: z.ZodOptional<z.ZodString>;
|
|
129
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
-
type: z.ZodLiteral<"basic">;
|
|
131
|
-
username: z.ZodString;
|
|
132
|
-
password: z.ZodString;
|
|
133
|
-
encodedValue: z.ZodOptional<z.ZodString>;
|
|
134
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
135
|
-
type: z.ZodLiteral<"bearer">;
|
|
136
|
-
token: z.ZodString;
|
|
137
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
138
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
139
|
-
type: z.ZodLiteral<"private_key">;
|
|
140
|
-
format: z.ZodEnum<{
|
|
141
|
-
pem: "pem";
|
|
142
|
-
jwk: "jwk";
|
|
143
|
-
pkcs8: "pkcs8";
|
|
144
|
-
pkcs12: "pkcs12";
|
|
145
|
-
}>;
|
|
146
|
-
keyData: z.ZodString;
|
|
147
|
-
keyId: z.ZodOptional<z.ZodString>;
|
|
148
|
-
algorithm: z.ZodOptional<z.ZodString>;
|
|
149
|
-
passphrase: z.ZodOptional<z.ZodString>;
|
|
150
|
-
certificate: z.ZodOptional<z.ZodString>;
|
|
151
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
152
|
-
type: z.ZodLiteral<"mtls">;
|
|
153
|
-
certificate: z.ZodString;
|
|
154
|
-
privateKey: z.ZodString;
|
|
155
|
-
passphrase: z.ZodOptional<z.ZodString>;
|
|
156
|
-
caCertificate: z.ZodOptional<z.ZodString>;
|
|
157
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
158
|
-
type: z.ZodLiteral<"custom">;
|
|
159
|
-
customType: z.ZodString;
|
|
160
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
161
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
162
|
-
}, z.core.$strip>], "type">;
|
|
163
|
-
export type OAuthCredential = z.infer<typeof oauthCredentialSchema>;
|
|
164
|
-
export type ApiKeyCredential = z.infer<typeof apiKeyCredentialSchema>;
|
|
165
|
-
export type BasicAuthCredential = z.infer<typeof basicAuthCredentialSchema>;
|
|
166
|
-
export type BearerCredential = z.infer<typeof bearerCredentialSchema>;
|
|
167
|
-
export type PrivateKeyCredential = z.infer<typeof privateKeyCredentialSchema>;
|
|
168
|
-
export type MtlsCredential = z.infer<typeof mtlsCredentialSchema>;
|
|
169
|
-
export type CustomCredential = z.infer<typeof customCredentialSchema>;
|
|
170
|
-
export type Credential = z.infer<typeof credentialSchema>;
|
|
171
|
-
/**
|
|
172
|
-
* Credential stored for an app in the vault
|
|
173
|
-
*/
|
|
174
|
-
export declare const appCredentialSchema: z.ZodObject<{
|
|
175
|
-
appId: z.ZodString;
|
|
176
|
-
providerId: z.ZodString;
|
|
177
|
-
credential: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
178
|
-
type: z.ZodLiteral<"oauth">;
|
|
179
|
-
accessToken: z.ZodString;
|
|
180
|
-
refreshToken: z.ZodOptional<z.ZodString>;
|
|
181
|
-
tokenType: z.ZodDefault<z.ZodString>;
|
|
182
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
183
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
184
|
-
idToken: z.ZodOptional<z.ZodString>;
|
|
185
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
186
|
-
type: z.ZodLiteral<"api_key">;
|
|
187
|
-
key: z.ZodString;
|
|
188
|
-
headerName: z.ZodDefault<z.ZodString>;
|
|
189
|
-
headerPrefix: z.ZodOptional<z.ZodString>;
|
|
190
|
-
queryParam: z.ZodOptional<z.ZodString>;
|
|
191
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
192
|
-
type: z.ZodLiteral<"basic">;
|
|
193
|
-
username: z.ZodString;
|
|
194
|
-
password: z.ZodString;
|
|
195
|
-
encodedValue: z.ZodOptional<z.ZodString>;
|
|
196
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
197
|
-
type: z.ZodLiteral<"bearer">;
|
|
198
|
-
token: z.ZodString;
|
|
199
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
200
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
201
|
-
type: z.ZodLiteral<"private_key">;
|
|
202
|
-
format: z.ZodEnum<{
|
|
203
|
-
pem: "pem";
|
|
204
|
-
jwk: "jwk";
|
|
205
|
-
pkcs8: "pkcs8";
|
|
206
|
-
pkcs12: "pkcs12";
|
|
207
|
-
}>;
|
|
208
|
-
keyData: z.ZodString;
|
|
209
|
-
keyId: z.ZodOptional<z.ZodString>;
|
|
210
|
-
algorithm: z.ZodOptional<z.ZodString>;
|
|
211
|
-
passphrase: z.ZodOptional<z.ZodString>;
|
|
212
|
-
certificate: z.ZodOptional<z.ZodString>;
|
|
213
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
214
|
-
type: z.ZodLiteral<"mtls">;
|
|
215
|
-
certificate: z.ZodString;
|
|
216
|
-
privateKey: z.ZodString;
|
|
217
|
-
passphrase: z.ZodOptional<z.ZodString>;
|
|
218
|
-
caCertificate: z.ZodOptional<z.ZodString>;
|
|
219
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
220
|
-
type: z.ZodLiteral<"custom">;
|
|
221
|
-
customType: z.ZodString;
|
|
222
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
223
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
224
|
-
}, z.core.$strip>], "type">;
|
|
225
|
-
acquiredAt: z.ZodNumber;
|
|
226
|
-
lastUsedAt: z.ZodOptional<z.ZodNumber>;
|
|
227
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
228
|
-
isValid: z.ZodDefault<z.ZodBoolean>;
|
|
229
|
-
invalidReason: z.ZodOptional<z.ZodString>;
|
|
230
|
-
userInfo: z.ZodOptional<z.ZodObject<{
|
|
231
|
-
sub: z.ZodOptional<z.ZodString>;
|
|
232
|
-
email: z.ZodOptional<z.ZodString>;
|
|
233
|
-
name: z.ZodOptional<z.ZodString>;
|
|
234
|
-
}, z.core.$strip>>;
|
|
235
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
236
|
-
}, z.core.$strip>;
|
|
237
|
-
export type AppCredential = z.infer<typeof appCredentialSchema>;
|
|
238
|
-
/**
|
|
239
|
-
* Consent record stored in vault
|
|
240
|
-
*/
|
|
241
|
-
export declare const vaultConsentRecordSchema: z.ZodObject<{
|
|
242
|
-
enabled: z.ZodBoolean;
|
|
243
|
-
selectedToolIds: z.ZodArray<z.ZodString>;
|
|
244
|
-
availableToolIds: z.ZodArray<z.ZodString>;
|
|
245
|
-
consentedAt: z.ZodNumber;
|
|
246
|
-
version: z.ZodDefault<z.ZodString>;
|
|
247
|
-
}, z.core.$strip>;
|
|
248
|
-
/**
|
|
249
|
-
* Federated login record stored in vault
|
|
250
|
-
*/
|
|
251
|
-
export declare const vaultFederatedRecordSchema: z.ZodObject<{
|
|
252
|
-
selectedProviderIds: z.ZodArray<z.ZodString>;
|
|
253
|
-
skippedProviderIds: z.ZodArray<z.ZodString>;
|
|
254
|
-
primaryProviderId: z.ZodOptional<z.ZodString>;
|
|
255
|
-
completedAt: z.ZodNumber;
|
|
256
|
-
}, z.core.$strip>;
|
|
257
|
-
/**
|
|
258
|
-
* Pending incremental authorization request
|
|
259
|
-
*/
|
|
260
|
-
export declare const pendingIncrementalAuthSchema: z.ZodObject<{
|
|
261
|
-
id: z.ZodString;
|
|
262
|
-
appId: z.ZodString;
|
|
263
|
-
toolId: z.ZodOptional<z.ZodString>;
|
|
264
|
-
authUrl: z.ZodString;
|
|
265
|
-
requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
266
|
-
elicitId: z.ZodOptional<z.ZodString>;
|
|
267
|
-
createdAt: z.ZodNumber;
|
|
268
|
-
expiresAt: z.ZodNumber;
|
|
269
|
-
status: z.ZodEnum<{
|
|
270
|
-
completed: "completed";
|
|
271
|
-
cancelled: "cancelled";
|
|
272
|
-
pending: "pending";
|
|
273
|
-
expired: "expired";
|
|
274
|
-
}>;
|
|
275
|
-
}, z.core.$strip>;
|
|
276
|
-
/**
|
|
277
|
-
* Authorization vault entry (the full session state)
|
|
278
|
-
*/
|
|
279
|
-
export declare const authorizationVaultEntrySchema: z.ZodObject<{
|
|
280
|
-
id: z.ZodString;
|
|
281
|
-
userSub: z.ZodString;
|
|
282
|
-
userEmail: z.ZodOptional<z.ZodString>;
|
|
283
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
284
|
-
clientId: z.ZodString;
|
|
285
|
-
createdAt: z.ZodNumber;
|
|
286
|
-
lastAccessAt: z.ZodNumber;
|
|
287
|
-
appCredentials: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
288
|
-
appId: z.ZodString;
|
|
289
|
-
providerId: z.ZodString;
|
|
290
|
-
credential: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
291
|
-
type: z.ZodLiteral<"oauth">;
|
|
292
|
-
accessToken: z.ZodString;
|
|
293
|
-
refreshToken: z.ZodOptional<z.ZodString>;
|
|
294
|
-
tokenType: z.ZodDefault<z.ZodString>;
|
|
295
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
296
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
297
|
-
idToken: z.ZodOptional<z.ZodString>;
|
|
298
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
299
|
-
type: z.ZodLiteral<"api_key">;
|
|
300
|
-
key: z.ZodString;
|
|
301
|
-
headerName: z.ZodDefault<z.ZodString>;
|
|
302
|
-
headerPrefix: z.ZodOptional<z.ZodString>;
|
|
303
|
-
queryParam: z.ZodOptional<z.ZodString>;
|
|
304
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
305
|
-
type: z.ZodLiteral<"basic">;
|
|
306
|
-
username: z.ZodString;
|
|
307
|
-
password: z.ZodString;
|
|
308
|
-
encodedValue: z.ZodOptional<z.ZodString>;
|
|
309
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
310
|
-
type: z.ZodLiteral<"bearer">;
|
|
311
|
-
token: z.ZodString;
|
|
312
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
313
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
314
|
-
type: z.ZodLiteral<"private_key">;
|
|
315
|
-
format: z.ZodEnum<{
|
|
316
|
-
pem: "pem";
|
|
317
|
-
jwk: "jwk";
|
|
318
|
-
pkcs8: "pkcs8";
|
|
319
|
-
pkcs12: "pkcs12";
|
|
320
|
-
}>;
|
|
321
|
-
keyData: z.ZodString;
|
|
322
|
-
keyId: z.ZodOptional<z.ZodString>;
|
|
323
|
-
algorithm: z.ZodOptional<z.ZodString>;
|
|
324
|
-
passphrase: z.ZodOptional<z.ZodString>;
|
|
325
|
-
certificate: z.ZodOptional<z.ZodString>;
|
|
326
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
327
|
-
type: z.ZodLiteral<"mtls">;
|
|
328
|
-
certificate: z.ZodString;
|
|
329
|
-
privateKey: z.ZodString;
|
|
330
|
-
passphrase: z.ZodOptional<z.ZodString>;
|
|
331
|
-
caCertificate: z.ZodOptional<z.ZodString>;
|
|
332
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
-
type: z.ZodLiteral<"custom">;
|
|
334
|
-
customType: z.ZodString;
|
|
335
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
336
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
337
|
-
}, z.core.$strip>], "type">;
|
|
338
|
-
acquiredAt: z.ZodNumber;
|
|
339
|
-
lastUsedAt: z.ZodOptional<z.ZodNumber>;
|
|
340
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
341
|
-
isValid: z.ZodDefault<z.ZodBoolean>;
|
|
342
|
-
invalidReason: z.ZodOptional<z.ZodString>;
|
|
343
|
-
userInfo: z.ZodOptional<z.ZodObject<{
|
|
344
|
-
sub: z.ZodOptional<z.ZodString>;
|
|
345
|
-
email: z.ZodOptional<z.ZodString>;
|
|
346
|
-
name: z.ZodOptional<z.ZodString>;
|
|
347
|
-
}, z.core.$strip>>;
|
|
348
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
349
|
-
}, z.core.$strip>>>;
|
|
350
|
-
consent: z.ZodOptional<z.ZodObject<{
|
|
351
|
-
enabled: z.ZodBoolean;
|
|
352
|
-
selectedToolIds: z.ZodArray<z.ZodString>;
|
|
353
|
-
availableToolIds: z.ZodArray<z.ZodString>;
|
|
354
|
-
consentedAt: z.ZodNumber;
|
|
355
|
-
version: z.ZodDefault<z.ZodString>;
|
|
356
|
-
}, z.core.$strip>>;
|
|
357
|
-
federated: z.ZodOptional<z.ZodObject<{
|
|
358
|
-
selectedProviderIds: z.ZodArray<z.ZodString>;
|
|
359
|
-
skippedProviderIds: z.ZodArray<z.ZodString>;
|
|
360
|
-
primaryProviderId: z.ZodOptional<z.ZodString>;
|
|
361
|
-
completedAt: z.ZodNumber;
|
|
362
|
-
}, z.core.$strip>>;
|
|
363
|
-
pendingAuths: z.ZodArray<z.ZodObject<{
|
|
364
|
-
id: z.ZodString;
|
|
365
|
-
appId: z.ZodString;
|
|
366
|
-
toolId: z.ZodOptional<z.ZodString>;
|
|
367
|
-
authUrl: z.ZodString;
|
|
368
|
-
requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
369
|
-
elicitId: z.ZodOptional<z.ZodString>;
|
|
370
|
-
createdAt: z.ZodNumber;
|
|
371
|
-
expiresAt: z.ZodNumber;
|
|
372
|
-
status: z.ZodEnum<{
|
|
373
|
-
completed: "completed";
|
|
374
|
-
cancelled: "cancelled";
|
|
375
|
-
pending: "pending";
|
|
376
|
-
expired: "expired";
|
|
377
|
-
}>;
|
|
378
|
-
}, z.core.$strip>>;
|
|
379
|
-
authorizedAppIds: z.ZodArray<z.ZodString>;
|
|
380
|
-
skippedAppIds: z.ZodArray<z.ZodString>;
|
|
381
|
-
}, z.core.$strip>;
|
|
382
|
-
export type VaultConsentRecord = z.infer<typeof vaultConsentRecordSchema>;
|
|
383
|
-
export type VaultFederatedRecord = z.infer<typeof vaultFederatedRecordSchema>;
|
|
384
|
-
export type PendingIncrementalAuth = z.infer<typeof pendingIncrementalAuthSchema>;
|
|
385
|
-
export type AuthorizationVaultEntry = z.infer<typeof authorizationVaultEntrySchema>;
|
|
386
|
-
export interface AuthorizationVault {
|
|
387
|
-
/**
|
|
388
|
-
* Create a new vault entry
|
|
389
|
-
*/
|
|
390
|
-
create(params: {
|
|
391
|
-
userSub: string;
|
|
392
|
-
userEmail?: string;
|
|
393
|
-
userName?: string;
|
|
394
|
-
clientId: string;
|
|
395
|
-
consent?: VaultConsentRecord;
|
|
396
|
-
federated?: VaultFederatedRecord;
|
|
397
|
-
authorizedAppIds?: string[];
|
|
398
|
-
skippedAppIds?: string[];
|
|
399
|
-
}): Promise<AuthorizationVaultEntry>;
|
|
400
|
-
/**
|
|
401
|
-
* Get vault entry by ID
|
|
402
|
-
*/
|
|
403
|
-
get(id: string): Promise<AuthorizationVaultEntry | null>;
|
|
404
|
-
/**
|
|
405
|
-
* Update vault entry
|
|
406
|
-
*/
|
|
407
|
-
update(id: string, updates: Partial<AuthorizationVaultEntry>): Promise<void>;
|
|
408
|
-
/**
|
|
409
|
-
* Delete vault entry
|
|
410
|
-
*/
|
|
411
|
-
delete(id: string): Promise<void>;
|
|
412
|
-
/**
|
|
413
|
-
* Update consent in the vault
|
|
414
|
-
*/
|
|
415
|
-
updateConsent(vaultId: string, consent: VaultConsentRecord): Promise<void>;
|
|
416
|
-
/**
|
|
417
|
-
* Add app to authorized list (for incremental auth)
|
|
418
|
-
*/
|
|
419
|
-
authorizeApp(vaultId: string, appId: string): Promise<void>;
|
|
420
|
-
/**
|
|
421
|
-
* Create a pending incremental auth request
|
|
422
|
-
*/
|
|
423
|
-
createPendingAuth(vaultId: string, params: {
|
|
424
|
-
appId: string;
|
|
425
|
-
toolId?: string;
|
|
426
|
-
authUrl: string;
|
|
427
|
-
requiredScopes?: string[];
|
|
428
|
-
elicitId?: string;
|
|
429
|
-
ttlMs?: number;
|
|
430
|
-
}): Promise<PendingIncrementalAuth>;
|
|
431
|
-
/**
|
|
432
|
-
* Get pending auth by ID
|
|
433
|
-
*/
|
|
434
|
-
getPendingAuth(vaultId: string, pendingAuthId: string): Promise<PendingIncrementalAuth | null>;
|
|
435
|
-
/**
|
|
436
|
-
* Complete a pending incremental auth
|
|
437
|
-
*/
|
|
438
|
-
completePendingAuth(vaultId: string, pendingAuthId: string): Promise<void>;
|
|
439
|
-
/**
|
|
440
|
-
* Cancel a pending incremental auth
|
|
441
|
-
*/
|
|
442
|
-
cancelPendingAuth(vaultId: string, pendingAuthId: string): Promise<void>;
|
|
443
|
-
/**
|
|
444
|
-
* Check if app is authorized
|
|
445
|
-
*/
|
|
446
|
-
isAppAuthorized(vaultId: string, appId: string): Promise<boolean>;
|
|
447
|
-
/**
|
|
448
|
-
* Get all pending auths for a vault
|
|
449
|
-
*/
|
|
450
|
-
getPendingAuths(vaultId: string): Promise<PendingIncrementalAuth[]>;
|
|
451
|
-
/**
|
|
452
|
-
* Add an app credential to the vault
|
|
453
|
-
* Only stores if app is authorized AND (consent disabled OR app tools in consent)
|
|
454
|
-
*/
|
|
455
|
-
addAppCredential(vaultId: string, credential: AppCredential): Promise<void>;
|
|
456
|
-
/**
|
|
457
|
-
* Remove an app credential from the vault
|
|
458
|
-
*/
|
|
459
|
-
removeAppCredential(vaultId: string, appId: string, providerId: string): Promise<void>;
|
|
460
|
-
/**
|
|
461
|
-
* Get all credentials for a specific app
|
|
462
|
-
*/
|
|
463
|
-
getAppCredentials(vaultId: string, appId: string): Promise<AppCredential[]>;
|
|
464
|
-
/**
|
|
465
|
-
* Get a specific credential for an app and provider
|
|
466
|
-
*/
|
|
467
|
-
getCredential(vaultId: string, appId: string, providerId: string): Promise<AppCredential | null>;
|
|
468
|
-
/**
|
|
469
|
-
* Get all credentials in the vault (filtered by consent if enabled)
|
|
470
|
-
* @param filterByConsent If true, only returns credentials for apps with consented tools
|
|
471
|
-
*/
|
|
472
|
-
getAllCredentials(vaultId: string, filterByConsent?: boolean): Promise<AppCredential[]>;
|
|
473
|
-
/**
|
|
474
|
-
* Update credential metadata (last used, validity, etc.)
|
|
475
|
-
*/
|
|
476
|
-
updateCredential(vaultId: string, appId: string, providerId: string, updates: Partial<Pick<AppCredential, 'lastUsedAt' | 'isValid' | 'invalidReason' | 'expiresAt' | 'metadata'>>): Promise<void>;
|
|
477
|
-
/**
|
|
478
|
-
* Check if a credential should be stored based on consent
|
|
479
|
-
* Returns true if:
|
|
480
|
-
* - Consent is disabled, OR
|
|
481
|
-
* - The app has at least one tool in the consent selection
|
|
482
|
-
*/
|
|
483
|
-
shouldStoreCredential(vaultId: string, appId: string, toolIds?: string[]): Promise<boolean>;
|
|
484
|
-
/**
|
|
485
|
-
* Invalidate a credential (mark as invalid without removing)
|
|
486
|
-
*/
|
|
487
|
-
invalidateCredential(vaultId: string, appId: string, providerId: string, reason: string): Promise<void>;
|
|
488
|
-
/**
|
|
489
|
-
* Refresh an OAuth credential (update tokens)
|
|
490
|
-
*/
|
|
491
|
-
refreshOAuthCredential(vaultId: string, appId: string, providerId: string, tokens: {
|
|
492
|
-
accessToken: string;
|
|
493
|
-
refreshToken?: string;
|
|
494
|
-
expiresAt?: number;
|
|
495
|
-
}): Promise<void>;
|
|
496
|
-
/**
|
|
497
|
-
* Cleanup expired entries and pending auths
|
|
498
|
-
*/
|
|
499
|
-
cleanup(): Promise<void>;
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* In-Memory Authorization Vault
|
|
503
|
-
*
|
|
504
|
-
* Development/testing implementation. Data is lost on restart.
|
|
505
|
-
* For production, use RedisAuthorizationVault.
|
|
506
|
-
*/
|
|
507
|
-
export declare class InMemoryAuthorizationVault implements AuthorizationVault {
|
|
508
|
-
private vaults;
|
|
509
|
-
/** Default TTL for pending auth requests (10 minutes) */
|
|
510
|
-
private readonly pendingAuthTtlMs;
|
|
511
|
-
create(params: {
|
|
512
|
-
userSub: string;
|
|
513
|
-
userEmail?: string;
|
|
514
|
-
userName?: string;
|
|
515
|
-
clientId: string;
|
|
516
|
-
consent?: VaultConsentRecord;
|
|
517
|
-
federated?: VaultFederatedRecord;
|
|
518
|
-
authorizedAppIds?: string[];
|
|
519
|
-
skippedAppIds?: string[];
|
|
520
|
-
}): Promise<AuthorizationVaultEntry>;
|
|
521
|
-
get(id: string): Promise<AuthorizationVaultEntry | null>;
|
|
522
|
-
update(id: string, updates: Partial<AuthorizationVaultEntry>): Promise<void>;
|
|
523
|
-
delete(id: string): Promise<void>;
|
|
524
|
-
updateConsent(vaultId: string, consent: VaultConsentRecord): Promise<void>;
|
|
525
|
-
authorizeApp(vaultId: string, appId: string): Promise<void>;
|
|
526
|
-
createPendingAuth(vaultId: string, params: {
|
|
527
|
-
appId: string;
|
|
528
|
-
toolId?: string;
|
|
529
|
-
authUrl: string;
|
|
530
|
-
requiredScopes?: string[];
|
|
531
|
-
elicitId?: string;
|
|
532
|
-
ttlMs?: number;
|
|
533
|
-
}): Promise<PendingIncrementalAuth>;
|
|
534
|
-
getPendingAuth(vaultId: string, pendingAuthId: string): Promise<PendingIncrementalAuth | null>;
|
|
535
|
-
completePendingAuth(vaultId: string, pendingAuthId: string): Promise<void>;
|
|
536
|
-
cancelPendingAuth(vaultId: string, pendingAuthId: string): Promise<void>;
|
|
537
|
-
isAppAuthorized(vaultId: string, appId: string): Promise<boolean>;
|
|
538
|
-
getPendingAuths(vaultId: string): Promise<PendingIncrementalAuth[]>;
|
|
539
|
-
cleanup(): Promise<void>;
|
|
540
|
-
/** Create a credential key from appId and providerId */
|
|
541
|
-
private credentialKey;
|
|
542
|
-
addAppCredential(vaultId: string, credential: AppCredential): Promise<void>;
|
|
543
|
-
removeAppCredential(vaultId: string, appId: string, providerId: string): Promise<void>;
|
|
544
|
-
getAppCredentials(vaultId: string, appId: string): Promise<AppCredential[]>;
|
|
545
|
-
getCredential(vaultId: string, appId: string, providerId: string): Promise<AppCredential | null>;
|
|
546
|
-
getAllCredentials(vaultId: string, filterByConsent?: boolean): Promise<AppCredential[]>;
|
|
547
|
-
updateCredential(vaultId: string, appId: string, providerId: string, updates: Partial<Pick<AppCredential, 'lastUsedAt' | 'isValid' | 'invalidReason' | 'expiresAt' | 'metadata'>>): Promise<void>;
|
|
548
|
-
shouldStoreCredential(vaultId: string, appId: string, toolIds?: string[]): Promise<boolean>;
|
|
549
|
-
invalidateCredential(vaultId: string, appId: string, providerId: string, reason: string): Promise<void>;
|
|
550
|
-
refreshOAuthCredential(vaultId: string, appId: string, providerId: string, tokens: {
|
|
551
|
-
accessToken: string;
|
|
552
|
-
refreshToken?: string;
|
|
553
|
-
expiresAt?: number;
|
|
554
|
-
}): Promise<void>;
|
|
555
|
-
}
|
|
556
|
-
/**
|
|
557
|
-
* Redis Authorization Vault (placeholder)
|
|
558
|
-
*
|
|
559
|
-
* Production implementation using Redis for distributed storage.
|
|
560
|
-
* TODO: Implement after in-memory vault is validated.
|
|
561
|
-
*/
|
|
562
|
-
export declare class RedisAuthorizationVault implements AuthorizationVault {
|
|
563
|
-
private readonly redis;
|
|
564
|
-
private readonly namespace;
|
|
565
|
-
constructor(redis: any, namespace?: string);
|
|
566
|
-
private key;
|
|
567
|
-
/** Create a credential key from appId and providerId */
|
|
568
|
-
private credentialKey;
|
|
569
|
-
create(params: {
|
|
570
|
-
userSub: string;
|
|
571
|
-
userEmail?: string;
|
|
572
|
-
userName?: string;
|
|
573
|
-
clientId: string;
|
|
574
|
-
consent?: VaultConsentRecord;
|
|
575
|
-
federated?: VaultFederatedRecord;
|
|
576
|
-
authorizedAppIds?: string[];
|
|
577
|
-
skippedAppIds?: string[];
|
|
578
|
-
}): Promise<AuthorizationVaultEntry>;
|
|
579
|
-
get(id: string): Promise<AuthorizationVaultEntry | null>;
|
|
580
|
-
update(id: string, updates: Partial<AuthorizationVaultEntry>): Promise<void>;
|
|
581
|
-
delete(id: string): Promise<void>;
|
|
582
|
-
updateConsent(vaultId: string, consent: VaultConsentRecord): Promise<void>;
|
|
583
|
-
authorizeApp(vaultId: string, appId: string): Promise<void>;
|
|
584
|
-
createPendingAuth(vaultId: string, params: {
|
|
585
|
-
appId: string;
|
|
586
|
-
toolId?: string;
|
|
587
|
-
authUrl: string;
|
|
588
|
-
requiredScopes?: string[];
|
|
589
|
-
elicitId?: string;
|
|
590
|
-
ttlMs?: number;
|
|
591
|
-
}): Promise<PendingIncrementalAuth>;
|
|
592
|
-
getPendingAuth(vaultId: string, pendingAuthId: string): Promise<PendingIncrementalAuth | null>;
|
|
593
|
-
completePendingAuth(vaultId: string, pendingAuthId: string): Promise<void>;
|
|
594
|
-
cancelPendingAuth(vaultId: string, pendingAuthId: string): Promise<void>;
|
|
595
|
-
isAppAuthorized(vaultId: string, appId: string): Promise<boolean>;
|
|
596
|
-
getPendingAuths(vaultId: string): Promise<PendingIncrementalAuth[]>;
|
|
597
|
-
cleanup(): Promise<void>;
|
|
598
|
-
addAppCredential(vaultId: string, credential: AppCredential): Promise<void>;
|
|
599
|
-
removeAppCredential(vaultId: string, appId: string, providerId: string): Promise<void>;
|
|
600
|
-
getAppCredentials(vaultId: string, appId: string): Promise<AppCredential[]>;
|
|
601
|
-
getCredential(vaultId: string, appId: string, providerId: string): Promise<AppCredential | null>;
|
|
602
|
-
getAllCredentials(vaultId: string, filterByConsent?: boolean): Promise<AppCredential[]>;
|
|
603
|
-
updateCredential(vaultId: string, appId: string, providerId: string, updates: Partial<Pick<AppCredential, 'lastUsedAt' | 'isValid' | 'invalidReason' | 'expiresAt' | 'metadata'>>): Promise<void>;
|
|
604
|
-
shouldStoreCredential(vaultId: string, appId: string, toolIds?: string[]): Promise<boolean>;
|
|
605
|
-
invalidateCredential(vaultId: string, appId: string, providerId: string, reason: string): Promise<void>;
|
|
606
|
-
refreshOAuthCredential(vaultId: string, appId: string, providerId: string, tokens: {
|
|
607
|
-
accessToken: string;
|
|
608
|
-
refreshToken?: string;
|
|
609
|
-
expiresAt?: number;
|
|
610
|
-
}): Promise<void>;
|
|
611
|
-
}
|
|
612
|
-
//# sourceMappingURL=authorization-vault.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
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