@composio/client 0.1.0-alpha.47 → 0.1.0-alpha.49

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 (79) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/auth-configs.d.mts +58 -55
  10. package/resources/auth-configs.d.mts.map +1 -1
  11. package/resources/auth-configs.d.ts +58 -55
  12. package/resources/auth-configs.d.ts.map +1 -1
  13. package/resources/connected-accounts.d.mts +8 -4
  14. package/resources/connected-accounts.d.mts.map +1 -1
  15. package/resources/connected-accounts.d.ts +8 -4
  16. package/resources/connected-accounts.d.ts.map +1 -1
  17. package/resources/index.d.mts +1 -1
  18. package/resources/index.d.mts.map +1 -1
  19. package/resources/index.d.ts +1 -1
  20. package/resources/index.d.ts.map +1 -1
  21. package/resources/index.js.map +1 -1
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/mcp/mcp.d.mts +45 -40
  24. package/resources/mcp/mcp.d.mts.map +1 -1
  25. package/resources/mcp/mcp.d.ts +45 -40
  26. package/resources/mcp/mcp.d.ts.map +1 -1
  27. package/resources/mcp/mcp.js.map +1 -1
  28. package/resources/mcp/mcp.mjs.map +1 -1
  29. package/resources/tool-router/index.d.mts +1 -1
  30. package/resources/tool-router/index.d.mts.map +1 -1
  31. package/resources/tool-router/index.d.ts +1 -1
  32. package/resources/tool-router/index.d.ts.map +1 -1
  33. package/resources/tool-router/index.js.map +1 -1
  34. package/resources/tool-router/index.mjs.map +1 -1
  35. package/resources/tool-router/session.d.mts +158 -225
  36. package/resources/tool-router/session.d.mts.map +1 -1
  37. package/resources/tool-router/session.d.ts +158 -225
  38. package/resources/tool-router/session.d.ts.map +1 -1
  39. package/resources/tool-router/session.js +17 -8
  40. package/resources/tool-router/session.js.map +1 -1
  41. package/resources/tool-router/session.mjs +17 -8
  42. package/resources/tool-router/session.mjs.map +1 -1
  43. package/resources/tool-router/tool-router.d.mts +6 -6
  44. package/resources/tool-router/tool-router.d.mts.map +1 -1
  45. package/resources/tool-router/tool-router.d.ts +6 -6
  46. package/resources/tool-router/tool-router.d.ts.map +1 -1
  47. package/resources/tool-router/tool-router.js +4 -4
  48. package/resources/tool-router/tool-router.js.map +1 -1
  49. package/resources/tool-router/tool-router.mjs +4 -4
  50. package/resources/tool-router/tool-router.mjs.map +1 -1
  51. package/resources/toolkits.d.mts +4 -10
  52. package/resources/toolkits.d.mts.map +1 -1
  53. package/resources/toolkits.d.ts +4 -10
  54. package/resources/toolkits.d.ts.map +1 -1
  55. package/resources/toolkits.js +2 -2
  56. package/resources/toolkits.js.map +1 -1
  57. package/resources/toolkits.mjs +2 -2
  58. package/resources/toolkits.mjs.map +1 -1
  59. package/resources/trigger-instances/trigger-instances.d.mts +7 -6
  60. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  61. package/resources/trigger-instances/trigger-instances.d.ts +7 -6
  62. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  63. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  64. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  65. package/src/client.ts +0 -2
  66. package/src/resources/auth-configs.ts +64 -61
  67. package/src/resources/connected-accounts.ts +8 -5
  68. package/src/resources/index.ts +0 -1
  69. package/src/resources/mcp/mcp.ts +45 -40
  70. package/src/resources/tool-router/index.ts +2 -0
  71. package/src/resources/tool-router/session.ts +168 -242
  72. package/src/resources/tool-router/tool-router.ts +8 -4
  73. package/src/resources/toolkits.ts +4 -15
  74. package/src/resources/trigger-instances/trigger-instances.ts +7 -6
  75. package/src/version.ts +1 -1
  76. package/version.d.mts +1 -1
  77. package/version.d.ts +1 -1
  78. package/version.js +1 -1
  79. package/version.mjs +1 -1
