@composio/client 0.1.0-alpha.46 → 0.1.0-alpha.48
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 +34 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +58 -55
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +58 -55
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/connected-accounts.d.mts +8 -0
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +8 -0
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +45 -40
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +45 -40
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/tool-router/session.d.mts +136 -235
- package/resources/tool-router/session.d.mts.map +1 -1
- package/resources/tool-router/session.d.ts +136 -235
- package/resources/tool-router/session.d.ts.map +1 -1
- package/resources/tool-router/session.js +2 -11
- package/resources/tool-router/session.js.map +1 -1
- package/resources/tool-router/session.mjs +2 -11
- package/resources/tool-router/session.mjs.map +1 -1
- package/resources/tool-router/tool-router.d.mts +4 -4
- package/resources/tool-router/tool-router.d.ts +4 -4
- package/resources/tool-router/tool-router.js +4 -4
- package/resources/tool-router/tool-router.mjs +4 -4
- package/resources/toolkits.d.mts +4 -10
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +4 -10
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.js +2 -2
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +2 -2
- package/resources/toolkits.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +7 -6
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +7 -6
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/src/client.ts +0 -2
- package/src/resources/auth-configs.ts +64 -61
- package/src/resources/connected-accounts.ts +8 -0
- package/src/resources/index.ts +0 -1
- package/src/resources/mcp/mcp.ts +45 -40
- package/src/resources/tool-router/session.ts +141 -256
- package/src/resources/tool-router/tool-router.ts +4 -4
- package/src/resources/toolkits.ts +4 -15
- package/src/resources/trigger-instances/trigger-instances.ts +7 -6
- 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
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../internal/headers';
|
|
6
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
6
|
import { path } from '../../internal/utils/path';
|
|
8
7
|
|
|
@@ -56,18 +55,10 @@ export class Session extends APIResource {
|
|
|
56
55
|
*/
|
|
57
56
|
execute(
|
|
58
57
|
sessionID: string,
|
|
59
|
-
|
|
58
|
+
body: SessionExecuteParams,
|
|
60
59
|
options?: RequestOptions,
|
|
61
60
|
): APIPromise<SessionExecuteResponse> {
|
|
62
|
-
|
|
63
|
-
return this._client.post(path`/api/v3/tool_router/session/${sessionID}/execute`, {
|
|
64
|
-
body,
|
|
65
|
-
...options,
|
|
66
|
-
headers: buildHeaders([
|
|
67
|
-
{ ...(xSessionAccessKey != null ? { 'x-session-access-key': xSessionAccessKey } : undefined) },
|
|
68
|
-
options?.headers,
|
|
69
|
-
]),
|
|
70
|
-
});
|
|
61
|
+
return this._client.post(path`/api/v3/tool_router/session/${sessionID}/execute`, { body, ...options });
|
|
71
62
|
}
|
|
72
63
|
|
|
73
64
|
/**
|
|
@@ -134,6 +125,7 @@ export interface SessionCreateResponse {
|
|
|
134
125
|
| 'COMPOSIO_MANAGE_CONNECTIONS'
|
|
135
126
|
| 'COMPOSIO_REMOTE_WORKBENCH'
|
|
136
127
|
| 'COMPOSIO_REMOTE_BASH_TOOL'
|
|
128
|
+
| 'COMPOSIO_GET_TOOL_SCHEMAS'
|
|
137
129
|
>;
|
|
138
130
|
}
|
|
139
131
|
|
|
@@ -158,14 +150,16 @@ export namespace SessionCreateResponse {
|
|
|
158
150
|
connected_accounts?: { [key: string]: string };
|
|
159
151
|
|
|
160
152
|
/**
|
|
161
|
-
*
|
|
153
|
+
* Manage connections configuration
|
|
162
154
|
*/
|
|
163
|
-
|
|
155
|
+
manage_connections?: Config.ManageConnections;
|
|
164
156
|
|
|
165
157
|
/**
|
|
166
|
-
*
|
|
158
|
+
* MCP tool annotation hints for filtering tools. readOnlyHint: tool does not
|
|
159
|
+
* modify environment. destructiveHint: tool may perform destructive updates.
|
|
160
|
+
* idempotentHint: tool may interact with external entities.
|
|
167
161
|
*/
|
|
168
|
-
|
|
162
|
+
tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
|
|
169
163
|
|
|
170
164
|
/**
|
|
171
165
|
* Toolkit configuration - either enabled list or disabled list
|
|
@@ -173,45 +167,38 @@ export namespace SessionCreateResponse {
|
|
|
173
167
|
toolkits?: Config.Enabled | Config.Disabled;
|
|
174
168
|
|
|
175
169
|
/**
|
|
176
|
-
*
|
|
170
|
+
* Tool-level configuration per toolkit
|
|
177
171
|
*/
|
|
178
|
-
tools?: Config.
|
|
172
|
+
tools?: { [key: string]: Config.Enabled | Config.Disabled | Config.Tags };
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Workbench configuration
|
|
176
|
+
*/
|
|
177
|
+
workbench?: Config.Workbench;
|
|
179
178
|
}
|
|
180
179
|
|
|
181
180
|
export namespace Config {
|
|
182
181
|
/**
|
|
183
|
-
*
|
|
182
|
+
* Manage connections configuration
|
|
184
183
|
*/
|
|
185
|
-
export interface
|
|
186
|
-
/**
|
|
187
|
-
* Whether to enable the connection manager for automatic connection handling
|
|
188
|
-
*/
|
|
189
|
-
auto_manage_connections?: boolean;
|
|
190
|
-
|
|
184
|
+
export interface ManageConnections {
|
|
191
185
|
/**
|
|
192
|
-
* Custom callback
|
|
186
|
+
* Custom callback URL for connected account auth flows
|
|
193
187
|
*/
|
|
194
|
-
|
|
188
|
+
callback_url?: string;
|
|
195
189
|
|
|
196
190
|
/**
|
|
197
|
-
* Whether to
|
|
191
|
+
* Whether to enable the connection manager for automatic connection handling
|
|
198
192
|
*/
|
|
199
|
-
|
|
193
|
+
enabled?: boolean;
|
|
200
194
|
}
|
|
201
195
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
export interface Execution {
|
|
206
|
-
/**
|
|
207
|
-
* Whether to allow proxy execute calls in the workbench
|
|
208
|
-
*/
|
|
209
|
-
proxy_execution_enabled?: boolean;
|
|
196
|
+
export interface Enabled {
|
|
197
|
+
enabled: Array<string>;
|
|
198
|
+
}
|
|
210
199
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
*/
|
|
214
|
-
timeout_seconds?: number;
|
|
200
|
+
export interface Disabled {
|
|
201
|
+
disabled: Array<string>;
|
|
215
202
|
}
|
|
216
203
|
|
|
217
204
|
export interface Enabled {
|
|
@@ -222,56 +209,24 @@ export namespace SessionCreateResponse {
|
|
|
222
209
|
disabled: Array<string>;
|
|
223
210
|
}
|
|
224
211
|
|
|
212
|
+
export interface Tags {
|
|
213
|
+
tags: Array<string>;
|
|
214
|
+
}
|
|
215
|
+
|
|
225
216
|
/**
|
|
226
|
-
*
|
|
217
|
+
* Workbench configuration
|
|
227
218
|
*/
|
|
228
|
-
export interface
|
|
219
|
+
export interface Workbench {
|
|
229
220
|
/**
|
|
230
|
-
*
|
|
221
|
+
* Character threshold after which tool execution response are saved to a file in
|
|
222
|
+
* workbench. Default is 20k.
|
|
231
223
|
*/
|
|
232
|
-
|
|
224
|
+
auto_offload_threshold?: number;
|
|
233
225
|
|
|
234
226
|
/**
|
|
235
|
-
*
|
|
227
|
+
* Whether proxy execution is enabled in the workbench
|
|
236
228
|
*/
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export namespace Tools {
|
|
241
|
-
/**
|
|
242
|
-
* Tool filtering configuration
|
|
243
|
-
*/
|
|
244
|
-
export interface Filters {
|
|
245
|
-
/**
|
|
246
|
-
* Filter tools by specific tags
|
|
247
|
-
*/
|
|
248
|
-
tags?: Filters.Tags;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export namespace Filters {
|
|
252
|
-
/**
|
|
253
|
-
* Filter tools by specific tags
|
|
254
|
-
*/
|
|
255
|
-
export interface Tags {
|
|
256
|
-
/**
|
|
257
|
-
* Exclude tools that have these tags
|
|
258
|
-
*/
|
|
259
|
-
exclude?: Array<string>;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Only include tools that have these tags
|
|
263
|
-
*/
|
|
264
|
-
include?: Array<string>;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export interface Enabled {
|
|
269
|
-
enabled: Array<string>;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
export interface Disabled {
|
|
273
|
-
disabled: Array<string>;
|
|
274
|
-
}
|
|
229
|
+
proxy_execution_enabled?: boolean;
|
|
275
230
|
}
|
|
276
231
|
}
|
|
277
232
|
|
|
@@ -279,7 +234,7 @@ export namespace SessionCreateResponse {
|
|
|
279
234
|
/**
|
|
280
235
|
* The type of the MCP server. Can be http
|
|
281
236
|
*/
|
|
282
|
-
type: '
|
|
237
|
+
type: 'http';
|
|
283
238
|
|
|
284
239
|
/**
|
|
285
240
|
* The URL of the MCP server
|
|
@@ -310,6 +265,7 @@ export interface SessionRetrieveResponse {
|
|
|
310
265
|
| 'COMPOSIO_MANAGE_CONNECTIONS'
|
|
311
266
|
| 'COMPOSIO_REMOTE_WORKBENCH'
|
|
312
267
|
| 'COMPOSIO_REMOTE_BASH_TOOL'
|
|
268
|
+
| 'COMPOSIO_GET_TOOL_SCHEMAS'
|
|
313
269
|
>;
|
|
314
270
|
}
|
|
315
271
|
|
|
@@ -334,14 +290,16 @@ export namespace SessionRetrieveResponse {
|
|
|
334
290
|
connected_accounts?: { [key: string]: string };
|
|
335
291
|
|
|
336
292
|
/**
|
|
337
|
-
*
|
|
293
|
+
* Manage connections configuration
|
|
338
294
|
*/
|
|
339
|
-
|
|
295
|
+
manage_connections?: Config.ManageConnections;
|
|
340
296
|
|
|
341
297
|
/**
|
|
342
|
-
*
|
|
298
|
+
* MCP tool annotation hints for filtering tools. readOnlyHint: tool does not
|
|
299
|
+
* modify environment. destructiveHint: tool may perform destructive updates.
|
|
300
|
+
* idempotentHint: tool may interact with external entities.
|
|
343
301
|
*/
|
|
344
|
-
|
|
302
|
+
tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
|
|
345
303
|
|
|
346
304
|
/**
|
|
347
305
|
* Toolkit configuration - either enabled list or disabled list
|
|
@@ -349,45 +307,38 @@ export namespace SessionRetrieveResponse {
|
|
|
349
307
|
toolkits?: Config.Enabled | Config.Disabled;
|
|
350
308
|
|
|
351
309
|
/**
|
|
352
|
-
*
|
|
310
|
+
* Tool-level configuration per toolkit
|
|
353
311
|
*/
|
|
354
|
-
tools?: Config.
|
|
312
|
+
tools?: { [key: string]: Config.Enabled | Config.Disabled | Config.Tags };
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Workbench configuration
|
|
316
|
+
*/
|
|
317
|
+
workbench?: Config.Workbench;
|
|
355
318
|
}
|
|
356
319
|
|
|
357
320
|
export namespace Config {
|
|
358
321
|
/**
|
|
359
|
-
*
|
|
322
|
+
* Manage connections configuration
|
|
360
323
|
*/
|
|
361
|
-
export interface
|
|
324
|
+
export interface ManageConnections {
|
|
362
325
|
/**
|
|
363
|
-
*
|
|
326
|
+
* Custom callback URL for connected account auth flows
|
|
364
327
|
*/
|
|
365
|
-
|
|
328
|
+
callback_url?: string;
|
|
366
329
|
|
|
367
330
|
/**
|
|
368
|
-
*
|
|
369
|
-
*/
|
|
370
|
-
callback_uri?: string;
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Whether to auto-infer auth scopes from tools
|
|
331
|
+
* Whether to enable the connection manager for automatic connection handling
|
|
374
332
|
*/
|
|
375
|
-
|
|
333
|
+
enabled?: boolean;
|
|
376
334
|
}
|
|
377
335
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
export interface Execution {
|
|
382
|
-
/**
|
|
383
|
-
* Whether to allow proxy execute calls in the workbench
|
|
384
|
-
*/
|
|
385
|
-
proxy_execution_enabled?: boolean;
|
|
336
|
+
export interface Enabled {
|
|
337
|
+
enabled: Array<string>;
|
|
338
|
+
}
|
|
386
339
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
*/
|
|
390
|
-
timeout_seconds?: number;
|
|
340
|
+
export interface Disabled {
|
|
341
|
+
disabled: Array<string>;
|
|
391
342
|
}
|
|
392
343
|
|
|
393
344
|
export interface Enabled {
|
|
@@ -398,56 +349,24 @@ export namespace SessionRetrieveResponse {
|
|
|
398
349
|
disabled: Array<string>;
|
|
399
350
|
}
|
|
400
351
|
|
|
352
|
+
export interface Tags {
|
|
353
|
+
tags: Array<string>;
|
|
354
|
+
}
|
|
355
|
+
|
|
401
356
|
/**
|
|
402
|
-
*
|
|
357
|
+
* Workbench configuration
|
|
403
358
|
*/
|
|
404
|
-
export interface
|
|
359
|
+
export interface Workbench {
|
|
405
360
|
/**
|
|
406
|
-
*
|
|
361
|
+
* Character threshold after which tool execution response are saved to a file in
|
|
362
|
+
* workbench. Default is 20k.
|
|
407
363
|
*/
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* Tool-level overrides per toolkit
|
|
412
|
-
*/
|
|
413
|
-
overrides?: { [key: string]: Tools.Enabled | Tools.Disabled };
|
|
414
|
-
}
|
|
364
|
+
auto_offload_threshold?: number;
|
|
415
365
|
|
|
416
|
-
export namespace Tools {
|
|
417
366
|
/**
|
|
418
|
-
*
|
|
367
|
+
* Whether proxy execution is enabled in the workbench
|
|
419
368
|
*/
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* Filter tools by specific tags
|
|
423
|
-
*/
|
|
424
|
-
tags?: Filters.Tags;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
export namespace Filters {
|
|
428
|
-
/**
|
|
429
|
-
* Filter tools by specific tags
|
|
430
|
-
*/
|
|
431
|
-
export interface Tags {
|
|
432
|
-
/**
|
|
433
|
-
* Exclude tools that have these tags
|
|
434
|
-
*/
|
|
435
|
-
exclude?: Array<string>;
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Only include tools that have these tags
|
|
439
|
-
*/
|
|
440
|
-
include?: Array<string>;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
export interface Enabled {
|
|
445
|
-
enabled: Array<string>;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
export interface Disabled {
|
|
449
|
-
disabled: Array<string>;
|
|
450
|
-
}
|
|
369
|
+
proxy_execution_enabled?: boolean;
|
|
451
370
|
}
|
|
452
371
|
}
|
|
453
372
|
|
|
@@ -455,7 +374,7 @@ export namespace SessionRetrieveResponse {
|
|
|
455
374
|
/**
|
|
456
375
|
* The type of the MCP server. Can be http
|
|
457
376
|
*/
|
|
458
|
-
type: '
|
|
377
|
+
type: 'http';
|
|
459
378
|
|
|
460
379
|
/**
|
|
461
380
|
* The URL of the MCP server
|
|
@@ -527,6 +446,11 @@ export namespace SessionToolkitsResponse {
|
|
|
527
446
|
*/
|
|
528
447
|
enabled: boolean;
|
|
529
448
|
|
|
449
|
+
/**
|
|
450
|
+
* Whether the toolkit is no-auth
|
|
451
|
+
*/
|
|
452
|
+
is_no_auth: boolean;
|
|
453
|
+
|
|
530
454
|
/**
|
|
531
455
|
* Toolkit metadata
|
|
532
456
|
*/
|
|
@@ -636,13 +560,16 @@ export interface SessionCreateParams {
|
|
|
636
560
|
/**
|
|
637
561
|
* Configuration for connection management settings
|
|
638
562
|
*/
|
|
639
|
-
|
|
563
|
+
manage_connections?: SessionCreateParams.ManageConnections;
|
|
640
564
|
|
|
641
565
|
/**
|
|
642
|
-
*
|
|
643
|
-
*
|
|
566
|
+
* Global MCP tool annotation hints for filtering. readOnlyHint: tool does not
|
|
567
|
+
* modify environment. destructiveHint: tool may perform destructive updates.
|
|
568
|
+
* idempotentHint: repeated calls with same args have no additional effect.
|
|
569
|
+
* Toolkit-level tags override this. Toolkit enabled/disabled lists take precedence
|
|
570
|
+
* over tag filtering.
|
|
644
571
|
*/
|
|
645
|
-
|
|
572
|
+
tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
|
|
646
573
|
|
|
647
574
|
/**
|
|
648
575
|
* Toolkit configuration - specify either enabled toolkits (allowlist) or disabled
|
|
@@ -651,54 +578,37 @@ export interface SessionCreateParams {
|
|
|
651
578
|
toolkits?: SessionCreateParams.Enabled | SessionCreateParams.Disabled;
|
|
652
579
|
|
|
653
580
|
/**
|
|
654
|
-
*
|
|
581
|
+
* Tool-level configuration per toolkit - either specify enabled tools (whitelist),
|
|
582
|
+
* disabled tools (blacklist), or filter by MCP tags for each toolkit
|
|
583
|
+
*/
|
|
584
|
+
tools?: {
|
|
585
|
+
[key: string]: SessionCreateParams.Enabled | SessionCreateParams.Disabled | SessionCreateParams.Tags;
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Configuration for workbench behavior
|
|
655
590
|
*/
|
|
656
|
-
|
|
591
|
+
workbench?: SessionCreateParams.Workbench;
|
|
657
592
|
}
|
|
658
593
|
|
|
659
594
|
export namespace SessionCreateParams {
|
|
660
595
|
/**
|
|
661
596
|
* Configuration for connection management settings
|
|
662
597
|
*/
|
|
663
|
-
export interface
|
|
598
|
+
export interface ManageConnections {
|
|
664
599
|
/**
|
|
665
|
-
*
|
|
666
|
-
* true, we will provide a tool your agent can use to initiate connections to
|
|
667
|
-
* toolkits if it doesnt exist. If set to false, then you have to manage
|
|
668
|
-
* connections manually.
|
|
669
|
-
*/
|
|
670
|
-
auto_manage_connections?: boolean | null;
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* The URI to redirect to after a user completes authentication for a connected
|
|
600
|
+
* The URL to redirect to after a user completes authentication for a connected
|
|
674
601
|
* account. This allows you to handle the auth callback in your own application.
|
|
675
602
|
*/
|
|
676
|
-
|
|
603
|
+
callback_url?: string;
|
|
677
604
|
|
|
678
605
|
/**
|
|
679
|
-
*
|
|
680
|
-
*
|
|
681
|
-
*
|
|
682
|
-
|
|
683
|
-
infer_scopes_from_tools?: boolean | null;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
/**
|
|
687
|
-
* Configuration for workbench behavior including security restrictions and
|
|
688
|
-
* execution limits
|
|
689
|
-
*/
|
|
690
|
-
export interface Execution {
|
|
691
|
-
/**
|
|
692
|
-
* Whether to allow proxy execute calls in the workbench. If false, prevents
|
|
693
|
-
* arbitrary HTTP requests and destructive actions.
|
|
694
|
-
*/
|
|
695
|
-
proxy_execution_enabled?: boolean | null;
|
|
696
|
-
|
|
697
|
-
/**
|
|
698
|
-
* Maximum allowed execution time for workbench operations in seconds. If not
|
|
699
|
-
* specified, uses the default timeout.
|
|
606
|
+
* Whether to enable the connection manager for automatic connection handling. If
|
|
607
|
+
* true, we will provide a tool your agent can use to initiate connections to
|
|
608
|
+
* toolkits if it doesnt exist. If set to false, then you have to manage
|
|
609
|
+
* connections manually.
|
|
700
610
|
*/
|
|
701
|
-
|
|
611
|
+
enabled?: boolean | null;
|
|
702
612
|
}
|
|
703
613
|
|
|
704
614
|
/**
|
|
@@ -721,88 +631,57 @@ export namespace SessionCreateParams {
|
|
|
721
631
|
disabled: Array<string>;
|
|
722
632
|
}
|
|
723
633
|
|
|
724
|
-
|
|
725
|
-
* Configuration for tool overrides and filtering
|
|
726
|
-
*/
|
|
727
|
-
export interface Tools {
|
|
634
|
+
export interface Enabled {
|
|
728
635
|
/**
|
|
729
|
-
*
|
|
636
|
+
* Only these specific tools will be available for this toolkit
|
|
730
637
|
*/
|
|
731
|
-
|
|
638
|
+
enabled: Array<string>;
|
|
639
|
+
}
|
|
732
640
|
|
|
641
|
+
export interface Disabled {
|
|
733
642
|
/**
|
|
734
|
-
*
|
|
735
|
-
* disabled tools (blacklist) for each toolkit
|
|
643
|
+
* These specific tools will be disabled for this toolkit
|
|
736
644
|
*/
|
|
737
|
-
|
|
645
|
+
disabled: Array<string>;
|
|
738
646
|
}
|
|
739
647
|
|
|
740
|
-
export
|
|
648
|
+
export interface Tags {
|
|
741
649
|
/**
|
|
742
|
-
*
|
|
650
|
+
* MCP tags to filter tools for this toolkit. Only tools with these tags will be
|
|
651
|
+
* available.
|
|
743
652
|
*/
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
* Filter tools by tags such as read_only_hint, non_destructive_hint,
|
|
747
|
-
* open_world_hint, idempotent_hint. Use include to only show tools with specific
|
|
748
|
-
* tags, or exclude to hide tools with specific tags.
|
|
749
|
-
*/
|
|
750
|
-
tags?: Filters.Tags;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
export namespace Filters {
|
|
754
|
-
/**
|
|
755
|
-
* Filter tools by tags such as read_only_hint, non_destructive_hint,
|
|
756
|
-
* open_world_hint, idempotent_hint. Use include to only show tools with specific
|
|
757
|
-
* tags, or exclude to hide tools with specific tags.
|
|
758
|
-
*/
|
|
759
|
-
export interface Tags {
|
|
760
|
-
/**
|
|
761
|
-
* Exclude tools that have any of these tags. Tools with any of these tags will be
|
|
762
|
-
* filtered out.
|
|
763
|
-
*/
|
|
764
|
-
exclude?: Array<string>;
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* Only include tools that have these tags. Tools must have at least one of these
|
|
768
|
-
* tags to be included.
|
|
769
|
-
*/
|
|
770
|
-
include?: Array<string>;
|
|
771
|
-
}
|
|
772
|
-
}
|
|
653
|
+
tags: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
|
|
654
|
+
}
|
|
773
655
|
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
656
|
+
/**
|
|
657
|
+
* Configuration for workbench behavior
|
|
658
|
+
*/
|
|
659
|
+
export interface Workbench {
|
|
660
|
+
/**
|
|
661
|
+
* Character threshold for automatic offloading. When workbench response exceeds
|
|
662
|
+
* this threshold, it will be automatically offloaded. Default is picked
|
|
663
|
+
* automatically based on the response size.
|
|
664
|
+
*/
|
|
665
|
+
auto_offload_threshold?: number;
|
|
780
666
|
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
}
|
|
667
|
+
/**
|
|
668
|
+
* Whether proxy execution is enabled. When enabled, workbench can call URLs and
|
|
669
|
+
* APIs directly.
|
|
670
|
+
*/
|
|
671
|
+
proxy_execution_enabled?: boolean;
|
|
787
672
|
}
|
|
788
673
|
}
|
|
789
674
|
|
|
790
675
|
export interface SessionExecuteParams {
|
|
791
676
|
/**
|
|
792
|
-
*
|
|
677
|
+
* The unique slug identifier of the tool to execute
|
|
793
678
|
*/
|
|
794
679
|
tool_slug: string;
|
|
795
680
|
|
|
796
681
|
/**
|
|
797
|
-
*
|
|
682
|
+
* The arguments required by the tool
|
|
798
683
|
*/
|
|
799
684
|
arguments?: { [key: string]: unknown };
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* Header param: Session access key for sandbox/workbench authentication.
|
|
803
|
-
* Alternative to x-api-key for internal tool router endpoints.
|
|
804
|
-
*/
|
|
805
|
-
'x-session-access-key'?: string;
|
|
806
685
|
}
|
|
807
686
|
|
|
808
687
|
export interface SessionLinkParams {
|
|
@@ -826,6 +705,12 @@ export interface SessionToolkitsParams {
|
|
|
826
705
|
*/
|
|
827
706
|
cursor?: string;
|
|
828
707
|
|
|
708
|
+
/**
|
|
709
|
+
* Whether to filter by connected toolkits. If provided, only connected toolkits
|
|
710
|
+
* will be returned.
|
|
711
|
+
*/
|
|
712
|
+
is_connected?: boolean | null;
|
|
713
|
+
|
|
829
714
|
/**
|
|
830
715
|
* Number of items per page, max allowed is 1000
|
|
831
716
|
*/
|
|
@@ -21,10 +21,10 @@ export class ToolRouter extends APIResource {
|
|
|
21
21
|
session: SessionAPI.Session = new SessionAPI.Session(this._client);
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* Creates a new session for the tool router lab feature. This endpoint
|
|
25
|
-
* a new session with specified toolkits and their authentication
|
|
26
|
-
* The session provides an isolated environment for testing and
|
|
27
|
-
* routing logic with scoped MCP server access.
|
|
24
|
+
* Creates a new session for the tool router lab feature (Legacy). This endpoint
|
|
25
|
+
* initializes a new session with specified toolkits and their authentication
|
|
26
|
+
* configurations. The session provides an isolated environment for testing and
|
|
27
|
+
* managing tool routing logic with scoped MCP server access.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* ```ts
|
|
@@ -39,11 +39,8 @@ export class Toolkits extends APIResource {
|
|
|
39
39
|
* purpose when using the toolkit listing endpoint. Categories help organize
|
|
40
40
|
* toolkits into logical groups based on their functionality or industry focus.
|
|
41
41
|
*/
|
|
42
|
-
retrieveCategories(
|
|
43
|
-
|
|
44
|
-
options?: RequestOptions,
|
|
45
|
-
): APIPromise<ToolkitRetrieveCategoriesResponse> {
|
|
46
|
-
return this._client.get('/api/v3/toolkits/categories', { query, ...options });
|
|
42
|
+
retrieveCategories(options?: RequestOptions): APIPromise<ToolkitRetrieveCategoriesResponse> {
|
|
43
|
+
return this._client.get('/api/v3/toolkits/categories', options);
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
46
|
|
|
@@ -358,7 +355,7 @@ export namespace ToolkitListResponse {
|
|
|
358
355
|
*/
|
|
359
356
|
export interface Item {
|
|
360
357
|
/**
|
|
361
|
-
* Deprecated toolkit ID
|
|
358
|
+
* @deprecated Deprecated toolkit ID
|
|
362
359
|
*/
|
|
363
360
|
deprecated: Item.Deprecated;
|
|
364
361
|
|
|
@@ -401,7 +398,7 @@ export namespace ToolkitListResponse {
|
|
|
401
398
|
|
|
402
399
|
export namespace Item {
|
|
403
400
|
/**
|
|
404
|
-
* Deprecated toolkit ID
|
|
401
|
+
* @deprecated Deprecated toolkit ID
|
|
405
402
|
*/
|
|
406
403
|
export interface Deprecated {
|
|
407
404
|
toolkitId: string;
|
|
@@ -544,13 +541,6 @@ export interface ToolkitListParams {
|
|
|
544
541
|
sort_by?: 'usage' | 'alphabetically';
|
|
545
542
|
}
|
|
546
543
|
|
|
547
|
-
export interface ToolkitRetrieveCategoriesParams {
|
|
548
|
-
/**
|
|
549
|
-
* Cache control parameter
|
|
550
|
-
*/
|
|
551
|
-
cache?: string;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
544
|
export declare namespace Toolkits {
|
|
555
545
|
export {
|
|
556
546
|
type ToolkitRetrieveResponse as ToolkitRetrieveResponse,
|
|
@@ -558,6 +548,5 @@ export declare namespace Toolkits {
|
|
|
558
548
|
type ToolkitRetrieveCategoriesResponse as ToolkitRetrieveCategoriesResponse,
|
|
559
549
|
type ToolkitRetrieveParams as ToolkitRetrieveParams,
|
|
560
550
|
type ToolkitListParams as ToolkitListParams,
|
|
561
|
-
type ToolkitRetrieveCategoriesParams as ToolkitRetrieveCategoriesParams,
|
|
562
551
|
};
|
|
563
552
|
}
|