@composio/core 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/{CustomTool-CnJxXr07.mjs → CustomTool-BYHB7sPs.mjs} +1 -1
  2. package/dist/{CustomTool-CNJysHMK.d.mts → CustomTool-DfP4ldQl.d.mts} +1 -1
  3. package/dist/{cancellation-BQibgpRG.mjs → cancellation-ZoRh6EJQ.mjs} +55 -3
  4. package/dist/{composio-BFTtZj82.d.mts → composio-BMDH-1Qj.d.mts} +35 -15
  5. package/dist/{customTool.types-D57QrTns.d.mts → customTool.types-BoOELgJF.d.mts} +346 -23
  6. package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +10 -10
  7. package/dist/docs/reference/sdk-reference/typescript/composio.mdx +2 -2
  8. package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +22 -22
  9. package/dist/docs/reference/sdk-reference/typescript/custom-toolkits.mdx +8 -8
  10. package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +2 -2
  11. package/dist/docs/reference/sdk-reference/typescript/index.mdx +1 -1
  12. package/dist/docs/reference/sdk-reference/typescript/keyring.mdx +2 -2
  13. package/dist/docs/reference/sdk-reference/typescript/logs.mdx +5 -5
  14. package/dist/docs/reference/sdk-reference/typescript/mcp.mdx +15 -15
  15. package/dist/docs/reference/sdk-reference/typescript/meta.json +1 -1
  16. package/dist/docs/reference/sdk-reference/typescript/session-configs.mdx +5 -5
  17. package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +10 -10
  18. package/dist/docs/reference/sdk-reference/typescript/session.mdx +56 -21
  19. package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +6 -6
  20. package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +22 -22
  21. package/dist/docs/reference/sdk-reference/typescript/tools.mdx +18 -18
  22. package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +25 -25
  23. package/dist/docs/reference/sdk-reference/typescript/usage.mdx +6 -6
  24. package/dist/docs/reference/sdk-reference/typescript/webhook-endpoints.mdx +14 -14
  25. package/dist/docs/reference/sdk-reference/typescript/webhook-subscriptions.mdx +13 -13
  26. package/dist/{errors-BN15NcCW.mjs → errors-Cly0vXFh.mjs} +5 -5
  27. package/dist/experimental/index.d.mts +2 -2
  28. package/dist/experimental/index.mjs +1 -1
  29. package/dist/index.d.mts +19 -11
  30. package/dist/index.mjs +693 -196
  31. package/dist/{types-q8TwAngA.d.mts → types-DHNV_T_z.d.mts} +2 -2
  32. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
  33. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
  34. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
  35. package/dist/utils/modifiers/FileToolModifier.node.mjs +2 -2
  36. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  37. package/package.json +5 -5
  38. package/src/composio.ts +81 -67
  39. package/src/errors/ToolRouterErrors.ts +5 -5
  40. package/src/lib/toolRouterMcp.ts +2 -0
  41. package/src/lib/toolRouterParams.ts +28 -16
  42. package/src/models/ConnectedAccounts.ts +7 -16
  43. package/src/models/ToolRouter.ts +8 -1
  44. package/src/models/ToolRouterSession.ts +17 -0
  45. package/src/models/Tools.ts +1 -4
  46. package/src/models/Triggers.ts +14 -7
  47. package/src/services/internal/InternalService.ts +3 -4
  48. package/src/services/pusher/Pusher.ts +170 -92
  49. package/src/types/connectedAccountAuthStates.types.ts +2 -1
  50. package/src/types/pusher.types.ts +2 -0
  51. package/src/types/requestOptions.types.ts +1 -10
  52. package/src/types/toolRouter.types.ts +104 -18
  53. package/src/utils/jsonSchema.ts +76 -4
  54. package/src/utils/sdk.ts +172 -11
  55. package/src/utils/session.ts +25 -47
  56. package/src/utils/toolkitDeprecation.ts +271 -0
  57. package/src/utils/transformers/connectedAccounts.ts +9 -20
  58. package/src/utils/transformers/mcp.ts +3 -10
  59. package/src/utils/userCallback.ts +41 -0
@@ -19,7 +19,7 @@ const result = await composio.authConfigs.list();
19
19
  Create a new auth config
20
20
 
21
21
  ```typescript
22
- async create(toolkit: string, options?: { authScheme: 'OAUTH2' | 'OAUTH1' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'CALCOM_AUTH' | 'SERVICE_ACCOUNT' | 'SAML' | 'DCR_OAUTH' | 'CIMD_OAUTH' | 'S2S_OAUTH2'; credentials: Record<string, string | number | boolean>; isEnabledForToolRouter?: boolean; name?: string; proxyConfig?: { proxyAuthKey?: string; proxyUrl: string }; toolAccessConfig?: { toolsForConnectedAccountCreation?: string[] }; type: 'use_custom_auth' } | { credentials?: objectOutputType<{ scopes: ZodOptional<ZodUnion<...>>; user_scopes: ZodOptional<ZodUnion<...>> }, ZodTypeAny, 'passthrough'>; isEnabledForToolRouter?: boolean; name?: string; toolAccessConfig?: { toolsForConnectedAccountCreation?: string[] }; type: 'use_composio_managed_auth' }, requestOptions?: ComposioRequestOptions): Promise<{ authScheme: string; id: string; isComposioManaged: boolean; toolkit: string }>
22
+ async create(toolkit: string, options?: CreateAuthConfigParams, requestOptions?: ComposioRequestOptions): Promise<CreateAuthConfigResponse>
23
23
  ```
24
24
 
25
25
  **Parameters**
