@smithery/api 0.23.0 → 0.25.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 +21 -0
- 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 +1 -1
- package/client.mjs.map +1 -1
- package/lib/mcp-transport.d.mts +102 -0
- package/lib/mcp-transport.d.mts.map +1 -0
- package/lib/mcp-transport.d.ts +102 -0
- package/lib/mcp-transport.d.ts.map +1 -0
- package/lib/mcp-transport.js +233 -0
- package/lib/mcp-transport.js.map +1 -0
- package/lib/mcp-transport.mjs +229 -0
- package/lib/mcp-transport.mjs.map +1 -0
- package/package.json +34 -2
- package/resources/beta/connect/connect.d.mts +2 -2
- package/resources/beta/connect/connect.d.mts.map +1 -1
- package/resources/beta/connect/connect.d.ts +2 -2
- 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.map +1 -1
- package/resources/beta/connect/connections.d.mts +38 -24
- package/resources/beta/connect/connections.d.mts.map +1 -1
- package/resources/beta/connect/connections.d.ts +38 -24
- package/resources/beta/connect/connections.d.ts.map +1 -1
- package/resources/beta/connect/connections.js +21 -21
- package/resources/beta/connect/connections.js.map +1 -1
- package/resources/beta/connect/connections.mjs +21 -21
- package/resources/beta/connect/connections.mjs.map +1 -1
- package/resources/beta/connect/index.d.mts +1 -1
- package/resources/beta/connect/index.d.mts.map +1 -1
- package/resources/beta/connect/index.d.ts +1 -1
- 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/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 +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/namespaces.d.mts +11 -16
- package/resources/namespaces.d.mts.map +1 -1
- package/resources/namespaces.d.ts +11 -16
- package/resources/namespaces.d.ts.map +1 -1
- package/resources/namespaces.js +12 -15
- package/resources/namespaces.js.map +1 -1
- package/resources/namespaces.mjs +12 -15
- package/resources/namespaces.mjs.map +1 -1
- package/resources/servers/deployments.d.mts +30 -27
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +30 -27
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +7 -7
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +7 -7
- package/resources/servers/deployments.mjs.map +1 -1
- package/resources/servers/index.d.mts +2 -2
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +2 -2
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/servers.d.mts +30 -30
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +30 -30
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +6 -6
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +6 -6
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/tokens.d.mts +96 -63
- package/resources/tokens.d.mts.map +1 -1
- package/resources/tokens.d.ts +96 -63
- package/resources/tokens.d.ts.map +1 -1
- package/resources/tokens.js +1 -4
- package/resources/tokens.js.map +1 -1
- package/resources/tokens.mjs +1 -4
- package/resources/tokens.mjs.map +1 -1
- package/src/client.ts +20 -5
- package/src/lib/mcp-transport.ts +300 -0
- package/src/resources/beta/connect/connect.ts +4 -2
- package/src/resources/beta/connect/connections.ts +53 -35
- package/src/resources/beta/connect/index.ts +2 -1
- package/src/resources/index.ts +13 -3
- package/src/resources/namespaces.ts +17 -17
- package/src/resources/servers/deployments.ts +45 -47
- package/src/resources/servers/index.ts +3 -3
- package/src/resources/servers/servers.ts +49 -49
- package/src/resources/tokens.ts +103 -58
- 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
|
@@ -17,22 +17,8 @@ export declare class Connections extends APIResource {
|
|
|
17
17
|
*/
|
|
18
18
|
create(namespace: string, body: ConnectionCreateParams, options?: RequestOptions): APIPromise<Connection>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
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.
|
|
20
|
+
* List all connections in a namespace. Supports filtering by metadata using
|
|
21
|
+
* `metadata.{key}={value}` query params (e.g., `metadata.userId=alice`).
|
|
36
22
|
*
|
|
37
23
|
* @example
|
|
38
24
|
* ```ts
|
|
@@ -40,7 +26,7 @@ export declare class Connections extends APIResource {
|
|
|
40
26
|
* await client.beta.connect.connections.list('namespace');
|
|
41
27
|
* ```
|
|
42
28
|
*/
|
|
43
|
-
list(namespace: string, options?: RequestOptions): APIPromise<ConnectionsListResponse>;
|
|
29
|
+
list(namespace: string, query?: ConnectionListParams | null | undefined, options?: RequestOptions): APIPromise<ConnectionsListResponse>;
|
|
44
30
|
/**
|
|
45
31
|
* Delete a connection and terminate its MCP session. Requires API key and
|
|
46
32
|
* namespace ownership.
|
|
@@ -55,6 +41,20 @@ export declare class Connections extends APIResource {
|
|
|
55
41
|
* ```
|
|
56
42
|
*/
|
|
57
43
|
delete(connectionID: string, params: ConnectionDeleteParams, options?: RequestOptions): APIPromise<ConnectionDeleteResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Get details for a specific connection. Requires service token with
|
|
46
|
+
* connections:read scope.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const connection =
|
|
51
|
+
* await client.beta.connect.connections.get(
|
|
52
|
+
* 'connectionId',
|
|
53
|
+
* { namespace: 'namespace' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
get(connectionID: string, params: ConnectionGetParams, options?: RequestOptions): APIPromise<Connection>;
|
|
58
58
|
/**
|
|
59
59
|
* Create a new MCP connection with the given ID. Returns 409 if connection already
|
|
60
60
|
* exists - delete it first to recreate. Requires API key and namespace ownership.
|
|
@@ -101,7 +101,7 @@ export interface Connection {
|
|
|
101
101
|
/**
|
|
102
102
|
* Connection status after initialization (only returned on create)
|
|
103
103
|
*/
|
|
104
|
-
status?: Connection.
|
|
104
|
+
status?: Connection.ConnectionStatusConnected | Connection.ConnectionStatusAuthRequired | Connection.ConnectionStatusError;
|
|
105
105
|
}
|
|
106
106
|
export declare namespace Connection {
|
|
107
107
|
/**
|
|
@@ -123,17 +123,17 @@ export declare namespace Connection {
|
|
|
123
123
|
theme?: 'light' | 'dark';
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
interface
|
|
126
|
+
interface ConnectionStatusConnected {
|
|
127
127
|
state: 'connected';
|
|
128
128
|
}
|
|
129
|
-
interface
|
|
129
|
+
interface ConnectionStatusAuthRequired {
|
|
130
130
|
state: 'auth_required';
|
|
131
131
|
/**
|
|
132
132
|
* URL to redirect user for OAuth authorization
|
|
133
133
|
*/
|
|
134
134
|
authorizationUrl?: string;
|
|
135
135
|
}
|
|
136
|
-
interface
|
|
136
|
+
interface ConnectionStatusError {
|
|
137
137
|
/**
|
|
138
138
|
* Error message
|
|
139
139
|
*/
|
|
@@ -197,12 +197,26 @@ export interface ConnectionCreateParams {
|
|
|
197
197
|
*/
|
|
198
198
|
name?: string;
|
|
199
199
|
}
|
|
200
|
-
export interface
|
|
201
|
-
|
|
200
|
+
export interface ConnectionListParams {
|
|
201
|
+
/**
|
|
202
|
+
* Pagination cursor from previous response's nextCursor
|
|
203
|
+
*/
|
|
204
|
+
cursor?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Maximum number of items to return (default 100, max 100)
|
|
207
|
+
*/
|
|
208
|
+
limit?: number;
|
|
209
|
+
/**
|
|
210
|
+
* Filter by exact connection name
|
|
211
|
+
*/
|
|
212
|
+
name?: string;
|
|
202
213
|
}
|
|
203
214
|
export interface ConnectionDeleteParams {
|
|
204
215
|
namespace: string;
|
|
205
216
|
}
|
|
217
|
+
export interface ConnectionGetParams {
|
|
218
|
+
namespace: string;
|
|
219
|
+
}
|
|
206
220
|
export interface ConnectionSetParams {
|
|
207
221
|
/**
|
|
208
222
|
* Path param
|
|
@@ -231,6 +245,6 @@ export interface ConnectionSetParams {
|
|
|
231
245
|
name?: string;
|
|
232
246
|
}
|
|
233
247
|
export declare namespace Connections {
|
|
234
|
-
export { type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, type ConnectionDeleteResponse as ConnectionDeleteResponse, type ConnectionCreateParams as ConnectionCreateParams, type
|
|
248
|
+
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, };
|
|
235
249
|
}
|
|
236
250
|
//# 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;OACf,EAAE,UAAU,EAAE;OACd,EAA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AEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,EAAE;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,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -17,22 +17,8 @@ export declare class Connections extends APIResource {
|
|
|
17
17
|
*/
|
|
18
18
|
create(namespace: string, body: ConnectionCreateParams, options?: RequestOptions): APIPromise<Connection>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
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.
|
|
20
|
+
* List all connections in a namespace. Supports filtering by metadata using
|
|
21
|
+
* `metadata.{key}={value}` query params (e.g., `metadata.userId=alice`).
|
|
36
22
|
*
|
|
37
23
|
* @example
|
|
38
24
|
* ```ts
|
|
@@ -40,7 +26,7 @@ export declare class Connections extends APIResource {
|
|
|
40
26
|
* await client.beta.connect.connections.list('namespace');
|
|
41
27
|
* ```
|
|
42
28
|
*/
|
|
43
|
-
list(namespace: string, options?: RequestOptions): APIPromise<ConnectionsListResponse>;
|
|
29
|
+
list(namespace: string, query?: ConnectionListParams | null | undefined, options?: RequestOptions): APIPromise<ConnectionsListResponse>;
|
|
44
30
|
/**
|
|
45
31
|
* Delete a connection and terminate its MCP session. Requires API key and
|
|
46
32
|
* namespace ownership.
|
|
@@ -55,6 +41,20 @@ export declare class Connections extends APIResource {
|
|
|
55
41
|
* ```
|
|
56
42
|
*/
|
|
57
43
|
delete(connectionID: string, params: ConnectionDeleteParams, options?: RequestOptions): APIPromise<ConnectionDeleteResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Get details for a specific connection. Requires service token with
|
|
46
|
+
* connections:read scope.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const connection =
|
|
51
|
+
* await client.beta.connect.connections.get(
|
|
52
|
+
* 'connectionId',
|
|
53
|
+
* { namespace: 'namespace' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
get(connectionID: string, params: ConnectionGetParams, options?: RequestOptions): APIPromise<Connection>;
|
|
58
58
|
/**
|
|
59
59
|
* Create a new MCP connection with the given ID. Returns 409 if connection already
|
|
60
60
|
* exists - delete it first to recreate. Requires API key and namespace ownership.
|
|
@@ -101,7 +101,7 @@ export interface Connection {
|
|
|
101
101
|
/**
|
|
102
102
|
* Connection status after initialization (only returned on create)
|
|
103
103
|
*/
|
|
104
|
-
status?: Connection.
|
|
104
|
+
status?: Connection.ConnectionStatusConnected | Connection.ConnectionStatusAuthRequired | Connection.ConnectionStatusError;
|
|
105
105
|
}
|
|
106
106
|
export declare namespace Connection {
|
|
107
107
|
/**
|
|
@@ -123,17 +123,17 @@ export declare namespace Connection {
|
|
|
123
123
|
theme?: 'light' | 'dark';
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
interface
|
|
126
|
+
interface ConnectionStatusConnected {
|
|
127
127
|
state: 'connected';
|
|
128
128
|
}
|
|
129
|
-
interface
|
|
129
|
+
interface ConnectionStatusAuthRequired {
|
|
130
130
|
state: 'auth_required';
|
|
131
131
|
/**
|
|
132
132
|
* URL to redirect user for OAuth authorization
|
|
133
133
|
*/
|
|
134
134
|
authorizationUrl?: string;
|
|
135
135
|
}
|
|
136
|
-
interface
|
|
136
|
+
interface ConnectionStatusError {
|
|
137
137
|
/**
|
|
138
138
|
* Error message
|
|
139
139
|
*/
|
|
@@ -197,12 +197,26 @@ export interface ConnectionCreateParams {
|
|
|
197
197
|
*/
|
|
198
198
|
name?: string;
|
|
199
199
|
}
|
|
200
|
-
export interface
|
|
201
|
-
|
|
200
|
+
export interface ConnectionListParams {
|
|
201
|
+
/**
|
|
202
|
+
* Pagination cursor from previous response's nextCursor
|
|
203
|
+
*/
|
|
204
|
+
cursor?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Maximum number of items to return (default 100, max 100)
|
|
207
|
+
*/
|
|
208
|
+
limit?: number;
|
|
209
|
+
/**
|
|
210
|
+
* Filter by exact connection name
|
|
211
|
+
*/
|
|
212
|
+
name?: string;
|
|
202
213
|
}
|
|
203
214
|
export interface ConnectionDeleteParams {
|
|
204
215
|
namespace: string;
|
|
205
216
|
}
|
|
217
|
+
export interface ConnectionGetParams {
|
|
218
|
+
namespace: string;
|
|
219
|
+
}
|
|
206
220
|
export interface ConnectionSetParams {
|
|
207
221
|
/**
|
|
208
222
|
* Path param
|
|
@@ -231,6 +245,6 @@ export interface ConnectionSetParams {
|
|
|
231
245
|
name?: string;
|
|
232
246
|
}
|
|
233
247
|
export declare namespace Connections {
|
|
234
|
-
export { type Connection as Connection, type ConnectionsListResponse as ConnectionsListResponse, type CreateConnectionRequest as CreateConnectionRequest, type ConnectionDeleteResponse as ConnectionDeleteResponse, type ConnectionCreateParams as ConnectionCreateParams, type
|
|
248
|
+
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, };
|
|
235
249
|
}
|
|
236
250
|
//# 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;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
|
|
1
|
+
{"version":3,"file":"connections.d.ts","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;;;;;;;;;OASG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAA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;CACH"}
|
|
@@ -22,25 +22,8 @@ class Connections extends resource_1.APIResource {
|
|
|
22
22
|
return this._client.post((0, path_1.path) `/connect/${namespace}`, { body, ...options });
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
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.
|
|
25
|
+
* List all connections in a namespace. Supports filtering by metadata using
|
|
26
|
+
* `metadata.{key}={value}` query params (e.g., `metadata.userId=alice`).
|
|
44
27
|
*
|
|
45
28
|
* @example
|
|
46
29
|
* ```ts
|
|
@@ -48,8 +31,8 @@ class Connections extends resource_1.APIResource {
|
|
|
48
31
|
* await client.beta.connect.connections.list('namespace');
|
|
49
32
|
* ```
|
|
50
33
|
*/
|
|
51
|
-
list(namespace, options) {
|
|
52
|
-
return this._client.get((0, path_1.path) `/connect/${namespace}`, options);
|
|
34
|
+
list(namespace, query = {}, options) {
|
|
35
|
+
return this._client.get((0, path_1.path) `/connect/${namespace}`, { query, ...options });
|
|
53
36
|
}
|
|
54
37
|
/**
|
|
55
38
|
* Delete a connection and terminate its MCP session. Requires API key and
|
|
@@ -68,6 +51,23 @@ class Connections extends resource_1.APIResource {
|
|
|
68
51
|
const { namespace } = params;
|
|
69
52
|
return this._client.delete((0, path_1.path) `/connect/${namespace}/${connectionID}`, options);
|
|
70
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Get details for a specific connection. Requires service token with
|
|
56
|
+
* connections:read scope.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const connection =
|
|
61
|
+
* await client.beta.connect.connections.get(
|
|
62
|
+
* 'connectionId',
|
|
63
|
+
* { namespace: 'namespace' },
|
|
64
|
+
* );
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
get(connectionID, params, options) {
|
|
68
|
+
const { namespace } = params;
|
|
69
|
+
return this._client.get((0, path_1.path) `/connect/${namespace}/${connectionID}`, options);
|
|
70
|
+
}
|
|
71
71
|
/**
|
|
72
72
|
* Create a new MCP connection with the given ID. Returns 409 if connection already
|
|
73
73
|
* exists - delete it first to recreate. Requires API key and namespace ownership.
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;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;;;;;;;;;;;;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;;;;;;;;;;;;OAYG;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;;;;;;;;;;;;;;;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"}
|
|
@@ -19,25 +19,8 @@ export class Connections extends APIResource {
|
|
|
19
19
|
return this._client.post(path `/connect/${namespace}`, { body, ...options });
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
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.
|
|
22
|
+
* List all connections in a namespace. Supports filtering by metadata using
|
|
23
|
+
* `metadata.{key}={value}` query params (e.g., `metadata.userId=alice`).
|
|
41
24
|
*
|
|
42
25
|
* @example
|
|
43
26
|
* ```ts
|
|
@@ -45,8 +28,8 @@ export class Connections extends APIResource {
|
|
|
45
28
|
* await client.beta.connect.connections.list('namespace');
|
|
46
29
|
* ```
|
|
47
30
|
*/
|
|
48
|
-
list(namespace, options) {
|
|
49
|
-
return this._client.get(path `/connect/${namespace}`, options);
|
|
31
|
+
list(namespace, query = {}, options) {
|
|
32
|
+
return this._client.get(path `/connect/${namespace}`, { query, ...options });
|
|
50
33
|
}
|
|
51
34
|
/**
|
|
52
35
|
* Delete a connection and terminate its MCP session. Requires API key and
|
|
@@ -65,6 +48,23 @@ export class Connections extends APIResource {
|
|
|
65
48
|
const { namespace } = params;
|
|
66
49
|
return this._client.delete(path `/connect/${namespace}/${connectionID}`, options);
|
|
67
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Get details for a specific connection. Requires service token with
|
|
53
|
+
* connections:read scope.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const connection =
|
|
58
|
+
* await client.beta.connect.connections.get(
|
|
59
|
+
* 'connectionId',
|
|
60
|
+
* { namespace: 'namespace' },
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
get(connectionID, params, options) {
|
|
65
|
+
const { namespace } = params;
|
|
66
|
+
return this._client.get(path `/connect/${namespace}/${connectionID}`, options);
|
|
67
|
+
}
|
|
68
68
|
/**
|
|
69
69
|
* Create a new MCP connection with the given ID. Returns 409 if connection already
|
|
70
70
|
* exists - delete it first to recreate. Requires API key and namespace ownership.
|
|
@@ -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;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
|
|
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;;;;;;;;;OASG;IACH,IAAI,CACF,SAAiB,EACjB,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,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;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,YAAoB,EAAE,MAA2B,EAAE,OAAwB;QAC7E,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;;;;;;;;;;;;;;;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, type ConnectionDeleteResponse, type ConnectionCreateParams, type
|
|
2
|
+
export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionListParams, type ConnectionDeleteParams, type ConnectionGetParams, type ConnectionSetParams, } from "./connections.mjs";
|
|
3
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,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,
|
|
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,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,4 @@
|
|
|
1
1
|
export { Connect } from "./connect.js";
|
|
2
|
-
export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type
|
|
2
|
+
export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionListParams, type ConnectionDeleteParams, type ConnectionGetParams, type ConnectionSetParams, } from "./connections.js";
|
|
3
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,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,
|
|
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,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 +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,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,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,GAUZ;OACM,EAAE,GAAG,EAAiE"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { Beta } from "./beta/beta.mjs";
|
|
2
2
|
export { Health, type HealthCheckResponse } from "./health.mjs";
|
|
3
|
-
export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type
|
|
4
|
-
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type
|
|
3
|
+
export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type NamespaceSetResponse, } from "./namespaces.mjs";
|
|
4
|
+
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerListResponse, type ServerDeleteResponse, type ServerGetResponse, type ServerListParams, type ServerListResponsesSmitheryPage, } from "./servers/servers.mjs";
|
|
5
5
|
export { Skills, type SkillListResponse, type SkillListParams, type SkillListResponsesSkillsPage, } from "./skills.mjs";
|
|
6
|
-
export { Tokens, type CreateTokenRequest, type CreateTokenResponse, type TokenCreateParams } from "./tokens.mjs";
|
|
6
|
+
export { Tokens, type Action, type Allow, type ConnectionScope, type CreateTokenRequest, type CreateTokenResponse, type ResourceScope, type RpcScope, type TokenCreateParams, } from "./tokens.mjs";
|
|
7
7
|
export { Uplink, type UplinkCreateTokenResponse } from "./uplink.mjs";
|
|
8
8
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B;OACM,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,GACrC;OACM,EACL,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,4BAA4B,GAClC;OACM,EACL,MAAM,EACN,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,iBAAiB,GACvB;OACM,EAAE,MAAM,EAAE,KAAK,yBAAyB,EAAE"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { Beta } from "./beta/beta.js";
|
|
2
2
|
export { Health, type HealthCheckResponse } from "./health.js";
|
|
3
|
-
export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type
|
|
4
|
-
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type
|
|
3
|
+
export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type NamespaceSetResponse, } from "./namespaces.js";
|
|
4
|
+
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerListResponse, type ServerDeleteResponse, type ServerGetResponse, type ServerListParams, type ServerListResponsesSmitheryPage, } from "./servers/servers.js";
|
|
5
5
|
export { Skills, type SkillListResponse, type SkillListParams, type SkillListResponsesSkillsPage, } from "./skills.js";
|
|
6
|
-
export { Tokens, type CreateTokenRequest, type CreateTokenResponse, type TokenCreateParams } from "./tokens.js";
|
|
6
|
+
export { Tokens, type Action, type Allow, type ConnectionScope, type CreateTokenRequest, type CreateTokenResponse, type ResourceScope, type RpcScope, type TokenCreateParams, } from "./tokens.js";
|
|
7
7
|
export { Uplink, type UplinkCreateTokenResponse } from "./uplink.js";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B;OACM,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,GACrC;OACM,EACL,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,4BAA4B,GAClC;OACM,EACL,MAAM,EACN,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,iBAAiB,GACvB;OACM,EAAE,MAAM,EAAE,KAAK,yBAAyB,EAAE"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,sCAA4D;AAAnD,gGAAA,MAAM,OAAA;AACf,8CAKsB;AAJpB,wGAAA,UAAU,OAAA;AAKZ,gDAU2B;AATzB,kGAAA,OAAO,OAAA;AAUT,sCAKkB;AAJhB,gGAAA,MAAM,OAAA;AAKR,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,sCAA4D;AAAnD,gGAAA,MAAM,OAAA;AACf,8CAKsB;AAJpB,wGAAA,UAAU,OAAA;AAKZ,gDAU2B;AATzB,kGAAA,OAAO,OAAA;AAUT,sCAKkB;AAJhB,gGAAA,MAAM,OAAA;AAKR,sCAUkB;AAThB,gGAAA,MAAM,OAAA;AAUR,sCAAkE;AAAzD,gGAAA,MAAM,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -4,6 +4,6 @@ export { Health } from "./health.mjs";
|
|
|
4
4
|
export { Namespaces, } from "./namespaces.mjs";
|
|
5
5
|
export { Servers, } from "./servers/servers.mjs";
|
|
6
6
|
export { Skills, } from "./skills.mjs";
|
|
7
|
-
export { Tokens } from "./tokens.mjs";
|
|
7
|
+
export { Tokens, } from "./tokens.mjs";
|
|
8
8
|
export { Uplink } from "./uplink.mjs";
|
|
9
9
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAA4B;OACpC,EACL,UAAU,GAIX;OACM,EACL,OAAO,GASR;OACM,EACL,MAAM,GAIP;OACM,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAA4B;OACpC,EACL,UAAU,GAIX;OACM,EACL,OAAO,GASR;OACM,EACL,MAAM,GAIP;OACM,EACL,MAAM,GASP;OACM,EAAE,MAAM,EAAkC"}
|
|
@@ -3,25 +3,19 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class Namespaces extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Create a new namespace owned by the
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const namespace = await client.namespaces.create({
|
|
11
|
-
* name: 'myorg',
|
|
12
|
-
* });
|
|
13
|
-
* ```
|
|
6
|
+
* Create a new namespace with a server-generated human-readable name, owned by the
|
|
7
|
+
* authenticated user
|
|
14
8
|
*/
|
|
15
|
-
create(
|
|
9
|
+
create(options?: RequestOptions): APIPromise<NamespaceCreateResponse>;
|
|
16
10
|
/**
|
|
17
11
|
* Get a list of all namespaces owned by the authenticated user
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const namespaces = await client.namespaces.list();
|
|
22
|
-
* ```
|
|
23
12
|
*/
|
|
24
13
|
list(options?: RequestOptions): APIPromise<NamespaceListResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Create a new namespace with a user-specified name, owned by the authenticated
|
|
16
|
+
* user
|
|
17
|
+
*/
|
|
18
|
+
set(name: string, options?: RequestOptions): APIPromise<NamespaceSetResponse>;
|
|
25
19
|
}
|
|
26
20
|
export interface NamespaceCreateResponse {
|
|
27
21
|
createdAt: string;
|
|
@@ -36,10 +30,11 @@ export declare namespace NamespaceListResponse {
|
|
|
36
30
|
name: string;
|
|
37
31
|
}
|
|
38
32
|
}
|
|
39
|
-
export interface
|
|
33
|
+
export interface NamespaceSetResponse {
|
|
34
|
+
createdAt: string;
|
|
40
35
|
name: string;
|
|
41
36
|
}
|
|
42
37
|
export declare namespace Namespaces {
|
|
43
|
-
export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type
|
|
38
|
+
export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type NamespaceSetResponse as NamespaceSetResponse, };
|
|
44
39
|
}
|
|
45
40
|
//# sourceMappingURL=namespaces.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.d.mts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;
|
|
1
|
+
{"version":3,"file":"namespaces.d.mts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIrE;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjE;;;OAGG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG9E;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,KAAK,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;CACpD;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,SAAS;QACxB,SAAS,EAAE,MAAM,CAAC;QAElB,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|