@devries-cameron20 / composio-1 / commits / a202b9ea9
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.

docs(connected-accounts): drop residual "at create time" wording in error class

Two more spots leaking the same immutability wording removed from the upstream API description: - ComposioAclOnlyForSharedError possibleFixes said "Set accountType: 'SHARED' at create time". Reworded to "Use accountType: 'SHARED'". - ComposioSharedConnectionNotAccessibleError JSDoc said "caught at session-create time". Replaced "caught" framing with "Raised at session-create time" — "session-create time" stays because it's user-facing (tells the SDK caller when the error is raised, i.e. during session.create() / session.patch()). Also tightened the surrounding wording — class doc cross-references the actual SDK method names (`toolRouter.session.create()` / `session.patch()`) instead of abstract phrasing. No behaviour changes — docstring cleanup only. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

venkat82 committed May 12, 2026 at 01:28 UTC a202b9ea90c0bdd9532da92f3de0842e6eab5eb9
1 file changed +5 -4
ts/packages/core/src/errors/ConnectedAccountsErrors.ts
+5 -4
@@ -96,7 +96,7 @@ export class ComposioAclOnlyForSharedError extends ComposioError {
96 code: ConnectedAccountErrorCodes.ACL_ONLY_FOR_SHARED,
97 statusCode: 400,
98 possibleFixes: options.possibleFixes || [
99 - 'Set accountType: "SHARED" at create time, or omit ACL fields when creating/updating a PRIVATE connection.',
99 + 'Use accountType: "SHARED", or omit ACL fields when creating/updating a PRIVATE connection.',
100 ],
101 });
102 this.name = 'ComposioAclOnlyForSharedError';
@@ -104,9 +104,10 @@ export class ComposioAclOnlyForSharedError extends ComposioError {
104 }
105
106 /**
107 - * Thrown by tool-router session create / PATCH when the session's `userId`
108 - * cannot use a pinned SHARED connection — caught at session-create time
109 - * so the session never enters a state that fails mid-execution.
107 + * Thrown by `toolRouter.session.create()` / `session.patch()` when the
108 + * session's `userId` cannot use a pinned SHARED connection. Raised at
109 + * session-create time so the session never enters a state that fails
110 + * mid-execution.
111 */
112 export class ComposioSharedConnectionNotAccessibleError extends ComposioError {
113 constructor(