@smithery/api 0.27.0 → 0.29.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 +20 -0
- package/README.md +10 -5
- package/client.d.mts +5 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -5
- package/client.d.ts.map +1 -1
- package/client.js +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 +57 -69
- package/lib/mcp-transport.d.mts.map +1 -1
- package/lib/mcp-transport.d.ts +57 -69
- package/lib/mcp-transport.d.ts.map +1 -1
- package/lib/mcp-transport.js +106 -204
- package/lib/mcp-transport.js.map +1 -1
- package/lib/mcp-transport.mjs +103 -202
- package/lib/mcp-transport.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/connect/connect.d.mts +4 -4
- package/resources/beta/connect/connect.d.ts +4 -4
- package/resources/beta/connect/connect.js +4 -4
- package/resources/beta/connect/connect.mjs +4 -4
- package/resources/beta/connect/connections.d.mts +5 -1
- package/resources/beta/connect/connections.d.mts.map +1 -1
- package/resources/beta/connect/connections.d.ts +5 -1
- package/resources/beta/connect/connections.d.ts.map +1 -1
- package/resources/beta/connect/index.d.mts +1 -1
- package/resources/beta/connect/index.d.ts +1 -1
- package/resources/beta/connect/index.js +3 -3
- package/resources/beta/connect/index.mjs +1 -1
- package/resources/beta/connect/{rpc.d.mts → mcp.d.mts} +9 -9
- package/resources/beta/connect/{rpc.d.mts.map → mcp.d.mts.map} +1 -1
- package/resources/beta/connect/{rpc.d.ts → mcp.d.ts} +9 -9
- package/resources/beta/connect/{rpc.d.ts.map → mcp.d.ts.map} +1 -1
- package/resources/beta/connect/{rpc.js → mcp.js} +8 -8
- package/resources/beta/connect/{rpc.js.map → mcp.js.map} +1 -1
- package/resources/beta/connect/{rpc.mjs → mcp.mjs} +6 -6
- package/resources/beta/connect/{rpc.mjs.map → mcp.mjs.map} +1 -1
- package/resources/beta/connect/tools.d.mts +0 -3
- package/resources/beta/connect/tools.d.mts.map +1 -1
- package/resources/beta/connect/tools.d.ts +0 -3
- package/resources/beta/connect/tools.d.ts.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 +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/index.d.mts +3 -0
- package/resources/namespaces/index.d.mts.map +1 -0
- package/resources/namespaces/index.d.ts +3 -0
- package/resources/namespaces/index.d.ts.map +1 -0
- package/resources/namespaces/index.js +9 -0
- package/resources/namespaces/index.js.map +1 -0
- package/resources/namespaces/index.mjs +4 -0
- package/resources/namespaces/index.mjs.map +1 -0
- package/resources/namespaces/namespaces.d.mts +60 -0
- package/resources/namespaces/namespaces.d.mts.map +1 -0
- package/resources/namespaces/namespaces.d.ts +60 -0
- package/resources/namespaces/namespaces.d.ts.map +1 -0
- package/resources/namespaces/namespaces.js +54 -0
- package/resources/namespaces/namespaces.js.map +1 -0
- package/resources/namespaces/namespaces.mjs +49 -0
- package/resources/namespaces/namespaces.mjs.map +1 -0
- package/resources/namespaces/servers.d.mts +46 -0
- package/resources/namespaces/servers.d.mts.map +1 -0
- package/resources/namespaces/servers.d.ts +46 -0
- package/resources/namespaces/servers.d.ts.map +1 -0
- package/resources/namespaces/servers.js +25 -0
- package/resources/namespaces/servers.js.map +1 -0
- package/resources/namespaces/servers.mjs +21 -0
- package/resources/namespaces/servers.mjs.map +1 -0
- package/resources/namespaces.d.mts +1 -39
- package/resources/namespaces.d.mts.map +1 -1
- package/resources/namespaces.d.ts +1 -39
- package/resources/namespaces.d.ts.map +1 -1
- package/resources/namespaces.js +2 -26
- package/resources/namespaces.js.map +1 -1
- package/resources/namespaces.mjs +1 -24
- package/resources/namespaces.mjs.map +1 -1
- package/resources/servers/deployments.d.mts +55 -9
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +55 -9
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +42 -8
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +42 -8
- package/resources/servers/deployments.mjs.map +1 -1
- package/resources/servers/index.d.mts +4 -3
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +4 -3
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/index.js +3 -1
- package/resources/servers/index.js.map +1 -1
- package/resources/servers/index.mjs +1 -0
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/logs.d.mts +15 -4
- package/resources/servers/logs.d.mts.map +1 -1
- package/resources/servers/logs.d.ts +15 -4
- package/resources/servers/logs.d.ts.map +1 -1
- package/resources/servers/logs.js +10 -2
- package/resources/servers/logs.js.map +1 -1
- package/resources/servers/logs.mjs +10 -2
- package/resources/servers/logs.mjs.map +1 -1
- package/resources/servers/repo.d.mts +98 -0
- package/resources/servers/repo.d.mts.map +1 -0
- package/resources/servers/repo.d.ts +98 -0
- package/resources/servers/repo.d.ts.map +1 -0
- package/resources/servers/repo.js +55 -0
- package/resources/servers/repo.js.map +1 -0
- package/resources/servers/repo.mjs +51 -0
- package/resources/servers/repo.mjs.map +1 -0
- package/resources/servers/secrets.d.mts +46 -4
- package/resources/servers/secrets.d.mts.map +1 -1
- package/resources/servers/secrets.d.ts +46 -4
- package/resources/servers/secrets.d.ts.map +1 -1
- package/resources/servers/secrets.js +36 -6
- package/resources/servers/secrets.js.map +1 -1
- package/resources/servers/secrets.mjs +36 -6
- package/resources/servers/secrets.mjs.map +1 -1
- package/resources/servers/servers.d.mts +57 -10
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +57 -10
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +47 -8
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +47 -8
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/tokens.d.mts +18 -18
- package/resources/tokens.d.mts.map +1 -1
- package/resources/tokens.d.ts +18 -18
- package/resources/tokens.d.ts.map +1 -1
- package/src/client.ts +14 -8
- package/src/lib/mcp-transport.ts +131 -236
- package/src/resources/beta/connect/connect.ts +6 -6
- package/src/resources/beta/connect/connections.ts +6 -1
- package/src/resources/beta/connect/index.ts +1 -1
- package/src/resources/beta/connect/{rpc.ts → mcp.ts} +9 -9
- package/src/resources/beta/connect/tools.ts +0 -2
- package/src/resources/index.ts +5 -2
- package/src/resources/namespaces/index.ts +14 -0
- package/src/resources/namespaces/namespaces.ts +92 -0
- package/src/resources/namespaces/servers.ts +71 -0
- package/src/resources/namespaces.ts +1 -61
- package/src/resources/servers/deployments.ts +76 -15
- package/src/resources/servers/index.ts +14 -0
- package/src/resources/servers/logs.ts +18 -9
- package/src/resources/servers/repo.ts +143 -0
- package/src/resources/servers/secrets.ts +55 -7
- package/src/resources/servers/servers.ts +92 -8
- package/src/resources/tokens.ts +17 -17
- 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
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as DeploymentsAPI from "./deployments.js";
|
|
3
|
-
import { DeployPayload, DeploymentDeployParams, DeploymentDeployResponse, DeploymentGetParams, DeploymentGetResponse, DeploymentListResponse, DeploymentResumeParams, DeploymentResumeResponse, Deployments, ExternalDeployPayload, HostedDeployPayload, ServerCard, StdioDeployPayload } from "./deployments.js";
|
|
3
|
+
import { DeployPayload, DeploymentDeployParams, DeploymentDeployResponse, DeploymentGetParams, DeploymentGetResponse, DeploymentListParams, DeploymentListResponse, DeploymentResumeParams, DeploymentResumeResponse, Deployments, ExternalDeployPayload, HostedDeployPayload, ServerCard, StdioDeployPayload } from "./deployments.js";
|
|
4
4
|
import * as LogsAPI from "./logs.js";
|
|
5
5
|
import { LogListParams, LogListResponse, Logs } from "./logs.js";
|
|
6
|
+
import * as RepoAPI from "./repo.js";
|
|
7
|
+
import { Repo, RepoDeleteParams, RepoDeleteResponse, RepoGetParams, RepoGetResponse, RepoSetParams, RepoSetResponse } from "./repo.js";
|
|
6
8
|
import * as SecretsAPI from "./secrets.js";
|
|
7
|
-
import { SecretDeleteParams, SecretDeleteResponse, SecretListResponse, SecretSetParams, SecretSetResponse, Secrets } from "./secrets.js";
|
|
9
|
+
import { SecretDeleteParams, SecretDeleteResponse, SecretListParams, SecretListResponse, SecretSetParams, SecretSetResponse, Secrets } from "./secrets.js";
|
|
8
10
|
import { APIPromise } from "../../core/api-promise.js";
|
|
9
11
|
import { PagePromise, SmitheryPage, type SmitheryPageParams } from "../../core/pagination.js";
|
|
10
12
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
@@ -12,22 +14,55 @@ export declare class Servers extends APIResource {
|
|
|
12
14
|
deployments: DeploymentsAPI.Deployments;
|
|
13
15
|
logs: LogsAPI.Logs;
|
|
14
16
|
secrets: SecretsAPI.Secrets;
|
|
17
|
+
repo: RepoAPI.Repo;
|
|
15
18
|
/**
|
|
16
19
|
* Get a paginated list of all servers. Use the `q` parameter to search.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* // Automatically fetches more pages as needed.
|
|
24
|
+
* for await (const serverListResponse of client.servers.list()) {
|
|
25
|
+
* // ...
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
17
28
|
*/
|
|
18
29
|
list(query?: ServerListParams | null | undefined, options?: RequestOptions): PagePromise<ServerListResponsesSmitheryPage, ServerListResponse>;
|
|
19
30
|
/**
|
|
20
|
-
* Delete a server by
|
|
31
|
+
* Delete a server by namespace and server name.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const server = await client.servers.delete('server', {
|
|
36
|
+
* namespace: 'namespace',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
21
39
|
*/
|
|
22
|
-
delete(
|
|
40
|
+
delete(server: string, params: ServerDeleteParams, options?: RequestOptions): APIPromise<ServerDeleteResponse>;
|
|
23
41
|
/**
|
|
24
42
|
* Download the MCPB bundle for the latest successful stdio deployment
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const response = await client.servers.download('server', {
|
|
47
|
+
* namespace: 'namespace',
|
|
48
|
+
* });
|
|
49
|
+
*
|
|
50
|
+
* const content = await response.blob();
|
|
51
|
+
* console.log(content);
|
|
52
|
+
* ```
|
|
25
53
|
*/
|
|
26
|
-
download(
|
|
54
|
+
download(server: string, params: ServerDownloadParams, options?: RequestOptions): APIPromise<Response>;
|
|
27
55
|
/**
|
|
28
|
-
* Get a single server by its
|
|
56
|
+
* Get a single server by its namespace and server name.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const server = await client.servers.get('server', {
|
|
61
|
+
* namespace: 'namespace',
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
29
64
|
*/
|
|
30
|
-
get(
|
|
65
|
+
get(server: string, params: ServerGetParams, options?: RequestOptions): APIPromise<ServerGetResponse>;
|
|
31
66
|
}
|
|
32
67
|
export type ServerListResponsesSmitheryPage = SmitheryPage<ServerListResponse>;
|
|
33
68
|
/**
|
|
@@ -85,9 +120,11 @@ export interface ServerListResponse {
|
|
|
85
120
|
homepage: string;
|
|
86
121
|
iconUrl: string | null;
|
|
87
122
|
isDeployed: boolean;
|
|
123
|
+
namespace: string | null;
|
|
88
124
|
owner: string | null;
|
|
89
125
|
qualifiedName: string;
|
|
90
126
|
remote: boolean | null;
|
|
127
|
+
slug: string | null;
|
|
91
128
|
useCount: number;
|
|
92
129
|
verified: boolean;
|
|
93
130
|
}
|
|
@@ -152,10 +189,20 @@ export interface ServerListParams extends SmitheryPageParams {
|
|
|
152
189
|
topK?: number;
|
|
153
190
|
verified?: '0' | '1' | 'true' | 'false';
|
|
154
191
|
}
|
|
192
|
+
export interface ServerDeleteParams {
|
|
193
|
+
namespace: string;
|
|
194
|
+
}
|
|
195
|
+
export interface ServerDownloadParams {
|
|
196
|
+
namespace: string;
|
|
197
|
+
}
|
|
198
|
+
export interface ServerGetParams {
|
|
199
|
+
namespace: string;
|
|
200
|
+
}
|
|
155
201
|
export declare namespace Servers {
|
|
156
|
-
export { type BuildConfig as BuildConfig, type DeploymentTarget as DeploymentTarget, type ProjectConfig as ProjectConfig, type ServerListResponse as ServerListResponse, type ServerDeleteResponse as ServerDeleteResponse, type ServerGetResponse as ServerGetResponse, type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage, type ServerListParams as ServerListParams, };
|
|
157
|
-
export { Deployments as Deployments, type DeployPayload as DeployPayload, type ExternalDeployPayload as ExternalDeployPayload, type HostedDeployPayload as HostedDeployPayload, type ServerCard as ServerCard, type StdioDeployPayload as StdioDeployPayload, type DeploymentListResponse as DeploymentListResponse, type DeploymentDeployResponse as DeploymentDeployResponse, type DeploymentGetResponse as DeploymentGetResponse, type DeploymentResumeResponse as DeploymentResumeResponse, type DeploymentDeployParams as DeploymentDeployParams, type DeploymentGetParams as DeploymentGetParams, type DeploymentResumeParams as DeploymentResumeParams, };
|
|
202
|
+
export { type BuildConfig as BuildConfig, type DeploymentTarget as DeploymentTarget, type ProjectConfig as ProjectConfig, type ServerListResponse as ServerListResponse, type ServerDeleteResponse as ServerDeleteResponse, type ServerGetResponse as ServerGetResponse, type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage, type ServerListParams as ServerListParams, type ServerDeleteParams as ServerDeleteParams, type ServerDownloadParams as ServerDownloadParams, type ServerGetParams as ServerGetParams, };
|
|
203
|
+
export { Deployments as Deployments, type DeployPayload as DeployPayload, type ExternalDeployPayload as ExternalDeployPayload, type HostedDeployPayload as HostedDeployPayload, type ServerCard as ServerCard, type StdioDeployPayload as StdioDeployPayload, type DeploymentListResponse as DeploymentListResponse, type DeploymentDeployResponse as DeploymentDeployResponse, type DeploymentGetResponse as DeploymentGetResponse, type DeploymentResumeResponse as DeploymentResumeResponse, type DeploymentListParams as DeploymentListParams, type DeploymentDeployParams as DeploymentDeployParams, type DeploymentGetParams as DeploymentGetParams, type DeploymentResumeParams as DeploymentResumeParams, };
|
|
158
204
|
export { Logs as Logs, type LogListResponse as LogListResponse, type LogListParams as LogListParams };
|
|
159
|
-
export { Secrets as Secrets, type SecretListResponse as SecretListResponse, type SecretDeleteResponse as SecretDeleteResponse, type SecretSetResponse as SecretSetResponse, type SecretDeleteParams as SecretDeleteParams, type SecretSetParams as SecretSetParams, };
|
|
205
|
+
export { Secrets as Secrets, type SecretListResponse as SecretListResponse, type SecretDeleteResponse as SecretDeleteResponse, type SecretSetResponse as SecretSetResponse, type SecretListParams as SecretListParams, type SecretDeleteParams as SecretDeleteParams, type SecretSetParams as SecretSetParams, };
|
|
206
|
+
export { Repo as Repo, type RepoDeleteResponse as RepoDeleteResponse, type RepoGetResponse as RepoGetResponse, type RepoSetResponse as RepoSetResponse, type RepoDeleteParams as RepoDeleteParams, type RepoGetParams as RepoGetParams, type RepoSetParams as RepoSetParams, };
|
|
160
207
|
}
|
|
161
208
|
//# sourceMappingURL=servers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,kBAAkB,EACnB;OACM,KAAK,OAAO;OACZ,EAAE,aAAa,EAAE,eAAe,EAAE,IAAI,EAAE;OACxC,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,OAAO,EACR;OACM,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;
|
|
1
|
+
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,kBAAkB,EACnB;OACM,KAAK,OAAO;OACZ,EAAE,aAAa,EAAE,eAAe,EAAE,IAAI,EAAE;OACxC,KAAK,OAAO;OACZ,EACL,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,aAAa,EACb,eAAe,EAChB;OACM,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,OAAO,EACR;OACM,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,IAAI,EAAE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O,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,CAAC;IAEtG,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -8,6 +8,8 @@ const DeploymentsAPI = tslib_1.__importStar(require("./deployments.js"));
|
|
|
8
8
|
const deployments_1 = require("./deployments.js");
|
|
9
9
|
const LogsAPI = tslib_1.__importStar(require("./logs.js"));
|
|
10
10
|
const logs_1 = require("./logs.js");
|
|
11
|
+
const RepoAPI = tslib_1.__importStar(require("./repo.js"));
|
|
12
|
+
const repo_1 = require("./repo.js");
|
|
11
13
|
const SecretsAPI = tslib_1.__importStar(require("./secrets.js"));
|
|
12
14
|
const secrets_1 = require("./secrets.js");
|
|
13
15
|
const pagination_1 = require("../../core/pagination.js");
|
|
@@ -19,38 +21,75 @@ class Servers extends resource_1.APIResource {
|
|
|
19
21
|
this.deployments = new DeploymentsAPI.Deployments(this._client);
|
|
20
22
|
this.logs = new LogsAPI.Logs(this._client);
|
|
21
23
|
this.secrets = new SecretsAPI.Secrets(this._client);
|
|
24
|
+
this.repo = new RepoAPI.Repo(this._client);
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
24
27
|
* Get a paginated list of all servers. Use the `q` parameter to search.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* // Automatically fetches more pages as needed.
|
|
32
|
+
* for await (const serverListResponse of client.servers.list()) {
|
|
33
|
+
* // ...
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
25
36
|
*/
|
|
26
37
|
list(query = {}, options) {
|
|
27
38
|
return this._client.getAPIList('/servers', (pagination_1.SmitheryPage), { query, ...options });
|
|
28
39
|
}
|
|
29
40
|
/**
|
|
30
|
-
* Delete a server by
|
|
41
|
+
* Delete a server by namespace and server name.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const server = await client.servers.delete('server', {
|
|
46
|
+
* namespace: 'namespace',
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
31
49
|
*/
|
|
32
|
-
delete(
|
|
33
|
-
|
|
50
|
+
delete(server, params, options) {
|
|
51
|
+
const { namespace } = params;
|
|
52
|
+
return this._client.delete((0, path_1.path) `/servers/${namespace}/${server}`, options);
|
|
34
53
|
}
|
|
35
54
|
/**
|
|
36
55
|
* Download the MCPB bundle for the latest successful stdio deployment
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const response = await client.servers.download('server', {
|
|
60
|
+
* namespace: 'namespace',
|
|
61
|
+
* });
|
|
62
|
+
*
|
|
63
|
+
* const content = await response.blob();
|
|
64
|
+
* console.log(content);
|
|
65
|
+
* ```
|
|
37
66
|
*/
|
|
38
|
-
download(
|
|
39
|
-
|
|
67
|
+
download(server, params, options) {
|
|
68
|
+
const { namespace } = params;
|
|
69
|
+
return this._client.get((0, path_1.path) `/servers/${namespace}/${server}/download`, {
|
|
40
70
|
...options,
|
|
41
71
|
headers: (0, headers_1.buildHeaders)([{ Accept: 'application/zip' }, options?.headers]),
|
|
42
72
|
__binaryResponse: true,
|
|
43
73
|
});
|
|
44
74
|
}
|
|
45
75
|
/**
|
|
46
|
-
* Get a single server by its
|
|
76
|
+
* Get a single server by its namespace and server name.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const server = await client.servers.get('server', {
|
|
81
|
+
* namespace: 'namespace',
|
|
82
|
+
* });
|
|
83
|
+
* ```
|
|
47
84
|
*/
|
|
48
|
-
get(
|
|
49
|
-
|
|
85
|
+
get(server, params, options) {
|
|
86
|
+
const { namespace } = params;
|
|
87
|
+
return this._client.get((0, path_1.path) `/servers/${namespace}/${server}`, options);
|
|
50
88
|
}
|
|
51
89
|
}
|
|
52
90
|
exports.Servers = Servers;
|
|
53
91
|
Servers.Deployments = deployments_1.Deployments;
|
|
54
92
|
Servers.Logs = logs_1.Logs;
|
|
55
93
|
Servers.Secrets = secrets_1.Secrets;
|
|
94
|
+
Servers.Repo = repo_1.Repo;
|
|
56
95
|
//# sourceMappingURL=servers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servers.js","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"servers.js","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAeuB;AACvB,2DAAkC;AAClC,oCAA8D;AAC9D,2DAAkC;AAClC,oCAQgB;AAChB,iEAAwC;AACxC,0CAQmB;AAEnB,yDAA2F;AAC3F,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,YAAO,GAAuB,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,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AA/ED,0BA+EC;AAiMD,OAAO,CAAC,WAAW,GAAG,yBAAW,CAAC;AAClC,OAAO,CAAC,IAAI,GAAG,WAAI,CAAC;AACpB,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC1B,OAAO,CAAC,IAAI,GAAG,WAAI,CAAC"}
|
|
@@ -4,6 +4,8 @@ import * as DeploymentsAPI from "./deployments.mjs";
|
|
|
4
4
|
import { Deployments, } from "./deployments.mjs";
|
|
5
5
|
import * as LogsAPI from "./logs.mjs";
|
|
6
6
|
import { Logs } from "./logs.mjs";
|
|
7
|
+
import * as RepoAPI from "./repo.mjs";
|
|
8
|
+
import { Repo, } from "./repo.mjs";
|
|
7
9
|
import * as SecretsAPI from "./secrets.mjs";
|
|
8
10
|
import { Secrets, } from "./secrets.mjs";
|
|
9
11
|
import { SmitheryPage } from "../../core/pagination.mjs";
|
|
@@ -15,37 +17,74 @@ export class Servers extends APIResource {
|
|
|
15
17
|
this.deployments = new DeploymentsAPI.Deployments(this._client);
|
|
16
18
|
this.logs = new LogsAPI.Logs(this._client);
|
|
17
19
|
this.secrets = new SecretsAPI.Secrets(this._client);
|
|
20
|
+
this.repo = new RepoAPI.Repo(this._client);
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
20
23
|
* Get a paginated list of all servers. Use the `q` parameter to search.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* // Automatically fetches more pages as needed.
|
|
28
|
+
* for await (const serverListResponse of client.servers.list()) {
|
|
29
|
+
* // ...
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
21
32
|
*/
|
|
22
33
|
list(query = {}, options) {
|
|
23
34
|
return this._client.getAPIList('/servers', (SmitheryPage), { query, ...options });
|
|
24
35
|
}
|
|
25
36
|
/**
|
|
26
|
-
* Delete a server by
|
|
37
|
+
* Delete a server by namespace and server name.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const server = await client.servers.delete('server', {
|
|
42
|
+
* namespace: 'namespace',
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
27
45
|
*/
|
|
28
|
-
delete(
|
|
29
|
-
|
|
46
|
+
delete(server, params, options) {
|
|
47
|
+
const { namespace } = params;
|
|
48
|
+
return this._client.delete(path `/servers/${namespace}/${server}`, options);
|
|
30
49
|
}
|
|
31
50
|
/**
|
|
32
51
|
* Download the MCPB bundle for the latest successful stdio deployment
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const response = await client.servers.download('server', {
|
|
56
|
+
* namespace: 'namespace',
|
|
57
|
+
* });
|
|
58
|
+
*
|
|
59
|
+
* const content = await response.blob();
|
|
60
|
+
* console.log(content);
|
|
61
|
+
* ```
|
|
33
62
|
*/
|
|
34
|
-
download(
|
|
35
|
-
|
|
63
|
+
download(server, params, options) {
|
|
64
|
+
const { namespace } = params;
|
|
65
|
+
return this._client.get(path `/servers/${namespace}/${server}/download`, {
|
|
36
66
|
...options,
|
|
37
67
|
headers: buildHeaders([{ Accept: 'application/zip' }, options?.headers]),
|
|
38
68
|
__binaryResponse: true,
|
|
39
69
|
});
|
|
40
70
|
}
|
|
41
71
|
/**
|
|
42
|
-
* Get a single server by its
|
|
72
|
+
* Get a single server by its namespace and server name.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const server = await client.servers.get('server', {
|
|
77
|
+
* namespace: 'namespace',
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
43
80
|
*/
|
|
44
|
-
get(
|
|
45
|
-
|
|
81
|
+
get(server, params, options) {
|
|
82
|
+
const { namespace } = params;
|
|
83
|
+
return this._client.get(path `/servers/${namespace}/${server}`, options);
|
|
46
84
|
}
|
|
47
85
|
}
|
|
48
86
|
Servers.Deployments = Deployments;
|
|
49
87
|
Servers.Logs = Logs;
|
|
50
88
|
Servers.Secrets = Secrets;
|
|
89
|
+
Servers.Repo = Repo;
|
|
51
90
|
//# sourceMappingURL=servers.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servers.mjs","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,
|
|
1
|
+
{"version":3,"file":"servers.mjs","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAUL,WAAW,GAKZ;OACM,KAAK,OAAO;OACZ,EAAkC,IAAI,EAAE;OACxC,KAAK,OAAO;OACZ,EACL,IAAI,GAOL;OACM,KAAK,UAAU;OACf,EAOL,OAAO,GACR;OAEM,EAAe,YAAY,EAA2B;OACtD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2EtD,CAAC;IAzEC;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,YAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,MAAc,EAAE,MAA4B,EAAE,OAAwB;QAC7E,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,WAAW,EAAE;YACtE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACxE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAc,EAAE,MAAuB,EAAE,OAAwB;QACnE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AAiMD,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;AAClC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;AACpB,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;AAC1B,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
package/resources/tokens.d.mts
CHANGED
|
@@ -35,13 +35,13 @@ export interface Allow {
|
|
|
35
35
|
*/
|
|
36
36
|
deployments?: ResourceScope;
|
|
37
37
|
/**
|
|
38
|
-
* Scope for
|
|
38
|
+
* Scope for MCP protocol operations on connections.
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
mcp?: McpScope;
|
|
41
41
|
/**
|
|
42
|
-
* Scope for
|
|
42
|
+
* Scope for namespace management.
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
namespaces?: ResourceScope;
|
|
45
45
|
/**
|
|
46
46
|
* Scope for server metadata and configuration.
|
|
47
47
|
*/
|
|
@@ -97,37 +97,37 @@ export interface CreateTokenResponse {
|
|
|
97
97
|
expiresAt: string;
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* Scope for
|
|
100
|
+
* Scope for MCP operations on connections.
|
|
101
101
|
*/
|
|
102
|
-
export interface
|
|
102
|
+
export interface McpScope {
|
|
103
103
|
/**
|
|
104
|
-
* Actions allowed
|
|
104
|
+
* Actions allowed for MCP calls.
|
|
105
105
|
*/
|
|
106
106
|
actions: Array<Action>;
|
|
107
107
|
/**
|
|
108
108
|
* Namespaces this scope applies to. Use '\*' for all namespaces.
|
|
109
109
|
*/
|
|
110
110
|
namespaces: Array<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Filter access to connections with matching metadata. All keys must match (AND
|
|
113
|
+
* semantics).
|
|
114
|
+
*/
|
|
115
|
+
metadata?: {
|
|
116
|
+
[key: string]: string;
|
|
117
|
+
};
|
|
111
118
|
}
|
|
112
119
|
/**
|
|
113
|
-
* Scope for
|
|
120
|
+
* Scope for resource operations.
|
|
114
121
|
*/
|
|
115
|
-
export interface
|
|
122
|
+
export interface ResourceScope {
|
|
116
123
|
/**
|
|
117
|
-
* Actions allowed
|
|
124
|
+
* Actions allowed on this resource.
|
|
118
125
|
*/
|
|
119
126
|
actions: Array<Action>;
|
|
120
127
|
/**
|
|
121
128
|
* Namespaces this scope applies to. Use '\*' for all namespaces.
|
|
122
129
|
*/
|
|
123
130
|
namespaces: Array<string>;
|
|
124
|
-
/**
|
|
125
|
-
* Filter access to connections with matching metadata. All keys must match (AND
|
|
126
|
-
* semantics).
|
|
127
|
-
*/
|
|
128
|
-
metadata?: {
|
|
129
|
-
[key: string]: string;
|
|
130
|
-
};
|
|
131
131
|
}
|
|
132
132
|
export interface TokenCreateParams {
|
|
133
133
|
/**
|
|
@@ -145,6 +145,6 @@ export interface TokenCreateParams {
|
|
|
145
145
|
profileSlug?: string;
|
|
146
146
|
}
|
|
147
147
|
export declare namespace Tokens {
|
|
148
|
-
export { type Action as Action, type Allow as Allow, type ConnectionScope as ConnectionScope, type CreateTokenRequest as CreateTokenRequest, type CreateTokenResponse as CreateTokenResponse, type
|
|
148
|
+
export { type Action as Action, type Allow as Allow, type ConnectionScope as ConnectionScope, type CreateTokenRequest as CreateTokenRequest, type CreateTokenResponse as CreateTokenResponse, type McpScope as McpScope, type ResourceScope as ResourceScope, type TokenCreateParams as TokenCreateParams, };
|
|
149
149
|
}
|
|
150
150
|
//# sourceMappingURL=tokens.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.mts","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,aAAa,CAAC;IAE5B;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"tokens.d.mts","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAA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UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;;OAGG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/tokens.d.ts
CHANGED
|
@@ -35,13 +35,13 @@ export interface Allow {
|
|
|
35
35
|
*/
|
|
36
36
|
deployments?: ResourceScope;
|
|
37
37
|
/**
|
|
38
|
-
* Scope for
|
|
38
|
+
* Scope for MCP protocol operations on connections.
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
mcp?: McpScope;
|
|
41
41
|
/**
|
|
42
|
-
* Scope for
|
|
42
|
+
* Scope for namespace management.
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
namespaces?: ResourceScope;
|
|
45
45
|
/**
|
|
46
46
|
* Scope for server metadata and configuration.
|
|
47
47
|
*/
|
|
@@ -97,37 +97,37 @@ export interface CreateTokenResponse {
|
|
|
97
97
|
expiresAt: string;
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* Scope for
|
|
100
|
+
* Scope for MCP operations on connections.
|
|
101
101
|
*/
|
|
102
|
-
export interface
|
|
102
|
+
export interface McpScope {
|
|
103
103
|
/**
|
|
104
|
-
* Actions allowed
|
|
104
|
+
* Actions allowed for MCP calls.
|
|
105
105
|
*/
|
|
106
106
|
actions: Array<Action>;
|
|
107
107
|
/**
|
|
108
108
|
* Namespaces this scope applies to. Use '\*' for all namespaces.
|
|
109
109
|
*/
|
|
110
110
|
namespaces: Array<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Filter access to connections with matching metadata. All keys must match (AND
|
|
113
|
+
* semantics).
|
|
114
|
+
*/
|
|
115
|
+
metadata?: {
|
|
116
|
+
[key: string]: string;
|
|
117
|
+
};
|
|
111
118
|
}
|
|
112
119
|
/**
|
|
113
|
-
* Scope for
|
|
120
|
+
* Scope for resource operations.
|
|
114
121
|
*/
|
|
115
|
-
export interface
|
|
122
|
+
export interface ResourceScope {
|
|
116
123
|
/**
|
|
117
|
-
* Actions allowed
|
|
124
|
+
* Actions allowed on this resource.
|
|
118
125
|
*/
|
|
119
126
|
actions: Array<Action>;
|
|
120
127
|
/**
|
|
121
128
|
* Namespaces this scope applies to. Use '\*' for all namespaces.
|
|
122
129
|
*/
|
|
123
130
|
namespaces: Array<string>;
|
|
124
|
-
/**
|
|
125
|
-
* Filter access to connections with matching metadata. All keys must match (AND
|
|
126
|
-
* semantics).
|
|
127
|
-
*/
|
|
128
|
-
metadata?: {
|
|
129
|
-
[key: string]: string;
|
|
130
|
-
};
|
|
131
131
|
}
|
|
132
132
|
export interface TokenCreateParams {
|
|
133
133
|
/**
|
|
@@ -145,6 +145,6 @@ export interface TokenCreateParams {
|
|
|
145
145
|
profileSlug?: string;
|
|
146
146
|
}
|
|
147
147
|
export declare namespace Tokens {
|
|
148
|
-
export { type Action as Action, type Allow as Allow, type ConnectionScope as ConnectionScope, type CreateTokenRequest as CreateTokenRequest, type CreateTokenResponse as CreateTokenResponse, type
|
|
148
|
+
export { type Action as Action, type Allow as Allow, type ConnectionScope as ConnectionScope, type CreateTokenRequest as CreateTokenRequest, type CreateTokenResponse as CreateTokenResponse, type McpScope as McpScope, type ResourceScope as ResourceScope, type TokenCreateParams as TokenCreateParams, };
|
|
149
149
|
}
|
|
150
150
|
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,aAAa,CAAC;IAE5B;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE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,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/src/client.ts
CHANGED
|
@@ -30,12 +30,6 @@ import * as Uploads from './core/uploads';
|
|
|
30
30
|
import * as API from './resources/index';
|
|
31
31
|
import { APIPromise } from './core/api-promise';
|
|
32
32
|
import { Health, HealthCheckResponse } from './resources/health';
|
|
33
|
-
import {
|
|
34
|
-
NamespaceCreateResponse,
|
|
35
|
-
NamespaceListResponse,
|
|
36
|
-
NamespaceSetResponse,
|
|
37
|
-
Namespaces,
|
|
38
|
-
} from './resources/namespaces';
|
|
39
33
|
import { SkillListParams, SkillListResponse, SkillListResponsesSkillsPage, Skills } from './resources/skills';
|
|
40
34
|
import {
|
|
41
35
|
Action,
|
|
@@ -43,18 +37,27 @@ import {
|
|
|
43
37
|
ConnectionScope,
|
|
44
38
|
CreateTokenRequest,
|
|
45
39
|
CreateTokenResponse,
|
|
40
|
+
McpScope,
|
|
46
41
|
ResourceScope,
|
|
47
|
-
RpcScope,
|
|
48
42
|
TokenCreateParams,
|
|
49
43
|
Tokens,
|
|
50
44
|
} from './resources/tokens';
|
|
51
45
|
import { Uplink, UplinkCreateTokenResponse } from './resources/uplink';
|
|
52
46
|
import { Beta } from './resources/beta/beta';
|
|
47
|
+
import {
|
|
48
|
+
NamespaceCreateResponse,
|
|
49
|
+
NamespaceListResponse,
|
|
50
|
+
NamespaceSetResponse,
|
|
51
|
+
Namespaces,
|
|
52
|
+
} from './resources/namespaces/namespaces';
|
|
53
53
|
import {
|
|
54
54
|
BuildConfig,
|
|
55
55
|
DeploymentTarget,
|
|
56
56
|
ProjectConfig,
|
|
57
|
+
ServerDeleteParams,
|
|
57
58
|
ServerDeleteResponse,
|
|
59
|
+
ServerDownloadParams,
|
|
60
|
+
ServerGetParams,
|
|
58
61
|
ServerGetResponse,
|
|
59
62
|
ServerListParams,
|
|
60
63
|
ServerListResponse,
|
|
@@ -808,6 +811,9 @@ export declare namespace Smithery {
|
|
|
808
811
|
type ServerGetResponse as ServerGetResponse,
|
|
809
812
|
type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage,
|
|
810
813
|
type ServerListParams as ServerListParams,
|
|
814
|
+
type ServerDeleteParams as ServerDeleteParams,
|
|
815
|
+
type ServerDownloadParams as ServerDownloadParams,
|
|
816
|
+
type ServerGetParams as ServerGetParams,
|
|
811
817
|
};
|
|
812
818
|
|
|
813
819
|
export { Uplink as Uplink, type UplinkCreateTokenResponse as UplinkCreateTokenResponse };
|
|
@@ -833,8 +839,8 @@ export declare namespace Smithery {
|
|
|
833
839
|
type ConnectionScope as ConnectionScope,
|
|
834
840
|
type CreateTokenRequest as CreateTokenRequest,
|
|
835
841
|
type CreateTokenResponse as CreateTokenResponse,
|
|
842
|
+
type McpScope as McpScope,
|
|
836
843
|
type ResourceScope as ResourceScope,
|
|
837
|
-
type RpcScope as RpcScope,
|
|
838
844
|
type TokenCreateParams as TokenCreateParams,
|
|
839
845
|
};
|
|
840
846
|
|