@smithery/api 0.20.0 → 0.21.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 +8 -0
- package/package.json +1 -1
- package/resources/beta/connect/connect.d.mts +4 -4
- package/resources/beta/connect/connect.d.mts.map +1 -1
- package/resources/beta/connect/connect.d.ts +4 -4
- package/resources/beta/connect/connect.d.ts.map +1 -1
- package/resources/beta/connect/connect.js.map +1 -1
- package/resources/beta/connect/connect.mjs +1 -1
- package/resources/beta/connect/connect.mjs.map +1 -1
- package/resources/beta/connect/connections.d.mts +118 -1
- package/resources/beta/connect/connections.d.mts.map +1 -1
- package/resources/beta/connect/connections.d.ts +118 -1
- package/resources/beta/connect/connections.d.ts.map +1 -1
- package/resources/beta/connect/connections.js +84 -0
- package/resources/beta/connect/connections.js.map +1 -1
- package/resources/beta/connect/connections.mjs +84 -0
- package/resources/beta/connect/connections.mjs.map +1 -1
- package/resources/beta/connect/index.d.mts +2 -2
- package/resources/beta/connect/index.d.mts.map +1 -1
- package/resources/beta/connect/index.d.ts +2 -2
- package/resources/beta/connect/index.d.ts.map +1 -1
- package/resources/beta/connect/index.js.map +1 -1
- package/resources/beta/connect/index.mjs.map +1 -1
- package/resources/beta/connect/rpc.d.mts +42 -1
- package/resources/beta/connect/rpc.d.mts.map +1 -1
- package/resources/beta/connect/rpc.d.ts +42 -1
- package/resources/beta/connect/rpc.d.ts.map +1 -1
- package/resources/beta/connect/rpc.js +21 -0
- package/resources/beta/connect/rpc.js.map +1 -1
- package/resources/beta/connect/rpc.mjs +21 -0
- package/resources/beta/connect/rpc.mjs.map +1 -1
- package/resources/beta/tools.d.mts +10 -0
- package/resources/beta/tools.d.mts.map +1 -1
- package/resources/beta/tools.d.ts +10 -0
- package/resources/beta/tools.d.ts.map +1 -1
- package/resources/beta/tools.js +10 -0
- package/resources/beta/tools.js.map +1 -1
- package/resources/beta/tools.mjs +10 -0
- package/resources/beta/tools.mjs.map +1 -1
- package/src/resources/beta/connect/connect.ts +23 -3
- package/src/resources/beta/connect/connections.ts +156 -1
- package/src/resources/beta/connect/index.ts +6 -1
- package/src/resources/beta/connect/rpc.ts +57 -2
- package/src/resources/beta/tools.ts +10 -0
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.0 (2026-01-19)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.20.0...v0.21.0](https://github.com/smithery-ai/typescript-api/compare/v0.20.0...v0.21.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([b6efe57](https://github.com/smithery-ai/typescript-api/commit/b6efe576d90a38475ee21df5f8ba1ee8c1ec3b58))
|
|
10
|
+
|
|
3
11
|
## 0.20.0 (2026-01-19)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.19.0...v0.20.0](https://github.com/smithery-ai/typescript-api/compare/v0.19.0...v0.20.0)
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as ConnectionsAPI from "./connections.mjs";
|
|
3
|
-
import { Connection, Connections, ConnectionsListResponse, CreateConnectionRequest } from "./connections.mjs";
|
|
3
|
+
import { Connection, ConnectionCreateParams, ConnectionDeleteParams, ConnectionDeleteResponse, ConnectionRetrieveParams, ConnectionSetParams, Connections, ConnectionsListResponse, CreateConnectionRequest } from "./connections.mjs";
|
|
4
4
|
import * as RpcAPI from "./rpc.mjs";
|
|
5
|
-
import { JsonRpcRequest, JsonRpcResponse, Rpc } from "./rpc.mjs";
|
|
5
|
+
import { JsonRpcRequest, JsonRpcResponse, Rpc, RpcCallParams } from "./rpc.mjs";
|
|
6
6
|
export declare class Connect extends APIResource {
|
|
7
7
|
connections: ConnectionsAPI.Connections;
|
|
8
8
|
rpc: RpcAPI.Rpc;
|
|
9
9
|
}
|
|
10
10
|
export declare namespace Connect {
|
|
11
|
-
export { Connections as Connections, type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, };
|
|
12
|
-
export { Rpc as Rpc, type JsonRpcRequest as JsonRpcRequest, type JsonRpcResponse as JsonRpcResponse };
|
|
11
|
+
export { Connections as Connections, type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, type ConnectionDeleteResponse as ConnectionDeleteResponse, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionRetrieveParams as ConnectionRetrieveParams, type ConnectionDeleteParams as ConnectionDeleteParams, type ConnectionSetParams as ConnectionSetParams, };
|
|
12
|
+
export { Rpc as Rpc, type JsonRpcRequest as JsonRpcRequest, type JsonRpcResponse as JsonRpcResponse, type RpcCallParams as RpcCallParams, };
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=connect.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,
|
|
1
|
+
{"version":3,"file":"connect.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,UAAU,EACV,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,uBAAuB,EACxB;OACM,KAAK,MAAM;OACX,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,EAAE,aAAa,EAAE;AAE9D,qBAAa,OAAQ,SAAQ,WAAW;IACtC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;CAChD;AAKD,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,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,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,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,14 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as ConnectionsAPI from "./connections.js";
|
|
3
|
-
import { Connection, Connections, ConnectionsListResponse, CreateConnectionRequest } from "./connections.js";
|
|
3
|
+
import { Connection, ConnectionCreateParams, ConnectionDeleteParams, ConnectionDeleteResponse, ConnectionRetrieveParams, ConnectionSetParams, Connections, ConnectionsListResponse, CreateConnectionRequest } from "./connections.js";
|
|
4
4
|
import * as RpcAPI from "./rpc.js";
|
|
5
|
-
import { JsonRpcRequest, JsonRpcResponse, Rpc } from "./rpc.js";
|
|
5
|
+
import { JsonRpcRequest, JsonRpcResponse, Rpc, RpcCallParams } from "./rpc.js";
|
|
6
6
|
export declare class Connect extends APIResource {
|
|
7
7
|
connections: ConnectionsAPI.Connections;
|
|
8
8
|
rpc: RpcAPI.Rpc;
|
|
9
9
|
}
|
|
10
10
|
export declare namespace Connect {
|
|
11
|
-
export { Connections as Connections, type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, };
|
|
12
|
-
export { Rpc as Rpc, type JsonRpcRequest as JsonRpcRequest, type JsonRpcResponse as JsonRpcResponse };
|
|
11
|
+
export { Connections as Connections, type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, type ConnectionDeleteResponse as ConnectionDeleteResponse, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionRetrieveParams as ConnectionRetrieveParams, type ConnectionDeleteParams as ConnectionDeleteParams, type ConnectionSetParams as ConnectionSetParams, };
|
|
12
|
+
export { Rpc as Rpc, type JsonRpcRequest as JsonRpcRequest, type JsonRpcResponse as JsonRpcResponse, type RpcCallParams as RpcCallParams, };
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=connect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,UAAU,EACV,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,uBAAuB,EACxB;OACM,KAAK,MAAM;OACX,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,EAAE,aAAa,EAAE;AAE9D,qBAAa,OAAQ,SAAQ,WAAW;IACtC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;CAChD;AAKD,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,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,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/connect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,yEAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/connect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,yEAAgD;AAChD,kDAUuB;AACvB,yDAAgC;AAChC,kCAA4E;AAE5E,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;CAAA;AAHD,0BAGC;AAED,OAAO,CAAC,WAAW,GAAG,yBAAW,CAAC;AAClC,OAAO,CAAC,GAAG,GAAG,SAAG,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as ConnectionsAPI from "./connections.mjs";
|
|
4
|
-
import { Connections } from "./connections.mjs";
|
|
4
|
+
import { Connections, } from "./connections.mjs";
|
|
5
5
|
import * as RpcAPI from "./rpc.mjs";
|
|
6
6
|
import { Rpc } from "./rpc.mjs";
|
|
7
7
|
export class Connect extends APIResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/connect.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,
|
|
1
|
+
{"version":3,"file":"connect.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/connect.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAOL,WAAW,GAGZ;OACM,KAAK,MAAM;OACX,EAAmC,GAAG,EAAiB;AAE9D,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;CAAA;AAED,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;AAClC,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC"}
|
|
@@ -1,5 +1,77 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
2
4
|
export declare class Connections extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new MCP connection with an auto-generated ID. Requires API key and
|
|
7
|
+
* namespace ownership.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const connection =
|
|
12
|
+
* await client.beta.connect.connections.create(
|
|
13
|
+
* 'namespace',
|
|
14
|
+
* { mcpUrl: 'https://mcp.example.com/sse' },
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(namespace: string, body: ConnectionCreateParams, options?: RequestOptions): APIPromise<Connection>;
|
|
19
|
+
/**
|
|
20
|
+
* Get details for a specific connection. Requires service token with
|
|
21
|
+
* connections:read scope.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const connection =
|
|
26
|
+
* await client.beta.connect.connections.retrieve(
|
|
27
|
+
* 'connectionId',
|
|
28
|
+
* { namespace: 'namespace' },
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
retrieve(connectionID: string, params: ConnectionRetrieveParams, options?: RequestOptions): APIPromise<Connection>;
|
|
33
|
+
/**
|
|
34
|
+
* List all connections in a namespace. Requires service token with
|
|
35
|
+
* connections:read scope.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const connectionsListResponse =
|
|
40
|
+
* await client.beta.connect.connections.list('namespace');
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
list(namespace: string, options?: RequestOptions): APIPromise<ConnectionsListResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Delete a connection and terminate its MCP session. Requires API key and
|
|
46
|
+
* namespace ownership.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const connection =
|
|
51
|
+
* await client.beta.connect.connections.delete(
|
|
52
|
+
* 'connectionId',
|
|
53
|
+
* { namespace: 'namespace' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
delete(connectionID: string, params: ConnectionDeleteParams, options?: RequestOptions): APIPromise<ConnectionDeleteResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Create a new MCP connection with the given ID. Requires API key and namespace
|
|
60
|
+
* ownership.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const connection =
|
|
65
|
+
* await client.beta.connect.connections.set(
|
|
66
|
+
* 'connectionId',
|
|
67
|
+
* {
|
|
68
|
+
* namespace: 'namespace',
|
|
69
|
+
* mcpUrl: 'https://mcp.example.com/sse',
|
|
70
|
+
* },
|
|
71
|
+
* );
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
set(connectionID: string, params: ConnectionSetParams, options?: RequestOptions): APIPromise<Connection>;
|
|
3
75
|
}
|
|
4
76
|
export interface Connection {
|
|
5
77
|
/**
|
|
@@ -69,7 +141,52 @@ export interface CreateConnectionRequest {
|
|
|
69
141
|
*/
|
|
70
142
|
name?: string;
|
|
71
143
|
}
|
|
144
|
+
export interface ConnectionDeleteResponse {
|
|
145
|
+
success: true;
|
|
146
|
+
}
|
|
147
|
+
export interface ConnectionCreateParams {
|
|
148
|
+
/**
|
|
149
|
+
* URL of the MCP server
|
|
150
|
+
*/
|
|
151
|
+
mcpUrl: string;
|
|
152
|
+
/**
|
|
153
|
+
* Custom metadata for filtering connections
|
|
154
|
+
*/
|
|
155
|
+
metadata?: {
|
|
156
|
+
[key: string]: unknown;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Human-readable name (optional, defaults to connection ID)
|
|
160
|
+
*/
|
|
161
|
+
name?: string;
|
|
162
|
+
}
|
|
163
|
+
export interface ConnectionRetrieveParams {
|
|
164
|
+
namespace: string;
|
|
165
|
+
}
|
|
166
|
+
export interface ConnectionDeleteParams {
|
|
167
|
+
namespace: string;
|
|
168
|
+
}
|
|
169
|
+
export interface ConnectionSetParams {
|
|
170
|
+
/**
|
|
171
|
+
* Path param
|
|
172
|
+
*/
|
|
173
|
+
namespace: string;
|
|
174
|
+
/**
|
|
175
|
+
* Body param: URL of the MCP server
|
|
176
|
+
*/
|
|
177
|
+
mcpUrl: string;
|
|
178
|
+
/**
|
|
179
|
+
* Body param: Custom metadata for filtering connections
|
|
180
|
+
*/
|
|
181
|
+
metadata?: {
|
|
182
|
+
[key: string]: unknown;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Body param: Human-readable name (optional, defaults to connection ID)
|
|
186
|
+
*/
|
|
187
|
+
name?: string;
|
|
188
|
+
}
|
|
72
189
|
export declare namespace Connections {
|
|
73
|
-
export { type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, };
|
|
190
|
+
export { type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, type ConnectionDeleteResponse as ConnectionDeleteResponse, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionRetrieveParams as ConnectionRetrieveParams, type ConnectionDeleteParams as ConnectionDeleteParams, type ConnectionSetParams as ConnectionSetParams, };
|
|
74
191
|
}
|
|
75
192
|
//# sourceMappingURL=connections.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIzG;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;IAKzB;;;;;;;;;OASG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,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B,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1,5 +1,77 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
2
4
|
export declare class Connections extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new MCP connection with an auto-generated ID. Requires API key and
|
|
7
|
+
* namespace ownership.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const connection =
|
|
12
|
+
* await client.beta.connect.connections.create(
|
|
13
|
+
* 'namespace',
|
|
14
|
+
* { mcpUrl: 'https://mcp.example.com/sse' },
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(namespace: string, body: ConnectionCreateParams, options?: RequestOptions): APIPromise<Connection>;
|
|
19
|
+
/**
|
|
20
|
+
* Get details for a specific connection. Requires service token with
|
|
21
|
+
* connections:read scope.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const connection =
|
|
26
|
+
* await client.beta.connect.connections.retrieve(
|
|
27
|
+
* 'connectionId',
|
|
28
|
+
* { namespace: 'namespace' },
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
retrieve(connectionID: string, params: ConnectionRetrieveParams, options?: RequestOptions): APIPromise<Connection>;
|
|
33
|
+
/**
|
|
34
|
+
* List all connections in a namespace. Requires service token with
|
|
35
|
+
* connections:read scope.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const connectionsListResponse =
|
|
40
|
+
* await client.beta.connect.connections.list('namespace');
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
list(namespace: string, options?: RequestOptions): APIPromise<ConnectionsListResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Delete a connection and terminate its MCP session. Requires API key and
|
|
46
|
+
* namespace ownership.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const connection =
|
|
51
|
+
* await client.beta.connect.connections.delete(
|
|
52
|
+
* 'connectionId',
|
|
53
|
+
* { namespace: 'namespace' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
delete(connectionID: string, params: ConnectionDeleteParams, options?: RequestOptions): APIPromise<ConnectionDeleteResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Create a new MCP connection with the given ID. Requires API key and namespace
|
|
60
|
+
* ownership.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const connection =
|
|
65
|
+
* await client.beta.connect.connections.set(
|
|
66
|
+
* 'connectionId',
|
|
67
|
+
* {
|
|
68
|
+
* namespace: 'namespace',
|
|
69
|
+
* mcpUrl: 'https://mcp.example.com/sse',
|
|
70
|
+
* },
|
|
71
|
+
* );
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
set(connectionID: string, params: ConnectionSetParams, options?: RequestOptions): APIPromise<Connection>;
|
|
3
75
|
}
|
|
4
76
|
export interface Connection {
|
|
5
77
|
/**
|
|
@@ -69,7 +141,52 @@ export interface CreateConnectionRequest {
|
|
|
69
141
|
*/
|
|
70
142
|
name?: string;
|
|
71
143
|
}
|
|
144
|
+
export interface ConnectionDeleteResponse {
|
|
145
|
+
success: true;
|
|
146
|
+
}
|
|
147
|
+
export interface ConnectionCreateParams {
|
|
148
|
+
/**
|
|
149
|
+
* URL of the MCP server
|
|
150
|
+
*/
|
|
151
|
+
mcpUrl: string;
|
|
152
|
+
/**
|
|
153
|
+
* Custom metadata for filtering connections
|
|
154
|
+
*/
|
|
155
|
+
metadata?: {
|
|
156
|
+
[key: string]: unknown;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Human-readable name (optional, defaults to connection ID)
|
|
160
|
+
*/
|
|
161
|
+
name?: string;
|
|
162
|
+
}
|
|
163
|
+
export interface ConnectionRetrieveParams {
|
|
164
|
+
namespace: string;
|
|
165
|
+
}
|
|
166
|
+
export interface ConnectionDeleteParams {
|
|
167
|
+
namespace: string;
|
|
168
|
+
}
|
|
169
|
+
export interface ConnectionSetParams {
|
|
170
|
+
/**
|
|
171
|
+
* Path param
|
|
172
|
+
*/
|
|
173
|
+
namespace: string;
|
|
174
|
+
/**
|
|
175
|
+
* Body param: URL of the MCP server
|
|
176
|
+
*/
|
|
177
|
+
mcpUrl: string;
|
|
178
|
+
/**
|
|
179
|
+
* Body param: Custom metadata for filtering connections
|
|
180
|
+
*/
|
|
181
|
+
metadata?: {
|
|
182
|
+
[key: string]: unknown;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Body param: Human-readable name (optional, defaults to connection ID)
|
|
186
|
+
*/
|
|
187
|
+
name?: string;
|
|
188
|
+
}
|
|
72
189
|
export declare namespace Connections {
|
|
73
|
-
export { type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, };
|
|
190
|
+
export { type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, type ConnectionDeleteResponse as ConnectionDeleteResponse, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionRetrieveParams as ConnectionRetrieveParams, type ConnectionDeleteParams as ConnectionDeleteParams, type ConnectionSetParams as ConnectionSetParams, };
|
|
74
191
|
}
|
|
75
192
|
//# sourceMappingURL=connections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OAC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AAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,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,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -3,7 +3,91 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Connections = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
6
7
|
class Connections extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create a new MCP connection with an auto-generated ID. Requires API key and
|
|
10
|
+
* namespace ownership.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const connection =
|
|
15
|
+
* await client.beta.connect.connections.create(
|
|
16
|
+
* 'namespace',
|
|
17
|
+
* { mcpUrl: 'https://mcp.example.com/sse' },
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(namespace, body, options) {
|
|
22
|
+
return this._client.post((0, path_1.path) `/connect/${namespace}`, { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get details for a specific connection. Requires service token with
|
|
26
|
+
* connections:read scope.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const connection =
|
|
31
|
+
* await client.beta.connect.connections.retrieve(
|
|
32
|
+
* 'connectionId',
|
|
33
|
+
* { namespace: 'namespace' },
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
retrieve(connectionID, params, options) {
|
|
38
|
+
const { namespace } = params;
|
|
39
|
+
return this._client.get((0, path_1.path) `/connect/${namespace}/${connectionID}`, options);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* List all connections in a namespace. Requires service token with
|
|
43
|
+
* connections:read scope.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const connectionsListResponse =
|
|
48
|
+
* await client.beta.connect.connections.list('namespace');
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
list(namespace, options) {
|
|
52
|
+
return this._client.get((0, path_1.path) `/connect/${namespace}`, options);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Delete a connection and terminate its MCP session. Requires API key and
|
|
56
|
+
* namespace ownership.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const connection =
|
|
61
|
+
* await client.beta.connect.connections.delete(
|
|
62
|
+
* 'connectionId',
|
|
63
|
+
* { namespace: 'namespace' },
|
|
64
|
+
* );
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
delete(connectionID, params, options) {
|
|
68
|
+
const { namespace } = params;
|
|
69
|
+
return this._client.delete((0, path_1.path) `/connect/${namespace}/${connectionID}`, options);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Create a new MCP connection with the given ID. Requires API key and namespace
|
|
73
|
+
* ownership.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const connection =
|
|
78
|
+
* await client.beta.connect.connections.set(
|
|
79
|
+
* 'connectionId',
|
|
80
|
+
* {
|
|
81
|
+
* namespace: 'namespace',
|
|
82
|
+
* mcpUrl: 'https://mcp.example.com/sse',
|
|
83
|
+
* },
|
|
84
|
+
* );
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
set(connectionID, params, options) {
|
|
88
|
+
const { namespace, ...body } = params;
|
|
89
|
+
return this._client.put((0, path_1.path) `/connect/${namespace}/${connectionID}`, { body, ...options });
|
|
90
|
+
}
|
|
7
91
|
}
|
|
8
92
|
exports.Connections = Connections;
|
|
9
93
|
//# sourceMappingURL=connections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;OAYG;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;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAoB,EACpB,MAAgC,EAChC,OAAwB;QAExB,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;;;;;;;;;OASG;IACH,IAAI,CAAC,SAAiB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;;;OAYG;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;;;;;;;;;;;;;;;OAeG;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;AAhGD,kCAgGC"}
|
|
@@ -1,5 +1,89 @@
|
|
|
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 { path } from "../../../internal/utils/path.mjs";
|
|
3
4
|
export class Connections extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new MCP connection with an auto-generated ID. Requires API key and
|
|
7
|
+
* namespace ownership.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const connection =
|
|
12
|
+
* await client.beta.connect.connections.create(
|
|
13
|
+
* 'namespace',
|
|
14
|
+
* { mcpUrl: 'https://mcp.example.com/sse' },
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(namespace, body, options) {
|
|
19
|
+
return this._client.post(path `/connect/${namespace}`, { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get details for a specific connection. Requires service token with
|
|
23
|
+
* connections:read scope.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const connection =
|
|
28
|
+
* await client.beta.connect.connections.retrieve(
|
|
29
|
+
* 'connectionId',
|
|
30
|
+
* { namespace: 'namespace' },
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
retrieve(connectionID, params, options) {
|
|
35
|
+
const { namespace } = params;
|
|
36
|
+
return this._client.get(path `/connect/${namespace}/${connectionID}`, options);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* List all connections in a namespace. Requires service token with
|
|
40
|
+
* connections:read scope.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const connectionsListResponse =
|
|
45
|
+
* await client.beta.connect.connections.list('namespace');
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
list(namespace, options) {
|
|
49
|
+
return this._client.get(path `/connect/${namespace}`, options);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Delete a connection and terminate its MCP session. Requires API key and
|
|
53
|
+
* namespace ownership.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const connection =
|
|
58
|
+
* await client.beta.connect.connections.delete(
|
|
59
|
+
* 'connectionId',
|
|
60
|
+
* { namespace: 'namespace' },
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
delete(connectionID, params, options) {
|
|
65
|
+
const { namespace } = params;
|
|
66
|
+
return this._client.delete(path `/connect/${namespace}/${connectionID}`, options);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Create a new MCP connection with the given ID. Requires API key and namespace
|
|
70
|
+
* ownership.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const connection =
|
|
75
|
+
* await client.beta.connect.connections.set(
|
|
76
|
+
* 'connectionId',
|
|
77
|
+
* {
|
|
78
|
+
* namespace: 'namespace',
|
|
79
|
+
* mcpUrl: 'https://mcp.example.com/sse',
|
|
80
|
+
* },
|
|
81
|
+
* );
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
set(connectionID, params, options) {
|
|
85
|
+
const { namespace, ...body } = params;
|
|
86
|
+
return this._client.put(path `/connect/${namespace}/${connectionID}`, { body, ...options });
|
|
87
|
+
}
|
|
4
88
|
}
|
|
5
89
|
//# sourceMappingURL=connections.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,SAAiB,EAAE,IAA4B,EAAE,OAAwB;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAoB,EACpB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,SAAiB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YAAoB,EACpB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;;;;OAeG;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,IAAI,CAAA,YAAY,SAAS,IAAI,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Connect } from "./connect.mjs";
|
|
2
|
-
export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, } from "./connections.mjs";
|
|
3
|
-
export { Rpc, type JsonRpcRequest, type JsonRpcResponse } from "./rpc.mjs";
|
|
2
|
+
export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionRetrieveParams, type ConnectionDeleteParams, type ConnectionSetParams, } from "./connections.mjs";
|
|
3
|
+
export { Rpc, type JsonRpcRequest, type JsonRpcResponse, type RpcCallParams } from "./rpc.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB;OACM,EAAE,GAAG,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Connect } from "./connect.js";
|
|
2
|
-
export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, } from "./connections.js";
|
|
3
|
-
export { Rpc, type JsonRpcRequest, type JsonRpcResponse } from "./rpc.js";
|
|
2
|
+
export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionRetrieveParams, type ConnectionDeleteParams, type ConnectionSetParams, } from "./connections.js";
|
|
3
|
+
export { Rpc, type JsonRpcRequest, type JsonRpcResponse, type RpcCallParams } from "./rpc.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB;OACM,EAAE,GAAG,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,gDAUuB;AATrB,0GAAA,WAAW,OAAA;AAUb,gCAA2F;AAAlF,0FAAA,GAAG,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAE;OACX,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAE;OACX,EACL,WAAW,GASZ;OACM,EAAE,GAAG,EAAiE"}
|