@composio/client 0.1.0-alpha.51 → 0.1.0-alpha.53
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 +23 -0
- package/LICENSE +1 -1
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/project/config.d.mts +68 -0
- package/resources/project/config.d.mts.map +1 -0
- package/resources/project/config.d.ts +68 -0
- package/resources/project/config.d.ts.map +1 -0
- package/resources/project/config.js +33 -0
- package/resources/project/config.js.map +1 -0
- package/resources/project/config.mjs +29 -0
- package/resources/project/config.mjs.map +1 -0
- package/resources/project/index.d.mts +3 -0
- package/resources/project/index.d.mts.map +1 -0
- package/resources/project/index.d.ts +3 -0
- package/resources/project/index.d.ts.map +1 -0
- package/resources/project/index.js +9 -0
- package/resources/project/index.js.map +1 -0
- package/resources/project/index.mjs +4 -0
- package/resources/project/index.mjs.map +1 -0
- package/resources/project/project.d.mts +10 -0
- package/resources/project/project.d.mts.map +1 -0
- package/resources/project/project.d.ts +10 -0
- package/resources/project/project.d.ts.map +1 -0
- package/resources/project/project.js +17 -0
- package/resources/project/project.js.map +1 -0
- package/resources/project/project.mjs +12 -0
- package/resources/project/project.mjs.map +1 -0
- package/resources/project.d.mts +2 -0
- package/resources/project.d.mts.map +1 -0
- package/resources/project.d.ts +2 -0
- package/resources/project.d.ts.map +1 -0
- package/resources/project.js +6 -0
- package/resources/project.js.map +1 -0
- package/resources/project.mjs +3 -0
- package/resources/project.mjs.map +1 -0
- package/resources/tool-router/index.d.mts +1 -1
- package/resources/tool-router/index.d.mts.map +1 -1
- package/resources/tool-router/index.d.ts +1 -1
- package/resources/tool-router/index.d.ts.map +1 -1
- package/resources/tool-router/index.js.map +1 -1
- package/resources/tool-router/index.mjs.map +1 -1
- package/resources/tool-router/session.d.mts +168 -26
- package/resources/tool-router/session.d.mts.map +1 -1
- package/resources/tool-router/session.d.ts +168 -26
- package/resources/tool-router/session.d.ts.map +1 -1
- package/resources/tool-router/session.js +15 -0
- package/resources/tool-router/session.js.map +1 -1
- package/resources/tool-router/session.mjs +15 -0
- package/resources/tool-router/session.mjs.map +1 -1
- package/resources/tool-router/tool-router.d.mts +2 -2
- package/resources/tool-router/tool-router.d.mts.map +1 -1
- package/resources/tool-router/tool-router.d.ts +2 -2
- package/resources/tool-router/tool-router.d.ts.map +1 -1
- package/resources/tool-router/tool-router.js.map +1 -1
- package/resources/tool-router/tool-router.mjs.map +1 -1
- package/resources/toolkits.d.mts +8 -0
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +8 -0
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/tools.d.mts +53 -0
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +53 -0
- package/resources/tools.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +8 -2
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +8 -2
- 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 +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/project/config.ts +104 -0
- package/src/resources/project/index.ts +9 -0
- package/src/resources/project/project.ts +20 -0
- package/src/resources/project.ts +3 -0
- package/src/resources/tool-router/index.ts +2 -0
- package/src/resources/tool-router/session.ts +207 -23
- package/src/resources/tool-router/tool-router.ts +4 -0
- package/src/resources/toolkits.ts +10 -0
- package/src/resources/tools.ts +63 -0
- package/src/resources/trigger-instances/trigger-instances.ts +9 -2
- 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
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Config extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the current project configuration including 2FA settings.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const config = await client.project.config.retrieve();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
retrieve(options?: RequestOptions): APIPromise<ConfigRetrieveResponse> {
|
|
17
|
+
return this._client.get('/api/v3/org/project/config', options);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Updates the project configuration settings.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const config = await client.project.config.update({
|
|
26
|
+
* is_2FA_enabled: true,
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
update(
|
|
31
|
+
body: ConfigUpdateParams | null | undefined = {},
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<ConfigUpdateResponse> {
|
|
34
|
+
return this._client.patch('/api/v3/org/project/config', { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ConfigRetrieveResponse {
|
|
39
|
+
is_2FA_enabled: boolean;
|
|
40
|
+
|
|
41
|
+
log_visibility_setting: 'show_all' | 'dont_store_data';
|
|
42
|
+
|
|
43
|
+
mask_secret_keys_in_connected_account: boolean;
|
|
44
|
+
|
|
45
|
+
display_name?: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Whether to enable composio link for managed authentication. This key will be
|
|
49
|
+
* deprecated in the future. Please don't use this key.
|
|
50
|
+
*/
|
|
51
|
+
is_composio_link_enabled_for_managed_auth?: boolean;
|
|
52
|
+
|
|
53
|
+
logo_url?: string;
|
|
54
|
+
|
|
55
|
+
require_mcp_api_key?: boolean;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface ConfigUpdateResponse {
|
|
59
|
+
is_2FA_enabled: boolean;
|
|
60
|
+
|
|
61
|
+
log_visibility_setting: 'show_all' | 'dont_store_data';
|
|
62
|
+
|
|
63
|
+
mask_secret_keys_in_connected_account: boolean;
|
|
64
|
+
|
|
65
|
+
display_name?: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Whether to enable composio link for managed authentication. This key will be
|
|
69
|
+
* deprecated in the future. Please don't use this key.
|
|
70
|
+
*/
|
|
71
|
+
is_composio_link_enabled_for_managed_auth?: boolean;
|
|
72
|
+
|
|
73
|
+
logo_url?: string;
|
|
74
|
+
|
|
75
|
+
require_mcp_api_key?: boolean;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ConfigUpdateParams {
|
|
79
|
+
display_name?: string;
|
|
80
|
+
|
|
81
|
+
is_2FA_enabled?: boolean;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Whether to enable composio link for managed authentication. This key will be
|
|
85
|
+
* deprecated in the future. Please don't use this key.
|
|
86
|
+
*/
|
|
87
|
+
is_composio_link_enabled_for_managed_auth?: boolean;
|
|
88
|
+
|
|
89
|
+
log_visibility_setting?: 'show_all' | 'dont_store_data';
|
|
90
|
+
|
|
91
|
+
logo_url?: string;
|
|
92
|
+
|
|
93
|
+
mask_secret_keys_in_connected_account?: boolean;
|
|
94
|
+
|
|
95
|
+
require_mcp_api_key?: boolean;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export declare namespace Config {
|
|
99
|
+
export {
|
|
100
|
+
type ConfigRetrieveResponse as ConfigRetrieveResponse,
|
|
101
|
+
type ConfigUpdateResponse as ConfigUpdateResponse,
|
|
102
|
+
type ConfigUpdateParams as ConfigUpdateParams,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as ConfigAPI from './config';
|
|
5
|
+
import { Config, ConfigRetrieveResponse, ConfigUpdateParams, ConfigUpdateResponse } from './config';
|
|
6
|
+
|
|
7
|
+
export class Project extends APIResource {
|
|
8
|
+
config: ConfigAPI.Config = new ConfigAPI.Config(this._client);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Project.Config = Config;
|
|
12
|
+
|
|
13
|
+
export declare namespace Project {
|
|
14
|
+
export {
|
|
15
|
+
Config as Config,
|
|
16
|
+
type ConfigRetrieveResponse as ConfigRetrieveResponse,
|
|
17
|
+
type ConfigUpdateResponse as ConfigUpdateResponse,
|
|
18
|
+
type ConfigUpdateParams as ConfigUpdateParams,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -8,11 +8,13 @@ export {
|
|
|
8
8
|
type SessionExecuteMetaResponse,
|
|
9
9
|
type SessionLinkResponse,
|
|
10
10
|
type SessionToolkitsResponse,
|
|
11
|
+
type SessionToolsResponse,
|
|
11
12
|
type SessionCreateParams,
|
|
12
13
|
type SessionExecuteParams,
|
|
13
14
|
type SessionExecuteMetaParams,
|
|
14
15
|
type SessionLinkParams,
|
|
15
16
|
type SessionToolkitsParams,
|
|
17
|
+
type SessionToolsParams,
|
|
16
18
|
} from './session';
|
|
17
19
|
export {
|
|
18
20
|
ToolRouter,
|
|
@@ -124,6 +124,26 @@ export class Session extends APIResource {
|
|
|
124
124
|
): APIPromise<SessionToolkitsResponse> {
|
|
125
125
|
return this._client.get(path`/api/v3/tool_router/session/${sessionID}/toolkits`, { query, ...options });
|
|
126
126
|
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Returns the meta tools available in a tool router session with their complete
|
|
130
|
+
* schemas. This includes request and response schemas specific to the session
|
|
131
|
+
* context.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```ts
|
|
135
|
+
* const response = await client.toolRouter.session.tools(
|
|
136
|
+
* 'session_id',
|
|
137
|
+
* );
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
tools(
|
|
141
|
+
sessionID: string,
|
|
142
|
+
query?: SessionToolsParams | null | undefined,
|
|
143
|
+
options?: RequestOptions,
|
|
144
|
+
): APIPromise<SessionToolsResponse> {
|
|
145
|
+
return this._client.get(path`/api/v3/tool_router/session/${sessionID}/tools`, options);
|
|
146
|
+
}
|
|
127
147
|
}
|
|
128
148
|
|
|
129
149
|
export interface SessionCreateResponse {
|
|
@@ -149,6 +169,8 @@ export interface SessionCreateResponse {
|
|
|
149
169
|
| 'COMPOSIO_REMOTE_WORKBENCH'
|
|
150
170
|
| 'COMPOSIO_REMOTE_BASH_TOOL'
|
|
151
171
|
| 'COMPOSIO_GET_TOOL_SCHEMAS'
|
|
172
|
+
| 'COMPOSIO_UPSERT_RECIPE'
|
|
173
|
+
| 'COMPOSIO_GET_RECIPE'
|
|
152
174
|
>;
|
|
153
175
|
}
|
|
154
176
|
|
|
@@ -178,12 +200,11 @@ export namespace SessionCreateResponse {
|
|
|
178
200
|
manage_connections?: Config.ManageConnections;
|
|
179
201
|
|
|
180
202
|
/**
|
|
181
|
-
* MCP tool annotation hints for filtering tools
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
* openWorldHint: tool may interact with external entities.
|
|
203
|
+
* MCP tool annotation hints for filtering tools with enabled/disabled support.
|
|
204
|
+
* enabled: tags that the tool must have at least one of. disabled: tags that the
|
|
205
|
+
* tool must NOT have any of. Both conditions must be satisfied.
|
|
185
206
|
*/
|
|
186
|
-
tags?:
|
|
207
|
+
tags?: Config.Tags;
|
|
187
208
|
|
|
188
209
|
/**
|
|
189
210
|
* Toolkit configuration - either enabled list or disabled list
|
|
@@ -217,6 +238,23 @@ export namespace SessionCreateResponse {
|
|
|
217
238
|
enabled?: boolean;
|
|
218
239
|
}
|
|
219
240
|
|
|
241
|
+
/**
|
|
242
|
+
* MCP tool annotation hints for filtering tools with enabled/disabled support.
|
|
243
|
+
* enabled: tags that the tool must have at least one of. disabled: tags that the
|
|
244
|
+
* tool must NOT have any of. Both conditions must be satisfied.
|
|
245
|
+
*/
|
|
246
|
+
export interface Tags {
|
|
247
|
+
/**
|
|
248
|
+
* Tags that the tool must NOT have any of
|
|
249
|
+
*/
|
|
250
|
+
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Tags that the tool must have at least one of
|
|
254
|
+
*/
|
|
255
|
+
enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
256
|
+
}
|
|
257
|
+
|
|
220
258
|
export interface Enabled {
|
|
221
259
|
enabled: Array<string>;
|
|
222
260
|
}
|
|
@@ -234,7 +272,21 @@ export namespace SessionCreateResponse {
|
|
|
234
272
|
}
|
|
235
273
|
|
|
236
274
|
export interface Tags {
|
|
237
|
-
tags:
|
|
275
|
+
tags: Tags.Tags;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export namespace Tags {
|
|
279
|
+
export interface Tags {
|
|
280
|
+
/**
|
|
281
|
+
* Tags that the tool must NOT have any of
|
|
282
|
+
*/
|
|
283
|
+
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Tags that the tool must have at least one of
|
|
287
|
+
*/
|
|
288
|
+
enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
289
|
+
}
|
|
238
290
|
}
|
|
239
291
|
|
|
240
292
|
/**
|
|
@@ -290,6 +342,8 @@ export interface SessionRetrieveResponse {
|
|
|
290
342
|
| 'COMPOSIO_REMOTE_WORKBENCH'
|
|
291
343
|
| 'COMPOSIO_REMOTE_BASH_TOOL'
|
|
292
344
|
| 'COMPOSIO_GET_TOOL_SCHEMAS'
|
|
345
|
+
| 'COMPOSIO_UPSERT_RECIPE'
|
|
346
|
+
| 'COMPOSIO_GET_RECIPE'
|
|
293
347
|
>;
|
|
294
348
|
}
|
|
295
349
|
|
|
@@ -319,12 +373,11 @@ export namespace SessionRetrieveResponse {
|
|
|
319
373
|
manage_connections?: Config.ManageConnections;
|
|
320
374
|
|
|
321
375
|
/**
|
|
322
|
-
* MCP tool annotation hints for filtering tools
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
* openWorldHint: tool may interact with external entities.
|
|
376
|
+
* MCP tool annotation hints for filtering tools with enabled/disabled support.
|
|
377
|
+
* enabled: tags that the tool must have at least one of. disabled: tags that the
|
|
378
|
+
* tool must NOT have any of. Both conditions must be satisfied.
|
|
326
379
|
*/
|
|
327
|
-
tags?:
|
|
380
|
+
tags?: Config.Tags;
|
|
328
381
|
|
|
329
382
|
/**
|
|
330
383
|
* Toolkit configuration - either enabled list or disabled list
|
|
@@ -358,6 +411,23 @@ export namespace SessionRetrieveResponse {
|
|
|
358
411
|
enabled?: boolean;
|
|
359
412
|
}
|
|
360
413
|
|
|
414
|
+
/**
|
|
415
|
+
* MCP tool annotation hints for filtering tools with enabled/disabled support.
|
|
416
|
+
* enabled: tags that the tool must have at least one of. disabled: tags that the
|
|
417
|
+
* tool must NOT have any of. Both conditions must be satisfied.
|
|
418
|
+
*/
|
|
419
|
+
export interface Tags {
|
|
420
|
+
/**
|
|
421
|
+
* Tags that the tool must NOT have any of
|
|
422
|
+
*/
|
|
423
|
+
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Tags that the tool must have at least one of
|
|
427
|
+
*/
|
|
428
|
+
enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
429
|
+
}
|
|
430
|
+
|
|
361
431
|
export interface Enabled {
|
|
362
432
|
enabled: Array<string>;
|
|
363
433
|
}
|
|
@@ -375,7 +445,21 @@ export namespace SessionRetrieveResponse {
|
|
|
375
445
|
}
|
|
376
446
|
|
|
377
447
|
export interface Tags {
|
|
378
|
-
tags:
|
|
448
|
+
tags: Tags.Tags;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
export namespace Tags {
|
|
452
|
+
export interface Tags {
|
|
453
|
+
/**
|
|
454
|
+
* Tags that the tool must NOT have any of
|
|
455
|
+
*/
|
|
456
|
+
disabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Tags that the tool must have at least one of
|
|
460
|
+
*/
|
|
461
|
+
enabled?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
462
|
+
}
|
|
379
463
|
}
|
|
380
464
|
|
|
381
465
|
/**
|
|
@@ -579,6 +663,63 @@ export namespace SessionToolkitsResponse {
|
|
|
579
663
|
}
|
|
580
664
|
}
|
|
581
665
|
|
|
666
|
+
export interface SessionToolsResponse {
|
|
667
|
+
/**
|
|
668
|
+
* List of meta tools with their complete schemas
|
|
669
|
+
*/
|
|
670
|
+
items: Array<SessionToolsResponse.Item>;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
export namespace SessionToolsResponse {
|
|
674
|
+
export interface Item {
|
|
675
|
+
/**
|
|
676
|
+
* Description of what the tool does
|
|
677
|
+
*/
|
|
678
|
+
description: string;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* JSON Schema for the tool input parameters
|
|
682
|
+
*/
|
|
683
|
+
input_parameters: { [key: string]: unknown };
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Human-readable name of the tool
|
|
687
|
+
*/
|
|
688
|
+
name: string;
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* JSON Schema for the tool output parameters
|
|
692
|
+
*/
|
|
693
|
+
output_parameters: { [key: string]: unknown };
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* Unique identifier for the tool
|
|
697
|
+
*/
|
|
698
|
+
slug: string;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Tags associated with the tool
|
|
702
|
+
*/
|
|
703
|
+
tags: Array<string>;
|
|
704
|
+
|
|
705
|
+
toolkit: Item.Toolkit;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
export namespace Item {
|
|
709
|
+
export interface Toolkit {
|
|
710
|
+
/**
|
|
711
|
+
* Name of the toolkit
|
|
712
|
+
*/
|
|
713
|
+
name: string;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Slug of the toolkit this tool belongs to
|
|
717
|
+
*/
|
|
718
|
+
slug: string;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
|
|
582
723
|
export interface SessionCreateParams {
|
|
583
724
|
/**
|
|
584
725
|
* The identifier of the user who is initiating the session, ideally a unique
|
|
@@ -605,14 +746,14 @@ export interface SessionCreateParams {
|
|
|
605
746
|
manage_connections?: SessionCreateParams.ManageConnections;
|
|
606
747
|
|
|
607
748
|
/**
|
|
608
|
-
* Global MCP tool annotation hints for filtering.
|
|
609
|
-
*
|
|
610
|
-
*
|
|
611
|
-
*
|
|
612
|
-
* override this. Toolkit enabled/disabled lists take precedence over tag
|
|
613
|
-
* filtering.
|
|
749
|
+
* Global MCP tool annotation hints for filtering. Array format is treated as
|
|
750
|
+
* enabled list. Object format supports both enabled (tool must have at least one)
|
|
751
|
+
* and disabled (tool must NOT have any) lists. Toolkit-level tags override this.
|
|
752
|
+
* Toolkit enabled/disabled lists take precedence over tag filtering.
|
|
614
753
|
*/
|
|
615
|
-
tags?:
|
|
754
|
+
tags?:
|
|
755
|
+
| Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>
|
|
756
|
+
| SessionCreateParams.UnionMember1;
|
|
616
757
|
|
|
617
758
|
/**
|
|
618
759
|
* Toolkit configuration - specify either enable toolkits (allowlist) or disable
|
|
@@ -654,6 +795,18 @@ export namespace SessionCreateParams {
|
|
|
654
795
|
enable?: boolean | null;
|
|
655
796
|
}
|
|
656
797
|
|
|
798
|
+
export interface UnionMember1 {
|
|
799
|
+
/**
|
|
800
|
+
* Tags that the tool must NOT have any of
|
|
801
|
+
*/
|
|
802
|
+
disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* Tags that the tool must have at least one of
|
|
806
|
+
*/
|
|
807
|
+
enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
808
|
+
}
|
|
809
|
+
|
|
657
810
|
/**
|
|
658
811
|
* Enable only specific toolkits (allowlist)
|
|
659
812
|
*/
|
|
@@ -690,10 +843,24 @@ export namespace SessionCreateParams {
|
|
|
690
843
|
|
|
691
844
|
export interface Tags {
|
|
692
845
|
/**
|
|
693
|
-
* MCP tags to filter tools
|
|
694
|
-
*
|
|
846
|
+
* MCP tags to filter tools. Array format is treated as enabled list. Object format
|
|
847
|
+
* supports both enabled and disabled lists.
|
|
695
848
|
*/
|
|
696
|
-
tags: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'
|
|
849
|
+
tags: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | Tags.UnionMember1;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
export namespace Tags {
|
|
853
|
+
export interface UnionMember1 {
|
|
854
|
+
/**
|
|
855
|
+
* Tags that the tool must NOT have any of
|
|
856
|
+
*/
|
|
857
|
+
disable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Tags that the tool must have at least one of
|
|
861
|
+
*/
|
|
862
|
+
enable?: Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
863
|
+
}
|
|
697
864
|
}
|
|
698
865
|
|
|
699
866
|
/**
|
|
@@ -731,7 +898,15 @@ export interface SessionExecuteMetaParams {
|
|
|
731
898
|
/**
|
|
732
899
|
* The unique slug identifier of the meta tool to execute
|
|
733
900
|
*/
|
|
734
|
-
slug:
|
|
901
|
+
slug:
|
|
902
|
+
| 'COMPOSIO_SEARCH_TOOLS'
|
|
903
|
+
| 'COMPOSIO_MULTI_EXECUTE_TOOL'
|
|
904
|
+
| 'COMPOSIO_MANAGE_CONNECTIONS'
|
|
905
|
+
| 'COMPOSIO_REMOTE_WORKBENCH'
|
|
906
|
+
| 'COMPOSIO_REMOTE_BASH_TOOL'
|
|
907
|
+
| 'COMPOSIO_GET_TOOL_SCHEMAS'
|
|
908
|
+
| 'COMPOSIO_UPSERT_RECIPE'
|
|
909
|
+
| 'COMPOSIO_GET_RECIPE';
|
|
735
910
|
|
|
736
911
|
/**
|
|
737
912
|
* The arguments required by the meta tool
|
|
@@ -771,6 +946,11 @@ export interface SessionToolkitsParams {
|
|
|
771
946
|
*/
|
|
772
947
|
limit?: number | null;
|
|
773
948
|
|
|
949
|
+
/**
|
|
950
|
+
* Search query to filter toolkits by name, slug, or description
|
|
951
|
+
*/
|
|
952
|
+
search?: string;
|
|
953
|
+
|
|
774
954
|
/**
|
|
775
955
|
* Optional comma-separated list of toolkit slugs to filter by. If provided, only
|
|
776
956
|
* these toolkits will be returned, overriding the session configuration.
|
|
@@ -778,6 +958,8 @@ export interface SessionToolkitsParams {
|
|
|
778
958
|
toolkits?: Array<string> | null;
|
|
779
959
|
}
|
|
780
960
|
|
|
961
|
+
export interface SessionToolsParams {}
|
|
962
|
+
|
|
781
963
|
export declare namespace Session {
|
|
782
964
|
export {
|
|
783
965
|
type SessionCreateResponse as SessionCreateResponse,
|
|
@@ -786,10 +968,12 @@ export declare namespace Session {
|
|
|
786
968
|
type SessionExecuteMetaResponse as SessionExecuteMetaResponse,
|
|
787
969
|
type SessionLinkResponse as SessionLinkResponse,
|
|
788
970
|
type SessionToolkitsResponse as SessionToolkitsResponse,
|
|
971
|
+
type SessionToolsResponse as SessionToolsResponse,
|
|
789
972
|
type SessionCreateParams as SessionCreateParams,
|
|
790
973
|
type SessionExecuteParams as SessionExecuteParams,
|
|
791
974
|
type SessionExecuteMetaParams as SessionExecuteMetaParams,
|
|
792
975
|
type SessionLinkParams as SessionLinkParams,
|
|
793
976
|
type SessionToolkitsParams as SessionToolkitsParams,
|
|
977
|
+
type SessionToolsParams as SessionToolsParams,
|
|
794
978
|
};
|
|
795
979
|
}
|
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
SessionRetrieveResponse,
|
|
16
16
|
SessionToolkitsParams,
|
|
17
17
|
SessionToolkitsResponse,
|
|
18
|
+
SessionToolsParams,
|
|
19
|
+
SessionToolsResponse,
|
|
18
20
|
} from './session';
|
|
19
21
|
import { APIPromise } from '../../core/api-promise';
|
|
20
22
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -132,10 +134,12 @@ export declare namespace ToolRouter {
|
|
|
132
134
|
type SessionExecuteMetaResponse as SessionExecuteMetaResponse,
|
|
133
135
|
type SessionLinkResponse as SessionLinkResponse,
|
|
134
136
|
type SessionToolkitsResponse as SessionToolkitsResponse,
|
|
137
|
+
type SessionToolsResponse as SessionToolsResponse,
|
|
135
138
|
type SessionCreateParams as SessionCreateParams,
|
|
136
139
|
type SessionExecuteParams as SessionExecuteParams,
|
|
137
140
|
type SessionExecuteMetaParams as SessionExecuteMetaParams,
|
|
138
141
|
type SessionLinkParams as SessionLinkParams,
|
|
139
142
|
type SessionToolkitsParams as SessionToolkitsParams,
|
|
143
|
+
type SessionToolsParams as SessionToolsParams,
|
|
140
144
|
};
|
|
141
145
|
}
|
|
@@ -522,6 +522,11 @@ export interface ToolkitListParams {
|
|
|
522
522
|
*/
|
|
523
523
|
cursor?: string;
|
|
524
524
|
|
|
525
|
+
/**
|
|
526
|
+
* Include deprecated toolkits in the response
|
|
527
|
+
*/
|
|
528
|
+
include_deprecated?: boolean | null;
|
|
529
|
+
|
|
525
530
|
/**
|
|
526
531
|
* Number of items per page, max allowed is 1000
|
|
527
532
|
*/
|
|
@@ -532,6 +537,11 @@ export interface ToolkitListParams {
|
|
|
532
537
|
*/
|
|
533
538
|
managed_by?: 'composio' | 'all' | 'project';
|
|
534
539
|
|
|
540
|
+
/**
|
|
541
|
+
* Search query to filter toolkits by name, slug, or description
|
|
542
|
+
*/
|
|
543
|
+
search?: string;
|
|
544
|
+
|
|
535
545
|
/**
|
|
536
546
|
* Sort order for returned toolkits
|
|
537
547
|
*/
|
package/src/resources/tools.ts
CHANGED
|
@@ -399,6 +399,11 @@ export interface ToolProxyResponse {
|
|
|
399
399
|
*/
|
|
400
400
|
status: number;
|
|
401
401
|
|
|
402
|
+
/**
|
|
403
|
+
* Binary body response data. Present when the response is a binary file.
|
|
404
|
+
*/
|
|
405
|
+
binary_data?: ToolProxyResponse.BinaryData;
|
|
406
|
+
|
|
402
407
|
/**
|
|
403
408
|
* The response data returned from the proxied API
|
|
404
409
|
*/
|
|
@@ -410,6 +415,33 @@ export interface ToolProxyResponse {
|
|
|
410
415
|
headers?: { [key: string]: string };
|
|
411
416
|
}
|
|
412
417
|
|
|
418
|
+
export namespace ToolProxyResponse {
|
|
419
|
+
/**
|
|
420
|
+
* Binary body response data. Present when the response is a binary file.
|
|
421
|
+
*/
|
|
422
|
+
export interface BinaryData {
|
|
423
|
+
/**
|
|
424
|
+
* Content-Type of the binary data
|
|
425
|
+
*/
|
|
426
|
+
content_type: string;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* File size in bytes
|
|
430
|
+
*/
|
|
431
|
+
size: number;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* URL to download binary content
|
|
435
|
+
*/
|
|
436
|
+
url: string;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* ISO 8601 timestamp when the URL expires
|
|
440
|
+
*/
|
|
441
|
+
expires_at?: string;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
413
445
|
/**
|
|
414
446
|
* JSON string containing all tool enum values from latest version of each toolkit
|
|
415
447
|
*/
|
|
@@ -1323,6 +1355,13 @@ export interface ToolProxyParams {
|
|
|
1323
1355
|
*/
|
|
1324
1356
|
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
|
|
1325
1357
|
|
|
1358
|
+
/**
|
|
1359
|
+
* Binary body to send. For binary upload via URL: use {url: "https://...",
|
|
1360
|
+
* content_type?: "..."}. For binary upload via base64: use {base64: "...",
|
|
1361
|
+
* content_type?: "..."}.
|
|
1362
|
+
*/
|
|
1363
|
+
binary_body?: ToolProxyParams.UnionMember0 | ToolProxyParams.UnionMember1;
|
|
1364
|
+
|
|
1326
1365
|
/**
|
|
1327
1366
|
* The request body (for POST, PUT, and PATCH requests)
|
|
1328
1367
|
*/
|
|
@@ -1356,6 +1395,30 @@ export interface ToolProxyParams {
|
|
|
1356
1395
|
}
|
|
1357
1396
|
|
|
1358
1397
|
export namespace ToolProxyParams {
|
|
1398
|
+
export interface UnionMember0 {
|
|
1399
|
+
/**
|
|
1400
|
+
* URL to fetch binary content from
|
|
1401
|
+
*/
|
|
1402
|
+
url: string;
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Content-Type header to use for the request
|
|
1406
|
+
*/
|
|
1407
|
+
content_type?: string;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
export interface UnionMember1 {
|
|
1411
|
+
/**
|
|
1412
|
+
* Base64-encoded binary data
|
|
1413
|
+
*/
|
|
1414
|
+
base64: string;
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* Content-Type header to use for the request
|
|
1418
|
+
*/
|
|
1419
|
+
content_type?: string;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1359
1422
|
export interface UnionMember0 {
|
|
1360
1423
|
authScheme: 'OAUTH2';
|
|
1361
1424
|
|
|
@@ -81,7 +81,8 @@ export namespace TriggerInstanceListActiveResponse {
|
|
|
81
81
|
disabled_at: string | null;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
85
|
+
* Please use disabled_at instead.
|
|
85
86
|
*/
|
|
86
87
|
disabledAt: string | null;
|
|
87
88
|
|
|
@@ -245,7 +246,8 @@ export interface TriggerInstanceListActiveParams {
|
|
|
245
246
|
trigger_ids?: Array<string> | null;
|
|
246
247
|
|
|
247
248
|
/**
|
|
248
|
-
* Array of trigger names to filter triggers by
|
|
249
|
+
* Array of trigger names to filter triggers by. Case-insensitive (internally
|
|
250
|
+
* normalized to uppercase).
|
|
249
251
|
*/
|
|
250
252
|
trigger_names?: Array<string> | null;
|
|
251
253
|
|
|
@@ -260,6 +262,11 @@ export interface TriggerInstanceListActiveParams {
|
|
|
260
262
|
* trigger_names instead.
|
|
261
263
|
*/
|
|
262
264
|
triggerNames?: Array<string> | null;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Array of user IDs to filter triggers by
|
|
268
|
+
*/
|
|
269
|
+
user_ids?: Array<string> | null;
|
|
263
270
|
}
|
|
264
271
|
|
|
265
272
|
export interface TriggerInstanceUpsertParams {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.53'; // 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.53";
|
|
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.53";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|