@composio/client 0.1.0-alpha.10 → 0.1.0-alpha.12
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 +36 -0
- package/README.md +7 -7
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +168 -29
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +168 -29
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +50 -4
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +50 -4
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +80 -17
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +80 -17
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +56 -4
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +56 -4
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +72 -23
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +72 -23
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +20 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +20 -2
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- 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 +322 -217
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +322 -217
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +72 -25
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +72 -25
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/migration.d.mts +11 -2
- package/resources/migration.d.mts.map +1 -1
- package/resources/migration.d.ts +11 -2
- package/resources/migration.d.ts.map +1 -1
- package/resources/migration.js +3 -1
- package/resources/migration.js.map +1 -1
- package/resources/migration.mjs +3 -1
- package/resources/migration.mjs.map +1 -1
- package/resources/org/api-key.d.mts +23 -2
- package/resources/org/api-key.d.mts.map +1 -1
- package/resources/org/api-key.d.ts +23 -2
- package/resources/org/api-key.d.ts.map +1 -1
- package/resources/org/api-key.js +15 -2
- package/resources/org/api-key.js.map +1 -1
- package/resources/org/api-key.mjs +15 -2
- package/resources/org/api-key.mjs.map +1 -1
- package/resources/org/project/api-keys.d.mts +114 -22
- package/resources/org/project/api-keys.d.mts.map +1 -1
- package/resources/org/project/api-keys.d.ts +114 -22
- package/resources/org/project/api-keys.d.ts.map +1 -1
- package/resources/org/project/api-keys.js +57 -0
- package/resources/org/project/api-keys.js.map +1 -1
- package/resources/org/project/api-keys.mjs +57 -0
- package/resources/org/project/api-keys.mjs.map +1 -1
- package/resources/org/project/project.d.mts +176 -4
- package/resources/org/project/project.d.mts.map +1 -1
- package/resources/org/project/project.d.ts +176 -4
- package/resources/org/project/project.d.ts.map +1 -1
- package/resources/org/project/project.js +46 -3
- package/resources/org/project/project.js.map +1 -1
- package/resources/org/project/project.mjs +46 -3
- package/resources/org/project/project.mjs.map +1 -1
- package/resources/org/project/trigger.d.mts +101 -1
- package/resources/org/project/trigger.d.mts.map +1 -1
- package/resources/org/project/trigger.d.ts +101 -1
- package/resources/org/project/trigger.d.ts.map +1 -1
- package/resources/org/project/trigger.js +21 -0
- package/resources/org/project/trigger.js.map +1 -1
- package/resources/org/project/trigger.mjs +21 -0
- package/resources/org/project/trigger.mjs.map +1 -1
- package/resources/org/project/webhook.d.mts +86 -15
- package/resources/org/project/webhook.d.mts.map +1 -1
- package/resources/org/project/webhook.d.ts +86 -15
- package/resources/org/project/webhook.d.ts.map +1 -1
- package/resources/org/project/webhook.js +49 -2
- package/resources/org/project/webhook.js.map +1 -1
- package/resources/org/project/webhook.mjs +49 -2
- package/resources/org/project/webhook.mjs.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/toolkits.d.mts +195 -7
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +195 -7
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.js +14 -6
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +14 -6
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +211 -44
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +211 -44
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +62 -9
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +62 -9
- 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/trigger-instances.d.mts +86 -19
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +86 -19
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +6 -6
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +6 -6
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/triggers-types.d.mts +96 -2
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +96 -2
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +23 -1
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +23 -1
- package/resources/triggers-types.mjs.map +1 -1
- package/src/client.ts +6 -6
- package/src/resources/auth-configs.ts +169 -29
- package/src/resources/connected-accounts.ts +80 -17
- package/src/resources/files.ts +75 -23
- package/src/resources/index.ts +3 -3
- package/src/resources/mcp/custom.ts +103 -0
- package/src/resources/mcp/index.ts +2 -3
- package/src/resources/mcp/mcp.ts +342 -256
- package/src/resources/migration.ts +11 -2
- package/src/resources/org/api-key.ts +23 -2
- package/src/resources/org/project/api-keys.ts +117 -22
- package/src/resources/org/project/project.ts +176 -4
- package/src/resources/org/project/trigger.ts +101 -1
- package/src/resources/org/project/webhook.ts +86 -15
- package/src/resources/team-members.ts +7 -7
- package/src/resources/toolkits.ts +200 -7
- package/src/resources/tools.ts +213 -46
- package/src/resources/trigger-instances/index.ts +1 -1
- package/src/resources/trigger-instances/trigger-instances.ts +106 -25
- package/src/resources/triggers-types.ts +96 -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
- package/resources/mcp/command.d.mts +0 -37
- package/resources/mcp/command.d.mts.map +0 -1
- package/resources/mcp/command.d.ts +0 -37
- package/resources/mcp/command.d.ts.map +0 -1
- package/resources/mcp/command.js +0 -15
- package/resources/mcp/command.js.map +0 -1
- package/resources/mcp/command.mjs +0 -11
- package/resources/mcp/command.mjs.map +0 -1
- package/src/resources/mcp/command.ts +0 -50
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/resources/mcp/mcp.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/resources/mcp/mcp.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,kBAAkB,EAAE,oBAAoB,EAAE;OACpD,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,GAAI,SAAQ,WAAW;IAClC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAItF;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI/E;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,KAAK,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIzG;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAI3E;;;;;;;;;;OAUG;IACH,WAAW,CACT,MAAM,EAAE,MAAM,EACd,K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OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/resources/mcp/mcp.js
CHANGED
|
@@ -4,62 +4,109 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Mcp = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const CustomAPI = tslib_1.__importStar(require("./custom.js"));
|
|
8
|
+
const custom_1 = require("./custom.js");
|
|
10
9
|
const path_1 = require("../../internal/utils/path.js");
|
|
11
10
|
class Mcp extends resource_1.APIResource {
|
|
12
11
|
constructor() {
|
|
13
12
|
super(...arguments);
|
|
14
|
-
this.
|
|
13
|
+
this.custom = new CustomAPI.Custom(this._client);
|
|
15
14
|
}
|
|
16
15
|
/**
|
|
17
|
-
*
|
|
16
|
+
* Creates a new Model Control Protocol (MCP) server instance for the authenticated
|
|
17
|
+
* project. An MCP server provides a connection point for AI assistants to access
|
|
18
|
+
* your applications and services. The server is configured with specific
|
|
19
|
+
* authentication and tool permissions that determine what actions the connected
|
|
20
|
+
* assistants can perform.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const mcp = await client.mcp.create({
|
|
25
|
+
* name: 'GitHub Integration Server',
|
|
26
|
+
* auth_config_id: 'auth_cfg_abc123def456',
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
18
29
|
*/
|
|
19
30
|
create(body, options) {
|
|
20
|
-
return this._client.post('/api/v3/mcp/
|
|
31
|
+
return this._client.post('/api/v3/mcp/servers', { body, ...options });
|
|
21
32
|
}
|
|
22
33
|
/**
|
|
23
|
-
*
|
|
34
|
+
* Retrieves detailed configuration information for a specific Model Control
|
|
35
|
+
* Protocol (MCP) server. The returned data includes connection details, associated
|
|
36
|
+
* applications, enabled tools, and authentication configuration.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const mcp = await client.mcp.retrieve(
|
|
41
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
24
44
|
*/
|
|
25
45
|
retrieve(id, options) {
|
|
26
46
|
return this._client.get((0, path_1.path) `/api/v3/mcp/${id}`, options);
|
|
27
47
|
}
|
|
28
48
|
/**
|
|
29
|
-
*
|
|
49
|
+
* Updates the configuration of an existing Model Control Protocol (MCP) server.
|
|
50
|
+
* You can modify the server name, associated applications, and enabled tools. Only
|
|
51
|
+
* the fields included in the request will be updated.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const mcp = await client.mcp.update(
|
|
56
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
57
|
+
* { name: 'Updated GitHub Integration Server' },
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
30
60
|
*/
|
|
31
61
|
update(id, body = {}, options) {
|
|
32
62
|
return this._client.patch((0, path_1.path) `/api/v3/mcp/${id}`, { body, ...options });
|
|
33
63
|
}
|
|
34
64
|
/**
|
|
35
|
-
*
|
|
65
|
+
* Retrieves a paginated list of MCP servers associated with the authenticated
|
|
66
|
+
* project. Results can be filtered by name, toolkit, or authentication
|
|
67
|
+
* configuration ID. MCP servers are used to provide Model Control Protocol
|
|
68
|
+
* integration points for connecting AI assistants to your applications and
|
|
69
|
+
* services.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const mcps = await client.mcp.list();
|
|
74
|
+
* ```
|
|
36
75
|
*/
|
|
37
76
|
list(query = {}, options) {
|
|
38
|
-
return this._client.get('/api/v3/mcp/
|
|
77
|
+
return this._client.get('/api/v3/mcp/servers', { query, ...options });
|
|
39
78
|
}
|
|
40
79
|
/**
|
|
41
|
-
*
|
|
80
|
+
* Performs a soft delete on a Model Control Protocol (MCP) server, making it
|
|
81
|
+
* unavailable for future use. This operation is reversible in the database but
|
|
82
|
+
* cannot be undone through the API. Any applications or services connected to this
|
|
83
|
+
* server will lose access after deletion.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const mcp = await client.mcp.delete(
|
|
88
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
89
|
+
* );
|
|
90
|
+
* ```
|
|
42
91
|
*/
|
|
43
92
|
delete(id, options) {
|
|
44
93
|
return this._client.delete((0, path_1.path) `/api/v3/mcp/${id}`, options);
|
|
45
94
|
}
|
|
46
95
|
/**
|
|
47
|
-
*
|
|
96
|
+
* Retrieves a paginated list of Model Control Protocol (MCP) servers that are
|
|
97
|
+
* configured for a specific application or toolkit. This endpoint allows you to
|
|
98
|
+
* find all MCP server instances that have access to a particular application, such
|
|
99
|
+
* as GitHub, Slack, or Jira.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```ts
|
|
103
|
+
* const response = await client.mcp.retrieveApp('github');
|
|
104
|
+
* ```
|
|
48
105
|
*/
|
|
49
|
-
retrieveApp(appKey, options) {
|
|
50
|
-
return this._client.get((0, path_1.path) `/api/v3/mcp/app/${appKey}`, options);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Validate MCP server and retrieve connection details
|
|
54
|
-
*/
|
|
55
|
-
validate(uuid, params, options) {
|
|
56
|
-
const { 'x-composio-admin-token': xComposioAdminToken } = params;
|
|
57
|
-
return this._client.get((0, path_1.path) `/api/v3/mcp/validate/${uuid}`, {
|
|
58
|
-
...options,
|
|
59
|
-
headers: (0, headers_1.buildHeaders)([{ 'x-composio-admin-token': xComposioAdminToken }, options?.headers]),
|
|
60
|
-
});
|
|
106
|
+
retrieveApp(appKey, query = {}, options) {
|
|
107
|
+
return this._client.get((0, path_1.path) `/api/v3/mcp/app/${appKey}`, { query, ...options });
|
|
61
108
|
}
|
|
62
109
|
}
|
|
63
110
|
exports.Mcp = Mcp;
|
|
64
|
-
Mcp.
|
|
111
|
+
Mcp.Custom = custom_1.Custom;
|
|
65
112
|
//# sourceMappingURL=mcp.js.map
|
package/resources/mcp/mcp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/resources/mcp/mcp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/resources/mcp/mcp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAA4E;AAG5E,uDAAiD;AAEjD,MAAa,GAAI,SAAQ,sBAAW;IAApC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6GhE,CAAC;IA3GC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAU,EACV,OAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,QAA0C,EAAE,EAAE,OAAwB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;OAUG;IACH,WAAW,CACT,MAAc,EACd,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AA9GD,kBA8GC;AA2fD,GAAG,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
package/resources/mcp/mcp.mjs
CHANGED
|
@@ -1,60 +1,107 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
3
|
+
import * as CustomAPI from "./custom.mjs";
|
|
4
|
+
import { Custom } from "./custom.mjs";
|
|
6
5
|
import { path } from "../../internal/utils/path.mjs";
|
|
7
6
|
export class Mcp extends APIResource {
|
|
8
7
|
constructor() {
|
|
9
8
|
super(...arguments);
|
|
10
|
-
this.
|
|
9
|
+
this.custom = new CustomAPI.Custom(this._client);
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
|
-
*
|
|
12
|
+
* Creates a new Model Control Protocol (MCP) server instance for the authenticated
|
|
13
|
+
* project. An MCP server provides a connection point for AI assistants to access
|
|
14
|
+
* your applications and services. The server is configured with specific
|
|
15
|
+
* authentication and tool permissions that determine what actions the connected
|
|
16
|
+
* assistants can perform.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const mcp = await client.mcp.create({
|
|
21
|
+
* name: 'GitHub Integration Server',
|
|
22
|
+
* auth_config_id: 'auth_cfg_abc123def456',
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
14
25
|
*/
|
|
15
26
|
create(body, options) {
|
|
16
|
-
return this._client.post('/api/v3/mcp/
|
|
27
|
+
return this._client.post('/api/v3/mcp/servers', { body, ...options });
|
|
17
28
|
}
|
|
18
29
|
/**
|
|
19
|
-
*
|
|
30
|
+
* Retrieves detailed configuration information for a specific Model Control
|
|
31
|
+
* Protocol (MCP) server. The returned data includes connection details, associated
|
|
32
|
+
* applications, enabled tools, and authentication configuration.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const mcp = await client.mcp.retrieve(
|
|
37
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
20
40
|
*/
|
|
21
41
|
retrieve(id, options) {
|
|
22
42
|
return this._client.get(path `/api/v3/mcp/${id}`, options);
|
|
23
43
|
}
|
|
24
44
|
/**
|
|
25
|
-
*
|
|
45
|
+
* Updates the configuration of an existing Model Control Protocol (MCP) server.
|
|
46
|
+
* You can modify the server name, associated applications, and enabled tools. Only
|
|
47
|
+
* the fields included in the request will be updated.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const mcp = await client.mcp.update(
|
|
52
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
53
|
+
* { name: 'Updated GitHub Integration Server' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
26
56
|
*/
|
|
27
57
|
update(id, body = {}, options) {
|
|
28
58
|
return this._client.patch(path `/api/v3/mcp/${id}`, { body, ...options });
|
|
29
59
|
}
|
|
30
60
|
/**
|
|
31
|
-
*
|
|
61
|
+
* Retrieves a paginated list of MCP servers associated with the authenticated
|
|
62
|
+
* project. Results can be filtered by name, toolkit, or authentication
|
|
63
|
+
* configuration ID. MCP servers are used to provide Model Control Protocol
|
|
64
|
+
* integration points for connecting AI assistants to your applications and
|
|
65
|
+
* services.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const mcps = await client.mcp.list();
|
|
70
|
+
* ```
|
|
32
71
|
*/
|
|
33
72
|
list(query = {}, options) {
|
|
34
|
-
return this._client.get('/api/v3/mcp/
|
|
73
|
+
return this._client.get('/api/v3/mcp/servers', { query, ...options });
|
|
35
74
|
}
|
|
36
75
|
/**
|
|
37
|
-
*
|
|
76
|
+
* Performs a soft delete on a Model Control Protocol (MCP) server, making it
|
|
77
|
+
* unavailable for future use. This operation is reversible in the database but
|
|
78
|
+
* cannot be undone through the API. Any applications or services connected to this
|
|
79
|
+
* server will lose access after deletion.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const mcp = await client.mcp.delete(
|
|
84
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
85
|
+
* );
|
|
86
|
+
* ```
|
|
38
87
|
*/
|
|
39
88
|
delete(id, options) {
|
|
40
89
|
return this._client.delete(path `/api/v3/mcp/${id}`, options);
|
|
41
90
|
}
|
|
42
91
|
/**
|
|
43
|
-
*
|
|
92
|
+
* Retrieves a paginated list of Model Control Protocol (MCP) servers that are
|
|
93
|
+
* configured for a specific application or toolkit. This endpoint allows you to
|
|
94
|
+
* find all MCP server instances that have access to a particular application, such
|
|
95
|
+
* as GitHub, Slack, or Jira.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const response = await client.mcp.retrieveApp('github');
|
|
100
|
+
* ```
|
|
44
101
|
*/
|
|
45
|
-
retrieveApp(appKey, options) {
|
|
46
|
-
return this._client.get(path `/api/v3/mcp/app/${appKey}`, options);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Validate MCP server and retrieve connection details
|
|
50
|
-
*/
|
|
51
|
-
validate(uuid, params, options) {
|
|
52
|
-
const { 'x-composio-admin-token': xComposioAdminToken } = params;
|
|
53
|
-
return this._client.get(path `/api/v3/mcp/validate/${uuid}`, {
|
|
54
|
-
...options,
|
|
55
|
-
headers: buildHeaders([{ 'x-composio-admin-token': xComposioAdminToken }, options?.headers]),
|
|
56
|
-
});
|
|
102
|
+
retrieveApp(appKey, query = {}, options) {
|
|
103
|
+
return this._client.get(path `/api/v3/mcp/app/${appKey}`, { query, ...options });
|
|
57
104
|
}
|
|
58
105
|
}
|
|
59
|
-
Mcp.
|
|
106
|
+
Mcp.Custom = Custom;
|
|
60
107
|
//# sourceMappingURL=mcp.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.mjs","sourceRoot":"","sources":["../../src/resources/mcp/mcp.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"mcp.mjs","sourceRoot":"","sources":["../../src/resources/mcp/mcp.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EA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AE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AA2fD,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -3,18 +3,27 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class Migration extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Convert a legacy UUID to its corresponding NanoId for migration purposes
|
|
6
|
+
* Convert a legacy UUID to its corresponding NanoId for migration purposes. This
|
|
7
|
+
* endpoint facilitates the transition from UUID-based identifiers to the more
|
|
8
|
+
* compact NanoId format used in the v3 API.
|
|
7
9
|
*/
|
|
8
10
|
retrieveNanoid(query: MigrationRetrieveNanoidParams, options?: RequestOptions): APIPromise<MigrationRetrieveNanoidResponse>;
|
|
9
11
|
}
|
|
10
12
|
export interface MigrationRetrieveNanoidResponse {
|
|
11
13
|
/**
|
|
12
|
-
* The NanoId corresponding to the provided UUID.
|
|
14
|
+
* The NanoId corresponding to the provided UUID. This is the new identifier that
|
|
15
|
+
* should be used in place of the legacy UUID.
|
|
13
16
|
*/
|
|
14
17
|
nanoid: string;
|
|
15
18
|
}
|
|
16
19
|
export interface MigrationRetrieveNanoidParams {
|
|
20
|
+
/**
|
|
21
|
+
* The type of resource that the UUID belongs to
|
|
22
|
+
*/
|
|
17
23
|
type: 'CONNECTED_ACCOUNT' | 'AUTH_CONFIG' | 'TRIGGER_INSTANCE';
|
|
24
|
+
/**
|
|
25
|
+
* The legacy UUID that needs to be converted to a NanoId
|
|
26
|
+
*/
|
|
18
27
|
uuid: string;
|
|
19
28
|
}
|
|
20
29
|
export declare namespace Migration {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration.d.mts","sourceRoot":"","sources":["../src/resources/migration.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"migration.d.mts","sourceRoot":"","sources":["../src/resources/migration.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,cAAc,CACZ,KAAK,EAAE,6BAA6B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAG/C;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,IAAI,EAAE,mBAAmB,GAAG,aAAa,GAAG,kBAAkB,CAAC;IAE/D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
package/resources/migration.d.ts
CHANGED
|
@@ -3,18 +3,27 @@ import { APIPromise } from "../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
4
|
export declare class Migration extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Convert a legacy UUID to its corresponding NanoId for migration purposes
|
|
6
|
+
* Convert a legacy UUID to its corresponding NanoId for migration purposes. This
|
|
7
|
+
* endpoint facilitates the transition from UUID-based identifiers to the more
|
|
8
|
+
* compact NanoId format used in the v3 API.
|
|
7
9
|
*/
|
|
8
10
|
retrieveNanoid(query: MigrationRetrieveNanoidParams, options?: RequestOptions): APIPromise<MigrationRetrieveNanoidResponse>;
|
|
9
11
|
}
|
|
10
12
|
export interface MigrationRetrieveNanoidResponse {
|
|
11
13
|
/**
|
|
12
|
-
* The NanoId corresponding to the provided UUID.
|
|
14
|
+
* The NanoId corresponding to the provided UUID. This is the new identifier that
|
|
15
|
+
* should be used in place of the legacy UUID.
|
|
13
16
|
*/
|
|
14
17
|
nanoid: string;
|
|
15
18
|
}
|
|
16
19
|
export interface MigrationRetrieveNanoidParams {
|
|
20
|
+
/**
|
|
21
|
+
* The type of resource that the UUID belongs to
|
|
22
|
+
*/
|
|
17
23
|
type: 'CONNECTED_ACCOUNT' | 'AUTH_CONFIG' | 'TRIGGER_INSTANCE';
|
|
24
|
+
/**
|
|
25
|
+
* The legacy UUID that needs to be converted to a NanoId
|
|
26
|
+
*/
|
|
18
27
|
uuid: string;
|
|
19
28
|
}
|
|
20
29
|
export declare namespace Migration {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../src/resources/migration.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../src/resources/migration.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,cAAc,CACZ,KAAK,EAAE,6BAA6B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAG/C;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,IAAI,EAAE,mBAAmB,GAAG,aAAa,GAAG,kBAAkB,CAAC;IAE/D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
package/resources/migration.js
CHANGED
|
@@ -5,7 +5,9 @@ exports.Migration = void 0;
|
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
class Migration extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* Convert a legacy UUID to its corresponding NanoId for migration purposes
|
|
8
|
+
* Convert a legacy UUID to its corresponding NanoId for migration purposes. This
|
|
9
|
+
* endpoint facilitates the transition from UUID-based identifiers to the more
|
|
10
|
+
* compact NanoId format used in the v3 API.
|
|
9
11
|
*/
|
|
10
12
|
retrieveNanoid(query, options) {
|
|
11
13
|
return this._client.get('/api/v3/migration/get-nanoid', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration.js","sourceRoot":"","sources":["../src/resources/migration.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,SAAU,SAAQ,sBAAW;IACxC
|
|
1
|
+
{"version":3,"file":"migration.js","sourceRoot":"","sources":["../src/resources/migration.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;OAIG;IACH,cAAc,CACZ,KAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAZD,8BAYC"}
|
package/resources/migration.mjs
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
export class Migration extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
* Convert a legacy UUID to its corresponding NanoId for migration purposes
|
|
5
|
+
* Convert a legacy UUID to its corresponding NanoId for migration purposes. This
|
|
6
|
+
* endpoint facilitates the transition from UUID-based identifiers to the more
|
|
7
|
+
* compact NanoId format used in the v3 API.
|
|
6
8
|
*/
|
|
7
9
|
retrieveNanoid(query, options) {
|
|
8
10
|
return this._client.get('/api/v3/migration/get-nanoid', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration.mjs","sourceRoot":"","sources":["../src/resources/migration.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"migration.mjs","sourceRoot":"","sources":["../src/resources/migration.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,cAAc,CACZ,KAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
|
|
@@ -3,19 +3,40 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
export declare class APIKey extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Retrieve the API key for the current organization
|
|
6
|
+
* Retrieve the API key for the current organization. This endpoint is restricted
|
|
7
|
+
* to organization administrators only. The returned API key can be used for
|
|
8
|
+
* authenticating organization-level API requests.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const apiKey = await client.org.apiKey.retrieve();
|
|
13
|
+
* ```
|
|
7
14
|
*/
|
|
8
15
|
retrieve(options?: RequestOptions): APIPromise<APIKeyRetrieveResponse>;
|
|
9
16
|
/**
|
|
10
17
|
* Generate a new API key for the organization, invalidating the previous one
|
|
11
|
-
* (admin only)
|
|
18
|
+
* (admin only). This operation cannot be undone and will immediately invalidate
|
|
19
|
+
* the previous API key.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const response = await client.org.apiKey.regenerate();
|
|
24
|
+
* ```
|
|
12
25
|
*/
|
|
13
26
|
regenerate(options?: RequestOptions): APIPromise<APIKeyRegenerateResponse>;
|
|
14
27
|
}
|
|
15
28
|
export interface APIKeyRetrieveResponse {
|
|
29
|
+
/**
|
|
30
|
+
* The API key for the organization that can be used for authentication. Format:
|
|
31
|
+
* org_xxx
|
|
32
|
+
*/
|
|
16
33
|
org_api_key: string;
|
|
17
34
|
}
|
|
18
35
|
export interface APIKeyRegenerateResponse {
|
|
36
|
+
/**
|
|
37
|
+
* The newly generated API key for the organization that can be used for
|
|
38
|
+
* authentication. Format: org_xxx
|
|
39
|
+
*/
|
|
19
40
|
org_api_key: string;
|
|
20
41
|
}
|
|
21
42
|
export declare namespace APIKey {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.d.mts","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"api-key.d.mts","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAItE;;;;;;;;;OASG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAG3E;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -3,19 +3,40 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class APIKey extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Retrieve the API key for the current organization
|
|
6
|
+
* Retrieve the API key for the current organization. This endpoint is restricted
|
|
7
|
+
* to organization administrators only. The returned API key can be used for
|
|
8
|
+
* authenticating organization-level API requests.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const apiKey = await client.org.apiKey.retrieve();
|
|
13
|
+
* ```
|
|
7
14
|
*/
|
|
8
15
|
retrieve(options?: RequestOptions): APIPromise<APIKeyRetrieveResponse>;
|
|
9
16
|
/**
|
|
10
17
|
* Generate a new API key for the organization, invalidating the previous one
|
|
11
|
-
* (admin only)
|
|
18
|
+
* (admin only). This operation cannot be undone and will immediately invalidate
|
|
19
|
+
* the previous API key.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const response = await client.org.apiKey.regenerate();
|
|
24
|
+
* ```
|
|
12
25
|
*/
|
|
13
26
|
regenerate(options?: RequestOptions): APIPromise<APIKeyRegenerateResponse>;
|
|
14
27
|
}
|
|
15
28
|
export interface APIKeyRetrieveResponse {
|
|
29
|
+
/**
|
|
30
|
+
* The API key for the organization that can be used for authentication. Format:
|
|
31
|
+
* org_xxx
|
|
32
|
+
*/
|
|
16
33
|
org_api_key: string;
|
|
17
34
|
}
|
|
18
35
|
export interface APIKeyRegenerateResponse {
|
|
36
|
+
/**
|
|
37
|
+
* The newly generated API key for the organization that can be used for
|
|
38
|
+
* authentication. Format: org_xxx
|
|
39
|
+
*/
|
|
19
40
|
org_api_key: string;
|
|
20
41
|
}
|
|
21
42
|
export declare namespace APIKey {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAItE;;;;;;;;;OASG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAG3E;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
package/resources/org/api-key.js
CHANGED
|
@@ -5,14 +5,27 @@ exports.APIKey = void 0;
|
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
class APIKey extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* Retrieve the API key for the current organization
|
|
8
|
+
* Retrieve the API key for the current organization. This endpoint is restricted
|
|
9
|
+
* to organization administrators only. The returned API key can be used for
|
|
10
|
+
* authenticating organization-level API requests.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const apiKey = await client.org.apiKey.retrieve();
|
|
15
|
+
* ```
|
|
9
16
|
*/
|
|
10
17
|
retrieve(options) {
|
|
11
18
|
return this._client.get('/api/v3/org/api_key', options);
|
|
12
19
|
}
|
|
13
20
|
/**
|
|
14
21
|
* Generate a new API key for the organization, invalidating the previous one
|
|
15
|
-
* (admin only)
|
|
22
|
+
* (admin only). This operation cannot be undone and will immediately invalidate
|
|
23
|
+
* the previous API key.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const response = await client.org.apiKey.regenerate();
|
|
28
|
+
* ```
|
|
16
29
|
*/
|
|
17
30
|
regenerate(options) {
|
|
18
31
|
return this._client.post('/api/v3/org/api_key/regenerate', options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.js","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,MAAO,SAAQ,sBAAW;IACrC
|
|
1
|
+
{"version":3,"file":"api-key.js","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;OASG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF;AA5BD,wBA4BC"}
|
|
@@ -2,14 +2,27 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
export class APIKey extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
* Retrieve the API key for the current organization
|
|
5
|
+
* Retrieve the API key for the current organization. This endpoint is restricted
|
|
6
|
+
* to organization administrators only. The returned API key can be used for
|
|
7
|
+
* authenticating organization-level API requests.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const apiKey = await client.org.apiKey.retrieve();
|
|
12
|
+
* ```
|
|
6
13
|
*/
|
|
7
14
|
retrieve(options) {
|
|
8
15
|
return this._client.get('/api/v3/org/api_key', options);
|
|
9
16
|
}
|
|
10
17
|
/**
|
|
11
18
|
* Generate a new API key for the organization, invalidating the previous one
|
|
12
|
-
* (admin only)
|
|
19
|
+
* (admin only). This operation cannot be undone and will immediately invalidate
|
|
20
|
+
* the previous API key.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const response = await client.org.apiKey.regenerate();
|
|
25
|
+
* ```
|
|
13
26
|
*/
|
|
14
27
|
regenerate(options) {
|
|
15
28
|
return this._client.post('/api/v3/org/api_key/regenerate', options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.mjs","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"api-key.mjs","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;OASG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF"}
|