@devries-cameron20 / composio Mirror · read-only / commits / c59e74dad
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 23, 03:00 UTC

Update auth configs and create connected accounts

haxzie committed May 15, 2025 at 22:37 UTC c59e74dade0d518fffd7b43d9ea8fd10129b58de
1 file changed +12 -3
packages/core/src/models/ConnectedAccounts.ts
+12 -3
@@ -9,8 +9,6 @@ import ComposioClient from '@composio/client';
9 import {
10 ConnectedAccountListParams,
11 ConnectedAccountListResponse,
12 - ConnectedAccountCreateParams,
13 - ConnectedAccountCreateResponse,
12 ConnectedAccountDeleteResponse,
13 ConnectedAccountRetrieveResponse,
14 ConnectedAccountRefreshResponse,
@@ -47,8 +45,19 @@ export class ConnectedAccounts {
45 * Compound function to create a new connected account.
46 * This function creates a new connected account and returns a connection request.
47 * Users can then wait for the connection to be established using the `waitForConnection` method.
50 - * @param {CreateConnectedAccountParams} data - Data for creating a new connected account
48 + * @param {string} userId - User ID of the connected account
49 + * @param {string} authConfigId - Auth config ID of the connected account
50 + * @param {CreateConnectedAccountOptions} data - Data for creating a new connected account
51 * @returns {Promise<ConnectionRequest>} Connection request object
52 + *
53 + * @example
54 + * const connectionRequest = await composio.createConnectedAccount('user_123', 'auth_config_123', {
55 + * data: {
56 + * name: 'My Connected Account',
57 + * },
58 + * });
59 + *
60 + * @link https://docs.composio.dev/reference/connected-accounts/create-connected-account
61 */
62 async create(
63 userId: string,