Minor Changes
-
42ebff3: feat(connected-accounts): namespace SHARED-connection surface under
experimentalAligns the TypeScript SDK with the experimental wire shape used by Shared Connections. The flat
accountType/aclConfigForSharedoptions onconnectedAccounts.link()andsession.authorize()have moved under a singleexperimentalblock, andconnectedAccounts.updateAcl()has moved off the class onto a top-levelexperimental_updateAcl(composio, id, opts)export — same precedent asexperimental_createTool/experimental_createToolkit.The
experimentalnamespace is the signal that the shape may change in future releases. Pinning a SHARED connection in a session config (connectedAccounts: { gmail: [...] }) and direct execute byconnectedAccountIdare unchanged — only the connection-create / patch / authorize surfaces are namespaced.Also surfaces the
accountTypefilter onconnectedAccounts.list()so SHARED connections can be listed without dropping to the raw client. The wire keeps this as a flat query param, so the SDK keeps it flat too.@composio/clientbumped from0.1.0-alpha.71→0.1.0-alpha.72so the generated typed client carries theExperimentalnamespaces forlink.create,toolRouter.session.link, andconnectedAccounts.patch.Caller migration:
// before await composio.connectedAccounts.link('user_id', 'auth_config_id', { accountType: 'SHARED', aclConfigForShared: { allowAllUsers: true }, }); await composio.connectedAccounts.updateAcl('ca_abc', { allowAllUsers: true }); await session.authorize('github', { accountType: 'SHARED', aclConfigForShared: { allowAllUsers: true }, }); // after await composio.connectedAccounts.link('user_id', 'auth_config_id', { experimental: { accountType: 'SHARED', aclConfigForShared: { allowAllUsers: true }, }, }); await experimental_updateAcl(composio, 'ca_abc', { allowAllUsers: true }); await session.authorize('github', { experimental: { accountType: 'SHARED', aclConfigForShared: { allowAllUsers: true }, }, }); // new — list SHARED connections const shared = await composio.connectedAccounts.list({ accountType: 'SHARED', userIds: ['user_creator'], });