@devries-cameron20 / composio Mirror · read-only / commits / eb622f88a
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 21, 22:15 UTC

chore(sdk-ts): trim allowMultiple-specific possibleFixes from typed error

The migration guide now frames `allow_multiple` as a non-issue (link() allows multiple by design); the typed error's possibleFixes should not push readers toward replicating a guard they don't need. Keep the canonical 'switch to link()' fix and the migration-guide URL. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Composio committed May 4, 2026 at 11:01 UTC eb622f88a602a6c4b1597955f60ba5a85063b86a
1 file changed -1
ts/packages/core/src/errors/ConnectedAccountsErrors.ts
-1
@@ -77,7 +77,6 @@ export class ComposioLegacyConnectedAccountsEndpointRetiredError extends Composi
77 statusCode: 400,
78 possibleFixes: options.possibleFixes || [
79 'Replace `composio.connectedAccounts.initiate(userId, authConfigId, options)` with `composio.connectedAccounts.link(userId, authConfigId, options)`. The return shape (id, redirectUrl, waitForConnection()) is the same.',
80 - 'If you relied on the `allowMultiple` guard in initiate(), pre-check existing active connections with `composio.connectedAccounts.list({ userIds, authConfigIds, statuses: [ConnectedAccountStatuses.ACTIVE] })` before calling link().',
80 'Migration guide: https://docs.composio.dev/docs/changelog/2026/04/24',
81 ],
82 });