@devries-cameron20 / composio Mirror · read-only / commits / 716e22d8e
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 00:45 UTC

fix: add alias to ToolRouterAuthorizeFn type

The ToolRouterAuthorizeFn type was missing the alias option that Session.authorize already supports, causing type errors in docs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Zen Agent <zen@composio.dev>

abir committed Apr 10, 2026 at 08:15 UTC 716e22d8e8fbe41049f2995254e22f026d5f6b17
1 file changed +1 -1
ts/packages/core/src/types/toolRouter.types.ts
+1 -1
@@ -342,7 +342,7 @@ export type ToolRouterToolsFn<
342
343 export type ToolRouterAuthorizeFn = (
344 toolkit: string,
345 - options?: { callbackUrl?: string }
345 + options?: { callbackUrl?: string; alias?: string }
346 ) => Promise<ConnectionRequest>;
347
348 export const ToolRouterToolkitsOptionsSchema = z.object({