@composio/client 0.1.0-alpha.47 → 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 +20 -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 +118 -226
- package/resources/tool-router/session.d.mts.map +1 -1
- package/resources/tool-router/session.d.ts +118 -226
- 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 +120 -248
- 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
|
/**
|
|
@@ -159,14 +150,16 @@ export namespace SessionCreateResponse {
|
|
|
159
150
|
connected_accounts?: { [key: string]: string };
|
|
160
151
|
|
|
161
152
|
/**
|
|
162
|
-
*
|
|
153
|
+
* Manage connections configuration
|
|
163
154
|
*/
|
|
164
|
-
|
|
155
|
+
manage_connections?: Config.ManageConnections;
|
|
165
156
|
|
|
166
157
|
/**
|
|
167
|
-
*
|
|
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.
|
|
168
161
|
*/
|
|
169
|
-
|
|
162
|
+
tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
|
|
170
163
|
|
|
171
164
|
/**
|
|
172
165
|
* Toolkit configuration - either enabled list or disabled list
|
|
@@ -174,45 +167,38 @@ export namespace SessionCreateResponse {
|
|
|
174
167
|
toolkits?: Config.Enabled | Config.Disabled;
|
|
175
168
|
|
|
176
169
|
/**
|
|
177
|
-
*
|
|
170
|
+
* Tool-level configuration per toolkit
|
|
178
171
|
*/
|
|
179
|
-
tools?: Config.
|
|
172
|
+
tools?: { [key: string]: Config.Enabled | Config.Disabled | Config.Tags };
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Workbench configuration
|
|
176
|
+
*/
|
|
177
|
+
workbench?: Config.Workbench;
|
|
180
178
|
}
|
|
181
179
|
|
|
182
180
|
export namespace Config {
|
|
183
181
|
/**
|
|
184
|
-
*
|
|
182
|
+
* Manage connections configuration
|
|
185
183
|
*/
|
|
186
|
-
export interface
|
|
187
|
-
/**
|
|
188
|
-
* Whether to enable the connection manager for automatic connection handling
|
|
189
|
-
*/
|
|
190
|
-
auto_manage_connections?: boolean;
|
|
191
|
-
|
|
184
|
+
export interface ManageConnections {
|
|
192
185
|
/**
|
|
193
186
|
* Custom callback URL for connected account auth flows
|
|
194
187
|
*/
|
|
195
188
|
callback_url?: string;
|
|
196
189
|
|
|
197
190
|
/**
|
|
198
|
-
* Whether to
|
|
191
|
+
* Whether to enable the connection manager for automatic connection handling
|
|
199
192
|
*/
|
|
200
|
-
|
|
193
|
+
enabled?: boolean;
|
|
201
194
|
}
|
|
202
195
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
export interface Execution {
|
|
207
|
-
/**
|
|
208
|
-
* Whether to allow proxy execute calls in the workbench
|
|
209
|
-
*/
|
|
210
|
-
proxy_execution_enabled?: boolean;
|
|
196
|
+
export interface Enabled {
|
|
197
|
+
enabled: Array<string>;
|
|
198
|
+
}
|
|
211
199
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
*/
|
|
215
|
-
timeout_seconds?: number;
|
|
200
|
+
export interface Disabled {
|
|
201
|
+
disabled: Array<string>;
|
|
216
202
|
}
|
|
217
203
|
|
|
218
204
|
export interface Enabled {
|
|
@@ -223,56 +209,24 @@ export namespace SessionCreateResponse {
|
|
|
223
209
|
disabled: Array<string>;
|
|
224
210
|
}
|
|
225
211
|
|
|
212
|
+
export interface Tags {
|
|
213
|
+
tags: Array<string>;
|
|
214
|
+
}
|
|
215
|
+
|
|
226
216
|
/**
|
|
227
|
-
*
|
|
217
|
+
* Workbench configuration
|
|
228
218
|
*/
|
|
229
|
-
export interface
|
|
219
|
+
export interface Workbench {
|
|
230
220
|
/**
|
|
231
|
-
*
|
|
221
|
+
* Character threshold after which tool execution response are saved to a file in
|
|
222
|
+
* workbench. Default is 20k.
|
|
232
223
|
*/
|
|
233
|
-
|
|
224
|
+
auto_offload_threshold?: number;
|
|
234
225
|
|
|
235
226
|
/**
|
|
236
|
-
*
|
|
227
|
+
* Whether proxy execution is enabled in the workbench
|
|
237
228
|
*/
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export namespace Tools {
|
|
242
|
-
/**
|
|
243
|
-
* Tool filtering configuration
|
|
244
|
-
*/
|
|
245
|
-
export interface Filters {
|
|
246
|
-
/**
|
|
247
|
-
* Filter tools by specific tags
|
|
248
|
-
*/
|
|
249
|
-
tags?: Filters.Tags;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
export namespace Filters {
|
|
253
|
-
/**
|
|
254
|
-
* Filter tools by specific tags
|
|
255
|
-
*/
|
|
256
|
-
export interface Tags {
|
|
257
|
-
/**
|
|
258
|
-
* Exclude tools that have these tags
|
|
259
|
-
*/
|
|
260
|
-
exclude?: Array<string>;
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Only include tools that have these tags
|
|
264
|
-
*/
|
|
265
|
-
include?: Array<string>;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
export interface Enabled {
|
|
270
|
-
enabled: Array<string>;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
export interface Disabled {
|
|
274
|
-
disabled: Array<string>;
|
|
275
|
-
}
|
|
229
|
+
proxy_execution_enabled?: boolean;
|
|
276
230
|
}
|
|
277
231
|
}
|
|
278
232
|
|
|
@@ -336,14 +290,16 @@ export namespace SessionRetrieveResponse {
|
|
|
336
290
|
connected_accounts?: { [key: string]: string };
|
|
337
291
|
|
|
338
292
|
/**
|
|
339
|
-
*
|
|
293
|
+
* Manage connections configuration
|
|
340
294
|
*/
|
|
341
|
-
|
|
295
|
+
manage_connections?: Config.ManageConnections;
|
|
342
296
|
|
|
343
297
|
/**
|
|
344
|
-
*
|
|
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.
|
|
345
301
|
*/
|
|
346
|
-
|
|
302
|
+
tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
|
|
347
303
|
|
|
348
304
|
/**
|
|
349
305
|
* Toolkit configuration - either enabled list or disabled list
|
|
@@ -351,45 +307,38 @@ export namespace SessionRetrieveResponse {
|
|
|
351
307
|
toolkits?: Config.Enabled | Config.Disabled;
|
|
352
308
|
|
|
353
309
|
/**
|
|
354
|
-
*
|
|
310
|
+
* Tool-level configuration per toolkit
|
|
355
311
|
*/
|
|
356
|
-
tools?: Config.
|
|
312
|
+
tools?: { [key: string]: Config.Enabled | Config.Disabled | Config.Tags };
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Workbench configuration
|
|
316
|
+
*/
|
|
317
|
+
workbench?: Config.Workbench;
|
|
357
318
|
}
|
|
358
319
|
|
|
359
320
|
export namespace Config {
|
|
360
321
|
/**
|
|
361
|
-
*
|
|
322
|
+
* Manage connections configuration
|
|
362
323
|
*/
|
|
363
|
-
export interface
|
|
364
|
-
/**
|
|
365
|
-
* Whether to enable the connection manager for automatic connection handling
|
|
366
|
-
*/
|
|
367
|
-
auto_manage_connections?: boolean;
|
|
368
|
-
|
|
324
|
+
export interface ManageConnections {
|
|
369
325
|
/**
|
|
370
326
|
* Custom callback URL for connected account auth flows
|
|
371
327
|
*/
|
|
372
328
|
callback_url?: string;
|
|
373
329
|
|
|
374
330
|
/**
|
|
375
|
-
* Whether to
|
|
331
|
+
* Whether to enable the connection manager for automatic connection handling
|
|
376
332
|
*/
|
|
377
|
-
|
|
333
|
+
enabled?: boolean;
|
|
378
334
|
}
|
|
379
335
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
export interface Execution {
|
|
384
|
-
/**
|
|
385
|
-
* Whether to allow proxy execute calls in the workbench
|
|
386
|
-
*/
|
|
387
|
-
proxy_execution_enabled?: boolean;
|
|
336
|
+
export interface Enabled {
|
|
337
|
+
enabled: Array<string>;
|
|
338
|
+
}
|
|
388
339
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
*/
|
|
392
|
-
timeout_seconds?: number;
|
|
340
|
+
export interface Disabled {
|
|
341
|
+
disabled: Array<string>;
|
|
393
342
|
}
|
|
394
343
|
|
|
395
344
|
export interface Enabled {
|
|
@@ -400,56 +349,24 @@ export namespace SessionRetrieveResponse {
|
|
|
400
349
|
disabled: Array<string>;
|
|
401
350
|
}
|
|
402
351
|
|
|
352
|
+
export interface Tags {
|
|
353
|
+
tags: Array<string>;
|
|
354
|
+
}
|
|
355
|
+
|
|
403
356
|
/**
|
|
404
|
-
*
|
|
357
|
+
* Workbench configuration
|
|
405
358
|
*/
|
|
406
|
-
export interface
|
|
359
|
+
export interface Workbench {
|
|
407
360
|
/**
|
|
408
|
-
*
|
|
361
|
+
* Character threshold after which tool execution response are saved to a file in
|
|
362
|
+
* workbench. Default is 20k.
|
|
409
363
|
*/
|
|
410
|
-
|
|
364
|
+
auto_offload_threshold?: number;
|
|
411
365
|
|
|
412
366
|
/**
|
|
413
|
-
*
|
|
367
|
+
* Whether proxy execution is enabled in the workbench
|
|
414
368
|
*/
|
|
415
|
-
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
export namespace Tools {
|
|
419
|
-
/**
|
|
420
|
-
* Tool filtering configuration
|
|
421
|
-
*/
|
|
422
|
-
export interface Filters {
|
|
423
|
-
/**
|
|
424
|
-
* Filter tools by specific tags
|
|
425
|
-
*/
|
|
426
|
-
tags?: Filters.Tags;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
export namespace Filters {
|
|
430
|
-
/**
|
|
431
|
-
* Filter tools by specific tags
|
|
432
|
-
*/
|
|
433
|
-
export interface Tags {
|
|
434
|
-
/**
|
|
435
|
-
* Exclude tools that have these tags
|
|
436
|
-
*/
|
|
437
|
-
exclude?: Array<string>;
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* Only include tools that have these tags
|
|
441
|
-
*/
|
|
442
|
-
include?: Array<string>;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
export interface Enabled {
|
|
447
|
-
enabled: Array<string>;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
export interface Disabled {
|
|
451
|
-
disabled: Array<string>;
|
|
452
|
-
}
|
|
369
|
+
proxy_execution_enabled?: boolean;
|
|
453
370
|
}
|
|
454
371
|
}
|
|
455
372
|
|
|
@@ -643,13 +560,16 @@ export interface SessionCreateParams {
|
|
|
643
560
|
/**
|
|
644
561
|
* Configuration for connection management settings
|
|
645
562
|
*/
|
|
646
|
-
|
|
563
|
+
manage_connections?: SessionCreateParams.ManageConnections;
|
|
647
564
|
|
|
648
565
|
/**
|
|
649
|
-
*
|
|
650
|
-
*
|
|
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.
|
|
651
571
|
*/
|
|
652
|
-
|
|
572
|
+
tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
|
|
653
573
|
|
|
654
574
|
/**
|
|
655
575
|
* Toolkit configuration - specify either enabled toolkits (allowlist) or disabled
|
|
@@ -658,24 +578,24 @@ export interface SessionCreateParams {
|
|
|
658
578
|
toolkits?: SessionCreateParams.Enabled | SessionCreateParams.Disabled;
|
|
659
579
|
|
|
660
580
|
/**
|
|
661
|
-
*
|
|
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
|
|
662
590
|
*/
|
|
663
|
-
|
|
591
|
+
workbench?: SessionCreateParams.Workbench;
|
|
664
592
|
}
|
|
665
593
|
|
|
666
594
|
export namespace SessionCreateParams {
|
|
667
595
|
/**
|
|
668
596
|
* Configuration for connection management settings
|
|
669
597
|
*/
|
|
670
|
-
export interface
|
|
671
|
-
/**
|
|
672
|
-
* Whether to enable the connection manager for automatic connection handling. If
|
|
673
|
-
* true, we will provide a tool your agent can use to initiate connections to
|
|
674
|
-
* toolkits if it doesnt exist. If set to false, then you have to manage
|
|
675
|
-
* connections manually.
|
|
676
|
-
*/
|
|
677
|
-
auto_manage_connections?: boolean | null;
|
|
678
|
-
|
|
598
|
+
export interface ManageConnections {
|
|
679
599
|
/**
|
|
680
600
|
* The URL to redirect to after a user completes authentication for a connected
|
|
681
601
|
* account. This allows you to handle the auth callback in your own application.
|
|
@@ -683,29 +603,12 @@ export namespace SessionCreateParams {
|
|
|
683
603
|
callback_url?: string;
|
|
684
604
|
|
|
685
605
|
/**
|
|
686
|
-
*
|
|
687
|
-
*
|
|
688
|
-
*
|
|
689
|
-
|
|
690
|
-
infer_scopes_from_tools?: boolean | null;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* Configuration for workbench behavior including security restrictions and
|
|
695
|
-
* execution limits
|
|
696
|
-
*/
|
|
697
|
-
export interface Execution {
|
|
698
|
-
/**
|
|
699
|
-
* Whether to allow proxy execute calls in the workbench. If false, prevents
|
|
700
|
-
* arbitrary HTTP requests and destructive actions.
|
|
701
|
-
*/
|
|
702
|
-
proxy_execution_enabled?: boolean | null;
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
* Maximum allowed execution time for workbench operations in seconds. If not
|
|
706
|
-
* 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.
|
|
707
610
|
*/
|
|
708
|
-
|
|
611
|
+
enabled?: boolean | null;
|
|
709
612
|
}
|
|
710
613
|
|
|
711
614
|
/**
|
|
@@ -728,88 +631,57 @@ export namespace SessionCreateParams {
|
|
|
728
631
|
disabled: Array<string>;
|
|
729
632
|
}
|
|
730
633
|
|
|
731
|
-
|
|
732
|
-
* Configuration for tool overrides and filtering
|
|
733
|
-
*/
|
|
734
|
-
export interface Tools {
|
|
634
|
+
export interface Enabled {
|
|
735
635
|
/**
|
|
736
|
-
*
|
|
636
|
+
* Only these specific tools will be available for this toolkit
|
|
737
637
|
*/
|
|
738
|
-
|
|
638
|
+
enabled: Array<string>;
|
|
639
|
+
}
|
|
739
640
|
|
|
641
|
+
export interface Disabled {
|
|
740
642
|
/**
|
|
741
|
-
*
|
|
742
|
-
* disabled tools (blacklist) for each toolkit
|
|
643
|
+
* These specific tools will be disabled for this toolkit
|
|
743
644
|
*/
|
|
744
|
-
|
|
645
|
+
disabled: Array<string>;
|
|
745
646
|
}
|
|
746
647
|
|
|
747
|
-
export
|
|
648
|
+
export interface Tags {
|
|
748
649
|
/**
|
|
749
|
-
*
|
|
650
|
+
* MCP tags to filter tools for this toolkit. Only tools with these tags will be
|
|
651
|
+
* available.
|
|
750
652
|
*/
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
* Filter tools by tags such as read_only_hint, non_destructive_hint,
|
|
754
|
-
* open_world_hint, idempotent_hint. Use include to only show tools with specific
|
|
755
|
-
* tags, or exclude to hide tools with specific tags.
|
|
756
|
-
*/
|
|
757
|
-
tags?: Filters.Tags;
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
export namespace Filters {
|
|
761
|
-
/**
|
|
762
|
-
* Filter tools by tags such as read_only_hint, non_destructive_hint,
|
|
763
|
-
* open_world_hint, idempotent_hint. Use include to only show tools with specific
|
|
764
|
-
* tags, or exclude to hide tools with specific tags.
|
|
765
|
-
*/
|
|
766
|
-
export interface Tags {
|
|
767
|
-
/**
|
|
768
|
-
* Exclude tools that have any of these tags. Tools with any of these tags will be
|
|
769
|
-
* filtered out.
|
|
770
|
-
*/
|
|
771
|
-
exclude?: Array<string>;
|
|
772
|
-
|
|
773
|
-
/**
|
|
774
|
-
* Only include tools that have these tags. Tools must have at least one of these
|
|
775
|
-
* tags to be included.
|
|
776
|
-
*/
|
|
777
|
-
include?: Array<string>;
|
|
778
|
-
}
|
|
779
|
-
}
|
|
653
|
+
tags: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
|
|
654
|
+
}
|
|
780
655
|
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
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;
|
|
787
666
|
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
}
|
|
667
|
+
/**
|
|
668
|
+
* Whether proxy execution is enabled. When enabled, workbench can call URLs and
|
|
669
|
+
* APIs directly.
|
|
670
|
+
*/
|
|
671
|
+
proxy_execution_enabled?: boolean;
|
|
794
672
|
}
|
|
795
673
|
}
|
|
796
674
|
|
|
797
675
|
export interface SessionExecuteParams {
|
|
798
676
|
/**
|
|
799
|
-
*
|
|
677
|
+
* The unique slug identifier of the tool to execute
|
|
800
678
|
*/
|
|
801
679
|
tool_slug: string;
|
|
802
680
|
|
|
803
681
|
/**
|
|
804
|
-
*
|
|
682
|
+
* The arguments required by the tool
|
|
805
683
|
*/
|
|
806
684
|
arguments?: { [key: string]: unknown };
|
|
807
|
-
|
|
808
|
-
/**
|
|
809
|
-
* Header param: Session access key for sandbox/workbench authentication.
|
|
810
|
-
* Alternative to x-api-key for internal tool router endpoints.
|
|
811
|
-
*/
|
|
812
|
-
'x-session-access-key'?: string;
|
|
813
685
|
}
|
|
814
686
|
|
|
815
687
|
export interface SessionLinkParams {
|
|
@@ -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
|
}
|
|
@@ -207,12 +207,12 @@ export interface TriggerInstanceListActiveParams {
|
|
|
207
207
|
cursor?: string;
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
|
-
* Array of auth config UUIDs to filter triggers by
|
|
210
|
+
* @deprecated Array of auth config UUIDs to filter triggers by
|
|
211
211
|
*/
|
|
212
212
|
deprecatedAuthConfigUuids?: Array<string> | null;
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
|
-
* Array of connected account UUIDs to filter triggers by
|
|
215
|
+
* @deprecated Array of connected account UUIDs to filter triggers by
|
|
216
216
|
*/
|
|
217
217
|
deprecatedConnectedAccountUuids?: Array<string> | null;
|
|
218
218
|
|
|
@@ -232,8 +232,7 @@ export interface TriggerInstanceListActiveParams {
|
|
|
232
232
|
show_disabled?: boolean | null;
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
|
-
* @deprecated DEPRECATED:
|
|
236
|
-
* Please use show_disabled instead.
|
|
235
|
+
* @deprecated DEPRECATED: Use show_disabled instead
|
|
237
236
|
*/
|
|
238
237
|
showDisabled?: boolean | null;
|
|
239
238
|
|
|
@@ -284,12 +283,14 @@ export interface TriggerInstanceUpsertParams {
|
|
|
284
283
|
trigger_config?: { [key: string]: unknown };
|
|
285
284
|
|
|
286
285
|
/**
|
|
287
|
-
*
|
|
286
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
287
|
+
* Please use trigger_config instead.
|
|
288
288
|
*/
|
|
289
289
|
triggerConfig?: { [key: string]: unknown };
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
|
-
*
|
|
292
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
293
|
+
* Please use toolkit_versions instead.
|
|
293
294
|
*/
|
|
294
295
|
version?: string;
|
|
295
296
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.48'; // 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.48";
|
|
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.48";
|
|
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.48'; // 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.48'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|