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: update connected_accounts to array type for v3.1 multi-account
Bumps @composio/client to 0.1.0-alpha.70 which changes connected_accounts from Dict[str, str] to Dict[str, List[str]]. Updated both TS and Python SDK types to match. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Abir Taheer committed
May 6, 2026 at 21:52 UTC
3fc9cfc3051424ad49e0253bc0c190c3bbd82cf4
3 files changed
+5
-3
pnpm-workspace.yaml
+1
-1
@@ -22,7 +22,7 @@ catalog:
22
'@clack/prompts': '^1.0.1'
23
'@cloudflare/vitest-pool-workers': ^0.9.2
24
'@cloudflare/workers-types': ^4.20250917.0
25
- '@composio/client': 0.1.0-alpha.69
25
+ '@composio/client': 0.1.0-alpha.70
26
'@effect/cli': ^0.73.2
27
'@effect/eslint-plugin': ^0.3.2
28
'@effect/language-service': ^0.74.0
python/composio/core/models/tool_router.py
+2
@@ -597,6 +597,8 @@ class ToolRouter(Resource, t.Generic[TTool, TToolCollection]):
597
:param auth_configs: Optional mapping of toolkit slug to auth config ID.
598
Example: {'github': 'ac_xxx', 'slack': 'ac_yyy'}
599
:param connected_accounts: Optional mapping of toolkit slug to connected account IDs.
600
+ Only one account per toolkit is allowed when multi-account
601
+ mode is disabled.
602
Example: {'github': ['ca_xxx'], 'slack': ['ca_yyy']}
603
:param workbench: Optional workbench configuration. Dict with:
604
- 'enable' (bool): Whether to enable the workbench entirely.
ts/packages/core/src/types/toolRouter.types.ts
+2
-2
@@ -202,9 +202,9 @@ const ToolRouterCreateSessionConfigBaseSchema = z
202
)
203
.default({}),
204
connectedAccounts: z
205
- .record(z.string(), z.string())
205
+ .record(z.string(), z.array(z.string()))
206
.describe(
207
- 'The connected accounts to use in the tool router session. The key is the toolkit slug, the value is the connected account id.'
207
+ 'The connected accounts to use in the tool router session. The key is the toolkit slug, the value is an array of connected account ids. Only one account per toolkit is allowed when multi-account mode is disabled.'
208
)
209
.default({}),
210
manageConnections: z