@smithery/api 0.29.0 → 0.30.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 +9 -0
- package/package.json +1 -1
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/connect/connect.d.mts +0 -4
- package/resources/beta/connect/connect.d.mts.map +1 -1
- package/resources/beta/connect/connect.d.ts +0 -4
- package/resources/beta/connect/connect.d.ts.map +1 -1
- package/resources/beta/connect/connect.js +0 -4
- package/resources/beta/connect/connect.js.map +1 -1
- package/resources/beta/connect/connect.mjs +0 -4
- package/resources/beta/connect/connect.mjs.map +1 -1
- package/resources/beta/connect/index.d.mts +0 -1
- package/resources/beta/connect/index.d.mts.map +1 -1
- package/resources/beta/connect/index.d.ts +0 -1
- package/resources/beta/connect/index.d.ts.map +1 -1
- package/resources/beta/connect/index.js +1 -3
- package/resources/beta/connect/index.js.map +1 -1
- package/resources/beta/connect/index.mjs +0 -1
- package/resources/beta/connect/index.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/tools.d.mts +43 -77
- package/resources/beta/tools.d.mts.map +1 -1
- package/resources/beta/tools.d.ts +43 -77
- package/resources/beta/tools.d.ts.map +1 -1
- package/resources/beta/tools.js +9 -11
- package/resources/beta/tools.js.map +1 -1
- package/resources/beta/tools.mjs +9 -11
- package/resources/beta/tools.mjs.map +1 -1
- package/resources/namespaces/index.d.mts +1 -1
- package/resources/namespaces/index.d.mts.map +1 -1
- package/resources/namespaces/index.d.ts +1 -1
- package/resources/namespaces/index.d.ts.map +1 -1
- package/resources/namespaces/index.js.map +1 -1
- package/resources/namespaces/index.mjs +1 -1
- package/resources/namespaces/index.mjs.map +1 -1
- package/resources/namespaces/namespaces.d.mts +2 -2
- package/resources/namespaces/namespaces.d.mts.map +1 -1
- package/resources/namespaces/namespaces.d.ts +2 -2
- package/resources/namespaces/namespaces.d.ts.map +1 -1
- package/resources/namespaces/namespaces.js.map +1 -1
- package/resources/namespaces/namespaces.mjs.map +1 -1
- package/resources/namespaces/servers.d.mts +7 -11
- package/resources/namespaces/servers.d.mts.map +1 -1
- package/resources/namespaces/servers.d.ts +7 -11
- package/resources/namespaces/servers.d.ts.map +1 -1
- package/resources/namespaces/servers.js +4 -4
- package/resources/namespaces/servers.mjs +4 -4
- package/resources/servers/deployments.d.mts +3 -3
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +3 -3
- package/resources/servers/deployments.d.ts.map +1 -1
- package/src/resources/beta/beta.ts +3 -4
- package/src/resources/beta/connect/connect.ts +0 -10
- package/src/resources/beta/connect/index.ts +0 -1
- package/src/resources/beta/index.ts +1 -1
- package/src/resources/beta/tools.ts +48 -109
- package/src/resources/namespaces/index.ts +1 -6
- package/src/resources/namespaces/namespaces.ts +2 -3
- package/src/resources/namespaces/servers.ts +7 -17
- package/src/resources/servers/deployments.ts +5 -5
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/beta/connect/tools.d.mts +0 -47
- package/resources/beta/connect/tools.d.mts.map +0 -1
- package/resources/beta/connect/tools.d.ts +0 -47
- package/resources/beta/connect/tools.d.ts.map +0 -1
- package/resources/beta/connect/tools.js +0 -25
- package/resources/beta/connect/tools.js.map +0 -1
- package/resources/beta/connect/tools.mjs +0 -21
- package/resources/beta/connect/tools.mjs.map +0 -1
- package/src/resources/beta/connect/tools.ts +0 -70
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.30.0 (2026-01-28)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.29.0...v0.30.0](https://github.com/smithery-ai/typescript-api/compare/v0.29.0...v0.30.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([ba1a16a](https://github.com/smithery-ai/typescript-api/commit/ba1a16afff66cd872dcde2c7bee3ea1e763ba33b))
|
|
10
|
+
* **api:** api update ([63bdd80](https://github.com/smithery-ai/typescript-api/commit/63bdd802d8b6438875adac27775e3558a1ea4082))
|
|
11
|
+
|
|
3
12
|
## 0.29.0 (2026-01-27)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v0.27.0...v0.29.0](https://github.com/smithery-ai/typescript-api/compare/v0.27.0...v0.29.0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as ToolsAPI from "./tools.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { ToolSearchParams, ToolSearchResponse, Tools } from "./tools.mjs";
|
|
4
4
|
import * as ConnectAPI from "./connect/connect.mjs";
|
|
5
5
|
import { Connect } from "./connect/connect.mjs";
|
|
6
6
|
export declare class Beta extends APIResource {
|
|
@@ -8,7 +8,7 @@ export declare class Beta extends APIResource {
|
|
|
8
8
|
connect: ConnectAPI.Connect;
|
|
9
9
|
}
|
|
10
10
|
export declare namespace Beta {
|
|
11
|
-
export { Tools as Tools, type
|
|
11
|
+
export { Tools as Tools, type ToolSearchResponse as ToolSearchResponse, type ToolSearchParams as ToolSearchParams, };
|
|
12
12
|
export { Connect as Connect };
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=beta.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beta.d.mts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,
|
|
1
|
+
{"version":3,"file":"beta.d.mts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,EAAE;OAC/C,KAAK,UAAU;OACf,EAAE,OAAO,EAAE;AAElB,qBAAa,IAAK,SAAQ,WAAW;IACnC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAKD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC;CAC/B"}
|
package/resources/beta/beta.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as ToolsAPI from "./tools.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ToolSearchParams, ToolSearchResponse, Tools } from "./tools.js";
|
|
4
4
|
import * as ConnectAPI from "./connect/connect.js";
|
|
5
5
|
import { Connect } from "./connect/connect.js";
|
|
6
6
|
export declare class Beta extends APIResource {
|
|
@@ -8,7 +8,7 @@ export declare class Beta extends APIResource {
|
|
|
8
8
|
connect: ConnectAPI.Connect;
|
|
9
9
|
}
|
|
10
10
|
export declare namespace Beta {
|
|
11
|
-
export { Tools as Tools, type
|
|
11
|
+
export { Tools as Tools, type ToolSearchResponse as ToolSearchResponse, type ToolSearchParams as ToolSearchParams, };
|
|
12
12
|
export { Connect as Connect };
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=beta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beta.d.ts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,
|
|
1
|
+
{"version":3,"file":"beta.d.ts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,EAAE;OAC/C,KAAK,UAAU;OACf,EAAE,OAAO,EAAE;AAElB,qBAAa,IAAK,SAAQ,WAAW;IACnC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAKD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beta.js","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"beta.js","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAAsE;AACtE,yEAAgD;AAChD,kDAA4C;AAE5C,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAHD,oBAGC;AAED,IAAI,CAAC,KAAK,GAAG,aAAK,CAAC;AACnB,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beta.mjs","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,
|
|
1
|
+
{"version":3,"file":"beta.mjs","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAwC,KAAK,EAAE;OAC/C,KAAK,UAAU;OACf,EAAE,OAAO,EAAE;AAElB,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAED,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -3,15 +3,11 @@ import * as ConnectionsAPI from "./connections.mjs";
|
|
|
3
3
|
import { Connection, ConnectionCreateParams, ConnectionDeleteParams, ConnectionDeleteResponse, ConnectionGetParams, ConnectionListParams, ConnectionSetParams, Connections, ConnectionsListResponse, CreateConnectionRequest } from "./connections.mjs";
|
|
4
4
|
import * as McpAPI from "./mcp.mjs";
|
|
5
5
|
import { JsonRpcRequest, JsonRpcResponse, Mcp, McpCallParams } from "./mcp.mjs";
|
|
6
|
-
import * as ToolsAPI from "./tools.mjs";
|
|
7
|
-
import { ToolSearchParams, ToolSearchResponse, Tools } from "./tools.mjs";
|
|
8
6
|
export declare class Connect extends APIResource {
|
|
9
|
-
tools: ToolsAPI.Tools;
|
|
10
7
|
connections: ConnectionsAPI.Connections;
|
|
11
8
|
mcp: McpAPI.Mcp;
|
|
12
9
|
}
|
|
13
10
|
export declare namespace Connect {
|
|
14
|
-
export { Tools as Tools, type ToolSearchResponse as ToolSearchResponse, type ToolSearchParams as ToolSearchParams, };
|
|
15
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 ConnectionListParams as ConnectionListParams, type ConnectionDeleteParams as ConnectionDeleteParams, type ConnectionGetParams as ConnectionGetParams, type ConnectionSetParams as ConnectionSetParams, };
|
|
16
12
|
export { Mcp as Mcp, type JsonRpcRequest as JsonRpcRequest, type JsonRpcResponse as JsonRpcResponse, type McpCallParams as McpCallParams, };
|
|
17
13
|
}
|
|
@@ -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,EACL,UAAU,EACV,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,uBAAuB,EACxB;OACM,KAAK,MAAM;OACX,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,EAAE,aAAa,EAAE;
|
|
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,mBAAmB,EACnB,oBAAoB,EACpB,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,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -3,15 +3,11 @@ import * as ConnectionsAPI from "./connections.js";
|
|
|
3
3
|
import { Connection, ConnectionCreateParams, ConnectionDeleteParams, ConnectionDeleteResponse, ConnectionGetParams, ConnectionListParams, ConnectionSetParams, Connections, ConnectionsListResponse, CreateConnectionRequest } from "./connections.js";
|
|
4
4
|
import * as McpAPI from "./mcp.js";
|
|
5
5
|
import { JsonRpcRequest, JsonRpcResponse, Mcp, McpCallParams } from "./mcp.js";
|
|
6
|
-
import * as ToolsAPI from "./tools.js";
|
|
7
|
-
import { ToolSearchParams, ToolSearchResponse, Tools } from "./tools.js";
|
|
8
6
|
export declare class Connect extends APIResource {
|
|
9
|
-
tools: ToolsAPI.Tools;
|
|
10
7
|
connections: ConnectionsAPI.Connections;
|
|
11
8
|
mcp: McpAPI.Mcp;
|
|
12
9
|
}
|
|
13
10
|
export declare namespace Connect {
|
|
14
|
-
export { Tools as Tools, type ToolSearchResponse as ToolSearchResponse, type ToolSearchParams as ToolSearchParams, };
|
|
15
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 ConnectionListParams as ConnectionListParams, type ConnectionDeleteParams as ConnectionDeleteParams, type ConnectionGetParams as ConnectionGetParams, type ConnectionSetParams as ConnectionSetParams, };
|
|
16
12
|
export { Mcp as Mcp, type JsonRpcRequest as JsonRpcRequest, type JsonRpcResponse as JsonRpcResponse, type McpCallParams as McpCallParams, };
|
|
17
13
|
}
|
|
@@ -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,EACL,UAAU,EACV,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,uBAAuB,EACxB;OACM,KAAK,MAAM;OACX,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,EAAE,aAAa,EAAE;
|
|
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,mBAAmB,EACnB,oBAAoB,EACpB,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,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -8,18 +8,14 @@ const ConnectionsAPI = tslib_1.__importStar(require("./connections.js"));
|
|
|
8
8
|
const connections_1 = require("./connections.js");
|
|
9
9
|
const McpAPI = tslib_1.__importStar(require("./mcp.js"));
|
|
10
10
|
const mcp_1 = require("./mcp.js");
|
|
11
|
-
const ToolsAPI = tslib_1.__importStar(require("./tools.js"));
|
|
12
|
-
const tools_1 = require("./tools.js");
|
|
13
11
|
class Connect extends resource_1.APIResource {
|
|
14
12
|
constructor() {
|
|
15
13
|
super(...arguments);
|
|
16
|
-
this.tools = new ToolsAPI.Tools(this._client);
|
|
17
14
|
this.connections = new ConnectionsAPI.Connections(this._client);
|
|
18
15
|
this.mcp = new McpAPI.Mcp(this._client);
|
|
19
16
|
}
|
|
20
17
|
}
|
|
21
18
|
exports.Connect = Connect;
|
|
22
|
-
Connect.Tools = tools_1.Tools;
|
|
23
19
|
Connect.Connections = connections_1.Connections;
|
|
24
20
|
Connect.Mcp = mcp_1.Mcp;
|
|
25
21
|
//# sourceMappingURL=connect.js.map
|
|
@@ -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,kDAWuB;AACvB,yDAAgC;AAChC,kCAA4E;
|
|
1
|
+
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/connect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,yEAAgD;AAChD,kDAWuB;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"}
|
|
@@ -4,17 +4,13 @@ import * as ConnectionsAPI from "./connections.mjs";
|
|
|
4
4
|
import { Connections, } from "./connections.mjs";
|
|
5
5
|
import * as McpAPI from "./mcp.mjs";
|
|
6
6
|
import { Mcp } from "./mcp.mjs";
|
|
7
|
-
import * as ToolsAPI from "./tools.mjs";
|
|
8
|
-
import { Tools } from "./tools.mjs";
|
|
9
7
|
export class Connect extends APIResource {
|
|
10
8
|
constructor() {
|
|
11
9
|
super(...arguments);
|
|
12
|
-
this.tools = new ToolsAPI.Tools(this._client);
|
|
13
10
|
this.connections = new ConnectionsAPI.Connections(this._client);
|
|
14
11
|
this.mcp = new McpAPI.Mcp(this._client);
|
|
15
12
|
}
|
|
16
13
|
}
|
|
17
|
-
Connect.Tools = Tools;
|
|
18
14
|
Connect.Connections = Connections;
|
|
19
15
|
Connect.Mcp = Mcp;
|
|
20
16
|
//# sourceMappingURL=connect.mjs.map
|
|
@@ -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,EAQL,WAAW,GAGZ;OACM,KAAK,MAAM;OACX,EAAmC,GAAG,EAAiB;
|
|
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,EAQL,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,4 @@
|
|
|
1
1
|
export { Connect } from "./connect.mjs";
|
|
2
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 { Mcp, type JsonRpcRequest, type JsonRpcResponse, type McpCallParams } from "./mcp.mjs";
|
|
4
|
-
export { Tools, type ToolSearchResponse, type ToolSearchParams } from "./tools.mjs";
|
|
5
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,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
|
+
{"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,5 +1,4 @@
|
|
|
1
1
|
export { Connect } from "./connect.js";
|
|
2
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 { Mcp, type JsonRpcRequest, type JsonRpcResponse, type McpCallParams } from "./mcp.js";
|
|
4
|
-
export { Tools, type ToolSearchResponse, type ToolSearchParams } from "./tools.js";
|
|
5
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,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
|
+
{"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,13 +1,11 @@
|
|
|
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.
|
|
4
|
+
exports.Mcp = 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 mcp_1 = require("./mcp.js");
|
|
10
10
|
Object.defineProperty(exports, "Mcp", { enumerable: true, get: function () { return mcp_1.Mcp; } });
|
|
11
|
-
var tools_1 = require("./tools.js");
|
|
12
|
-
Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } });
|
|
13
11
|
//# 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,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,gCAA2F;AAAlF,0FAAA,GAAG,OAAA
|
|
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,GAUZ;OACM,EAAE,GAAG,EAAiE
|
|
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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Beta } from "./beta.mjs";
|
|
2
2
|
export { Connect } from "./connect/index.mjs";
|
|
3
|
-
export { Tools, type
|
|
3
|
+
export { Tools, type ToolSearchResponse, type ToolSearchParams } from "./tools.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,OAAO,EAAE;OACX,EAAE,KAAK,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,OAAO,EAAE;OACX,EAAE,KAAK,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Beta } from "./beta.js";
|
|
2
2
|
export { Connect } from "./connect/index.js";
|
|
3
|
-
export { Tools, type
|
|
3
|
+
export { Tools, type ToolSearchResponse, type ToolSearchParams } from "./tools.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,OAAO,EAAE;OACX,EAAE,KAAK,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,OAAO,EAAE;OACX,EAAE,KAAK,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,4CAA0C;AAAjC,gGAAA,OAAO,OAAA;AAChB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,4CAA0C;AAAjC,gGAAA,OAAO,OAAA;AAChB,oCAAgF;AAAvE,8FAAA,KAAK,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,OAAO,EAAE;OACX,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,OAAO,EAAE;OACX,EAAE,KAAK,EAAkD"}
|
|
@@ -1,98 +1,64 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
export declare class Tools extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Search or list indexed tools across all connections in a namespace. If 'q' query
|
|
7
|
+
* parameter is omitted, returns all tools. Filter by connectionId or server URL.
|
|
8
|
+
* Metadata constraints from service tokens are applied automatically.
|
|
8
9
|
*
|
|
9
10
|
* @example
|
|
10
11
|
* ```ts
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* )) {
|
|
15
|
-
* // ...
|
|
16
|
-
* }
|
|
12
|
+
* const response = await client.beta.tools.search(
|
|
13
|
+
* 'namespace',
|
|
14
|
+
* );
|
|
17
15
|
* ```
|
|
18
16
|
*/
|
|
19
|
-
|
|
17
|
+
search(namespace: string, query?: ToolSearchParams | null | undefined, options?: RequestOptions): APIPromise<ToolSearchResponse>;
|
|
20
18
|
}
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
server: ToolListResponse.Server;
|
|
25
|
-
tool: ToolListResponse.Tool;
|
|
19
|
+
export interface ToolSearchResponse {
|
|
20
|
+
nextCursor: string | null;
|
|
21
|
+
tools: Array<ToolSearchResponse.Tool>;
|
|
26
22
|
}
|
|
27
|
-
export declare namespace
|
|
28
|
-
interface Server {
|
|
29
|
-
id: string;
|
|
30
|
-
displayName: string;
|
|
31
|
-
iconUrl: string | null;
|
|
32
|
-
isDeployed: boolean;
|
|
33
|
-
qualifiedName: string;
|
|
34
|
-
verified: boolean;
|
|
35
|
-
}
|
|
23
|
+
export declare namespace ToolSearchResponse {
|
|
36
24
|
interface Tool {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
-
annotations?: Tool.Annotations;
|
|
43
|
-
description?: string;
|
|
44
|
-
execution?: Tool.Execution;
|
|
45
|
-
icons?: Array<Tool.Icon>;
|
|
46
|
-
outputSchema?: Tool.OutputSchema;
|
|
47
|
-
title?: string;
|
|
25
|
+
connectionId: string;
|
|
26
|
+
serverUrl: string;
|
|
27
|
+
tool: Tool.Tool;
|
|
28
|
+
score?: number;
|
|
48
29
|
}
|
|
49
30
|
namespace Tool {
|
|
50
|
-
interface
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
[key: string]: unknown;
|
|
54
|
-
};
|
|
55
|
-
required?: Array<string>;
|
|
56
|
-
[k: string]: unknown;
|
|
57
|
-
}
|
|
58
|
-
interface Annotations {
|
|
59
|
-
destructiveHint?: boolean;
|
|
60
|
-
idempotentHint?: boolean;
|
|
61
|
-
openWorldHint?: boolean;
|
|
62
|
-
readOnlyHint?: boolean;
|
|
63
|
-
title?: string;
|
|
64
|
-
}
|
|
65
|
-
interface Execution {
|
|
66
|
-
taskSupport?: 'required' | 'optional' | 'forbidden';
|
|
67
|
-
}
|
|
68
|
-
interface Icon {
|
|
69
|
-
src: string;
|
|
70
|
-
mimeType?: string;
|
|
71
|
-
sizes?: Array<string>;
|
|
72
|
-
theme?: 'light' | 'dark';
|
|
73
|
-
}
|
|
74
|
-
interface OutputSchema {
|
|
75
|
-
type: 'object';
|
|
76
|
-
properties?: {
|
|
77
|
-
[key: string]: unknown;
|
|
78
|
-
};
|
|
79
|
-
required?: Array<string>;
|
|
80
|
-
[k: string]: unknown;
|
|
31
|
+
interface Tool {
|
|
32
|
+
name: string;
|
|
33
|
+
description?: string;
|
|
81
34
|
}
|
|
82
35
|
}
|
|
83
36
|
}
|
|
84
|
-
export interface
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
37
|
+
export interface ToolSearchParams {
|
|
38
|
+
/**
|
|
39
|
+
* Filter by connection ID
|
|
40
|
+
*/
|
|
41
|
+
connectionId?: string;
|
|
42
|
+
cursor?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Exclude tools from this connection
|
|
45
|
+
*/
|
|
46
|
+
excludeConnectionId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Exclude tools from this server URL
|
|
49
|
+
*/
|
|
50
|
+
excludeServer?: string;
|
|
51
|
+
limit?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Search query (optional - omit to list all tools)
|
|
54
|
+
*/
|
|
55
|
+
q?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Filter by server URL
|
|
58
|
+
*/
|
|
59
|
+
server?: string;
|
|
94
60
|
}
|
|
95
61
|
export declare namespace Tools {
|
|
96
|
-
export { type
|
|
62
|
+
export { type ToolSearchResponse as ToolSearchResponse, type ToolSearchParams as ToolSearchParams };
|
|
97
63
|
}
|
|
98
64
|
//# sourceMappingURL=tools.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.mts","sourceRoot":"","sources":["../../src/resources/beta/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,
|
|
1
|
+
{"version":3,"file":"tools.d.mts","sourceRoot":"","sources":["../../src/resources/beta/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,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;SACtB;KACF;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,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"}
|
|
@@ -1,98 +1,64 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import {
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Tools extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Search or list indexed tools across all connections in a namespace. If 'q' query
|
|
7
|
+
* parameter is omitted, returns all tools. Filter by connectionId or server URL.
|
|
8
|
+
* Metadata constraints from service tokens are applied automatically.
|
|
8
9
|
*
|
|
9
10
|
* @example
|
|
10
11
|
* ```ts
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* )) {
|
|
15
|
-
* // ...
|
|
16
|
-
* }
|
|
12
|
+
* const response = await client.beta.tools.search(
|
|
13
|
+
* 'namespace',
|
|
14
|
+
* );
|
|
17
15
|
* ```
|
|
18
16
|
*/
|
|
19
|
-
|
|
17
|
+
search(namespace: string, query?: ToolSearchParams | null | undefined, options?: RequestOptions): APIPromise<ToolSearchResponse>;
|
|
20
18
|
}
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
server: ToolListResponse.Server;
|
|
25
|
-
tool: ToolListResponse.Tool;
|
|
19
|
+
export interface ToolSearchResponse {
|
|
20
|
+
nextCursor: string | null;
|
|
21
|
+
tools: Array<ToolSearchResponse.Tool>;
|
|
26
22
|
}
|
|
27
|
-
export declare namespace
|
|
28
|
-
interface Server {
|
|
29
|
-
id: string;
|
|
30
|
-
displayName: string;
|
|
31
|
-
iconUrl: string | null;
|
|
32
|
-
isDeployed: boolean;
|
|
33
|
-
qualifiedName: string;
|
|
34
|
-
verified: boolean;
|
|
35
|
-
}
|
|
23
|
+
export declare namespace ToolSearchResponse {
|
|
36
24
|
interface Tool {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
-
annotations?: Tool.Annotations;
|
|
43
|
-
description?: string;
|
|
44
|
-
execution?: Tool.Execution;
|
|
45
|
-
icons?: Array<Tool.Icon>;
|
|
46
|
-
outputSchema?: Tool.OutputSchema;
|
|
47
|
-
title?: string;
|
|
25
|
+
connectionId: string;
|
|
26
|
+
serverUrl: string;
|
|
27
|
+
tool: Tool.Tool;
|
|
28
|
+
score?: number;
|
|
48
29
|
}
|
|
49
30
|
namespace Tool {
|
|
50
|
-
interface
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
[key: string]: unknown;
|
|
54
|
-
};
|
|
55
|
-
required?: Array<string>;
|
|
56
|
-
[k: string]: unknown;
|
|
57
|
-
}
|
|
58
|
-
interface Annotations {
|
|
59
|
-
destructiveHint?: boolean;
|
|
60
|
-
idempotentHint?: boolean;
|
|
61
|
-
openWorldHint?: boolean;
|
|
62
|
-
readOnlyHint?: boolean;
|
|
63
|
-
title?: string;
|
|
64
|
-
}
|
|
65
|
-
interface Execution {
|
|
66
|
-
taskSupport?: 'required' | 'optional' | 'forbidden';
|
|
67
|
-
}
|
|
68
|
-
interface Icon {
|
|
69
|
-
src: string;
|
|
70
|
-
mimeType?: string;
|
|
71
|
-
sizes?: Array<string>;
|
|
72
|
-
theme?: 'light' | 'dark';
|
|
73
|
-
}
|
|
74
|
-
interface OutputSchema {
|
|
75
|
-
type: 'object';
|
|
76
|
-
properties?: {
|
|
77
|
-
[key: string]: unknown;
|
|
78
|
-
};
|
|
79
|
-
required?: Array<string>;
|
|
80
|
-
[k: string]: unknown;
|
|
31
|
+
interface Tool {
|
|
32
|
+
name: string;
|
|
33
|
+
description?: string;
|
|
81
34
|
}
|
|
82
35
|
}
|
|
83
36
|
}
|
|
84
|
-
export interface
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
37
|
+
export interface ToolSearchParams {
|
|
38
|
+
/**
|
|
39
|
+
* Filter by connection ID
|
|
40
|
+
*/
|
|
41
|
+
connectionId?: string;
|
|
42
|
+
cursor?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Exclude tools from this connection
|
|
45
|
+
*/
|
|
46
|
+
excludeConnectionId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Exclude tools from this server URL
|
|
49
|
+
*/
|
|
50
|
+
excludeServer?: string;
|
|
51
|
+
limit?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Search query (optional - omit to list all tools)
|
|
54
|
+
*/
|
|
55
|
+
q?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Filter by server URL
|
|
58
|
+
*/
|
|
59
|
+
server?: string;
|
|
94
60
|
}
|
|
95
61
|
export declare namespace Tools {
|
|
96
|
-
export { type
|
|
62
|
+
export { type ToolSearchResponse as ToolSearchResponse, type ToolSearchParams as ToolSearchParams };
|
|
97
63
|
}
|
|
98
64
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/beta/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/beta/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,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;SACtB;KACF;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,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"}
|