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

chore(connected-accounts): drop dead re-exports from Experimental.ts

Three types (LinkCreateParams, SessionLinkParams, ConnectedAccountListParamsRaw) were imported and re-exported but had zero external consumers. The named-type imports of LinkCreateParams / SessionLinkParams were only referenced in a descriptive comment; ConnectedAccountListParamsRaw wasn't used at all. Rewrote the comment so it documents the structural-typing rationale without referencing the now-unimported namespace names. Typecheck clean, 919/919 tests pass.

jkomyno committed May 13, 2026 at 15:47 UTC cfa30ceef3c4f5e02a0f496eff8f7dcfdd03fab7
1 file changed +3 -11
ts/packages/core/src/models/Experimental.ts
+3 -11
@@ -10,10 +10,7 @@ import ComposioClient, { BadRequestError } from '@composio/client';
10 import {
11 ConnectedAccountPatchParams,
12 ConnectedAccountPatchResponse,
13 - ConnectedAccountListParams as ConnectedAccountListParamsRaw,
13 } from '@composio/client/resources/connected-accounts';
15 -import { LinkCreateParams } from '@composio/client/resources/link';
16 -import { SessionLinkParams } from '@composio/client/resources/tool-router/session/session';
14 import {
15 ConnectedAccountExperimental,
16 UpdateConnectedAccountAclParams,
@@ -34,8 +31,9 @@ export const ACL_ONLY_FOR_SHARED_ERROR_FRAGMENT = 'acl_config_for_shared is only
31
32 /**
33 * Structural shape of the wire's experimental block on requests. Both
37 - * `LinkCreateParams.Experimental` and `SessionLinkParams.Experimental`
38 - * (Stainless-generated, nominally distinct) accept this shape.
34 + * the `link.create` and `tool_router.session.link` wire types are
35 + * Stainless-generated as nominally distinct namespaces but accept this
36 + * shape — sharing one structural type keeps the SDK helpers reusable.
37 */
38 type ExperimentalWire = {
39 account_type?: 'PRIVATE' | 'SHARED';
@@ -190,9 +188,3 @@ export class Experimental {
188 }
189 }
190 }
193 -
194 -// Re-exports so the wire-shape helpers stay reachable from the existing
195 -// callsites in `models/` without bouncing through `experimental.ts` —
196 -// the canonical home is here, but the imports look unchanged at the
197 -// caller.
198 -export type { LinkCreateParams, SessionLinkParams, ConnectedAccountListParamsRaw };