@smithery/api 0.44.0 → 0.46.0
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/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/lib/mcp-transport.js +3 -3
- package/lib/mcp-transport.js.map +1 -1
- package/lib/mcp-transport.mjs +3 -3
- package/lib/mcp-transport.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/{experimental/connect → connections}/connections.d.mts +33 -37
- package/resources/connections/connections.d.mts.map +1 -0
- package/resources/{experimental/connect → connections}/connections.d.ts +33 -37
- package/resources/connections/connections.d.ts.map +1 -0
- package/resources/{experimental/connect → connections}/connections.js +31 -32
- package/resources/connections/connections.js.map +1 -0
- package/resources/{experimental/connect → connections}/connections.mjs +30 -32
- package/resources/connections/connections.mjs.map +1 -0
- package/resources/{experimental/connect → connections}/index.d.mts +0 -1
- package/resources/connections/index.d.mts.map +1 -0
- package/resources/{experimental/connect → connections}/index.d.ts +0 -1
- package/resources/connections/index.d.ts.map +1 -0
- package/resources/{experimental/connect → connections}/index.js +1 -3
- package/resources/connections/index.js.map +1 -0
- package/resources/{experimental/connect → connections}/index.mjs +0 -1
- package/resources/connections/index.mjs.map +1 -0
- package/resources/{experimental/connect → connections}/mcp.d.mts +7 -8
- package/resources/connections/mcp.d.mts.map +1 -0
- package/resources/{experimental/connect → connections}/mcp.d.ts +7 -8
- package/resources/connections/mcp.d.ts.map +1 -0
- package/resources/{experimental/connect → connections}/mcp.js +6 -7
- package/resources/connections/mcp.js.map +1 -0
- package/resources/{experimental/connect → connections}/mcp.mjs +6 -7
- package/resources/connections/mcp.mjs.map +1 -0
- package/resources/connections.d.mts +2 -0
- package/resources/connections.d.mts.map +1 -0
- package/resources/connections.d.ts +2 -0
- package/resources/connections.d.ts.map +1 -0
- package/resources/{experimental.js → connections.js} +2 -2
- package/resources/connections.js.map +1 -0
- package/{src/resources/experimental.ts → resources/connections.mjs} +2 -2
- package/resources/connections.mjs.map +1 -0
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +26 -4
- package/src/lib/mcp-transport.ts +4 -4
- package/src/resources/{experimental/connect → connections}/connections.ts +44 -39
- package/src/resources/{experimental/connect → connections}/index.ts +0 -1
- package/src/resources/{experimental/connect → connections}/mcp.ts +8 -9
- package/src/resources/{experimental/connect.ts → connections.ts} +1 -1
- package/src/resources/index.ts +12 -1
- 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/experimental/connect/connect.d.mts +0 -14
- package/resources/experimental/connect/connect.d.mts.map +0 -1
- package/resources/experimental/connect/connect.d.ts +0 -14
- package/resources/experimental/connect/connect.d.ts.map +0 -1
- package/resources/experimental/connect/connect.js +0 -21
- package/resources/experimental/connect/connect.js.map +0 -1
- package/resources/experimental/connect/connect.mjs +0 -16
- package/resources/experimental/connect/connect.mjs.map +0 -1
- package/resources/experimental/connect/connections.d.mts.map +0 -1
- package/resources/experimental/connect/connections.d.ts.map +0 -1
- package/resources/experimental/connect/connections.js.map +0 -1
- package/resources/experimental/connect/connections.mjs.map +0 -1
- package/resources/experimental/connect/index.d.mts.map +0 -1
- package/resources/experimental/connect/index.d.ts.map +0 -1
- package/resources/experimental/connect/index.js.map +0 -1
- package/resources/experimental/connect/index.mjs.map +0 -1
- package/resources/experimental/connect/mcp.d.mts.map +0 -1
- package/resources/experimental/connect/mcp.d.ts.map +0 -1
- package/resources/experimental/connect/mcp.js.map +0 -1
- package/resources/experimental/connect/mcp.mjs.map +0 -1
- package/resources/experimental/connect.d.mts +0 -2
- package/resources/experimental/connect.d.mts.map +0 -1
- package/resources/experimental/connect.d.ts +0 -2
- package/resources/experimental/connect.d.ts.map +0 -1
- package/resources/experimental/connect.js +0 -6
- package/resources/experimental/connect.js.map +0 -1
- package/resources/experimental/connect.mjs +0 -3
- package/resources/experimental/connect.mjs.map +0 -1
- package/resources/experimental/experimental.d.mts +0 -10
- package/resources/experimental/experimental.d.mts.map +0 -1
- package/resources/experimental/experimental.d.ts +0 -10
- package/resources/experimental/experimental.d.ts.map +0 -1
- package/resources/experimental/experimental.js +0 -17
- package/resources/experimental/experimental.js.map +0 -1
- package/resources/experimental/experimental.mjs +0 -12
- package/resources/experimental/experimental.mjs.map +0 -1
- package/resources/experimental/index.d.mts +0 -3
- package/resources/experimental/index.d.mts.map +0 -1
- package/resources/experimental/index.d.ts +0 -3
- package/resources/experimental/index.d.ts.map +0 -1
- package/resources/experimental/index.js +0 -9
- package/resources/experimental/index.js.map +0 -1
- package/resources/experimental/index.mjs +0 -4
- package/resources/experimental/index.mjs.map +0 -1
- package/resources/experimental.d.mts +0 -2
- package/resources/experimental.d.mts.map +0 -1
- package/resources/experimental.d.ts +0 -2
- package/resources/experimental.d.ts.map +0 -1
- package/resources/experimental.js.map +0 -1
- package/resources/experimental.mjs +0 -3
- package/resources/experimental.mjs.map +0 -1
- package/src/resources/experimental/connect/connect.ts +0 -48
- package/src/resources/experimental/experimental.ts +0 -15
- package/src/resources/experimental/index.ts +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../src/resources/connections/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,EAAE,aAAa,EAAE;OACvD,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC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AAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as McpAPI from "./mcp.js";
|
|
3
|
+
import { JsonRpcRequest, JsonRpcResponse, Mcp, McpCallParams } from "./mcp.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
6
|
export declare class Connections extends APIResource {
|
|
7
|
+
mcp: McpAPI.Mcp;
|
|
5
8
|
/**
|
|
6
9
|
* Create a new MCP connection with an auto-generated ID. Requires API key and
|
|
7
10
|
* namespace ownership.
|
|
8
11
|
*
|
|
9
12
|
* @example
|
|
10
13
|
* ```ts
|
|
11
|
-
* const connection =
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* );
|
|
14
|
+
* const connection = await client.connections.create(
|
|
15
|
+
* 'namespace',
|
|
16
|
+
* { mcpUrl: 'https://mcp.example.com/sse' },
|
|
17
|
+
* );
|
|
16
18
|
* ```
|
|
17
19
|
*/
|
|
18
20
|
create(namespace: string, body: ConnectionCreateParams, options?: RequestOptions): APIPromise<Connection>;
|
|
@@ -23,9 +25,7 @@ export declare class Connections extends APIResource {
|
|
|
23
25
|
* @example
|
|
24
26
|
* ```ts
|
|
25
27
|
* const connectionsListResponse =
|
|
26
|
-
* await client.
|
|
27
|
-
* 'namespace',
|
|
28
|
-
* );
|
|
28
|
+
* await client.connections.list('namespace');
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
list(namespace: string, query?: ConnectionListParams | null | undefined, options?: RequestOptions): APIPromise<ConnectionsListResponse>;
|
|
@@ -35,11 +35,10 @@ export declare class Connections extends APIResource {
|
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```ts
|
|
38
|
-
* const connection =
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* );
|
|
38
|
+
* const connection = await client.connections.delete(
|
|
39
|
+
* 'connectionId',
|
|
40
|
+
* { namespace: 'namespace' },
|
|
41
|
+
* );
|
|
43
42
|
* ```
|
|
44
43
|
*/
|
|
45
44
|
delete(connectionID: string, params: ConnectionDeleteParams, options?: RequestOptions): APIPromise<ConnectionDeleteResponse>;
|
|
@@ -49,30 +48,25 @@ export declare class Connections extends APIResource {
|
|
|
49
48
|
*
|
|
50
49
|
* @example
|
|
51
50
|
* ```ts
|
|
52
|
-
* const connection =
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* );
|
|
51
|
+
* const connection = await client.connections.get(
|
|
52
|
+
* 'connectionId',
|
|
53
|
+
* { namespace: 'namespace' },
|
|
54
|
+
* );
|
|
57
55
|
* ```
|
|
58
56
|
*/
|
|
59
57
|
get(connectionID: string, params: ConnectionGetParams, options?: RequestOptions): APIPromise<Connection>;
|
|
60
58
|
/**
|
|
61
|
-
* Create or update an MCP connection with the given ID.
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* ownership.
|
|
59
|
+
* Create or update an MCP connection with the given ID. mcpUrl is required when
|
|
60
|
+
* creating a new connection, but optional when updating (omit to keep the existing
|
|
61
|
+
* URL). Returns 409 if a different mcpUrl is provided - delete and recreate to
|
|
62
|
+
* change URL. Requires API key and namespace ownership.
|
|
65
63
|
*
|
|
66
64
|
* @example
|
|
67
65
|
* ```ts
|
|
68
|
-
* const connection =
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* namespace: 'namespace',
|
|
73
|
-
* mcpUrl: 'https://mcp.example.com/sse',
|
|
74
|
-
* },
|
|
75
|
-
* );
|
|
66
|
+
* const connection = await client.connections.set(
|
|
67
|
+
* 'connectionId',
|
|
68
|
+
* { namespace: 'namespace' },
|
|
69
|
+
* );
|
|
76
70
|
* ```
|
|
77
71
|
*/
|
|
78
72
|
set(connectionID: string, params: ConnectionSetParams, options?: RequestOptions): APIPromise<Connection>;
|
|
@@ -230,10 +224,6 @@ export interface ConnectionSetParams {
|
|
|
230
224
|
* Path param
|
|
231
225
|
*/
|
|
232
226
|
namespace: string;
|
|
233
|
-
/**
|
|
234
|
-
* Body param: URL of the MCP server
|
|
235
|
-
*/
|
|
236
|
-
mcpUrl: string;
|
|
237
227
|
/**
|
|
238
228
|
* Body param: Custom headers to send with MCP requests (stored securely, not
|
|
239
229
|
* returned in responses)
|
|
@@ -241,6 +231,11 @@ export interface ConnectionSetParams {
|
|
|
241
231
|
headers?: {
|
|
242
232
|
[key: string]: string;
|
|
243
233
|
};
|
|
234
|
+
/**
|
|
235
|
+
* Body param: URL of the MCP server. Required when creating a new connection.
|
|
236
|
+
* Optional when updating — omit to keep the existing URL.
|
|
237
|
+
*/
|
|
238
|
+
mcpUrl?: string;
|
|
244
239
|
/**
|
|
245
240
|
* Body param: Custom metadata for filtering connections
|
|
246
241
|
*/
|
|
@@ -254,5 +249,6 @@ export interface ConnectionSetParams {
|
|
|
254
249
|
}
|
|
255
250
|
export declare namespace Connections {
|
|
256
251
|
export { type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, type ConnectionDeleteResponse as ConnectionDeleteResponse, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionListParams as ConnectionListParams, type ConnectionDeleteParams as ConnectionDeleteParams, type ConnectionGetParams as ConnectionGetParams, type ConnectionSetParams as ConnectionSetParams, };
|
|
252
|
+
export { Mcp as Mcp, type JsonRpcRequest as JsonRpcRequest, type JsonRpcResponse as JsonRpcResponse, type McpCallParams as McpCallParams, };
|
|
257
253
|
}
|
|
258
254
|
//# sourceMappingURL=connections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../src/resources/connections/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,EAAE,aAAa,EAAE;OACvD,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAE/C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIzG;;;;;;;;;OASG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAKvC;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,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(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Connections = void 0;
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const McpAPI = tslib_1.__importStar(require("./mcp.js"));
|
|
8
|
+
const mcp_1 = require("./mcp.js");
|
|
9
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
10
|
class Connections extends resource_1.APIResource {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.mcp = new McpAPI.Mcp(this._client);
|
|
14
|
+
}
|
|
8
15
|
/**
|
|
9
16
|
* Create a new MCP connection with an auto-generated ID. Requires API key and
|
|
10
17
|
* namespace ownership.
|
|
11
18
|
*
|
|
12
19
|
* @example
|
|
13
20
|
* ```ts
|
|
14
|
-
* const connection =
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* );
|
|
21
|
+
* const connection = await client.connections.create(
|
|
22
|
+
* 'namespace',
|
|
23
|
+
* { mcpUrl: 'https://mcp.example.com/sse' },
|
|
24
|
+
* );
|
|
19
25
|
* ```
|
|
20
26
|
*/
|
|
21
27
|
create(namespace, body, options) {
|
|
@@ -28,9 +34,7 @@ class Connections extends resource_1.APIResource {
|
|
|
28
34
|
* @example
|
|
29
35
|
* ```ts
|
|
30
36
|
* const connectionsListResponse =
|
|
31
|
-
* await client.
|
|
32
|
-
* 'namespace',
|
|
33
|
-
* );
|
|
37
|
+
* await client.connections.list('namespace');
|
|
34
38
|
* ```
|
|
35
39
|
*/
|
|
36
40
|
list(namespace, query = {}, options) {
|
|
@@ -42,11 +46,10 @@ class Connections extends resource_1.APIResource {
|
|
|
42
46
|
*
|
|
43
47
|
* @example
|
|
44
48
|
* ```ts
|
|
45
|
-
* const connection =
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* );
|
|
49
|
+
* const connection = await client.connections.delete(
|
|
50
|
+
* 'connectionId',
|
|
51
|
+
* { namespace: 'namespace' },
|
|
52
|
+
* );
|
|
50
53
|
* ```
|
|
51
54
|
*/
|
|
52
55
|
delete(connectionID, params, options) {
|
|
@@ -59,11 +62,10 @@ class Connections extends resource_1.APIResource {
|
|
|
59
62
|
*
|
|
60
63
|
* @example
|
|
61
64
|
* ```ts
|
|
62
|
-
* const connection =
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* );
|
|
65
|
+
* const connection = await client.connections.get(
|
|
66
|
+
* 'connectionId',
|
|
67
|
+
* { namespace: 'namespace' },
|
|
68
|
+
* );
|
|
67
69
|
* ```
|
|
68
70
|
*/
|
|
69
71
|
get(connectionID, params, options) {
|
|
@@ -71,21 +73,17 @@ class Connections extends resource_1.APIResource {
|
|
|
71
73
|
return this._client.get((0, path_1.path) `/connect/${namespace}/${connectionID}`, options);
|
|
72
74
|
}
|
|
73
75
|
/**
|
|
74
|
-
* Create or update an MCP connection with the given ID.
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* ownership.
|
|
76
|
+
* Create or update an MCP connection with the given ID. mcpUrl is required when
|
|
77
|
+
* creating a new connection, but optional when updating (omit to keep the existing
|
|
78
|
+
* URL). Returns 409 if a different mcpUrl is provided - delete and recreate to
|
|
79
|
+
* change URL. Requires API key and namespace ownership.
|
|
78
80
|
*
|
|
79
81
|
* @example
|
|
80
82
|
* ```ts
|
|
81
|
-
* const connection =
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* namespace: 'namespace',
|
|
86
|
-
* mcpUrl: 'https://mcp.example.com/sse',
|
|
87
|
-
* },
|
|
88
|
-
* );
|
|
83
|
+
* const connection = await client.connections.set(
|
|
84
|
+
* 'connectionId',
|
|
85
|
+
* { namespace: 'namespace' },
|
|
86
|
+
* );
|
|
89
87
|
* ```
|
|
90
88
|
*/
|
|
91
89
|
set(connectionID, params, options) {
|
|
@@ -94,4 +92,5 @@ class Connections extends resource_1.APIResource {
|
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
exports.Connections = Connections;
|
|
95
|
+
Connections.Mcp = mcp_1.Mcp;
|
|
97
96
|
//# sourceMappingURL=connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../src/resources/connections/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yDAAgC;AAChC,kCAA4E;AAG5E,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAA5C;;QACE,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4FjD,CAAC;IA1FC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAiB,EAAE,IAA4B,EAAE,OAAwB;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,SAAiB,EACjB,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,YAAoB,EACpB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,YAAoB,EAAE,MAA2B,EAAE,OAAwB;QAC7E,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,YAAoB,EAAE,MAA2B,EAAE,OAAwB;QAC7E,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF;AA7FD,kCA6FC;AAoND,WAAW,CAAC,GAAG,GAAG,SAAG,CAAC"}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as McpAPI from "./mcp.mjs";
|
|
4
|
+
import { Mcp } from "./mcp.mjs";
|
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
6
|
export class Connections extends APIResource {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.mcp = new McpAPI.Mcp(this._client);
|
|
10
|
+
}
|
|
5
11
|
/**
|
|
6
12
|
* Create a new MCP connection with an auto-generated ID. Requires API key and
|
|
7
13
|
* namespace ownership.
|
|
8
14
|
*
|
|
9
15
|
* @example
|
|
10
16
|
* ```ts
|
|
11
|
-
* const connection =
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* );
|
|
17
|
+
* const connection = await client.connections.create(
|
|
18
|
+
* 'namespace',
|
|
19
|
+
* { mcpUrl: 'https://mcp.example.com/sse' },
|
|
20
|
+
* );
|
|
16
21
|
* ```
|
|
17
22
|
*/
|
|
18
23
|
create(namespace, body, options) {
|
|
@@ -25,9 +30,7 @@ export class Connections extends APIResource {
|
|
|
25
30
|
* @example
|
|
26
31
|
* ```ts
|
|
27
32
|
* const connectionsListResponse =
|
|
28
|
-
* await client.
|
|
29
|
-
* 'namespace',
|
|
30
|
-
* );
|
|
33
|
+
* await client.connections.list('namespace');
|
|
31
34
|
* ```
|
|
32
35
|
*/
|
|
33
36
|
list(namespace, query = {}, options) {
|
|
@@ -39,11 +42,10 @@ export class Connections extends APIResource {
|
|
|
39
42
|
*
|
|
40
43
|
* @example
|
|
41
44
|
* ```ts
|
|
42
|
-
* const connection =
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* );
|
|
45
|
+
* const connection = await client.connections.delete(
|
|
46
|
+
* 'connectionId',
|
|
47
|
+
* { namespace: 'namespace' },
|
|
48
|
+
* );
|
|
47
49
|
* ```
|
|
48
50
|
*/
|
|
49
51
|
delete(connectionID, params, options) {
|
|
@@ -56,11 +58,10 @@ export class Connections extends APIResource {
|
|
|
56
58
|
*
|
|
57
59
|
* @example
|
|
58
60
|
* ```ts
|
|
59
|
-
* const connection =
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* );
|
|
61
|
+
* const connection = await client.connections.get(
|
|
62
|
+
* 'connectionId',
|
|
63
|
+
* { namespace: 'namespace' },
|
|
64
|
+
* );
|
|
64
65
|
* ```
|
|
65
66
|
*/
|
|
66
67
|
get(connectionID, params, options) {
|
|
@@ -68,21 +69,17 @@ export class Connections extends APIResource {
|
|
|
68
69
|
return this._client.get(path `/connect/${namespace}/${connectionID}`, options);
|
|
69
70
|
}
|
|
70
71
|
/**
|
|
71
|
-
* Create or update an MCP connection with the given ID.
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* ownership.
|
|
72
|
+
* Create or update an MCP connection with the given ID. mcpUrl is required when
|
|
73
|
+
* creating a new connection, but optional when updating (omit to keep the existing
|
|
74
|
+
* URL). Returns 409 if a different mcpUrl is provided - delete and recreate to
|
|
75
|
+
* change URL. Requires API key and namespace ownership.
|
|
75
76
|
*
|
|
76
77
|
* @example
|
|
77
78
|
* ```ts
|
|
78
|
-
* const connection =
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* namespace: 'namespace',
|
|
83
|
-
* mcpUrl: 'https://mcp.example.com/sse',
|
|
84
|
-
* },
|
|
85
|
-
* );
|
|
79
|
+
* const connection = await client.connections.set(
|
|
80
|
+
* 'connectionId',
|
|
81
|
+
* { namespace: 'namespace' },
|
|
82
|
+
* );
|
|
86
83
|
* ```
|
|
87
84
|
*/
|
|
88
85
|
set(connectionID, params, options) {
|
|
@@ -90,4 +87,5 @@ export class Connections extends APIResource {
|
|
|
90
87
|
return this._client.put(path `/connect/${namespace}/${connectionID}`, { body, ...options });
|
|
91
88
|
}
|
|
92
89
|
}
|
|
90
|
+
Connections.Mcp = Mcp;
|
|
93
91
|
//# sourceMappingURL=connections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../src/resources/connections/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAmC,GAAG,EAAiB;OAGvD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4FjD,CAAC;IA1FC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAiB,EAAE,IAA4B,EAAE,OAAwB;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,SAAS,EAAE,E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ponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionListParams, type ConnectionDeleteParams, type ConnectionGetParams, type ConnectionSetParams, } from "./connections.mjs";
|
|
3
2
|
export { Mcp, type JsonRpcRequest, type JsonRpcResponse, type McpCallParams } from "./mcp.mjs";
|
|
4
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/connections/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,GAAG,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { Connect } from "./connect.js";
|
|
2
1
|
export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionListParams, type ConnectionDeleteParams, type ConnectionGetParams, type ConnectionSetParams, } from "./connections.js";
|
|
3
2
|
export { Mcp, type JsonRpcRequest, type JsonRpcResponse, type McpCallParams } from "./mcp.js";
|
|
4
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/connections/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,GAAG,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Mcp = exports.Connections =
|
|
5
|
-
var connect_1 = require("./connect.js");
|
|
6
|
-
Object.defineProperty(exports, "Connect", { enumerable: true, get: function () { return connect_1.Connect; } });
|
|
4
|
+
exports.Mcp = exports.Connections = void 0;
|
|
7
5
|
var connections_1 = require("./connections.js");
|
|
8
6
|
Object.defineProperty(exports, "Connections", { enumerable: true, get: function () { return connections_1.Connections; } });
|
|
9
7
|
var mcp_1 = require("./mcp.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/connections/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,gCAA2F;AAAlF,0FAAA,GAAG,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/connections/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAUZ;OACM,EAAE,GAAG,EAAiE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
export declare class Mcp extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Stateless MCP endpoint using Streamable HTTP transport. Accepts JSON-RPC
|
|
@@ -10,11 +10,10 @@ export declare class Mcp extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
|
-
* const jsonRpcResponse =
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* );
|
|
13
|
+
* const jsonRpcResponse = await client.connections.mcp.call(
|
|
14
|
+
* 'connectionId',
|
|
15
|
+
* { namespace: 'namespace' },
|
|
16
|
+
* );
|
|
18
17
|
* ```
|
|
19
18
|
*/
|
|
20
19
|
call(connectionID: string, params: McpCallParams, options?: RequestOptions): APIPromise<JsonRpcResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.d.mts","sourceRoot":"","sources":["../../src/resources/connections/mcp.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAIzG;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,KAAK,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAE3B,OAAO,EAAE,KAAK,CAAC;IAEf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Mcp extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Stateless MCP endpoint using Streamable HTTP transport. Accepts JSON-RPC
|
|
@@ -10,11 +10,10 @@ export declare class Mcp extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
|
-
* const jsonRpcResponse =
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* );
|
|
13
|
+
* const jsonRpcResponse = await client.connections.mcp.call(
|
|
14
|
+
* 'connectionId',
|
|
15
|
+
* { namespace: 'namespace' },
|
|
16
|
+
* );
|
|
18
17
|
* ```
|
|
19
18
|
*/
|
|
20
19
|
call(connectionID: string, params: McpCallParams, options?: RequestOptions): APIPromise<JsonRpcResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/resources/connections/mcp.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAIzG;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,KAAK,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAE3B,OAAO,EAAE,KAAK,CAAC;IAEf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Mcp = void 0;
|
|
5
|
-
const resource_1 = require("
|
|
6
|
-
const path_1 = require("
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
7
|
class Mcp extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Stateless MCP endpoint using Streamable HTTP transport. Accepts JSON-RPC
|
|
@@ -13,11 +13,10 @@ class Mcp extends resource_1.APIResource {
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
|
-
* const jsonRpcResponse =
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* );
|
|
16
|
+
* const jsonRpcResponse = await client.connections.mcp.call(
|
|
17
|
+
* 'connectionId',
|
|
18
|
+
* { namespace: 'namespace' },
|
|
19
|
+
* );
|
|
21
20
|
* ```
|
|
22
21
|
*/
|
|
23
22
|
call(connectionID, params, options) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/resources/connections/mcp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,GAAI,SAAQ,sBAAW;IAClC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,YAAoB,EAAE,MAAqB,EAAE,OAAwB;QACxE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,YAAY,MAAM,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF;AAnBD,kBAmBC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import { path } from "
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
4
|
export class Mcp extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Stateless MCP endpoint using Streamable HTTP transport. Accepts JSON-RPC
|
|
@@ -10,11 +10,10 @@ export class Mcp extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
|
-
* const jsonRpcResponse =
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* );
|
|
13
|
+
* const jsonRpcResponse = await client.connections.mcp.call(
|
|
14
|
+
* 'connectionId',
|
|
15
|
+
* { namespace: 'namespace' },
|
|
16
|
+
* );
|
|
18
17
|
* ```
|
|
19
18
|
*/
|
|
20
19
|
call(connectionID, params, options) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.mjs","sourceRoot":"","sources":["../../src/resources/connections/mcp.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,YAAoB,EAAE,MAAqB,EAAE,OAAwB;QACxE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,YAAY,MAAM,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../src/resources/connections.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../src/resources/connections.ts"],"names":[],"mappings":""}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./
|
|
6
|
-
//# sourceMappingURL=
|
|
5
|
+
tslib_1.__exportStar(require("./connections/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../src/resources/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,iEAAoC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export * from "./connections/index.mjs";
|
|
3
|
+
//# sourceMappingURL=connections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../src/resources/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionListParams, type ConnectionDeleteParams, type ConnectionGetParams, type ConnectionSetParams, } from "./connections/connections.mjs";
|
|
2
2
|
export { Health, type HealthCheckResponse } from "./health.mjs";
|
|
3
3
|
export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type NamespaceDeleteResponse, type NamespaceSetResponse, type NamespaceListParams, type NamespaceListResponsesNamespacesPage, } from "./namespaces/namespaces.mjs";
|
|
4
4
|
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerCreateResponse, type ServerUpdateResponse, type ServerListResponse, type ServerDeleteResponse, type ServerCreateByNamespaceResponse, type ServerGetResponse, type ServerGetByNamespaceResponse, type ServerUpdateByNamespaceResponse, type ServerCreateParams, type ServerUpdateParams, type ServerListParams, type ServerDeleteParams, type ServerCreateByNamespaceParams, type ServerDownloadParams, type ServerGetParams, type ServerUpdateByNamespaceParams, type ServerListResponsesSmitheryPage, } from "./servers/servers.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oCAAoC,GAC1C;OACM,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,+BAA+B,EACpC,KAAK,iBAAiB,EACtB,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,EACpC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,GACrC;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,4BAA4B,GAClC;OACM,EACL,MAAM,EACN,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EAAE,MAAM,EAAE,KAAK,yBAAyB,EAAE"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionListParams, type ConnectionDeleteParams, type ConnectionGetParams, type ConnectionSetParams, } from "./connections/connections.js";
|
|
2
2
|
export { Health, type HealthCheckResponse } from "./health.js";
|
|
3
3
|
export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type NamespaceDeleteResponse, type NamespaceSetResponse, type NamespaceListParams, type NamespaceListResponsesNamespacesPage, } from "./namespaces/namespaces.js";
|
|
4
4
|
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerCreateResponse, type ServerUpdateResponse, type ServerListResponse, type ServerDeleteResponse, type ServerCreateByNamespaceResponse, type ServerGetResponse, type ServerGetByNamespaceResponse, type ServerUpdateByNamespaceResponse, type ServerCreateParams, type ServerUpdateParams, type ServerListParams, type ServerDeleteParams, type ServerCreateByNamespaceParams, type ServerDownloadParams, type ServerGetParams, type ServerUpdateByNamespaceParams, type ServerListResponsesSmitheryPage, } from "./servers/servers.js";
|