@smithery/api 0.24.0 → 0.26.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 +9 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -7
- 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/core/pagination.d.mts +14 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +14 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +25 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +23 -0
- package/core/pagination.mjs.map +1 -1
- package/lib/mcp-transport.d.mts +20 -15
- package/lib/mcp-transport.d.mts.map +1 -1
- package/lib/mcp-transport.d.ts +20 -15
- package/lib/mcp-transport.d.ts.map +1 -1
- package/lib/mcp-transport.js +39 -19
- package/lib/mcp-transport.js.map +1 -1
- package/lib/mcp-transport.mjs +37 -17
- package/lib/mcp-transport.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/connect/connect.d.mts +6 -2
- package/resources/beta/connect/connect.d.mts.map +1 -1
- package/resources/beta/connect/connect.d.ts +6 -2
- package/resources/beta/connect/connect.d.ts.map +1 -1
- package/resources/beta/connect/connect.js +4 -0
- package/resources/beta/connect/connect.js.map +1 -1
- package/resources/beta/connect/connect.mjs +4 -0
- 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 +2 -1
- package/resources/beta/connect/index.d.mts.map +1 -1
- package/resources/beta/connect/index.d.ts +2 -1
- package/resources/beta/connect/index.d.ts.map +1 -1
- package/resources/beta/connect/index.js +3 -1
- package/resources/beta/connect/index.js.map +1 -1
- package/resources/beta/connect/index.mjs +1 -0
- package/resources/beta/connect/index.mjs.map +1 -1
- package/resources/beta/connect/tools.d.mts +51 -0
- package/resources/beta/connect/tools.d.mts.map +1 -0
- package/resources/beta/connect/tools.d.ts +51 -0
- package/resources/beta/connect/tools.d.ts.map +1 -0
- package/resources/beta/connect/tools.js +26 -0
- package/resources/beta/connect/tools.js.map +1 -0
- package/resources/beta/connect/tools.mjs +22 -0
- package/resources/beta/connect/tools.mjs.map +1 -0
- 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 +28 -5
- package/src/core/pagination.ts +47 -0
- package/src/lib/mcp-transport.ts +47 -24
- package/src/resources/beta/connect/connect.ts +14 -2
- package/src/resources/beta/connect/connections.ts +53 -35
- package/src/resources/beta/connect/index.ts +3 -1
- package/src/resources/beta/connect/tools.ts +73 -0
- 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,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.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;;;;;;;;;OASG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc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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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AE,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"}
|
|
@@ -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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G,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,SAA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;;;;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,5 @@
|
|
|
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
|
+
export { Tools, type ToolSearchResponse, type ToolSearchParams } from "./tools.mjs";
|
|
4
5
|
//# 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;OACtE,EAAE,KAAK,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
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
|
+
export { Tools, type ToolSearchResponse, type ToolSearchParams } from "./tools.js";
|
|
4
5
|
//# 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;OACtE,EAAE,KAAK,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE"}
|
|
@@ -1,11 +1,13 @@
|
|
|
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.Rpc = exports.Connections = exports.Connect = void 0;
|
|
4
|
+
exports.Tools = exports.Rpc = exports.Connections = exports.Connect = void 0;
|
|
5
5
|
var connect_1 = require("./connect.js");
|
|
6
6
|
Object.defineProperty(exports, "Connect", { enumerable: true, get: function () { return connect_1.Connect; } });
|
|
7
7
|
var connections_1 = require("./connections.js");
|
|
8
8
|
Object.defineProperty(exports, "Connections", { enumerable: true, get: function () { return connections_1.Connections; } });
|
|
9
9
|
var rpc_1 = require("./rpc.js");
|
|
10
10
|
Object.defineProperty(exports, "Rpc", { enumerable: true, get: function () { return rpc_1.Rpc; } });
|
|
11
|
+
var tools_1 = require("./tools.js");
|
|
12
|
+
Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } });
|
|
11
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -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;AACZ,oCAAgF;AAAvE,8FAAA,KAAK,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;OACtE,EAAE,KAAK,EAAkD"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
export declare class Tools extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Search indexed tools across all connections in a namespace. Filter by
|
|
7
|
+
* connectionId or server URL. Metadata constraints from service tokens are applied
|
|
8
|
+
* automatically.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const response = await client.beta.connect.tools.search(
|
|
13
|
+
* 'namespace',
|
|
14
|
+
* { q: 'x' },
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
search(namespace: string, query: ToolSearchParams, options?: RequestOptions): APIPromise<ToolSearchResponse>;
|
|
19
|
+
}
|
|
20
|
+
export interface ToolSearchResponse {
|
|
21
|
+
nextCursor: string | null;
|
|
22
|
+
tools: Array<ToolSearchResponse.Tool>;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace ToolSearchResponse {
|
|
25
|
+
interface Tool {
|
|
26
|
+
connectionId: string;
|
|
27
|
+
serverUrl: string;
|
|
28
|
+
tool: Tool.Tool;
|
|
29
|
+
score?: number;
|
|
30
|
+
}
|
|
31
|
+
namespace Tool {
|
|
32
|
+
interface Tool {
|
|
33
|
+
name: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
inputSchema?: {
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export interface ToolSearchParams {
|
|
42
|
+
q: string;
|
|
43
|
+
connectionId?: string;
|
|
44
|
+
cursor?: string;
|
|
45
|
+
limit?: number;
|
|
46
|
+
server?: string;
|
|
47
|
+
}
|
|
48
|
+
export declare namespace Tools {
|
|
49
|
+
export { type ToolSearchResponse as ToolSearchResponse, type ToolSearchParams as ToolSearchParams };
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=tools.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,gBAAgB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAGlC;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB,YAAY,EAAE,MAAM,CAAC;QAErB,SAAS,EAAE,MAAM,CAAC;QAElB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,IAAI;YACnB,IAAI,EAAE,MAAM,CAAC;YAEb,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB,WAAW,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;SAC1C;KACF;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,EAAE,MAAM,CAAC;IAEV,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
export declare class Tools extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Search indexed tools across all connections in a namespace. Filter by
|
|
7
|
+
* connectionId or server URL. Metadata constraints from service tokens are applied
|
|
8
|
+
* automatically.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const response = await client.beta.connect.tools.search(
|
|
13
|
+
* 'namespace',
|
|
14
|
+
* { q: 'x' },
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
search(namespace: string, query: ToolSearchParams, options?: RequestOptions): APIPromise<ToolSearchResponse>;
|
|
19
|
+
}
|
|
20
|
+
export interface ToolSearchResponse {
|
|
21
|
+
nextCursor: string | null;
|
|
22
|
+
tools: Array<ToolSearchResponse.Tool>;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace ToolSearchResponse {
|
|
25
|
+
interface Tool {
|
|
26
|
+
connectionId: string;
|
|
27
|
+
serverUrl: string;
|
|
28
|
+
tool: Tool.Tool;
|
|
29
|
+
score?: number;
|
|
30
|
+
}
|
|
31
|
+
namespace Tool {
|
|
32
|
+
interface Tool {
|
|
33
|
+
name: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
inputSchema?: {
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export interface ToolSearchParams {
|
|
42
|
+
q: string;
|
|
43
|
+
connectionId?: string;
|
|
44
|
+
cursor?: string;
|
|
45
|
+
limit?: number;
|
|
46
|
+
server?: string;
|
|
47
|
+
}
|
|
48
|
+
export declare namespace Tools {
|
|
49
|
+
export { type ToolSearchResponse as ToolSearchResponse, type ToolSearchParams as ToolSearchParams };
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,gBAAgB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAGlC;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB,YAAY,EAAE,MAAM,CAAC;QAErB,SAAS,EAAE,MAAM,CAAC;QAElB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,IAAI;YACnB,IAAI,EAAE,MAAM,CAAC;YAEb,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB,WAAW,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;SAC1C;KACF;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,EAAE,MAAM,CAAC;IAEV,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Tools = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
class Tools extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Search indexed tools across all connections in a namespace. Filter by
|
|
10
|
+
* connectionId or server URL. Metadata constraints from service tokens are applied
|
|
11
|
+
* automatically.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const response = await client.beta.connect.tools.search(
|
|
16
|
+
* 'namespace',
|
|
17
|
+
* { q: 'x' },
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
search(namespace, query, options) {
|
|
22
|
+
return this._client.get((0, path_1.path) `/connect/tools/${namespace}`, { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Tools = Tools;
|
|
26
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,SAAiB,EACjB,KAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AArBD,sBAqBC"}
|