@frontmcp/sdk 0.2.5 → 0.3.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 +81 -99
- package/package.json +24 -2
- package/src/adapter/adapter.instance.d.ts +11 -0
- package/src/adapter/adapter.instance.js +65 -0
- package/src/adapter/adapter.instance.js.map +1 -0
- package/src/adapter/adapter.regsitry.d.ts +13 -0
- package/src/adapter/adapter.regsitry.js +54 -0
- package/src/adapter/adapter.regsitry.js.map +1 -0
- package/src/adapter/adapter.utils.d.ts +10 -0
- package/src/adapter/adapter.utils.js +83 -0
- package/src/adapter/adapter.utils.js.map +1 -0
- package/src/app/app.registry.d.ts +12 -0
- package/src/app/app.registry.js +64 -0
- package/src/app/app.registry.js.map +1 -0
- package/src/app/app.utils.d.ts +15 -0
- package/src/app/app.utils.js +58 -0
- package/src/app/app.utils.js.map +1 -0
- package/src/app/instances/app.local.instance.d.ts +25 -0
- package/src/app/instances/app.local.instance.js +70 -0
- package/src/app/instances/app.local.instance.js.map +1 -0
- package/src/app/instances/app.remote.instance.d.ts +13 -0
- package/src/app/instances/app.remote.instance.js +36 -0
- package/src/app/instances/app.remote.instance.js.map +1 -0
- package/src/app/instances/index.d.ts +2 -0
- package/src/app/instances/index.js +6 -0
- package/src/app/instances/index.js.map +1 -0
- package/src/auth/auth.registry.d.ts +13 -0
- package/src/auth/auth.registry.js +81 -0
- package/src/auth/auth.registry.js.map +1 -0
- package/src/auth/auth.utils.d.ts +10 -0
- package/src/auth/auth.utils.js +85 -0
- package/src/auth/auth.utils.js.map +1 -0
- package/src/auth/flows/oauth.authorize.flow.d.ts +231 -0
- package/src/auth/flows/oauth.authorize.flow.js +154 -0
- package/src/auth/flows/oauth.authorize.flow.js.map +1 -0
- package/src/auth/flows/oauth.register.flow.d.ts +202 -0
- package/src/auth/flows/oauth.register.flow.js +201 -0
- package/src/auth/flows/oauth.register.flow.js.map +1 -0
- package/src/auth/flows/oauth.token.flow.d.ts +242 -0
- package/src/auth/flows/oauth.token.flow.js +181 -0
- package/src/auth/flows/oauth.token.flow.js.map +1 -0
- package/src/auth/flows/session.verify.flow.d.ts +404 -0
- package/src/auth/flows/session.verify.flow.js +205 -0
- package/src/auth/flows/session.verify.flow.js.map +1 -0
- package/src/auth/flows/well-known.jwks.flow.d.ts +261 -0
- package/src/auth/flows/well-known.jwks.flow.js +82 -0
- package/src/auth/flows/well-known.jwks.flow.js.map +1 -0
- package/src/auth/flows/well-known.oauth-authorization-server.flow.d.ts +282 -0
- package/src/auth/flows/well-known.oauth-authorization-server.flow.js +123 -0
- package/src/auth/flows/well-known.oauth-authorization-server.flow.js.map +1 -0
- package/src/auth/flows/well-known.prm.flow.d.ts +159 -0
- package/src/auth/flows/well-known.prm.flow.js +107 -0
- package/src/auth/flows/well-known.prm.flow.js.map +1 -0
- package/src/auth/instances/instance.local-primary-auth.d.ts +19 -0
- package/src/auth/instances/instance.local-primary-auth.js +76 -0
- package/src/auth/instances/instance.local-primary-auth.js.map +1 -0
- package/src/auth/instances/instance.remote-primary-auth.d.ts +14 -0
- package/src/auth/instances/instance.remote-primary-auth.js +47 -0
- package/src/auth/instances/instance.remote-primary-auth.js.map +1 -0
- package/src/auth/jwks/index.d.ts +2 -0
- package/src/auth/jwks/index.js +6 -0
- package/src/auth/jwks/index.js.map +1 -0
- package/src/auth/jwks/jwks.service.d.ts +41 -0
- package/src/auth/jwks/jwks.service.js +235 -0
- package/src/auth/jwks/jwks.service.js.map +1 -0
- package/src/auth/jwks/jwks.types.d.ts +25 -0
- package/src/auth/jwks/jwks.types.js +3 -0
- package/src/auth/jwks/jwks.types.js.map +1 -0
- package/src/auth/jwks/jwks.utils.d.ts +4 -0
- package/src/auth/jwks/jwks.utils.js +32 -0
- package/src/auth/jwks/jwks.utils.js.map +1 -0
- package/src/auth/oauth/flows/oauth.authorize.flow.d.ts +31 -0
- package/src/auth/oauth/flows/oauth.authorize.flow.js +33 -0
- package/src/auth/oauth/flows/oauth.authorize.flow.js.map +1 -0
- package/src/auth/oauth/flows/oauth.device-authorization.flow.d.ts +46 -0
- package/src/auth/oauth/flows/oauth.device-authorization.flow.js +48 -0
- package/src/auth/oauth/flows/oauth.device-authorization.flow.js.map +1 -0
- package/src/auth/oauth/flows/oauth.introspect.flow.d.ts +26 -0
- package/src/auth/oauth/flows/oauth.introspect.flow.js +28 -0
- package/src/auth/oauth/flows/oauth.introspect.flow.js.map +1 -0
- package/src/auth/oauth/flows/oauth.par.flow.d.ts +27 -0
- package/src/auth/oauth/flows/oauth.par.flow.js +29 -0
- package/src/auth/oauth/flows/oauth.par.flow.js.map +1 -0
- package/src/auth/oauth/flows/oauth.revoke.flow.d.ts +25 -0
- package/src/auth/oauth/flows/oauth.revoke.flow.js +27 -0
- package/src/auth/oauth/flows/oauth.revoke.flow.js.map +1 -0
- package/src/auth/oauth/flows/oauth.token.flow.d.ts +57 -0
- package/src/auth/oauth/flows/oauth.token.flow.js +59 -0
- package/src/auth/oauth/flows/oauth.token.flow.js.map +1 -0
- package/src/auth/oauth/flows/oauth.userinfo.flow.d.ts +22 -0
- package/src/auth/oauth/flows/oauth.userinfo.flow.js +24 -0
- package/src/auth/oauth/flows/oauth.userinfo.flow.js.map +1 -0
- package/src/auth/oauth/flows/oidc.logout.flow.d.ts +18 -0
- package/src/auth/oauth/flows/oidc.logout.flow.js +20 -0
- package/src/auth/oauth/flows/oidc.logout.flow.js.map +1 -0
- package/src/auth/path.utils.d.ts +20 -0
- package/src/auth/path.utils.js +71 -0
- package/src/auth/path.utils.js.map +1 -0
- package/src/auth/session/index.d.ts +4 -0
- package/src/auth/session/index.js +10 -0
- package/src/auth/session/index.js.map +1 -0
- package/src/auth/session/record/session.base.d.ts +103 -0
- package/src/auth/session/record/session.base.js +123 -0
- package/src/auth/session/record/session.base.js.map +1 -0
- package/src/auth/session/record/session.stateful.d.ts +20 -0
- package/src/auth/session/record/session.stateful.js +55 -0
- package/src/auth/session/record/session.stateful.js.map +1 -0
- package/src/auth/session/record/session.stateless.d.ts +17 -0
- package/src/auth/session/record/session.stateless.js +30 -0
- package/src/auth/session/record/session.stateless.js.map +1 -0
- package/src/auth/session/record/session.transparent.d.ts +17 -0
- package/src/auth/session/record/session.transparent.js +22 -0
- package/src/auth/session/record/session.transparent.js.map +1 -0
- package/src/auth/session/session.crypto.d.ts +7 -0
- package/src/auth/session/session.crypto.js +47 -0
- package/src/auth/session/session.crypto.js.map +1 -0
- package/src/auth/session/session.schema.d.ts +5 -0
- package/src/auth/session/session.schema.js +13 -0
- package/src/auth/session/session.schema.js.map +1 -0
- package/src/auth/session/session.service.d.ts +17 -0
- package/src/auth/session/session.service.js +111 -0
- package/src/auth/session/session.service.js.map +1 -0
- package/src/auth/session/session.transport.d.ts +4 -0
- package/src/auth/session/session.transport.js +20 -0
- package/src/auth/session/session.transport.js.map +1 -0
- package/src/auth/session/session.types.d.ts +65 -0
- package/src/auth/session/session.types.js +4 -0
- package/src/auth/session/session.types.js.map +1 -0
- package/src/auth/session/token.refresh.d.ts +60 -0
- package/src/auth/session/token.refresh.js +63 -0
- package/src/auth/session/token.refresh.js.map +1 -0
- package/src/auth/session/token.store.d.ts +35 -0
- package/src/auth/session/token.store.js +53 -0
- package/src/auth/session/token.store.js.map +1 -0
- package/src/auth/session/token.vault.d.ts +26 -0
- package/src/auth/session/token.vault.js +54 -0
- package/src/auth/session/token.vault.js.map +1 -0
- package/src/auth/session/utils/auth-token.utils.d.ts +11 -0
- package/src/auth/session/utils/auth-token.utils.js +57 -0
- package/src/auth/session/utils/auth-token.utils.js.map +1 -0
- package/src/auth/session/utils/session-id.utils.d.ts +17 -0
- package/src/auth/session/utils/session-id.utils.js +129 -0
- package/src/auth/session/utils/session-id.utils.js.map +1 -0
- package/src/auth/session/utils/tiny-ttl-cache.d.ts +7 -0
- package/src/auth/session/utils/tiny-ttl-cache.js +26 -0
- package/src/auth/session/utils/tiny-ttl-cache.js.map +1 -0
- package/src/common/common.schema.d.ts +29 -0
- package/src/common/common.schema.js +35 -0
- package/src/common/common.schema.js.map +1 -0
- package/src/common/constants.d.ts +2 -0
- package/src/common/constants.js +8 -0
- package/src/common/constants.js.map +1 -0
- package/src/common/decorators/adapter.decorator.js.map +1 -0
- package/src/common/decorators/app.decorator.js.map +1 -0
- package/src/common/decorators/auth-provider.decorator.js.map +1 -0
- package/src/common/decorators/flow.decorator.js.map +1 -0
- package/src/common/decorators/front-mcp.decorator.js +40 -0
- package/src/common/decorators/front-mcp.decorator.js.map +1 -0
- package/src/common/decorators/hook.decorator.js.map +1 -0
- package/src/common/decorators/index.js.map +1 -0
- package/src/common/decorators/logger.decorator.js.map +1 -0
- package/src/common/decorators/plugin.decorator.js.map +1 -0
- package/src/common/decorators/prompt.decorator.js.map +1 -0
- package/src/common/decorators/provider.decorator.js.map +1 -0
- package/src/common/decorators/resource.decorator.js.map +1 -0
- package/src/common/decorators/tool.decorator.d.ts +42 -0
- package/src/common/decorators/tool.decorator.js +46 -0
- package/src/common/decorators/tool.decorator.js.map +1 -0
- package/src/common/decorators-old/async-with.decorator.d.ts +10 -0
- package/src/common/decorators-old/async-with.decorator.js +24 -0
- package/src/common/decorators-old/async-with.decorator.js.map +1 -0
- package/src/common/decorators-old/auth-hook.decorator.js.map +1 -0
- package/src/common/decorators-old/session-hook.decorator.js.map +1 -0
- package/src/common/dynamic/dynamic.adapter.js.map +1 -0
- package/src/common/dynamic/dynamic.plugin.js.map +1 -0
- package/src/common/dynamic/dynamic.utils.d.ts +3 -0
- package/src/common/dynamic/dynamic.utils.js.map +1 -0
- package/src/common/dynamic/index.js.map +1 -0
- package/src/common/entries/adapter.entry.js.map +1 -0
- package/src/common/entries/app.entry.d.ts +13 -0
- package/src/common/entries/app.entry.js.map +1 -0
- package/src/common/entries/auth-provider.entry.js.map +1 -0
- package/src/common/entries/base.entry.js.map +1 -0
- package/src/common/entries/flow.entry.js.map +1 -0
- package/src/common/entries/hook.entry.js.map +1 -0
- package/src/common/entries/index.js.map +1 -0
- package/src/common/entries/logger.entry.js.map +1 -0
- package/src/common/entries/plugin.entry.js.map +1 -0
- package/src/common/entries/prompt.entry.js.map +1 -0
- package/src/common/entries/provider.entry.js.map +1 -0
- package/src/common/entries/resource.entry.js.map +1 -0
- package/src/common/entries/scope.entry.js.map +1 -0
- package/src/common/entries/tool.entry.js.map +1 -0
- package/src/common/index.d.ts +17 -0
- package/src/common/index.js +21 -0
- package/src/common/index.js.map +1 -0
- package/src/common/interfaces/adapter.interface.js.map +1 -0
- package/src/common/interfaces/app.interface.js.map +1 -0
- package/src/common/interfaces/auth-hook.interface.js.map +1 -0
- package/src/common/interfaces/auth-provider.interface.js.map +1 -0
- package/src/common/interfaces/base.interface.js.map +1 -0
- package/src/common/interfaces/flow.interface.d.ts +41 -0
- package/src/common/interfaces/flow.interface.js.map +1 -0
- package/src/common/interfaces/front-mcp.interface.js.map +1 -0
- package/src/common/interfaces/hook.interface.js.map +1 -0
- package/src/common/interfaces/index.js.map +1 -0
- package/src/common/interfaces/internal/flow.utils.d.ts +23 -0
- package/src/common/interfaces/internal/flow.utils.js.map +1 -0
- package/src/common/interfaces/internal/index.js.map +1 -0
- package/src/common/interfaces/internal/primary-auth-provider.interface.d.ts +24 -0
- package/src/common/interfaces/internal/primary-auth-provider.interface.js.map +1 -0
- package/src/common/interfaces/internal/registry.interface.d.ts +95 -0
- package/src/common/interfaces/internal/registry.interface.js.map +1 -0
- package/src/common/interfaces/logger.interface.js.map +1 -0
- package/src/common/interfaces/plugin.interface.js.map +1 -0
- package/src/common/interfaces/prompt.interface.js.map +1 -0
- package/src/common/interfaces/provider.interface.js.map +1 -0
- package/src/common/interfaces/resource.interface.js.map +1 -0
- package/src/common/interfaces/scope.interface.js.map +1 -0
- package/src/common/interfaces/server.interface.js.map +1 -0
- package/src/common/interfaces/session-hook.interface.js.map +1 -0
- package/src/common/interfaces/tool-hook.interface.js.map +1 -0
- package/src/common/interfaces/tool.interface.js.map +1 -0
- package/src/common/metadata/adapter.metadata.js.map +1 -0
- package/src/common/metadata/app.metadata.d.ts +872 -0
- package/src/common/metadata/app.metadata.js.map +1 -0
- package/src/common/metadata/auth-provider.metadata.js.map +1 -0
- package/src/common/metadata/flow.metadata.d.ts +77 -0
- package/src/common/metadata/flow.metadata.js.map +1 -0
- package/src/common/metadata/front-mcp.metadata.d.ts +1144 -0
- package/src/common/metadata/front-mcp.metadata.js.map +1 -0
- package/src/common/metadata/hook.metadata.js.map +1 -0
- package/src/common/metadata/index.js.map +1 -0
- package/src/common/metadata/logger.metadata.js.map +1 -0
- package/src/common/metadata/plugin.metadata.js.map +1 -0
- package/src/common/metadata/prompt.metadata.js.map +1 -0
- package/src/common/metadata/provider.metadata.js.map +1 -0
- package/src/common/metadata/resource.metadata.js.map +1 -0
- package/src/common/metadata/tool.metadata.d.ts +178 -0
- package/src/common/metadata/tool.metadata.js.map +1 -0
- package/src/common/providers/session.provider.js.map +1 -0
- package/src/common/records/adapter.record.js.map +1 -0
- package/src/common/records/app.record.js.map +1 -0
- package/src/common/records/auth-provider.record.js.map +1 -0
- package/src/common/records/flow.record.js.map +1 -0
- package/src/common/records/hook.record.js.map +1 -0
- package/src/common/records/index.js.map +1 -0
- package/src/common/records/logger.record.d.ts +11 -0
- package/src/common/records/logger.record.js.map +1 -0
- package/src/common/records/plugin.record.js.map +1 -0
- package/src/common/records/prompt.record.js.map +1 -0
- package/src/common/records/provider.record.js.map +1 -0
- package/src/common/records/resource.record.js.map +1 -0
- package/src/common/records/scope.record.js.map +1 -0
- package/src/common/records/tool.record.js.map +1 -0
- package/src/common/schemas/annotated-class.schema.js.map +1 -0
- package/src/common/schemas/http-input.schema.js.map +1 -0
- package/src/common/schemas/http-output.schema.d.ts +2011 -0
- package/src/common/schemas/http-output.schema.js.map +1 -0
- package/src/common/schemas/index.js.map +1 -0
- package/src/common/tokens/adapter.tokens.js.map +1 -0
- package/src/common/tokens/app.tokens.js.map +1 -0
- package/src/common/tokens/auth-provider.tokens.js.map +1 -0
- package/src/common/tokens/base.tokens.js.map +1 -0
- package/src/common/tokens/flow-hook.tokens.js.map +1 -0
- package/src/common/tokens/flow.tokens.js.map +1 -0
- package/src/common/tokens/front-mcp.tokens.js.map +1 -0
- package/src/common/tokens/index.js.map +1 -0
- package/src/common/tokens/logger.tokens.js.map +1 -0
- package/src/common/tokens/plugin.tokens.js.map +1 -0
- package/src/common/tokens/prompt.tokens.js.map +1 -0
- package/src/common/tokens/provider.tokens.js.map +1 -0
- package/src/common/tokens/resource.tokens.js.map +1 -0
- package/src/common/tokens/server.tokens.js.map +1 -0
- package/src/common/tokens/tool.tokens.js.map +1 -0
- package/src/common/types/auth/index.js.map +1 -0
- package/src/common/types/auth/jwt.types.js.map +1 -0
- package/src/common/types/auth/session.types.d.ts +263 -0
- package/src/common/types/auth/session.types.js.map +1 -0
- package/src/common/types/common.types.js.map +1 -0
- package/src/common/types/index.js.map +1 -0
- package/src/common/types/options/auth.options.d.ts +513 -0
- package/src/common/types/options/auth.options.js.map +1 -0
- package/src/common/types/options/http.options.js.map +1 -0
- package/src/common/types/options/index.js.map +1 -0
- package/src/common/types/options/logging.options.d.ts +39 -0
- package/src/common/types/options/logging.options.js.map +1 -0
- package/src/common/types/options/server-info.options.d.ts +48 -0
- package/src/common/types/options/server-info.options.js.map +1 -0
- package/src/common/types/options/session.options.d.ts +67 -0
- package/src/common/types/options/session.options.js.map +1 -0
- package/src/common/utils/decide-request-intent.utils.d.ts +79 -0
- package/src/common/utils/decide-request-intent.utils.js.map +1 -0
- package/src/common/utils/index.js.map +1 -0
- package/src/common/utils/path.utils.d.ts +20 -0
- package/src/common/utils/path.utils.js.map +1 -0
- package/src/exceptions/mcp-exceptions/session-missing.exception.d.ts +3 -0
- package/src/exceptions/mcp-exceptions/session-missing.exception.js +11 -0
- package/src/exceptions/mcp-exceptions/session-missing.exception.js.map +1 -0
- package/src/exceptions/mcp-exceptions/unsupported-client-version.exception.d.ts +5 -0
- package/src/exceptions/mcp-exceptions/unsupported-client-version.exception.js +15 -0
- package/src/exceptions/mcp-exceptions/unsupported-client-version.exception.js.map +1 -0
- package/src/flows/flow.instance.d.ts +16 -0
- package/src/flows/flow.instance.js +332 -0
- package/src/flows/flow.instance.js.map +1 -0
- package/src/flows/flow.registry.d.ts +14 -0
- package/src/flows/flow.registry.js +79 -0
- package/src/flows/flow.registry.js.map +1 -0
- package/src/flows/flow.stages.d.ts +12 -0
- package/src/flows/flow.stages.js +110 -0
- package/src/flows/flow.stages.js.map +1 -0
- package/src/flows/flow.utils.d.ts +8 -0
- package/src/flows/flow.utils.js +36 -0
- package/src/flows/flow.utils.js.map +1 -0
- package/src/front-mcp/front-mcp.d.ts +12 -0
- package/src/front-mcp/front-mcp.js +44 -0
- package/src/front-mcp/front-mcp.js.map +1 -0
- package/src/front-mcp/front-mcp.providers.d.ts +198 -0
- package/src/front-mcp/front-mcp.providers.js +30 -0
- package/src/front-mcp/front-mcp.providers.js.map +1 -0
- package/src/front-mcp/front-mcp.tokens.d.ts +2 -0
- package/src/front-mcp/front-mcp.tokens.js +5 -0
- package/src/front-mcp/front-mcp.tokens.js.map +1 -0
- package/src/front-mcp/index.d.ts +1 -0
- package/src/front-mcp/index.js +5 -0
- package/src/front-mcp/index.js.map +1 -0
- package/src/hooks/hook.instance.d.ts +7 -0
- package/src/hooks/hook.instance.js +23 -0
- package/src/hooks/hook.instance.js.map +1 -0
- package/src/hooks/hook.registry.d.ts +34 -0
- package/src/hooks/hook.registry.js +138 -0
- package/src/hooks/hook.registry.js.map +1 -0
- package/src/hooks/hooks.utils.d.ts +3 -0
- package/src/hooks/hooks.utils.js +27 -0
- package/src/hooks/hooks.utils.js.map +1 -0
- package/src/index.d.ts +21 -18
- package/src/index.js +9 -18
- package/src/index.js.map +1 -1
- package/src/logger/instances/instance.console-logger.d.ts +10 -0
- package/src/logger/instances/instance.console-logger.js +75 -0
- package/src/logger/instances/instance.console-logger.js.map +1 -0
- package/src/logger/instances/instance.logger.d.ts +24 -0
- package/src/logger/instances/instance.logger.js +77 -0
- package/src/logger/instances/instance.logger.js.map +1 -0
- package/src/logger/logger.registry.d.ts +13 -0
- package/src/logger/logger.registry.js +91 -0
- package/src/logger/logger.registry.js.map +1 -0
- package/src/logger/logger.tokens.d.ts +1 -0
- package/src/logger/logger.tokens.js +3 -0
- package/src/logger/logger.tokens.js.map +1 -0
- package/src/logger/logger.types.d.ts +10 -0
- package/src/logger/logger.types.js +8 -0
- package/src/logger/logger.types.js.map +1 -0
- package/src/logger/logger.utils.d.ts +15 -0
- package/src/logger/logger.utils.js +42 -0
- package/src/logger/logger.utils.js.map +1 -0
- package/src/plugin/plugin.registry.d.ts +24 -0
- package/src/plugin/plugin.registry.js +137 -0
- package/src/plugin/plugin.registry.js.map +1 -0
- package/src/plugin/plugin.utils.d.ts +10 -0
- package/src/plugin/plugin.utils.js +88 -0
- package/src/plugin/plugin.utils.js.map +1 -0
- package/src/prompt/prompt.registry.d.ts +16 -0
- package/src/prompt/prompt.registry.js +34 -0
- package/src/prompt/prompt.registry.js.map +1 -0
- package/src/provider/provider.registry.d.ts +75 -0
- package/src/provider/provider.registry.js +679 -0
- package/src/provider/provider.registry.js.map +1 -0
- package/src/provider/provider.types.d.ts +9 -0
- package/src/provider/provider.types.js +3 -0
- package/src/provider/provider.types.js.map +1 -0
- package/src/provider/provider.utils.d.ts +13 -0
- package/src/provider/provider.utils.js +103 -0
- package/src/provider/provider.utils.js.map +1 -0
- package/src/regsitry/index.d.ts +1 -0
- package/src/regsitry/index.js +5 -0
- package/src/regsitry/index.js.map +1 -0
- package/src/regsitry/registry.base.d.ts +25 -0
- package/src/regsitry/registry.base.js +32 -0
- package/src/regsitry/registry.base.js.map +1 -0
- package/src/resource/resource.registry.d.ts +15 -0
- package/src/resource/resource.registry.js +31 -0
- package/src/resource/resource.registry.js.map +1 -0
- package/src/scope/flows/http.request.flow.d.ts +384 -0
- package/src/scope/flows/http.request.flow.js +210 -0
- package/src/scope/flows/http.request.flow.js.map +1 -0
- package/src/scope/index.d.ts +1 -0
- package/src/scope/index.js +6 -0
- package/src/scope/index.js.map +1 -0
- package/src/scope/scope.instance.d.ts +35 -0
- package/src/scope/scope.instance.js +120 -0
- package/src/scope/scope.instance.js.map +1 -0
- package/src/scope/scope.registry.d.ts +10 -0
- package/src/scope/scope.registry.js +93 -0
- package/src/scope/scope.registry.js.map +1 -0
- package/src/scope/scope.utils.d.ts +13 -0
- package/src/scope/scope.utils.js +59 -0
- package/src/scope/scope.utils.js.map +1 -0
- package/src/server/adapters/base.host.adapter.d.ts +7 -0
- package/src/server/adapters/base.host.adapter.js +8 -0
- package/src/server/adapters/base.host.adapter.js.map +1 -0
- package/src/server/adapters/express.host.adapter.d.ts +12 -0
- package/src/server/adapters/express.host.adapter.js +50 -0
- package/src/server/adapters/express.host.adapter.js.map +1 -0
- package/src/server/server.instance.d.ts +12 -0
- package/src/server/server.instance.js +47 -0
- package/src/server/server.instance.js.map +1 -0
- package/src/server/server.types.d.ts +24 -0
- package/src/server/server.types.js +3 -0
- package/src/server/server.types.js.map +1 -0
- package/src/server/server.validation.d.ts +2 -0
- package/src/server/server.validation.js +192 -0
- package/src/server/server.validation.js.map +1 -0
- package/src/store/adapters/store.base.adapter.d.ts +21 -0
- package/src/store/adapters/store.base.adapter.js +16 -0
- package/src/store/adapters/store.base.adapter.js.map +1 -0
- package/src/store/adapters/store.memory.adapter.d.ts +26 -0
- package/src/store/adapters/store.memory.adapter.js +87 -0
- package/src/store/adapters/store.memory.adapter.js.map +1 -0
- package/src/store/adapters/store.redis.adapter.d.ts +33 -0
- package/src/store/adapters/store.redis.adapter.js +104 -0
- package/src/store/adapters/store.redis.adapter.js.map +1 -0
- package/src/store/index.d.ts +8 -0
- package/src/store/index.js +12 -0
- package/src/store/index.js.map +1 -0
- package/src/store/store.helpers.d.ts +9 -0
- package/src/store/store.helpers.js +67 -0
- package/src/store/store.helpers.js.map +1 -0
- package/src/store/store.registry.d.ts +13 -0
- package/src/store/store.registry.js +37 -0
- package/src/store/store.registry.js.map +1 -0
- package/src/store/store.tokens.d.ts +3 -0
- package/src/store/store.tokens.js +7 -0
- package/src/store/store.tokens.js.map +1 -0
- package/src/store/store.types.d.ts +64 -0
- package/src/store/store.types.js +11 -0
- package/src/store/store.types.js.map +1 -0
- package/src/store/store.utils.d.ts +8 -0
- package/src/store/store.utils.js +18 -0
- package/src/store/store.utils.js.map +1 -0
- package/src/tool/flows/call-tool.flow.d.ts +875 -0
- package/src/tool/flows/call-tool.flow.js +249 -0
- package/src/tool/flows/call-tool.flow.js.map +1 -0
- package/src/tool/flows/tools-list.flow.d.ts +771 -0
- package/src/tool/flows/tools-list.flow.js +149 -0
- package/src/tool/flows/tools-list.flow.js.map +1 -0
- package/src/tool/tool.events.d.ts +17 -0
- package/src/tool/tool.events.js +16 -0
- package/src/tool/tool.events.js.map +1 -0
- package/src/tool/tool.instance.d.ts +15 -0
- package/src/tool/tool.instance.js +68 -0
- package/src/tool/tool.instance.js.map +1 -0
- package/src/tool/tool.registry.d.ts +72 -0
- package/src/tool/tool.registry.js +339 -0
- package/src/tool/tool.registry.js.map +1 -0
- package/src/tool/tool.types.d.ts +25 -0
- package/src/tool/tool.types.js +10 -0
- package/src/tool/tool.types.js.map +1 -0
- package/src/tool/tool.utils.d.ts +20 -0
- package/src/tool/tool.utils.js +157 -0
- package/src/tool/tool.utils.js.map +1 -0
- package/src/transport/adapters/transport.local.adapter.d.ts +41 -0
- package/src/transport/adapters/transport.local.adapter.js +127 -0
- package/src/transport/adapters/transport.local.adapter.js.map +1 -0
- package/src/transport/adapters/transport.sse.adapter.d.ts +14 -0
- package/src/transport/adapters/transport.sse.adapter.js +63 -0
- package/src/transport/adapters/transport.sse.adapter.js.map +1 -0
- package/src/transport/adapters/transport.streamable-http.adapter.d.ts +13 -0
- package/src/transport/adapters/transport.streamable-http.adapter.js +65 -0
- package/src/transport/adapters/transport.streamable-http.adapter.js.map +1 -0
- package/src/transport/flows/handle.sse.flow.d.ts +92 -0
- package/src/transport/flows/handle.sse.flow.js +129 -0
- package/src/transport/flows/handle.sse.flow.js.map +1 -0
- package/src/transport/flows/handle.streamable-http.flow.d.ts +93 -0
- package/src/transport/flows/handle.streamable-http.flow.js +125 -0
- package/src/transport/flows/handle.streamable-http.flow.js.map +1 -0
- package/src/transport/legacy/legacy.sse.tranporter.d.ts +75 -0
- package/src/transport/legacy/legacy.sse.tranporter.js +170 -0
- package/src/transport/legacy/legacy.sse.tranporter.js.map +1 -0
- package/src/transport/mcp-handlers/Initialized-notification.hanlder.d.ts +3 -0
- package/src/transport/mcp-handlers/Initialized-notification.hanlder.js +14 -0
- package/src/transport/mcp-handlers/Initialized-notification.hanlder.js.map +1 -0
- package/src/transport/mcp-handlers/call-tool-request.handler.d.ts +3 -0
- package/src/transport/mcp-handlers/call-tool-request.handler.js +15 -0
- package/src/transport/mcp-handlers/call-tool-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/index.d.ts +521 -0
- package/src/transport/mcp-handlers/index.js +20 -0
- package/src/transport/mcp-handlers/index.js.map +1 -0
- package/src/transport/mcp-handlers/initialize-request.handler.d.ts +3 -0
- package/src/transport/mcp-handlers/initialize-request.handler.js +33 -0
- package/src/transport/mcp-handlers/initialize-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/list-tools-request.handler.d.ts +285 -0
- package/src/transport/mcp-handlers/list-tools-request.handler.js +11 -0
- package/src/transport/mcp-handlers/list-tools-request.handler.js.map +1 -0
- package/src/transport/mcp-handlers/mcp-handlers.types.d.ts +37 -0
- package/src/transport/mcp-handlers/mcp-handlers.types.js +3 -0
- package/src/transport/mcp-handlers/mcp-handlers.types.js.map +1 -0
- package/src/transport/transport.error.d.ts +4 -0
- package/src/transport/transport.error.js +25 -0
- package/src/transport/transport.error.js.map +1 -0
- package/src/transport/transport.event-store.d.ts +10 -0
- package/src/transport/transport.event-store.js +36 -0
- package/src/transport/transport.event-store.js.map +1 -0
- package/src/transport/transport.local.d.ts +17 -0
- package/src/transport/transport.local.js +65 -0
- package/src/transport/transport.local.js.map +1 -0
- package/src/transport/transport.registry.d.ts +23 -0
- package/src/transport/transport.registry.js +138 -0
- package/src/transport/transport.registry.js.map +1 -0
- package/src/transport/transport.remote.d.ts +15 -0
- package/src/transport/transport.remote.js +31 -0
- package/src/transport/transport.remote.js.map +1 -0
- package/src/transport/transport.types.d.ts +54 -0
- package/src/transport/transport.types.js +3 -0
- package/src/transport/transport.types.js.map +1 -0
- package/src/types/drinen-hooks.types.d.ts +20 -0
- package/src/types/drinen-hooks.types.js +3 -0
- package/src/types/drinen-hooks.types.js.map +1 -0
- package/src/types/invoke.type.d.ts +15 -0
- package/src/types/invoke.type.js +34 -0
- package/src/types/invoke.type.js.map +1 -0
- package/src/types/token.types.d.ts +1 -0
- package/src/types/token.types.js +3 -0
- package/src/types/token.types.js.map +1 -0
- package/src/utils/metadata.utils.d.ts +5 -0
- package/src/utils/metadata.utils.js +26 -0
- package/src/utils/metadata.utils.js.map +1 -0
- package/src/utils/server.utils.d.ts +19 -0
- package/src/utils/server.utils.js +59 -0
- package/src/utils/server.utils.js.map +1 -0
- package/src/utils/string.utils.d.ts +1 -0
- package/src/utils/string.utils.js +10 -0
- package/src/utils/string.utils.js.map +1 -0
- package/src/utils/token.utils.d.ts +11 -0
- package/src/utils/token.utils.js +65 -0
- package/src/utils/token.utils.js.map +1 -0
- package/src/utils/types.utils.d.ts +7 -0
- package/src/utils/types.utils.js +3 -0
- package/src/utils/types.utils.js.map +1 -0
- package/src/constants.d.ts +0 -30
- package/src/constants.js +0 -36
- package/src/constants.js.map +0 -1
- package/src/decorators/adapter.decorator.js.map +0 -1
- package/src/decorators/app.decorator.js.map +0 -1
- package/src/decorators/auth-provider.decorator.js.map +0 -1
- package/src/decorators/flow.decorator.js.map +0 -1
- package/src/decorators/front-mcp.decorator.js +0 -40
- package/src/decorators/front-mcp.decorator.js.map +0 -1
- package/src/decorators/hook.decorator.js.map +0 -1
- package/src/decorators/index.js.map +0 -1
- package/src/decorators/logger.decorator.js.map +0 -1
- package/src/decorators/plugin.decorator.js.map +0 -1
- package/src/decorators/prompt.decorator.js.map +0 -1
- package/src/decorators/provider.decorator.js.map +0 -1
- package/src/decorators/resource.decorator.js.map +0 -1
- package/src/decorators/tool.decorator.d.ts +0 -42
- package/src/decorators/tool.decorator.js +0 -45
- package/src/decorators/tool.decorator.js.map +0 -1
- package/src/decorators-old/async-with.decorator.d.ts +0 -9
- package/src/decorators-old/async-with.decorator.js +0 -23
- package/src/decorators-old/async-with.decorator.js.map +0 -1
- package/src/decorators-old/auth-hook.decorator.js.map +0 -1
- package/src/decorators-old/session-hook.decorator.js.map +0 -1
- package/src/decorators-old/tool-hook.decorator.d.ts +0 -14
- package/src/decorators-old/tool-hook.decorator.js +0 -27
- package/src/decorators-old/tool-hook.decorator.js.map +0 -1
- package/src/dynamic/dynamic.adapter.js.map +0 -1
- package/src/dynamic/dynamic.plugin.js.map +0 -1
- package/src/dynamic/dynamic.utils.d.ts +0 -3
- package/src/dynamic/dynamic.utils.js.map +0 -1
- package/src/dynamic/index.js.map +0 -1
- package/src/entries/adapter.entry.js.map +0 -1
- package/src/entries/app.entry.d.ts +0 -13
- package/src/entries/app.entry.js.map +0 -1
- package/src/entries/auth-provider.entry.js.map +0 -1
- package/src/entries/base.entry.js.map +0 -1
- package/src/entries/flow.entry.js.map +0 -1
- package/src/entries/hook.entry.js.map +0 -1
- package/src/entries/index.js.map +0 -1
- package/src/entries/logger.entry.js.map +0 -1
- package/src/entries/plugin.entry.js.map +0 -1
- package/src/entries/prompt.entry.js.map +0 -1
- package/src/entries/provider.entry.js.map +0 -1
- package/src/entries/resource.entry.js.map +0 -1
- package/src/entries/scope.entry.js.map +0 -1
- package/src/entries/tool.entry.js.map +0 -1
- package/src/interfaces/adapter.interface.js.map +0 -1
- package/src/interfaces/app.interface.js.map +0 -1
- package/src/interfaces/auth-hook.interface.js.map +0 -1
- package/src/interfaces/auth-provider.interface.js.map +0 -1
- package/src/interfaces/base.interface.js.map +0 -1
- package/src/interfaces/flow.interface.d.ts +0 -41
- package/src/interfaces/flow.interface.js.map +0 -1
- package/src/interfaces/front-mcp.interface.js.map +0 -1
- package/src/interfaces/hook.interface.js.map +0 -1
- package/src/interfaces/index.js.map +0 -1
- package/src/interfaces/internal/flow.utils.d.ts +0 -24
- package/src/interfaces/internal/flow.utils.js.map +0 -1
- package/src/interfaces/internal/index.js.map +0 -1
- package/src/interfaces/internal/primary-auth-provider.interface.d.ts +0 -24
- package/src/interfaces/internal/primary-auth-provider.interface.js.map +0 -1
- package/src/interfaces/internal/registry.interface.d.ts +0 -97
- package/src/interfaces/internal/registry.interface.js.map +0 -1
- package/src/interfaces/logger.interface.js.map +0 -1
- package/src/interfaces/plugin.interface.js.map +0 -1
- package/src/interfaces/prompt.interface.js.map +0 -1
- package/src/interfaces/provider.interface.js.map +0 -1
- package/src/interfaces/resource.interface.js.map +0 -1
- package/src/interfaces/scope.interface.js.map +0 -1
- package/src/interfaces/server.interface.js.map +0 -1
- package/src/interfaces/session-hook.interface.js.map +0 -1
- package/src/interfaces/tool-hook.interface.js.map +0 -1
- package/src/interfaces/tool.interface.js.map +0 -1
- package/src/metadata/adapter.metadata.js.map +0 -1
- package/src/metadata/app.metadata.d.ts +0 -872
- package/src/metadata/app.metadata.js.map +0 -1
- package/src/metadata/auth-provider.metadata.js.map +0 -1
- package/src/metadata/flow.metadata.d.ts +0 -77
- package/src/metadata/flow.metadata.js.map +0 -1
- package/src/metadata/front-mcp.metadata.d.ts +0 -1144
- package/src/metadata/front-mcp.metadata.js.map +0 -1
- package/src/metadata/hook.metadata.js.map +0 -1
- package/src/metadata/index.js.map +0 -1
- package/src/metadata/logger.metadata.js.map +0 -1
- package/src/metadata/plugin.metadata.js.map +0 -1
- package/src/metadata/prompt.metadata.js.map +0 -1
- package/src/metadata/provider.metadata.js.map +0 -1
- package/src/metadata/resource.metadata.js.map +0 -1
- package/src/metadata/tool.metadata.d.ts +0 -178
- package/src/metadata/tool.metadata.js.map +0 -1
- package/src/providers/session.provider.js.map +0 -1
- package/src/records/adapter.record.js.map +0 -1
- package/src/records/app.record.js.map +0 -1
- package/src/records/auth-provider.record.js.map +0 -1
- package/src/records/flow.record.js.map +0 -1
- package/src/records/hook.record.js.map +0 -1
- package/src/records/index.js.map +0 -1
- package/src/records/logger.record.d.ts +0 -11
- package/src/records/logger.record.js.map +0 -1
- package/src/records/plugin.record.js.map +0 -1
- package/src/records/prompt.record.js.map +0 -1
- package/src/records/provider.record.js.map +0 -1
- package/src/records/resource.record.js.map +0 -1
- package/src/records/scope.record.js.map +0 -1
- package/src/records/tool.record.js.map +0 -1
- package/src/schemas/annotated-class.schema.js.map +0 -1
- package/src/schemas/http-input.schema.js.map +0 -1
- package/src/schemas/http-output.schema.d.ts +0 -2011
- package/src/schemas/http-output.schema.js.map +0 -1
- package/src/schemas/index.js.map +0 -1
- package/src/tokens/adapter.tokens.js.map +0 -1
- package/src/tokens/app.tokens.js.map +0 -1
- package/src/tokens/auth-provider.tokens.js.map +0 -1
- package/src/tokens/base.tokens.js.map +0 -1
- package/src/tokens/flow-hook.tokens.js.map +0 -1
- package/src/tokens/flow.tokens.js.map +0 -1
- package/src/tokens/front-mcp.tokens.js.map +0 -1
- package/src/tokens/index.js.map +0 -1
- package/src/tokens/logger.tokens.js.map +0 -1
- package/src/tokens/plugin.tokens.js.map +0 -1
- package/src/tokens/prompt.tokens.js.map +0 -1
- package/src/tokens/provider.tokens.js.map +0 -1
- package/src/tokens/resource.tokens.js.map +0 -1
- package/src/tokens/server.tokens.js.map +0 -1
- package/src/tokens/tool.tokens.js.map +0 -1
- package/src/types/auth/index.js.map +0 -1
- package/src/types/auth/jwt.types.js.map +0 -1
- package/src/types/auth/session.types.d.ts +0 -263
- package/src/types/auth/session.types.js.map +0 -1
- package/src/types/common.types.js.map +0 -1
- package/src/types/index.js.map +0 -1
- package/src/types/options/auth.options.d.ts +0 -513
- package/src/types/options/auth.options.js.map +0 -1
- package/src/types/options/http.options.js.map +0 -1
- package/src/types/options/index.js.map +0 -1
- package/src/types/options/logging.options.d.ts +0 -39
- package/src/types/options/logging.options.js.map +0 -1
- package/src/types/options/server-info.options.d.ts +0 -48
- package/src/types/options/server-info.options.js.map +0 -1
- package/src/types/options/session.options.d.ts +0 -67
- package/src/types/options/session.options.js.map +0 -1
- package/src/utils/decide-request-intent.utils.d.ts +0 -79
- package/src/utils/decide-request-intent.utils.js.map +0 -1
- package/src/utils/index.js.map +0 -1
- package/src/utils/path.utils.d.ts +0 -20
- package/src/utils/path.utils.js.map +0 -1
- /package/src/{decorators → common/decorators}/adapter.decorator.d.ts +0 -0
- /package/src/{decorators → common/decorators}/adapter.decorator.js +0 -0
- /package/src/{decorators → common/decorators}/app.decorator.d.ts +0 -0
- /package/src/{decorators → common/decorators}/app.decorator.js +0 -0
- /package/src/{decorators → common/decorators}/auth-provider.decorator.d.ts +0 -0
- /package/src/{decorators → common/decorators}/auth-provider.decorator.js +0 -0
- /package/src/{decorators → common/decorators}/flow.decorator.d.ts +0 -0
- /package/src/{decorators → common/decorators}/flow.decorator.js +0 -0
- /package/src/{decorators → common/decorators}/front-mcp.decorator.d.ts +0 -0
- /package/src/{decorators → common/decorators}/hook.decorator.d.ts +0 -0
- /package/src/{decorators → common/decorators}/hook.decorator.js +0 -0
- /package/src/{decorators → common/decorators}/index.d.ts +0 -0
- /package/src/{decorators → common/decorators}/index.js +0 -0
- /package/src/{decorators → common/decorators}/logger.decorator.d.ts +0 -0
- /package/src/{decorators → common/decorators}/logger.decorator.js +0 -0
- /package/src/{decorators → common/decorators}/plugin.decorator.d.ts +0 -0
- /package/src/{decorators → common/decorators}/plugin.decorator.js +0 -0
- /package/src/{decorators → common/decorators}/prompt.decorator.d.ts +0 -0
- /package/src/{decorators → common/decorators}/prompt.decorator.js +0 -0
- /package/src/{decorators → common/decorators}/provider.decorator.d.ts +0 -0
- /package/src/{decorators → common/decorators}/provider.decorator.js +0 -0
- /package/src/{decorators → common/decorators}/resource.decorator.d.ts +0 -0
- /package/src/{decorators → common/decorators}/resource.decorator.js +0 -0
- /package/src/{decorators-old → common/decorators-old}/auth-hook.decorator.d.ts +0 -0
- /package/src/{decorators-old → common/decorators-old}/auth-hook.decorator.js +0 -0
- /package/src/{decorators-old → common/decorators-old}/session-hook.decorator.d.ts +0 -0
- /package/src/{decorators-old → common/decorators-old}/session-hook.decorator.js +0 -0
- /package/src/{dynamic → common/dynamic}/dynamic.adapter.d.ts +0 -0
- /package/src/{dynamic → common/dynamic}/dynamic.adapter.js +0 -0
- /package/src/{dynamic → common/dynamic}/dynamic.plugin.d.ts +0 -0
- /package/src/{dynamic → common/dynamic}/dynamic.plugin.js +0 -0
- /package/src/{dynamic → common/dynamic}/dynamic.utils.js +0 -0
- /package/src/{dynamic → common/dynamic}/index.d.ts +0 -0
- /package/src/{dynamic → common/dynamic}/index.js +0 -0
- /package/src/{entries → common/entries}/adapter.entry.d.ts +0 -0
- /package/src/{entries → common/entries}/adapter.entry.js +0 -0
- /package/src/{entries → common/entries}/app.entry.js +0 -0
- /package/src/{entries → common/entries}/auth-provider.entry.d.ts +0 -0
- /package/src/{entries → common/entries}/auth-provider.entry.js +0 -0
- /package/src/{entries → common/entries}/base.entry.d.ts +0 -0
- /package/src/{entries → common/entries}/base.entry.js +0 -0
- /package/src/{entries → common/entries}/flow.entry.d.ts +0 -0
- /package/src/{entries → common/entries}/flow.entry.js +0 -0
- /package/src/{entries → common/entries}/hook.entry.d.ts +0 -0
- /package/src/{entries → common/entries}/hook.entry.js +0 -0
- /package/src/{entries → common/entries}/index.d.ts +0 -0
- /package/src/{entries → common/entries}/index.js +0 -0
- /package/src/{entries → common/entries}/logger.entry.d.ts +0 -0
- /package/src/{entries → common/entries}/logger.entry.js +0 -0
- /package/src/{entries → common/entries}/plugin.entry.d.ts +0 -0
- /package/src/{entries → common/entries}/plugin.entry.js +0 -0
- /package/src/{entries → common/entries}/prompt.entry.d.ts +0 -0
- /package/src/{entries → common/entries}/prompt.entry.js +0 -0
- /package/src/{entries → common/entries}/provider.entry.d.ts +0 -0
- /package/src/{entries → common/entries}/provider.entry.js +0 -0
- /package/src/{entries → common/entries}/resource.entry.d.ts +0 -0
- /package/src/{entries → common/entries}/resource.entry.js +0 -0
- /package/src/{entries → common/entries}/scope.entry.d.ts +0 -0
- /package/src/{entries → common/entries}/scope.entry.js +0 -0
- /package/src/{entries → common/entries}/tool.entry.d.ts +0 -0
- /package/src/{entries → common/entries}/tool.entry.js +0 -0
- /package/src/{interfaces → common/interfaces}/adapter.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/adapter.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/app.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/app.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/auth-hook.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/auth-hook.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/auth-provider.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/auth-provider.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/base.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/base.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/flow.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/front-mcp.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/front-mcp.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/hook.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/hook.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/index.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/index.js +0 -0
- /package/src/{interfaces → common/interfaces}/internal/flow.utils.js +0 -0
- /package/src/{interfaces → common/interfaces}/internal/index.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/internal/index.js +0 -0
- /package/src/{interfaces → common/interfaces}/internal/primary-auth-provider.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/internal/registry.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/logger.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/logger.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/plugin.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/plugin.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/prompt.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/prompt.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/provider.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/provider.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/resource.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/resource.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/scope.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/scope.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/server.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/server.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/session-hook.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/session-hook.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/tool-hook.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/tool-hook.interface.js +0 -0
- /package/src/{interfaces → common/interfaces}/tool.interface.d.ts +0 -0
- /package/src/{interfaces → common/interfaces}/tool.interface.js +0 -0
- /package/src/{metadata → common/metadata}/adapter.metadata.d.ts +0 -0
- /package/src/{metadata → common/metadata}/adapter.metadata.js +0 -0
- /package/src/{metadata → common/metadata}/app.metadata.js +0 -0
- /package/src/{metadata → common/metadata}/auth-provider.metadata.d.ts +0 -0
- /package/src/{metadata → common/metadata}/auth-provider.metadata.js +0 -0
- /package/src/{metadata → common/metadata}/flow.metadata.js +0 -0
- /package/src/{metadata → common/metadata}/front-mcp.metadata.js +0 -0
- /package/src/{metadata → common/metadata}/hook.metadata.d.ts +0 -0
- /package/src/{metadata → common/metadata}/hook.metadata.js +0 -0
- /package/src/{metadata → common/metadata}/index.d.ts +0 -0
- /package/src/{metadata → common/metadata}/index.js +0 -0
- /package/src/{metadata → common/metadata}/logger.metadata.d.ts +0 -0
- /package/src/{metadata → common/metadata}/logger.metadata.js +0 -0
- /package/src/{metadata → common/metadata}/plugin.metadata.d.ts +0 -0
- /package/src/{metadata → common/metadata}/plugin.metadata.js +0 -0
- /package/src/{metadata → common/metadata}/prompt.metadata.d.ts +0 -0
- /package/src/{metadata → common/metadata}/prompt.metadata.js +0 -0
- /package/src/{metadata → common/metadata}/provider.metadata.d.ts +0 -0
- /package/src/{metadata → common/metadata}/provider.metadata.js +0 -0
- /package/src/{metadata → common/metadata}/resource.metadata.d.ts +0 -0
- /package/src/{metadata → common/metadata}/resource.metadata.js +0 -0
- /package/src/{metadata → common/metadata}/tool.metadata.js +0 -0
- /package/src/{providers → common/providers}/session.provider.d.ts +0 -0
- /package/src/{providers → common/providers}/session.provider.js +0 -0
- /package/src/{records → common/records}/adapter.record.d.ts +0 -0
- /package/src/{records → common/records}/adapter.record.js +0 -0
- /package/src/{records → common/records}/app.record.d.ts +0 -0
- /package/src/{records → common/records}/app.record.js +0 -0
- /package/src/{records → common/records}/auth-provider.record.d.ts +0 -0
- /package/src/{records → common/records}/auth-provider.record.js +0 -0
- /package/src/{records → common/records}/flow.record.d.ts +0 -0
- /package/src/{records → common/records}/flow.record.js +0 -0
- /package/src/{records → common/records}/hook.record.d.ts +0 -0
- /package/src/{records → common/records}/hook.record.js +0 -0
- /package/src/{records → common/records}/index.d.ts +0 -0
- /package/src/{records → common/records}/index.js +0 -0
- /package/src/{records → common/records}/logger.record.js +0 -0
- /package/src/{records → common/records}/plugin.record.d.ts +0 -0
- /package/src/{records → common/records}/plugin.record.js +0 -0
- /package/src/{records → common/records}/prompt.record.d.ts +0 -0
- /package/src/{records → common/records}/prompt.record.js +0 -0
- /package/src/{records → common/records}/provider.record.d.ts +0 -0
- /package/src/{records → common/records}/provider.record.js +0 -0
- /package/src/{records → common/records}/resource.record.d.ts +0 -0
- /package/src/{records → common/records}/resource.record.js +0 -0
- /package/src/{records → common/records}/scope.record.d.ts +0 -0
- /package/src/{records → common/records}/scope.record.js +0 -0
- /package/src/{records → common/records}/tool.record.d.ts +0 -0
- /package/src/{records → common/records}/tool.record.js +0 -0
- /package/src/{schemas → common/schemas}/annotated-class.schema.d.ts +0 -0
- /package/src/{schemas → common/schemas}/annotated-class.schema.js +0 -0
- /package/src/{schemas → common/schemas}/http-input.schema.d.ts +0 -0
- /package/src/{schemas → common/schemas}/http-input.schema.js +0 -0
- /package/src/{schemas → common/schemas}/http-output.schema.js +0 -0
- /package/src/{schemas → common/schemas}/index.d.ts +0 -0
- /package/src/{schemas → common/schemas}/index.js +0 -0
- /package/src/{tokens → common/tokens}/adapter.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/adapter.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/app.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/app.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/auth-provider.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/auth-provider.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/base.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/base.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/flow-hook.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/flow-hook.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/flow.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/flow.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/front-mcp.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/front-mcp.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/index.d.ts +0 -0
- /package/src/{tokens → common/tokens}/index.js +0 -0
- /package/src/{tokens → common/tokens}/logger.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/logger.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/plugin.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/plugin.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/prompt.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/prompt.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/provider.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/provider.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/resource.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/resource.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/server.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/server.tokens.js +0 -0
- /package/src/{tokens → common/tokens}/tool.tokens.d.ts +0 -0
- /package/src/{tokens → common/tokens}/tool.tokens.js +0 -0
- /package/src/{types → common/types}/auth/index.d.ts +0 -0
- /package/src/{types → common/types}/auth/index.js +0 -0
- /package/src/{types → common/types}/auth/jwt.types.d.ts +0 -0
- /package/src/{types → common/types}/auth/jwt.types.js +0 -0
- /package/src/{types → common/types}/auth/session.types.js +0 -0
- /package/src/{types → common/types}/common.types.d.ts +0 -0
- /package/src/{types → common/types}/common.types.js +0 -0
- /package/src/{types → common/types}/index.d.ts +0 -0
- /package/src/{types → common/types}/index.js +0 -0
- /package/src/{types → common/types}/options/auth.options.js +0 -0
- /package/src/{types → common/types}/options/http.options.d.ts +0 -0
- /package/src/{types → common/types}/options/http.options.js +0 -0
- /package/src/{types → common/types}/options/index.d.ts +0 -0
- /package/src/{types → common/types}/options/index.js +0 -0
- /package/src/{types → common/types}/options/logging.options.js +0 -0
- /package/src/{types → common/types}/options/server-info.options.js +0 -0
- /package/src/{types → common/types}/options/session.options.js +0 -0
- /package/src/{utils → common/utils}/decide-request-intent.utils.js +0 -0
- /package/src/{utils → common/utils}/index.d.ts +0 -0
- /package/src/{utils → common/utils}/index.js +0 -0
- /package/src/{utils → common/utils}/path.utils.js +0 -0
|
@@ -0,0 +1,875 @@
|
|
|
1
|
+
import { FlowBase, FlowRunOptions, ToolContext, ToolEntry } from '../../common';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { AuthInfo } from "@modelcontextprotocol/sdk/server/auth/types.js";
|
|
4
|
+
declare const inputSchema: z.ZodObject<{
|
|
5
|
+
request: z.ZodObject<{} & {
|
|
6
|
+
method: z.ZodLiteral<"tools/call">;
|
|
7
|
+
params: z.ZodObject<z.objectUtil.extendShape<{
|
|
8
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
10
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
11
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
12
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
13
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
14
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
15
|
+
}, {
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
19
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
21
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
22
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
23
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
24
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
25
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
26
|
+
}, {
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
30
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
32
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
33
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
34
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
35
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
36
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
37
|
+
}, {
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
40
|
+
}>, z.ZodTypeAny, "passthrough">>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
params: {
|
|
43
|
+
name: string;
|
|
44
|
+
_meta?: z.objectOutputType<{
|
|
45
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
46
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
47
|
+
arguments?: Record<string, unknown> | undefined;
|
|
48
|
+
} & {
|
|
49
|
+
[k: string]: unknown;
|
|
50
|
+
};
|
|
51
|
+
method: "tools/call";
|
|
52
|
+
}, {
|
|
53
|
+
params: {
|
|
54
|
+
name: string;
|
|
55
|
+
_meta?: z.objectInputType<{
|
|
56
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
57
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
58
|
+
arguments?: Record<string, unknown> | undefined;
|
|
59
|
+
} & {
|
|
60
|
+
[k: string]: unknown;
|
|
61
|
+
};
|
|
62
|
+
method: "tools/call";
|
|
63
|
+
}>;
|
|
64
|
+
ctx: z.ZodAny;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
request: {
|
|
67
|
+
params: {
|
|
68
|
+
name: string;
|
|
69
|
+
_meta?: z.objectOutputType<{
|
|
70
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
71
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
72
|
+
arguments?: Record<string, unknown> | undefined;
|
|
73
|
+
} & {
|
|
74
|
+
[k: string]: unknown;
|
|
75
|
+
};
|
|
76
|
+
method: "tools/call";
|
|
77
|
+
};
|
|
78
|
+
ctx?: any;
|
|
79
|
+
}, {
|
|
80
|
+
request: {
|
|
81
|
+
params: {
|
|
82
|
+
name: string;
|
|
83
|
+
_meta?: z.objectInputType<{
|
|
84
|
+
progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
85
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
86
|
+
arguments?: Record<string, unknown> | undefined;
|
|
87
|
+
} & {
|
|
88
|
+
[k: string]: unknown;
|
|
89
|
+
};
|
|
90
|
+
method: "tools/call";
|
|
91
|
+
};
|
|
92
|
+
ctx?: any;
|
|
93
|
+
}>;
|
|
94
|
+
declare const outputSchema: z.ZodObject<{
|
|
95
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
96
|
+
} & {
|
|
97
|
+
content: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
98
|
+
type: z.ZodLiteral<"text">;
|
|
99
|
+
text: z.ZodString;
|
|
100
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
101
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
102
|
+
type: z.ZodLiteral<"text">;
|
|
103
|
+
text: z.ZodString;
|
|
104
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
105
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
106
|
+
type: z.ZodLiteral<"text">;
|
|
107
|
+
text: z.ZodString;
|
|
108
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
109
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
110
|
+
type: z.ZodLiteral<"image">;
|
|
111
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
112
|
+
mimeType: z.ZodString;
|
|
113
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
114
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
115
|
+
type: z.ZodLiteral<"image">;
|
|
116
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
117
|
+
mimeType: z.ZodString;
|
|
118
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
119
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
120
|
+
type: z.ZodLiteral<"image">;
|
|
121
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
122
|
+
mimeType: z.ZodString;
|
|
123
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
124
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
125
|
+
type: z.ZodLiteral<"audio">;
|
|
126
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
127
|
+
mimeType: z.ZodString;
|
|
128
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
129
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
130
|
+
type: z.ZodLiteral<"audio">;
|
|
131
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
132
|
+
mimeType: z.ZodString;
|
|
133
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
134
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
135
|
+
type: z.ZodLiteral<"audio">;
|
|
136
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
137
|
+
mimeType: z.ZodString;
|
|
138
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
139
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
140
|
+
name: z.ZodString;
|
|
141
|
+
title: z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, {
|
|
143
|
+
uri: z.ZodString;
|
|
144
|
+
description: z.ZodOptional<z.ZodString>;
|
|
145
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
146
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
147
|
+
}>, {
|
|
148
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
149
|
+
src: z.ZodString;
|
|
150
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
151
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
152
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
153
|
+
src: z.ZodString;
|
|
154
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
155
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
156
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
157
|
+
src: z.ZodString;
|
|
158
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
159
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
160
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
161
|
+
}>, {
|
|
162
|
+
type: z.ZodLiteral<"resource_link">;
|
|
163
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
164
|
+
name: z.ZodString;
|
|
165
|
+
title: z.ZodOptional<z.ZodString>;
|
|
166
|
+
}, {
|
|
167
|
+
uri: z.ZodString;
|
|
168
|
+
description: z.ZodOptional<z.ZodString>;
|
|
169
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
170
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
171
|
+
}>, {
|
|
172
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
173
|
+
src: z.ZodString;
|
|
174
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
175
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
176
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
177
|
+
src: z.ZodString;
|
|
178
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
179
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
180
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
181
|
+
src: z.ZodString;
|
|
182
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
183
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
184
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
185
|
+
}>, {
|
|
186
|
+
type: z.ZodLiteral<"resource_link">;
|
|
187
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
188
|
+
name: z.ZodString;
|
|
189
|
+
title: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, {
|
|
191
|
+
uri: z.ZodString;
|
|
192
|
+
description: z.ZodOptional<z.ZodString>;
|
|
193
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
194
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
195
|
+
}>, {
|
|
196
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
197
|
+
src: z.ZodString;
|
|
198
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
199
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
200
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
201
|
+
src: z.ZodString;
|
|
202
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
203
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
204
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
205
|
+
src: z.ZodString;
|
|
206
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
207
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
208
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
209
|
+
}>, {
|
|
210
|
+
type: z.ZodLiteral<"resource_link">;
|
|
211
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
212
|
+
type: z.ZodLiteral<"resource">;
|
|
213
|
+
resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
214
|
+
uri: z.ZodString;
|
|
215
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
216
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
217
|
+
}, {
|
|
218
|
+
text: z.ZodString;
|
|
219
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
220
|
+
uri: z.ZodString;
|
|
221
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
222
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
223
|
+
}, {
|
|
224
|
+
text: z.ZodString;
|
|
225
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
226
|
+
uri: z.ZodString;
|
|
227
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
228
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
229
|
+
}, {
|
|
230
|
+
text: z.ZodString;
|
|
231
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
|
|
232
|
+
uri: z.ZodString;
|
|
233
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
234
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
235
|
+
}, {
|
|
236
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
237
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
238
|
+
uri: z.ZodString;
|
|
239
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
240
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
241
|
+
}, {
|
|
242
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
243
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
244
|
+
uri: z.ZodString;
|
|
245
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
246
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
247
|
+
}, {
|
|
248
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
249
|
+
}>, z.ZodTypeAny, "passthrough">>]>;
|
|
250
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
251
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
252
|
+
type: z.ZodLiteral<"resource">;
|
|
253
|
+
resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
254
|
+
uri: z.ZodString;
|
|
255
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
256
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
257
|
+
}, {
|
|
258
|
+
text: z.ZodString;
|
|
259
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
260
|
+
uri: z.ZodString;
|
|
261
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
262
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
263
|
+
}, {
|
|
264
|
+
text: z.ZodString;
|
|
265
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
266
|
+
uri: z.ZodString;
|
|
267
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
268
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
269
|
+
}, {
|
|
270
|
+
text: z.ZodString;
|
|
271
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
|
|
272
|
+
uri: z.ZodString;
|
|
273
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
274
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
275
|
+
}, {
|
|
276
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
277
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
278
|
+
uri: z.ZodString;
|
|
279
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
280
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
281
|
+
}, {
|
|
282
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
283
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
284
|
+
uri: z.ZodString;
|
|
285
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
286
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
287
|
+
}, {
|
|
288
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
289
|
+
}>, z.ZodTypeAny, "passthrough">>]>;
|
|
290
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
291
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
292
|
+
type: z.ZodLiteral<"resource">;
|
|
293
|
+
resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
294
|
+
uri: z.ZodString;
|
|
295
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
296
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
297
|
+
}, {
|
|
298
|
+
text: z.ZodString;
|
|
299
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
300
|
+
uri: z.ZodString;
|
|
301
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
302
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
303
|
+
}, {
|
|
304
|
+
text: z.ZodString;
|
|
305
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
306
|
+
uri: z.ZodString;
|
|
307
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
308
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
309
|
+
}, {
|
|
310
|
+
text: z.ZodString;
|
|
311
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
|
|
312
|
+
uri: z.ZodString;
|
|
313
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
314
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
315
|
+
}, {
|
|
316
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
317
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
318
|
+
uri: z.ZodString;
|
|
319
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
320
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
321
|
+
}, {
|
|
322
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
323
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
324
|
+
uri: z.ZodString;
|
|
325
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
326
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
327
|
+
}, {
|
|
328
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
329
|
+
}>, z.ZodTypeAny, "passthrough">>]>;
|
|
330
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
331
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
332
|
+
structuredContent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
333
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
334
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
335
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
336
|
+
} & {
|
|
337
|
+
content: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
338
|
+
type: z.ZodLiteral<"text">;
|
|
339
|
+
text: z.ZodString;
|
|
340
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
341
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
342
|
+
type: z.ZodLiteral<"text">;
|
|
343
|
+
text: z.ZodString;
|
|
344
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
345
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
346
|
+
type: z.ZodLiteral<"text">;
|
|
347
|
+
text: z.ZodString;
|
|
348
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
349
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
350
|
+
type: z.ZodLiteral<"image">;
|
|
351
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
352
|
+
mimeType: z.ZodString;
|
|
353
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
354
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
355
|
+
type: z.ZodLiteral<"image">;
|
|
356
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
357
|
+
mimeType: z.ZodString;
|
|
358
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
359
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
360
|
+
type: z.ZodLiteral<"image">;
|
|
361
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
362
|
+
mimeType: z.ZodString;
|
|
363
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
364
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
365
|
+
type: z.ZodLiteral<"audio">;
|
|
366
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
367
|
+
mimeType: z.ZodString;
|
|
368
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
369
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
370
|
+
type: z.ZodLiteral<"audio">;
|
|
371
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
372
|
+
mimeType: z.ZodString;
|
|
373
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
374
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
375
|
+
type: z.ZodLiteral<"audio">;
|
|
376
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
377
|
+
mimeType: z.ZodString;
|
|
378
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
379
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
380
|
+
name: z.ZodString;
|
|
381
|
+
title: z.ZodOptional<z.ZodString>;
|
|
382
|
+
}, {
|
|
383
|
+
uri: z.ZodString;
|
|
384
|
+
description: z.ZodOptional<z.ZodString>;
|
|
385
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
386
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
387
|
+
}>, {
|
|
388
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
389
|
+
src: z.ZodString;
|
|
390
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
391
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
392
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
393
|
+
src: z.ZodString;
|
|
394
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
395
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
396
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
397
|
+
src: z.ZodString;
|
|
398
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
399
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
400
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
401
|
+
}>, {
|
|
402
|
+
type: z.ZodLiteral<"resource_link">;
|
|
403
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
404
|
+
name: z.ZodString;
|
|
405
|
+
title: z.ZodOptional<z.ZodString>;
|
|
406
|
+
}, {
|
|
407
|
+
uri: z.ZodString;
|
|
408
|
+
description: z.ZodOptional<z.ZodString>;
|
|
409
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
410
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
411
|
+
}>, {
|
|
412
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
413
|
+
src: z.ZodString;
|
|
414
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
415
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
416
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
417
|
+
src: z.ZodString;
|
|
418
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
419
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
420
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
421
|
+
src: z.ZodString;
|
|
422
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
423
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
424
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
425
|
+
}>, {
|
|
426
|
+
type: z.ZodLiteral<"resource_link">;
|
|
427
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
428
|
+
name: z.ZodString;
|
|
429
|
+
title: z.ZodOptional<z.ZodString>;
|
|
430
|
+
}, {
|
|
431
|
+
uri: z.ZodString;
|
|
432
|
+
description: z.ZodOptional<z.ZodString>;
|
|
433
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
434
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
435
|
+
}>, {
|
|
436
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
437
|
+
src: z.ZodString;
|
|
438
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
439
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
440
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
441
|
+
src: z.ZodString;
|
|
442
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
443
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
444
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
445
|
+
src: z.ZodString;
|
|
446
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
447
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
448
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
449
|
+
}>, {
|
|
450
|
+
type: z.ZodLiteral<"resource_link">;
|
|
451
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
452
|
+
type: z.ZodLiteral<"resource">;
|
|
453
|
+
resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
454
|
+
uri: z.ZodString;
|
|
455
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
456
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
457
|
+
}, {
|
|
458
|
+
text: z.ZodString;
|
|
459
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
460
|
+
uri: z.ZodString;
|
|
461
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
462
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
463
|
+
}, {
|
|
464
|
+
text: z.ZodString;
|
|
465
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
466
|
+
uri: z.ZodString;
|
|
467
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
468
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
469
|
+
}, {
|
|
470
|
+
text: z.ZodString;
|
|
471
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
|
|
472
|
+
uri: z.ZodString;
|
|
473
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
474
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
475
|
+
}, {
|
|
476
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
477
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
478
|
+
uri: z.ZodString;
|
|
479
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
480
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
481
|
+
}, {
|
|
482
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
483
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
484
|
+
uri: z.ZodString;
|
|
485
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
486
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
487
|
+
}, {
|
|
488
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
489
|
+
}>, z.ZodTypeAny, "passthrough">>]>;
|
|
490
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
491
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
492
|
+
type: z.ZodLiteral<"resource">;
|
|
493
|
+
resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
494
|
+
uri: z.ZodString;
|
|
495
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
496
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
497
|
+
}, {
|
|
498
|
+
text: z.ZodString;
|
|
499
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
500
|
+
uri: z.ZodString;
|
|
501
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
502
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
503
|
+
}, {
|
|
504
|
+
text: z.ZodString;
|
|
505
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
506
|
+
uri: z.ZodString;
|
|
507
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
508
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
509
|
+
}, {
|
|
510
|
+
text: z.ZodString;
|
|
511
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
|
|
512
|
+
uri: z.ZodString;
|
|
513
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
514
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
515
|
+
}, {
|
|
516
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
517
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
518
|
+
uri: z.ZodString;
|
|
519
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
520
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
521
|
+
}, {
|
|
522
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
523
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
524
|
+
uri: z.ZodString;
|
|
525
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
526
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
527
|
+
}, {
|
|
528
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
529
|
+
}>, z.ZodTypeAny, "passthrough">>]>;
|
|
530
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
531
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
532
|
+
type: z.ZodLiteral<"resource">;
|
|
533
|
+
resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
534
|
+
uri: z.ZodString;
|
|
535
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
536
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
537
|
+
}, {
|
|
538
|
+
text: z.ZodString;
|
|
539
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
540
|
+
uri: z.ZodString;
|
|
541
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
542
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
543
|
+
}, {
|
|
544
|
+
text: z.ZodString;
|
|
545
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
546
|
+
uri: z.ZodString;
|
|
547
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
548
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
549
|
+
}, {
|
|
550
|
+
text: z.ZodString;
|
|
551
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
|
|
552
|
+
uri: z.ZodString;
|
|
553
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
554
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
555
|
+
}, {
|
|
556
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
557
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
558
|
+
uri: z.ZodString;
|
|
559
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
560
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
561
|
+
}, {
|
|
562
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
563
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
564
|
+
uri: z.ZodString;
|
|
565
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
566
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
567
|
+
}, {
|
|
568
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
569
|
+
}>, z.ZodTypeAny, "passthrough">>]>;
|
|
570
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
571
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
572
|
+
structuredContent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
573
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
574
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
575
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
576
|
+
} & {
|
|
577
|
+
content: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
578
|
+
type: z.ZodLiteral<"text">;
|
|
579
|
+
text: z.ZodString;
|
|
580
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
581
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
582
|
+
type: z.ZodLiteral<"text">;
|
|
583
|
+
text: z.ZodString;
|
|
584
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
585
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
586
|
+
type: z.ZodLiteral<"text">;
|
|
587
|
+
text: z.ZodString;
|
|
588
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
589
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
590
|
+
type: z.ZodLiteral<"image">;
|
|
591
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
592
|
+
mimeType: z.ZodString;
|
|
593
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
594
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
595
|
+
type: z.ZodLiteral<"image">;
|
|
596
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
597
|
+
mimeType: z.ZodString;
|
|
598
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
599
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
600
|
+
type: z.ZodLiteral<"image">;
|
|
601
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
602
|
+
mimeType: z.ZodString;
|
|
603
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
604
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
605
|
+
type: z.ZodLiteral<"audio">;
|
|
606
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
607
|
+
mimeType: z.ZodString;
|
|
608
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
609
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
610
|
+
type: z.ZodLiteral<"audio">;
|
|
611
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
612
|
+
mimeType: z.ZodString;
|
|
613
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
614
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
615
|
+
type: z.ZodLiteral<"audio">;
|
|
616
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
617
|
+
mimeType: z.ZodString;
|
|
618
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
619
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
620
|
+
name: z.ZodString;
|
|
621
|
+
title: z.ZodOptional<z.ZodString>;
|
|
622
|
+
}, {
|
|
623
|
+
uri: z.ZodString;
|
|
624
|
+
description: z.ZodOptional<z.ZodString>;
|
|
625
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
626
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
627
|
+
}>, {
|
|
628
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
629
|
+
src: z.ZodString;
|
|
630
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
631
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
632
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
633
|
+
src: z.ZodString;
|
|
634
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
635
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
636
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
637
|
+
src: z.ZodString;
|
|
638
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
639
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
640
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
641
|
+
}>, {
|
|
642
|
+
type: z.ZodLiteral<"resource_link">;
|
|
643
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
644
|
+
name: z.ZodString;
|
|
645
|
+
title: z.ZodOptional<z.ZodString>;
|
|
646
|
+
}, {
|
|
647
|
+
uri: z.ZodString;
|
|
648
|
+
description: z.ZodOptional<z.ZodString>;
|
|
649
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
650
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
651
|
+
}>, {
|
|
652
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
653
|
+
src: z.ZodString;
|
|
654
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
655
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
656
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
657
|
+
src: z.ZodString;
|
|
658
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
659
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
660
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
661
|
+
src: z.ZodString;
|
|
662
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
663
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
664
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
665
|
+
}>, {
|
|
666
|
+
type: z.ZodLiteral<"resource_link">;
|
|
667
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
668
|
+
name: z.ZodString;
|
|
669
|
+
title: z.ZodOptional<z.ZodString>;
|
|
670
|
+
}, {
|
|
671
|
+
uri: z.ZodString;
|
|
672
|
+
description: z.ZodOptional<z.ZodString>;
|
|
673
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
674
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
675
|
+
}>, {
|
|
676
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
677
|
+
src: z.ZodString;
|
|
678
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
679
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
680
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
681
|
+
src: z.ZodString;
|
|
682
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
683
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
684
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
685
|
+
src: z.ZodString;
|
|
686
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
687
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
688
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
689
|
+
}>, {
|
|
690
|
+
type: z.ZodLiteral<"resource_link">;
|
|
691
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
692
|
+
type: z.ZodLiteral<"resource">;
|
|
693
|
+
resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
694
|
+
uri: z.ZodString;
|
|
695
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
696
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
697
|
+
}, {
|
|
698
|
+
text: z.ZodString;
|
|
699
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
700
|
+
uri: z.ZodString;
|
|
701
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
702
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
703
|
+
}, {
|
|
704
|
+
text: z.ZodString;
|
|
705
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
706
|
+
uri: z.ZodString;
|
|
707
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
708
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
709
|
+
}, {
|
|
710
|
+
text: z.ZodString;
|
|
711
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
|
|
712
|
+
uri: z.ZodString;
|
|
713
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
714
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
715
|
+
}, {
|
|
716
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
717
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
718
|
+
uri: z.ZodString;
|
|
719
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
720
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
721
|
+
}, {
|
|
722
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
723
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
724
|
+
uri: z.ZodString;
|
|
725
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
726
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
727
|
+
}, {
|
|
728
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
729
|
+
}>, z.ZodTypeAny, "passthrough">>]>;
|
|
730
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
731
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
732
|
+
type: z.ZodLiteral<"resource">;
|
|
733
|
+
resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
734
|
+
uri: z.ZodString;
|
|
735
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
736
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
737
|
+
}, {
|
|
738
|
+
text: z.ZodString;
|
|
739
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
740
|
+
uri: z.ZodString;
|
|
741
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
742
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
743
|
+
}, {
|
|
744
|
+
text: z.ZodString;
|
|
745
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
746
|
+
uri: z.ZodString;
|
|
747
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
748
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
749
|
+
}, {
|
|
750
|
+
text: z.ZodString;
|
|
751
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
|
|
752
|
+
uri: z.ZodString;
|
|
753
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
754
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
755
|
+
}, {
|
|
756
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
757
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
758
|
+
uri: z.ZodString;
|
|
759
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
760
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
761
|
+
}, {
|
|
762
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
763
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
764
|
+
uri: z.ZodString;
|
|
765
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
766
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
767
|
+
}, {
|
|
768
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
769
|
+
}>, z.ZodTypeAny, "passthrough">>]>;
|
|
770
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
771
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
772
|
+
type: z.ZodLiteral<"resource">;
|
|
773
|
+
resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
774
|
+
uri: z.ZodString;
|
|
775
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
776
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
777
|
+
}, {
|
|
778
|
+
text: z.ZodString;
|
|
779
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
780
|
+
uri: z.ZodString;
|
|
781
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
782
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
783
|
+
}, {
|
|
784
|
+
text: z.ZodString;
|
|
785
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
786
|
+
uri: z.ZodString;
|
|
787
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
788
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
789
|
+
}, {
|
|
790
|
+
text: z.ZodString;
|
|
791
|
+
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
|
|
792
|
+
uri: z.ZodString;
|
|
793
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
794
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
795
|
+
}, {
|
|
796
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
797
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
798
|
+
uri: z.ZodString;
|
|
799
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
800
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
801
|
+
}, {
|
|
802
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
803
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
804
|
+
uri: z.ZodString;
|
|
805
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
806
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
807
|
+
}, {
|
|
808
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
809
|
+
}>, z.ZodTypeAny, "passthrough">>]>;
|
|
810
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
811
|
+
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
812
|
+
structuredContent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
813
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
814
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
815
|
+
declare const stateSchema: z.ZodObject<{
|
|
816
|
+
input: z.ZodObject<{
|
|
817
|
+
name: z.ZodString;
|
|
818
|
+
arguments: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
819
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
820
|
+
name: z.ZodString;
|
|
821
|
+
arguments: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
822
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
823
|
+
name: z.ZodString;
|
|
824
|
+
arguments: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
825
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
826
|
+
authInfo: z.ZodType<AuthInfo>;
|
|
827
|
+
tool: z.ZodType<ToolEntry<object, object>, z.ZodTypeDef, ToolEntry<object, object>>;
|
|
828
|
+
toolContext: z.ZodType<ToolContext<unknown, unknown>, z.ZodTypeDef, ToolContext<unknown, unknown>>;
|
|
829
|
+
}, "strip", z.ZodTypeAny, {
|
|
830
|
+
tool: ToolEntry<object, object>;
|
|
831
|
+
input: {
|
|
832
|
+
name: string;
|
|
833
|
+
arguments?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
834
|
+
} & {
|
|
835
|
+
[k: string]: unknown;
|
|
836
|
+
};
|
|
837
|
+
toolContext: ToolContext<unknown, unknown>;
|
|
838
|
+
authInfo: AuthInfo;
|
|
839
|
+
}, {
|
|
840
|
+
tool: ToolEntry<object, object>;
|
|
841
|
+
input: {
|
|
842
|
+
name: string;
|
|
843
|
+
arguments?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
844
|
+
} & {
|
|
845
|
+
[k: string]: unknown;
|
|
846
|
+
};
|
|
847
|
+
toolContext: ToolContext<unknown, unknown>;
|
|
848
|
+
authInfo: AuthInfo;
|
|
849
|
+
}>;
|
|
850
|
+
declare const plan: {
|
|
851
|
+
readonly pre: ["parseInput", "findTool", "createToolCallContext", "acquireQuota", "acquireSemaphore"];
|
|
852
|
+
readonly execute: ["validateInput", "execute", "validateOutput"];
|
|
853
|
+
readonly finalize: ["releaseSemaphore", "releaseQuota", "finalize"];
|
|
854
|
+
};
|
|
855
|
+
declare global {
|
|
856
|
+
interface ExtendFlows {
|
|
857
|
+
'tools:call-tool': FlowRunOptions<CallToolFlow, typeof plan, typeof inputSchema, typeof outputSchema, typeof stateSchema>;
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
declare const name: "tools:call-tool";
|
|
861
|
+
export default class CallToolFlow extends FlowBase<typeof name> {
|
|
862
|
+
logger: import("../../common").FrontMcpLogger;
|
|
863
|
+
parseInput(): Promise<void>;
|
|
864
|
+
findTool(): Promise<void>;
|
|
865
|
+
createToolCallContext(): Promise<void>;
|
|
866
|
+
acquireQuota(): Promise<void>;
|
|
867
|
+
acquireSemaphore(): Promise<void>;
|
|
868
|
+
validateInput(): Promise<void>;
|
|
869
|
+
execute(): Promise<void>;
|
|
870
|
+
validateOutput(): Promise<void>;
|
|
871
|
+
releaseSemaphore(): Promise<void>;
|
|
872
|
+
releaseQuota(): Promise<void>;
|
|
873
|
+
finalize(): Promise<void>;
|
|
874
|
+
}
|
|
875
|
+
export {};
|