@composio/core 0.23.0 → 0.25.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.
- package/dist/{CustomTool-CnJxXr07.mjs → CustomTool-BYHB7sPs.mjs} +1 -1
- package/dist/{CustomTool-CnHdegDK.d.mts → CustomTool-DZY1yLHN.d.mts} +1 -1
- package/dist/{cancellation-BQibgpRG.mjs → cancellation-D-tMPk48.mjs} +1 -1
- package/dist/{composio-Dq708dZS.d.mts → composio-B8AENilE.d.mts} +74 -62
- package/dist/{customTool.types-B8lVpHOP.d.mts → customTool.types-Bi6-keZC.d.mts} +612 -141
- package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +10 -10
- package/dist/docs/reference/sdk-reference/typescript/composio.mdx +2 -2
- package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +22 -22
- package/dist/docs/reference/sdk-reference/typescript/custom-toolkits.mdx +8 -8
- package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +2 -2
- package/dist/docs/reference/sdk-reference/typescript/index.mdx +1 -1
- package/dist/docs/reference/sdk-reference/typescript/keyring.mdx +2 -2
- package/dist/docs/reference/sdk-reference/typescript/logs.mdx +5 -5
- package/dist/docs/reference/sdk-reference/typescript/mcp.mdx +15 -15
- package/dist/docs/reference/sdk-reference/typescript/meta.json +1 -1
- package/dist/docs/reference/sdk-reference/typescript/session-configs.mdx +5 -5
- package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +10 -10
- package/dist/docs/reference/sdk-reference/typescript/session.mdx +56 -21
- package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +6 -6
- package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +22 -22
- package/dist/docs/reference/sdk-reference/typescript/tools.mdx +18 -18
- package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +25 -25
- package/dist/docs/reference/sdk-reference/typescript/usage.mdx +6 -6
- package/dist/docs/reference/sdk-reference/typescript/webhook-endpoints.mdx +14 -14
- package/dist/docs/reference/sdk-reference/typescript/webhook-subscriptions.mdx +13 -13
- package/dist/{errors-BN15NcCW.mjs → errors-Cly0vXFh.mjs} +5 -5
- package/dist/experimental/index.d.mts +2 -2
- package/dist/experimental/index.mjs +1 -1
- package/dist/index.d.mts +31 -7
- package/dist/index.mjs +382 -147
- package/dist/{types-eTw8Yw7Y.d.mts → types-BGDMkEUl.d.mts} +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.mjs +2 -2
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/package.json +8 -8
- package/src/composio.ts +19 -16
- package/src/errors/ToolRouterErrors.ts +5 -5
- package/src/lib/toolRouterParams.ts +44 -16
- package/src/models/MCP.ts +20 -1
- package/src/models/ToolRouter.ts +9 -0
- package/src/models/ToolRouterSession.ts +68 -0
- package/src/models/Triggers.ts +8 -6
- package/src/services/pusher/Pusher.ts +159 -88
- package/src/types/pusher.types.ts +2 -0
- package/src/types/toolRouter.types.ts +190 -19
- package/src/utils/session.ts +25 -47
- package/src/utils/transformers/toolRouterResponseTransform.ts +8 -2
- 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?:
|
|
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?` |
|
|
30
|
+
| `options?` | `CreateAuthConfigParams` | Options for creating a new auth config |
|
|
31
31
|
| `requestOptions?` | `ComposioRequestOptions` | |
|
|
32
32
|
|
|
33
33
|
**Returns**
|
|
34
34
|
|
|
35
|
-
`Promise
|
|
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<
|
|
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
|
|
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?:
|
|
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?` |
|
|
196
|
+
| `query?` | `AuthConfigListParams` | Optional query parameters for filtering auth configs |
|
|
197
197
|
| `requestOptions?` | `ComposioRequestOptions` | |
|
|
198
198
|
|
|
199
199
|
**Returns**
|
|
200
200
|
|
|
201
|
-
`Promise
|
|
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:
|
|
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` |
|
|
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():
|
|
170
|
+
getClient(): ComposioClient
|
|
171
171
|
```
|
|
172
172
|
|
|
173
173
|
**Returns**
|
|
174
174
|
|
|
175
|
-
`
|
|
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:
|
|
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` |
|
|
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
|
|
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<
|
|
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
|
|
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?:
|
|
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?` |
|
|
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?:
|
|
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?` |
|
|
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?:
|
|
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?` |
|
|
327
|
+
| `query?` | `ConnectedAccountListParams` | Optional query parameters for filtering connected accounts |
|
|
328
328
|
| `requestOptions?` | `ComposioRequestOptions` | |
|
|
329
329
|
|
|
330
330
|
**Returns**
|
|
331
331
|
|
|
332
|
-
`Promise
|
|
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?:
|
|
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?` |
|
|
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<
|
|
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
|
|
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:
|
|
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` | `
|
|
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:
|
|
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` |
|
|
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<
|
|
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
|
|
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
|
|
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?:
|
|
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?` |
|
|
65
|
+
| `params?` | `CustomToolkitSyncParams` | Optional connected account to fetch the definitions with |
|
|
66
66
|
| `requestOptions?` | `ComposioRequestOptions` | |
|
|
67
67
|
|
|
68
68
|
**Returns**
|
|
69
69
|
|
|
70
|
-
`Promise
|
|
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:
|
|
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` |
|
|
101
|
+
| `params` | `CustomToolkitUpsertParams` | The slug and toolkit configuration |
|
|
102
102
|
| `requestOptions?` | `ComposioRequestOptions` | |
|
|
103
103
|
|
|
104
104
|
**Returns**
|
|
105
105
|
|
|
106
|
-
`Promise
|
|
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:
|
|
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` |
|
|
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<
|
|
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
|
|
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<
|
|
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
|
|
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?:
|
|
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?` |
|
|
59
|
+
| `params?` | `LogSearchParams` | Filters, `timeRange`, `limit` and `cursor` |
|
|
60
60
|
| `requestOptions?` | `ComposioRequestOptions` | |
|
|
61
61
|
|
|
62
62
|
**Returns**
|
|
63
63
|
|
|
64
|
-
`Promise
|
|
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
|
|