@frontmcp/sdk 0.1.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 +11 -0
- package/package.json +29 -0
- package/src/constants.d.ts +30 -0
- package/src/constants.js +36 -0
- package/src/constants.js.map +1 -0
- package/src/decorators/adapter.decorator.d.ts +7 -0
- package/src/decorators/adapter.decorator.js +20 -0
- package/src/decorators/adapter.decorator.js.map +1 -0
- package/src/decorators/app.decorator.d.ts +7 -0
- package/src/decorators/app.decorator.js +44 -0
- package/src/decorators/app.decorator.js.map +1 -0
- package/src/decorators/auth-provider.decorator.d.ts +7 -0
- package/src/decorators/auth-provider.decorator.js +20 -0
- package/src/decorators/auth-provider.decorator.js.map +1 -0
- package/src/decorators/flow-hooks.decorator.d.ts +12 -0
- package/src/decorators/flow-hooks.decorator.js +63 -0
- package/src/decorators/flow-hooks.decorator.js.map +1 -0
- package/src/decorators/flow.decorator.d.ts +6 -0
- package/src/decorators/flow.decorator.js +19 -0
- package/src/decorators/flow.decorator.js.map +1 -0
- package/src/decorators/front-mcp.decorator.d.ts +6 -0
- package/src/decorators/front-mcp.decorator.js +40 -0
- package/src/decorators/front-mcp.decorator.js.map +1 -0
- package/src/decorators/index.d.ts +12 -0
- package/src/decorators/index.js +16 -0
- package/src/decorators/index.js.map +1 -0
- package/src/decorators/logger.decorator.d.ts +7 -0
- package/src/decorators/logger.decorator.js +20 -0
- package/src/decorators/logger.decorator.js.map +1 -0
- package/src/decorators/plugin.decorator.d.ts +7 -0
- package/src/decorators/plugin.decorator.js +38 -0
- package/src/decorators/plugin.decorator.js.map +1 -0
- package/src/decorators/prompt.decorator.d.ts +13 -0
- package/src/decorators/prompt.decorator.js +38 -0
- package/src/decorators/prompt.decorator.js.map +1 -0
- package/src/decorators/provider.decorator.d.ts +7 -0
- package/src/decorators/provider.decorator.js +20 -0
- package/src/decorators/provider.decorator.js.map +1 -0
- package/src/decorators/resource.decorator.d.ts +17 -0
- package/src/decorators/resource.decorator.js +52 -0
- package/src/decorators/resource.decorator.js.map +1 -0
- package/src/decorators/tool.decorator.d.ts +14 -0
- package/src/decorators/tool.decorator.js +38 -0
- package/src/decorators/tool.decorator.js.map +1 -0
- package/src/decorators-old/async-with.decorator.d.ts +9 -0
- package/src/decorators-old/async-with.decorator.js +23 -0
- package/src/decorators-old/async-with.decorator.js.map +1 -0
- package/src/decorators-old/auth-hook.decorator.d.ts +14 -0
- package/src/decorators-old/auth-hook.decorator.js +27 -0
- package/src/decorators-old/auth-hook.decorator.js.map +1 -0
- package/src/decorators-old/session-hook.decorator.d.ts +14 -0
- package/src/decorators-old/session-hook.decorator.js +27 -0
- package/src/decorators-old/session-hook.decorator.js.map +1 -0
- package/src/decorators-old/tool-hook.decorator.d.ts +14 -0
- package/src/decorators-old/tool-hook.decorator.js +27 -0
- package/src/decorators-old/tool-hook.decorator.js.map +1 -0
- package/src/dynamic/dynamic.adapter.d.ts +42 -0
- package/src/dynamic/dynamic.adapter.js +28 -0
- package/src/dynamic/dynamic.adapter.js.map +1 -0
- package/src/dynamic/dynamic.plugin.d.ts +52 -0
- package/src/dynamic/dynamic.plugin.js +33 -0
- package/src/dynamic/dynamic.plugin.js.map +1 -0
- package/src/dynamic/dynamic.utils.d.ts +3 -0
- package/src/dynamic/dynamic.utils.js +27 -0
- package/src/dynamic/dynamic.utils.js.map +1 -0
- package/src/dynamic/index.d.ts +2 -0
- package/src/dynamic/index.js +6 -0
- package/src/dynamic/index.js.map +1 -0
- package/src/entries/adapter.entry.d.ts +6 -0
- package/src/entries/adapter.entry.js +8 -0
- package/src/entries/adapter.entry.js.map +1 -0
- package/src/entries/app.entry.d.ts +13 -0
- package/src/entries/app.entry.js +9 -0
- package/src/entries/app.entry.js.map +1 -0
- package/src/entries/auth-provider.entry.d.ts +6 -0
- package/src/entries/auth-provider.entry.js +8 -0
- package/src/entries/auth-provider.entry.js.map +1 -0
- package/src/entries/base.entry.d.ts +20 -0
- package/src/entries/base.entry.js +17 -0
- package/src/entries/base.entry.js.map +1 -0
- package/src/entries/flow.entry.d.ts +15 -0
- package/src/entries/flow.entry.js +21 -0
- package/src/entries/flow.entry.js.map +1 -0
- package/src/entries/index.d.ts +12 -0
- package/src/entries/index.js +16 -0
- package/src/entries/index.js.map +1 -0
- package/src/entries/logger.entry.d.ts +6 -0
- package/src/entries/logger.entry.js +8 -0
- package/src/entries/logger.entry.js.map +1 -0
- package/src/entries/plugin.entry.d.ts +6 -0
- package/src/entries/plugin.entry.js +8 -0
- package/src/entries/plugin.entry.js.map +1 -0
- package/src/entries/prompt.entry.d.ts +6 -0
- package/src/entries/prompt.entry.js +8 -0
- package/src/entries/prompt.entry.js.map +1 -0
- package/src/entries/provider.entry.d.ts +7 -0
- package/src/entries/provider.entry.js +8 -0
- package/src/entries/provider.entry.js.map +1 -0
- package/src/entries/resource.entry.d.ts +7 -0
- package/src/entries/resource.entry.js +11 -0
- package/src/entries/resource.entry.js.map +1 -0
- package/src/entries/scope.entry.d.ts +17 -0
- package/src/entries/scope.entry.js +8 -0
- package/src/entries/scope.entry.js.map +1 -0
- package/src/entries/tool.entry.d.ts +15 -0
- package/src/entries/tool.entry.js +11 -0
- package/src/entries/tool.entry.js.map +1 -0
- package/src/index.d.ts +18 -0
- package/src/index.js +22 -0
- package/src/index.js.map +1 -0
- package/src/interfaces/adapter.interface.d.ts +20 -0
- package/src/interfaces/adapter.interface.js +3 -0
- package/src/interfaces/adapter.interface.js.map +1 -0
- package/src/interfaces/app.interface.d.ts +6 -0
- package/src/interfaces/app.interface.js +3 -0
- package/src/interfaces/app.interface.js.map +1 -0
- package/src/interfaces/auth-hook.interface.d.ts +126 -0
- package/src/interfaces/auth-hook.interface.js +135 -0
- package/src/interfaces/auth-hook.interface.js.map +1 -0
- package/src/interfaces/auth-provider.interface.d.ts +22 -0
- package/src/interfaces/auth-provider.interface.js +18 -0
- package/src/interfaces/auth-provider.interface.js.map +1 -0
- package/src/interfaces/base.interface.d.ts +77 -0
- package/src/interfaces/base.interface.js +3 -0
- package/src/interfaces/base.interface.js.map +1 -0
- package/src/interfaces/flow.interface.d.ts +38 -0
- package/src/interfaces/flow.interface.js +69 -0
- package/src/interfaces/flow.interface.js.map +1 -0
- package/src/interfaces/front-mcp.interface.d.ts +5 -0
- package/src/interfaces/front-mcp.interface.js +3 -0
- package/src/interfaces/front-mcp.interface.js.map +1 -0
- package/src/interfaces/index.d.ts +15 -0
- package/src/interfaces/index.js +19 -0
- package/src/interfaces/index.js.map +1 -0
- package/src/interfaces/internal/flow.utils.d.ts +24 -0
- package/src/interfaces/internal/flow.utils.js +83 -0
- package/src/interfaces/internal/flow.utils.js.map +1 -0
- package/src/interfaces/internal/index.d.ts +2 -0
- package/src/interfaces/internal/index.js +7 -0
- package/src/interfaces/internal/index.js.map +1 -0
- package/src/interfaces/internal/primary-auth-provider.interface.d.ts +24 -0
- package/src/interfaces/internal/primary-auth-provider.interface.js +33 -0
- package/src/interfaces/internal/primary-auth-provider.interface.js.map +1 -0
- package/src/interfaces/internal/registry.interface.d.ts +71 -0
- package/src/interfaces/internal/registry.interface.js +3 -0
- package/src/interfaces/internal/registry.interface.js.map +1 -0
- package/src/interfaces/logger.interface.d.ts +42 -0
- package/src/interfaces/logger.interface.js +10 -0
- package/src/interfaces/logger.interface.js.map +1 -0
- package/src/interfaces/plugin.interface.d.ts +8 -0
- package/src/interfaces/plugin.interface.js +3 -0
- package/src/interfaces/plugin.interface.js.map +1 -0
- package/src/interfaces/prompt.interface.d.ts +5 -0
- package/src/interfaces/prompt.interface.js +3 -0
- package/src/interfaces/prompt.interface.js.map +1 -0
- package/src/interfaces/provider.interface.d.ts +20 -0
- package/src/interfaces/provider.interface.js +18 -0
- package/src/interfaces/provider.interface.js.map +1 -0
- package/src/interfaces/resource.interface.d.ts +21 -0
- package/src/interfaces/resource.interface.js +3 -0
- package/src/interfaces/resource.interface.js.map +1 -0
- package/src/interfaces/scope.interface.d.ts +5 -0
- package/src/interfaces/scope.interface.js +3 -0
- package/src/interfaces/scope.interface.js.map +1 -0
- package/src/interfaces/server.interface.d.ts +46 -0
- package/src/interfaces/server.interface.js +18 -0
- package/src/interfaces/server.interface.js.map +1 -0
- package/src/interfaces/session-hook.interface.d.ts +131 -0
- package/src/interfaces/session-hook.interface.js +140 -0
- package/src/interfaces/session-hook.interface.js.map +1 -0
- package/src/interfaces/tool-hook.interface.d.ts +80 -0
- package/src/interfaces/tool-hook.interface.js +92 -0
- package/src/interfaces/tool-hook.interface.js.map +1 -0
- package/src/interfaces/tool.interface.d.ts +45 -0
- package/src/interfaces/tool.interface.js +89 -0
- package/src/interfaces/tool.interface.js.map +1 -0
- package/src/metadata/adapter.metadata.d.ts +22 -0
- package/src/metadata/adapter.metadata.js +10 -0
- package/src/metadata/adapter.metadata.js.map +1 -0
- package/src/metadata/app.metadata.d.ts +872 -0
- package/src/metadata/app.metadata.js +30 -0
- package/src/metadata/app.metadata.js.map +1 -0
- package/src/metadata/auth-provider.metadata.d.ts +33 -0
- package/src/metadata/auth-provider.metadata.js +19 -0
- package/src/metadata/auth-provider.metadata.js.map +1 -0
- package/src/metadata/flow-hooks.metadata.d.ts +20 -0
- package/src/metadata/flow-hooks.metadata.js +3 -0
- package/src/metadata/flow-hooks.metadata.js.map +1 -0
- package/src/metadata/flow.metadata.d.ts +75 -0
- package/src/metadata/flow.metadata.js +15 -0
- package/src/metadata/flow.metadata.js.map +1 -0
- package/src/metadata/front-mcp.metadata.d.ts +1144 -0
- package/src/metadata/front-mcp.metadata.js +25 -0
- package/src/metadata/front-mcp.metadata.js.map +1 -0
- package/src/metadata/index.d.ts +12 -0
- package/src/metadata/index.js +16 -0
- package/src/metadata/index.js.map +1 -0
- package/src/metadata/logger.metadata.d.ts +39 -0
- package/src/metadata/logger.metadata.js +10 -0
- package/src/metadata/logger.metadata.js.map +1 -0
- package/src/metadata/plugin.metadata.d.ts +93 -0
- package/src/metadata/plugin.metadata.js +18 -0
- package/src/metadata/plugin.metadata.js.map +1 -0
- package/src/metadata/prompt.metadata.d.ts +226 -0
- package/src/metadata/prompt.metadata.js +27 -0
- package/src/metadata/prompt.metadata.js.map +1 -0
- package/src/metadata/provider.metadata.d.ts +34 -0
- package/src/metadata/provider.metadata.js +20 -0
- package/src/metadata/provider.metadata.js.map +1 -0
- package/src/metadata/resource.metadata.d.ts +199 -0
- package/src/metadata/resource.metadata.js +22 -0
- package/src/metadata/resource.metadata.js.map +1 -0
- package/src/metadata/tool.metadata.d.ts +278 -0
- package/src/metadata/tool.metadata.js +28 -0
- package/src/metadata/tool.metadata.js.map +1 -0
- package/src/providers/session.provider.d.ts +13 -0
- package/src/providers/session.provider.js +27 -0
- package/src/providers/session.provider.js.map +1 -0
- package/src/records/adapter.record.d.ts +26 -0
- package/src/records/adapter.record.js +11 -0
- package/src/records/adapter.record.js.map +1 -0
- package/src/records/app.record.d.ts +19 -0
- package/src/records/app.record.js +9 -0
- package/src/records/app.record.js.map +1 -0
- package/src/records/auth-provider.record.d.ts +37 -0
- package/src/records/auth-provider.record.js +12 -0
- package/src/records/auth-provider.record.js.map +1 -0
- package/src/records/flow.record.d.ts +11 -0
- package/src/records/flow.record.js +8 -0
- package/src/records/flow.record.js.map +1 -0
- package/src/records/index.d.ts +11 -0
- package/src/records/index.js +15 -0
- package/src/records/index.js.map +1 -0
- package/src/records/logger.record.d.ts +11 -0
- package/src/records/logger.record.js +8 -0
- package/src/records/logger.record.js.map +1 -0
- package/src/records/plugin.record.d.ts +21 -0
- package/src/records/plugin.record.js +11 -0
- package/src/records/plugin.record.js.map +1 -0
- package/src/records/prompt.record.d.ts +18 -0
- package/src/records/prompt.record.js +9 -0
- package/src/records/prompt.record.js.map +1 -0
- package/src/records/provider.record.d.ts +36 -0
- package/src/records/provider.record.js +14 -0
- package/src/records/provider.record.js.map +1 -0
- package/src/records/resource.record.d.ts +18 -0
- package/src/records/resource.record.js +14 -0
- package/src/records/resource.record.js.map +1 -0
- package/src/records/scope.record.d.ts +18 -0
- package/src/records/scope.record.js +9 -0
- package/src/records/scope.record.js.map +1 -0
- package/src/records/tool.record.d.ts +17 -0
- package/src/records/tool.record.js +9 -0
- package/src/records/tool.record.js.map +1 -0
- package/src/schemas/annotated-class.schema.d.ts +11 -0
- package/src/schemas/annotated-class.schema.js +40 -0
- package/src/schemas/annotated-class.schema.js.map +1 -0
- package/src/schemas/http-input.schema.d.ts +33 -0
- package/src/schemas/http-input.schema.js +13 -0
- package/src/schemas/http-input.schema.js.map +1 -0
- package/src/schemas/http-output.schema.d.ts +2011 -0
- package/src/schemas/http-output.schema.js +283 -0
- package/src/schemas/http-output.schema.js.map +1 -0
- package/src/schemas/index.d.ts +3 -0
- package/src/schemas/index.js +7 -0
- package/src/schemas/index.js.map +1 -0
- package/src/tokens/adapter.tokens.d.ts +3 -0
- package/src/tokens/adapter.tokens.js +11 -0
- package/src/tokens/adapter.tokens.js.map +1 -0
- package/src/tokens/app.tokens.d.ts +4 -0
- package/src/tokens/app.tokens.js +30 -0
- package/src/tokens/app.tokens.js.map +1 -0
- package/src/tokens/auth-provider.tokens.d.ts +3 -0
- package/src/tokens/auth-provider.tokens.js +12 -0
- package/src/tokens/auth-provider.tokens.js.map +1 -0
- package/src/tokens/base.tokens.d.ts +5 -0
- package/src/tokens/base.tokens.js +9 -0
- package/src/tokens/base.tokens.js.map +1 -0
- package/src/tokens/flow-hook.tokens.d.ts +4 -0
- package/src/tokens/flow-hook.tokens.js +9 -0
- package/src/tokens/flow-hook.tokens.js.map +1 -0
- package/src/tokens/flow.tokens.d.ts +11 -0
- package/src/tokens/flow.tokens.js +16 -0
- package/src/tokens/flow.tokens.js.map +1 -0
- package/src/tokens/front-mcp.tokens.d.ts +3 -0
- package/src/tokens/front-mcp.tokens.js +19 -0
- package/src/tokens/front-mcp.tokens.js.map +1 -0
- package/src/tokens/index.d.ts +13 -0
- package/src/tokens/index.js +17 -0
- package/src/tokens/index.js.map +1 -0
- package/src/tokens/logger.tokens.d.ts +3 -0
- package/src/tokens/logger.tokens.js +11 -0
- package/src/tokens/logger.tokens.js.map +1 -0
- package/src/tokens/plugin.tokens.d.ts +13 -0
- package/src/tokens/plugin.tokens.js +18 -0
- package/src/tokens/plugin.tokens.js.map +1 -0
- package/src/tokens/prompt.tokens.d.ts +9 -0
- package/src/tokens/prompt.tokens.js +14 -0
- package/src/tokens/prompt.tokens.js.map +1 -0
- package/src/tokens/provider.tokens.d.ts +3 -0
- package/src/tokens/provider.tokens.js +12 -0
- package/src/tokens/provider.tokens.js.map +1 -0
- package/src/tokens/resource.tokens.d.ts +20 -0
- package/src/tokens/resource.tokens.js +25 -0
- package/src/tokens/resource.tokens.js.map +1 -0
- package/src/tokens/server.tokens.d.ts +6 -0
- package/src/tokens/server.tokens.js +11 -0
- package/src/tokens/server.tokens.js.map +1 -0
- package/src/tokens/tool.tokens.d.ts +13 -0
- package/src/tokens/tool.tokens.js +18 -0
- package/src/tokens/tool.tokens.js.map +1 -0
- package/src/types/auth/index.d.ts +2 -0
- package/src/types/auth/index.js +6 -0
- package/src/types/auth/index.js.map +1 -0
- package/src/types/auth/jwt.types.d.ts +112 -0
- package/src/types/auth/jwt.types.js +36 -0
- package/src/types/auth/jwt.types.js.map +1 -0
- package/src/types/auth/session.types.d.ts +263 -0
- package/src/types/auth/session.types.js +40 -0
- package/src/types/auth/session.types.js.map +1 -0
- package/src/types/common.types.d.ts +11 -0
- package/src/types/common.types.js +3 -0
- package/src/types/common.types.js.map +1 -0
- package/src/types/index.d.ts +3 -0
- package/src/types/index.js +7 -0
- package/src/types/index.js.map +1 -0
- package/src/types/options/auth.options.d.ts +513 -0
- package/src/types/options/auth.options.js +53 -0
- package/src/types/options/auth.options.js.map +1 -0
- package/src/types/options/http.options.d.ts +22 -0
- package/src/types/options/http.options.js +10 -0
- package/src/types/options/http.options.js.map +1 -0
- package/src/types/options/index.d.ts +5 -0
- package/src/types/options/index.js +9 -0
- package/src/types/options/index.js.map +1 -0
- package/src/types/options/logging.options.d.ts +39 -0
- package/src/types/options/logging.options.js +37 -0
- package/src/types/options/logging.options.js.map +1 -0
- package/src/types/options/server-info.options.d.ts +48 -0
- package/src/types/options/server-info.options.js +13 -0
- package/src/types/options/server-info.options.js.map +1 -0
- package/src/types/options/session.options.d.ts +67 -0
- package/src/types/options/session.options.js +9 -0
- package/src/types/options/session.options.js.map +1 -0
- package/src/utils/decide-request-intent.utils.d.ts +79 -0
- package/src/utils/decide-request-intent.utils.js +326 -0
- package/src/utils/decide-request-intent.utils.js.map +1 -0
- package/src/utils/index.d.ts +2 -0
- package/src/utils/index.js +6 -0
- package/src/utils/index.js.map +1 -0
- package/src/utils/path.utils.d.ts +20 -0
- package/src/utils/path.utils.js +66 -0
- package/src/utils/path.utils.js.map +1 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FrontMcpPluginTokens = void 0;
|
|
4
|
+
const base_tokens_1 = require("./base.tokens");
|
|
5
|
+
exports.FrontMcpPluginTokens = {
|
|
6
|
+
type: base_tokens_1.tokenFactory.type('plugin'),
|
|
7
|
+
id: base_tokens_1.tokenFactory.meta('id'),
|
|
8
|
+
name: base_tokens_1.tokenFactory.meta('name'),
|
|
9
|
+
description: base_tokens_1.tokenFactory.meta('description'),
|
|
10
|
+
providers: base_tokens_1.tokenFactory.meta('providers'),
|
|
11
|
+
exports: base_tokens_1.tokenFactory.meta('exports'),
|
|
12
|
+
plugins: base_tokens_1.tokenFactory.meta('plugins'),
|
|
13
|
+
adapters: base_tokens_1.tokenFactory.meta('adapters'),
|
|
14
|
+
tools: base_tokens_1.tokenFactory.meta('tools'),
|
|
15
|
+
resources: base_tokens_1.tokenFactory.meta('resources'),
|
|
16
|
+
prompts: base_tokens_1.tokenFactory.meta('prompts'),
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=plugin.tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.tokens.js","sourceRoot":"","sources":["../../../src/tokens/plugin.tokens.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAKhC,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,QAAQ,CAAC;IACjC,EAAE,EAAE,0BAAY,CAAC,IAAI,CAAC,IAAI,CAAC;IAC3B,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,MAAM,CAAC;IAC/B,WAAW,EAAE,0BAAY,CAAC,IAAI,CAAC,aAAa,CAAC;IAC7C,SAAS,EAAE,0BAAY,CAAC,IAAI,CAAC,WAAW,CAAC;IACzC,OAAO,EAAE,0BAAY,CAAC,IAAI,CAAC,SAAS,CAAC;IACrC,OAAO,EAAE,0BAAY,CAAC,IAAI,CAAC,SAAS,CAAC;IACrC,QAAQ,EAAE,0BAAY,CAAC,IAAI,CAAC,UAAU,CAAC;IACvC,KAAK,EAAE,0BAAY,CAAC,IAAI,CAAC,OAAO,CAAC;IACjC,SAAS,EAAE,0BAAY,CAAC,IAAI,CAAC,WAAW,CAAC;IACzC,OAAO,EAAE,0BAAY,CAAC,IAAI,CAAC,SAAS,CAAC;CACc,CAAC","sourcesContent":["import { tokenFactory } from './base.tokens';\nimport { RawMetadataShape } from '../types';\nimport { PluginMetadata } from '../metadata';\n\n\nexport const FrontMcpPluginTokens = {\n type: tokenFactory.type('plugin'),\n id: tokenFactory.meta('id'),\n name: tokenFactory.meta('name'),\n description: tokenFactory.meta('description'),\n providers: tokenFactory.meta('providers'),\n exports: tokenFactory.meta('exports'),\n plugins: tokenFactory.meta('plugins'),\n adapters: tokenFactory.meta('adapters'),\n tools: tokenFactory.meta('tools'),\n resources: tokenFactory.meta('resources'),\n prompts: tokenFactory.meta('prompts'),\n} as const satisfies RawMetadataShape<PluginMetadata>;\n\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FrontMcpPromptTokens = void 0;
|
|
4
|
+
const base_tokens_1 = require("./base.tokens");
|
|
5
|
+
exports.FrontMcpPromptTokens = {
|
|
6
|
+
type: base_tokens_1.tokenFactory.type('prompt'),
|
|
7
|
+
name: base_tokens_1.tokenFactory.meta('name'),
|
|
8
|
+
title: base_tokens_1.tokenFactory.meta('title'),
|
|
9
|
+
arguments: base_tokens_1.tokenFactory.meta('arguments'),
|
|
10
|
+
description: base_tokens_1.tokenFactory.meta('description'),
|
|
11
|
+
icons: base_tokens_1.tokenFactory.meta('icons'),
|
|
12
|
+
metadata: base_tokens_1.tokenFactory.meta('metadata'), // used in prompt({}) construction
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=prompt.tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.tokens.js","sourceRoot":"","sources":["../../../src/tokens/prompt.tokens.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAIhC,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,QAAQ,CAAC;IACjC,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE,0BAAY,CAAC,IAAI,CAAC,OAAO,CAAC;IACjC,SAAS,EAAE,0BAAY,CAAC,IAAI,CAAC,WAAW,CAAC;IACzC,WAAW,EAAE,0BAAY,CAAC,IAAI,CAAC,aAAa,CAAC;IAC7C,KAAK,EAAE,0BAAY,CAAC,IAAI,CAAC,OAAO,CAAC;IACjC,QAAQ,EAAE,0BAAY,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,kCAAkC;CACM,CAAC","sourcesContent":["import { tokenFactory } from './base.tokens';\nimport { RawMetadataShape } from '../types';\nimport { PromptMetadata } from '../metadata';\n\nexport const FrontMcpPromptTokens = {\n type: tokenFactory.type('prompt'),\n name: tokenFactory.meta('name'),\n title: tokenFactory.meta('title'),\n arguments: tokenFactory.meta('arguments'),\n description: tokenFactory.meta('description'),\n icons: tokenFactory.meta('icons'),\n metadata: tokenFactory.meta('metadata'), // used in prompt({}) construction\n} as const satisfies RawMetadataShape<PromptMetadata, ExtendFrontMcpPromptMetadata>;\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FrontMcpProviderTokens = void 0;
|
|
4
|
+
const base_tokens_1 = require("./base.tokens");
|
|
5
|
+
exports.FrontMcpProviderTokens = {
|
|
6
|
+
type: base_tokens_1.tokenFactory.type('provider'),
|
|
7
|
+
id: base_tokens_1.tokenFactory.meta('id'),
|
|
8
|
+
name: base_tokens_1.tokenFactory.meta('name'),
|
|
9
|
+
description: base_tokens_1.tokenFactory.meta('description'),
|
|
10
|
+
scope: base_tokens_1.tokenFactory.meta('scope'),
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=provider.tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.tokens.js","sourceRoot":"","sources":["../../../src/tokens/provider.tokens.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAKhC,QAAA,sBAAsB,GAAuC;IACxE,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,UAAU,CAAC;IACnC,EAAE,EAAE,0BAAY,CAAC,IAAI,CAAC,IAAI,CAAC;IAC3B,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,MAAM,CAAC;IAC/B,WAAW,EAAE,0BAAY,CAAC,IAAI,CAAC,aAAa,CAAC;IAC7C,KAAK,EAAE,0BAAY,CAAC,IAAI,CAAC,OAAO,CAAC;CACzB,CAAC","sourcesContent":["import { tokenFactory } from './base.tokens';\nimport { RawMetadataShape } from '../types';\nimport { ProviderMetadata } from '../metadata';\n\n\nexport const FrontMcpProviderTokens: RawMetadataShape<ProviderMetadata> = {\n type: tokenFactory.type('provider'),\n id: tokenFactory.meta('id'),\n name: tokenFactory.meta('name'),\n description: tokenFactory.meta('description'),\n scope: tokenFactory.meta('scope'),\n} as const;\n\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const FrontMcpResourceTokens: {
|
|
2
|
+
readonly type: symbol;
|
|
3
|
+
readonly name: symbol;
|
|
4
|
+
readonly title: symbol;
|
|
5
|
+
readonly uri: symbol;
|
|
6
|
+
readonly description: symbol;
|
|
7
|
+
readonly mimeType: symbol;
|
|
8
|
+
readonly icons: symbol;
|
|
9
|
+
readonly metadata: symbol;
|
|
10
|
+
};
|
|
11
|
+
export declare const FrontMcpResourceTemplateTokens: {
|
|
12
|
+
readonly type: symbol;
|
|
13
|
+
readonly name: symbol;
|
|
14
|
+
readonly title: symbol;
|
|
15
|
+
readonly uriTemplate: symbol;
|
|
16
|
+
readonly description: symbol;
|
|
17
|
+
readonly mimeType: symbol;
|
|
18
|
+
readonly icons: symbol;
|
|
19
|
+
readonly metadata: symbol;
|
|
20
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FrontMcpResourceTemplateTokens = exports.FrontMcpResourceTokens = void 0;
|
|
4
|
+
const base_tokens_1 = require("./base.tokens");
|
|
5
|
+
exports.FrontMcpResourceTokens = {
|
|
6
|
+
type: base_tokens_1.tokenFactory.type('resource'),
|
|
7
|
+
name: base_tokens_1.tokenFactory.meta('name'),
|
|
8
|
+
title: base_tokens_1.tokenFactory.meta('title'),
|
|
9
|
+
uri: base_tokens_1.tokenFactory.meta('uri'),
|
|
10
|
+
description: base_tokens_1.tokenFactory.meta('description'),
|
|
11
|
+
mimeType: base_tokens_1.tokenFactory.meta('mimeType'),
|
|
12
|
+
icons: base_tokens_1.tokenFactory.meta('icons'),
|
|
13
|
+
metadata: base_tokens_1.tokenFactory.meta('metadata'), // used in resource({}) construction
|
|
14
|
+
};
|
|
15
|
+
exports.FrontMcpResourceTemplateTokens = {
|
|
16
|
+
type: base_tokens_1.tokenFactory.type('resourceTemplate'),
|
|
17
|
+
name: base_tokens_1.tokenFactory.meta('name'),
|
|
18
|
+
title: base_tokens_1.tokenFactory.meta('title'),
|
|
19
|
+
uriTemplate: base_tokens_1.tokenFactory.meta('uriTemplate'),
|
|
20
|
+
description: base_tokens_1.tokenFactory.meta('description'),
|
|
21
|
+
mimeType: base_tokens_1.tokenFactory.meta('mimeType'),
|
|
22
|
+
icons: base_tokens_1.tokenFactory.meta('icons'),
|
|
23
|
+
metadata: base_tokens_1.tokenFactory.meta('metadata'), // used in resourceTemplate({}) construction
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=resource.tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.tokens.js","sourceRoot":"","sources":["../../../src/tokens/resource.tokens.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAKhC,QAAA,sBAAsB,GAAG;IACpC,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,UAAU,CAAC;IACnC,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE,0BAAY,CAAC,IAAI,CAAC,OAAO,CAAC;IACjC,GAAG,EAAE,0BAAY,CAAC,IAAI,CAAC,KAAK,CAAC;IAC7B,WAAW,EAAE,0BAAY,CAAC,IAAI,CAAC,aAAa,CAAC;IAC7C,QAAQ,EAAE,0BAAY,CAAC,IAAI,CAAC,UAAU,CAAC;IACvC,KAAK,EAAE,0BAAY,CAAC,IAAI,CAAC,OAAO,CAAC;IACjC,QAAQ,EAAE,0BAAY,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,oCAAoC;CACQ,CAAC;AAE3E,QAAA,8BAA8B,GAAG;IAC5C,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,kBAAkB,CAAC;IAC3C,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE,0BAAY,CAAC,IAAI,CAAC,OAAO,CAAC;IACjC,WAAW,EAAE,0BAAY,CAAC,IAAI,CAAC,aAAa,CAAC;IAC7C,WAAW,EAAE,0BAAY,CAAC,IAAI,CAAC,aAAa,CAAC;IAC7C,QAAQ,EAAE,0BAAY,CAAC,IAAI,CAAC,UAAU,CAAC;IACvC,KAAK,EAAE,0BAAY,CAAC,IAAI,CAAC,OAAO,CAAC;IACjC,QAAQ,EAAE,0BAAY,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,4CAA4C;CACgB,CAAC","sourcesContent":["import { tokenFactory } from './base.tokens';\nimport { RawMetadataShape } from '../types';\nimport { ResourceMetadata, ResourceTemplateMetadata } from '../metadata';\n\n\nexport const FrontMcpResourceTokens = {\n type: tokenFactory.type('resource'),\n name: tokenFactory.meta('name'),\n title: tokenFactory.meta('title'),\n uri: tokenFactory.meta('uri'),\n description: tokenFactory.meta('description'),\n mimeType: tokenFactory.meta('mimeType'),\n icons: tokenFactory.meta('icons'),\n metadata: tokenFactory.meta('metadata'), // used in resource({}) construction\n} as const satisfies RawMetadataShape<ResourceMetadata, ExtendFrontMcpResourceMetadata>;\n\nexport const FrontMcpResourceTemplateTokens = {\n type: tokenFactory.type('resourceTemplate'),\n name: tokenFactory.meta('name'),\n title: tokenFactory.meta('title'),\n uriTemplate: tokenFactory.meta('uriTemplate'),\n description: tokenFactory.meta('description'),\n mimeType: tokenFactory.meta('mimeType'),\n icons: tokenFactory.meta('icons'),\n metadata: tokenFactory.meta('metadata'), // used in resourceTemplate({}) construction\n} as const satisfies RawMetadataShape<ResourceTemplateMetadata, ExtendFrontMcpResourceTemplateMetadata>;\n\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServerRequestTokens = void 0;
|
|
4
|
+
const base_tokens_1 = require("./base.tokens");
|
|
5
|
+
exports.ServerRequestTokens = {
|
|
6
|
+
type: base_tokens_1.tokenFactory.type('serverRequest'),
|
|
7
|
+
intent: base_tokens_1.tokenFactory.meta('intent'),
|
|
8
|
+
auth: base_tokens_1.tokenFactory.meta('auth'),
|
|
9
|
+
sessionId: base_tokens_1.tokenFactory.meta('sessionId'),
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=server.tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.tokens.js","sourceRoot":"","sources":["../../../src/tokens/server.tokens.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAUhC,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,eAAe,CAAC;IACxC,MAAM,EAAE,0BAAY,CAAC,IAAI,CAAC,QAAQ,CAAC;IACnC,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE,0BAAY,CAAC,IAAI,CAAC,WAAW,CAAC;CACU,CAAC","sourcesContent":["import { tokenFactory } from './base.tokens';\nimport { HttpRequestIntent } from '../utils';\nimport { Authorization, RawMetadataShape } from '../types';\n\ninterface ServerRequestTokenValue {\n intent: HttpRequestIntent;\n auth: Authorization;\n sessionId: string;\n}\n\nexport const ServerRequestTokens = {\n type: tokenFactory.type('serverRequest'),\n intent: tokenFactory.meta('intent'),\n auth: tokenFactory.meta('auth'),\n sessionId: tokenFactory.meta('sessionId'),\n} satisfies RawMetadataShape<ServerRequestTokenValue>;"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const FrontMcpToolTokens: {
|
|
2
|
+
readonly type: symbol;
|
|
3
|
+
readonly id: symbol;
|
|
4
|
+
readonly name: symbol;
|
|
5
|
+
readonly description: symbol;
|
|
6
|
+
readonly inputSchema: symbol;
|
|
7
|
+
readonly rawInputSchema: symbol;
|
|
8
|
+
readonly outputSchema: symbol;
|
|
9
|
+
readonly tags: symbol;
|
|
10
|
+
readonly annotations: symbol;
|
|
11
|
+
readonly hideFromDiscovery: symbol;
|
|
12
|
+
readonly metadata: symbol;
|
|
13
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FrontMcpToolTokens = void 0;
|
|
4
|
+
const base_tokens_1 = require("./base.tokens");
|
|
5
|
+
exports.FrontMcpToolTokens = {
|
|
6
|
+
type: base_tokens_1.tokenFactory.type('tool'),
|
|
7
|
+
id: base_tokens_1.tokenFactory.meta('id'),
|
|
8
|
+
name: base_tokens_1.tokenFactory.meta('name'),
|
|
9
|
+
description: base_tokens_1.tokenFactory.meta('description'),
|
|
10
|
+
inputSchema: base_tokens_1.tokenFactory.meta('inputSchema'),
|
|
11
|
+
rawInputSchema: base_tokens_1.tokenFactory.meta('rawInputSchema'),
|
|
12
|
+
outputSchema: base_tokens_1.tokenFactory.meta('outputSchema'),
|
|
13
|
+
tags: base_tokens_1.tokenFactory.meta('tags'),
|
|
14
|
+
annotations: base_tokens_1.tokenFactory.meta('annotations'),
|
|
15
|
+
hideFromDiscovery: base_tokens_1.tokenFactory.meta('hideFromDiscovery'),
|
|
16
|
+
metadata: base_tokens_1.tokenFactory.meta('metadata'), // used in tool({}) construction
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=tool.tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.tokens.js","sourceRoot":"","sources":["../../../src/tokens/tool.tokens.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAIhC,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,0BAAY,CAAC,IAAI,CAAC,IAAI,CAAC;IAC3B,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,MAAM,CAAC;IAC/B,WAAW,EAAE,0BAAY,CAAC,IAAI,CAAC,aAAa,CAAC;IAC7C,WAAW,EAAE,0BAAY,CAAC,IAAI,CAAC,aAAa,CAAC;IAC7C,cAAc,EAAE,0BAAY,CAAC,IAAI,CAAC,gBAAgB,CAAC;IACnD,YAAY,EAAE,0BAAY,CAAC,IAAI,CAAC,cAAc,CAAC;IAC/C,IAAI,EAAE,0BAAY,CAAC,IAAI,CAAC,MAAM,CAAC;IAC/B,WAAW,EAAE,0BAAY,CAAC,IAAI,CAAC,aAAa,CAAC;IAC7C,iBAAiB,EAAE,0BAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC;IACzD,QAAQ,EAAE,0BAAY,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,gCAAgC;CACI,CAAC","sourcesContent":["import { tokenFactory } from './base.tokens';\nimport { RawMetadataShape } from '../types';\nimport { ToolMetadata } from '../metadata';\n\nexport const FrontMcpToolTokens = {\n type: tokenFactory.type('tool'),\n id: tokenFactory.meta('id'),\n name: tokenFactory.meta('name'),\n description: tokenFactory.meta('description'),\n inputSchema: tokenFactory.meta('inputSchema'),\n rawInputSchema: tokenFactory.meta('rawInputSchema'),\n outputSchema: tokenFactory.meta('outputSchema'),\n tags: tokenFactory.meta('tags'),\n annotations: tokenFactory.meta('annotations'),\n hideFromDiscovery: tokenFactory.meta('hideFromDiscovery'),\n metadata: tokenFactory.meta('metadata'), // used in tool({}) construction\n} as const satisfies RawMetadataShape<ToolMetadata, ExtendFrontMcpToolMetadata>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/auth/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,0DAAgC","sourcesContent":["export * from './jwt.types';\nexport * from './session.types';"]}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export interface JWKParameters {
|
|
3
|
+
/** JWK "kty" (Key Type) Parameter */
|
|
4
|
+
kty?: string;
|
|
5
|
+
/**
|
|
6
|
+
* JWK "alg" (Algorithm) Parameter
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://github.com/panva/jose/issues/210 Algorithm Key Requirements}
|
|
9
|
+
*/
|
|
10
|
+
alg?: string;
|
|
11
|
+
/** JWK "key_ops" (Key Operations) Parameter */
|
|
12
|
+
key_ops?: string[];
|
|
13
|
+
/** JWK "ext" (Extractable) Parameter */
|
|
14
|
+
ext?: boolean;
|
|
15
|
+
/** JWK "use" (Public Key Use) Parameter */
|
|
16
|
+
use?: string;
|
|
17
|
+
/** JWK "x5c" (X.509 Certificate Chain) Parameter */
|
|
18
|
+
x5c?: string[];
|
|
19
|
+
/** JWK "x5t" (X.509 Certificate SHA-1 Thumbprint) Parameter */
|
|
20
|
+
x5t?: string;
|
|
21
|
+
/** JWK "x5t#S256" (X.509 Certificate SHA-256 Thumbprint) Parameter */
|
|
22
|
+
'x5t#S256'?: string;
|
|
23
|
+
/** JWK "x5u" (X.509 URL) Parameter */
|
|
24
|
+
x5u?: string;
|
|
25
|
+
/** JWK "kid" (Key ID) Parameter */
|
|
26
|
+
kid?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const jwkParametersSchema: z.ZodObject<{
|
|
29
|
+
kty: z.ZodOptional<z.ZodString>;
|
|
30
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
31
|
+
key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
32
|
+
ext: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
use: z.ZodOptional<z.ZodString>;
|
|
34
|
+
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35
|
+
x5t: z.ZodOptional<z.ZodString>;
|
|
36
|
+
'x5t#S256': z.ZodOptional<z.ZodString>;
|
|
37
|
+
x5u: z.ZodOptional<z.ZodString>;
|
|
38
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
kty?: string | undefined;
|
|
41
|
+
alg?: string | undefined;
|
|
42
|
+
key_ops?: string[] | undefined;
|
|
43
|
+
ext?: boolean | undefined;
|
|
44
|
+
use?: string | undefined;
|
|
45
|
+
x5c?: string[] | undefined;
|
|
46
|
+
x5t?: string | undefined;
|
|
47
|
+
'x5t#S256'?: string | undefined;
|
|
48
|
+
x5u?: string | undefined;
|
|
49
|
+
kid?: string | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
kty?: string | undefined;
|
|
52
|
+
alg?: string | undefined;
|
|
53
|
+
key_ops?: string[] | undefined;
|
|
54
|
+
ext?: boolean | undefined;
|
|
55
|
+
use?: string | undefined;
|
|
56
|
+
x5c?: string[] | undefined;
|
|
57
|
+
x5t?: string | undefined;
|
|
58
|
+
'x5t#S256'?: string | undefined;
|
|
59
|
+
x5u?: string | undefined;
|
|
60
|
+
kid?: string | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
export interface JWK extends JWKParameters {
|
|
63
|
+
/**
|
|
64
|
+
* - EC JWK "crv" (Curve) Parameter
|
|
65
|
+
* - OKP JWK "crv" (The Subtype of Key Pair) Parameter
|
|
66
|
+
*/
|
|
67
|
+
crv?: string;
|
|
68
|
+
/**
|
|
69
|
+
* - Private RSA JWK "d" (Private Exponent) Parameter
|
|
70
|
+
* - Private EC JWK "d" (ECC Private Key) Parameter
|
|
71
|
+
* - Private OKP JWK "d" (The Private Key) Parameter
|
|
72
|
+
*/
|
|
73
|
+
d?: string;
|
|
74
|
+
/** Private RSA JWK "dp" (First Factor CRT Exponent) Parameter */
|
|
75
|
+
dp?: string;
|
|
76
|
+
/** Private RSA JWK "dq" (Second Factor CRT Exponent) Parameter */
|
|
77
|
+
dq?: string;
|
|
78
|
+
/** RSA JWK "e" (Exponent) Parameter */
|
|
79
|
+
e?: string;
|
|
80
|
+
/** Oct JWK "k" (Key Value) Parameter */
|
|
81
|
+
k?: string;
|
|
82
|
+
/** RSA JWK "n" (Modulus) Parameter */
|
|
83
|
+
n?: string;
|
|
84
|
+
/** Private RSA JWK "p" (First Prime Factor) Parameter */
|
|
85
|
+
p?: string;
|
|
86
|
+
/** Private RSA JWK "q" (Second Prime Factor) Parameter */
|
|
87
|
+
q?: string;
|
|
88
|
+
/** Private RSA JWK "qi" (First CRT Coefficient) Parameter */
|
|
89
|
+
qi?: string;
|
|
90
|
+
/**
|
|
91
|
+
* - EC JWK "x" (X Coordinate) Parameter
|
|
92
|
+
* - OKP JWK "x" (The public key) Parameter
|
|
93
|
+
*/
|
|
94
|
+
x?: string;
|
|
95
|
+
/** EC JWK "y" (Y Coordinate) Parameter */
|
|
96
|
+
y?: string;
|
|
97
|
+
/** AKP JWK "pub" (Public Key) Parameter */
|
|
98
|
+
pub?: string;
|
|
99
|
+
/** AKP JWK "priv" (Private key) Parameter */
|
|
100
|
+
priv?: string;
|
|
101
|
+
}
|
|
102
|
+
export declare const jwkSchema: z.ZodType<JWK>;
|
|
103
|
+
export interface JSONWebKeySet {
|
|
104
|
+
keys: JWK[];
|
|
105
|
+
}
|
|
106
|
+
export declare const jsonWebKeySetSchema: z.ZodObject<{
|
|
107
|
+
keys: z.ZodArray<z.ZodType<JWK, z.ZodTypeDef, JWK>, "many">;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
keys: JWK[];
|
|
110
|
+
}, {
|
|
111
|
+
keys: JWK[];
|
|
112
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.jsonWebKeySetSchema = exports.jwkSchema = exports.jwkParametersSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.jwkParametersSchema = zod_1.z.object({
|
|
6
|
+
kty: zod_1.z.string().optional(),
|
|
7
|
+
alg: zod_1.z.string().optional(),
|
|
8
|
+
key_ops: zod_1.z.array(zod_1.z.string()).optional(),
|
|
9
|
+
ext: zod_1.z.boolean().optional(),
|
|
10
|
+
use: zod_1.z.string().optional(),
|
|
11
|
+
x5c: zod_1.z.array(zod_1.z.string()).optional(),
|
|
12
|
+
x5t: zod_1.z.string().optional(),
|
|
13
|
+
'x5t#S256': zod_1.z.string().optional(),
|
|
14
|
+
x5u: zod_1.z.string().optional(),
|
|
15
|
+
kid: zod_1.z.string().optional(),
|
|
16
|
+
});
|
|
17
|
+
exports.jwkSchema = exports.jwkParametersSchema.extend({
|
|
18
|
+
crv: zod_1.z.string().optional(),
|
|
19
|
+
d: zod_1.z.string().optional(),
|
|
20
|
+
dp: zod_1.z.string().optional(),
|
|
21
|
+
dq: zod_1.z.string().optional(),
|
|
22
|
+
e: zod_1.z.string().optional(),
|
|
23
|
+
k: zod_1.z.string().optional(),
|
|
24
|
+
n: zod_1.z.string().optional(),
|
|
25
|
+
p: zod_1.z.string().optional(),
|
|
26
|
+
q: zod_1.z.string().optional(),
|
|
27
|
+
qi: zod_1.z.string().optional(),
|
|
28
|
+
x: zod_1.z.string().optional(),
|
|
29
|
+
y: zod_1.z.string().optional(),
|
|
30
|
+
pub: zod_1.z.string().optional(),
|
|
31
|
+
priv: zod_1.z.string().optional(),
|
|
32
|
+
});
|
|
33
|
+
exports.jsonWebKeySetSchema = zod_1.z.object({
|
|
34
|
+
keys: zod_1.z.array(exports.jwkSchema),
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=jwt.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt.types.js","sourceRoot":"","sources":["../../../../src/types/auth/jwt.types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AA+BX,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,GAAG,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC3B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,GAAG,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACU,CAAC,CAAC;AA6C3B,QAAA,SAAS,GAAmB,2BAAmB,CAAC,MAAM,CAAC;IAClE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACc,CAAC,CAAC;AAOhC,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,iBAAS,CAAC;CACY,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { RawZodShape } from '../common.types';\n\n\nexport interface JWKParameters {\n /** JWK \"kty\" (Key Type) Parameter */\n kty?: string;\n /**\n * JWK \"alg\" (Algorithm) Parameter\n *\n * @see {@link https://github.com/panva/jose/issues/210 Algorithm Key Requirements}\n */\n alg?: string;\n /** JWK \"key_ops\" (Key Operations) Parameter */\n key_ops?: string[];\n /** JWK \"ext\" (Extractable) Parameter */\n ext?: boolean;\n /** JWK \"use\" (Public Key Use) Parameter */\n use?: string;\n /** JWK \"x5c\" (X.509 Certificate Chain) Parameter */\n x5c?: string[];\n /** JWK \"x5t\" (X.509 Certificate SHA-1 Thumbprint) Parameter */\n x5t?: string;\n /** JWK \"x5t#S256\" (X.509 Certificate SHA-256 Thumbprint) Parameter */\n 'x5t#S256'?: string;\n /** JWK \"x5u\" (X.509 URL) Parameter */\n x5u?: string;\n /** JWK \"kid\" (Key ID) Parameter */\n kid?: string;\n}\n\nexport const jwkParametersSchema = z.object({\n kty: z.string().optional(),\n alg: z.string().optional(),\n key_ops: z.array(z.string()).optional(),\n ext: z.boolean().optional(),\n use: z.string().optional(),\n x5c: z.array(z.string()).optional(),\n x5t: z.string().optional(),\n 'x5t#S256': z.string().optional(),\n x5u: z.string().optional(),\n kid: z.string().optional(),\n} satisfies RawZodShape<JWKParameters>);\n\n\nexport interface JWK extends JWKParameters {\n /**\n * - EC JWK \"crv\" (Curve) Parameter\n * - OKP JWK \"crv\" (The Subtype of Key Pair) Parameter\n */\n crv?: string;\n /**\n * - Private RSA JWK \"d\" (Private Exponent) Parameter\n * - Private EC JWK \"d\" (ECC Private Key) Parameter\n * - Private OKP JWK \"d\" (The Private Key) Parameter\n */\n d?: string;\n /** Private RSA JWK \"dp\" (First Factor CRT Exponent) Parameter */\n dp?: string;\n /** Private RSA JWK \"dq\" (Second Factor CRT Exponent) Parameter */\n dq?: string;\n /** RSA JWK \"e\" (Exponent) Parameter */\n e?: string;\n /** Oct JWK \"k\" (Key Value) Parameter */\n k?: string;\n /** RSA JWK \"n\" (Modulus) Parameter */\n n?: string;\n /** Private RSA JWK \"p\" (First Prime Factor) Parameter */\n p?: string;\n /** Private RSA JWK \"q\" (Second Prime Factor) Parameter */\n q?: string;\n /** Private RSA JWK \"qi\" (First CRT Coefficient) Parameter */\n qi?: string;\n /**\n * - EC JWK \"x\" (X Coordinate) Parameter\n * - OKP JWK \"x\" (The public key) Parameter\n */\n x?: string;\n /** EC JWK \"y\" (Y Coordinate) Parameter */\n y?: string;\n /** AKP JWK \"pub\" (Public Key) Parameter */\n pub?: string;\n /** AKP JWK \"priv\" (Private key) Parameter */\n priv?: string;\n}\n\n\nexport const jwkSchema: z.ZodType<JWK> = jwkParametersSchema.extend({\n crv: z.string().optional(),\n d: z.string().optional(),\n dp: z.string().optional(),\n dq: z.string().optional(),\n e: z.string().optional(),\n k: z.string().optional(),\n n: z.string().optional(),\n p: z.string().optional(),\n q: z.string().optional(),\n qi: z.string().optional(),\n x: z.string().optional(),\n y: z.string().optional(),\n pub: z.string().optional(),\n priv: z.string().optional(),\n} satisfies RawZodShape<JWK, JWKParameters>);\n\n\nexport interface JSONWebKeySet {\n keys: JWK[];\n}\n\nexport const jsonWebKeySetSchema = z.object({\n keys: z.array(jwkSchema),\n} satisfies RawZodShape<JSONWebKeySet>);\n"]}
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpRequestIntent } from '@frontmcp/sdk';
|
|
3
|
+
/**
|
|
4
|
+
* Decoded JWT payload (if any) or empty object
|
|
5
|
+
*/
|
|
6
|
+
export type UserClaim = {
|
|
7
|
+
iss: string;
|
|
8
|
+
sid?: string;
|
|
9
|
+
sub: string;
|
|
10
|
+
exp?: number;
|
|
11
|
+
iat?: number;
|
|
12
|
+
aud?: string | string[];
|
|
13
|
+
email?: string;
|
|
14
|
+
username?: string;
|
|
15
|
+
preferred_username?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
picture?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const userClaimSchema: z.ZodObject<{
|
|
20
|
+
iss: z.ZodString;
|
|
21
|
+
sid: z.ZodOptional<z.ZodString>;
|
|
22
|
+
sub: z.ZodString;
|
|
23
|
+
exp: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
iat: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
26
|
+
email: z.ZodOptional<z.ZodString>;
|
|
27
|
+
username: z.ZodOptional<z.ZodString>;
|
|
28
|
+
preferred_username: z.ZodOptional<z.ZodString>;
|
|
29
|
+
name: z.ZodOptional<z.ZodString>;
|
|
30
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
32
|
+
iss: z.ZodString;
|
|
33
|
+
sid: z.ZodOptional<z.ZodString>;
|
|
34
|
+
sub: z.ZodString;
|
|
35
|
+
exp: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
iat: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
38
|
+
email: z.ZodOptional<z.ZodString>;
|
|
39
|
+
username: z.ZodOptional<z.ZodString>;
|
|
40
|
+
preferred_username: z.ZodOptional<z.ZodString>;
|
|
41
|
+
name: z.ZodOptional<z.ZodString>;
|
|
42
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
44
|
+
iss: z.ZodString;
|
|
45
|
+
sid: z.ZodOptional<z.ZodString>;
|
|
46
|
+
sub: z.ZodString;
|
|
47
|
+
exp: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
iat: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
50
|
+
email: z.ZodOptional<z.ZodString>;
|
|
51
|
+
username: z.ZodOptional<z.ZodString>;
|
|
52
|
+
preferred_username: z.ZodOptional<z.ZodString>;
|
|
53
|
+
name: z.ZodOptional<z.ZodString>;
|
|
54
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
56
|
+
export type SessionIdPayload = {
|
|
57
|
+
nodeId: string;
|
|
58
|
+
authSig: string;
|
|
59
|
+
uuid: string;
|
|
60
|
+
iat: number;
|
|
61
|
+
protocol: HttpRequestIntent;
|
|
62
|
+
};
|
|
63
|
+
export declare const sessionIdPayloadSchema: z.ZodObject<{
|
|
64
|
+
nodeId: z.ZodString;
|
|
65
|
+
authSig: z.ZodString;
|
|
66
|
+
uuid: z.ZodString;
|
|
67
|
+
iat: z.ZodNumber;
|
|
68
|
+
protocol: z.ZodEnum<["legacy-sse", "sse", "streamable-http", "stateful-http", "stateless-http"]>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
iat: number;
|
|
71
|
+
nodeId: string;
|
|
72
|
+
authSig: string;
|
|
73
|
+
uuid: string;
|
|
74
|
+
protocol: "legacy-sse" | "sse" | "streamable-http" | "stateful-http" | "stateless-http";
|
|
75
|
+
}, {
|
|
76
|
+
iat: number;
|
|
77
|
+
nodeId: string;
|
|
78
|
+
authSig: string;
|
|
79
|
+
uuid: string;
|
|
80
|
+
protocol: "legacy-sse" | "sse" | "streamable-http" | "stateful-http" | "stateless-http";
|
|
81
|
+
}>;
|
|
82
|
+
export interface Authorization {
|
|
83
|
+
token: string;
|
|
84
|
+
user: UserClaim;
|
|
85
|
+
session?: {
|
|
86
|
+
id: string;
|
|
87
|
+
payload: SessionIdPayload;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
export declare const sessionIdSchema: z.ZodObject<{
|
|
91
|
+
id: z.ZodString;
|
|
92
|
+
payload: z.ZodObject<{
|
|
93
|
+
nodeId: z.ZodString;
|
|
94
|
+
authSig: z.ZodString;
|
|
95
|
+
uuid: z.ZodString;
|
|
96
|
+
iat: z.ZodNumber;
|
|
97
|
+
protocol: z.ZodEnum<["legacy-sse", "sse", "streamable-http", "stateful-http", "stateless-http"]>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
iat: number;
|
|
100
|
+
nodeId: string;
|
|
101
|
+
authSig: string;
|
|
102
|
+
uuid: string;
|
|
103
|
+
protocol: "legacy-sse" | "sse" | "streamable-http" | "stateful-http" | "stateless-http";
|
|
104
|
+
}, {
|
|
105
|
+
iat: number;
|
|
106
|
+
nodeId: string;
|
|
107
|
+
authSig: string;
|
|
108
|
+
uuid: string;
|
|
109
|
+
protocol: "legacy-sse" | "sse" | "streamable-http" | "stateful-http" | "stateless-http";
|
|
110
|
+
}>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
id: string;
|
|
113
|
+
payload: {
|
|
114
|
+
iat: number;
|
|
115
|
+
nodeId: string;
|
|
116
|
+
authSig: string;
|
|
117
|
+
uuid: string;
|
|
118
|
+
protocol: "legacy-sse" | "sse" | "streamable-http" | "stateful-http" | "stateless-http";
|
|
119
|
+
};
|
|
120
|
+
}, {
|
|
121
|
+
id: string;
|
|
122
|
+
payload: {
|
|
123
|
+
iat: number;
|
|
124
|
+
nodeId: string;
|
|
125
|
+
authSig: string;
|
|
126
|
+
uuid: string;
|
|
127
|
+
protocol: "legacy-sse" | "sse" | "streamable-http" | "stateful-http" | "stateless-http";
|
|
128
|
+
};
|
|
129
|
+
}>;
|
|
130
|
+
export declare const authorizationSchema: z.ZodObject<{
|
|
131
|
+
token: z.ZodString;
|
|
132
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
id: z.ZodString;
|
|
134
|
+
payload: z.ZodObject<{
|
|
135
|
+
nodeId: z.ZodString;
|
|
136
|
+
authSig: z.ZodString;
|
|
137
|
+
uuid: z.ZodString;
|
|
138
|
+
iat: z.ZodNumber;
|
|
139
|
+
protocol: z.ZodEnum<["legacy-sse", "sse", "streamable-http", "stateful-http", "stateless-http"]>;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
iat: number;
|
|
142
|
+
nodeId: string;
|
|
143
|
+
authSig: string;
|
|
144
|
+
uuid: string;
|
|
145
|
+
protocol: "legacy-sse" | "sse" | "streamable-http" | "stateful-http" | "stateless-http";
|
|
146
|
+
}, {
|
|
147
|
+
iat: number;
|
|
148
|
+
nodeId: string;
|
|
149
|
+
authSig: string;
|
|
150
|
+
uuid: string;
|
|
151
|
+
protocol: "legacy-sse" | "sse" | "streamable-http" | "stateful-http" | "stateless-http";
|
|
152
|
+
}>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
id: string;
|
|
155
|
+
payload: {
|
|
156
|
+
iat: number;
|
|
157
|
+
nodeId: string;
|
|
158
|
+
authSig: string;
|
|
159
|
+
uuid: string;
|
|
160
|
+
protocol: "legacy-sse" | "sse" | "streamable-http" | "stateful-http" | "stateless-http";
|
|
161
|
+
};
|
|
162
|
+
}, {
|
|
163
|
+
id: string;
|
|
164
|
+
payload: {
|
|
165
|
+
iat: number;
|
|
166
|
+
nodeId: string;
|
|
167
|
+
authSig: string;
|
|
168
|
+
uuid: string;
|
|
169
|
+
protocol: "legacy-sse" | "sse" | "streamable-http" | "stateful-http" | "stateless-http";
|
|
170
|
+
};
|
|
171
|
+
}>>;
|
|
172
|
+
user: z.ZodObject<{
|
|
173
|
+
iss: z.ZodString;
|
|
174
|
+
sid: z.ZodOptional<z.ZodString>;
|
|
175
|
+
sub: z.ZodString;
|
|
176
|
+
exp: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
iat: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
179
|
+
email: z.ZodOptional<z.ZodString>;
|
|
180
|
+
username: z.ZodOptional<z.ZodString>;
|
|
181
|
+
preferred_username: z.ZodOptional<z.ZodString>;
|
|
182
|
+
name: z.ZodOptional<z.ZodString>;
|
|
183
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
185
|
+
iss: z.ZodString;
|
|
186
|
+
sid: z.ZodOptional<z.ZodString>;
|
|
187
|
+
sub: z.ZodString;
|
|
188
|
+
exp: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
iat: z.ZodOptional<z.ZodNumber>;
|
|
190
|
+
aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
191
|
+
email: z.ZodOptional<z.ZodString>;
|
|
192
|
+
username: z.ZodOptional<z.ZodString>;
|
|
193
|
+
preferred_username: z.ZodOptional<z.ZodString>;
|
|
194
|
+
name: z.ZodOptional<z.ZodString>;
|
|
195
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
196
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
197
|
+
iss: z.ZodString;
|
|
198
|
+
sid: z.ZodOptional<z.ZodString>;
|
|
199
|
+
sub: z.ZodString;
|
|
200
|
+
exp: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
iat: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
203
|
+
email: z.ZodOptional<z.ZodString>;
|
|
204
|
+
username: z.ZodOptional<z.ZodString>;
|
|
205
|
+
preferred_username: z.ZodOptional<z.ZodString>;
|
|
206
|
+
name: z.ZodOptional<z.ZodString>;
|
|
207
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
208
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
token: string;
|
|
211
|
+
user: {
|
|
212
|
+
sub: string;
|
|
213
|
+
iss: string;
|
|
214
|
+
name?: string | undefined;
|
|
215
|
+
sid?: string | undefined;
|
|
216
|
+
exp?: number | undefined;
|
|
217
|
+
iat?: number | undefined;
|
|
218
|
+
aud?: string | string[] | undefined;
|
|
219
|
+
email?: string | undefined;
|
|
220
|
+
username?: string | undefined;
|
|
221
|
+
preferred_username?: string | undefined;
|
|
222
|
+
picture?: string | undefined;
|
|
223
|
+
} & {
|
|
224
|
+
[k: string]: unknown;
|
|
225
|
+
};
|
|
226
|
+
session?: {
|
|
227
|
+
id: string;
|
|
228
|
+
payload: {
|
|
229
|
+
iat: number;
|
|
230
|
+
nodeId: string;
|
|
231
|
+
authSig: string;
|
|
232
|
+
uuid: string;
|
|
233
|
+
protocol: "legacy-sse" | "sse" | "streamable-http" | "stateful-http" | "stateless-http";
|
|
234
|
+
};
|
|
235
|
+
} | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
token: string;
|
|
238
|
+
user: {
|
|
239
|
+
sub: string;
|
|
240
|
+
iss: string;
|
|
241
|
+
name?: string | undefined;
|
|
242
|
+
sid?: string | undefined;
|
|
243
|
+
exp?: number | undefined;
|
|
244
|
+
iat?: number | undefined;
|
|
245
|
+
aud?: string | string[] | undefined;
|
|
246
|
+
email?: string | undefined;
|
|
247
|
+
username?: string | undefined;
|
|
248
|
+
preferred_username?: string | undefined;
|
|
249
|
+
picture?: string | undefined;
|
|
250
|
+
} & {
|
|
251
|
+
[k: string]: unknown;
|
|
252
|
+
};
|
|
253
|
+
session?: {
|
|
254
|
+
id: string;
|
|
255
|
+
payload: {
|
|
256
|
+
iat: number;
|
|
257
|
+
nodeId: string;
|
|
258
|
+
authSig: string;
|
|
259
|
+
uuid: string;
|
|
260
|
+
protocol: "legacy-sse" | "sse" | "streamable-http" | "stateful-http" | "stateless-http";
|
|
261
|
+
};
|
|
262
|
+
} | undefined;
|
|
263
|
+
}>;
|