@frontmcp/sdk 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -18
- package/package.json +20 -5
- package/src/app/app.registry.d.ts +3 -2
- package/src/app/app.registry.js +3 -1
- package/src/app/app.registry.js.map +1 -1
- package/src/app/instances/app.local.instance.js +2 -2
- package/src/app/instances/app.local.instance.js.map +1 -1
- package/src/auth/auth.registry.d.ts +34 -2
- package/src/auth/auth.registry.js +162 -24
- package/src/auth/auth.registry.js.map +1 -1
- package/src/auth/auth.utils.js +8 -9
- package/src/auth/auth.utils.js.map +1 -1
- package/src/auth/authorization/authorization.class.d.ts +125 -0
- package/src/auth/authorization/authorization.class.js +224 -0
- package/src/auth/authorization/authorization.class.js.map +1 -0
- package/src/auth/authorization/authorization.types.d.ts +300 -0
- package/src/auth/authorization/authorization.types.js +79 -0
- package/src/auth/authorization/authorization.types.js.map +1 -0
- package/src/auth/authorization/index.d.ts +5 -0
- package/src/auth/authorization/index.js +19 -0
- package/src/auth/authorization/index.js.map +1 -0
- package/src/auth/authorization/orchestrated.authorization.d.ts +242 -0
- package/src/auth/authorization/orchestrated.authorization.js +306 -0
- package/src/auth/authorization/orchestrated.authorization.js.map +1 -0
- package/src/auth/authorization/public.authorization.d.ts +91 -0
- package/src/auth/authorization/public.authorization.js +132 -0
- package/src/auth/authorization/public.authorization.js.map +1 -0
- package/src/auth/authorization/transparent.authorization.d.ts +130 -0
- package/src/auth/authorization/transparent.authorization.js +147 -0
- package/src/auth/authorization/transparent.authorization.js.map +1 -0
- package/src/auth/consent/consent.types.d.ts +111 -0
- package/src/auth/consent/consent.types.js +119 -0
- package/src/auth/consent/consent.types.js.map +1 -0
- package/src/auth/consent/index.d.ts +1 -0
- package/src/auth/consent/index.js +13 -0
- package/src/auth/consent/index.js.map +1 -0
- package/src/auth/detection/auth-provider-detection.d.ts +84 -0
- package/src/auth/detection/auth-provider-detection.js +230 -0
- package/src/auth/detection/auth-provider-detection.js.map +1 -0
- package/src/auth/detection/index.d.ts +1 -0
- package/src/auth/detection/index.js +15 -0
- package/src/auth/detection/index.js.map +1 -0
- package/src/auth/flows/auth.verify.flow.d.ts +110 -0
- package/src/auth/flows/auth.verify.flow.js +379 -0
- package/src/auth/flows/auth.verify.flow.js.map +1 -0
- package/src/auth/flows/oauth.authorize.flow.d.ts +118 -164
- package/src/auth/flows/oauth.authorize.flow.js +701 -33
- package/src/auth/flows/oauth.authorize.flow.js.map +1 -1
- package/src/auth/flows/oauth.callback.flow.d.ts +117 -0
- package/src/auth/flows/oauth.callback.flow.js +357 -0
- package/src/auth/flows/oauth.callback.flow.js.map +1 -0
- package/src/auth/flows/oauth.register.flow.d.ts +32 -125
- package/src/auth/flows/oauth.token.flow.d.ts +52 -154
- package/src/auth/flows/oauth.token.flow.js +193 -55
- package/src/auth/flows/oauth.token.flow.js.map +1 -1
- package/src/auth/flows/session.verify.flow.d.ts +66 -321
- package/src/auth/flows/session.verify.flow.js +107 -18
- package/src/auth/flows/session.verify.flow.js.map +1 -1
- package/src/auth/flows/well-known.jwks.flow.d.ts +34 -205
- package/src/auth/flows/well-known.jwks.flow.js +15 -8
- package/src/auth/flows/well-known.jwks.flow.js.map +1 -1
- package/src/auth/flows/well-known.oauth-authorization-server.flow.d.ts +48 -223
- package/src/auth/flows/well-known.oauth-authorization-server.flow.js +2 -3
- package/src/auth/flows/well-known.oauth-authorization-server.flow.js.map +1 -1
- package/src/auth/flows/well-known.prm.flow.d.ts +19 -120
- package/src/auth/flows/well-known.prm.flow.js +3 -4
- package/src/auth/flows/well-known.prm.flow.js.map +1 -1
- package/src/auth/instances/instance.local-primary-auth.d.ts +91 -4
- package/src/auth/instances/instance.local-primary-auth.js +236 -6
- package/src/auth/instances/instance.local-primary-auth.js.map +1 -1
- package/src/auth/instances/instance.remote-primary-auth.d.ts +4 -3
- package/src/auth/instances/instance.remote-primary-auth.js +2 -2
- package/src/auth/instances/instance.remote-primary-auth.js.map +1 -1
- package/src/auth/session/authorization-vault.d.ts +611 -0
- package/src/auth/session/authorization-vault.js +817 -0
- package/src/auth/session/authorization-vault.js.map +1 -0
- package/src/auth/session/authorization.store.d.ts +301 -0
- package/src/auth/session/authorization.store.js +323 -0
- package/src/auth/session/authorization.store.js.map +1 -0
- package/src/auth/session/encrypted-authorization-vault.d.ts +181 -0
- package/src/auth/session/encrypted-authorization-vault.js +493 -0
- package/src/auth/session/encrypted-authorization-vault.js.map +1 -0
- package/src/auth/session/index.d.ts +4 -4
- package/src/auth/session/index.js +11 -7
- package/src/auth/session/index.js.map +1 -1
- package/src/auth/session/session.schema.d.ts +1 -1
- package/src/auth/session/session.service.d.ts +1 -1
- package/src/auth/session/transport-session.manager.d.ts +101 -0
- package/src/auth/session/transport-session.manager.js +300 -0
- package/src/auth/session/transport-session.manager.js.map +1 -0
- package/src/auth/session/transport-session.types.d.ts +457 -0
- package/src/auth/session/transport-session.types.js +110 -0
- package/src/auth/session/transport-session.types.js.map +1 -0
- package/src/auth/session/utils/session-id.utils.d.ts +14 -2
- package/src/auth/session/utils/session-id.utils.js +68 -19
- package/src/auth/session/utils/session-id.utils.js.map +1 -1
- package/src/auth/session/vault-encryption.d.ts +189 -0
- package/src/auth/session/vault-encryption.js +263 -0
- package/src/auth/session/vault-encryption.js.map +1 -0
- package/src/auth/ui/base-layout.d.ts +188 -0
- package/src/auth/ui/base-layout.js +292 -0
- package/src/auth/ui/base-layout.js.map +1 -0
- package/src/auth/ui/htmx-templates.d.ts +135 -0
- package/src/auth/ui/htmx-templates.js +433 -0
- package/src/auth/ui/htmx-templates.js.map +1 -0
- package/src/auth/ui/index.d.ts +11 -0
- package/src/auth/ui/index.js +35 -0
- package/src/auth/ui/index.js.map +1 -0
- package/src/auth/utils/audience.validator.d.ts +129 -0
- package/src/auth/utils/audience.validator.js +196 -0
- package/src/auth/utils/audience.validator.js.map +1 -0
- package/src/auth/utils/index.d.ts +2 -0
- package/src/auth/utils/index.js +7 -0
- package/src/auth/utils/index.js.map +1 -0
- package/src/auth/utils/www-authenticate.utils.d.ts +97 -0
- package/src/auth/utils/www-authenticate.utils.js +183 -0
- package/src/auth/utils/www-authenticate.utils.js.map +1 -0
- package/src/common/common.schema.d.ts +2 -16
- package/src/common/constants.d.ts +3 -0
- package/src/common/constants.js +6 -1
- package/src/common/constants.js.map +1 -1
- package/src/common/decorators/decorator-utils.d.ts +131 -0
- package/src/common/decorators/decorator-utils.js +195 -0
- package/src/common/decorators/decorator-utils.js.map +1 -0
- package/src/common/decorators/front-mcp.decorator.js +3 -2
- package/src/common/decorators/front-mcp.decorator.js.map +1 -1
- package/src/common/decorators/hook.decorator.d.ts +58 -2
- package/src/common/decorators/hook.decorator.js +127 -17
- package/src/common/decorators/hook.decorator.js.map +1 -1
- package/src/common/decorators/plugin.decorator.d.ts +1 -1
- package/src/common/decorators/plugin.decorator.js +11 -10
- package/src/common/decorators/plugin.decorator.js.map +1 -1
- package/src/common/decorators/resource.decorator.d.ts +32 -3
- package/src/common/decorators/resource.decorator.js +46 -4
- package/src/common/decorators/resource.decorator.js.map +1 -1
- package/src/common/decorators/tool.decorator.d.ts +54 -5
- package/src/common/decorators/tool.decorator.js.map +1 -1
- package/src/common/dynamic/dynamic.plugin.d.ts +22 -11
- package/src/common/dynamic/dynamic.plugin.js +7 -1
- package/src/common/dynamic/dynamic.plugin.js.map +1 -1
- package/src/common/entries/prompt.entry.d.ts +46 -2
- package/src/common/entries/prompt.entry.js +10 -0
- package/src/common/entries/prompt.entry.js.map +1 -1
- package/src/common/entries/resource.entry.d.ts +69 -6
- package/src/common/entries/resource.entry.js +27 -3
- package/src/common/entries/resource.entry.js.map +1 -1
- package/src/common/entries/scope.entry.d.ts +5 -1
- package/src/common/entries/scope.entry.js +3 -3
- package/src/common/entries/scope.entry.js.map +1 -1
- package/src/common/flow/flow.utils.d.ts +56 -0
- package/src/common/flow/flow.utils.js +96 -0
- package/src/common/flow/flow.utils.js.map +1 -0
- package/src/common/index.d.ts +2 -2
- package/src/common/index.js +2 -2
- package/src/common/index.js.map +1 -1
- package/src/common/interfaces/execution-context.interface.d.ts +59 -0
- package/src/common/interfaces/execution-context.interface.js +81 -0
- package/src/common/interfaces/execution-context.interface.js.map +1 -0
- package/src/common/interfaces/flow.interface.d.ts +1 -1
- package/src/common/interfaces/flow.interface.js.map +1 -1
- package/src/common/interfaces/index.d.ts +1 -0
- package/src/common/interfaces/index.js +1 -0
- package/src/common/interfaces/index.js.map +1 -1
- package/src/common/interfaces/internal/primary-auth-provider.interface.d.ts +17 -2
- package/src/common/interfaces/internal/primary-auth-provider.interface.js +52 -4
- package/src/common/interfaces/internal/primary-auth-provider.interface.js.map +1 -1
- package/src/common/interfaces/internal/registry.interface.d.ts +16 -2
- package/src/common/interfaces/internal/registry.interface.js.map +1 -1
- package/src/common/interfaces/plugin.interface.js.map +1 -1
- package/src/common/interfaces/prompt.interface.d.ts +53 -4
- package/src/common/interfaces/prompt.interface.js +78 -0
- package/src/common/interfaces/prompt.interface.js.map +1 -1
- package/src/common/interfaces/resource.interface.d.ts +47 -17
- package/src/common/interfaces/resource.interface.js +53 -0
- package/src/common/interfaces/resource.interface.js.map +1 -1
- package/src/common/interfaces/tool.interface.d.ts +39 -22
- package/src/common/interfaces/tool.interface.js +61 -34
- package/src/common/interfaces/tool.interface.js.map +1 -1
- package/src/common/metadata/adapter.metadata.d.ts +1 -9
- package/src/common/metadata/app.metadata.d.ts +425 -730
- package/src/common/metadata/auth-provider.metadata.d.ts +2 -12
- package/src/common/metadata/flow.metadata.d.ts +10 -25
- package/src/common/metadata/front-mcp.metadata.d.ts +602 -1023
- package/src/common/metadata/front-mcp.metadata.js +6 -4
- package/src/common/metadata/front-mcp.metadata.js.map +1 -1
- package/src/common/metadata/hook.metadata.d.ts +1 -1
- package/src/common/metadata/hook.metadata.js.map +1 -1
- package/src/common/metadata/index.d.ts +1 -0
- package/src/common/metadata/index.js +1 -0
- package/src/common/metadata/index.js.map +1 -1
- package/src/common/metadata/logger.metadata.d.ts +1 -9
- package/src/common/metadata/plugin.metadata.d.ts +8 -30
- package/src/common/metadata/prompt.metadata.d.ts +4 -161
- package/src/common/metadata/provider.metadata.d.ts +2 -12
- package/src/common/metadata/resource.metadata.d.ts +6 -98
- package/src/common/metadata/resource.metadata.js +15 -6
- package/src/common/metadata/resource.metadata.js.map +1 -1
- package/src/common/metadata/tool-ui.metadata.d.ts +10 -0
- package/src/common/metadata/tool-ui.metadata.js +12 -0
- package/src/common/metadata/tool-ui.metadata.js.map +1 -0
- package/src/common/metadata/tool.metadata.d.ts +78 -199
- package/src/common/metadata/tool.metadata.js +11 -14
- package/src/common/metadata/tool.metadata.js.map +1 -1
- package/src/common/providers/base-config.provider.d.ts +84 -0
- package/src/common/providers/base-config.provider.js +128 -0
- package/src/common/providers/base-config.provider.js.map +1 -0
- package/src/common/records/plugin.record.d.ts +5 -6
- package/src/common/records/plugin.record.js.map +1 -1
- package/src/common/records/prompt.record.js.map +1 -1
- package/src/common/records/resource.record.d.ts +17 -1
- package/src/common/records/resource.record.js +12 -6
- package/src/common/records/resource.record.js.map +1 -1
- package/src/common/records/tool.record.js.map +1 -1
- package/src/common/schemas/annotated-class.schema.d.ts +9 -9
- package/src/common/schemas/annotated-class.schema.js +92 -27
- package/src/common/schemas/annotated-class.schema.js.map +1 -1
- package/src/common/schemas/http-input.schema.d.ts +6 -30
- package/src/common/schemas/http-output.schema.d.ts +326 -1630
- package/src/common/schemas/http-output.schema.js +39 -1
- package/src/common/schemas/http-output.schema.js.map +1 -1
- package/src/common/tokens/front-mcp.tokens.js +4 -1
- package/src/common/tokens/front-mcp.tokens.js.map +1 -1
- package/src/common/tokens/resource.tokens.d.ts +2 -0
- package/src/common/tokens/resource.tokens.js +4 -1
- package/src/common/tokens/resource.tokens.js.map +1 -1
- package/src/common/tokens/tool.tokens.d.ts +2 -0
- package/src/common/tokens/tool.tokens.js +2 -0
- package/src/common/tokens/tool.tokens.js.map +1 -1
- package/src/common/types/auth/jwt.types.d.ts +5 -31
- package/src/common/types/auth/session.types.d.ts +97 -192
- package/src/common/types/auth/session.types.js +24 -11
- package/src/common/types/auth/session.types.js.map +1 -1
- package/src/common/types/options/auth.options.d.ts +1013 -490
- package/src/common/types/options/auth.options.js +554 -36
- package/src/common/types/options/auth.options.js.map +1 -1
- package/src/common/types/options/http.options.d.ts +1 -9
- package/src/common/types/options/logging.options.d.ts +7 -13
- package/src/common/types/options/logging.options.js +4 -0
- package/src/common/types/options/logging.options.js.map +1 -1
- package/src/common/types/options/server-info.options.d.ts +3 -31
- package/src/common/types/options/session.options.d.ts +90 -10
- package/src/common/types/options/session.options.js +26 -3
- package/src/common/types/options/session.options.js.map +1 -1
- package/src/common/utils/decide-request-intent.utils.d.ts +8 -46
- package/src/common/utils/decide-request-intent.utils.js +88 -23
- package/src/common/utils/decide-request-intent.utils.js.map +1 -1
- package/src/completion/flows/complete.flow.d.ts +74 -0
- package/src/completion/flows/complete.flow.js +199 -0
- package/src/completion/flows/complete.flow.js.map +1 -0
- package/src/errors/authorization-required.error.d.ts +189 -0
- package/src/errors/authorization-required.error.js +274 -0
- package/src/errors/authorization-required.error.js.map +1 -0
- package/src/errors/index.d.ts +2 -1
- package/src/errors/index.js +17 -1
- package/src/errors/index.js.map +1 -1
- package/src/errors/mcp.error.d.ts +101 -1
- package/src/errors/mcp.error.js +147 -2
- package/src/errors/mcp.error.js.map +1 -1
- package/src/flows/flow.instance.js +4 -3
- package/src/flows/flow.instance.js.map +1 -1
- package/src/flows/flow.registry.js.map +1 -1
- package/src/flows/flow.stages.js +14 -11
- package/src/flows/flow.stages.js.map +1 -1
- package/src/front-mcp/front-mcp.providers.d.ts +464 -102
- package/src/front-mcp/front-mcp.providers.js +3 -5
- package/src/front-mcp/front-mcp.providers.js.map +1 -1
- package/src/hooks/hook.instance.d.ts +1 -1
- package/src/hooks/hook.instance.js +5 -2
- package/src/hooks/hook.instance.js.map +1 -1
- package/src/hooks/hook.registry.js +7 -5
- package/src/hooks/hook.registry.js.map +1 -1
- package/src/index.d.ts +28 -9
- package/src/index.js +5 -1
- package/src/index.js.map +1 -1
- package/src/logger/instances/instance.logger.js +3 -2
- package/src/logger/instances/instance.logger.js.map +1 -1
- package/src/logger/logger.registry.js +7 -2
- package/src/logger/logger.registry.js.map +1 -1
- package/src/logging/flows/set-level.flow.d.ts +62 -0
- package/src/logging/flows/set-level.flow.js +108 -0
- package/src/logging/flows/set-level.flow.js.map +1 -0
- package/src/mcp-apps/csp.d.ts +111 -0
- package/src/mcp-apps/csp.js +267 -0
- package/src/mcp-apps/csp.js.map +1 -0
- package/src/mcp-apps/index.d.ts +23 -0
- package/src/mcp-apps/index.js +91 -0
- package/src/mcp-apps/index.js.map +1 -0
- package/src/mcp-apps/schemas.d.ts +403 -0
- package/src/mcp-apps/schemas.js +345 -0
- package/src/mcp-apps/schemas.js.map +1 -0
- package/src/mcp-apps/template.d.ts +94 -0
- package/src/mcp-apps/template.js +419 -0
- package/src/mcp-apps/template.js.map +1 -0
- package/src/mcp-apps/types.d.ts +323 -0
- package/src/mcp-apps/types.js +59 -0
- package/src/mcp-apps/types.js.map +1 -0
- package/src/notification/index.d.ts +1 -0
- package/src/notification/index.js +13 -0
- package/src/notification/index.js.map +1 -0
- package/src/notification/notification.service.d.ts +378 -0
- package/src/notification/notification.service.js +727 -0
- package/src/notification/notification.service.js.map +1 -0
- package/src/plugin/plugin.registry.js +12 -9
- package/src/plugin/plugin.registry.js.map +1 -1
- package/src/prompt/flows/get-prompt.flow.d.ts +153 -0
- package/src/prompt/flows/get-prompt.flow.js +214 -0
- package/src/prompt/flows/get-prompt.flow.js.map +1 -0
- package/src/prompt/flows/prompts-list.flow.d.ts +67 -0
- package/src/prompt/flows/prompts-list.flow.js +176 -0
- package/src/prompt/flows/prompts-list.flow.js.map +1 -0
- package/src/prompt/index.d.ts +7 -0
- package/src/prompt/index.js +17 -0
- package/src/prompt/index.js.map +1 -0
- package/src/prompt/prompt.events.d.ts +17 -0
- package/src/prompt/prompt.events.js +25 -0
- package/src/prompt/prompt.events.js.map +1 -0
- package/src/prompt/prompt.instance.d.ts +30 -0
- package/src/prompt/prompt.instance.js +120 -0
- package/src/prompt/prompt.instance.js.map +1 -0
- package/src/prompt/prompt.registry.d.ts +79 -12
- package/src/prompt/prompt.registry.js +360 -15
- package/src/prompt/prompt.registry.js.map +1 -1
- package/src/prompt/prompt.types.d.ts +26 -0
- package/src/prompt/prompt.types.js +11 -0
- package/src/prompt/prompt.types.js.map +1 -0
- package/src/prompt/prompt.utils.d.ts +26 -0
- package/src/prompt/prompt.utils.js +136 -0
- package/src/prompt/prompt.utils.js.map +1 -0
- package/src/provider/provider.registry.d.ts +12 -5
- package/src/provider/provider.registry.js +30 -138
- package/src/provider/provider.registry.js.map +1 -1
- package/src/regsitry/registry.base.d.ts +1 -1
- package/src/regsitry/registry.base.js.map +1 -1
- package/src/resource/flows/read-resource.flow.d.ts +91 -0
- package/src/resource/flows/read-resource.flow.js +270 -0
- package/src/resource/flows/read-resource.flow.js.map +1 -0
- package/src/resource/flows/resource-templates-list.flow.d.ts +64 -0
- package/src/resource/flows/resource-templates-list.flow.js +191 -0
- package/src/resource/flows/resource-templates-list.flow.js.map +1 -0
- package/src/resource/flows/resources-list.flow.d.ts +64 -0
- package/src/resource/flows/resources-list.flow.js +196 -0
- package/src/resource/flows/resources-list.flow.js.map +1 -0
- package/src/resource/flows/subscribe-resource.flow.d.ts +45 -0
- package/src/resource/flows/subscribe-resource.flow.js +123 -0
- package/src/resource/flows/subscribe-resource.flow.js.map +1 -0
- package/src/resource/flows/unsubscribe-resource.flow.d.ts +44 -0
- package/src/resource/flows/unsubscribe-resource.flow.js +107 -0
- package/src/resource/flows/unsubscribe-resource.flow.js.map +1 -0
- package/src/resource/index.d.ts +8 -0
- package/src/resource/index.js +20 -0
- package/src/resource/index.js.map +1 -0
- package/src/resource/resource.events.d.ts +24 -0
- package/src/resource/resource.events.js +17 -0
- package/src/resource/resource.events.js.map +1 -0
- package/src/resource/resource.instance.d.ts +35 -0
- package/src/resource/resource.instance.js +163 -0
- package/src/resource/resource.instance.js.map +1 -0
- package/src/resource/resource.registry.d.ts +106 -12
- package/src/resource/resource.registry.js +449 -13
- package/src/resource/resource.registry.js.map +1 -1
- package/src/resource/resource.types.d.ts +35 -0
- package/src/resource/resource.types.js +11 -0
- package/src/resource/resource.types.js.map +1 -0
- package/src/resource/resource.utils.d.ts +30 -0
- package/src/resource/resource.utils.js +151 -0
- package/src/resource/resource.utils.js.map +1 -0
- package/src/scope/flows/http.request.flow.d.ts +48 -330
- package/src/scope/flows/http.request.flow.js +306 -78
- package/src/scope/flows/http.request.flow.js.map +1 -1
- package/src/scope/scope.instance.d.ts +12 -0
- package/src/scope/scope.instance.js +145 -15
- package/src/scope/scope.instance.js.map +1 -1
- package/src/tool/flows/call-tool.flow.d.ts +64 -1110
- package/src/tool/flows/call-tool.flow.js +303 -15
- package/src/tool/flows/call-tool.flow.js.map +1 -1
- package/src/tool/flows/tools-list.flow.d.ts +32 -473
- package/src/tool/flows/tools-list.flow.js +121 -40
- package/src/tool/flows/tools-list.flow.js.map +1 -1
- package/src/tool/tool.events.d.ts +8 -1
- package/src/tool/tool.events.js.map +1 -1
- package/src/tool/tool.instance.d.ts +3 -1
- package/src/tool/tool.instance.js +17 -3
- package/src/tool/tool.instance.js.map +1 -1
- package/src/tool/tool.registry.d.ts +7 -1
- package/src/tool/tool.registry.js +26 -10
- package/src/tool/tool.registry.js.map +1 -1
- package/src/tool/tool.types.d.ts +4 -4
- package/src/tool/tool.types.js.map +1 -1
- package/src/tool/tool.utils.d.ts +3 -12
- package/src/tool/tool.utils.js +39 -193
- package/src/tool/tool.utils.js.map +1 -1
- package/src/tool/ui/index.d.ts +22 -0
- package/src/tool/ui/index.js +63 -0
- package/src/tool/ui/index.js.map +1 -0
- package/src/tool/ui/platform-adapters.d.ts +10 -0
- package/src/tool/ui/platform-adapters.js +18 -0
- package/src/tool/ui/platform-adapters.js.map +1 -0
- package/src/tool/ui/template-helpers.d.ts +46 -0
- package/src/tool/ui/template-helpers.js +112 -0
- package/src/tool/ui/template-helpers.js.map +1 -0
- package/src/tool/ui/ui-resource-template.d.ts +34 -0
- package/src/tool/ui/ui-resource-template.js +64 -0
- package/src/tool/ui/ui-resource-template.js.map +1 -0
- package/src/tool/ui/ui-resource.handler.d.ts +74 -0
- package/src/tool/ui/ui-resource.handler.js +129 -0
- package/src/tool/ui/ui-resource.handler.js.map +1 -0
- package/src/transport/adapters/transport.local.adapter.d.ts +2 -2
- package/src/transport/adapters/transport.local.adapter.js +28 -7
- package/src/transport/adapters/transport.local.adapter.js.map +1 -1
- package/src/transport/adapters/transport.sse.adapter.d.ts +2 -2
- package/src/transport/adapters/transport.sse.adapter.js +4 -3
- package/src/transport/adapters/transport.sse.adapter.js.map +1 -1
- package/src/transport/adapters/transport.streamable-http.adapter.d.ts +10 -3
- package/src/transport/adapters/transport.streamable-http.adapter.js +54 -8
- package/src/transport/adapters/transport.streamable-http.adapter.js.map +1 -1
- package/src/transport/flows/handle.sse.flow.d.ts +29 -63
- package/src/transport/flows/handle.sse.flow.js +78 -10
- package/src/transport/flows/handle.sse.flow.js.map +1 -1
- package/src/transport/flows/handle.stateless-http.flow.d.ts +29 -0
- package/src/transport/flows/handle.stateless-http.flow.js +102 -0
- package/src/transport/flows/handle.stateless-http.flow.js.map +1 -0
- package/src/transport/flows/handle.streamable-http.flow.d.ts +32 -64
- package/src/transport/flows/handle.streamable-http.flow.js +158 -26
- package/src/transport/flows/handle.streamable-http.flow.js.map +1 -1
- package/src/transport/legacy/legacy.sse.tranporter.d.ts +9 -0
- package/src/transport/legacy/legacy.sse.tranporter.js +17 -2
- package/src/transport/legacy/legacy.sse.tranporter.js.map +1 -1
- package/src/transport/mcp-handlers/call-tool-request.handler.js +27 -1
- package/src/transport/mcp-handlers/call-tool-request.handler.js.map +1 -1
- package/src/transport/mcp-handlers/complete-request.handler.d.ts +69 -0
- package/src/transport/mcp-handlers/complete-request.handler.js +11 -0
- package/src/transport/mcp-handlers/complete-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/get-prompt-request.handler.d.ts +87 -0
- package/src/transport/mcp-handlers/get-prompt-request.handler.js +11 -0
- package/src/transport/mcp-handlers/get-prompt-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/index.d.ts +517 -208
- package/src/transport/mcp-handlers/index.js +39 -2
- package/src/transport/mcp-handlers/index.js.map +1 -1
- package/src/transport/mcp-handlers/initialize-request.handler.d.ts +1 -1
- package/src/transport/mcp-handlers/initialize-request.handler.js +73 -7
- package/src/transport/mcp-handlers/initialize-request.handler.js.map +1 -1
- package/src/transport/mcp-handlers/list-prompts-request.handler.d.ts +54 -0
- package/src/transport/mcp-handlers/list-prompts-request.handler.js +11 -0
- package/src/transport/mcp-handlers/list-prompts-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +51 -0
- package/src/transport/mcp-handlers/list-resource-templates-request.handler.js +12 -0
- package/src/transport/mcp-handlers/list-resource-templates-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/list-resources-request.handler.d.ts +51 -0
- package/src/transport/mcp-handlers/list-resources-request.handler.js +12 -0
- package/src/transport/mcp-handlers/list-resources-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/list-tools-request.handler.d.ts +19 -146
- package/src/transport/mcp-handlers/logging-set-level-request.handler.d.ts +46 -0
- package/src/transport/mcp-handlers/logging-set-level-request.handler.js +34 -0
- package/src/transport/mcp-handlers/logging-set-level-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/mcp-handlers.types.d.ts +3 -7
- package/src/transport/mcp-handlers/mcp-handlers.types.js.map +1 -1
- package/src/transport/mcp-handlers/read-resource-request.handler.d.ts +46 -0
- package/src/transport/mcp-handlers/read-resource-request.handler.js +12 -0
- package/src/transport/mcp-handlers/read-resource-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts +11 -0
- package/src/transport/mcp-handlers/roots-list-changed-notification.handler.js +26 -0
- package/src/transport/mcp-handlers/roots-list-changed-notification.handler.js.map +1 -0
- package/src/transport/mcp-handlers/subscribe-request.handler.d.ts +37 -0
- package/src/transport/mcp-handlers/subscribe-request.handler.js +34 -0
- package/src/transport/mcp-handlers/subscribe-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/unsubscribe-request.handler.d.ts +37 -0
- package/src/transport/mcp-handlers/unsubscribe-request.handler.js +34 -0
- package/src/transport/mcp-handlers/unsubscribe-request.handler.js.map +1 -0
- package/src/transport/transport.local.js +7 -2
- package/src/transport/transport.local.js.map +1 -1
- package/src/transport/transport.registry.d.ts +30 -0
- package/src/transport/transport.registry.js +84 -1
- package/src/transport/transport.registry.js.map +1 -1
- package/src/transport/transport.types.d.ts +3 -3
- package/src/transport/transport.types.js.map +1 -1
- package/src/utils/content.utils.d.ts +48 -0
- package/src/utils/content.utils.js +194 -0
- package/src/utils/content.utils.js.map +1 -0
- package/src/utils/index.d.ts +8 -0
- package/src/utils/index.js +55 -0
- package/src/utils/index.js.map +1 -0
- package/src/utils/lineage.utils.d.ts +40 -0
- package/src/utils/lineage.utils.js +82 -0
- package/src/utils/lineage.utils.js.map +1 -0
- package/src/utils/naming.utils.d.ts +46 -0
- package/src/utils/naming.utils.js +136 -0
- package/src/utils/naming.utils.js.map +1 -0
- package/src/utils/types.utils.d.ts +2 -2
- package/src/utils/types.utils.js.map +1 -1
- package/src/utils/uri-template.utils.d.ts +57 -0
- package/src/utils/uri-template.utils.js +113 -0
- package/src/utils/uri-template.utils.js.map +1 -0
- package/src/utils/uri-validation.utils.d.ts +40 -0
- package/src/utils/uri-validation.utils.js +76 -0
- package/src/utils/uri-validation.utils.js.map +1 -0
- package/src/__test-utils__/fixtures/hook.fixtures.d.ts +0 -46
- package/src/__test-utils__/fixtures/hook.fixtures.js +0 -114
- package/src/__test-utils__/fixtures/hook.fixtures.js.map +0 -1
- package/src/__test-utils__/fixtures/index.d.ts +0 -7
- package/src/__test-utils__/fixtures/index.js +0 -11
- package/src/__test-utils__/fixtures/index.js.map +0 -1
- package/src/__test-utils__/fixtures/plugin.fixtures.d.ts +0 -46
- package/src/__test-utils__/fixtures/plugin.fixtures.js +0 -127
- package/src/__test-utils__/fixtures/plugin.fixtures.js.map +0 -1
- package/src/__test-utils__/fixtures/provider.fixtures.d.ts +0 -69
- package/src/__test-utils__/fixtures/provider.fixtures.js +0 -131
- package/src/__test-utils__/fixtures/provider.fixtures.js.map +0 -1
- package/src/__test-utils__/fixtures/scope.fixtures.d.ts +0 -14
- package/src/__test-utils__/fixtures/scope.fixtures.js +0 -59
- package/src/__test-utils__/fixtures/scope.fixtures.js.map +0 -1
- package/src/__test-utils__/fixtures/tool.fixtures.d.ts +0 -36
- package/src/__test-utils__/fixtures/tool.fixtures.js +0 -91
- package/src/__test-utils__/fixtures/tool.fixtures.js.map +0 -1
- package/src/__test-utils__/helpers/assertion.helpers.d.ts +0 -45
- package/src/__test-utils__/helpers/assertion.helpers.js +0 -153
- package/src/__test-utils__/helpers/assertion.helpers.js.map +0 -1
- package/src/__test-utils__/helpers/async.helpers.d.ts +0 -48
- package/src/__test-utils__/helpers/async.helpers.js +0 -112
- package/src/__test-utils__/helpers/async.helpers.js.map +0 -1
- package/src/__test-utils__/helpers/index.d.ts +0 -6
- package/src/__test-utils__/helpers/index.js +0 -10
- package/src/__test-utils__/helpers/index.js.map +0 -1
- package/src/__test-utils__/helpers/setup.helpers.d.ts +0 -54
- package/src/__test-utils__/helpers/setup.helpers.js +0 -106
- package/src/__test-utils__/helpers/setup.helpers.js.map +0 -1
- package/src/__test-utils__/index.d.ts +0 -9
- package/src/__test-utils__/index.js +0 -14
- package/src/__test-utils__/index.js.map +0 -1
- package/src/__test-utils__/mocks/flow-instance.mock.d.ts +0 -50
- package/src/__test-utils__/mocks/flow-instance.mock.js +0 -72
- package/src/__test-utils__/mocks/flow-instance.mock.js.map +0 -1
- package/src/__test-utils__/mocks/hook-registry.mock.d.ts +0 -25
- package/src/__test-utils__/mocks/hook-registry.mock.js +0 -65
- package/src/__test-utils__/mocks/hook-registry.mock.js.map +0 -1
- package/src/__test-utils__/mocks/index.d.ts +0 -8
- package/src/__test-utils__/mocks/index.js +0 -12
- package/src/__test-utils__/mocks/index.js.map +0 -1
- package/src/__test-utils__/mocks/plugin-registry.mock.d.ts +0 -43
- package/src/__test-utils__/mocks/plugin-registry.mock.js +0 -70
- package/src/__test-utils__/mocks/plugin-registry.mock.js.map +0 -1
- package/src/__test-utils__/mocks/provider-registry.mock.d.ts +0 -39
- package/src/__test-utils__/mocks/provider-registry.mock.js +0 -72
- package/src/__test-utils__/mocks/provider-registry.mock.js.map +0 -1
- package/src/__test-utils__/mocks/tool-registry.mock.d.ts +0 -43
- package/src/__test-utils__/mocks/tool-registry.mock.js +0 -79
- package/src/__test-utils__/mocks/tool-registry.mock.js.map +0 -1
- package/src/auth/path.utils.d.ts +0 -20
- package/src/auth/path.utils.js +0 -71
- package/src/auth/path.utils.js.map +0 -1
- package/src/common/decorators-old/async-with.decorator.d.ts +0 -10
- package/src/common/decorators-old/async-with.decorator.js +0 -24
- package/src/common/decorators-old/async-with.decorator.js.map +0 -1
- package/src/common/decorators-old/auth-hook.decorator.d.ts +0 -14
- package/src/common/decorators-old/auth-hook.decorator.js +0 -27
- package/src/common/decorators-old/auth-hook.decorator.js.map +0 -1
- package/src/common/decorators-old/session-hook.decorator.d.ts +0 -14
- package/src/common/decorators-old/session-hook.decorator.js +0 -27
- package/src/common/decorators-old/session-hook.decorator.js.map +0 -1
|
@@ -1,513 +1,1036 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Only used if your auth provider does not support DCR.
|
|
29
|
-
* for Dcr auth provider the client id acquired by the registration flow
|
|
30
|
-
*/
|
|
31
|
-
clientId?: string | ((clientInfo: {
|
|
32
|
-
clientId: string;
|
|
33
|
-
}) => string);
|
|
34
|
-
/**
|
|
35
|
-
* Set default gateway oauth server mode, this will be overridden by discovery flow.
|
|
36
|
-
* if set to transparent and the discovery flow detect orchestrated mode it will switch to orchestrated mode
|
|
37
|
-
* @default 'transparent'
|
|
38
|
-
*/
|
|
39
|
-
mode?: 'orchestrated' | 'transparent';
|
|
40
|
-
/**
|
|
41
|
-
* allow anonymous access to the provider
|
|
42
|
-
* @default false - allowing anonymous access will make the provider to issue an orchestrated token
|
|
43
|
-
*/
|
|
44
|
-
allowAnonymous?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* allow consent mode to select tools/resource/prompts after authorization
|
|
47
|
-
* for scoped based access token
|
|
48
|
-
* @default false - allowing anonymous access will make the provider to issue an orchestrated token
|
|
49
|
-
*/
|
|
50
|
-
consent?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* scopes for the token endpoint
|
|
53
|
-
* @default undefined - all scopes supported by th provider
|
|
54
|
-
*/
|
|
55
|
-
scopes?: string[];
|
|
56
|
-
/**
|
|
57
|
-
* authorization provider supported grant types, currently only authorization_code and refresh_token are supported
|
|
58
|
-
* @default undefined - default is what presented in the /.well-known/oauth-authorization-server
|
|
59
|
-
*/
|
|
60
|
-
grantTypes?: ('authorization_code' | 'refresh_token')[];
|
|
61
|
-
/**
|
|
62
|
-
* authorization endpoint for the provider
|
|
63
|
-
* @default undefined - default is what presented in the /.well-known/oauth-authorization-server
|
|
64
|
-
*/
|
|
65
|
-
authEndpoint?: string;
|
|
66
|
-
/**
|
|
67
|
-
* token endpoint for the provider
|
|
68
|
-
* @default undefined - default is what presented in the /.well-known/oauth-authorization-server
|
|
69
|
-
*/
|
|
70
|
-
tokenEndpoint?: string;
|
|
71
|
-
/**
|
|
72
|
-
* registration endpoint for the provider (DCR)
|
|
73
|
-
* @default undefined - default is what presented in the /.well-known/oauth-authorization-server
|
|
74
|
-
*/
|
|
75
|
-
registrationEndpoint?: string;
|
|
76
|
-
/**
|
|
77
|
-
* user info endpoint for the provider
|
|
78
|
-
* @default undefined - default is what presented in the /.well-known/oauth-authorization-server
|
|
79
|
-
*/
|
|
80
|
-
userInfoEndpoint?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Inline JWKS for the provider to verify tokens without automatic fetching
|
|
83
|
-
* @default undefined - default is what presented in the /.well-known/jwks.json
|
|
84
|
-
*/
|
|
85
|
-
jwks?: JSONWebKeySet;
|
|
86
|
-
/**
|
|
87
|
-
* jwks uri for the provider
|
|
88
|
-
* @default undefined - default is what presented in the /.well-known/oauth-authorization-server
|
|
89
|
-
*/
|
|
90
|
-
jwksUri?: string;
|
|
91
|
-
};
|
|
92
|
-
export declare const remoteAuthOptionsSchema: z.ZodObject<{
|
|
93
|
-
type: z.ZodLiteral<"remote">;
|
|
2
|
+
import { JWK } from '../auth';
|
|
3
|
+
/**
|
|
4
|
+
* Public access configuration for tools/prompts
|
|
5
|
+
*/
|
|
6
|
+
export declare const publicAccessConfigSchema: z.ZodObject<{
|
|
7
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
8
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
9
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
/**
|
|
12
|
+
* Local signing configuration (for orchestrated local type)
|
|
13
|
+
*/
|
|
14
|
+
export declare const localSigningConfigSchema: z.ZodObject<{
|
|
15
|
+
signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
16
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
/**
|
|
22
|
+
* Remote OAuth provider configuration (for orchestrated remote and transparent)
|
|
23
|
+
*/
|
|
24
|
+
export declare const remoteProviderConfigSchema: z.ZodObject<{
|
|
25
|
+
provider: z.ZodString;
|
|
26
|
+
name: z.ZodOptional<z.ZodString>;
|
|
94
27
|
id: z.ZodOptional<z.ZodString>;
|
|
95
|
-
name: z.ZodString;
|
|
96
|
-
baseUrl: z.ZodString;
|
|
97
|
-
dcrEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
-
clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
99
|
-
clientId: z.ZodString;
|
|
100
|
-
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
clientId: string;
|
|
102
|
-
}, {
|
|
103
|
-
clientId: string;
|
|
104
|
-
}>], z.ZodUnknown>, z.ZodString>]>>;
|
|
105
|
-
mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"orchestrated">, z.ZodLiteral<"transparent">]>>;
|
|
106
|
-
allowAnonymous: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
-
consent: z.ZodOptional<z.ZodBoolean>;
|
|
108
28
|
jwks: z.ZodOptional<z.ZodObject<{
|
|
109
|
-
keys: z.ZodArray<z.ZodType<JWK, z.
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
grantTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"authorization_code">, z.ZodLiteral<"refresh_token">]>, "many">>;
|
|
29
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
jwksUri: z.ZodOptional<z.ZodString>;
|
|
32
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
34
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
|
+
dcrEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
117
36
|
authEndpoint: z.ZodOptional<z.ZodString>;
|
|
118
37
|
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
119
38
|
registrationEndpoint: z.ZodOptional<z.ZodString>;
|
|
120
39
|
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
clientId: string;
|
|
152
|
-
}, ...args: unknown[]) => string) | undefined;
|
|
153
|
-
mode?: "orchestrated" | "transparent" | undefined;
|
|
154
|
-
allowAnonymous?: boolean | undefined;
|
|
155
|
-
consent?: boolean | undefined;
|
|
156
|
-
scopes?: string[] | undefined;
|
|
157
|
-
grantTypes?: ("authorization_code" | "refresh_token")[] | undefined;
|
|
158
|
-
authEndpoint?: string | undefined;
|
|
159
|
-
tokenEndpoint?: string | undefined;
|
|
160
|
-
registrationEndpoint?: string | undefined;
|
|
161
|
-
userInfoEndpoint?: string | undefined;
|
|
162
|
-
jwks?: {
|
|
163
|
-
keys: JWK[];
|
|
164
|
-
} | undefined;
|
|
165
|
-
jwksUri?: string | undefined;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
/**
|
|
42
|
+
* Token storage configuration for orchestrated mode
|
|
43
|
+
*/
|
|
44
|
+
export declare const tokenStorageConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
45
|
+
type: z.ZodLiteral<"memory">;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
type: z.ZodLiteral<"redis">;
|
|
48
|
+
config: z.ZodObject<{
|
|
49
|
+
host: z.ZodString;
|
|
50
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
51
|
+
password: z.ZodOptional<z.ZodString>;
|
|
52
|
+
db: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
53
|
+
tls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
54
|
+
keyPrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
}, z.core.$strip>], "type">;
|
|
57
|
+
/**
|
|
58
|
+
* Token refresh configuration
|
|
59
|
+
*/
|
|
60
|
+
export declare const tokenRefreshConfigSchema: z.ZodObject<{
|
|
61
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
62
|
+
skewSeconds: z.ZodDefault<z.ZodNumber>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
/**
|
|
65
|
+
* Behavior when a tool from a skipped (not yet authorized) app is called
|
|
66
|
+
*/
|
|
67
|
+
export declare const skippedAppBehaviorSchema: z.ZodEnum<{
|
|
68
|
+
anonymous: "anonymous";
|
|
69
|
+
"require-auth": "require-auth";
|
|
166
70
|
}>;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Consent configuration for tool selection
|
|
73
|
+
* Allows users to choose which MCP tools to expose to the LLM
|
|
74
|
+
*
|
|
75
|
+
* Note: This schema is the canonical definition. It is duplicated in
|
|
76
|
+
* auth/consent/consent.types.ts for domain-specific use. Both schemas
|
|
77
|
+
* MUST be kept in sync. The duplication exists to avoid circular
|
|
78
|
+
* dependencies between common/ and auth/ modules.
|
|
79
|
+
*/
|
|
80
|
+
export declare const consentConfigSchema: z.ZodObject<{
|
|
81
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
82
|
+
groupByApp: z.ZodDefault<z.ZodBoolean>;
|
|
83
|
+
showDescriptions: z.ZodDefault<z.ZodBoolean>;
|
|
84
|
+
allowSelectAll: z.ZodDefault<z.ZodBoolean>;
|
|
85
|
+
requireSelection: z.ZodDefault<z.ZodBoolean>;
|
|
86
|
+
customMessage: z.ZodOptional<z.ZodString>;
|
|
87
|
+
rememberConsent: z.ZodDefault<z.ZodBoolean>;
|
|
88
|
+
excludedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
|
+
defaultSelectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
/**
|
|
92
|
+
* Progressive/Incremental authorization configuration
|
|
93
|
+
* Allows users to authorize apps one at a time after initial auth
|
|
94
|
+
*/
|
|
95
|
+
export declare const incrementalAuthConfigSchema: z.ZodObject<{
|
|
96
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
97
|
+
skippedAppBehavior: z.ZodDefault<z.ZodEnum<{
|
|
98
|
+
anonymous: "anonymous";
|
|
99
|
+
"require-auth": "require-auth";
|
|
100
|
+
}>>;
|
|
101
|
+
allowSkip: z.ZodDefault<z.ZodBoolean>;
|
|
102
|
+
showAllAppsAtOnce: z.ZodDefault<z.ZodBoolean>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
/**
|
|
105
|
+
* Transport protocol configuration
|
|
106
|
+
* Controls which transport protocols are enabled and their behavior
|
|
107
|
+
*/
|
|
108
|
+
export declare const transportConfigSchema: z.ZodObject<{
|
|
109
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
110
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
111
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
112
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
113
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
114
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export declare const publicAuthOptionsSchema: z.ZodObject<{
|
|
117
|
+
mode: z.ZodLiteral<"public">;
|
|
118
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
119
|
+
sessionTtl: z.ZodDefault<z.ZodNumber>;
|
|
120
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
121
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
123
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
124
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
219
126
|
jwks: z.ZodOptional<z.ZodObject<{
|
|
220
|
-
keys: z.ZodArray<z.ZodType<JWK, z.
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
127
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
130
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
131
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
132
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
133
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
134
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
135
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
136
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export declare const transparentAuthOptionsSchema: z.ZodObject<{
|
|
140
|
+
mode: z.ZodLiteral<"transparent">;
|
|
141
|
+
remote: z.ZodObject<{
|
|
142
|
+
provider: z.ZodString;
|
|
143
|
+
name: z.ZodOptional<z.ZodString>;
|
|
144
|
+
id: z.ZodOptional<z.ZodString>;
|
|
145
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
146
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
jwksUri: z.ZodOptional<z.ZodString>;
|
|
149
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
150
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
151
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
152
|
+
dcrEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
153
|
+
authEndpoint: z.ZodOptional<z.ZodString>;
|
|
154
|
+
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
155
|
+
registrationEndpoint: z.ZodOptional<z.ZodString>;
|
|
156
|
+
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
expectedAudience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
159
|
+
requiredScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
160
|
+
allowAnonymous: z.ZodDefault<z.ZodBoolean>;
|
|
161
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
162
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
164
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
165
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
168
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
169
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
170
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
171
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
172
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
173
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
/**
|
|
177
|
+
* Orchestrated mode with local authentication only
|
|
178
|
+
*/
|
|
179
|
+
export declare const orchestratedLocalSchema: z.ZodObject<{
|
|
180
|
+
mode: z.ZodLiteral<"orchestrated">;
|
|
181
|
+
type: z.ZodLiteral<"local">;
|
|
182
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
184
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
186
|
+
}, z.core.$strip>>;
|
|
187
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
188
|
+
}, z.core.$strip>>;
|
|
189
|
+
tokenStorage: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
190
|
+
type: z.ZodLiteral<"memory">;
|
|
191
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
192
|
+
type: z.ZodLiteral<"redis">;
|
|
193
|
+
config: z.ZodObject<{
|
|
194
|
+
host: z.ZodString;
|
|
195
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
196
|
+
password: z.ZodOptional<z.ZodString>;
|
|
197
|
+
db: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
198
|
+
tls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
199
|
+
keyPrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
}, z.core.$strip>], "type">>;
|
|
202
|
+
sessionMode: z.ZodDefault<z.ZodEnum<{
|
|
203
|
+
stateful: "stateful";
|
|
204
|
+
stateless: "stateless";
|
|
225
205
|
}>>;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
206
|
+
allowDefaultPublic: z.ZodDefault<z.ZodBoolean>;
|
|
207
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
208
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
209
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
210
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
211
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
212
|
+
}, z.core.$strip>>;
|
|
213
|
+
consent: z.ZodOptional<z.ZodObject<{
|
|
214
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
215
|
+
groupByApp: z.ZodDefault<z.ZodBoolean>;
|
|
216
|
+
showDescriptions: z.ZodDefault<z.ZodBoolean>;
|
|
217
|
+
allowSelectAll: z.ZodDefault<z.ZodBoolean>;
|
|
218
|
+
requireSelection: z.ZodDefault<z.ZodBoolean>;
|
|
219
|
+
customMessage: z.ZodOptional<z.ZodString>;
|
|
220
|
+
rememberConsent: z.ZodDefault<z.ZodBoolean>;
|
|
221
|
+
excludedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
222
|
+
defaultSelectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
223
|
+
}, z.core.$strip>>;
|
|
224
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
226
|
+
skewSeconds: z.ZodDefault<z.ZodNumber>;
|
|
227
|
+
}, z.core.$strip>>;
|
|
228
|
+
expectedAudience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
229
|
+
incrementalAuth: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
231
|
+
skippedAppBehavior: z.ZodDefault<z.ZodEnum<{
|
|
232
|
+
anonymous: "anonymous";
|
|
233
|
+
"require-auth": "require-auth";
|
|
234
|
+
}>>;
|
|
235
|
+
allowSkip: z.ZodDefault<z.ZodBoolean>;
|
|
236
|
+
showAllAppsAtOnce: z.ZodDefault<z.ZodBoolean>;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
239
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
240
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
241
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
242
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
243
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
244
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
245
|
+
}, z.core.$strip>>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
/**
|
|
248
|
+
* Orchestrated mode with remote OAuth provider
|
|
249
|
+
*/
|
|
250
|
+
export declare const orchestratedRemoteSchema: z.ZodObject<{
|
|
251
|
+
mode: z.ZodLiteral<"orchestrated">;
|
|
253
252
|
type: z.ZodLiteral<"remote">;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
},
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
253
|
+
remote: z.ZodObject<{
|
|
254
|
+
provider: z.ZodString;
|
|
255
|
+
name: z.ZodOptional<z.ZodString>;
|
|
256
|
+
id: z.ZodOptional<z.ZodString>;
|
|
257
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
259
|
+
}, z.core.$strip>>;
|
|
260
|
+
jwksUri: z.ZodOptional<z.ZodString>;
|
|
261
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
262
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
263
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
264
|
+
dcrEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
265
|
+
authEndpoint: z.ZodOptional<z.ZodString>;
|
|
266
|
+
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
267
|
+
registrationEndpoint: z.ZodOptional<z.ZodString>;
|
|
268
|
+
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
269
|
+
}, z.core.$strip>;
|
|
270
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
271
|
+
signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
272
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
273
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
274
|
+
}, z.core.$strip>>;
|
|
275
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, z.core.$strip>>;
|
|
277
|
+
tokenStorage: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
278
|
+
type: z.ZodLiteral<"memory">;
|
|
279
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
280
|
+
type: z.ZodLiteral<"redis">;
|
|
281
|
+
config: z.ZodObject<{
|
|
282
|
+
host: z.ZodString;
|
|
283
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
284
|
+
password: z.ZodOptional<z.ZodString>;
|
|
285
|
+
db: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
286
|
+
tls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
287
|
+
keyPrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
288
|
+
}, z.core.$strip>;
|
|
289
|
+
}, z.core.$strip>], "type">>;
|
|
290
|
+
sessionMode: z.ZodDefault<z.ZodEnum<{
|
|
291
|
+
stateful: "stateful";
|
|
292
|
+
stateless: "stateless";
|
|
274
293
|
}>>;
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
authEndpoint?: string | undefined;
|
|
319
|
-
tokenEndpoint?: string | undefined;
|
|
320
|
-
registrationEndpoint?: string | undefined;
|
|
321
|
-
userInfoEndpoint?: string | undefined;
|
|
322
|
-
jwks?: {
|
|
323
|
-
keys: JWK[];
|
|
324
|
-
} | undefined;
|
|
325
|
-
jwksUri?: string | undefined;
|
|
326
|
-
}>, z.ZodObject<{
|
|
294
|
+
allowDefaultPublic: z.ZodDefault<z.ZodBoolean>;
|
|
295
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
296
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
297
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
298
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
299
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
300
|
+
}, z.core.$strip>>;
|
|
301
|
+
consent: z.ZodOptional<z.ZodObject<{
|
|
302
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
303
|
+
groupByApp: z.ZodDefault<z.ZodBoolean>;
|
|
304
|
+
showDescriptions: z.ZodDefault<z.ZodBoolean>;
|
|
305
|
+
allowSelectAll: z.ZodDefault<z.ZodBoolean>;
|
|
306
|
+
requireSelection: z.ZodDefault<z.ZodBoolean>;
|
|
307
|
+
customMessage: z.ZodOptional<z.ZodString>;
|
|
308
|
+
rememberConsent: z.ZodDefault<z.ZodBoolean>;
|
|
309
|
+
excludedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
310
|
+
defaultSelectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
311
|
+
}, z.core.$strip>>;
|
|
312
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
313
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
314
|
+
skewSeconds: z.ZodDefault<z.ZodNumber>;
|
|
315
|
+
}, z.core.$strip>>;
|
|
316
|
+
expectedAudience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
317
|
+
incrementalAuth: z.ZodOptional<z.ZodObject<{
|
|
318
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
319
|
+
skippedAppBehavior: z.ZodDefault<z.ZodEnum<{
|
|
320
|
+
anonymous: "anonymous";
|
|
321
|
+
"require-auth": "require-auth";
|
|
322
|
+
}>>;
|
|
323
|
+
allowSkip: z.ZodDefault<z.ZodBoolean>;
|
|
324
|
+
showAllAppsAtOnce: z.ZodDefault<z.ZodBoolean>;
|
|
325
|
+
}, z.core.$strip>>;
|
|
326
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
327
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
328
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
329
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
330
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
331
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
332
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
333
|
+
}, z.core.$strip>>;
|
|
334
|
+
}, z.core.$strip>;
|
|
335
|
+
export declare const orchestratedAuthOptionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
336
|
+
mode: z.ZodLiteral<"orchestrated">;
|
|
327
337
|
type: z.ZodLiteral<"local">;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
339
|
+
signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
340
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
341
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
344
|
+
}, z.core.$strip>>;
|
|
345
|
+
tokenStorage: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
346
|
+
type: z.ZodLiteral<"memory">;
|
|
347
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
348
|
+
type: z.ZodLiteral<"redis">;
|
|
349
|
+
config: z.ZodObject<{
|
|
350
|
+
host: z.ZodString;
|
|
351
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
352
|
+
password: z.ZodOptional<z.ZodString>;
|
|
353
|
+
db: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
354
|
+
tls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
355
|
+
keyPrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
356
|
+
}, z.core.$strip>;
|
|
357
|
+
}, z.core.$strip>], "type">>;
|
|
358
|
+
sessionMode: z.ZodDefault<z.ZodEnum<{
|
|
359
|
+
stateful: "stateful";
|
|
360
|
+
stateless: "stateless";
|
|
340
361
|
}>>;
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
export declare const appAuthOptionsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
362
|
+
allowDefaultPublic: z.ZodDefault<z.ZodBoolean>;
|
|
363
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
364
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
365
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
366
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
367
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
368
|
+
}, z.core.$strip>>;
|
|
369
|
+
consent: z.ZodOptional<z.ZodObject<{
|
|
370
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
371
|
+
groupByApp: z.ZodDefault<z.ZodBoolean>;
|
|
372
|
+
showDescriptions: z.ZodDefault<z.ZodBoolean>;
|
|
373
|
+
allowSelectAll: z.ZodDefault<z.ZodBoolean>;
|
|
374
|
+
requireSelection: z.ZodDefault<z.ZodBoolean>;
|
|
375
|
+
customMessage: z.ZodOptional<z.ZodString>;
|
|
376
|
+
rememberConsent: z.ZodDefault<z.ZodBoolean>;
|
|
377
|
+
excludedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
378
|
+
defaultSelectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
379
|
+
}, z.core.$strip>>;
|
|
380
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
381
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
382
|
+
skewSeconds: z.ZodDefault<z.ZodNumber>;
|
|
383
|
+
}, z.core.$strip>>;
|
|
384
|
+
expectedAudience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
385
|
+
incrementalAuth: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
387
|
+
skippedAppBehavior: z.ZodDefault<z.ZodEnum<{
|
|
388
|
+
anonymous: "anonymous";
|
|
389
|
+
"require-auth": "require-auth";
|
|
390
|
+
}>>;
|
|
391
|
+
allowSkip: z.ZodDefault<z.ZodBoolean>;
|
|
392
|
+
showAllAppsAtOnce: z.ZodDefault<z.ZodBoolean>;
|
|
393
|
+
}, z.core.$strip>>;
|
|
394
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
395
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
396
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
397
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
398
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
399
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
400
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
401
|
+
}, z.core.$strip>>;
|
|
402
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
403
|
+
mode: z.ZodLiteral<"orchestrated">;
|
|
384
404
|
type: z.ZodLiteral<"remote">;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
405
|
+
remote: z.ZodObject<{
|
|
406
|
+
provider: z.ZodString;
|
|
407
|
+
name: z.ZodOptional<z.ZodString>;
|
|
408
|
+
id: z.ZodOptional<z.ZodString>;
|
|
409
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
410
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
411
|
+
}, z.core.$strip>>;
|
|
412
|
+
jwksUri: z.ZodOptional<z.ZodString>;
|
|
413
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
414
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
415
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
416
|
+
dcrEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
417
|
+
authEndpoint: z.ZodOptional<z.ZodString>;
|
|
418
|
+
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
419
|
+
registrationEndpoint: z.ZodOptional<z.ZodString>;
|
|
420
|
+
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
423
|
+
signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
424
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
425
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
426
|
+
}, z.core.$strip>>;
|
|
427
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
428
|
+
}, z.core.$strip>>;
|
|
429
|
+
tokenStorage: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
430
|
+
type: z.ZodLiteral<"memory">;
|
|
431
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
432
|
+
type: z.ZodLiteral<"redis">;
|
|
433
|
+
config: z.ZodObject<{
|
|
434
|
+
host: z.ZodString;
|
|
435
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
436
|
+
password: z.ZodOptional<z.ZodString>;
|
|
437
|
+
db: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
438
|
+
tls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
439
|
+
keyPrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
440
|
+
}, z.core.$strip>;
|
|
441
|
+
}, z.core.$strip>], "type">>;
|
|
442
|
+
sessionMode: z.ZodDefault<z.ZodEnum<{
|
|
443
|
+
stateful: "stateful";
|
|
444
|
+
stateless: "stateless";
|
|
445
|
+
}>>;
|
|
446
|
+
allowDefaultPublic: z.ZodDefault<z.ZodBoolean>;
|
|
447
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
448
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
449
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
450
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
451
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
452
|
+
}, z.core.$strip>>;
|
|
453
|
+
consent: z.ZodOptional<z.ZodObject<{
|
|
454
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
455
|
+
groupByApp: z.ZodDefault<z.ZodBoolean>;
|
|
456
|
+
showDescriptions: z.ZodDefault<z.ZodBoolean>;
|
|
457
|
+
allowSelectAll: z.ZodDefault<z.ZodBoolean>;
|
|
458
|
+
requireSelection: z.ZodDefault<z.ZodBoolean>;
|
|
459
|
+
customMessage: z.ZodOptional<z.ZodString>;
|
|
460
|
+
rememberConsent: z.ZodDefault<z.ZodBoolean>;
|
|
461
|
+
excludedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
462
|
+
defaultSelectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
463
|
+
}, z.core.$strip>>;
|
|
464
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
465
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
466
|
+
skewSeconds: z.ZodDefault<z.ZodNumber>;
|
|
467
|
+
}, z.core.$strip>>;
|
|
468
|
+
expectedAudience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
469
|
+
incrementalAuth: z.ZodOptional<z.ZodObject<{
|
|
470
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
471
|
+
skippedAppBehavior: z.ZodDefault<z.ZodEnum<{
|
|
472
|
+
anonymous: "anonymous";
|
|
473
|
+
"require-auth": "require-auth";
|
|
474
|
+
}>>;
|
|
475
|
+
allowSkip: z.ZodDefault<z.ZodBoolean>;
|
|
476
|
+
showAllAppsAtOnce: z.ZodDefault<z.ZodBoolean>;
|
|
477
|
+
}, z.core.$strip>>;
|
|
478
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
479
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
480
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
481
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
482
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
483
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
484
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
485
|
+
}, z.core.$strip>>;
|
|
486
|
+
}, z.core.$strip>], "type">;
|
|
487
|
+
/**
|
|
488
|
+
* Main auth options schema - discriminated by 'mode'
|
|
489
|
+
*
|
|
490
|
+
* Uses z.union because we have nested discriminators (orchestrated has 'type')
|
|
491
|
+
*/
|
|
492
|
+
export declare const authOptionsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
493
|
+
mode: z.ZodLiteral<"public">;
|
|
494
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
495
|
+
sessionTtl: z.ZodDefault<z.ZodNumber>;
|
|
496
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
497
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
498
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
499
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
500
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
501
|
+
}, z.core.$strip>>;
|
|
399
502
|
jwks: z.ZodOptional<z.ZodObject<{
|
|
400
|
-
keys: z.ZodArray<z.ZodType<JWK, z.
|
|
401
|
-
},
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
503
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
504
|
+
}, z.core.$strip>>;
|
|
505
|
+
signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
506
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
507
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
508
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
509
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
510
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
511
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
512
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
513
|
+
}, z.core.$strip>>;
|
|
514
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
515
|
+
mode: z.ZodLiteral<"transparent">;
|
|
516
|
+
remote: z.ZodObject<{
|
|
517
|
+
provider: z.ZodString;
|
|
518
|
+
name: z.ZodOptional<z.ZodString>;
|
|
519
|
+
id: z.ZodOptional<z.ZodString>;
|
|
520
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
521
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
522
|
+
}, z.core.$strip>>;
|
|
523
|
+
jwksUri: z.ZodOptional<z.ZodString>;
|
|
524
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
525
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
526
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
527
|
+
dcrEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
528
|
+
authEndpoint: z.ZodOptional<z.ZodString>;
|
|
529
|
+
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
530
|
+
registrationEndpoint: z.ZodOptional<z.ZodString>;
|
|
531
|
+
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
532
|
+
}, z.core.$strip>;
|
|
533
|
+
expectedAudience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
534
|
+
requiredScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
535
|
+
allowAnonymous: z.ZodDefault<z.ZodBoolean>;
|
|
536
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
537
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
538
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
539
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
540
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
541
|
+
}, z.core.$strip>>;
|
|
542
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
543
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
544
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
545
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
546
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
547
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
548
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
549
|
+
}, z.core.$strip>>;
|
|
550
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
551
|
+
mode: z.ZodLiteral<"orchestrated">;
|
|
552
|
+
type: z.ZodLiteral<"local">;
|
|
553
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
554
|
+
signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
555
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
556
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
557
|
+
}, z.core.$strip>>;
|
|
558
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
559
|
+
}, z.core.$strip>>;
|
|
560
|
+
tokenStorage: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
561
|
+
type: z.ZodLiteral<"memory">;
|
|
562
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
563
|
+
type: z.ZodLiteral<"redis">;
|
|
564
|
+
config: z.ZodObject<{
|
|
565
|
+
host: z.ZodString;
|
|
566
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
567
|
+
password: z.ZodOptional<z.ZodString>;
|
|
568
|
+
db: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
569
|
+
tls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
570
|
+
keyPrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
571
|
+
}, z.core.$strip>;
|
|
572
|
+
}, z.core.$strip>], "type">>;
|
|
573
|
+
sessionMode: z.ZodDefault<z.ZodEnum<{
|
|
574
|
+
stateful: "stateful";
|
|
575
|
+
stateless: "stateless";
|
|
405
576
|
}>>;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
577
|
+
allowDefaultPublic: z.ZodDefault<z.ZodBoolean>;
|
|
578
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
579
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
580
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
581
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
582
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
583
|
+
}, z.core.$strip>>;
|
|
584
|
+
consent: z.ZodOptional<z.ZodObject<{
|
|
585
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
586
|
+
groupByApp: z.ZodDefault<z.ZodBoolean>;
|
|
587
|
+
showDescriptions: z.ZodDefault<z.ZodBoolean>;
|
|
588
|
+
allowSelectAll: z.ZodDefault<z.ZodBoolean>;
|
|
589
|
+
requireSelection: z.ZodDefault<z.ZodBoolean>;
|
|
590
|
+
customMessage: z.ZodOptional<z.ZodString>;
|
|
591
|
+
rememberConsent: z.ZodDefault<z.ZodBoolean>;
|
|
592
|
+
excludedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
593
|
+
defaultSelectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
594
|
+
}, z.core.$strip>>;
|
|
595
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
596
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
597
|
+
skewSeconds: z.ZodDefault<z.ZodNumber>;
|
|
598
|
+
}, z.core.$strip>>;
|
|
599
|
+
expectedAudience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
600
|
+
incrementalAuth: z.ZodOptional<z.ZodObject<{
|
|
601
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
602
|
+
skippedAppBehavior: z.ZodDefault<z.ZodEnum<{
|
|
603
|
+
anonymous: "anonymous";
|
|
604
|
+
"require-auth": "require-auth";
|
|
605
|
+
}>>;
|
|
606
|
+
allowSkip: z.ZodDefault<z.ZodBoolean>;
|
|
607
|
+
showAllAppsAtOnce: z.ZodDefault<z.ZodBoolean>;
|
|
608
|
+
}, z.core.$strip>>;
|
|
609
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
610
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
611
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
612
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
613
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
614
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
615
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
616
|
+
}, z.core.$strip>>;
|
|
617
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
618
|
+
mode: z.ZodLiteral<"orchestrated">;
|
|
619
|
+
type: z.ZodLiteral<"remote">;
|
|
620
|
+
remote: z.ZodObject<{
|
|
621
|
+
provider: z.ZodString;
|
|
622
|
+
name: z.ZodOptional<z.ZodString>;
|
|
623
|
+
id: z.ZodOptional<z.ZodString>;
|
|
624
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
625
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
626
|
+
}, z.core.$strip>>;
|
|
627
|
+
jwksUri: z.ZodOptional<z.ZodString>;
|
|
628
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
629
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
630
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
631
|
+
dcrEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
632
|
+
authEndpoint: z.ZodOptional<z.ZodString>;
|
|
633
|
+
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
634
|
+
registrationEndpoint: z.ZodOptional<z.ZodString>;
|
|
635
|
+
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
636
|
+
}, z.core.$strip>;
|
|
637
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
638
|
+
signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
639
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
640
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
641
|
+
}, z.core.$strip>>;
|
|
642
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
643
|
+
}, z.core.$strip>>;
|
|
644
|
+
tokenStorage: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
645
|
+
type: z.ZodLiteral<"memory">;
|
|
646
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
647
|
+
type: z.ZodLiteral<"redis">;
|
|
648
|
+
config: z.ZodObject<{
|
|
649
|
+
host: z.ZodString;
|
|
650
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
651
|
+
password: z.ZodOptional<z.ZodString>;
|
|
652
|
+
db: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
653
|
+
tls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
654
|
+
keyPrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
655
|
+
}, z.core.$strip>;
|
|
656
|
+
}, z.core.$strip>], "type">>;
|
|
657
|
+
sessionMode: z.ZodDefault<z.ZodEnum<{
|
|
658
|
+
stateful: "stateful";
|
|
659
|
+
stateless: "stateless";
|
|
660
|
+
}>>;
|
|
661
|
+
allowDefaultPublic: z.ZodDefault<z.ZodBoolean>;
|
|
662
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
663
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
664
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
665
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
666
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
667
|
+
}, z.core.$strip>>;
|
|
668
|
+
consent: z.ZodOptional<z.ZodObject<{
|
|
669
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
670
|
+
groupByApp: z.ZodDefault<z.ZodBoolean>;
|
|
671
|
+
showDescriptions: z.ZodDefault<z.ZodBoolean>;
|
|
672
|
+
allowSelectAll: z.ZodDefault<z.ZodBoolean>;
|
|
673
|
+
requireSelection: z.ZodDefault<z.ZodBoolean>;
|
|
674
|
+
customMessage: z.ZodOptional<z.ZodString>;
|
|
675
|
+
rememberConsent: z.ZodDefault<z.ZodBoolean>;
|
|
676
|
+
excludedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
677
|
+
defaultSelectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
678
|
+
}, z.core.$strip>>;
|
|
679
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
680
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
681
|
+
skewSeconds: z.ZodDefault<z.ZodNumber>;
|
|
682
|
+
}, z.core.$strip>>;
|
|
683
|
+
expectedAudience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
684
|
+
incrementalAuth: z.ZodOptional<z.ZodObject<{
|
|
685
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
686
|
+
skippedAppBehavior: z.ZodDefault<z.ZodEnum<{
|
|
687
|
+
anonymous: "anonymous";
|
|
688
|
+
"require-auth": "require-auth";
|
|
689
|
+
}>>;
|
|
690
|
+
allowSkip: z.ZodDefault<z.ZodBoolean>;
|
|
691
|
+
showAllAppsAtOnce: z.ZodDefault<z.ZodBoolean>;
|
|
692
|
+
}, z.core.$strip>>;
|
|
693
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
694
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
695
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
696
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
697
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
698
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
699
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
700
|
+
}, z.core.$strip>>;
|
|
701
|
+
}, z.core.$strip>]>;
|
|
702
|
+
/**
|
|
703
|
+
* Public access configuration
|
|
704
|
+
*/
|
|
705
|
+
export type PublicAccessConfig = z.infer<typeof publicAccessConfigSchema>;
|
|
706
|
+
export type PublicAccessConfigInput = z.input<typeof publicAccessConfigSchema>;
|
|
707
|
+
/**
|
|
708
|
+
* Local signing configuration
|
|
709
|
+
*/
|
|
710
|
+
export type LocalSigningConfig = z.infer<typeof localSigningConfigSchema>;
|
|
711
|
+
export type LocalSigningConfigInput = z.input<typeof localSigningConfigSchema>;
|
|
712
|
+
/**
|
|
713
|
+
* Remote provider configuration
|
|
714
|
+
*/
|
|
715
|
+
export type RemoteProviderConfig = z.infer<typeof remoteProviderConfigSchema>;
|
|
716
|
+
export type RemoteProviderConfigInput = z.input<typeof remoteProviderConfigSchema>;
|
|
717
|
+
/**
|
|
718
|
+
* Token storage configuration
|
|
719
|
+
*/
|
|
720
|
+
export type TokenStorageConfig = z.infer<typeof tokenStorageConfigSchema>;
|
|
721
|
+
export type TokenStorageConfigInput = z.input<typeof tokenStorageConfigSchema>;
|
|
722
|
+
/**
|
|
723
|
+
* Token refresh configuration
|
|
724
|
+
*/
|
|
725
|
+
export type TokenRefreshConfig = z.infer<typeof tokenRefreshConfigSchema>;
|
|
726
|
+
export type TokenRefreshConfigInput = z.input<typeof tokenRefreshConfigSchema>;
|
|
727
|
+
/**
|
|
728
|
+
* Incremental (progressive) authorization configuration
|
|
729
|
+
*/
|
|
730
|
+
export type IncrementalAuthConfig = z.infer<typeof incrementalAuthConfigSchema>;
|
|
731
|
+
export type IncrementalAuthConfigInput = z.input<typeof incrementalAuthConfigSchema>;
|
|
732
|
+
/**
|
|
733
|
+
* Skipped app behavior type
|
|
734
|
+
*/
|
|
735
|
+
export type SkippedAppBehavior = z.infer<typeof skippedAppBehaviorSchema>;
|
|
736
|
+
/**
|
|
737
|
+
* Consent configuration for tool selection
|
|
738
|
+
*/
|
|
739
|
+
export type ConsentConfig = z.infer<typeof consentConfigSchema>;
|
|
740
|
+
export type ConsentConfigInput = z.input<typeof consentConfigSchema>;
|
|
741
|
+
/**
|
|
742
|
+
* Transport protocol configuration
|
|
743
|
+
*/
|
|
744
|
+
export type TransportConfig = z.infer<typeof transportConfigSchema>;
|
|
745
|
+
export type TransportConfigInput = z.input<typeof transportConfigSchema>;
|
|
746
|
+
/**
|
|
747
|
+
* Public mode options (output type with defaults applied)
|
|
748
|
+
*/
|
|
749
|
+
export type PublicAuthOptions = z.infer<typeof publicAuthOptionsSchema>;
|
|
750
|
+
export type PublicAuthOptionsInput = z.input<typeof publicAuthOptionsSchema>;
|
|
751
|
+
/**
|
|
752
|
+
* Transparent mode options (output type with defaults applied)
|
|
753
|
+
*/
|
|
754
|
+
export type TransparentAuthOptions = z.infer<typeof transparentAuthOptionsSchema>;
|
|
755
|
+
export type TransparentAuthOptionsInput = z.input<typeof transparentAuthOptionsSchema>;
|
|
756
|
+
/**
|
|
757
|
+
* Orchestrated local mode options
|
|
758
|
+
*/
|
|
759
|
+
export type OrchestratedLocalOptions = z.infer<typeof orchestratedLocalSchema>;
|
|
760
|
+
export type OrchestratedLocalOptionsInput = z.input<typeof orchestratedLocalSchema>;
|
|
761
|
+
/**
|
|
762
|
+
* Orchestrated remote mode options
|
|
763
|
+
*/
|
|
764
|
+
export type OrchestratedRemoteOptions = z.infer<typeof orchestratedRemoteSchema>;
|
|
765
|
+
export type OrchestratedRemoteOptionsInput = z.input<typeof orchestratedRemoteSchema>;
|
|
766
|
+
/**
|
|
767
|
+
* Orchestrated mode options (union of local and remote)
|
|
768
|
+
*/
|
|
769
|
+
export type OrchestratedAuthOptions = z.infer<typeof orchestratedAuthOptionsSchema>;
|
|
770
|
+
export type OrchestratedAuthOptionsInput = z.input<typeof orchestratedAuthOptionsSchema>;
|
|
771
|
+
/**
|
|
772
|
+
* Auth options (output type with defaults applied)
|
|
773
|
+
* Use this type when working with parsed/validated options
|
|
774
|
+
*/
|
|
775
|
+
export type AuthOptions = z.infer<typeof authOptionsSchema>;
|
|
776
|
+
/**
|
|
777
|
+
* Auth options input (input type for user configuration)
|
|
778
|
+
* Use this type for the @frontmcp configuration
|
|
779
|
+
*/
|
|
780
|
+
export type AuthOptionsInput = z.input<typeof authOptionsSchema>;
|
|
781
|
+
/**
|
|
782
|
+
* Authentication mode
|
|
783
|
+
*/
|
|
784
|
+
export type AuthMode = 'public' | 'transparent' | 'orchestrated';
|
|
785
|
+
/**
|
|
786
|
+
* Orchestrated type (local or remote)
|
|
787
|
+
*/
|
|
788
|
+
export type OrchestratedType = 'local' | 'remote';
|
|
789
|
+
export declare const appAuthOptionsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
790
|
+
mode: z.ZodLiteral<"public">;
|
|
791
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
792
|
+
sessionTtl: z.ZodDefault<z.ZodNumber>;
|
|
793
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
794
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
795
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
796
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
797
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
798
|
+
}, z.core.$strip>>;
|
|
799
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
800
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
801
|
+
}, z.core.$strip>>;
|
|
802
|
+
signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
803
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
804
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
805
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
806
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
807
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
808
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
809
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
810
|
+
}, z.core.$strip>>;
|
|
811
|
+
standalone: z.ZodOptional<z.ZodBoolean>;
|
|
812
|
+
excludeFromParent: z.ZodOptional<z.ZodBoolean>;
|
|
813
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
814
|
+
mode: z.ZodLiteral<"transparent">;
|
|
815
|
+
remote: z.ZodObject<{
|
|
816
|
+
provider: z.ZodString;
|
|
817
|
+
name: z.ZodOptional<z.ZodString>;
|
|
818
|
+
id: z.ZodOptional<z.ZodString>;
|
|
819
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
820
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
821
|
+
}, z.core.$strip>>;
|
|
822
|
+
jwksUri: z.ZodOptional<z.ZodString>;
|
|
823
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
824
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
825
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
826
|
+
dcrEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
827
|
+
authEndpoint: z.ZodOptional<z.ZodString>;
|
|
828
|
+
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
829
|
+
registrationEndpoint: z.ZodOptional<z.ZodString>;
|
|
830
|
+
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
831
|
+
}, z.core.$strip>;
|
|
832
|
+
expectedAudience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
833
|
+
requiredScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
834
|
+
allowAnonymous: z.ZodDefault<z.ZodBoolean>;
|
|
835
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
836
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
837
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
838
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
839
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
840
|
+
}, z.core.$strip>>;
|
|
841
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
842
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
843
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
844
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
845
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
846
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
847
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
848
|
+
}, z.core.$strip>>;
|
|
414
849
|
standalone: z.ZodOptional<z.ZodBoolean>;
|
|
415
850
|
excludeFromParent: z.ZodOptional<z.ZodBoolean>;
|
|
416
|
-
},
|
|
417
|
-
|
|
418
|
-
name: string;
|
|
419
|
-
baseUrl: string;
|
|
420
|
-
id?: string | undefined;
|
|
421
|
-
standalone?: boolean | undefined;
|
|
422
|
-
dcrEnabled?: boolean | undefined;
|
|
423
|
-
clientId?: string | ((args_0: {
|
|
424
|
-
clientId: string;
|
|
425
|
-
}, ...args: unknown[]) => string) | undefined;
|
|
426
|
-
mode?: "orchestrated" | "transparent" | undefined;
|
|
427
|
-
allowAnonymous?: boolean | undefined;
|
|
428
|
-
consent?: boolean | undefined;
|
|
429
|
-
scopes?: string[] | undefined;
|
|
430
|
-
grantTypes?: ("authorization_code" | "refresh_token")[] | undefined;
|
|
431
|
-
authEndpoint?: string | undefined;
|
|
432
|
-
tokenEndpoint?: string | undefined;
|
|
433
|
-
registrationEndpoint?: string | undefined;
|
|
434
|
-
userInfoEndpoint?: string | undefined;
|
|
435
|
-
jwks?: {
|
|
436
|
-
keys: JWK[];
|
|
437
|
-
} | undefined;
|
|
438
|
-
jwksUri?: string | undefined;
|
|
439
|
-
excludeFromParent?: boolean | undefined;
|
|
440
|
-
}, {
|
|
441
|
-
type: "remote";
|
|
442
|
-
name: string;
|
|
443
|
-
baseUrl: string;
|
|
444
|
-
id?: string | undefined;
|
|
445
|
-
standalone?: boolean | undefined;
|
|
446
|
-
dcrEnabled?: boolean | undefined;
|
|
447
|
-
clientId?: string | ((args_0: {
|
|
448
|
-
clientId: string;
|
|
449
|
-
}, ...args: unknown[]) => string) | undefined;
|
|
450
|
-
mode?: "orchestrated" | "transparent" | undefined;
|
|
451
|
-
allowAnonymous?: boolean | undefined;
|
|
452
|
-
consent?: boolean | undefined;
|
|
453
|
-
scopes?: string[] | undefined;
|
|
454
|
-
grantTypes?: ("authorization_code" | "refresh_token")[] | undefined;
|
|
455
|
-
authEndpoint?: string | undefined;
|
|
456
|
-
tokenEndpoint?: string | undefined;
|
|
457
|
-
registrationEndpoint?: string | undefined;
|
|
458
|
-
userInfoEndpoint?: string | undefined;
|
|
459
|
-
jwks?: {
|
|
460
|
-
keys: JWK[];
|
|
461
|
-
} | undefined;
|
|
462
|
-
jwksUri?: string | undefined;
|
|
463
|
-
excludeFromParent?: boolean | undefined;
|
|
464
|
-
}>, z.ZodObject<{
|
|
851
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
852
|
+
mode: z.ZodLiteral<"orchestrated">;
|
|
465
853
|
type: z.ZodLiteral<"local">;
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
854
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
855
|
+
signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
856
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
857
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
858
|
+
}, z.core.$strip>>;
|
|
859
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
860
|
+
}, z.core.$strip>>;
|
|
861
|
+
tokenStorage: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
862
|
+
type: z.ZodLiteral<"memory">;
|
|
863
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
864
|
+
type: z.ZodLiteral<"redis">;
|
|
865
|
+
config: z.ZodObject<{
|
|
866
|
+
host: z.ZodString;
|
|
867
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
868
|
+
password: z.ZodOptional<z.ZodString>;
|
|
869
|
+
db: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
870
|
+
tls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
871
|
+
keyPrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
872
|
+
}, z.core.$strip>;
|
|
873
|
+
}, z.core.$strip>], "type">>;
|
|
874
|
+
sessionMode: z.ZodDefault<z.ZodEnum<{
|
|
875
|
+
stateful: "stateful";
|
|
876
|
+
stateless: "stateless";
|
|
877
|
+
}>>;
|
|
878
|
+
allowDefaultPublic: z.ZodDefault<z.ZodBoolean>;
|
|
879
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
880
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
881
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
882
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
883
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
884
|
+
}, z.core.$strip>>;
|
|
885
|
+
consent: z.ZodOptional<z.ZodObject<{
|
|
886
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
887
|
+
groupByApp: z.ZodDefault<z.ZodBoolean>;
|
|
888
|
+
showDescriptions: z.ZodDefault<z.ZodBoolean>;
|
|
889
|
+
allowSelectAll: z.ZodDefault<z.ZodBoolean>;
|
|
890
|
+
requireSelection: z.ZodDefault<z.ZodBoolean>;
|
|
891
|
+
customMessage: z.ZodOptional<z.ZodString>;
|
|
892
|
+
rememberConsent: z.ZodDefault<z.ZodBoolean>;
|
|
893
|
+
excludedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
894
|
+
defaultSelectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
895
|
+
}, z.core.$strip>>;
|
|
896
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
897
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
898
|
+
skewSeconds: z.ZodDefault<z.ZodNumber>;
|
|
899
|
+
}, z.core.$strip>>;
|
|
900
|
+
expectedAudience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
901
|
+
incrementalAuth: z.ZodOptional<z.ZodObject<{
|
|
902
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
903
|
+
skippedAppBehavior: z.ZodDefault<z.ZodEnum<{
|
|
904
|
+
anonymous: "anonymous";
|
|
905
|
+
"require-auth": "require-auth";
|
|
906
|
+
}>>;
|
|
907
|
+
allowSkip: z.ZodDefault<z.ZodBoolean>;
|
|
908
|
+
showAllAppsAtOnce: z.ZodDefault<z.ZodBoolean>;
|
|
909
|
+
}, z.core.$strip>>;
|
|
910
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
911
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
912
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
913
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
914
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
915
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
916
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
917
|
+
}, z.core.$strip>>;
|
|
918
|
+
standalone: z.ZodOptional<z.ZodBoolean>;
|
|
919
|
+
excludeFromParent: z.ZodOptional<z.ZodBoolean>;
|
|
920
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
921
|
+
mode: z.ZodLiteral<"orchestrated">;
|
|
922
|
+
type: z.ZodLiteral<"remote">;
|
|
923
|
+
remote: z.ZodObject<{
|
|
924
|
+
provider: z.ZodString;
|
|
925
|
+
name: z.ZodOptional<z.ZodString>;
|
|
926
|
+
id: z.ZodOptional<z.ZodString>;
|
|
927
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
928
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
929
|
+
}, z.core.$strip>>;
|
|
930
|
+
jwksUri: z.ZodOptional<z.ZodString>;
|
|
931
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
932
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
933
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
934
|
+
dcrEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
935
|
+
authEndpoint: z.ZodOptional<z.ZodString>;
|
|
936
|
+
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
937
|
+
registrationEndpoint: z.ZodOptional<z.ZodString>;
|
|
938
|
+
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
939
|
+
}, z.core.$strip>;
|
|
940
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
941
|
+
signKey: z.ZodOptional<z.ZodUnion<[z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
942
|
+
jwks: z.ZodOptional<z.ZodObject<{
|
|
943
|
+
keys: z.ZodArray<z.ZodType<JWK, unknown, z.core.$ZodTypeInternals<JWK, unknown>>>;
|
|
944
|
+
}, z.core.$strip>>;
|
|
945
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
946
|
+
}, z.core.$strip>>;
|
|
947
|
+
tokenStorage: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
948
|
+
type: z.ZodLiteral<"memory">;
|
|
949
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
950
|
+
type: z.ZodLiteral<"redis">;
|
|
951
|
+
config: z.ZodObject<{
|
|
952
|
+
host: z.ZodString;
|
|
953
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
954
|
+
password: z.ZodOptional<z.ZodString>;
|
|
955
|
+
db: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
956
|
+
tls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
957
|
+
keyPrefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
958
|
+
}, z.core.$strip>;
|
|
959
|
+
}, z.core.$strip>], "type">>;
|
|
960
|
+
sessionMode: z.ZodDefault<z.ZodEnum<{
|
|
961
|
+
stateful: "stateful";
|
|
962
|
+
stateless: "stateless";
|
|
478
963
|
}>>;
|
|
479
|
-
|
|
480
|
-
|
|
964
|
+
allowDefaultPublic: z.ZodDefault<z.ZodBoolean>;
|
|
965
|
+
anonymousScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
966
|
+
publicAccess: z.ZodOptional<z.ZodObject<{
|
|
967
|
+
tools: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
968
|
+
prompts: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
969
|
+
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
970
|
+
}, z.core.$strip>>;
|
|
971
|
+
consent: z.ZodOptional<z.ZodObject<{
|
|
972
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
973
|
+
groupByApp: z.ZodDefault<z.ZodBoolean>;
|
|
974
|
+
showDescriptions: z.ZodDefault<z.ZodBoolean>;
|
|
975
|
+
allowSelectAll: z.ZodDefault<z.ZodBoolean>;
|
|
976
|
+
requireSelection: z.ZodDefault<z.ZodBoolean>;
|
|
977
|
+
customMessage: z.ZodOptional<z.ZodString>;
|
|
978
|
+
rememberConsent: z.ZodDefault<z.ZodBoolean>;
|
|
979
|
+
excludedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
980
|
+
defaultSelectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
981
|
+
}, z.core.$strip>>;
|
|
982
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
983
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
984
|
+
skewSeconds: z.ZodDefault<z.ZodNumber>;
|
|
985
|
+
}, z.core.$strip>>;
|
|
986
|
+
expectedAudience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
987
|
+
incrementalAuth: z.ZodOptional<z.ZodObject<{
|
|
988
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
989
|
+
skippedAppBehavior: z.ZodDefault<z.ZodEnum<{
|
|
990
|
+
anonymous: "anonymous";
|
|
991
|
+
"require-auth": "require-auth";
|
|
992
|
+
}>>;
|
|
993
|
+
allowSkip: z.ZodDefault<z.ZodBoolean>;
|
|
994
|
+
showAllAppsAtOnce: z.ZodDefault<z.ZodBoolean>;
|
|
995
|
+
}, z.core.$strip>>;
|
|
996
|
+
transport: z.ZodOptional<z.ZodObject<{
|
|
997
|
+
enableLegacySSE: z.ZodDefault<z.ZodBoolean>;
|
|
998
|
+
enableSseListener: z.ZodDefault<z.ZodBoolean>;
|
|
999
|
+
enableStreamableHttp: z.ZodDefault<z.ZodBoolean>;
|
|
1000
|
+
enableStatelessHttp: z.ZodDefault<z.ZodBoolean>;
|
|
1001
|
+
enableStatefulHttp: z.ZodDefault<z.ZodBoolean>;
|
|
1002
|
+
requireSessionForStreamable: z.ZodDefault<z.ZodBoolean>;
|
|
1003
|
+
}, z.core.$strip>>;
|
|
481
1004
|
standalone: z.ZodOptional<z.ZodBoolean>;
|
|
482
1005
|
excludeFromParent: z.ZodOptional<z.ZodBoolean>;
|
|
483
|
-
},
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
export
|
|
1006
|
+
}, z.core.$strip>]>;
|
|
1007
|
+
export type AppAuthOptions = z.infer<typeof appAuthOptionsSchema>;
|
|
1008
|
+
export type AppAuthOptionsInput = z.input<typeof appAuthOptionsSchema>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Parse and validate auth options with defaults
|
|
1011
|
+
*/
|
|
1012
|
+
export declare function parseAuthOptions(input: AuthOptionsInput): AuthOptions;
|
|
1013
|
+
/**
|
|
1014
|
+
* Check if options are public mode
|
|
1015
|
+
*/
|
|
1016
|
+
export declare function isPublicMode(options: AuthOptions | AuthOptionsInput): options is PublicAuthOptions;
|
|
1017
|
+
/**
|
|
1018
|
+
* Check if options are transparent mode
|
|
1019
|
+
*/
|
|
1020
|
+
export declare function isTransparentMode(options: AuthOptions | AuthOptionsInput): options is TransparentAuthOptions;
|
|
1021
|
+
/**
|
|
1022
|
+
* Check if options are orchestrated mode
|
|
1023
|
+
*/
|
|
1024
|
+
export declare function isOrchestratedMode(options: AuthOptions | AuthOptionsInput): options is OrchestratedAuthOptions;
|
|
1025
|
+
/**
|
|
1026
|
+
* Check if orchestrated options are local type
|
|
1027
|
+
*/
|
|
1028
|
+
export declare function isOrchestratedLocal(options: OrchestratedAuthOptions): options is OrchestratedLocalOptions;
|
|
1029
|
+
/**
|
|
1030
|
+
* Check if orchestrated options are remote type
|
|
1031
|
+
*/
|
|
1032
|
+
export declare function isOrchestratedRemote(options: OrchestratedAuthOptions): options is OrchestratedRemoteOptions;
|
|
1033
|
+
/**
|
|
1034
|
+
* Check if options allow public/anonymous access
|
|
1035
|
+
*/
|
|
1036
|
+
export declare function allowsPublicAccess(options: AuthOptions): boolean;
|