@composio/client 0.1.0-alpha.73 → 0.1.0-alpha.75
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 +31 -0
- package/client.d.mts +8 -14
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -14
- package/client.d.ts.map +1 -1
- package/client.js +9 -7
- package/client.js.map +1 -1
- package/client.mjs +11 -9
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +61 -12
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +61 -12
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +9 -3
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +9 -3
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +60 -62
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +60 -62
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +11 -12
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +11 -12
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +4 -5
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +4 -5
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +4 -5
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +4 -5
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/link.d.mts +4 -4
- package/resources/link.d.mts.map +1 -1
- package/resources/link.d.ts +4 -4
- package/resources/link.d.ts.map +1 -1
- package/resources/migration.d.mts +0 -31
- package/resources/migration.d.mts.map +1 -1
- package/resources/migration.d.ts +0 -31
- package/resources/migration.d.ts.map +1 -1
- package/resources/migration.js +0 -11
- package/resources/migration.js.map +1 -1
- package/resources/migration.mjs +0 -11
- package/resources/migration.mjs.map +1 -1
- package/resources/project/config.d.mts +0 -67
- package/resources/project/config.d.mts.map +1 -1
- package/resources/project/config.d.ts +0 -67
- package/resources/project/config.d.ts.map +1 -1
- package/resources/project/config.js +0 -24
- package/resources/project/config.js.map +1 -1
- package/resources/project/config.mjs +0 -24
- package/resources/project/config.mjs.map +1 -1
- package/resources/project/index.d.mts +1 -1
- package/resources/project/index.d.mts.map +1 -1
- package/resources/project/index.d.ts +1 -1
- package/resources/project/index.d.ts.map +1 -1
- package/resources/project/index.js.map +1 -1
- package/resources/project/index.mjs +1 -1
- package/resources/project/index.mjs.map +1 -1
- package/resources/project/project.d.mts +2 -2
- package/resources/project/project.d.mts.map +1 -1
- package/resources/project/project.d.ts +2 -2
- package/resources/project/project.d.ts.map +1 -1
- package/resources/project/project.js.map +1 -1
- package/resources/project/project.mjs.map +1 -1
- 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 +1 -1
- package/resources/tool-router/index.mjs.map +1 -1
- package/resources/tool-router/session/session.d.mts +3 -3
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +3 -3
- package/resources/tool-router/session/session.d.ts.map +1 -1
- package/resources/tool-router/session/session.js.map +1 -1
- package/resources/tool-router/session/session.mjs.map +1 -1
- package/resources/tool-router/tool-router.d.mts +0 -84
- package/resources/tool-router/tool-router.d.mts.map +1 -1
- package/resources/tool-router/tool-router.d.ts +0 -84
- package/resources/tool-router/tool-router.d.ts.map +1 -1
- package/resources/tool-router/tool-router.js +0 -32
- package/resources/tool-router/tool-router.js.map +1 -1
- package/resources/tool-router/tool-router.mjs +0 -32
- package/resources/tool-router/tool-router.mjs.map +1 -1
- package/resources/toolkits.d.mts +40 -4
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +40 -4
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/tools.d.mts +6 -5
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +6 -5
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +2 -1
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +2 -1
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +6 -1
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +6 -1
- 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 +17 -27
- package/src/resources/auth-configs.ts +71 -12
- package/src/resources/connected-accounts.ts +91 -99
- package/src/resources/files.ts +4 -5
- package/src/resources/index.ts +4 -10
- package/src/resources/link.ts +8 -8
- package/src/resources/migration.ts +1 -45
- package/src/resources/project/config.ts +1 -106
- package/src/resources/project/index.ts +1 -6
- package/src/resources/project/project.ts +2 -7
- package/src/resources/tool-router/index.ts +1 -5
- package/src/resources/tool-router/session/session.ts +5 -7
- package/src/resources/tool-router/tool-router.ts +0 -103
- package/src/resources/toolkits.ts +46 -8
- package/src/resources/tools.ts +10 -9
- package/src/resources/trigger-instances/trigger-instances.ts +8 -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
|
@@ -3512,9 +3512,7 @@ export interface SessionExecuteMetaParams {
|
|
|
3512
3512
|
| 'COMPOSIO_WAIT_FOR_CONNECTIONS'
|
|
3513
3513
|
| 'COMPOSIO_REMOTE_WORKBENCH'
|
|
3514
3514
|
| 'COMPOSIO_REMOTE_BASH_TOOL'
|
|
3515
|
-
| 'COMPOSIO_GET_TOOL_SCHEMAS'
|
|
3516
|
-
| 'COMPOSIO_UPSERT_RECIPE'
|
|
3517
|
-
| 'COMPOSIO_GET_RECIPE';
|
|
3515
|
+
| 'COMPOSIO_GET_TOOL_SCHEMAS';
|
|
3518
3516
|
|
|
3519
3517
|
/**
|
|
3520
3518
|
* The arguments required by the meta tool
|
|
@@ -4772,10 +4770,6 @@ export namespace SessionProxyExecuteParams {
|
|
|
4772
4770
|
export interface Val {
|
|
4773
4771
|
access_token: string;
|
|
4774
4772
|
|
|
4775
|
-
client_id: string;
|
|
4776
|
-
|
|
4777
|
-
client_secret: string;
|
|
4778
|
-
|
|
4779
4773
|
account_id?: string;
|
|
4780
4774
|
|
|
4781
4775
|
account_url?: string;
|
|
@@ -4786,6 +4780,10 @@ export namespace SessionProxyExecuteParams {
|
|
|
4786
4780
|
|
|
4787
4781
|
borneo_dashboard_url?: string;
|
|
4788
4782
|
|
|
4783
|
+
client_id?: string;
|
|
4784
|
+
|
|
4785
|
+
client_secret?: string;
|
|
4786
|
+
|
|
4789
4787
|
COMPANYDOMAIN?: string;
|
|
4790
4788
|
|
|
4791
4789
|
dc?: string;
|
|
@@ -28,117 +28,14 @@ import {
|
|
|
28
28
|
SessionToolsParams,
|
|
29
29
|
SessionToolsResponse,
|
|
30
30
|
} from './session/session';
|
|
31
|
-
import { APIPromise } from '../../core/api-promise';
|
|
32
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
33
31
|
|
|
34
|
-
/**
|
|
35
|
-
* (Labs) Tool router endpoints
|
|
36
|
-
*/
|
|
37
32
|
export class ToolRouter extends APIResource {
|
|
38
33
|
session: SessionAPI.Session = new SessionAPI.Session(this._client);
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Creates a new session for the tool router lab feature (Legacy). This endpoint
|
|
42
|
-
* initializes a new session with specified toolkits and their authentication
|
|
43
|
-
* configurations. The session provides an isolated environment for testing and
|
|
44
|
-
* managing tool routing logic with scoped MCP server access.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const response = await client.toolRouter.createSession({
|
|
49
|
-
* user_id: 'user_123456789',
|
|
50
|
-
* config: {
|
|
51
|
-
* toolkits: [
|
|
52
|
-
* {
|
|
53
|
-
* toolkit: 'gmail',
|
|
54
|
-
* auth_config_id: 'ac_1a2b3c4d5e6f',
|
|
55
|
-
* },
|
|
56
|
-
* {
|
|
57
|
-
* toolkit: 'slack',
|
|
58
|
-
* auth_config_id: 'ac_7g8h9i0j1k2l',
|
|
59
|
-
* },
|
|
60
|
-
* { toolkit: 'github' },
|
|
61
|
-
* ],
|
|
62
|
-
* },
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
createSession(
|
|
67
|
-
body: ToolRouterCreateSessionParams,
|
|
68
|
-
options?: RequestOptions,
|
|
69
|
-
): APIPromise<ToolRouterCreateSessionResponse> {
|
|
70
|
-
return this._client.post('/api/v3.1/labs/tool_router/session', { body, ...options });
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface ToolRouterCreateSessionResponse {
|
|
75
|
-
/**
|
|
76
|
-
* MCP server endpoint URL for this specific chat session
|
|
77
|
-
*/
|
|
78
|
-
chat_session_mcp_url: string;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Generated session identifier (prefixed with "trs\_")
|
|
82
|
-
*/
|
|
83
|
-
session_id: string;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* MCP server endpoint URL for this specific tool router instance
|
|
87
|
-
*/
|
|
88
|
-
tool_router_instance_mcp_url: string;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface ToolRouterCreateSessionParams {
|
|
92
|
-
/**
|
|
93
|
-
* Unique user identifier for the session owner
|
|
94
|
-
*/
|
|
95
|
-
user_id: string;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Session configuration including enabled toolkits and their auth configs
|
|
99
|
-
*/
|
|
100
|
-
config?: ToolRouterCreateSessionParams.Config;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export namespace ToolRouterCreateSessionParams {
|
|
104
|
-
/**
|
|
105
|
-
* Session configuration including enabled toolkits and their auth configs
|
|
106
|
-
*/
|
|
107
|
-
export interface Config {
|
|
108
|
-
/**
|
|
109
|
-
* Whether to manually manage connections
|
|
110
|
-
*/
|
|
111
|
-
manually_manage_connections?: boolean | null;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Array of toolkit configurations with optional auth configs
|
|
115
|
-
*/
|
|
116
|
-
toolkits?: Array<Config.Toolkit>;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export namespace Config {
|
|
120
|
-
export interface Toolkit {
|
|
121
|
-
/**
|
|
122
|
-
* Toolkit identifier (e.g., gmail, slack, github)
|
|
123
|
-
*/
|
|
124
|
-
toolkit: string;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Specific auth configuration ID for this toolkit
|
|
128
|
-
*/
|
|
129
|
-
auth_config_id?: string;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
34
|
}
|
|
133
35
|
|
|
134
36
|
ToolRouter.Session = Session;
|
|
135
37
|
|
|
136
38
|
export declare namespace ToolRouter {
|
|
137
|
-
export {
|
|
138
|
-
type ToolRouterCreateSessionResponse as ToolRouterCreateSessionResponse,
|
|
139
|
-
type ToolRouterCreateSessionParams as ToolRouterCreateSessionParams,
|
|
140
|
-
};
|
|
141
|
-
|
|
142
39
|
export {
|
|
143
40
|
Session as Session,
|
|
144
41
|
type SessionCreateResponse as SessionCreateResponse,
|
|
@@ -51,6 +51,11 @@ export class Toolkits extends APIResource {
|
|
|
51
51
|
* Detailed information about a single toolkit
|
|
52
52
|
*/
|
|
53
53
|
export interface ToolkitRetrieveResponse {
|
|
54
|
+
/**
|
|
55
|
+
* Managed-auth-only metadata, including the supported OAuth scope ceiling.
|
|
56
|
+
*/
|
|
57
|
+
composio_managed_auth: Array<ToolkitRetrieveResponse.ComposioManagedAuth>;
|
|
58
|
+
|
|
54
59
|
deprecated: ToolkitRetrieveResponse.Deprecated;
|
|
55
60
|
|
|
56
61
|
/**
|
|
@@ -114,6 +119,47 @@ export interface ToolkitRetrieveResponse {
|
|
|
114
119
|
}
|
|
115
120
|
|
|
116
121
|
export namespace ToolkitRetrieveResponse {
|
|
122
|
+
export interface ComposioManagedAuth {
|
|
123
|
+
/**
|
|
124
|
+
* Authentication mode for the Composio-managed auth config
|
|
125
|
+
*/
|
|
126
|
+
mode: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* OAuth scopes available in the Composio-managed auth config for this auth mode.
|
|
130
|
+
*/
|
|
131
|
+
scopes: ComposioManagedAuth.Scopes;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* OAuth user scopes available in the Composio-managed auth config for this auth
|
|
135
|
+
* mode. Only present for Slack toolkits.
|
|
136
|
+
*/
|
|
137
|
+
user_scopes?: ComposioManagedAuth.UserScopes;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export namespace ComposioManagedAuth {
|
|
141
|
+
/**
|
|
142
|
+
* OAuth scopes available in the Composio-managed auth config for this auth mode.
|
|
143
|
+
*/
|
|
144
|
+
export interface Scopes {
|
|
145
|
+
/**
|
|
146
|
+
* Available OAuth scopes
|
|
147
|
+
*/
|
|
148
|
+
available: Array<string>;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* OAuth user scopes available in the Composio-managed auth config for this auth
|
|
153
|
+
* mode. Only present for Slack toolkits.
|
|
154
|
+
*/
|
|
155
|
+
export interface UserScopes {
|
|
156
|
+
/**
|
|
157
|
+
* Available OAuth user scopes
|
|
158
|
+
*/
|
|
159
|
+
available: Array<string>;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
117
163
|
export interface Deprecated {
|
|
118
164
|
rawProxyInfoByAuthSchemes: Array<{ [key: string]: unknown }>;
|
|
119
165
|
|
|
@@ -268,8 +314,6 @@ export namespace ToolkitRetrieveResponse {
|
|
|
268
314
|
|
|
269
315
|
type: string;
|
|
270
316
|
|
|
271
|
-
advanced?: boolean;
|
|
272
|
-
|
|
273
317
|
default?: string | null;
|
|
274
318
|
|
|
275
319
|
is_secret?: boolean;
|
|
@@ -288,8 +332,6 @@ export namespace ToolkitRetrieveResponse {
|
|
|
288
332
|
|
|
289
333
|
type: string;
|
|
290
334
|
|
|
291
|
-
advanced?: boolean;
|
|
292
|
-
|
|
293
335
|
default?: string | null;
|
|
294
336
|
|
|
295
337
|
is_secret?: boolean;
|
|
@@ -320,8 +362,6 @@ export namespace ToolkitRetrieveResponse {
|
|
|
320
362
|
|
|
321
363
|
type: string;
|
|
322
364
|
|
|
323
|
-
advanced?: boolean;
|
|
324
|
-
|
|
325
365
|
default?: string | null;
|
|
326
366
|
|
|
327
367
|
is_secret?: boolean;
|
|
@@ -340,8 +380,6 @@ export namespace ToolkitRetrieveResponse {
|
|
|
340
380
|
|
|
341
381
|
type: string;
|
|
342
382
|
|
|
343
|
-
advanced?: boolean;
|
|
344
|
-
|
|
345
383
|
default?: string | null;
|
|
346
384
|
|
|
347
385
|
is_secret?: boolean;
|
package/src/resources/tools.ts
CHANGED
|
@@ -96,7 +96,8 @@ export class Tools extends APIResource {
|
|
|
96
96
|
/**
|
|
97
97
|
* Proxy an HTTP request to a third-party API using connected account credentials.
|
|
98
98
|
* This endpoint allows making authenticated API calls to external services while
|
|
99
|
-
* abstracting away authentication details.
|
|
99
|
+
* abstracting away authentication details. v3.1 requires a proxy_execute scoped
|
|
100
|
+
* project API key; default project API keys are rejected.
|
|
100
101
|
*
|
|
101
102
|
* @example
|
|
102
103
|
* ```ts
|
|
@@ -1412,10 +1413,6 @@ export namespace ToolExecuteParams {
|
|
|
1412
1413
|
export interface Val {
|
|
1413
1414
|
access_token: string;
|
|
1414
1415
|
|
|
1415
|
-
client_id: string;
|
|
1416
|
-
|
|
1417
|
-
client_secret: string;
|
|
1418
|
-
|
|
1419
1416
|
account_id?: string;
|
|
1420
1417
|
|
|
1421
1418
|
account_url?: string;
|
|
@@ -1426,6 +1423,10 @@ export namespace ToolExecuteParams {
|
|
|
1426
1423
|
|
|
1427
1424
|
borneo_dashboard_url?: string;
|
|
1428
1425
|
|
|
1426
|
+
client_id?: string;
|
|
1427
|
+
|
|
1428
|
+
client_secret?: string;
|
|
1429
|
+
|
|
1429
1430
|
COMPANYDOMAIN?: string;
|
|
1430
1431
|
|
|
1431
1432
|
dc?: string;
|
|
@@ -2283,10 +2284,6 @@ export namespace ToolProxyParams {
|
|
|
2283
2284
|
export interface Val {
|
|
2284
2285
|
access_token: string;
|
|
2285
2286
|
|
|
2286
|
-
client_id: string;
|
|
2287
|
-
|
|
2288
|
-
client_secret: string;
|
|
2289
|
-
|
|
2290
2287
|
account_id?: string;
|
|
2291
2288
|
|
|
2292
2289
|
account_url?: string;
|
|
@@ -2297,6 +2294,10 @@ export namespace ToolProxyParams {
|
|
|
2297
2294
|
|
|
2298
2295
|
borneo_dashboard_url?: string;
|
|
2299
2296
|
|
|
2297
|
+
client_id?: string;
|
|
2298
|
+
|
|
2299
|
+
client_secret?: string;
|
|
2300
|
+
|
|
2300
2301
|
COMPANYDOMAIN?: string;
|
|
2301
2302
|
|
|
2302
2303
|
dc?: string;
|
|
@@ -179,12 +179,12 @@ export namespace TriggerInstanceListActiveResponse {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
export interface TriggerInstanceUpsertResponse {
|
|
182
|
-
deprecated: TriggerInstanceUpsertResponse.Deprecated;
|
|
183
|
-
|
|
184
182
|
/**
|
|
185
183
|
* ID of the updated trigger
|
|
186
184
|
*/
|
|
187
185
|
trigger_id: string;
|
|
186
|
+
|
|
187
|
+
deprecated?: TriggerInstanceUpsertResponse.Deprecated;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
export namespace TriggerInstanceUpsertResponse {
|
|
@@ -313,6 +313,12 @@ export interface TriggerInstanceUpsertParams {
|
|
|
313
313
|
*/
|
|
314
314
|
triggerConfig?: { [key: string]: unknown };
|
|
315
315
|
|
|
316
|
+
/**
|
|
317
|
+
* The user id (entity id) that owns the connected account. When the project has
|
|
318
|
+
* 2FA enabled, this is validated against the owner of connected_account_id.
|
|
319
|
+
*/
|
|
320
|
+
user_id?: string;
|
|
321
|
+
|
|
316
322
|
/**
|
|
317
323
|
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
318
324
|
* Please use toolkit_versions instead.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.75'; // 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.75";
|
|
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.75";
|
|
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.75'; // 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.75'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|