@composio/client 0.1.0-alpha.17 → 0.1.0-alpha.19
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 +22 -0
- package/package.json +1 -1
- package/resources/mcp/custom.d.mts +15 -3
- package/resources/mcp/custom.d.mts.map +1 -1
- package/resources/mcp/custom.d.ts +15 -3
- package/resources/mcp/custom.d.ts.map +1 -1
- package/resources/mcp/mcp.d.mts +79 -37
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +79 -37
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +1 -1
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +1 -1
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/v3/admin.d.mts +1 -40
- package/resources/v3/admin.d.mts.map +1 -1
- package/resources/v3/admin.d.ts +1 -40
- package/resources/v3/admin.d.ts.map +1 -1
- package/resources/v3/admin.js +0 -22
- package/resources/v3/admin.js.map +1 -1
- package/resources/v3/admin.mjs +0 -22
- package/resources/v3/admin.mjs.map +1 -1
- package/resources/v3/index.d.mts +1 -1
- package/resources/v3/index.d.mts.map +1 -1
- package/resources/v3/index.d.ts +1 -1
- package/resources/v3/index.d.ts.map +1 -1
- package/resources/v3/index.js.map +1 -1
- package/resources/v3/index.mjs +1 -1
- package/resources/v3/index.mjs.map +1 -1
- package/resources/v3/v3.d.mts +2 -2
- package/resources/v3/v3.d.mts.map +1 -1
- package/resources/v3/v3.d.ts +2 -2
- package/resources/v3/v3.d.ts.map +1 -1
- package/resources/v3/v3.js.map +1 -1
- package/resources/v3/v3.mjs +1 -1
- package/resources/v3/v3.mjs.map +1 -1
- package/src/resources/mcp/custom.ts +18 -3
- package/src/resources/mcp/mcp.ts +91 -39
- package/src/resources/v3/admin.ts +0 -56
- package/src/resources/v3/index.ts +1 -7
- package/src/resources/v3/v3.ts +1 -9
- 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/v3/v3.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as AdminAPI from "./admin.mjs";
|
|
3
|
-
import { Admin,
|
|
3
|
+
import { Admin, AdminRefreshAuthTokensParams, AdminRefreshAuthTokensResponse } from "./admin.mjs";
|
|
4
4
|
import * as CliAPI from "./cli.mjs";
|
|
5
5
|
import { Cli, CliCreateSessionResponse, CliLinkSessionParams, CliLinkSessionResponse, CliRetrieveSessionParams, CliRetrieveSessionResponse } from "./cli.mjs";
|
|
6
6
|
import * as AuthAPI from "./auth/auth.mjs";
|
|
@@ -15,7 +15,7 @@ export declare class V3 extends APIResource {
|
|
|
15
15
|
}
|
|
16
16
|
export declare namespace V3 {
|
|
17
17
|
export { Auth as Auth };
|
|
18
|
-
export { Admin as Admin, type
|
|
18
|
+
export { Admin as Admin, type AdminRefreshAuthTokensResponse as AdminRefreshAuthTokensResponse, type AdminRefreshAuthTokensParams as AdminRefreshAuthTokensParams, };
|
|
19
19
|
export { Cli as Cli, type CliCreateSessionResponse as CliCreateSessionResponse, type CliLinkSessionResponse as CliLinkSessionResponse, type CliRetrieveSessionResponse as CliRetrieveSessionResponse, type CliLinkSessionParams as CliLinkSessionParams, type CliRetrieveSessionParams as CliRetrieveSessionParams, };
|
|
20
20
|
export { Internal as Internal };
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.d.mts","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,
|
|
1
|
+
{"version":3,"file":"v3.d.mts","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE,4BAA4B,EAAE,8BAA8B,EAAE;OACvE,KAAK,MAAM;OACX,EACL,GAAG,EACH,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAOD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;CACjC"}
|
package/resources/v3/v3.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as AdminAPI from "./admin.js";
|
|
3
|
-
import { Admin,
|
|
3
|
+
import { Admin, AdminRefreshAuthTokensParams, AdminRefreshAuthTokensResponse } from "./admin.js";
|
|
4
4
|
import * as CliAPI from "./cli.js";
|
|
5
5
|
import { Cli, CliCreateSessionResponse, CliLinkSessionParams, CliLinkSessionResponse, CliRetrieveSessionParams, CliRetrieveSessionResponse } from "./cli.js";
|
|
6
6
|
import * as AuthAPI from "./auth/auth.js";
|
|
@@ -15,7 +15,7 @@ export declare class V3 extends APIResource {
|
|
|
15
15
|
}
|
|
16
16
|
export declare namespace V3 {
|
|
17
17
|
export { Auth as Auth };
|
|
18
|
-
export { Admin as Admin, type
|
|
18
|
+
export { Admin as Admin, type AdminRefreshAuthTokensResponse as AdminRefreshAuthTokensResponse, type AdminRefreshAuthTokensParams as AdminRefreshAuthTokensParams, };
|
|
19
19
|
export { Cli as Cli, type CliCreateSessionResponse as CliCreateSessionResponse, type CliLinkSessionResponse as CliLinkSessionResponse, type CliRetrieveSessionResponse as CliRetrieveSessionResponse, type CliLinkSessionParams as CliLinkSessionParams, type CliRetrieveSessionParams as CliRetrieveSessionParams, };
|
|
20
20
|
export { Internal as Internal };
|
|
21
21
|
}
|
package/resources/v3/v3.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.d.ts","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,
|
|
1
|
+
{"version":3,"file":"v3.d.ts","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE,4BAA4B,EAAE,8BAA8B,EAAE;OACvE,KAAK,MAAM;OACX,EACL,GAAG,EACH,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAOD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;CACjC"}
|
package/resources/v3/v3.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.js","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"v3.js","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAA8F;AAC9F,yDAAgC;AAChC,kCAOe;AACf,gEAAuC;AACvC,yCAAmC;AACnC,4EAAmD;AACnD,qDAA+C;AAE/C,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AALD,gBAKC;AAED,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,GAAG,GAAG,SAAG,CAAC;AACb,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
package/resources/v3/v3.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as AdminAPI from "./admin.mjs";
|
|
4
|
-
import { Admin
|
|
4
|
+
import { Admin } from "./admin.mjs";
|
|
5
5
|
import * as CliAPI from "./cli.mjs";
|
|
6
6
|
import { Cli, } from "./cli.mjs";
|
|
7
7
|
import * as AuthAPI from "./auth/auth.mjs";
|
package/resources/v3/v3.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.mjs","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,
|
|
1
|
+
{"version":3,"file":"v3.mjs","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAgE;OACvE,KAAK,MAAM;OACX,EACL,GAAG,GAMJ;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAED,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;AACb,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -38,6 +38,11 @@ export interface CustomCreateResponse {
|
|
|
38
38
|
*/
|
|
39
39
|
allowed_tools: Array<string>;
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* ID references to the auth configurations used by this server
|
|
43
|
+
*/
|
|
44
|
+
auth_config_ids: Array<string>;
|
|
45
|
+
|
|
41
46
|
/**
|
|
42
47
|
* Set of command line instructions for connecting various clients to this MCP
|
|
43
48
|
* server
|
|
@@ -87,15 +92,25 @@ export interface CustomCreateParams {
|
|
|
87
92
|
name: string;
|
|
88
93
|
|
|
89
94
|
/**
|
|
90
|
-
*
|
|
95
|
+
* ID reference to one or more existing authentication configurations
|
|
91
96
|
*/
|
|
92
|
-
|
|
97
|
+
auth_config_ids?: Array<string> | null;
|
|
93
98
|
|
|
94
99
|
/**
|
|
95
100
|
* Additional custom tool identifiers to enable that aren't part of standard
|
|
96
101
|
* toolkits
|
|
97
102
|
*/
|
|
98
|
-
custom_tools?: Array<string
|
|
103
|
+
custom_tools?: Array<string> | null;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Whether to manage authentication via Composio
|
|
107
|
+
*/
|
|
108
|
+
managed_auth_via_composio?: boolean;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* List of application/toolkit identifiers to enable for this server
|
|
112
|
+
*/
|
|
113
|
+
toolkits?: Array<string> | null;
|
|
99
114
|
}
|
|
100
115
|
|
|
101
116
|
export declare namespace Custom {
|
package/src/resources/mcp/mcp.ts
CHANGED
|
@@ -22,7 +22,7 @@ export class Mcp extends APIResource {
|
|
|
22
22
|
* ```ts
|
|
23
23
|
* const mcp = await client.mcp.create({
|
|
24
24
|
* name: 'GitHub Integration Server',
|
|
25
|
-
*
|
|
25
|
+
* auth_config_ids: ['auth_cfg_abc123def456'],
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
@@ -161,9 +161,9 @@ export interface McpCreateResponse {
|
|
|
161
161
|
allowed_tools: Array<string>;
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
|
-
* ID
|
|
164
|
+
* ID references to the auth configurations used by this server
|
|
165
165
|
*/
|
|
166
|
-
|
|
166
|
+
auth_config_ids: Array<string>;
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
169
|
* Set of command line instructions for connecting various clients to this MCP
|
|
@@ -176,6 +176,11 @@ export interface McpCreateResponse {
|
|
|
176
176
|
*/
|
|
177
177
|
created_at: string;
|
|
178
178
|
|
|
179
|
+
/**
|
|
180
|
+
* Whether the MCP server is managed by Composio
|
|
181
|
+
*/
|
|
182
|
+
managed_auth_via_composio: boolean;
|
|
183
|
+
|
|
179
184
|
/**
|
|
180
185
|
* URL endpoint for establishing SSE connection to this MCP server
|
|
181
186
|
*/
|
|
@@ -186,6 +191,11 @@ export interface McpCreateResponse {
|
|
|
186
191
|
*/
|
|
187
192
|
name: string;
|
|
188
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Array of toolkit slugs that this MCP server is allowed to use
|
|
196
|
+
*/
|
|
197
|
+
toolkits: Array<string>;
|
|
198
|
+
|
|
189
199
|
/**
|
|
190
200
|
* Date and time when this server configuration was last modified
|
|
191
201
|
*/
|
|
@@ -230,9 +240,9 @@ export interface McpRetrieveResponse {
|
|
|
230
240
|
allowed_tools: Array<string>;
|
|
231
241
|
|
|
232
242
|
/**
|
|
233
|
-
* ID
|
|
243
|
+
* ID references to the auth configurations used by this server
|
|
234
244
|
*/
|
|
235
|
-
|
|
245
|
+
auth_config_ids: Array<string>;
|
|
236
246
|
|
|
237
247
|
/**
|
|
238
248
|
* Set of command line instructions for connecting various clients to this MCP
|
|
@@ -250,6 +260,11 @@ export interface McpRetrieveResponse {
|
|
|
250
260
|
*/
|
|
251
261
|
deleted: boolean;
|
|
252
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Whether the MCP server is managed by Composio
|
|
265
|
+
*/
|
|
266
|
+
managed_auth_via_composio: boolean;
|
|
267
|
+
|
|
253
268
|
/**
|
|
254
269
|
* URL endpoint for establishing SSE connection to this MCP server
|
|
255
270
|
*/
|
|
@@ -260,6 +275,11 @@ export interface McpRetrieveResponse {
|
|
|
260
275
|
*/
|
|
261
276
|
name: string;
|
|
262
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Array of toolkit slugs that this MCP server is allowed to use
|
|
280
|
+
*/
|
|
281
|
+
toolkits: Array<string>;
|
|
282
|
+
|
|
263
283
|
/**
|
|
264
284
|
* Date and time when this server configuration was last modified
|
|
265
285
|
*/
|
|
@@ -304,9 +324,9 @@ export interface McpUpdateResponse {
|
|
|
304
324
|
allowed_tools: Array<string>;
|
|
305
325
|
|
|
306
326
|
/**
|
|
307
|
-
* ID
|
|
327
|
+
* ID references to the auth configurations used by this server
|
|
308
328
|
*/
|
|
309
|
-
|
|
329
|
+
auth_config_ids: Array<string>;
|
|
310
330
|
|
|
311
331
|
/**
|
|
312
332
|
* Set of command line instructions for connecting various clients to this MCP
|
|
@@ -324,6 +344,11 @@ export interface McpUpdateResponse {
|
|
|
324
344
|
*/
|
|
325
345
|
deleted: boolean;
|
|
326
346
|
|
|
347
|
+
/**
|
|
348
|
+
* Whether the MCP server is managed by Composio
|
|
349
|
+
*/
|
|
350
|
+
managed_auth_via_composio: boolean;
|
|
351
|
+
|
|
327
352
|
/**
|
|
328
353
|
* URL endpoint for establishing SSE connection to this MCP server
|
|
329
354
|
*/
|
|
@@ -334,6 +359,11 @@ export interface McpUpdateResponse {
|
|
|
334
359
|
*/
|
|
335
360
|
name: string;
|
|
336
361
|
|
|
362
|
+
/**
|
|
363
|
+
* Array of toolkit slugs that this MCP server is allowed to use
|
|
364
|
+
*/
|
|
365
|
+
toolkits: Array<string>;
|
|
366
|
+
|
|
337
367
|
/**
|
|
338
368
|
* Date and time when this server configuration was last modified
|
|
339
369
|
*/
|
|
@@ -399,9 +429,9 @@ export namespace McpListResponse {
|
|
|
399
429
|
allowed_tools: Array<string>;
|
|
400
430
|
|
|
401
431
|
/**
|
|
402
|
-
* ID
|
|
432
|
+
* ID references to the auth configurations used by this server
|
|
403
433
|
*/
|
|
404
|
-
|
|
434
|
+
auth_config_ids: Array<string>;
|
|
405
435
|
|
|
406
436
|
/**
|
|
407
437
|
* Set of command line instructions for connecting various clients to this MCP
|
|
@@ -414,6 +444,11 @@ export namespace McpListResponse {
|
|
|
414
444
|
*/
|
|
415
445
|
created_at: string;
|
|
416
446
|
|
|
447
|
+
/**
|
|
448
|
+
* Whether the MCP server is managed by Composio
|
|
449
|
+
*/
|
|
450
|
+
managed_auth_via_composio: boolean;
|
|
451
|
+
|
|
417
452
|
/**
|
|
418
453
|
* URL endpoint for establishing SSE connection to this MCP server
|
|
419
454
|
*/
|
|
@@ -424,6 +459,11 @@ export namespace McpListResponse {
|
|
|
424
459
|
*/
|
|
425
460
|
name: string;
|
|
426
461
|
|
|
462
|
+
/**
|
|
463
|
+
* Array of toolkit slugs that this MCP server is allowed to use
|
|
464
|
+
*/
|
|
465
|
+
toolkits: Array<string>;
|
|
466
|
+
|
|
427
467
|
/**
|
|
428
468
|
* Date and time when this server configuration was last modified
|
|
429
469
|
*/
|
|
@@ -500,9 +540,9 @@ export namespace McpRetrieveAppResponse {
|
|
|
500
540
|
allowed_tools: Array<string>;
|
|
501
541
|
|
|
502
542
|
/**
|
|
503
|
-
* ID
|
|
543
|
+
* ID references to the auth configurations used by this server
|
|
504
544
|
*/
|
|
505
|
-
|
|
545
|
+
auth_config_ids: Array<string>;
|
|
506
546
|
|
|
507
547
|
/**
|
|
508
548
|
* Set of command line instructions for connecting various clients to this MCP
|
|
@@ -515,6 +555,11 @@ export namespace McpRetrieveAppResponse {
|
|
|
515
555
|
*/
|
|
516
556
|
created_at: string;
|
|
517
557
|
|
|
558
|
+
/**
|
|
559
|
+
* Whether the MCP server is managed by Composio
|
|
560
|
+
*/
|
|
561
|
+
managed_auth_via_composio: boolean;
|
|
562
|
+
|
|
518
563
|
/**
|
|
519
564
|
* URL endpoint for establishing SSE connection to this MCP server
|
|
520
565
|
*/
|
|
@@ -525,6 +570,11 @@ export namespace McpRetrieveAppResponse {
|
|
|
525
570
|
*/
|
|
526
571
|
name: string;
|
|
527
572
|
|
|
573
|
+
/**
|
|
574
|
+
* Array of toolkit slugs that this MCP server is allowed to use
|
|
575
|
+
*/
|
|
576
|
+
toolkits: Array<string>;
|
|
577
|
+
|
|
528
578
|
/**
|
|
529
579
|
* Date and time when this server configuration was last modified
|
|
530
580
|
*/
|
|
@@ -587,27 +637,22 @@ export interface McpValidateResponse {
|
|
|
587
637
|
/**
|
|
588
638
|
* List of action identifiers enabled for this server
|
|
589
639
|
*/
|
|
590
|
-
|
|
640
|
+
allowed_tools?: Array<string> | null;
|
|
591
641
|
|
|
592
642
|
/**
|
|
593
|
-
*
|
|
594
|
-
*/
|
|
595
|
-
apps?: Array<string>;
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
* List of connected account identifiers this server can use for authentication
|
|
643
|
+
* Flag indicating if this server uses custom authentication headers
|
|
599
644
|
*/
|
|
600
|
-
|
|
645
|
+
customAuthHeaders?: boolean;
|
|
601
646
|
|
|
602
647
|
/**
|
|
603
|
-
* Flag indicating if this server
|
|
648
|
+
* Flag indicating if this server is managed by Composio and not by the user
|
|
604
649
|
*/
|
|
605
|
-
|
|
650
|
+
managed_auth_via_composio?: boolean;
|
|
606
651
|
|
|
607
652
|
/**
|
|
608
|
-
* List of
|
|
653
|
+
* List of application identifiers this server is configured for
|
|
609
654
|
*/
|
|
610
|
-
|
|
655
|
+
toolkits?: Array<string>;
|
|
611
656
|
}
|
|
612
657
|
|
|
613
658
|
export namespace McpValidateResponse {
|
|
@@ -661,9 +706,14 @@ export interface McpCreateParams {
|
|
|
661
706
|
allowed_tools?: Array<string>;
|
|
662
707
|
|
|
663
708
|
/**
|
|
664
|
-
* ID
|
|
709
|
+
* ID references to existing authentication configurations
|
|
710
|
+
*/
|
|
711
|
+
auth_config_ids?: Array<string>;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Whether the MCP server is managed by Composio
|
|
665
715
|
*/
|
|
666
|
-
|
|
716
|
+
managed_auth_via_composio?: boolean;
|
|
667
717
|
|
|
668
718
|
/**
|
|
669
719
|
* Time-to-live duration for this MCP server
|
|
@@ -675,25 +725,25 @@ export interface McpUpdateParams {
|
|
|
675
725
|
/**
|
|
676
726
|
* List of action identifiers that should be enabled for this server
|
|
677
727
|
*/
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* List of application identifiers this server should be configured to work with
|
|
682
|
-
*/
|
|
683
|
-
apps?: Array<string>;
|
|
728
|
+
allowed_tools?: Array<string> | null;
|
|
684
729
|
|
|
685
730
|
/**
|
|
686
731
|
* Human-readable name to identify this MCP server instance (4-25 characters,
|
|
687
732
|
* alphanumeric and hyphens only)
|
|
688
733
|
*/
|
|
689
734
|
name?: string;
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* List of toolkit slugs this server should be configured to work with
|
|
738
|
+
*/
|
|
739
|
+
toolkits?: Array<string> | null;
|
|
690
740
|
}
|
|
691
741
|
|
|
692
742
|
export interface McpListParams {
|
|
693
743
|
/**
|
|
694
|
-
* Filter MCP servers by authentication configuration
|
|
744
|
+
* Filter MCP servers by authentication configuration IDs
|
|
695
745
|
*/
|
|
696
|
-
|
|
746
|
+
auth_config_ids?: Array<string> | null;
|
|
697
747
|
|
|
698
748
|
/**
|
|
699
749
|
* Number of items per page (default: 10)
|
|
@@ -711,16 +761,17 @@ export interface McpListParams {
|
|
|
711
761
|
page_no?: number | null;
|
|
712
762
|
|
|
713
763
|
/**
|
|
714
|
-
* Filter MCP servers by toolkit
|
|
764
|
+
* Filter MCP servers by toolkit slugs (returns servers matching any of the
|
|
765
|
+
* provided toolkits)
|
|
715
766
|
*/
|
|
716
|
-
|
|
767
|
+
toolkits?: Array<string> | null;
|
|
717
768
|
}
|
|
718
769
|
|
|
719
770
|
export interface McpRetrieveAppParams {
|
|
720
771
|
/**
|
|
721
|
-
* Filter MCP servers by authentication configuration
|
|
772
|
+
* Filter MCP servers by authentication configuration IDs
|
|
722
773
|
*/
|
|
723
|
-
|
|
774
|
+
auth_config_ids?: Array<string> | null;
|
|
724
775
|
|
|
725
776
|
/**
|
|
726
777
|
* Number of items per page (default: 10)
|
|
@@ -738,9 +789,10 @@ export interface McpRetrieveAppParams {
|
|
|
738
789
|
page_no?: number | null;
|
|
739
790
|
|
|
740
791
|
/**
|
|
741
|
-
* Filter MCP servers by toolkit
|
|
792
|
+
* Filter MCP servers by toolkit slugs (returns servers matching any of the
|
|
793
|
+
* provided toolkits)
|
|
742
794
|
*/
|
|
743
|
-
|
|
795
|
+
toolkits?: Array<string> | null;
|
|
744
796
|
}
|
|
745
797
|
|
|
746
798
|
export interface McpValidateParams {
|
|
@@ -6,32 +6,6 @@ import { buildHeaders } from '../../internal/headers';
|
|
|
6
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
7
|
|
|
8
8
|
export class Admin extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Administrative endpoint that retrieves all active connections for a given
|
|
11
|
-
* toolkit slug. This is primarily used for token refresh operations and system
|
|
12
|
-
* maintenance. Only includes non-deleted connections with OAuth2 or JWT
|
|
13
|
-
* authentication types.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const response = await client.v3.admin.listConnections({
|
|
18
|
-
* toolkit_slug: 'google-drive',
|
|
19
|
-
* 'x-composio-admin-token': 'adm_123456789abcdef',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
listConnections(
|
|
24
|
-
params: AdminListConnectionsParams,
|
|
25
|
-
options?: RequestOptions,
|
|
26
|
-
): APIPromise<AdminListConnectionsResponse> {
|
|
27
|
-
const { 'x-composio-admin-token': xComposioAdminToken, ...query } = params;
|
|
28
|
-
return this._client.get('/api/v3/admin/connections', {
|
|
29
|
-
query,
|
|
30
|
-
...options,
|
|
31
|
-
headers: buildHeaders([{ 'x-composio-admin-token': xComposioAdminToken }, options?.headers]),
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
9
|
/**
|
|
36
10
|
* Administrative endpoint that refreshes authentication tokens for multiple
|
|
37
11
|
* connected accounts in parallel. This is useful for proactive token refresh to
|
|
@@ -59,22 +33,6 @@ export class Admin extends APIResource {
|
|
|
59
33
|
}
|
|
60
34
|
}
|
|
61
35
|
|
|
62
|
-
export interface AdminListConnectionsResponse {
|
|
63
|
-
/**
|
|
64
|
-
* Collection of account connection objects, may be empty if no connections exist
|
|
65
|
-
*/
|
|
66
|
-
items: Array<AdminListConnectionsResponse.Item>;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export namespace AdminListConnectionsResponse {
|
|
70
|
-
export interface Item {
|
|
71
|
-
/**
|
|
72
|
-
* Identifier that can be used with other API endpoints that operate on connections
|
|
73
|
-
*/
|
|
74
|
-
id: string;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
36
|
export interface AdminRefreshAuthTokensResponse {
|
|
79
37
|
/**
|
|
80
38
|
* Array of connections that failed to refresh with detailed error information
|
|
@@ -101,18 +59,6 @@ export namespace AdminRefreshAuthTokensResponse {
|
|
|
101
59
|
}
|
|
102
60
|
}
|
|
103
61
|
|
|
104
|
-
export interface AdminListConnectionsParams {
|
|
105
|
-
/**
|
|
106
|
-
* Query param: The unique identifier slug of the toolkit to filter connections by
|
|
107
|
-
*/
|
|
108
|
-
toolkit_slug: string;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Header param: Admin authentication token required for administrative operations
|
|
112
|
-
*/
|
|
113
|
-
'x-composio-admin-token': string;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
62
|
export interface AdminRefreshAuthTokensParams {
|
|
117
63
|
/**
|
|
118
64
|
* Body param: List of connection identifiers that need token refresh
|
|
@@ -133,9 +79,7 @@ export interface AdminRefreshAuthTokensParams {
|
|
|
133
79
|
|
|
134
80
|
export declare namespace Admin {
|
|
135
81
|
export {
|
|
136
|
-
type AdminListConnectionsResponse as AdminListConnectionsResponse,
|
|
137
82
|
type AdminRefreshAuthTokensResponse as AdminRefreshAuthTokensResponse,
|
|
138
|
-
type AdminListConnectionsParams as AdminListConnectionsParams,
|
|
139
83
|
type AdminRefreshAuthTokensParams as AdminRefreshAuthTokensParams,
|
|
140
84
|
};
|
|
141
85
|
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
Admin,
|
|
5
|
-
type AdminListConnectionsResponse,
|
|
6
|
-
type AdminRefreshAuthTokensResponse,
|
|
7
|
-
type AdminListConnectionsParams,
|
|
8
|
-
type AdminRefreshAuthTokensParams,
|
|
9
|
-
} from './admin';
|
|
3
|
+
export { Admin, type AdminRefreshAuthTokensResponse, type AdminRefreshAuthTokensParams } from './admin';
|
|
10
4
|
export { Auth } from './auth/index';
|
|
11
5
|
export {
|
|
12
6
|
Cli,
|
package/src/resources/v3/v3.ts
CHANGED
|
@@ -2,13 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as AdminAPI from './admin';
|
|
5
|
-
import {
|
|
6
|
-
Admin,
|
|
7
|
-
AdminListConnectionsParams,
|
|
8
|
-
AdminListConnectionsResponse,
|
|
9
|
-
AdminRefreshAuthTokensParams,
|
|
10
|
-
AdminRefreshAuthTokensResponse,
|
|
11
|
-
} from './admin';
|
|
5
|
+
import { Admin, AdminRefreshAuthTokensParams, AdminRefreshAuthTokensResponse } from './admin';
|
|
12
6
|
import * as CliAPI from './cli';
|
|
13
7
|
import {
|
|
14
8
|
Cli,
|
|
@@ -40,9 +34,7 @@ export declare namespace V3 {
|
|
|
40
34
|
|
|
41
35
|
export {
|
|
42
36
|
Admin as Admin,
|
|
43
|
-
type AdminListConnectionsResponse as AdminListConnectionsResponse,
|
|
44
37
|
type AdminRefreshAuthTokensResponse as AdminRefreshAuthTokensResponse,
|
|
45
|
-
type AdminListConnectionsParams as AdminListConnectionsParams,
|
|
46
38
|
type AdminRefreshAuthTokensParams as AdminRefreshAuthTokensParams,
|
|
47
39
|
};
|
|
48
40
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.19'; // 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.19";
|
|
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.19";
|
|
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.19'; // 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.19'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|