@@ -146,11 +146,6 @@ export interface AuthConfigRetrieveResponse {
146
146
  */
147
147
  id: string;
148
148
 
149
- /**
150
- * Deprecated parameters maintained for backward compatibility
151
- */
152
- deprecated_params: AuthConfigRetrieveResponse.DeprecatedParams;
153
-
154
149
  /**
155
150
  * The display name of the authentication configuration
156
151
  */
@@ -217,6 +212,11 @@ export interface AuthConfigRetrieveResponse {
217
212
  */
218
213
  credentials?: { [key: string]: unknown };
219
214
 
215
+ /**
216
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
217
+ */
218
+ deprecated_params?: AuthConfigRetrieveResponse.DeprecatedParams;
219
+
220
220
  /**
221
221
  * Fields expected during connection initialization
222
222
  */
@@ -248,31 +248,6 @@ export interface AuthConfigRetrieveResponse {
248
248
  }
249
249
 
250
250
  export namespace AuthConfigRetrieveResponse {
251
- /**
252
- * Deprecated parameters maintained for backward compatibility
253
- */
254
- export interface DeprecatedParams {
255
- /**
256
- * Deprecated: Default connector ID
257
- */
258
- default_connector_id: string | null;
259
-
260
- /**
261
- * Deprecated: Fields expected during connection initialization
262
- */
263
- expected_input_fields?: Array<{ [key: string]: unknown }>;
264
-
265
- /**
266
- * Deprecated: Member UUID
267
- */
268
- member_uuid?: string;
269
-
270
- /**
271
- * Deprecated: Toolkit ID
272
- */
273
- toolkit_id?: string;
274
- }
275
-
276
251
  export interface ToolAccessConfig {
277
252
  /**
278
253
  * The actions that the user can perform on the auth config. If passed, this will
@@ -302,6 +277,31 @@ export namespace AuthConfigRetrieveResponse {
302
277
  slug: string;
303
278
  }
304
279
 
280
+ /**
281
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
282
+ */
283
+ export interface DeprecatedParams {
284
+ /**
285
+ * Deprecated: Default connector ID
286
+ */
287
+ default_connector_id: string | null;
288
+
289
+ /**
290
+ * Deprecated: Fields expected during connection initialization
291
+ */
292
+ expected_input_fields?: Array<{ [key: string]: unknown }>;
293
+
294
+ /**
295
+ * Deprecated: Member UUID
296
+ */
297
+ member_uuid?: string;
298
+
299
+ /**
300
+ * Deprecated: Toolkit ID
301
+ */
302
+ toolkit_id?: string;
303
+ }
304
+
305
305
  export interface ProxyConfig {
306
306
  /**
307
307
  * The url of the auth proxy
@@ -336,11 +336,6 @@ export namespace AuthConfigListResponse {
336
336
  */
337
337
  id: string;
338
338
 
339
- /**
340
- * Deprecated parameters maintained for backward compatibility
341
- */
342
- deprecated_params: Item.DeprecatedParams;
343
-
344
339
  /**
345
340
  * The display name of the authentication configuration
346
341
  */
@@ -407,6 +402,11 @@ export namespace AuthConfigListResponse {
407
402
  */
408
403
  credentials?: { [key: string]: unknown };
409
404
 
405
+ /**
406
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
407
+ */
408
+ deprecated_params?: Item.DeprecatedParams;
409
+
410
410
  /**
411
411
  * Fields expected during connection initialization
412
412
  */
@@ -438,31 +438,6 @@ export namespace AuthConfigListResponse {
438
438
  }
439
439
 
440
440
  export namespace Item {
441
- /**
442
- * Deprecated parameters maintained for backward compatibility
443
- */
444
- export interface DeprecatedParams {
445
- /**
446
- * Deprecated: Default connector ID
447
- */
448
- default_connector_id: string | null;
449
-
450
- /**
451
- * Deprecated: Fields expected during connection initialization
452
- */
453
- expected_input_fields?: Array<{ [key: string]: unknown }>;
454
-
455
- /**
456
- * Deprecated: Member UUID
457
- */
458
- member_uuid?: string;
459
-
460
- /**
461
- * Deprecated: Toolkit ID
462
- */
463
- toolkit_id?: string;
464
- }
465
-
466
441
  export interface ToolAccessConfig {
467
442
  /**
468
443
  * The actions that the user can perform on the auth config. If passed, this will
@@ -492,6 +467,31 @@ export namespace AuthConfigListResponse {
492
467
  slug: string;
493
468
  }
494
469
 
470
+ /**
471
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
472
+ */
473
+ export interface DeprecatedParams {
474
+ /**
475
+ * Deprecated: Default connector ID
476
+ */
477
+ default_connector_id: string | null;
478
+
479
+ /**
480
+ * Deprecated: Fields expected during connection initialization
481
+ */
482
+ expected_input_fields?: Array<{ [key: string]: unknown }>;
483
+
484
+ /**
485
+ * Deprecated: Member UUID
486
+ */
487
+ member_uuid?: string;
488
+
489
+ /**
490
+ * Deprecated: Toolkit ID
491
+ */
492
+ toolkit_id?: string;
493
+ }
494
+
495
495
  export interface ProxyConfig {
496
496
  /**
497
497
  * The url of the auth proxy
@@ -744,10 +744,13 @@ export interface AuthConfigListParams {
744
744
  cursor?: string;
745
745
 
746
746
  /**
747
- * The app id to filter by
747
+ * @deprecated The app id to filter by
748
748
  */
749
749
  deprecated_app_id?: string;
750
750
 
751
+ /**
752
+ * @deprecated DEPRECATED: This parameter will be removed in a future version.
753
+ */
751
754
  deprecated_status?: string;
752
755
 
753
756
  /**
@@ -144,6 +144,10 @@ export interface ConnectedAccountCreateResponse {
144
144
  | ConnectedAccountCreateResponse.UnionMember11
145
145
  | ConnectedAccountCreateResponse.UnionMember12;
146
146
 
147
+ /**
148
+ * @deprecated DEPRECATED: This field will be removed in a future version. Please
149
+ * use id and auth_config.id instead.
150
+ */
147
151
  deprecated: ConnectedAccountCreateResponse.Deprecated;
148
152
 
149
153
  /**
@@ -4155,6 +4159,10 @@ export namespace ConnectedAccountCreateResponse {
4155
4159
  }
4156
4160
  }
4157
4161
 
4162
+ /**
4163
+ * @deprecated DEPRECATED: This field will be removed in a future version. Please
4164
+ * use id and auth_config.id instead.
4165
+ */
4158
4166
  export interface Deprecated {
4159
4167
  /**
4160
4168
  * The uuid of the auth config
@@ -16593,11 +16601,6 @@ export interface ConnectedAccountListParams {
16593
16601
  */
16594
16602
  cursor?: string | null;
16595
16603
 
16596
- /**
16597
- * The labels of the connected accounts
16598
- */
16599
- labels?: Array<string> | null;
16600
-
16601
16604
  /**
16602
16605
  * The limit of the connected accounts to return
16603
16606
  */
@@ -70,7 +70,6 @@ export {
70
70
  type ToolkitRetrieveCategoriesResponse,
71
71
  type ToolkitRetrieveParams,
72
72
  type ToolkitListParams,
73
- type ToolkitRetrieveCategoriesParams,
74
73
  } from './toolkits';
75
74
  export {
76
75
  Tools,
@@ -142,8 +142,8 @@ export interface McpCreateResponse {
142
142
  auth_config_ids: Array<string>;
143
143
 
144
144
  /**
145
- * Set of command line instructions for connecting various clients to this MCP
146
- * server
145
+ * @deprecated Set of command line instructions for connecting various clients to
146
+ * this MCP server
147
147
  */
148
148
  commands: McpCreateResponse.Commands;
149
149
 
@@ -158,7 +158,8 @@ export interface McpCreateResponse {
158
158
  managed_auth_via_composio: boolean;
159
159
 
160
160
  /**
161
- * URL endpoint for establishing SSE connection to this MCP server
161
+ * @deprecated [DEPRECATED] Please use the URL with user_id or connected_account_id
162
+ * query param
162
163
  */
163
164
  mcp_url: string;
164
165
 
@@ -190,22 +191,22 @@ export interface McpCreateResponse {
190
191
 
191
192
  export namespace McpCreateResponse {
192
193
  /**
193
- * Set of command line instructions for connecting various clients to this MCP
194
- * server
194
+ * @deprecated Set of command line instructions for connecting various clients to
195
+ * this MCP server
195
196
  */
196
197
  export interface Commands {
197
198
  /**
198
- * Command line instruction for Claude client setup
199
+ * @deprecated Command line instruction for Claude client setup
199
200
  */
200
201
  claude: string;
201
202
 
202
203
  /**
203
- * Command line instruction for Cursor client setup
204
+ * @deprecated Command line instruction for Cursor client setup
204
205
  */
205
206
  cursor: string;
206
207
 
207
208
  /**
208
- * Command line instruction for Windsurf client setup
209
+ * @deprecated Command line instruction for Windsurf client setup
209
210
  */
210
211
  windsurf: string;
211
212
  }
@@ -231,8 +232,8 @@ export interface McpRetrieveResponse {
231
232
  auth_config_ids: Array<string>;
232
233
 
233
234
  /**
234
- * Set of command line instructions for connecting various clients to this MCP
235
- * server
235
+ * @deprecated Set of command line instructions for connecting various clients to
236
+ * this MCP server
236
237
  */
237
238
  commands: McpRetrieveResponse.Commands;
238
239
 
@@ -252,7 +253,8 @@ export interface McpRetrieveResponse {
252
253
  managed_auth_via_composio: boolean;
253
254
 
254
255
  /**
255
- * URL endpoint for establishing SSE connection to this MCP server
256
+ * @deprecated [DEPRECATED] Please use the URL with user_id or connected_account_id
257
+ * query param
256
258
  */
257
259
  mcp_url: string;
258
260
 
@@ -284,22 +286,22 @@ export interface McpRetrieveResponse {
284
286
 
285
287
  export namespace McpRetrieveResponse {
286
288
  /**
287
- * Set of command line instructions for connecting various clients to this MCP
288
- * server
289
+ * @deprecated Set of command line instructions for connecting various clients to
290
+ * this MCP server
289
291
  */
290
292
  export interface Commands {
291
293
  /**
292
- * Command line instruction for Claude client setup
294
+ * @deprecated Command line instruction for Claude client setup
293
295
  */
294
296
  claude: string;
295
297
 
296
298
  /**
297
- * Command line instruction for Cursor client setup
299
+ * @deprecated Command line instruction for Cursor client setup
298
300
  */
299
301
  cursor: string;
300
302
 
301
303
  /**
302
- * Command line instruction for Windsurf client setup
304
+ * @deprecated Command line instruction for Windsurf client setup
303
305
  */
304
306
  windsurf: string;
305
307
  }
@@ -325,8 +327,8 @@ export interface McpUpdateResponse {
325
327
  auth_config_ids: Array<string>;
326
328
 
327
329
  /**
328
- * Set of command line instructions for connecting various clients to this MCP
329
- * server
330
+ * @deprecated Set of command line instructions for connecting various clients to
331
+ * this MCP server
330
332
  */
331
333
  commands: McpUpdateResponse.Commands;
332
334
 
@@ -346,7 +348,8 @@ export interface McpUpdateResponse {
346
348
  managed_auth_via_composio: boolean;
347
349
 
348
350
  /**
349
- * URL endpoint for establishing SSE connection to this MCP server
351
+ * @deprecated [DEPRECATED] Please use the URL with user_id or connected_account_id
352
+ * query param
350
353
  */
351
354
  mcp_url: string;
352
355
 
@@ -378,22 +381,22 @@ export interface McpUpdateResponse {
378
381
 
379
382
  export namespace McpUpdateResponse {
380
383
  /**
381
- * Set of command line instructions for connecting various clients to this MCP
382
- * server
384
+ * @deprecated Set of command line instructions for connecting various clients to
385
+ * this MCP server
383
386
  */
384
387
  export interface Commands {
385
388
  /**
386
- * Command line instruction for Claude client setup
389
+ * @deprecated Command line instruction for Claude client setup
387
390
  */
388
391
  claude: string;
389
392
 
390
393
  /**
391
- * Command line instruction for Cursor client setup
394
+ * @deprecated Command line instruction for Cursor client setup
392
395
  */
393
396
  cursor: string;
394
397
 
395
398
  /**
396
- * Command line instruction for Windsurf client setup
399
+ * @deprecated Command line instruction for Windsurf client setup
397
400
  */
398
401
  windsurf: string;
399
402
  }
@@ -440,8 +443,8 @@ export namespace McpListResponse {
440
443
  auth_config_ids: Array<string>;
441
444
 
442
445
  /**
443
- * Set of command line instructions for connecting various clients to this MCP
444
- * server
446
+ * @deprecated Set of command line instructions for connecting various clients to
447
+ * this MCP server
445
448
  */
446
449
  commands: Item.Commands;
447
450
 
@@ -456,7 +459,8 @@ export namespace McpListResponse {
456
459
  managed_auth_via_composio: boolean;
457
460
 
458
461
  /**
459
- * URL endpoint for establishing SSE connection to this MCP server
462
+ * @deprecated [DEPRECATED] Please use the URL with user_id or connected_account_id
463
+ * query param
460
464
  */
461
465
  mcp_url: string;
462
466
 
@@ -488,22 +492,22 @@ export namespace McpListResponse {
488
492
 
489
493
  export namespace Item {
490
494
  /**
491
- * Set of command line instructions for connecting various clients to this MCP
492
- * server
495
+ * @deprecated Set of command line instructions for connecting various clients to
496
+ * this MCP server
493
497
  */
494
498
  export interface Commands {
495
499
  /**
496
- * Command line instruction for Claude client setup
500
+ * @deprecated Command line instruction for Claude client setup
497
501
  */
498
502
  claude: string;
499
503
 
500
504
  /**
501
- * Command line instruction for Cursor client setup
505
+ * @deprecated Command line instruction for Cursor client setup
502
506
  */
503
507
  cursor: string;
504
508
 
505
509
  /**
506
- * Command line instruction for Windsurf client setup
510
+ * @deprecated Command line instruction for Windsurf client setup
507
511
  */
508
512
  windsurf: string;
509
513
  }
@@ -566,8 +570,8 @@ export namespace McpRetrieveAppResponse {
566
570
  auth_config_ids: Array<string>;
567
571
 
568
572
  /**
569
- * Set of command line instructions for connecting various clients to this MCP
570
- * server
573
+ * @deprecated Set of command line instructions for connecting various clients to
574
+ * this MCP server
571
575
  */
572
576
  commands: Item.Commands;
573
577
 
@@ -582,7 +586,8 @@ export namespace McpRetrieveAppResponse {
582
586
  managed_auth_via_composio: boolean;
583
587
 
584
588
  /**
585
- * URL endpoint for establishing SSE connection to this MCP server
589
+ * @deprecated [DEPRECATED] Please use the URL with user_id or connected_account_id
590
+ * query param
586
591
  */
587
592
  mcp_url: string;
588
593
 
@@ -614,22 +619,22 @@ export namespace McpRetrieveAppResponse {
614
619
 
615
620
  export namespace Item {
616
621
  /**
617
- * Set of command line instructions for connecting various clients to this MCP
618
- * server
622
+ * @deprecated Set of command line instructions for connecting various clients to
623
+ * this MCP server
619
624
  */
620
625
  export interface Commands {
621
626
  /**
622
- * Command line instruction for Claude client setup
627
+ * @deprecated Command line instruction for Claude client setup
623
628
  */
624
629
  claude: string;
625
630
 
626
631
  /**
627
- * Command line instruction for Cursor client setup
632
+ * @deprecated Command line instruction for Cursor client setup
628
633
  */
629
634
  cursor: string;
630
635
 
631
636
  /**
632
- * Command line instruction for Windsurf client setup
637
+ * @deprecated Command line instruction for Windsurf client setup
633
638
  */
634
639
  windsurf: string;
635
640
  }
@@ -5,10 +5,12 @@ export {
5
5
  type SessionCreateResponse,
6
6
  type SessionRetrieveResponse,
7
7
  type SessionExecuteResponse,
8
+ type SessionExecuteMetaResponse,
8
9
  type SessionLinkResponse,
9
10
  type SessionToolkitsResponse,
10
11
  type SessionCreateParams,
11
12
  type SessionExecuteParams,
13
+ type SessionExecuteMetaParams,
12
14
  type SessionLinkParams,
13
15
  type SessionToolkitsParams,
14
16
  } from './session';