@composio/client 0.1.0-alpha.11 → 0.1.0-alpha.13
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 +24 -0
- package/README.md +7 -7
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- 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/auth/auth.d.mts +10 -0
- package/resources/auth/auth.d.mts.map +1 -0
- package/resources/auth/auth.d.ts +10 -0
- package/resources/auth/auth.d.ts.map +1 -0
- package/resources/auth/auth.js +17 -0
- package/resources/auth/auth.js.map +1 -0
- package/resources/auth/auth.mjs +12 -0
- package/resources/auth/auth.mjs.map +1 -0
- package/resources/auth/index.d.mts +3 -0
- package/resources/auth/index.d.mts.map +1 -0
- package/resources/auth/index.d.ts +3 -0
- package/resources/auth/index.d.ts.map +1 -0
- package/resources/auth/index.js +9 -0
- package/resources/auth/index.js.map +1 -0
- package/resources/auth/index.mjs +4 -0
- package/resources/auth/index.mjs.map +1 -0
- package/resources/auth/session.d.mts +240 -0
- package/resources/auth/session.d.mts.map +1 -0
- package/resources/auth/session.d.ts +240 -0
- package/resources/auth/session.d.ts.map +1 -0
- package/resources/auth/session.js +19 -0
- package/resources/auth/session.js.map +1 -0
- package/resources/auth/session.mjs +15 -0
- package/resources/auth/session.mjs.map +1 -0
- package/resources/auth-configs.d.mts +5 -5
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +5 -5
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth.d.mts +2 -0
- package/resources/auth.d.mts.map +1 -0
- package/resources/auth.d.ts +2 -0
- package/resources/auth.d.ts.map +1 -0
- package/resources/auth.js +6 -0
- package/resources/auth.js.map +1 -0
- package/resources/auth.mjs +3 -0
- package/resources/auth.mjs.map +1 -0
- package/resources/files.d.mts +16 -0
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +16 -0
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- 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/mcp/custom.d.mts +87 -0
- package/resources/mcp/custom.d.mts.map +1 -0
- package/resources/mcp/custom.d.ts +87 -0
- package/resources/mcp/custom.d.ts.map +1 -0
- package/resources/mcp/custom.js +26 -0
- package/resources/mcp/custom.js.map +1 -0
- package/resources/mcp/custom.mjs +22 -0
- package/resources/mcp/custom.mjs.map +1 -0
- package/resources/mcp/index.d.mts +2 -2
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts +2 -2
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.js +3 -3
- package/resources/mcp/index.js.map +1 -1
- package/resources/mcp/index.mjs +1 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +193 -85
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +193 -85
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +37 -26
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +37 -26
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/org/project/api-keys.d.mts +17 -2
- package/resources/org/project/api-keys.d.mts.map +1 -1
- package/resources/org/project/api-keys.d.ts +17 -2
- package/resources/org/project/api-keys.d.ts.map +1 -1
- package/resources/team-members.d.mts +7 -7
- package/resources/team-members.d.mts.map +1 -1
- package/resources/team-members.d.ts +7 -7
- package/resources/team-members.d.ts.map +1 -1
- package/resources/tools.d.mts +6 -6
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +6 -6
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +6 -6
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +6 -6
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts +1 -1
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +1 -1
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +77 -7
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +77 -7
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +7 -0
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +7 -0
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/src/client.ts +19 -4
- package/src/resources/auth/auth.ts +15 -0
- package/src/resources/auth/index.ts +4 -0
- package/src/resources/auth/session.ts +292 -0
- package/src/resources/auth-configs.ts +5 -5
- package/src/resources/auth.ts +3 -0
- package/src/resources/files.ts +19 -0
- package/src/resources/index.ts +8 -2
- package/src/resources/mcp/custom.ts +103 -0
- package/src/resources/mcp/index.ts +5 -3
- package/src/resources/mcp/mcp.ts +228 -102
- package/src/resources/org/project/api-keys.ts +20 -2
- package/src/resources/team-members.ts +7 -7
- package/src/resources/tools.ts +8 -8
- package/src/resources/trigger-instances/index.ts +3 -0
- package/src/resources/trigger-instances/trigger-instances.ts +103 -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
- package/resources/mcp/command.d.mts +0 -4
- package/resources/mcp/command.d.mts.map +0 -1
- package/resources/mcp/command.d.ts +0 -4
- package/resources/mcp/command.d.ts.map +0 -1
- package/resources/mcp/command.js +0 -9
- package/resources/mcp/command.js.map +0 -1
- package/resources/mcp/command.mjs +0 -5
- package/resources/mcp/command.mjs.map +0 -1
- package/src/resources/mcp/command.ts +0 -5
|
@@ -112,12 +112,12 @@ export interface AuthConfigCreateResponse {
|
|
|
112
112
|
export namespace AuthConfigCreateResponse {
|
|
113
113
|
export interface AuthConfig {
|
|
114
114
|
/**
|
|
115
|
-
* The auth config id of the
|
|
115
|
+
* The auth config id of the toolkit (must be a valid auth config id)
|
|
116
116
|
*/
|
|
117
117
|
id: string;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* The authentication mode of the
|
|
120
|
+
* The authentication mode of the toolkit
|
|
121
121
|
*/
|
|
122
122
|
auth_scheme: string;
|
|
123
123
|
|
|
@@ -127,7 +127,7 @@ export namespace AuthConfigCreateResponse {
|
|
|
127
127
|
is_composio_managed: boolean;
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
|
-
* The
|
|
130
|
+
* The tools that the user can use with the auth config
|
|
131
131
|
*/
|
|
132
132
|
restrict_to_following_tools?: Array<string>;
|
|
133
133
|
}
|
|
@@ -441,7 +441,7 @@ export interface AuthConfigCreateParams {
|
|
|
441
441
|
export namespace AuthConfigCreateParams {
|
|
442
442
|
export interface Toolkit {
|
|
443
443
|
/**
|
|
444
|
-
* List of
|
|
444
|
+
* List of toolkits unique keys to filter by
|
|
445
445
|
*/
|
|
446
446
|
slug: string;
|
|
447
447
|
}
|
|
@@ -535,7 +535,7 @@ export interface AuthConfigListParams {
|
|
|
535
535
|
/**
|
|
536
536
|
* The number of auth configs to return
|
|
537
537
|
*/
|
|
538
|
-
limit?:
|
|
538
|
+
limit?: number | null;
|
|
539
539
|
|
|
540
540
|
/**
|
|
541
541
|
* Show disabled auth configs
|
package/src/resources/files.ts
CHANGED
|
@@ -99,6 +99,12 @@ export namespace FileCreatePresignedURLResponse {
|
|
|
99
99
|
* URL of the existing request file. Example:
|
|
100
100
|
* "https://storage.example.com/projects/123/files/photo-1234.jpg"
|
|
101
101
|
*/
|
|
102
|
+
existing_url: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* [DEPRECATED] Use existing_url instead. URL of the existing request file.
|
|
106
|
+
* Example: "https://storage.example.com/projects/123/files/photo-1234.jpg"
|
|
107
|
+
*/
|
|
102
108
|
existingUrl: string;
|
|
103
109
|
|
|
104
110
|
/**
|
|
@@ -127,6 +133,12 @@ export namespace FileCreatePresignedURLResponse {
|
|
|
127
133
|
* Presigned URL for upload. Example:
|
|
128
134
|
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
129
135
|
*/
|
|
136
|
+
new_presigned_url: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* [DEPRECATED] Use new_presigned_url instead. Presigned URL for upload. Example:
|
|
140
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
141
|
+
*/
|
|
130
142
|
newPresignedUrl: string;
|
|
131
143
|
|
|
132
144
|
/**
|
|
@@ -155,6 +167,13 @@ export namespace FileCreatePresignedURLResponse {
|
|
|
155
167
|
* Presigned URL for upload. Example:
|
|
156
168
|
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
157
169
|
*/
|
|
170
|
+
update_presigned_url: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* [DEPRECATED] Use update_presigned_url instead. Presigned URL for upload.
|
|
174
|
+
* Example:
|
|
175
|
+
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
176
|
+
*/
|
|
158
177
|
updatePresignedUrl: string;
|
|
159
178
|
}
|
|
160
179
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export { Auth } from './auth/auth';
|
|
3
4
|
export {
|
|
4
5
|
AuthConfigs,
|
|
5
6
|
type AuthConfigCreateResponse,
|
|
@@ -34,14 +35,16 @@ export {
|
|
|
34
35
|
} from './files';
|
|
35
36
|
export {
|
|
36
37
|
Mcp,
|
|
38
|
+
type McpCreateResponse,
|
|
37
39
|
type McpRetrieveResponse,
|
|
38
40
|
type McpUpdateResponse,
|
|
41
|
+
type McpListResponse,
|
|
39
42
|
type McpDeleteResponse,
|
|
40
43
|
type McpRetrieveAppResponse,
|
|
41
|
-
type
|
|
44
|
+
type McpCreateParams,
|
|
42
45
|
type McpUpdateParams,
|
|
46
|
+
type McpListParams,
|
|
43
47
|
type McpRetrieveAppParams,
|
|
44
|
-
type McpValidateParams,
|
|
45
48
|
} from './mcp/mcp';
|
|
46
49
|
export {
|
|
47
50
|
Migration,
|
|
@@ -81,9 +84,12 @@ export {
|
|
|
81
84
|
} from './tools';
|
|
82
85
|
export {
|
|
83
86
|
TriggerInstances,
|
|
87
|
+
type TriggerInstanceDeleteResponse,
|
|
84
88
|
type TriggerInstanceListActiveResponse,
|
|
89
|
+
type TriggerInstanceUpdateStatusResponse,
|
|
85
90
|
type TriggerInstanceUpsertResponse,
|
|
86
91
|
type TriggerInstanceListActiveParams,
|
|
92
|
+
type TriggerInstanceUpdateStatusParams,
|
|
87
93
|
type TriggerInstanceUpsertParams,
|
|
88
94
|
} from './trigger-instances/trigger-instances';
|
|
89
95
|
export {
|
|
@@ -0,0 +1,103 @@
|
|
|
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 Custom extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new Model Control Protocol (MCP) server instance that can integrate
|
|
10
|
+
* with multiple applications or toolkits simultaneously. This endpoint allows you
|
|
11
|
+
* to create a server that can access tools from different applications, making it
|
|
12
|
+
* suitable for complex workflows that span multiple services.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const custom = await client.mcp.custom.create({
|
|
17
|
+
* name: 'Development Integration Server',
|
|
18
|
+
* toolkits: ['github', 'jira'],
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body: CustomCreateParams, options?: RequestOptions): APIPromise<CustomCreateResponse> {
|
|
23
|
+
return this._client.post('/api/v3/mcp/servers/custom', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Response for a successfully created custom MCP server with multiple applications
|
|
29
|
+
*/
|
|
30
|
+
export interface CustomCreateResponse {
|
|
31
|
+
/**
|
|
32
|
+
* Unique identifier for the newly created custom MCP server
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* List of tool identifiers that are enabled for this server
|
|
38
|
+
*/
|
|
39
|
+
allowed_tools: Array<string>;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Set of command line instructions for connecting various clients to this MCP
|
|
43
|
+
* server
|
|
44
|
+
*/
|
|
45
|
+
commands: CustomCreateResponse.Commands;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* URL endpoint for establishing Server-Sent Events (SSE) connection to this MCP
|
|
49
|
+
* server
|
|
50
|
+
*/
|
|
51
|
+
mcp_url: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Human-readable name of the custom MCP server
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export namespace CustomCreateResponse {
|
|
60
|
+
/**
|
|
61
|
+
* Set of command line instructions for connecting various clients to this MCP
|
|
62
|
+
* server
|
|
63
|
+
*/
|
|
64
|
+
export interface Commands {
|
|
65
|
+
/**
|
|
66
|
+
* Command line instruction for Claude client setup
|
|
67
|
+
*/
|
|
68
|
+
claude: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Command line instruction for Cursor client setup
|
|
72
|
+
*/
|
|
73
|
+
cursor: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Command line instruction for Windsurf client setup
|
|
77
|
+
*/
|
|
78
|
+
windsurf: string;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface CustomCreateParams {
|
|
83
|
+
/**
|
|
84
|
+
* Human-readable name to identify this custom MCP server (4-25 characters,
|
|
85
|
+
* alphanumeric and hyphens only)
|
|
86
|
+
*/
|
|
87
|
+
name: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* List of application/toolkit identifiers to enable for this server
|
|
91
|
+
*/
|
|
92
|
+
toolkits: Array<string>;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Additional custom tool identifiers to enable that aren't part of standard
|
|
96
|
+
* toolkits
|
|
97
|
+
*/
|
|
98
|
+
custom_tools?: Array<string>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export declare namespace Custom {
|
|
102
|
+
export { type CustomCreateResponse as CustomCreateResponse, type CustomCreateParams as CustomCreateParams };
|
|
103
|
+
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { Custom, type CustomCreateResponse, type CustomCreateParams } from './custom';
|
|
4
4
|
export {
|
|
5
5
|
Mcp,
|
|
6
|
+
type McpCreateResponse,
|
|
6
7
|
type McpRetrieveResponse,
|
|
7
8
|
type McpUpdateResponse,
|
|
9
|
+
type McpListResponse,
|
|
8
10
|
type McpDeleteResponse,
|
|
9
11
|
type McpRetrieveAppResponse,
|
|
10
|
-
type
|
|
12
|
+
type McpCreateParams,
|
|
11
13
|
type McpUpdateParams,
|
|
14
|
+
type McpListParams,
|
|
12
15
|
type McpRetrieveAppParams,
|
|
13
|
-
type McpValidateParams,
|
|
14
16
|
} from './mcp';
|