@composio/client 0.1.0-alpha.66 → 0.1.0-alpha.68
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/CHANGELOG.md +39 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +11 -0
- package/client.js.map +1 -1
- package/client.mjs +11 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/files.d.mts +3 -3
- package/resources/files.d.ts +3 -3
- package/resources/mcp/generate.d.mts +4 -1
- package/resources/mcp/generate.d.mts.map +1 -1
- package/resources/mcp/generate.d.ts +4 -1
- package/resources/mcp/generate.d.ts.map +1 -1
- package/resources/mcp/generate.js +4 -1
- package/resources/mcp/generate.js.map +1 -1
- package/resources/mcp/generate.mjs +4 -1
- package/resources/mcp/generate.mjs.map +1 -1
- package/resources/tool-router/session/files.d.mts +4 -4
- package/resources/tool-router/session/files.d.ts +4 -4
- package/resources/tool-router/session/files.js +4 -4
- package/resources/tool-router/session/files.mjs +4 -4
- package/resources/tool-router/session/session.d.mts +254 -34
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +254 -34
- package/resources/tool-router/session/session.d.ts.map +1 -1
- package/resources/tool-router/session/session.js +18 -11
- package/resources/tool-router/session/session.js.map +1 -1
- package/resources/tool-router/session/session.mjs +18 -11
- package/resources/tool-router/session/session.mjs.map +1 -1
- package/resources/tool-router/tool-router.d.mts +1 -1
- package/resources/tool-router/tool-router.d.ts +1 -1
- package/src/client.ts +12 -0
- package/src/internal/types.ts +6 -8
- package/src/resources/files.ts +3 -3
- package/src/resources/mcp/generate.ts +4 -1
- package/src/resources/tool-router/session/files.ts +4 -4
- package/src/resources/tool-router/session/session.ts +281 -34
- package/src/resources/tool-router/tool-router.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -47,7 +47,7 @@ export class Session extends APIResource {
|
|
|
47
47
|
* @example
|
|
48
48
|
* ```ts
|
|
49
49
|
* const session = await client.toolRouter.session.retrieve(
|
|
50
|
-
* '
|
|
50
|
+
* 'trs_1a2b3c4d5e6f',
|
|
51
51
|
* );
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
|
@@ -56,11 +56,16 @@ export class Session extends APIResource {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
* Executes a specific tool within a tool router session.
|
|
60
|
-
*
|
|
61
|
-
* toolkit
|
|
62
|
-
*
|
|
63
|
-
*
|
|
59
|
+
* Executes a specific tool within a tool router session. This is the primary
|
|
60
|
+
* execution endpoint for both meta tools and app tools exposed by the session. The
|
|
61
|
+
* toolkit is automatically inferred from the tool slug. For app tools, the tool
|
|
62
|
+
* must belong to an allowed toolkit and must not be disabled in the session
|
|
63
|
+
* configuration. The endpoint validates permissions, resolves connected accounts
|
|
64
|
+
* when needed, and executes the tool with the session context. The top-level
|
|
65
|
+
* account field applies only to direct app tool execution in multi-account
|
|
66
|
+
* sessions. Meta/helper tools either ignore it or define their own
|
|
67
|
+
* account-selection fields, for example
|
|
68
|
+
* COMPOSIO_MULTI_EXECUTE_TOOL.tools[].account.
|
|
64
69
|
*
|
|
65
70
|
* @example
|
|
66
71
|
* ```ts
|
|
@@ -79,7 +84,9 @@ export class Session extends APIResource {
|
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
/**
|
|
82
|
-
* Executes a Composio meta tool (COMPOSIO\_\*) within a tool router session.
|
|
87
|
+
* Executes a Composio meta tool (COMPOSIO\_\*) within a tool router session. This
|
|
88
|
+
* endpoint is kept for meta-tool compatibility; clients can also use the primary
|
|
89
|
+
* /execute endpoint.
|
|
83
90
|
*
|
|
84
91
|
* @example
|
|
85
92
|
* ```ts
|
|
@@ -188,7 +195,7 @@ export class Session extends APIResource {
|
|
|
188
195
|
* @example
|
|
189
196
|
* ```ts
|
|
190
197
|
* const response = await client.toolRouter.session.toolkits(
|
|
191
|
-
* '
|
|
198
|
+
* 'trs_1a2b3c4d5e6f',
|
|
192
199
|
* );
|
|
193
200
|
* ```
|
|
194
201
|
*/
|
|
@@ -201,9 +208,9 @@ export class Session extends APIResource {
|
|
|
201
208
|
}
|
|
202
209
|
|
|
203
210
|
/**
|
|
204
|
-
* Returns the
|
|
205
|
-
* schemas. This includes
|
|
206
|
-
*
|
|
211
|
+
* Returns the tools available in a tool router session with their complete
|
|
212
|
+
* schemas. This includes both meta tools and any preloaded app tools exposed by
|
|
213
|
+
* the session.
|
|
207
214
|
*
|
|
208
215
|
* @example
|
|
209
216
|
* ```ts
|
|
@@ -227,6 +234,12 @@ export interface SessionCreateResponse {
|
|
|
227
234
|
*/
|
|
228
235
|
config: SessionCreateResponse.Config;
|
|
229
236
|
|
|
237
|
+
/**
|
|
238
|
+
* Monotonic version of the config. Incremented on each PATCH. Use for optimistic
|
|
239
|
+
* concurrency control.
|
|
240
|
+
*/
|
|
241
|
+
config_version: number;
|
|
242
|
+
|
|
230
243
|
mcp: SessionCreateResponse.Mcp;
|
|
231
244
|
|
|
232
245
|
/**
|
|
@@ -244,6 +257,12 @@ export interface SessionCreateResponse {
|
|
|
244
257
|
* session creation, not on GET.
|
|
245
258
|
*/
|
|
246
259
|
experimental?: SessionCreateResponse.Experimental;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Advisory list — the session exists and is usable, but the listed issues may
|
|
263
|
+
* warrant attention.
|
|
264
|
+
*/
|
|
265
|
+
warnings?: Array<SessionCreateResponse.Warning>;
|
|
247
266
|
}
|
|
248
267
|
|
|
249
268
|
export namespace SessionCreateResponse {
|
|
@@ -251,6 +270,15 @@ export namespace SessionCreateResponse {
|
|
|
251
270
|
* The session configuration including user, toolkits, and overrides
|
|
252
271
|
*/
|
|
253
272
|
export interface Config {
|
|
273
|
+
/**
|
|
274
|
+
* Preload configuration. Controls which tools appear in `session.tools` and the
|
|
275
|
+
* MCP server tool list, callable directly without going through search. Each
|
|
276
|
+
* preloaded tool adds to the agent context — roughly ≤20 tools is recommended.
|
|
277
|
+
* Always present in the response (empty `tools: []` when the session was created
|
|
278
|
+
* without a preload config).
|
|
279
|
+
*/
|
|
280
|
+
preload: Config.Preload;
|
|
281
|
+
|
|
254
282
|
/**
|
|
255
283
|
* User identifier for this session
|
|
256
284
|
*/
|
|
@@ -262,7 +290,8 @@ export namespace SessionCreateResponse {
|
|
|
262
290
|
auth_configs?: { [key: string]: string };
|
|
263
291
|
|
|
264
292
|
/**
|
|
265
|
-
* Connected account overrides per toolkit
|
|
293
|
+
* Connected account overrides per toolkit. Each connected account must belong to
|
|
294
|
+
* the same user_id as the session.
|
|
266
295
|
*/
|
|
267
296
|
connected_accounts?: { [key: string]: string };
|
|
268
297
|
|
|
@@ -271,6 +300,11 @@ export namespace SessionCreateResponse {
|
|
|
271
300
|
*/
|
|
272
301
|
manage_connections?: Config.ManageConnections;
|
|
273
302
|
|
|
303
|
+
/**
|
|
304
|
+
* Multi-account configuration for this session.
|
|
305
|
+
*/
|
|
306
|
+
multi_account?: Config.MultiAccount;
|
|
307
|
+
|
|
274
308
|
/**
|
|
275
309
|
* MCP tool annotation hints for filtering tools with enabled/disabled support.
|
|
276
310
|
* enabled: tags that the tool must have at least one of. disabled: tags that the
|
|
@@ -295,6 +329,22 @@ export namespace SessionCreateResponse {
|
|
|
295
329
|
}
|
|
296
330
|
|
|
297
331
|
export namespace Config {
|
|
332
|
+
/**
|
|
333
|
+
* Preload configuration. Controls which tools appear in `session.tools` and the
|
|
334
|
+
* MCP server tool list, callable directly without going through search. Each
|
|
335
|
+
* preloaded tool adds to the agent context — roughly ≤20 tools is recommended.
|
|
336
|
+
* Always present in the response (empty `tools: []` when the session was created
|
|
337
|
+
* without a preload config).
|
|
338
|
+
*/
|
|
339
|
+
export interface Preload {
|
|
340
|
+
/**
|
|
341
|
+
* Tool slugs preloaded for this session. Appear in `session.tools` and the MCP
|
|
342
|
+
* server tool list, callable directly without going through search. Empty array
|
|
343
|
+
* when no preload was configured.
|
|
344
|
+
*/
|
|
345
|
+
tools: Array<string>;
|
|
346
|
+
}
|
|
347
|
+
|
|
298
348
|
/**
|
|
299
349
|
* Manage connections configuration
|
|
300
350
|
*/
|
|
@@ -321,6 +371,29 @@ export namespace SessionCreateResponse {
|
|
|
321
371
|
enabled?: boolean;
|
|
322
372
|
}
|
|
323
373
|
|
|
374
|
+
/**
|
|
375
|
+
* Multi-account configuration for this session.
|
|
376
|
+
*/
|
|
377
|
+
export interface MultiAccount {
|
|
378
|
+
/**
|
|
379
|
+
* When true, enables multi-account mode for this session. When not set, falls back
|
|
380
|
+
* to org/project-level configuration.
|
|
381
|
+
*/
|
|
382
|
+
enable?: boolean;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Maximum number of connected accounts allowed per toolkit. Defaults to 5 when
|
|
386
|
+
* multi-account is enabled.
|
|
387
|
+
*/
|
|
388
|
+
max_accounts_per_toolkit?: number;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* When true, require explicit account selection when multiple accounts are
|
|
392
|
+
* connected. When false (default), use the first/default account.
|
|
393
|
+
*/
|
|
394
|
+
require_explicit_selection?: boolean;
|
|
395
|
+
}
|
|
396
|
+
|
|
324
397
|
/**
|
|
325
398
|
* MCP tool annotation hints for filtering tools with enabled/disabled support.
|
|
326
399
|
* enabled: tags that the tool must have at least one of. disabled: tags that the
|
|
@@ -392,6 +465,12 @@ export namespace SessionCreateResponse {
|
|
|
392
465
|
* Whether proxy execution is enabled in the workbench
|
|
393
466
|
*/
|
|
394
467
|
proxy_execution_enabled?: boolean;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
|
|
471
|
+
* vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Defaults to standard.
|
|
472
|
+
*/
|
|
473
|
+
sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
|
|
395
474
|
}
|
|
396
475
|
}
|
|
397
476
|
|
|
@@ -483,6 +562,19 @@ export namespace SessionCreateResponse {
|
|
|
483
562
|
output_schema?: { [key: string]: unknown };
|
|
484
563
|
}
|
|
485
564
|
}
|
|
565
|
+
|
|
566
|
+
export interface Warning {
|
|
567
|
+
/**
|
|
568
|
+
* Stable machine code identifying the advisory. Safe to switch on in client code.
|
|
569
|
+
*/
|
|
570
|
+
code: 'PRELOAD_TOOLS_HIGH_CONTEXT_USAGE';
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Human-readable description of the advisory. Suitable for logging or surfacing to
|
|
574
|
+
* end users.
|
|
575
|
+
*/
|
|
576
|
+
message: string;
|
|
577
|
+
}
|
|
486
578
|
}
|
|
487
579
|
|
|
488
580
|
export interface SessionRetrieveResponse {
|
|
@@ -491,6 +583,12 @@ export interface SessionRetrieveResponse {
|
|
|
491
583
|
*/
|
|
492
584
|
config: SessionRetrieveResponse.Config;
|
|
493
585
|
|
|
586
|
+
/**
|
|
587
|
+
* Monotonic version of the config. Incremented on each PATCH. Use for optimistic
|
|
588
|
+
* concurrency control.
|
|
589
|
+
*/
|
|
590
|
+
config_version: number;
|
|
591
|
+
|
|
494
592
|
mcp: SessionRetrieveResponse.Mcp;
|
|
495
593
|
|
|
496
594
|
/**
|
|
@@ -507,6 +605,12 @@ export interface SessionRetrieveResponse {
|
|
|
507
605
|
* Experimental features
|
|
508
606
|
*/
|
|
509
607
|
experimental?: SessionRetrieveResponse.Experimental;
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Advisory list — the session exists and is usable, but the listed issues may
|
|
611
|
+
* warrant attention.
|
|
612
|
+
*/
|
|
613
|
+
warnings?: Array<SessionRetrieveResponse.Warning>;
|
|
510
614
|
}
|
|
511
615
|
|
|
512
616
|
export namespace SessionRetrieveResponse {
|
|
@@ -514,6 +618,15 @@ export namespace SessionRetrieveResponse {
|
|
|
514
618
|
* The session configuration including user, toolkits, and overrides
|
|
515
619
|
*/
|
|
516
620
|
export interface Config {
|
|
621
|
+
/**
|
|
622
|
+
* Preload configuration. Controls which tools appear in `session.tools` and the
|
|
623
|
+
* MCP server tool list, callable directly without going through search. Each
|
|
624
|
+
* preloaded tool adds to the agent context — roughly ≤20 tools is recommended.
|
|
625
|
+
* Always present in the response (empty `tools: []` when the session was created
|
|
626
|
+
* without a preload config).
|
|
627
|
+
*/
|
|
628
|
+
preload: Config.Preload;
|
|
629
|
+
|
|
517
630
|
/**
|
|
518
631
|
* User identifier for this session
|
|
519
632
|
*/
|
|
@@ -525,7 +638,8 @@ export namespace SessionRetrieveResponse {
|
|
|
525
638
|
auth_configs?: { [key: string]: string };
|
|
526
639
|
|
|
527
640
|
/**
|
|
528
|
-
* Connected account overrides per toolkit
|
|
641
|
+
* Connected account overrides per toolkit. Each connected account must belong to
|
|
642
|
+
* the same user_id as the session.
|
|
529
643
|
*/
|
|
530
644
|
connected_accounts?: { [key: string]: string };
|
|
531
645
|
|
|
@@ -534,6 +648,11 @@ export namespace SessionRetrieveResponse {
|
|
|
534
648
|
*/
|
|
535
649
|
manage_connections?: Config.ManageConnections;
|
|
536
650
|
|
|
651
|
+
/**
|
|
652
|
+
* Multi-account configuration for this session.
|
|
653
|
+
*/
|
|
654
|
+
multi_account?: Config.MultiAccount;
|
|
655
|
+
|
|
537
656
|
/**
|
|
538
657
|
* MCP tool annotation hints for filtering tools with enabled/disabled support.
|
|
539
658
|
* enabled: tags that the tool must have at least one of. disabled: tags that the
|
|
@@ -558,6 +677,22 @@ export namespace SessionRetrieveResponse {
|
|
|
558
677
|
}
|
|
559
678
|
|
|
560
679
|
export namespace Config {
|
|
680
|
+
/**
|
|
681
|
+
* Preload configuration. Controls which tools appear in `session.tools` and the
|
|
682
|
+
* MCP server tool list, callable directly without going through search. Each
|
|
683
|
+
* preloaded tool adds to the agent context — roughly ≤20 tools is recommended.
|
|
684
|
+
* Always present in the response (empty `tools: []` when the session was created
|
|
685
|
+
* without a preload config).
|
|
686
|
+
*/
|
|
687
|
+
export interface Preload {
|
|
688
|
+
/**
|
|
689
|
+
* Tool slugs preloaded for this session. Appear in `session.tools` and the MCP
|
|
690
|
+
* server tool list, callable directly without going through search. Empty array
|
|
691
|
+
* when no preload was configured.
|
|
692
|
+
*/
|
|
693
|
+
tools: Array<string>;
|
|
694
|
+
}
|
|
695
|
+
|
|
561
696
|
/**
|
|
562
697
|
* Manage connections configuration
|
|
563
698
|
*/
|
|
@@ -584,6 +719,29 @@ export namespace SessionRetrieveResponse {
|
|
|
584
719
|
enabled?: boolean;
|
|
585
720
|
}
|
|
586
721
|
|
|
722
|
+
/**
|
|
723
|
+
* Multi-account configuration for this session.
|
|
724
|
+
*/
|
|
725
|
+
export interface MultiAccount {
|
|
726
|
+
/**
|
|
727
|
+
* When true, enables multi-account mode for this session. When not set, falls back
|
|
728
|
+
* to org/project-level configuration.
|
|
729
|
+
*/
|
|
730
|
+
enable?: boolean;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Maximum number of connected accounts allowed per toolkit. Defaults to 5 when
|
|
734
|
+
* multi-account is enabled.
|
|
735
|
+
*/
|
|
736
|
+
max_accounts_per_toolkit?: number;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* When true, require explicit account selection when multiple accounts are
|
|
740
|
+
* connected. When false (default), use the first/default account.
|
|
741
|
+
*/
|
|
742
|
+
require_explicit_selection?: boolean;
|
|
743
|
+
}
|
|
744
|
+
|
|
587
745
|
/**
|
|
588
746
|
* MCP tool annotation hints for filtering tools with enabled/disabled support.
|
|
589
747
|
* enabled: tags that the tool must have at least one of. disabled: tags that the
|
|
@@ -655,6 +813,12 @@ export namespace SessionRetrieveResponse {
|
|
|
655
813
|
* Whether proxy execution is enabled in the workbench
|
|
656
814
|
*/
|
|
657
815
|
proxy_execution_enabled?: boolean;
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
|
|
819
|
+
* vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Defaults to standard.
|
|
820
|
+
*/
|
|
821
|
+
sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
|
|
658
822
|
}
|
|
659
823
|
}
|
|
660
824
|
|
|
@@ -745,6 +909,19 @@ export namespace SessionRetrieveResponse {
|
|
|
745
909
|
output_schema?: { [key: string]: unknown };
|
|
746
910
|
}
|
|
747
911
|
}
|
|
912
|
+
|
|
913
|
+
export interface Warning {
|
|
914
|
+
/**
|
|
915
|
+
* Stable machine code identifying the advisory. Safe to switch on in client code.
|
|
916
|
+
*/
|
|
917
|
+
code: 'PRELOAD_TOOLS_HIGH_CONTEXT_USAGE';
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Human-readable description of the advisory. Suitable for logging or surfacing to
|
|
921
|
+
* end users.
|
|
922
|
+
*/
|
|
923
|
+
message: string;
|
|
924
|
+
}
|
|
748
925
|
}
|
|
749
926
|
|
|
750
927
|
export interface SessionExecuteResponse {
|
|
@@ -1456,7 +1633,9 @@ export interface SessionCreateParams {
|
|
|
1456
1633
|
/**
|
|
1457
1634
|
* The connected accounts to use for the session. This will override the default
|
|
1458
1635
|
* behaviour and use the given connected account when specific toolkits are being
|
|
1459
|
-
* executed
|
|
1636
|
+
* executed. Each connected account must exist (not deleted or disabled) and belong
|
|
1637
|
+
* to the same `user_id` as the session — otherwise session creation fails with a
|
|
1638
|
+
* clear error explaining which account didn't match.
|
|
1460
1639
|
*/
|
|
1461
1640
|
connected_accounts?: { [key: string]: string };
|
|
1462
1641
|
|
|
@@ -1477,6 +1656,18 @@ export interface SessionCreateParams {
|
|
|
1477
1656
|
*/
|
|
1478
1657
|
multi_account?: SessionCreateParams.MultiAccount;
|
|
1479
1658
|
|
|
1659
|
+
/**
|
|
1660
|
+
* Preload configuration. Controls which tools appear in `session.tools` and the
|
|
1661
|
+
* MCP server tool list so the agent can call them directly without going through
|
|
1662
|
+
* search first — useful for frequently used tools. Each slug must be allowed by
|
|
1663
|
+
* the session filters (`toolkits`, `tools`, `tags`), otherwise session creation
|
|
1664
|
+
* fails with a 400. Custom tools declared in `custom_tools` / `custom_toolkits`
|
|
1665
|
+
* can also be preloaded. Not supported when multi-account is enabled. Each
|
|
1666
|
+
* preloaded tool adds to the agent context window, so keep the list at or under
|
|
1667
|
+
* ~20 tools.
|
|
1668
|
+
*/
|
|
1669
|
+
preload?: SessionCreateParams.Preload;
|
|
1670
|
+
|
|
1480
1671
|
/**
|
|
1481
1672
|
* Global MCP tool annotation hints for filtering. Array format is treated as
|
|
1482
1673
|
* enabled list. Object format supports both enabled (tool must have at least one)
|
|
@@ -1494,8 +1685,11 @@ export interface SessionCreateParams {
|
|
|
1494
1685
|
toolkits?: SessionCreateParams.Enable | SessionCreateParams.Disable;
|
|
1495
1686
|
|
|
1496
1687
|
/**
|
|
1497
|
-
* Tool-level configuration per toolkit
|
|
1498
|
-
*
|
|
1688
|
+
* Tool-level configuration per toolkit. Allows you to enable, disable, or filter
|
|
1689
|
+
* by tags for specific tools within each toolkit. Every slug passed in `enable` /
|
|
1690
|
+
* `disable` must be a valid Composio tool slug for that toolkit — invalid or
|
|
1691
|
+
* typo'd slugs fail session creation with a clear error listing which ones didn't
|
|
1692
|
+
* match.
|
|
1499
1693
|
*/
|
|
1500
1694
|
tools?: {
|
|
1501
1695
|
[key: string]: SessionCreateParams.Enable | SessionCreateParams.Disable | SessionCreateParams.Tags;
|
|
@@ -1529,6 +1723,12 @@ export namespace SessionCreateParams {
|
|
|
1529
1723
|
* extends_toolkit inherit the Composio toolkit's connection.
|
|
1530
1724
|
*/
|
|
1531
1725
|
custom_tools?: Array<Experimental.CustomTool>;
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* Per-tool elicitation permission config. Default behavior + per-tool
|
|
1729
|
+
* always_allow/always_deny overrides. Mutation via PATCH.
|
|
1730
|
+
*/
|
|
1731
|
+
permissions?: Experimental.Permissions;
|
|
1532
1732
|
}
|
|
1533
1733
|
|
|
1534
1734
|
export namespace Experimental {
|
|
@@ -1629,6 +1829,27 @@ export namespace SessionCreateParams {
|
|
|
1629
1829
|
*/
|
|
1630
1830
|
output_schema?: { [key: string]: unknown };
|
|
1631
1831
|
}
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* Per-tool elicitation permission config. Default behavior + per-tool
|
|
1835
|
+
* always_allow/always_deny overrides. Mutation via PATCH.
|
|
1836
|
+
*/
|
|
1837
|
+
export interface Permissions {
|
|
1838
|
+
/**
|
|
1839
|
+
* Default elicitation behavior when no override matches. `allow_all` runs every
|
|
1840
|
+
* tool without prompting; `ask_every_call` prompts on each invocation;
|
|
1841
|
+
* `ask_once_per_session` prompts once and remembers the answer for the rest of the
|
|
1842
|
+
* session.
|
|
1843
|
+
*/
|
|
1844
|
+
default: 'allow_all' | 'ask_every_call' | 'ask_once_per_session';
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Per-tool overrides keyed by `${toolSlug}:${connectedAccountId ?? "__none__"}`.
|
|
1848
|
+
* `always_allow` skips the prompt and runs the tool; `always_deny` blocks the
|
|
1849
|
+
* tool. Overrides take precedence over `default` and the session cache.
|
|
1850
|
+
*/
|
|
1851
|
+
overrides?: { [key: string]: 'always_allow' | 'always_deny' };
|
|
1852
|
+
}
|
|
1632
1853
|
}
|
|
1633
1854
|
|
|
1634
1855
|
/**
|
|
@@ -1687,15 +1908,29 @@ export namespace SessionCreateParams {
|
|
|
1687
1908
|
require_explicit_selection?: boolean;
|
|
1688
1909
|
}
|
|
1689
1910
|
|
|
1690
|
-
|
|
1911
|
+
/**
|
|
1912
|
+
* Preload configuration. Controls which tools appear in `session.tools` and the
|
|
1913
|
+
* MCP server tool list so the agent can call them directly without going through
|
|
1914
|
+
* search first — useful for frequently used tools. Each slug must be allowed by
|
|
1915
|
+
* the session filters (`toolkits`, `tools`, `tags`), otherwise session creation
|
|
1916
|
+
* fails with a 400. Custom tools declared in `custom_tools` / `custom_toolkits`
|
|
1917
|
+
* can also be preloaded. Not supported when multi-account is enabled. Each
|
|
1918
|
+
* preloaded tool adds to the agent context window, so keep the list at or under
|
|
1919
|
+
* ~20 tools.
|
|
1920
|
+
*/
|
|
1921
|
+
export interface Preload {
|
|
1691
1922
|
/**
|
|
1692
|
-
*
|
|
1923
|
+
* Tool slugs to preload. Each slug must be allowed by the session filters
|
|
1924
|
+
* (`toolkits`, `tools`, `tags`) and exist either in the Composio tool catalog or
|
|
1925
|
+
* in `custom_tools` / `custom_toolkits` — unknown or blocked slugs return a 400 at
|
|
1926
|
+
* session creation.
|
|
1693
1927
|
*/
|
|
1928
|
+
tools?: Array<string>;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
export interface UnionMember1 {
|
|
1694
1932
|
disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1695
1933
|
|
|
1696
|
-
/**
|
|
1697
|
-
* Tags that the tool must have at least one of
|
|
1698
|
-
*/
|
|
1699
1934
|
enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1700
1935
|
}
|
|
1701
1936
|
|
|
@@ -1743,14 +1978,8 @@ export namespace SessionCreateParams {
|
|
|
1743
1978
|
|
|
1744
1979
|
export namespace Tags {
|
|
1745
1980
|
export interface UnionMember1 {
|
|
1746
|
-
/**
|
|
1747
|
-
* Tags that the tool must NOT have any of
|
|
1748
|
-
*/
|
|
1749
1981
|
disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1750
1982
|
|
|
1751
|
-
/**
|
|
1752
|
-
* Tags that the tool must have at least one of
|
|
1753
|
-
*/
|
|
1754
1983
|
enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1755
1984
|
}
|
|
1756
1985
|
}
|
|
@@ -1777,20 +2006,29 @@ export namespace SessionCreateParams {
|
|
|
1777
2006
|
* APIs directly.
|
|
1778
2007
|
*/
|
|
1779
2008
|
enable_proxy_execution?: boolean;
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4
|
|
2012
|
+
* vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Defaults to standard.
|
|
2013
|
+
*/
|
|
2014
|
+
sandbox_size?: 'standard' | 'medium' | 'large' | 'xlarge';
|
|
1780
2015
|
}
|
|
1781
2016
|
}
|
|
1782
2017
|
|
|
1783
2018
|
export interface SessionExecuteParams {
|
|
1784
2019
|
/**
|
|
1785
|
-
* The unique slug identifier of the tool to execute
|
|
2020
|
+
* The unique slug identifier of the tool to execute. Supports both meta tools and
|
|
2021
|
+
* app tools exposed by the session.
|
|
1786
2022
|
*/
|
|
1787
2023
|
tool_slug: string;
|
|
1788
2024
|
|
|
1789
2025
|
/**
|
|
1790
|
-
* Account identifier to specify which connected account to use
|
|
1791
|
-
* (e.g. "coup_hurricane_dal_analytical") or an
|
|
1792
|
-
* account, the default is used. When omitted
|
|
1793
|
-
* lists available accounts.
|
|
2026
|
+
* Account identifier to specify which connected account to use for direct tool
|
|
2027
|
+
* execution. Use the account ID (e.g. "coup_hurricane_dal_analytical") or an
|
|
2028
|
+
* alias. When omitted with a single account, the default is used. When omitted
|
|
2029
|
+
* with multiple accounts, an error lists available accounts. Meta/helper tools
|
|
2030
|
+
* either ignore this top-level field or define their own account-selection fields,
|
|
2031
|
+
* for example COMPOSIO_MULTI_EXECUTE_TOOL.tools[].account.
|
|
1794
2032
|
*/
|
|
1795
2033
|
account?: string;
|
|
1796
2034
|
|
|
@@ -1798,6 +2036,15 @@ export interface SessionExecuteParams {
|
|
|
1798
2036
|
* The arguments required by the tool
|
|
1799
2037
|
*/
|
|
1800
2038
|
arguments?: { [key: string]: unknown };
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* When true, direct non-meta tool execution may return a workbench offload preview
|
|
2042
|
+
* if the response exceeds the configured threshold and the session workbench is
|
|
2043
|
+
* enabled. When omitted or false, direct tool execution returns the normal inline
|
|
2044
|
+
* response. Meta/helper tools are unaffected, and COMPOSIO_MULTI_EXECUTE_TOOL uses
|
|
2045
|
+
* session.workbench configuration for its own batch-level offload behavior.
|
|
2046
|
+
*/
|
|
2047
|
+
enable_auto_workbench_offload?: boolean;
|
|
1801
2048
|
}
|
|
1802
2049
|
|
|
1803
2050
|
export interface SessionExecuteMetaParams {
|
|
@@ -2713,13 +2960,13 @@ export namespace SessionSearchParams {
|
|
|
2713
2960
|
export interface Query {
|
|
2714
2961
|
/**
|
|
2715
2962
|
* The task or use case to search tools for. Provide a detailed description to get
|
|
2716
|
-
* the best results.
|
|
2963
|
+
* the best results. Max 1024 characters.
|
|
2717
2964
|
*/
|
|
2718
2965
|
use_case: string;
|
|
2719
2966
|
|
|
2720
2967
|
/**
|
|
2721
2968
|
* Known field hints as key:value pairs (e.g., "channel_name:general,
|
|
2722
|
-
* user_email:john@example.com")
|
|
2969
|
+
* user_email:john@example.com"). Max 500 characters.
|
|
2723
2970
|
*/
|
|
2724
2971
|
known_fields?: string;
|
|
2725
2972
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.68'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.68";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.68";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.68'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.68'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|