@composio/client 0.1.0-alpha.54 → 0.1.0-alpha.55
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 +15 -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 +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +30 -9
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +30 -9
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +1 -4
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +1 -4
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +2 -2
- package/resources/connected-accounts.d.ts +2 -2
- 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 +1 -1
- package/resources/index.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.d.mts +4 -0
- package/resources/tool-router/session.d.mts.map +1 -1
- package/resources/tool-router/session.d.ts +4 -0
- package/resources/tool-router/session.d.ts.map +1 -1
- package/resources/tool-router/tool-router.d.mts +81 -0
- package/resources/tool-router/tool-router.d.mts.map +1 -1
- package/resources/tool-router/tool-router.d.ts +81 -0
- package/resources/tool-router/tool-router.d.ts.map +1 -1
- package/resources/tool-router/tool-router.js +29 -0
- package/resources/tool-router/tool-router.js.map +1 -1
- package/resources/tool-router/tool-router.mjs +29 -0
- 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 +8 -0
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +8 -0
- package/resources/tools.d.ts.map +1 -1
- package/resources/triggers-types.d.mts +8 -0
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +8 -0
- package/resources/triggers-types.d.ts.map +1 -1
- package/src/client.ts +10 -2
- package/src/resources/auth-configs.ts +37 -10
- package/src/resources/connected-accounts.ts +2 -2
- package/src/resources/index.ts +5 -1
- package/src/resources/tool-router/index.ts +5 -1
- package/src/resources/tool-router/session.ts +5 -0
- package/src/resources/tool-router/tool-router.ts +100 -0
- package/src/resources/toolkits.ts +10 -0
- package/src/resources/tools.ts +10 -0
- package/src/resources/triggers-types.ts +10 -0
- 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,10 +43,7 @@ export class AuthConfigs extends APIResource {
|
|
|
43
43
|
* ```ts
|
|
44
44
|
* const authConfig = await client.authConfigs.update(
|
|
45
45
|
* 'nanoid',
|
|
46
|
-
* {
|
|
47
|
-
* credentials: {},
|
|
48
|
-
* type: 'custom',
|
|
49
|
-
* },
|
|
46
|
+
* { type: 'custom' },
|
|
50
47
|
* );
|
|
51
48
|
* ```
|
|
52
49
|
*/
|
|
@@ -230,12 +227,17 @@ export interface AuthConfigRetrieveResponse {
|
|
|
230
227
|
*/
|
|
231
228
|
is_composio_managed?: boolean;
|
|
232
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Whether this auth config is enabled for tool router
|
|
232
|
+
*/
|
|
233
|
+
is_enabled_for_tool_router?: boolean;
|
|
234
|
+
|
|
233
235
|
/**
|
|
234
236
|
* ISO 8601 date-time when the auth config was last updated
|
|
235
237
|
*/
|
|
236
238
|
last_updated_at?: string;
|
|
237
239
|
|
|
238
|
-
proxy_config?: AuthConfigRetrieveResponse.ProxyConfig;
|
|
240
|
+
proxy_config?: AuthConfigRetrieveResponse.ProxyConfig | null;
|
|
239
241
|
|
|
240
242
|
/**
|
|
241
243
|
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
@@ -420,12 +422,17 @@ export namespace AuthConfigListResponse {
|
|
|
420
422
|
*/
|
|
421
423
|
is_composio_managed?: boolean;
|
|
422
424
|
|
|
425
|
+
/**
|
|
426
|
+
* Whether this auth config is enabled for tool router
|
|
427
|
+
*/
|
|
428
|
+
is_enabled_for_tool_router?: boolean;
|
|
429
|
+
|
|
423
430
|
/**
|
|
424
431
|
* ISO 8601 date-time when the auth config was last updated
|
|
425
432
|
*/
|
|
426
433
|
last_updated_at?: string;
|
|
427
434
|
|
|
428
|
-
proxy_config?: Item.ProxyConfig;
|
|
435
|
+
proxy_config?: Item.ProxyConfig | null;
|
|
429
436
|
|
|
430
437
|
/**
|
|
431
438
|
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
@@ -532,6 +539,11 @@ export namespace AuthConfigCreateParams {
|
|
|
532
539
|
|
|
533
540
|
credentials?: UnionMember0.Credentials;
|
|
534
541
|
|
|
542
|
+
/**
|
|
543
|
+
* Whether this auth config is enabled for tool router
|
|
544
|
+
*/
|
|
545
|
+
is_enabled_for_tool_router?: boolean;
|
|
546
|
+
|
|
535
547
|
/**
|
|
536
548
|
* The name of the integration
|
|
537
549
|
*/
|
|
@@ -588,12 +600,17 @@ export namespace AuthConfigCreateParams {
|
|
|
588
600
|
|
|
589
601
|
credentials?: UnionMember1.Credentials;
|
|
590
602
|
|
|
603
|
+
/**
|
|
604
|
+
* Whether this auth config is enabled for tool router
|
|
605
|
+
*/
|
|
606
|
+
is_enabled_for_tool_router?: boolean;
|
|
607
|
+
|
|
591
608
|
/**
|
|
592
609
|
* The name of the integration
|
|
593
610
|
*/
|
|
594
611
|
name?: string;
|
|
595
612
|
|
|
596
|
-
proxy_config?: UnionMember1.ProxyConfig;
|
|
613
|
+
proxy_config?: UnionMember1.ProxyConfig | null;
|
|
597
614
|
|
|
598
615
|
/**
|
|
599
616
|
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
@@ -643,11 +660,16 @@ export type AuthConfigUpdateParams = AuthConfigUpdateParams.Variant0 | AuthConfi
|
|
|
643
660
|
|
|
644
661
|
export declare namespace AuthConfigUpdateParams {
|
|
645
662
|
export interface Variant0 {
|
|
646
|
-
credentials: Variant0.Credentials;
|
|
647
|
-
|
|
648
663
|
type: 'custom';
|
|
649
664
|
|
|
650
|
-
|
|
665
|
+
credentials?: Variant0.Credentials;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Whether this auth config is enabled for tool router
|
|
669
|
+
*/
|
|
670
|
+
is_enabled_for_tool_router?: boolean;
|
|
671
|
+
|
|
672
|
+
proxy_config?: Variant0.ProxyConfig | null;
|
|
651
673
|
|
|
652
674
|
/**
|
|
653
675
|
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
@@ -702,6 +724,11 @@ export declare namespace AuthConfigUpdateParams {
|
|
|
702
724
|
export interface Variant1 {
|
|
703
725
|
type: 'default';
|
|
704
726
|
|
|
727
|
+
/**
|
|
728
|
+
* Whether this auth config is enabled for tool router
|
|
729
|
+
*/
|
|
730
|
+
is_enabled_for_tool_router?: boolean;
|
|
731
|
+
|
|
705
732
|
/**
|
|
706
733
|
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
707
734
|
* future.
|
|
@@ -16634,12 +16634,12 @@ export interface ConnectedAccountListParams {
|
|
|
16634
16634
|
|
|
16635
16635
|
export interface ConnectedAccountRefreshParams {
|
|
16636
16636
|
/**
|
|
16637
|
-
* Query param
|
|
16637
|
+
* Query param
|
|
16638
16638
|
*/
|
|
16639
16639
|
query_redirect_url?: string;
|
|
16640
16640
|
|
|
16641
16641
|
/**
|
|
16642
|
-
* Body param
|
|
16642
|
+
* Body param
|
|
16643
16643
|
*/
|
|
16644
16644
|
body_redirect_url?: string;
|
|
16645
16645
|
|
package/src/resources/index.ts
CHANGED
|
@@ -59,7 +59,11 @@ export {
|
|
|
59
59
|
type MigrationRetrieveNanoidParams,
|
|
60
60
|
} from './migration';
|
|
61
61
|
export { Project } from './project/project';
|
|
62
|
-
export {
|
|
62
|
+
export {
|
|
63
|
+
ToolRouter,
|
|
64
|
+
type ToolRouterCreateSessionResponse,
|
|
65
|
+
type ToolRouterCreateSessionParams,
|
|
66
|
+
} from './tool-router/tool-router';
|
|
63
67
|
export {
|
|
64
68
|
Toolkits,
|
|
65
69
|
type ToolkitRetrieveResponse,
|
|
@@ -16,4 +16,8 @@ export {
|
|
|
16
16
|
type SessionToolkitsParams,
|
|
17
17
|
type SessionToolsParams,
|
|
18
18
|
} from './session';
|
|
19
|
-
export {
|
|
19
|
+
export {
|
|
20
|
+
ToolRouter,
|
|
21
|
+
type ToolRouterCreateSessionResponse,
|
|
22
|
+
type ToolRouterCreateSessionParams,
|
|
23
|
+
} from './tool-router';
|
|
@@ -18,14 +18,114 @@ import {
|
|
|
18
18
|
SessionToolsParams,
|
|
19
19
|
SessionToolsResponse,
|
|
20
20
|
} from './session';
|
|
21
|
+
import { APIPromise } from '../../core/api-promise';
|
|
22
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
21
23
|
|
|
22
24
|
export class ToolRouter extends APIResource {
|
|
23
25
|
session: SessionAPI.Session = new SessionAPI.Session(this._client);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new session for the tool router lab feature (Legacy). This endpoint
|
|
29
|
+
* initializes a new session with specified toolkits and their authentication
|
|
30
|
+
* configurations. The session provides an isolated environment for testing and
|
|
31
|
+
* managing tool routing logic with scoped MCP server access.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const response = await client.toolRouter.createSession({
|
|
36
|
+
* user_id: 'user_123456789',
|
|
37
|
+
* config: {
|
|
38
|
+
* toolkits: [
|
|
39
|
+
* {
|
|
40
|
+
* toolkit: 'gmail',
|
|
41
|
+
* auth_config_id: 'auth_config_123',
|
|
42
|
+
* },
|
|
43
|
+
* {
|
|
44
|
+
* toolkit: 'slack',
|
|
45
|
+
* auth_config_id: 'auth_config_456',
|
|
46
|
+
* },
|
|
47
|
+
* { toolkit: 'github' },
|
|
48
|
+
* ],
|
|
49
|
+
* },
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
createSession(
|
|
54
|
+
body: ToolRouterCreateSessionParams,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): APIPromise<ToolRouterCreateSessionResponse> {
|
|
57
|
+
return this._client.post('/api/v3/labs/tool_router/session', { body, ...options });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface ToolRouterCreateSessionResponse {
|
|
62
|
+
/**
|
|
63
|
+
* MCP server endpoint URL for this specific chat session
|
|
64
|
+
*/
|
|
65
|
+
chat_session_mcp_url: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Generated session identifier
|
|
69
|
+
*/
|
|
70
|
+
session_id: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* MCP server endpoint URL for this specific tool router instance
|
|
74
|
+
*/
|
|
75
|
+
tool_router_instance_mcp_url: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ToolRouterCreateSessionParams {
|
|
79
|
+
/**
|
|
80
|
+
* Unique user identifier for the session owner
|
|
81
|
+
*/
|
|
82
|
+
user_id: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Session configuration including enabled toolkits and their auth configs
|
|
86
|
+
*/
|
|
87
|
+
config?: ToolRouterCreateSessionParams.Config;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export namespace ToolRouterCreateSessionParams {
|
|
91
|
+
/**
|
|
92
|
+
* Session configuration including enabled toolkits and their auth configs
|
|
93
|
+
*/
|
|
94
|
+
export interface Config {
|
|
95
|
+
/**
|
|
96
|
+
* Whether to manually manage connections
|
|
97
|
+
*/
|
|
98
|
+
manually_manage_connections?: boolean | null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Array of toolkit configurations with optional auth configs
|
|
102
|
+
*/
|
|
103
|
+
toolkits?: Array<Config.Toolkit>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export namespace Config {
|
|
107
|
+
export interface Toolkit {
|
|
108
|
+
/**
|
|
109
|
+
* Toolkit identifier (e.g., gmail, slack, github)
|
|
110
|
+
*/
|
|
111
|
+
toolkit: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Specific auth configuration ID for this toolkit
|
|
115
|
+
*/
|
|
116
|
+
auth_config_id?: string;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
24
119
|
}
|
|
25
120
|
|
|
26
121
|
ToolRouter.Session = Session;
|
|
27
122
|
|
|
28
123
|
export declare namespace ToolRouter {
|
|
124
|
+
export {
|
|
125
|
+
type ToolRouterCreateSessionResponse as ToolRouterCreateSessionResponse,
|
|
126
|
+
type ToolRouterCreateSessionParams as ToolRouterCreateSessionParams,
|
|
127
|
+
};
|
|
128
|
+
|
|
29
129
|
export {
|
|
30
130
|
Session as Session,
|
|
31
131
|
type SessionCreateResponse as SessionCreateResponse,
|
|
@@ -78,6 +78,11 @@ export interface ToolkitRetrieveResponse {
|
|
|
78
78
|
*/
|
|
79
79
|
slug: string;
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* Lifecycle status of the toolkit
|
|
83
|
+
*/
|
|
84
|
+
status: string;
|
|
85
|
+
|
|
81
86
|
/**
|
|
82
87
|
* Complete authentication configuration details for each supported auth method
|
|
83
88
|
*/
|
|
@@ -382,6 +387,11 @@ export namespace ToolkitListResponse {
|
|
|
382
387
|
*/
|
|
383
388
|
slug: string;
|
|
384
389
|
|
|
390
|
+
/**
|
|
391
|
+
* Lifecycle status of the toolkit
|
|
392
|
+
*/
|
|
393
|
+
status: string;
|
|
394
|
+
|
|
385
395
|
/**
|
|
386
396
|
* List of authentication methods supported by this toolkit
|
|
387
397
|
*/
|
package/src/resources/tools.ts
CHANGED
|
@@ -161,6 +161,11 @@ export interface ToolRetrieveResponse {
|
|
|
161
161
|
*/
|
|
162
162
|
slug: string;
|
|
163
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Lifecycle status of the tool
|
|
166
|
+
*/
|
|
167
|
+
status: string;
|
|
168
|
+
|
|
164
169
|
/**
|
|
165
170
|
* List of tags associated with the tool for categorization and filtering
|
|
166
171
|
*/
|
|
@@ -287,6 +292,11 @@ export namespace ToolListResponse {
|
|
|
287
292
|
*/
|
|
288
293
|
slug: string;
|
|
289
294
|
|
|
295
|
+
/**
|
|
296
|
+
* Lifecycle status of the tool
|
|
297
|
+
*/
|
|
298
|
+
status: string;
|
|
299
|
+
|
|
290
300
|
/**
|
|
291
301
|
* List of tags associated with the tool for categorization and filtering
|
|
292
302
|
*/
|
|
@@ -69,6 +69,11 @@ export interface TriggersTypeRetrieveResponse {
|
|
|
69
69
|
*/
|
|
70
70
|
slug: string;
|
|
71
71
|
|
|
72
|
+
/**
|
|
73
|
+
* Lifecycle status of the trigger
|
|
74
|
+
*/
|
|
75
|
+
status: string;
|
|
76
|
+
|
|
72
77
|
/**
|
|
73
78
|
* Information about the toolkit that provides this trigger
|
|
74
79
|
*/
|
|
@@ -151,6 +156,11 @@ export namespace TriggersTypeListResponse {
|
|
|
151
156
|
*/
|
|
152
157
|
slug: string;
|
|
153
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Lifecycle status of the trigger
|
|
161
|
+
*/
|
|
162
|
+
status: string;
|
|
163
|
+
|
|
154
164
|
/**
|
|
155
165
|
* Information about the toolkit that provides this trigger
|
|
156
166
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.55'; // 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.55";
|
|
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.55";
|
|
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.55'; // 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.55'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|