@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
|
@@ -43,7 +43,7 @@ export declare class Session extends APIResource {
|
|
|
43
43
|
* );
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
execute(sessionID: string,
|
|
46
|
+
execute(sessionID: string, body: SessionExecuteParams, options?: RequestOptions): APIPromise<SessionExecuteResponse>;
|
|
47
47
|
/**
|
|
48
48
|
* Initiates an authentication link session for a specific toolkit within a tool
|
|
49
49
|
* router session. Returns a link token and redirect URL that users can use to
|
|
@@ -85,7 +85,7 @@ export interface SessionCreateResponse {
|
|
|
85
85
|
/**
|
|
86
86
|
* List of available tools in this session
|
|
87
87
|
*/
|
|
88
|
-
tool_router_tools: Array<'COMPOSIO_SEARCH_TOOLS' | 'COMPOSIO_MULTI_EXECUTE_TOOL' | 'COMPOSIO_MANAGE_CONNECTIONS' | 'COMPOSIO_REMOTE_WORKBENCH' | 'COMPOSIO_REMOTE_BASH_TOOL'>;
|
|
88
|
+
tool_router_tools: Array<'COMPOSIO_SEARCH_TOOLS' | 'COMPOSIO_MULTI_EXECUTE_TOOL' | 'COMPOSIO_MANAGE_CONNECTIONS' | 'COMPOSIO_REMOTE_WORKBENCH' | 'COMPOSIO_REMOTE_BASH_TOOL' | 'COMPOSIO_GET_TOOL_SCHEMAS'>;
|
|
89
89
|
}
|
|
90
90
|
export declare namespace SessionCreateResponse {
|
|
91
91
|
/**
|
|
@@ -109,52 +109,49 @@ export declare namespace SessionCreateResponse {
|
|
|
109
109
|
[key: string]: string;
|
|
110
110
|
};
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Manage connections configuration
|
|
113
113
|
*/
|
|
114
|
-
|
|
114
|
+
manage_connections?: Config.ManageConnections;
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
116
|
+
* MCP tool annotation hints for filtering tools. readOnlyHint: tool does not
|
|
117
|
+
* modify environment. destructiveHint: tool may perform destructive updates.
|
|
118
|
+
* idempotentHint: tool may interact with external entities.
|
|
117
119
|
*/
|
|
118
|
-
|
|
120
|
+
tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
|
|
119
121
|
/**
|
|
120
122
|
* Toolkit configuration - either enabled list or disabled list
|
|
121
123
|
*/
|
|
122
124
|
toolkits?: Config.Enabled | Config.Disabled;
|
|
123
125
|
/**
|
|
124
|
-
*
|
|
126
|
+
* Tool-level configuration per toolkit
|
|
125
127
|
*/
|
|
126
|
-
tools?:
|
|
128
|
+
tools?: {
|
|
129
|
+
[key: string]: Config.Enabled | Config.Disabled | Config.Tags;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Workbench configuration
|
|
133
|
+
*/
|
|
134
|
+
workbench?: Config.Workbench;
|
|
127
135
|
}
|
|
128
136
|
namespace Config {
|
|
129
137
|
/**
|
|
130
|
-
*
|
|
138
|
+
* Manage connections configuration
|
|
131
139
|
*/
|
|
132
|
-
interface
|
|
133
|
-
/**
|
|
134
|
-
* Whether to enable the connection manager for automatic connection handling
|
|
135
|
-
*/
|
|
136
|
-
auto_manage_connections?: boolean;
|
|
140
|
+
interface ManageConnections {
|
|
137
141
|
/**
|
|
138
|
-
* Custom callback
|
|
142
|
+
* Custom callback URL for connected account auth flows
|
|
139
143
|
*/
|
|
140
|
-
|
|
144
|
+
callback_url?: string;
|
|
141
145
|
/**
|
|
142
|
-
* Whether to
|
|
146
|
+
* Whether to enable the connection manager for automatic connection handling
|
|
143
147
|
*/
|
|
144
|
-
|
|
148
|
+
enabled?: boolean;
|
|
145
149
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
interface
|
|
150
|
-
|
|
151
|
-
* Whether to allow proxy execute calls in the workbench
|
|
152
|
-
*/
|
|
153
|
-
proxy_execution_enabled?: boolean;
|
|
154
|
-
/**
|
|
155
|
-
* Maximum execution time for workbench operations in seconds
|
|
156
|
-
*/
|
|
157
|
-
timeout_seconds?: number;
|
|
150
|
+
interface Enabled {
|
|
151
|
+
enabled: Array<string>;
|
|
152
|
+
}
|
|
153
|
+
interface Disabled {
|
|
154
|
+
disabled: Array<string>;
|
|
158
155
|
}
|
|
159
156
|
interface Enabled {
|
|
160
157
|
enabled: Array<string>;
|
|
@@ -162,59 +159,29 @@ export declare namespace SessionCreateResponse {
|
|
|
162
159
|
interface Disabled {
|
|
163
160
|
disabled: Array<string>;
|
|
164
161
|
}
|
|
162
|
+
interface Tags {
|
|
163
|
+
tags: Array<string>;
|
|
164
|
+
}
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* Workbench configuration
|
|
167
167
|
*/
|
|
168
|
-
interface
|
|
168
|
+
interface Workbench {
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* Character threshold after which tool execution response are saved to a file in
|
|
171
|
+
* workbench. Default is 20k.
|
|
171
172
|
*/
|
|
172
|
-
|
|
173
|
+
auto_offload_threshold?: number;
|
|
173
174
|
/**
|
|
174
|
-
*
|
|
175
|
+
* Whether proxy execution is enabled in the workbench
|
|
175
176
|
*/
|
|
176
|
-
|
|
177
|
-
[key: string]: Tools.Enabled | Tools.Disabled;
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
namespace Tools {
|
|
181
|
-
/**
|
|
182
|
-
* Tool filtering configuration
|
|
183
|
-
*/
|
|
184
|
-
interface Filters {
|
|
185
|
-
/**
|
|
186
|
-
* Filter tools by specific tags
|
|
187
|
-
*/
|
|
188
|
-
tags?: Filters.Tags;
|
|
189
|
-
}
|
|
190
|
-
namespace Filters {
|
|
191
|
-
/**
|
|
192
|
-
* Filter tools by specific tags
|
|
193
|
-
*/
|
|
194
|
-
interface Tags {
|
|
195
|
-
/**
|
|
196
|
-
* Exclude tools that have these tags
|
|
197
|
-
*/
|
|
198
|
-
exclude?: Array<string>;
|
|
199
|
-
/**
|
|
200
|
-
* Only include tools that have these tags
|
|
201
|
-
*/
|
|
202
|
-
include?: Array<string>;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
interface Enabled {
|
|
206
|
-
enabled: Array<string>;
|
|
207
|
-
}
|
|
208
|
-
interface Disabled {
|
|
209
|
-
disabled: Array<string>;
|
|
210
|
-
}
|
|
177
|
+
proxy_execution_enabled?: boolean;
|
|
211
178
|
}
|
|
212
179
|
}
|
|
213
180
|
interface Mcp {
|
|
214
181
|
/**
|
|
215
182
|
* The type of the MCP server. Can be http
|
|
216
183
|
*/
|
|
217
|
-
type: '
|
|
184
|
+
type: 'http';
|
|
218
185
|
/**
|
|
219
186
|
* The URL of the MCP server
|
|
220
187
|
*/
|
|
@@ -234,7 +201,7 @@ export interface SessionRetrieveResponse {
|
|
|
234
201
|
/**
|
|
235
202
|
* List of available tools in this session
|
|
236
203
|
*/
|
|
237
|
-
tool_router_tools: Array<'COMPOSIO_SEARCH_TOOLS' | 'COMPOSIO_MULTI_EXECUTE_TOOL' | 'COMPOSIO_MANAGE_CONNECTIONS' | 'COMPOSIO_REMOTE_WORKBENCH' | 'COMPOSIO_REMOTE_BASH_TOOL'>;
|
|
204
|
+
tool_router_tools: Array<'COMPOSIO_SEARCH_TOOLS' | 'COMPOSIO_MULTI_EXECUTE_TOOL' | 'COMPOSIO_MANAGE_CONNECTIONS' | 'COMPOSIO_REMOTE_WORKBENCH' | 'COMPOSIO_REMOTE_BASH_TOOL' | 'COMPOSIO_GET_TOOL_SCHEMAS'>;
|
|
238
205
|
}
|
|
239
206
|
export declare namespace SessionRetrieveResponse {
|
|
240
207
|
/**
|
|
@@ -258,52 +225,49 @@ export declare namespace SessionRetrieveResponse {
|
|
|
258
225
|
[key: string]: string;
|
|
259
226
|
};
|
|
260
227
|
/**
|
|
261
|
-
*
|
|
228
|
+
* Manage connections configuration
|
|
262
229
|
*/
|
|
263
|
-
|
|
230
|
+
manage_connections?: Config.ManageConnections;
|
|
264
231
|
/**
|
|
265
|
-
*
|
|
232
|
+
* MCP tool annotation hints for filtering tools. readOnlyHint: tool does not
|
|
233
|
+
* modify environment. destructiveHint: tool may perform destructive updates.
|
|
234
|
+
* idempotentHint: tool may interact with external entities.
|
|
266
235
|
*/
|
|
267
|
-
|
|
236
|
+
tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
|
|
268
237
|
/**
|
|
269
238
|
* Toolkit configuration - either enabled list or disabled list
|
|
270
239
|
*/
|
|
271
240
|
toolkits?: Config.Enabled | Config.Disabled;
|
|
272
241
|
/**
|
|
273
|
-
*
|
|
242
|
+
* Tool-level configuration per toolkit
|
|
243
|
+
*/
|
|
244
|
+
tools?: {
|
|
245
|
+
[key: string]: Config.Enabled | Config.Disabled | Config.Tags;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Workbench configuration
|
|
274
249
|
*/
|
|
275
|
-
|
|
250
|
+
workbench?: Config.Workbench;
|
|
276
251
|
}
|
|
277
252
|
namespace Config {
|
|
278
253
|
/**
|
|
279
|
-
*
|
|
254
|
+
* Manage connections configuration
|
|
280
255
|
*/
|
|
281
|
-
interface
|
|
256
|
+
interface ManageConnections {
|
|
282
257
|
/**
|
|
283
|
-
*
|
|
284
|
-
*/
|
|
285
|
-
auto_manage_connections?: boolean;
|
|
286
|
-
/**
|
|
287
|
-
* Custom callback URI for connected account auth flows
|
|
258
|
+
* Custom callback URL for connected account auth flows
|
|
288
259
|
*/
|
|
289
|
-
|
|
260
|
+
callback_url?: string;
|
|
290
261
|
/**
|
|
291
|
-
* Whether to
|
|
262
|
+
* Whether to enable the connection manager for automatic connection handling
|
|
292
263
|
*/
|
|
293
|
-
|
|
264
|
+
enabled?: boolean;
|
|
294
265
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
interface
|
|
299
|
-
|
|
300
|
-
* Whether to allow proxy execute calls in the workbench
|
|
301
|
-
*/
|
|
302
|
-
proxy_execution_enabled?: boolean;
|
|
303
|
-
/**
|
|
304
|
-
* Maximum execution time for workbench operations in seconds
|
|
305
|
-
*/
|
|
306
|
-
timeout_seconds?: number;
|
|
266
|
+
interface Enabled {
|
|
267
|
+
enabled: Array<string>;
|
|
268
|
+
}
|
|
269
|
+
interface Disabled {
|
|
270
|
+
disabled: Array<string>;
|
|
307
271
|
}
|
|
308
272
|
interface Enabled {
|
|
309
273
|
enabled: Array<string>;
|
|
@@ -311,59 +275,29 @@ export declare namespace SessionRetrieveResponse {
|
|
|
311
275
|
interface Disabled {
|
|
312
276
|
disabled: Array<string>;
|
|
313
277
|
}
|
|
278
|
+
interface Tags {
|
|
279
|
+
tags: Array<string>;
|
|
280
|
+
}
|
|
314
281
|
/**
|
|
315
|
-
*
|
|
282
|
+
* Workbench configuration
|
|
316
283
|
*/
|
|
317
|
-
interface
|
|
318
|
-
/**
|
|
319
|
-
* Tool filtering configuration
|
|
320
|
-
*/
|
|
321
|
-
filters?: Tools.Filters;
|
|
284
|
+
interface Workbench {
|
|
322
285
|
/**
|
|
323
|
-
*
|
|
286
|
+
* Character threshold after which tool execution response are saved to a file in
|
|
287
|
+
* workbench. Default is 20k.
|
|
324
288
|
*/
|
|
325
|
-
|
|
326
|
-
[key: string]: Tools.Enabled | Tools.Disabled;
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
namespace Tools {
|
|
289
|
+
auto_offload_threshold?: number;
|
|
330
290
|
/**
|
|
331
|
-
*
|
|
291
|
+
* Whether proxy execution is enabled in the workbench
|
|
332
292
|
*/
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Filter tools by specific tags
|
|
336
|
-
*/
|
|
337
|
-
tags?: Filters.Tags;
|
|
338
|
-
}
|
|
339
|
-
namespace Filters {
|
|
340
|
-
/**
|
|
341
|
-
* Filter tools by specific tags
|
|
342
|
-
*/
|
|
343
|
-
interface Tags {
|
|
344
|
-
/**
|
|
345
|
-
* Exclude tools that have these tags
|
|
346
|
-
*/
|
|
347
|
-
exclude?: Array<string>;
|
|
348
|
-
/**
|
|
349
|
-
* Only include tools that have these tags
|
|
350
|
-
*/
|
|
351
|
-
include?: Array<string>;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
interface Enabled {
|
|
355
|
-
enabled: Array<string>;
|
|
356
|
-
}
|
|
357
|
-
interface Disabled {
|
|
358
|
-
disabled: Array<string>;
|
|
359
|
-
}
|
|
293
|
+
proxy_execution_enabled?: boolean;
|
|
360
294
|
}
|
|
361
295
|
}
|
|
362
296
|
interface Mcp {
|
|
363
297
|
/**
|
|
364
298
|
* The type of the MCP server. Can be http
|
|
365
299
|
*/
|
|
366
|
-
type: '
|
|
300
|
+
type: 'http';
|
|
367
301
|
/**
|
|
368
302
|
* The URL of the MCP server
|
|
369
303
|
*/
|
|
@@ -421,6 +355,10 @@ export declare namespace SessionToolkitsResponse {
|
|
|
421
355
|
* Whether the toolkit is enabled
|
|
422
356
|
*/
|
|
423
357
|
enabled: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* Whether the toolkit is no-auth
|
|
360
|
+
*/
|
|
361
|
+
is_no_auth: boolean;
|
|
424
362
|
/**
|
|
425
363
|
* Toolkit metadata
|
|
426
364
|
*/
|
|
@@ -518,61 +456,49 @@ export interface SessionCreateParams {
|
|
|
518
456
|
/**
|
|
519
457
|
* Configuration for connection management settings
|
|
520
458
|
*/
|
|
521
|
-
|
|
459
|
+
manage_connections?: SessionCreateParams.ManageConnections;
|
|
522
460
|
/**
|
|
523
|
-
*
|
|
524
|
-
*
|
|
461
|
+
* Global MCP tool annotation hints for filtering. readOnlyHint: tool does not
|
|
462
|
+
* modify environment. destructiveHint: tool may perform destructive updates.
|
|
463
|
+
* idempotentHint: repeated calls with same args have no additional effect.
|
|
464
|
+
* Toolkit-level tags override this. Toolkit enabled/disabled lists take precedence
|
|
465
|
+
* over tag filtering.
|
|
525
466
|
*/
|
|
526
|
-
|
|
467
|
+
tags?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
|
|
527
468
|
/**
|
|
528
469
|
* Toolkit configuration - specify either enabled toolkits (allowlist) or disabled
|
|
529
470
|
* toolkits (denylist). Mutually exclusive.
|
|
530
471
|
*/
|
|
531
472
|
toolkits?: SessionCreateParams.Enabled | SessionCreateParams.Disabled;
|
|
532
473
|
/**
|
|
533
|
-
*
|
|
474
|
+
* Tool-level configuration per toolkit - either specify enabled tools (whitelist),
|
|
475
|
+
* disabled tools (blacklist), or filter by MCP tags for each toolkit
|
|
534
476
|
*/
|
|
535
|
-
tools?:
|
|
477
|
+
tools?: {
|
|
478
|
+
[key: string]: SessionCreateParams.Enabled | SessionCreateParams.Disabled | SessionCreateParams.Tags;
|
|
479
|
+
};
|
|
480
|
+
/**
|
|
481
|
+
* Configuration for workbench behavior
|
|
482
|
+
*/
|
|
483
|
+
workbench?: SessionCreateParams.Workbench;
|
|
536
484
|
}
|
|
537
485
|
export declare namespace SessionCreateParams {
|
|
538
486
|
/**
|
|
539
487
|
* Configuration for connection management settings
|
|
540
488
|
*/
|
|
541
|
-
interface
|
|
489
|
+
interface ManageConnections {
|
|
490
|
+
/**
|
|
491
|
+
* The URL to redirect to after a user completes authentication for a connected
|
|
492
|
+
* account. This allows you to handle the auth callback in your own application.
|
|
493
|
+
*/
|
|
494
|
+
callback_url?: string;
|
|
542
495
|
/**
|
|
543
496
|
* Whether to enable the connection manager for automatic connection handling. If
|
|
544
497
|
* true, we will provide a tool your agent can use to initiate connections to
|
|
545
498
|
* toolkits if it doesnt exist. If set to false, then you have to manage
|
|
546
499
|
* connections manually.
|
|
547
500
|
*/
|
|
548
|
-
|
|
549
|
-
/**
|
|
550
|
-
* The URI to redirect to after a user completes authentication for a connected
|
|
551
|
-
* account. This allows you to handle the auth callback in your own application.
|
|
552
|
-
*/
|
|
553
|
-
callback_uri?: string;
|
|
554
|
-
/**
|
|
555
|
-
* If enabled, authentication scopes will be automatically inferred from the
|
|
556
|
-
* specific tools being used in the session. This ensures minimal permissions are
|
|
557
|
-
* requested.
|
|
558
|
-
*/
|
|
559
|
-
infer_scopes_from_tools?: boolean | null;
|
|
560
|
-
}
|
|
561
|
-
/**
|
|
562
|
-
* Configuration for workbench behavior including security restrictions and
|
|
563
|
-
* execution limits
|
|
564
|
-
*/
|
|
565
|
-
interface Execution {
|
|
566
|
-
/**
|
|
567
|
-
* Whether to allow proxy execute calls in the workbench. If false, prevents
|
|
568
|
-
* arbitrary HTTP requests and destructive actions.
|
|
569
|
-
*/
|
|
570
|
-
proxy_execution_enabled?: boolean | null;
|
|
571
|
-
/**
|
|
572
|
-
* Maximum allowed execution time for workbench operations in seconds. If not
|
|
573
|
-
* specified, uses the default timeout.
|
|
574
|
-
*/
|
|
575
|
-
timeout_seconds?: number;
|
|
501
|
+
enabled?: boolean | null;
|
|
576
502
|
}
|
|
577
503
|
/**
|
|
578
504
|
* Enable only specific toolkits (allowlist)
|
|
@@ -592,83 +518,53 @@ export declare namespace SessionCreateParams {
|
|
|
592
518
|
*/
|
|
593
519
|
disabled: Array<string>;
|
|
594
520
|
}
|
|
595
|
-
|
|
596
|
-
* Configuration for tool overrides and filtering
|
|
597
|
-
*/
|
|
598
|
-
interface Tools {
|
|
521
|
+
interface Enabled {
|
|
599
522
|
/**
|
|
600
|
-
*
|
|
523
|
+
* Only these specific tools will be available for this toolkit
|
|
601
524
|
*/
|
|
602
|
-
|
|
525
|
+
enabled: Array<string>;
|
|
526
|
+
}
|
|
527
|
+
interface Disabled {
|
|
603
528
|
/**
|
|
604
|
-
*
|
|
605
|
-
* disabled tools (blacklist) for each toolkit
|
|
529
|
+
* These specific tools will be disabled for this toolkit
|
|
606
530
|
*/
|
|
607
|
-
|
|
608
|
-
[key: string]: Tools.Enabled | Tools.Disabled;
|
|
609
|
-
};
|
|
531
|
+
disabled: Array<string>;
|
|
610
532
|
}
|
|
611
|
-
|
|
533
|
+
interface Tags {
|
|
612
534
|
/**
|
|
613
|
-
*
|
|
535
|
+
* MCP tags to filter tools for this toolkit. Only tools with these tags will be
|
|
536
|
+
* available.
|
|
614
537
|
*/
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
* filtered out.
|
|
633
|
-
*/
|
|
634
|
-
exclude?: Array<string>;
|
|
635
|
-
/**
|
|
636
|
-
* Only include tools that have these tags. Tools must have at least one of these
|
|
637
|
-
* tags to be included.
|
|
638
|
-
*/
|
|
639
|
-
include?: Array<string>;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
interface Enabled {
|
|
643
|
-
/**
|
|
644
|
-
* Only these specific tools will be available for this toolkit
|
|
645
|
-
*/
|
|
646
|
-
enabled: Array<string>;
|
|
647
|
-
}
|
|
648
|
-
interface Disabled {
|
|
649
|
-
/**
|
|
650
|
-
* These specific tools will be disabled for this toolkit
|
|
651
|
-
*/
|
|
652
|
-
disabled: Array<string>;
|
|
653
|
-
}
|
|
538
|
+
tags: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint'>;
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Configuration for workbench behavior
|
|
542
|
+
*/
|
|
543
|
+
interface Workbench {
|
|
544
|
+
/**
|
|
545
|
+
* Character threshold for automatic offloading. When workbench response exceeds
|
|
546
|
+
* this threshold, it will be automatically offloaded. Default is picked
|
|
547
|
+
* automatically based on the response size.
|
|
548
|
+
*/
|
|
549
|
+
auto_offload_threshold?: number;
|
|
550
|
+
/**
|
|
551
|
+
* Whether proxy execution is enabled. When enabled, workbench can call URLs and
|
|
552
|
+
* APIs directly.
|
|
553
|
+
*/
|
|
554
|
+
proxy_execution_enabled?: boolean;
|
|
654
555
|
}
|
|
655
556
|
}
|
|
656
557
|
export interface SessionExecuteParams {
|
|
657
558
|
/**
|
|
658
|
-
*
|
|
559
|
+
* The unique slug identifier of the tool to execute
|
|
659
560
|
*/
|
|
660
561
|
tool_slug: string;
|
|
661
562
|
/**
|
|
662
|
-
*
|
|
563
|
+
* The arguments required by the tool
|
|
663
564
|
*/
|
|
664
565
|
arguments?: {
|
|
665
566
|
[key: string]: unknown;
|
|
666
567
|
};
|
|
667
|
-
/**
|
|
668
|
-
* Header param: Session access key for sandbox/workbench authentication.
|
|
669
|
-
* Alternative to x-api-key for internal tool router endpoints.
|
|
670
|
-
*/
|
|
671
|
-
'x-session-access-key'?: string;
|
|
672
568
|
}
|
|
673
569
|
export interface SessionLinkParams {
|
|
674
570
|
/**
|
|
@@ -688,6 +584,11 @@ export interface SessionToolkitsParams {
|
|
|
688
584
|
* required for the first page.
|
|
689
585
|
*/
|
|
690
586
|
cursor?: string;
|
|
587
|
+
/**
|
|
588
|
+
* Whether to filter by connected toolkits. If provided, only connected toolkits
|
|
589
|
+
* will be returned.
|
|
590
|
+
*/
|
|
591
|
+
is_connected?: boolean | null;
|
|
691
592
|
/**
|
|
692
593
|
* Number of items per page, max allowed is 1000
|
|
693
594
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.mts","sourceRoot":"","sources":["../../src/resources/tool-router/session.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"session.d.mts","sourceRoot":"","sources":["../../src/resources/tool-router/session.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;;;;;;;;;;;;;OAcG;IACH,OAAO,CACL,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;CAGvC;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,EAAE,qBAAqB,CAAC,MAAM,CAAC;IAErC,GAAG,EAAE,qBAAqB,CAAC,GAAG,CAAC;IAE/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,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