@smithery/api 0.26.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +10 -5
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- 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/package.json +1 -1
- package/resources/beta/connect/tools.d.mts +5 -9
- package/resources/beta/connect/tools.d.mts.map +1 -1
- package/resources/beta/connect/tools.d.ts +5 -9
- package/resources/beta/connect/tools.d.ts.map +1 -1
- package/resources/beta/connect/tools.js +4 -5
- package/resources/beta/connect/tools.js.map +1 -1
- package/resources/beta/connect/tools.mjs +4 -5
- package/resources/beta/connect/tools.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- 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 +55 -10
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +55 -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/src/client.ts +12 -6
- package/src/resources/beta/connect/tools.ts +6 -9
- package/src/resources/index.ts +4 -1
- 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 +88 -8
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../src/resources/servers/secrets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC
|
|
1
|
+
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../src/resources/servers/secrets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACrE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,UAAkB,EAClB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,YAAY,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,GAAG,CAAC,MAAc,EAAE,MAAuB,EAAE,OAAwB;QACnE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF;AAxDD,0BAwDC"}
|
|
@@ -4,22 +4,52 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
4
4
|
export class Secrets extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Fetch secret names for the server. Values are not returned.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const secrets = await client.servers.secrets.list(
|
|
11
|
+
* 'server',
|
|
12
|
+
* { namespace: 'namespace' },
|
|
13
|
+
* );
|
|
14
|
+
* ```
|
|
7
15
|
*/
|
|
8
|
-
list(
|
|
9
|
-
|
|
16
|
+
list(server, params, options) {
|
|
17
|
+
const { namespace } = params;
|
|
18
|
+
return this._client.get(path `/servers/${namespace}/${server}/secrets`, options);
|
|
10
19
|
}
|
|
11
20
|
/**
|
|
12
21
|
* Delete a secret by name from the server.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const secret = await client.servers.secrets.delete(
|
|
26
|
+
* 'secretName',
|
|
27
|
+
* { namespace: 'namespace', server: 'server' },
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
13
30
|
*/
|
|
14
31
|
delete(secretName, params, options) {
|
|
15
|
-
const {
|
|
16
|
-
return this._client.delete(path `/servers/${
|
|
32
|
+
const { namespace, server } = params;
|
|
33
|
+
return this._client.delete(path `/servers/${namespace}/${server}/secrets/${secretName}`, options);
|
|
17
34
|
}
|
|
18
35
|
/**
|
|
19
36
|
* Set a secret value for the server.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const response = await client.servers.secrets.set(
|
|
41
|
+
* 'server',
|
|
42
|
+
* {
|
|
43
|
+
* namespace: 'namespace',
|
|
44
|
+
* name: 'x',
|
|
45
|
+
* value: 'x',
|
|
46
|
+
* },
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
20
49
|
*/
|
|
21
|
-
set(
|
|
22
|
-
|
|
50
|
+
set(server, params, options) {
|
|
51
|
+
const { namespace, ...body } = params;
|
|
52
|
+
return this._client.put(path `/servers/${namespace}/${server}/secrets`, { body, ...options });
|
|
23
53
|
}
|
|
24
54
|
}
|
|
25
55
|
//# sourceMappingURL=secrets.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.mjs","sourceRoot":"","sources":["../../src/resources/servers/secrets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"secrets.mjs","sourceRoot":"","sources":["../../src/resources/servers/secrets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACrE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,UAAkB,EAClB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,YAAY,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,GAAG,CAAC,MAAc,EAAE,MAAuB,EAAE,OAAwB;QACnE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as DeploymentsAPI from "./deployments.mjs";
|
|
3
|
-
import { DeployPayload, DeploymentDeployParams, DeploymentDeployResponse, DeploymentGetParams, DeploymentGetResponse, DeploymentListResponse, DeploymentResumeParams, DeploymentResumeResponse, Deployments, ExternalDeployPayload, HostedDeployPayload, ServerCard, StdioDeployPayload } from "./deployments.mjs";
|
|
3
|
+
import { DeployPayload, DeploymentDeployParams, DeploymentDeployResponse, DeploymentGetParams, DeploymentGetResponse, DeploymentListParams, DeploymentListResponse, DeploymentResumeParams, DeploymentResumeResponse, Deployments, ExternalDeployPayload, HostedDeployPayload, ServerCard, StdioDeployPayload } from "./deployments.mjs";
|
|
4
4
|
import * as LogsAPI from "./logs.mjs";
|
|
5
5
|
import { LogListParams, LogListResponse, Logs } from "./logs.mjs";
|
|
6
|
+
import * as RepoAPI from "./repo.mjs";
|
|
7
|
+
import { Repo, RepoDeleteParams, RepoDeleteResponse, RepoGetParams, RepoGetResponse, RepoSetParams, RepoSetResponse } from "./repo.mjs";
|
|
6
8
|
import * as SecretsAPI from "./secrets.mjs";
|
|
7
|
-
import { SecretDeleteParams, SecretDeleteResponse, SecretListResponse, SecretSetParams, SecretSetResponse, Secrets } from "./secrets.mjs";
|
|
9
|
+
import { SecretDeleteParams, SecretDeleteResponse, SecretListParams, SecretListResponse, SecretSetParams, SecretSetResponse, Secrets } from "./secrets.mjs";
|
|
8
10
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
9
11
|
import { PagePromise, SmitheryPage, type SmitheryPageParams } from "../../core/pagination.mjs";
|
|
10
12
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
@@ -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
|
/**
|
|
@@ -152,10 +187,20 @@ export interface ServerListParams extends SmitheryPageParams {
|
|
|
152
187
|
topK?: number;
|
|
153
188
|
verified?: '0' | '1' | 'true' | 'false';
|
|
154
189
|
}
|
|
190
|
+
export interface ServerDeleteParams {
|
|
191
|
+
namespace: string;
|
|
192
|
+
}
|
|
193
|
+
export interface ServerDownloadParams {
|
|
194
|
+
namespace: string;
|
|
195
|
+
}
|
|
196
|
+
export interface ServerGetParams {
|
|
197
|
+
namespace: string;
|
|
198
|
+
}
|
|
155
199
|
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, };
|
|
200
|
+
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, };
|
|
201
|
+
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
202
|
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, };
|
|
203
|
+
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, };
|
|
204
|
+
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
205
|
}
|
|
161
206
|
//# sourceMappingURL=servers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servers.d.mts","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.mts","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,OAAO,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AAC;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"}
|
|
@@ -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
|
/**
|
|
@@ -152,10 +187,20 @@ export interface ServerListParams extends SmitheryPageParams {
|
|
|
152
187
|
topK?: number;
|
|
153
188
|
verified?: '0' | '1' | 'true' | 'false';
|
|
154
189
|
}
|
|
190
|
+
export interface ServerDeleteParams {
|
|
191
|
+
namespace: string;
|
|
192
|
+
}
|
|
193
|
+
export interface ServerDownloadParams {
|
|
194
|
+
namespace: string;
|
|
195
|
+
}
|
|
196
|
+
export interface ServerGetParams {
|
|
197
|
+
namespace: string;
|
|
198
|
+
}
|
|
155
199
|
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, };
|
|
200
|
+
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, };
|
|
201
|
+
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
202
|
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, };
|
|
203
|
+
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, };
|
|
204
|
+
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
205
|
}
|
|
161
206
|
//# 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,E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;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,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,yBAAgC,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,IAAA,WAAI,EAAA,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,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,WAAW,EAAE;YACtE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,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,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AA/ED,0BA+EC;AA6LD,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,E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AAI;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;AA6LD,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/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,
|
|
@@ -50,11 +44,20 @@ import {
|
|
|
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 };
|
|
@@ -7,21 +7,20 @@ import { path } from '../../../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
export class Tools extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Search indexed tools across all connections in a namespace.
|
|
11
|
-
*
|
|
12
|
-
* automatically.
|
|
10
|
+
* Search or list indexed tools across all connections in a namespace. If 'q' query
|
|
11
|
+
* parameter is omitted, returns all tools. Filter by connectionId or server URL.
|
|
12
|
+
* Metadata constraints from service tokens are applied automatically.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
16
|
* const response = await client.beta.connect.tools.search(
|
|
17
17
|
* 'namespace',
|
|
18
|
-
* { q: 'x' },
|
|
19
18
|
* );
|
|
20
19
|
* ```
|
|
21
20
|
*/
|
|
22
21
|
search(
|
|
23
22
|
namespace: string,
|
|
24
|
-
query: ToolSearchParams,
|
|
23
|
+
query: ToolSearchParams | null | undefined = {},
|
|
25
24
|
options?: RequestOptions,
|
|
26
25
|
): APIPromise<ToolSearchResponse> {
|
|
27
26
|
return this._client.get(path`/connect/tools/${namespace}`, { query, ...options });
|
|
@@ -50,21 +49,19 @@ export namespace ToolSearchResponse {
|
|
|
50
49
|
name: string;
|
|
51
50
|
|
|
52
51
|
description?: string;
|
|
53
|
-
|
|
54
|
-
inputSchema?: { [key: string]: unknown };
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
54
|
}
|
|
58
55
|
|
|
59
56
|
export interface ToolSearchParams {
|
|
60
|
-
q: string;
|
|
61
|
-
|
|
62
57
|
connectionId?: string;
|
|
63
58
|
|
|
64
59
|
cursor?: string;
|
|
65
60
|
|
|
66
61
|
limit?: number;
|
|
67
62
|
|
|
63
|
+
q?: string;
|
|
64
|
+
|
|
68
65
|
server?: string;
|
|
69
66
|
}
|
|
70
67
|
|