@composio/client 0.1.0-alpha.17 → 0.1.0-alpha.18
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 +14 -0
- package/package.json +1 -1
- package/resources/mcp/custom.d.mts +12 -0
- package/resources/mcp/custom.d.mts.map +1 -1
- package/resources/mcp/custom.d.ts +12 -0
- package/resources/mcp/custom.d.ts.map +1 -1
- package/resources/mcp/mcp.d.mts +70 -32
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +70 -32
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js.map +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 +15 -0
- package/src/resources/mcp/mcp.ts +81 -34
- 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/src/resources/mcp/mcp.ts
CHANGED
|
@@ -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
|
-
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* List of application identifiers this server is configured for
|
|
594
|
-
*/
|
|
595
|
-
apps?: Array<string>;
|
|
640
|
+
allowed_tools?: Array<string> | null;
|
|
596
641
|
|
|
597
642
|
/**
|
|
598
|
-
*
|
|
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,9 @@ export interface McpCreateParams {
|
|
|
661
706
|
allowed_tools?: Array<string>;
|
|
662
707
|
|
|
663
708
|
/**
|
|
664
|
-
* ID reference to
|
|
709
|
+
* ID reference to one or more existing authentication configurations
|
|
665
710
|
*/
|
|
666
|
-
auth_config_id?: string
|
|
711
|
+
auth_config_id?: string | Array<string>;
|
|
667
712
|
|
|
668
713
|
/**
|
|
669
714
|
* Time-to-live duration for this MCP server
|
|
@@ -675,18 +720,18 @@ export interface McpUpdateParams {
|
|
|
675
720
|
/**
|
|
676
721
|
* List of action identifiers that should be enabled for this server
|
|
677
722
|
*/
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* List of application identifiers this server should be configured to work with
|
|
682
|
-
*/
|
|
683
|
-
apps?: Array<string>;
|
|
723
|
+
allowed_tools?: Array<string> | null;
|
|
684
724
|
|
|
685
725
|
/**
|
|
686
726
|
* Human-readable name to identify this MCP server instance (4-25 characters,
|
|
687
727
|
* alphanumeric and hyphens only)
|
|
688
728
|
*/
|
|
689
729
|
name?: string;
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* List of toolkit slugs this server should be configured to work with
|
|
733
|
+
*/
|
|
734
|
+
toolkits?: Array<string> | null;
|
|
690
735
|
}
|
|
691
736
|
|
|
692
737
|
export interface McpListParams {
|
|
@@ -711,9 +756,10 @@ export interface McpListParams {
|
|
|
711
756
|
page_no?: number | null;
|
|
712
757
|
|
|
713
758
|
/**
|
|
714
|
-
* Filter MCP servers by toolkit
|
|
759
|
+
* Filter MCP servers by toolkit slugs (returns servers matching any of the
|
|
760
|
+
* provided toolkits)
|
|
715
761
|
*/
|
|
716
|
-
|
|
762
|
+
toolkits?: Array<string> | null;
|
|
717
763
|
}
|
|
718
764
|
|
|
719
765
|
export interface McpRetrieveAppParams {
|
|
@@ -738,9 +784,10 @@ export interface McpRetrieveAppParams {
|
|
|
738
784
|
page_no?: number | null;
|
|
739
785
|
|
|
740
786
|
/**
|
|
741
|
-
* Filter MCP servers by toolkit
|
|
787
|
+
* Filter MCP servers by toolkit slugs (returns servers matching any of the
|
|
788
|
+
* provided toolkits)
|
|
742
789
|
*/
|
|
743
|
-
|
|
790
|
+
toolkits?: Array<string> | null;
|
|
744
791
|
}
|
|
745
792
|
|
|
746
793
|
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.18'; // 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.18";
|
|
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.18";
|
|
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.18'; // 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.18'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|