@@ -27,12 +27,12 @@ async create(toolkit: string, options?: { authScheme: 'OAUTH2' | 'OAUTH1' | 'API
27
27
  | Name | Type | Description |
28
28
  |------|------|-------------|
29
29
  | `toolkit` | `string` | Unique identifier of the toolkit |
30
- | `options?` | `\{ authScheme: 'OAUTH2' \| 'OAUTH1' \| 'API_KEY' \| 'BASIC' \| 'BILLCOM_AUTH' \| 'BEARER_TOKEN' \| 'GOOGLE_SERVICE_ACCOUNT' \| 'NO_AUTH' \| 'BASIC_WITH_JWT' \| 'CALCOM_AUTH' \| 'SERVICE_ACCOUNT' \| 'SAML' \| 'DCR_OAUTH' \| 'CIMD_OAUTH' \| 'S2S_OAUTH2'; credentials: Record<string, string \| number \| boolean>; isEnabledForToolRouter?: boolean; name?: string; proxyConfig?: \{ proxyAuthKey?: string; proxyUrl: string \}; toolAccessConfig?: \{ toolsForConnectedAccountCreation?: string[] \}; type: 'use_custom_auth' \} \| \{ credentials?: objectOutputType<\{ scopes: ZodOptional<ZodUnion<...>>; user_scopes: ZodOptional<ZodUnion<...>> \}, ZodTypeAny, 'passthrough'>; isEnabledForToolRouter?: boolean; name?: string; toolAccessConfig?: \{ toolsForConnectedAccountCreation?: string[] \}; type: 'use_composio_managed_auth' \}` | Options for creating a new auth config |
30
+ | `options?` | `CreateAuthConfigParams` | Options for creating a new auth config |
31
31
  | `requestOptions?` | `ComposioRequestOptions` | |
32
32
 
33
33
  **Returns**
34
34
 
35
- `Promise<...>` — Created auth config
35
+ `Promise<CreateAuthConfigResponse>` — Created auth config
36
36
 
37
37
  **Example**
38
38
 
@@ -153,7 +153,7 @@ This method fetches detailed information about a single auth config
153
153
  and transforms the response to the SDK's standardized format.
154
154
 
155
155
  ```typescript
156
- async get(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<{ authScheme?: 'OAUTH2' | 'OAUTH1' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'CALCOM_AUTH' | 'SERVICE_ACCOUNT' | 'SAML' | 'DCR_OAUTH' | 'CIMD_OAUTH' | 'S2S_OAUTH2'; createdAt?: string; createdBy?: string; credentials?: Record<string, unknown>; expectedInputFields?: unknown[]; id: string; isComposioManaged?: boolean; isEnabledForToolRouter?: boolean; lastUpdatedAt?: string; name: string; noOfConnections: number; restrictToFollowingTools?: string[]; status: 'ENABLED' | 'DISABLED'; toolAccessConfig?: { toolsAvailableForExecution?: string[]; toolsForConnectedAccountCreation?: string[] }; toolkit: { logo: string; slug: string } }>
156
+ async get(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<AuthConfigRetrieveResponse>
157
157
  ```
158
158
 
159
159
  **Parameters**
@@ -165,7 +165,7 @@ async get(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<{ au
165
165
 
166
166
  **Returns**
167
167
 
168
- `Promise<\{ authScheme?: 'OAUTH2' \| 'OAUTH1' \| 'API_KEY' \| 'BASIC' \| 'BILLCOM_AUTH' \| 'BEARER_TOKEN' \| 'GOOGLE_SERVICE_ACCOUNT' \| 'NO_AUTH' \| 'BASIC_WITH_JWT' \| 'CALCOM_AUTH' \| 'SERVICE_ACCOUNT' \| 'SAML' \| 'DCR_OAUTH' \| 'CIMD_OAUTH' \| 'S2S_OAUTH2'; createdAt?: string; createdBy?: string; credentials?: Record<string, unknown>; expectedInputFields?: unknown[]; id: string; isComposioManaged?: boolean; isEnabledForToolRouter?: boolean; lastUpdatedAt?: string; name: string; noOfConnections: number; restrictToFollowingTools?: string[]; status: 'ENABLED' \| 'DISABLED'; toolAccessConfig?: \{ toolsAvailableForExecution?: string[]; toolsForConnectedAccountCreation?: string[] \}; toolkit: \{ logo: string; slug: string \} \}>` — The auth config details
168
+ `Promise<AuthConfigRetrieveResponse>` — The auth config details
169
169
 
170
170
  **Example**
171
171
 
@@ -186,19 +186,19 @@ This method retrieves auth configs from the Composio API, transforms them to the
186
186
  and supports filtering by various parameters.
187
187
 
188
188
  ```typescript
189
- async list(query?: { cursor?: string; isComposioManaged?: boolean; limit?: number; search?: string; showDisabled?: boolean; toolkit?: string }, requestOptions?: ComposioRequestOptions): Promise<{ items: { authScheme?: 'OAUTH2' | 'OAUTH1' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'CALCOM_AUTH' | 'SERVICE_ACCOUNT' | 'SAML' | 'DCR_OAUTH' | 'CIMD_OAUTH' | 'S2S_OAUTH2'; createdAt?: string; createdBy?: string; credentials?: Record<string, unknown>; expectedInputFields?: unknown[]; id: string; isComposioManaged?: boolean; isEnabledForToolRouter?: boolean; lastUpdatedAt?: string; name: string; noOfConnections: number; restrictToFollowingTools?: string[]; status: 'ENABLED' | 'DISABLED'; toolAccessConfig?: { toolsAvailableForExecution?: ...[]; toolsForConnectedAccountCreation?: ...[] }; toolkit: { logo: string; slug: string } }[]; nextCursor: string | null; totalPages: number }>
189
+ async list(query?: AuthConfigListParams, requestOptions?: ComposioRequestOptions): Promise<AuthConfigListResponse>
190
190
  ```
191
191
 
192
192
  **Parameters**
193
193
 
194
194
  | Name | Type | Description |
195
195
  |------|------|-------------|
196
- | `query?` | `\{ cursor?: string; isComposioManaged?: boolean; limit?: number; search?: string; showDisabled?: boolean; toolkit?: string \}` | Optional query parameters for filtering auth configs |
196
+ | `query?` | `AuthConfigListParams` | Optional query parameters for filtering auth configs |
197
197
  | `requestOptions?` | `ComposioRequestOptions` | |
198
198
 
199
199
  **Returns**
200
200
 
201
- `Promise<\{ items: \{ authScheme?: 'OAUTH2' \| 'OAUTH1' \| 'API_KEY' \| 'BASIC' \| 'BILLCOM_AUTH' \| 'BEARER_TOKEN' \| 'GOOGLE_SERVICE_ACCOUNT' \| 'NO_AUTH' \| 'BASIC_WITH_JWT' \| 'CALCOM_AUTH' \| 'SERVICE_ACCOUNT' \| 'SAML' \| 'DCR_OAUTH' \| 'CIMD_OAUTH' \| 'S2S_OAUTH2'; createdAt?: string; createdBy?: string; credentials?: Record<string, unknown>; expectedInputFields?: unknown[]; id: string; isComposioManaged?: boolean; isEnabledForToolRouter?: boolean; lastUpdatedAt?: string; name: string; noOfConnections: number; restrictToFollowingTools?: string[]; status: 'ENABLED' \| 'DISABLED'; toolAccessConfig?: \{ toolsAvailableForExecution?: ...[]; toolsForConnectedAccountCreation?: ...[] \}; toolkit: \{ logo: string; slug: string \} \}[]; nextCursor: string \| null; totalPages: number \}>` — A paginated list of auth configurations
201
+ `Promise<AuthConfigListResponse>` — A paginated list of auth configurations
202
202
 
203
203
  **Example**
204
204
 
@@ -234,7 +234,7 @@ scopes, or tool restrictions. The update type (custom or default) determines whi
234
234
  fields can be updated.
235
235
 
236
236
  ```typescript
237
- async update(nanoid: string, data: { credentials?: objectOutputType<{ scopes: ZodOptional<ZodUnion<...>>; user_scopes: ZodOptional<ZodUnion<...>> }, ZodTypeAny, 'passthrough'>; isEnabledForToolRouter?: boolean; restrictToFollowingTools?: string[]; toolAccessConfig?: { toolsAvailableForExecution?: string[]; toolsForConnectedAccountCreation?: string[] }; type: 'custom' } | { isEnabledForToolRouter?: boolean; restrictToFollowingTools?: string[]; scopes?: string; toolAccessConfig?: { toolsAvailableForExecution?: string[]; toolsForConnectedAccountCreation?: string[] }; type: 'default' }, requestOptions?: ComposioRequestOptions): Promise<AuthConfigUpdateResponse>
237
+ async update(nanoid: string, data: AuthConfigUpdateParams, requestOptions?: ComposioRequestOptions): Promise<AuthConfigUpdateResponse>
238
238
  ```
239
239
 
240
240
  **Parameters**
@@ -242,7 +242,7 @@ async update(nanoid: string, data: { credentials?: objectOutputType<{ scopes: Zo
242
242
  | Name | Type | Description |
243
243
  |------|------|-------------|
244
244
  | `nanoid` | `string` | The unique identifier of the auth config to update |
245
- | `data` | `\{ credentials?: objectOutputType<\{ scopes: ZodOptional<ZodUnion<...>>; user_scopes: ZodOptional<ZodUnion<...>> \}, ZodTypeAny, 'passthrough'>; isEnabledForToolRouter?: boolean; restrictToFollowingTools?: string[]; toolAccessConfig?: \{ toolsAvailableForExecution?: string[]; toolsForConnectedAccountCreation?: string[] \}; type: 'custom' \} \| \{ isEnabledForToolRouter?: boolean; restrictToFollowingTools?: string[]; scopes?: string; toolAccessConfig?: \{ toolsAvailableForExecution?: string[]; toolsForConnectedAccountCreation?: string[] \}; type: 'default' \}` | The data to update, which can be either custom or default type |
245
+ | `data` | `AuthConfigUpdateParams` | The data to update, which can be either custom or default type |
246
246
  | `requestOptions?` | `ComposioRequestOptions` | |
247
247
 
248
248
  **Returns**
@@ -167,12 +167,12 @@ export default {
167
167
  Get the Composio SDK client.
168
168
 
169
169
  ```typescript
170
- getClient(): Composio
170
+ getClient(): ComposioClient
171
171
  ```
172
172
 
173
173
  **Returns**
174
174
 
175
- `Composio` — The Composio API client.
175
+ `ComposioClient` — The Composio API client.
176
176
 
177
177
  ---
178
178
 
@@ -30,19 +30,19 @@ The session URI is single-use: redeeming it twice, or after it expires,
30
30
  fails with a 404 from the API.
31
31
 
32
32
  ```typescript
33
- async completeAuth(params: { sessionUri: string; userId: string }, requestOptions?: ComposioRequestOptions): Promise<{ connectedAccountId: string; toolkitSlug: string }>
33
+ async completeAuth(params: ConnectedAccountCompleteAuthParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountCompleteAuthResponse>
34
34
  ```
35
35
 
36
36
  **Parameters**
37
37
 
38
38
  | Name | Type | Description |
39
39
  |------|------|-------------|
40
- | `params` | `\{ sessionUri: string; userId: string \}` | `userId` the connection was initiated for and the verifier's `sessionUri` |
40
+ | `params` | `ConnectedAccountCompleteAuthParams` | `userId` the connection was initiated for and the verifier's `sessionUri` |
41
41
  | `requestOptions?` | `ComposioRequestOptions` | |
42
42
 
43
43
  **Returns**
44
44
 
45
- `Promise<\{ connectedAccountId: string; toolkitSlug: string \}>` — The completed connection's ID and toolkit
45
+ `Promise<ConnectedAccountCompleteAuthResponse>` — The completed connection's ID and toolkit
46
46
 
47
47
  **Example**
48
48
 
@@ -159,7 +159,7 @@ This method fetches detailed information about a single connected account
159
159
  and transforms the response to the SDK's standardized format.
160
160
 
161
161
  ```typescript
162
- async get(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<{ alias?: string | null; authConfig: { authScheme?: 'OAUTH2' | 'OAUTH1' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'CALCOM_AUTH' | 'SERVICE_ACCOUNT' | 'SAML' | 'DCR_OAUTH' | 'CIMD_OAUTH' | 'S2S_OAUTH2'; id: string; isComposioManaged: boolean; isDisabled: boolean }; createdAt: string; data?: Record<string, unknown>; experimental?: { accountType?: 'PRIVATE' | 'SHARED'; aclConfigForShared?: { allowAllUsers: boolean; allowedUserIds: string[]; notAllowedUserIds: string[] } }; id: string; isDisabled: boolean; params?: Record<string, unknown>; state?: { authScheme: 'OAUTH1'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'OAUTH2'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'S2S_OAUTH2'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'API_KEY'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'BASIC'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'BEARER_TOKEN'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'GOOGLE_SERVICE_ACCOUNT'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'NO_AUTH'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'CALCOM_AUTH'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'BILLCOM_AUTH'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'BASIC_WITH_JWT'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'SERVICE_ACCOUNT'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'SAML'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'DCR_OAUTH'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> }; status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED'; statusReason: string | null; testRequestEndpoint?: string; toolkit: { slug: string }; updatedAt: string; wordId?: string | null }>
162
+ async get(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountRetrieveResponse>
163
163
  ```
164
164
 
165
165
  **Parameters**
@@ -171,7 +171,7 @@ async get(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<{ al
171
171
 
172
172
  **Returns**
173
173
 
174
- `Promise<\{ alias?: string \| null; authConfig: \{ authScheme?: 'OAUTH2' \| 'OAUTH1' \| 'API_KEY' \| 'BASIC' \| 'BILLCOM_AUTH' \| 'BEARER_TOKEN' \| 'GOOGLE_SERVICE_ACCOUNT' \| 'NO_AUTH' \| 'BASIC_WITH_JWT' \| 'CALCOM_AUTH' \| 'SERVICE_ACCOUNT' \| 'SAML' \| 'DCR_OAUTH' \| 'CIMD_OAUTH' \| 'S2S_OAUTH2'; id: string; isComposioManaged: boolean; isDisabled: boolean \}; createdAt: string; data?: Record<string, unknown>; experimental?: \{ accountType?: 'PRIVATE' \| 'SHARED'; aclConfigForShared?: \{ allowAllUsers: boolean; allowedUserIds: string[]; notAllowedUserIds: string[] \} \}; id: string; isDisabled: boolean; params?: Record<string, unknown>; state?: \{ authScheme: 'OAUTH1'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'OAUTH2'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'S2S_OAUTH2'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'API_KEY'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'BASIC'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'BEARER_TOKEN'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'GOOGLE_SERVICE_ACCOUNT'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'NO_AUTH'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'CALCOM_AUTH'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'BILLCOM_AUTH'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'BASIC_WITH_JWT'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'SERVICE_ACCOUNT'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'SAML'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'DCR_OAUTH'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \}; status: 'INITIALIZING' \| 'INITIATED' \| 'ACTIVE' \| 'FAILED' \| 'EXPIRED' \| 'INACTIVE' \| 'REVOKED'; statusReason: string \| null; testRequestEndpoint?: string; toolkit: \{ slug: string \}; updatedAt: string; wordId?: string \| null \}>` — The connected account details
174
+ `Promise<ConnectedAccountRetrieveResponse>` — The connected account details
175
175
 
176
176
  **Example**
177
177
 
@@ -207,7 +207,7 @@ bearer token, basic auth) are unaffected and continue to work on
207
207
  `initiate()`. See https://docs.composio.dev/docs/changelog/2026/04/24
208
208
 
209
209
  ```typescript
210
- async initiate(userId: string, authConfigId: string, options?: { alias?: string; allowMultiple?: boolean; callbackUrl?: string; config?: { authScheme: 'OAUTH1'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'OAUTH2'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'S2S_OAUTH2'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'API_KEY'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'BASIC'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'BEARER_TOKEN'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'GOOGLE_SERVICE_ACCOUNT'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'NO_AUTH'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'CALCOM_AUTH'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'BILLCOM_AUTH'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'BASIC_WITH_JWT'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'SERVICE_ACCOUNT'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'SAML'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } | { authScheme: 'DCR_OAUTH'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> | objectOutputType<... & ..., ZodUnknown, 'strip'> } }, requestOptions?: ComposioRequestOptions): Promise<ConnectionRequest>
210
+ async initiate(userId: string, authConfigId: string, options?: CreateConnectedAccountOptions, requestOptions?: ComposioRequestOptions): Promise<ConnectionRequest>
211
211
  ```
212
212
 
213
213
  **Parameters**
@@ -216,7 +216,7 @@ async initiate(userId: string, authConfigId: string, options?: { alias?: string;
216
216
  |------|------|-------------|
217
217
  | `userId` | `string` | User ID of the connected account |
218
218
  | `authConfigId` | `string` | Auth config ID of the connected account |
219
- | `options?` | `\{ alias?: string; allowMultiple?: boolean; callbackUrl?: string; config?: \{ authScheme: 'OAUTH1'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'OAUTH2'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'S2S_OAUTH2'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'API_KEY'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'BASIC'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'BEARER_TOKEN'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'GOOGLE_SERVICE_ACCOUNT'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'NO_AUTH'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'CALCOM_AUTH'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'BILLCOM_AUTH'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'BASIC_WITH_JWT'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'SERVICE_ACCOUNT'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'SAML'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \| \{ authScheme: 'DCR_OAUTH'; val: objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \| objectOutputType<... & ..., ZodUnknown, 'strip'> \} \}` | Options for creating a new connected account |
219
+ | `options?` | `CreateConnectedAccountOptions` | Options for creating a new connected account |
220
220
  | `requestOptions?` | `ComposioRequestOptions` | |
221
221
 
222
222
  **Returns**
@@ -268,7 +268,7 @@ const connectionRequest = await composio.connectedAccounts.initiate(
268
268
  ### link()
269
269
 
270
270
  ```typescript
271
- async link(userId: string, authConfigId: string, options?: { alias?: string; allowMultiple?: boolean; callbackUrl?: string; experimental?: { accountType?: 'PRIVATE' | 'SHARED'; aclConfigForShared?: { allowAllUsers?: boolean; allowedUserIds?: string[]; notAllowedUserIds?: string[] } } }, requestOptions?: ComposioRequestOptions): Promise<ConnectionRequest>
271
+ async link(userId: string, authConfigId: string, options?: CreateConnectedAccountLinkOptions, requestOptions?: ComposioRequestOptions): Promise<ConnectionRequest>
272
272
  ```
273
273
 
274
274
  **Parameters**
@@ -277,7 +277,7 @@ async link(userId: string, authConfigId: string, options?: { alias?: string; all
277
277
  |------|------|-------------|
278
278
  | `userId` | `string` | \{string\} - The external user ID to create the connected account for. |
279
279
  | `authConfigId` | `string` | \{string\} - The auth config ID to create the connected account for. |
280
- | `options?` | `\{ alias?: string; allowMultiple?: boolean; callbackUrl?: string; experimental?: \{ accountType?: 'PRIVATE' \| 'SHARED'; aclConfigForShared?: \{ allowAllUsers?: boolean; allowedUserIds?: string[]; notAllowedUserIds?: string[] \} \} \}` | \{CreateConnectedAccountLinkOptions\} - Options for creating a new connected account link. |
280
+ | `options?` | `CreateConnectedAccountLinkOptions` | \{CreateConnectedAccountLinkOptions\} - Options for creating a new connected account link. |
281
281
  | `requestOptions?` | `ComposioRequestOptions` | |
282
282
 
283
283
  **Returns**
@@ -317,19 +317,19 @@ Lists all connected accounts based on provided filter criteria.
317
317
  This method retrieves connected accounts from the Composio API with optional filtering.
318
318
 
319
319
  ```typescript
320
- async list(query?: { accountType?: 'PRIVATE' | 'SHARED' | 'ALL'; authConfigIds?: string[] | null; cursor?: string | null; limit?: number | null; orderBy?: 'created_at' | 'updated_at'; statuses?: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED'[] | null; toolkitSlugs?: string[] | null; userIds?: string[] | null }, requestOptions?: ComposioRequestOptions): Promise<{ items: { alias?: string | null; authConfig: { authScheme?: ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ...; id: string; isComposioManaged: boolean; isDisabled: boolean }; createdAt: string; data?: Record<string, unknown>; experimental?: { accountType?: ... | ...; aclConfigForShared?: { allowAllUsers: ...; allowedUserIds: ...; notAllowedUserIds: ... } }; id: string; isDisabled: boolean; params?: Record<string, unknown>; state?: { authScheme: ...; val: ... } | { authScheme: ...; val: ... } | { authScheme: ...; val: ... } | { authScheme: ...; val: ... } | { authScheme: ...; val: ... } | { authScheme: ...; val: ... } | { authScheme: ...; val: ... } | { authScheme: ...; val: ... } | { authScheme: ...; val: ... } | { authScheme: ...; val: ... } | { authScheme: ...; val: ... } | { authScheme: ...; val: ... } | { authScheme: ...; val: ... } | { authScheme: ...; val: ... }; status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED'; statusReason: string | null; testRequestEndpoint?: string; toolkit: { slug: string }; updatedAt: string; wordId?: string | null }[]; nextCursor?: string | null; totalPages: number }>
320
+ async list(query?: ConnectedAccountListParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountListResponse>
321
321
  ```
322
322
 
323
323
  **Parameters**
324
324
 
325
325
  | Name | Type | Description |
326
326
  |------|------|-------------|
327
- | `query?` | `\{ accountType?: 'PRIVATE' \| 'SHARED' \| 'ALL'; authConfigIds?: string[] \| null; cursor?: string \| null; limit?: number \| null; orderBy?: 'created_at' \| 'updated_at'; statuses?: 'INITIALIZING' \| 'INITIATED' \| 'ACTIVE' \| 'FAILED' \| 'EXPIRED' \| 'INACTIVE' \| 'REVOKED'[] \| null; toolkitSlugs?: string[] \| null; userIds?: string[] \| null \}` | Optional query parameters for filtering connected accounts |
327
+ | `query?` | `ConnectedAccountListParams` | Optional query parameters for filtering connected accounts |
328
328
  | `requestOptions?` | `ComposioRequestOptions` | |
329
329
 
330
330
  **Returns**
331
331
 
332
- `Promise<\{ items: \{ alias?: string \| null; authConfig: \{ authScheme?: ... \| ... \| ... \| ... \| ... \| ... \| ... \| ... \| ... \| ... \| ... \| ... \| ... \| ... \| ...; id: string; isComposioManaged: boolean; isDisabled: boolean \}; createdAt: string; data?: Record<string, unknown>; experimental?: \{ accountType?: ... \| ...; aclConfigForShared?: \{ allowAllUsers: ...; allowedUserIds: ...; notAllowedUserIds: ... \} \}; id: string; isDisabled: boolean; params?: Record<string, unknown>; state?: \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \} \| \{ authScheme: ...; val: ... \}; status: 'INITIALIZING' \| 'INITIATED' \| 'ACTIVE' \| 'FAILED' \| 'EXPIRED' \| 'INACTIVE' \| 'REVOKED'; statusReason: string \| null; testRequestEndpoint?: string; toolkit: \{ slug: string \}; updatedAt: string; wordId?: string \| null \}[]; nextCursor?: string \| null; totalPages: number \}>` — A paginated list of connected accounts
332
+ `Promise<ConnectedAccountListResponse>` — A paginated list of connected accounts
333
333
 
334
334
  **Example**
335
335
 
@@ -365,7 +365,7 @@ This method attempts to refresh OAuth tokens or other credentials associated wit
365
365
  the connected account. This is useful when a token has expired or is about to expire.
366
366
 
367
367
  ```typescript
368
- async refresh(nanoid: string, options?: { redirectUrl?: string; validateCredentials?: boolean }, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountRefreshResponse>
368
+ async refresh(nanoid: string, options?: ConnectedAccountRefreshOptions, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountRefreshResponse>
369
369
  ```
370
370
 
371
371
  **Parameters**
@@ -373,7 +373,7 @@ async refresh(nanoid: string, options?: { redirectUrl?: string; validateCredenti
373
373
  | Name | Type | Description |
374
374
  |------|------|-------------|
375
375
  | `nanoid` | `string` | The unique identifier of the connected account to refresh |
376
- | `options?` | `\{ redirectUrl?: string; validateCredentials?: boolean \}` | |
376
+ | `options?` | `ConnectedAccountRefreshOptions` | |
377
377
  | `requestOptions?` | `ComposioRequestOptions` | |
378
378
 
379
379
  **Returns**
@@ -399,7 +399,7 @@ revoked connection returns an empty `revokedTokens` list without an
399
399
  upstream call.
400
400
 
401
401
  ```typescript
402
- async revoke(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<{ connectedAccount: { id: string; status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED' }; revokedTokens: 'access_token' | 'refresh_token' | 'credential'[] }>
402
+ async revoke(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountRevokeResponse>
403
403
  ```
404
404
 
405
405
  **Parameters**
@@ -411,7 +411,7 @@ async revoke(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<{
411
411
 
412
412
  **Returns**
413
413
 
414
- `Promise<\{ connectedAccount: \{ id: string; status: 'INITIALIZING' \| 'INITIATED' \| 'ACTIVE' \| 'FAILED' \| 'EXPIRED' \| 'INACTIVE' \| 'REVOKED' \}; revokedTokens: 'access_token' \| 'refresh_token' \| 'credential'[] \}>` — Which tokens were revoked and the resulting status
414
+ `Promise<ConnectedAccountRevokeResponse>` — Which tokens were revoked and the resulting status
415
415
 
416
416
  **Example**
417
417
 
@@ -430,7 +430,7 @@ Enable or disable a connected account. Accepts `{ enabled: boolean }`.
430
430
  Use `updateAcl()` for ACL writes on SHARED connections.
431
431
 
432
432
  ```typescript
433
- async update(nanoid: string, params: ConnectedAccountUpdateStatusParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>
433
+ async update(nanoid: string, params: UpdateConnectedAccountParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>
434
434
  ```
435
435
 
436
436
  **Parameters**
@@ -438,7 +438,7 @@ async update(nanoid: string, params: ConnectedAccountUpdateStatusParams, request
438
438
  | Name | Type | Description |
439
439
  |------|------|-------------|
440
440
  | `nanoid` | `string` | The unique identifier of the connected account |
441
- | `params` | `ConnectedAccountUpdateStatusParams` | The update parameters |
441
+ | `params` | `UpdateConnectedAccountParams` | The update parameters |
442
442
  | `requestOptions?` | `ComposioRequestOptions` | |
443
443
 
444
444
  **Returns**
@@ -468,7 +468,7 @@ array to clear an allow/deny list. At least one field must be
468
468
  provided.
469
469
 
470
470
  ```typescript
471
- async updateAcl(nanoid: string, params: { allowAllUsers?: boolean; allowedUserIds?: string[]; notAllowedUserIds?: string[] }): Promise<ConnectedAccountPatchResponse>
471
+ async updateAcl(nanoid: string, params: UpdateConnectedAccountAclParams): Promise<ConnectedAccountPatchResponse>
472
472
  ```
473
473
 
474
474
  **Parameters**
@@ -476,7 +476,7 @@ async updateAcl(nanoid: string, params: { allowAllUsers?: boolean; allowedUserId
476
476
  | Name | Type | Description |
477
477
  |------|------|-------------|
478
478
  | `nanoid` | `string` | The unique identifier of the connected account |
479
- | `params` | `\{ allowAllUsers?: boolean; allowedUserIds?: string[]; notAllowedUserIds?: string[] \}` | The ACL fields to patch |
479
+ | `params` | `UpdateConnectedAccountAclParams` | The ACL fields to patch |
480
480
 
481
481
  **Returns**
482
482
 
@@ -544,7 +544,7 @@ This method continuously polls the Composio API to check the status of a connect
544
544
  until it either becomes active, enters a terminal error state, or times out.
545
545
 
546
546
  ```typescript
547
- async waitForConnection(connectedAccountId: string, timeout?: number): Promise<{ alias?: string | null; authConfig: { authScheme?: 'OAUTH2' | 'OAUTH1' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'CALCOM_AUTH' | 'SERVICE_ACCOUNT' | 'SAML' | 'DCR_OAUTH' | 'CIMD_OAUTH' | 'S2S_OAUTH2'; id: string; isComposioManaged: boolean; isDisabled: boolean }; createdAt: string; data?: Record<string, unknown>; experimental?: { accountType?: 'PRIVATE' | 'SHARED'; aclConfigForShared?: { allowAllUsers: boolean; allowedUserIds: string[]; notAllowedUserIds: string[] } }; id: string; isDisabled: boolean; params?: Record<string, unknown>; state?: { authScheme: 'OAUTH1'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'OAUTH2'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'S2S_OAUTH2'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'API_KEY'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'BASIC'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'BEARER_TOKEN'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'GOOGLE_SERVICE_ACCOUNT'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'NO_AUTH'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'CALCOM_AUTH'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'BILLCOM_AUTH'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'BASIC_WITH_JWT'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'SERVICE_ACCOUNT'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'SAML'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> } | { authScheme: 'DCR_OAUTH'; val: objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> | objectOutputType<..., ..., ...> }; status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED'; statusReason: string | null; testRequestEndpoint?: string; toolkit: { slug: string }; updatedAt: string; wordId?: string | null }>
547
+ async waitForConnection(connectedAccountId: string, timeout?: number): Promise<ConnectedAccountRetrieveResponse>
548
548
  ```
549
549
 
550
550
  **Parameters**
@@ -556,7 +556,7 @@ async waitForConnection(connectedAccountId: string, timeout?: number): Promise<{
556
556
 
557
557
  **Returns**
558
558
 
559
- `Promise<\{ alias?: string \| null; authConfig: \{ authScheme?: 'OAUTH2' \| 'OAUTH1' \| 'API_KEY' \| 'BASIC' \| 'BILLCOM_AUTH' \| 'BEARER_TOKEN' \| 'GOOGLE_SERVICE_ACCOUNT' \| 'NO_AUTH' \| 'BASIC_WITH_JWT' \| 'CALCOM_AUTH' \| 'SERVICE_ACCOUNT' \| 'SAML' \| 'DCR_OAUTH' \| 'CIMD_OAUTH' \| 'S2S_OAUTH2'; id: string; isComposioManaged: boolean; isDisabled: boolean \}; createdAt: string; data?: Record<string, unknown>; experimental?: \{ accountType?: 'PRIVATE' \| 'SHARED'; aclConfigForShared?: \{ allowAllUsers: boolean; allowedUserIds: string[]; notAllowedUserIds: string[] \} \}; id: string; isDisabled: boolean; params?: Record<string, unknown>; state?: \{ authScheme: 'OAUTH1'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'OAUTH2'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'S2S_OAUTH2'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'API_KEY'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'BASIC'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'BEARER_TOKEN'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'GOOGLE_SERVICE_ACCOUNT'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'NO_AUTH'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'CALCOM_AUTH'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'BILLCOM_AUTH'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'BASIC_WITH_JWT'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'SERVICE_ACCOUNT'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'SAML'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \} \| \{ authScheme: 'DCR_OAUTH'; val: objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \| objectOutputType<..., ..., ...> \}; status: 'INITIALIZING' \| 'INITIATED' \| 'ACTIVE' \| 'FAILED' \| 'EXPIRED' \| 'INACTIVE' \| 'REVOKED'; statusReason: string \| null; testRequestEndpoint?: string; toolkit: \{ slug: string \}; updatedAt: string; wordId?: string \| null \}>` — The finalized connected account data
559
+ `Promise<ConnectedAccountRetrieveResponse>` — The finalized connected account data
560
560
 
561
561
  **Example**
562
562
 
@@ -24,7 +24,7 @@ accounts are revoked in background jobs (`revokeJobIds`).
24
24
  Composio-managed toolkits cannot be deleted; the API answers 403.
25
25
 
26
26
  ```typescript
27
- async delete(slug: string, requestOptions?: ComposioRequestOptions): Promise<...>
27
+ async delete(slug: string, requestOptions?: ComposioRequestOptions): Promise<CustomToolkitDeleteResponse>
28
28
  ```
29
29
 
30
30
  **Parameters**
@@ -36,7 +36,7 @@ async delete(slug: string, requestOptions?: ComposioRequestOptions): Promise<...
36
36
 
37
37
  **Returns**
38
38
 
39
- `Promise<...>` — What was deleted
39
+ `Promise<CustomToolkitDeleteResponse>` — What was deleted
40
40
 
41
41
  **Example**
42
42
 
@@ -54,7 +54,7 @@ server. Call it when automatic sync fails or the remote tools change.
54
54
  **Experimental — custom toolkits are in pilot; shape may change.**
55
55
 
56
56
  ```typescript
57
- async sync(slug: string, params?: { connectedAccountId?: string }, requestOptions?: ComposioRequestOptions): Promise<{ slug: string; syncedCount: number; version: string }>
57
+ async sync(slug: string, params?: CustomToolkitSyncParams, requestOptions?: ComposioRequestOptions): Promise<CustomToolkitSyncResponse>
58
58
  ```
59
59
 
60
60
  **Parameters**
@@ -62,12 +62,12 @@ async sync(slug: string, params?: { connectedAccountId?: string }, requestOption
62
62
  | Name | Type | Description |
63
63
  |------|------|-------------|
64
64
  | `slug` | `string` | The custom toolkit slug (`CUSTOM_...`) |
65
- | `params?` | `\{ connectedAccountId?: string \}` | Optional connected account to fetch the definitions with |
65
+ | `params?` | `CustomToolkitSyncParams` | Optional connected account to fetch the definitions with |
66
66
  | `requestOptions?` | `ComposioRequestOptions` | |
67
67
 
68
68
  **Returns**
69
69
 
70
- `Promise<\{ slug: string; syncedCount: number; version: string \}>` — The toolkit version and number of tools synced
70
+ `Promise<CustomToolkitSyncResponse>` — The toolkit version and number of tools synced
71
71
 
72
72
  **Example**
73
73
 
@@ -91,19 +91,19 @@ re-sending them unchanged is a no-op, and changing them fails with a 409.
91
91
  Delete and re-register the toolkit instead, which revokes its connections.
92
92
 
93
93
  ```typescript
94
- async upsert(params: { slug: string; toolkitConfig: { appUrl: string; authSchemes: { mode: 'NO_AUTH' } | { apiKeyField?: { description?: ...; displayName?: ... }; headers: Record<..., ...>; mode: 'API_KEY' } | { discoveryUrl: string; mode: 'DCR_OAUTH' }[]; logoFile?: { content: string; mimeType: 'image/png' | 'image/jpeg' }; name: string } }, requestOptions?: ComposioRequestOptions): Promise<{ slug: string }>
94
+ async upsert(params: CustomToolkitUpsertParams, requestOptions?: ComposioRequestOptions): Promise<CustomToolkitUpsertResponse>
95
95
  ```
96
96
 
97
97
  **Parameters**
98
98
 
99
99
  | Name | Type | Description |
100
100
  |------|------|-------------|
101
- | `params` | `\{ slug: string; toolkitConfig: \{ appUrl: string; authSchemes: \{ mode: 'NO_AUTH' \} \| \{ apiKeyField?: \{ description?: ...; displayName?: ... \}; headers: Record<..., ...>; mode: 'API_KEY' \} \| \{ discoveryUrl: string; mode: 'DCR_OAUTH' \}[]; logoFile?: \{ content: string; mimeType: 'image/png' \| 'image/jpeg' \}; name: string \} \}` | The slug and toolkit configuration |
101
+ | `params` | `CustomToolkitUpsertParams` | The slug and toolkit configuration |
102
102
  | `requestOptions?` | `ComposioRequestOptions` | |
103
103
 
104
104
  **Returns**
105
105
 
106
- `Promise<\{ slug: string \}>` — The toolkit's slug
106
+ `Promise<CustomToolkitUpsertResponse>` — The toolkit's slug
107
107
 
108
108
  **Example**
109
109
 
@@ -46,7 +46,7 @@ Resolution rule (deny wins):
46
46
  4. otherwise → DENY
47
47
 
48
48
  ```typescript
49
- async updateAcl(nanoid: string, params: { allowAllUsers?: boolean; allowedUserIds?: string[]; notAllowedUserIds?: string[] }): Promise<ConnectedAccountPatchResponse>
49
+ async updateAcl(nanoid: string, params: UpdateConnectedAccountAclParams): Promise<ConnectedAccountPatchResponse>
50
50
  ```
51
51
 
52
52
  **Parameters**
@@ -54,7 +54,7 @@ async updateAcl(nanoid: string, params: { allowAllUsers?: boolean; allowedUserId
54
54
  | Name | Type |
55
55
  |------|------|
56
56
  | `nanoid` | `string` |
57
- | `params` | `\{ allowAllUsers?: boolean; allowedUserIds?: string[]; notAllowedUserIds?: string[] \}` |
57
+ | `params` | `UpdateConnectedAccountAclParams` |
58
58
 
59
59
  **Returns**
60
60
 
@@ -17,6 +17,7 @@ description: "Complete API reference for the Composio TypeScript SDK (@composio/
17
17
  | [`CustomToolkits`](/reference/sdk-reference/typescript/custom-toolkits) | `composio.experimental.customToolkits` — toolkits your project registers |
18
18
  | [`Keyring`](/reference/sdk-reference/typescript/keyring) | `composio.keyring` — the organization's customer-managed keyring. |
19
19
  | [`Logs`](/reference/sdk-reference/typescript/logs) | `composio.logs` — tool-execution logs. |
20
+ | [`SessionConfigs`](/reference/sdk-reference/typescript/session-configs) | `composio.sessionConfigs` — saved, reusable Session configs. |
20
21
  | [`Experimental`](/reference/sdk-reference/typescript/experimental) | Experimental API |
21
22
  | [`MCP`](/reference/sdk-reference/typescript/mcp) | MCP (Model Control Protocol) class |
22
23
  | [`RemoteFile`](/reference/sdk-reference/typescript/remote-file) | Represents a file stored in a tool router session's file mount. |
@@ -26,7 +27,6 @@ description: "Complete API reference for the Composio TypeScript SDK (@composio/
26
27
  | [`Session files`](/reference/sdk-reference/typescript/session-files) | File mount for a Composio session, reached via `session.experimental.files` |
27
28
  | [`Tools`](/reference/sdk-reference/typescript/tools) | This class is used to manage tools in the Composio SDK. |
28
29
  | [`Triggers`](/reference/sdk-reference/typescript/triggers) | Trigger (Instance) class |
29
- | [`SessionConfigs`](/reference/sdk-reference/typescript/session-configs) | `composio.sessionConfigs` — saved, reusable Session configs. |
30
30
  | [`Usage`](/reference/sdk-reference/typescript/usage) | `composio.experimental.usage` — metering for the project the API key |
31
31
  | [`WebhookEndpoints`](/reference/sdk-reference/typescript/webhook-endpoints) | `composio.webhooks.endpoints` — inbound webhook endpoints. Each endpoint is |
32
32
  | [`Webhooks`](/reference/sdk-reference/typescript/webhooks) | `composio.webhooks` namespace. |
@@ -28,7 +28,7 @@ The organization behind the API key must have an ACTIVE customer keyring
28
28
  instance; otherwise the API answers 404.
29
29
 
30
30
  ```typescript
31
- async listTransferKeys(requestOptions?: ComposioRequestOptions): Promise<{ activeKid: string; keys: { alg: string; e: string; kid: string; kty: string; n: string; use: string }[] }>
31
+ async listTransferKeys(requestOptions?: ComposioRequestOptions): Promise<KeyringTransferKeysResponse>
32
32
  ```
33
33
 
34
34
  **Parameters**
@@ -39,7 +39,7 @@ async listTransferKeys(requestOptions?: ComposioRequestOptions): Promise<{ activ
39
39
 
40
40
  **Returns**
41
41
 
42
- `Promise<\{ activeKid: string; keys: \{ alg: string; e: string; kid: string; kty: string; n: string; use: string \}[] \}>` — The active key ID and every accepted public JWK, newest first
42
+ `Promise<KeyringTransferKeysResponse>` — The active key ID and every accepted public JWK, newest first
43
43
 
44
44
  **Example**
45
45
 
@@ -20,7 +20,7 @@ Retrieve one tool-execution log with its full detail (timings, context,
20
20
  source and raw `data`).
21
21
 
22
22
  ```typescript
23
- async get(id: string, requestOptions?: ComposioRequestOptions): Promise<{ context: { requestId?: string; sessionId?: string; traceId?: string }; data: Record<string, unknown>; id: string; level: 'error' | 'warn' | 'info'; message?: string; metadata: { instant_charge?: string } & object; metrics: Record<string, unknown>; parent: { logId: string; toolSlug: string } | null; source: { framework?: string; host?: string; language?: string }; status: 'success' | 'failed'; timestamp: string; timings?: { endTime: number; startTime: number }; type: string }>
23
+ async get(id: string, requestOptions?: ComposioRequestOptions): Promise<ToolExecutionLogDetail>
24
24
  ```
25
25
 
26
26
  **Parameters**
@@ -32,7 +32,7 @@ async get(id: string, requestOptions?: ComposioRequestOptions): Promise<{ contex
32
32
 
33
33
  **Returns**
34
34
 
35
- `Promise<\{ context: \{ requestId?: string; sessionId?: string; traceId?: string \}; data: Record<string, unknown>; id: string; level: 'error' \| 'warn' \| 'info'; message?: string; metadata: \{ instant_charge?: string \} & object; metrics: Record<string, unknown>; parent: \{ logId: string; toolSlug: string \} \| null; source: \{ framework?: string; host?: string; language?: string \}; status: 'success' \| 'failed'; timestamp: string; timings?: \{ endTime: number; startTime: number \}; type: string \}>` — The log detail, with an optional exact USD charge in `metadata.instant_charge`
35
+ `Promise<ToolExecutionLogDetail>` — The log detail, with an optional exact USD charge in `metadata.instant_charge`
36
36
 
37
37
  **Example**
38
38
 
@@ -49,19 +49,19 @@ Search tool-execution logs with filters, a time range and cursor
49
49
  pagination.
50
50
 
51
51
  ```typescript
52
- async search(params?: { cursor?: string | null; filters?: { field: 'status' | 'tool_slug' | 'toolkit_slug' | 'connected_account_id' | 'auth_config_id' | 'user_id' | 'session_id' | 'sandbox_id' | 'request_id' | 'log_id'; operator: '==' | '!=' | 'contains' | 'not_contains'; value: string }[]; limit?: number; timeRange?: { from: number; to: number } }, requestOptions?: ComposioRequestOptions): Promise<{ logs: { id: string; level: 'error' | 'warn' | 'info'; message?: string; metadata: { instant_charge?: ... } & object; metrics: Record<string, unknown>; parent: { logId: ...; toolSlug: ... } | null; status: 'success' | 'failed'; timestamp: string; type: string }[]; nextCursor: string | null }>
52
+ async search(params?: LogSearchParams, requestOptions?: ComposioRequestOptions): Promise<LogSearchResponse>
53
53
  ```
54
54
 
55
55
  **Parameters**
56
56
 
57
57
  | Name | Type | Description |
58
58
  |------|------|-------------|
59
- | `params?` | `\{ cursor?: string \| null; filters?: \{ field: 'status' \| 'tool_slug' \| 'toolkit_slug' \| 'connected_account_id' \| 'auth_config_id' \| 'user_id' \| 'session_id' \| 'sandbox_id' \| 'request_id' \| 'log_id'; operator: '==' \| '!=' \| 'contains' \| 'not_contains'; value: string \}[]; limit?: number; timeRange?: \{ from: number; to: number \} \}` | Filters, `timeRange`, `limit` and `cursor` |
59
+ | `params?` | `LogSearchParams` | Filters, `timeRange`, `limit` and `cursor` |
60
60
  | `requestOptions?` | `ComposioRequestOptions` | |
61
61
 
62
62
  **Returns**
63
63
 
64
- `Promise<\{ logs: \{ id: string; level: 'error' \| 'warn' \| 'info'; message?: string; metadata: \{ instant_charge?: ... \} & object; metrics: Record<string, unknown>; parent: \{ logId: ...; toolSlug: ... \} \| null; status: 'success' \| 'failed'; timestamp: string; type: string \}[]; nextCursor: string \| null \}>` — Matching logs and the next cursor. Charged calls include `metadata.instant_charge` as an exact USD string.
64
+ `Promise<LogSearchResponse>` — Matching logs and the next cursor. Charged calls include `metadata.instant_charge` as an exact USD string.
65
65
 
66
66
  **Example**
67
67