Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix: add alias to ToolRouterAuthorizeFn type (#3167)
# Description `ToolRouterAuthorizeFn` was missing the `alias` option that `Session.authorize` already supports. This caused type errors in docs code blocks that use `session.authorize('gmail', { alias: 'work-gmail' })`. One-line fix: add `alias?: string` to the options type. # How did I test this PR - Verified `Session.authorize` already accepts `alias` in its type definition - Confirmed `ToolRouterAuthorizeFn` is the type used by `ToolRouterSession.authorize` (returned by `composio.create()`) - This fix aligns the two type definitions Needed for docs PR #3160 to pass type checking.
No changes.