@smithery/api 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/client.d.mts +9 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -7
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +14 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +14 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +25 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +23 -0
- package/core/pagination.mjs.map +1 -1
- package/lib/mcp-transport.d.mts +20 -15
- package/lib/mcp-transport.d.mts.map +1 -1
- package/lib/mcp-transport.d.ts +20 -15
- package/lib/mcp-transport.d.ts.map +1 -1
- package/lib/mcp-transport.js +39 -19
- package/lib/mcp-transport.js.map +1 -1
- package/lib/mcp-transport.mjs +37 -17
- package/lib/mcp-transport.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/connect/connect.d.mts +6 -2
- package/resources/beta/connect/connect.d.mts.map +1 -1
- package/resources/beta/connect/connect.d.ts +6 -2
- package/resources/beta/connect/connect.d.ts.map +1 -1
- package/resources/beta/connect/connect.js +4 -0
- package/resources/beta/connect/connect.js.map +1 -1
- package/resources/beta/connect/connect.mjs +4 -0
- package/resources/beta/connect/connect.mjs.map +1 -1
- package/resources/beta/connect/connections.d.mts +38 -24
- package/resources/beta/connect/connections.d.mts.map +1 -1
- package/resources/beta/connect/connections.d.ts +38 -24
- package/resources/beta/connect/connections.d.ts.map +1 -1
- package/resources/beta/connect/connections.js +21 -21
- package/resources/beta/connect/connections.js.map +1 -1
- package/resources/beta/connect/connections.mjs +21 -21
- package/resources/beta/connect/connections.mjs.map +1 -1
- package/resources/beta/connect/index.d.mts +2 -1
- package/resources/beta/connect/index.d.mts.map +1 -1
- package/resources/beta/connect/index.d.ts +2 -1
- package/resources/beta/connect/index.d.ts.map +1 -1
- package/resources/beta/connect/index.js +3 -1
- package/resources/beta/connect/index.js.map +1 -1
- package/resources/beta/connect/index.mjs +1 -0
- package/resources/beta/connect/index.mjs.map +1 -1
- package/resources/beta/connect/tools.d.mts +51 -0
- package/resources/beta/connect/tools.d.mts.map +1 -0
- package/resources/beta/connect/tools.d.ts +51 -0
- package/resources/beta/connect/tools.d.ts.map +1 -0
- package/resources/beta/connect/tools.js +26 -0
- package/resources/beta/connect/tools.js.map +1 -0
- package/resources/beta/connect/tools.mjs +22 -0
- package/resources/beta/connect/tools.mjs.map +1 -0
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/namespaces.d.mts +11 -16
- package/resources/namespaces.d.mts.map +1 -1
- package/resources/namespaces.d.ts +11 -16
- package/resources/namespaces.d.ts.map +1 -1
- package/resources/namespaces.js +12 -15
- package/resources/namespaces.js.map +1 -1
- package/resources/namespaces.mjs +12 -15
- package/resources/namespaces.mjs.map +1 -1
- package/resources/servers/deployments.d.mts +30 -27
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +30 -27
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +7 -7
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +7 -7
- package/resources/servers/deployments.mjs.map +1 -1
- package/resources/servers/index.d.mts +2 -2
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +2 -2
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/servers.d.mts +30 -30
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +30 -30
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +6 -6
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +6 -6
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/tokens.d.mts +96 -63
- package/resources/tokens.d.mts.map +1 -1
- package/resources/tokens.d.ts +96 -63
- package/resources/tokens.d.ts.map +1 -1
- package/resources/tokens.js +1 -4
- package/resources/tokens.js.map +1 -1
- package/resources/tokens.mjs +1 -4
- package/resources/tokens.mjs.map +1 -1
- package/src/client.ts +28 -5
- package/src/core/pagination.ts +47 -0
- package/src/lib/mcp-transport.ts +47 -24
- package/src/resources/beta/connect/connect.ts +14 -2
- package/src/resources/beta/connect/connections.ts +53 -35
- package/src/resources/beta/connect/index.ts +3 -1
- package/src/resources/beta/connect/tools.ts +73 -0
- package/src/resources/index.ts +13 -3
- package/src/resources/namespaces.ts +17 -17
- package/src/resources/servers/deployments.ts +45 -47
- package/src/resources/servers/index.ts +3 -3
- package/src/resources/servers/servers.ts +49 -49
- package/src/resources/tokens.ts +103 -58
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.js","sourceRoot":"","sources":["../../src/resources/servers/deployments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAqE;AACrE,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"deployments.js","sourceRoot":"","sources":["../../src/resources/servers/deployments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAqE;AACrE,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,IAAI,CAAC,aAAqB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,aAAa,cAAc,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,YAAY,aAAa,cAAc,EAC3C,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,EAAU,EAAE,MAA2B,EAAE,OAAwB;QACnE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,aAAa,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,aAAa,gBAAgB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF;AAzCD,kCAyCC"}
|
|
@@ -3,13 +3,6 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import { multipartFormRequestOptions } from "../../internal/uploads.mjs";
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
5
|
export class Deployments extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Get deployment status
|
|
8
|
-
*/
|
|
9
|
-
retrieve(id, params, options) {
|
|
10
|
-
const { qualifiedName } = params;
|
|
11
|
-
return this._client.get(path `/servers/${qualifiedName}/deployments/${id}`, options);
|
|
12
|
-
}
|
|
13
6
|
/**
|
|
14
7
|
* List deployments for a server
|
|
15
8
|
*/
|
|
@@ -22,6 +15,13 @@ export class Deployments extends APIResource {
|
|
|
22
15
|
deploy(qualifiedName, body, options) {
|
|
23
16
|
return this._client.put(path `/servers/${qualifiedName}/deployments`, multipartFormRequestOptions({ body, ...options }, this._client));
|
|
24
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Get deployment status
|
|
20
|
+
*/
|
|
21
|
+
get(id, params, options) {
|
|
22
|
+
const { qualifiedName } = params;
|
|
23
|
+
return this._client.get(path `/servers/${qualifiedName}/deployments/${id}`, options);
|
|
24
|
+
}
|
|
25
25
|
/**
|
|
26
26
|
* Use id='latest' to resume the most recent deployment
|
|
27
27
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.mjs","sourceRoot":"","sources":["../../src/resources/servers/deployments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"deployments.mjs","sourceRoot":"","sources":["../../src/resources/servers/deployments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,IAAI,CAAC,aAAqB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,aAAa,cAAc,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,YAAY,aAAa,cAAc,EAC3C,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,EAAU,EAAE,MAA2B,EAAE,OAAwB;QACnE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,aAAa,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,aAAa,gBAAgB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Deployments, type DeployPayload, type ExternalDeployPayload, type HostedDeployPayload, type ServerCard, type StdioDeployPayload, type
|
|
1
|
+
export { Deployments, type DeployPayload, type ExternalDeployPayload, type HostedDeployPayload, type ServerCard, type StdioDeployPayload, type DeploymentListResponse, type DeploymentDeployResponse, type DeploymentGetResponse, type DeploymentResumeResponse, type DeploymentDeployParams, type DeploymentGetParams, type DeploymentResumeParams, } from "./deployments.mjs";
|
|
2
2
|
export { Logs, type LogListResponse, type LogListParams } from "./logs.mjs";
|
|
3
3
|
export { Secrets, type SecretListResponse, type SecretDeleteResponse, type SecretSetResponse, type SecretDeleteParams, type SecretSetParams, } from "./secrets.mjs";
|
|
4
|
-
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type
|
|
4
|
+
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerListResponse, type ServerDeleteResponse, type ServerGetResponse, type ServerListParams, type ServerListResponsesSmitheryPage, } from "./servers.mjs";
|
|
5
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/servers/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/servers/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACrB;OACM,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,GACrC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Deployments, type DeployPayload, type ExternalDeployPayload, type HostedDeployPayload, type ServerCard, type StdioDeployPayload, type
|
|
1
|
+
export { Deployments, type DeployPayload, type ExternalDeployPayload, type HostedDeployPayload, type ServerCard, type StdioDeployPayload, type DeploymentListResponse, type DeploymentDeployResponse, type DeploymentGetResponse, type DeploymentResumeResponse, type DeploymentDeployParams, type DeploymentGetParams, type DeploymentResumeParams, } from "./deployments.js";
|
|
2
2
|
export { Logs, type LogListResponse, type LogListParams } from "./logs.js";
|
|
3
3
|
export { Secrets, type SecretListResponse, type SecretDeleteResponse, type SecretSetResponse, type SecretDeleteParams, type SecretSetParams, } from "./secrets.js";
|
|
4
|
-
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type
|
|
4
|
+
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerListResponse, type ServerDeleteResponse, type ServerGetResponse, type ServerListParams, type ServerListResponsesSmitheryPage, } from "./servers.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/servers/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/servers/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACrB;OACM,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,GACrC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as DeploymentsAPI from "./deployments.mjs";
|
|
3
|
-
import { DeployPayload, DeploymentDeployParams, DeploymentDeployResponse,
|
|
3
|
+
import { DeployPayload, DeploymentDeployParams, DeploymentDeployResponse, DeploymentGetParams, DeploymentGetResponse, 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
6
|
import * as SecretsAPI from "./secrets.mjs";
|
|
@@ -12,10 +12,6 @@ export declare class Servers extends APIResource {
|
|
|
12
12
|
deployments: DeploymentsAPI.Deployments;
|
|
13
13
|
logs: LogsAPI.Logs;
|
|
14
14
|
secrets: SecretsAPI.Secrets;
|
|
15
|
-
/**
|
|
16
|
-
* Get a single server by its qualified name.
|
|
17
|
-
*/
|
|
18
|
-
retrieve(qualifiedName: string, options?: RequestOptions): APIPromise<ServerRetrieveResponse>;
|
|
19
15
|
/**
|
|
20
16
|
* Get a paginated list of all servers. Use the `q` parameter to search.
|
|
21
17
|
*/
|
|
@@ -28,6 +24,10 @@ export declare class Servers extends APIResource {
|
|
|
28
24
|
* Download the MCPB bundle for the latest successful stdio deployment
|
|
29
25
|
*/
|
|
30
26
|
download(qualifiedName: string, options?: RequestOptions): APIPromise<Response>;
|
|
27
|
+
/**
|
|
28
|
+
* Get a single server by its qualified name.
|
|
29
|
+
*/
|
|
30
|
+
get(qualifiedName: string, options?: RequestOptions): APIPromise<ServerGetResponse>;
|
|
31
31
|
}
|
|
32
32
|
export type ServerListResponsesSmitheryPage = SmitheryPage<ServerListResponse>;
|
|
33
33
|
/**
|
|
@@ -77,18 +77,36 @@ export declare namespace ProjectConfig {
|
|
|
77
77
|
outputDirectory?: string;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
export interface
|
|
81
|
-
|
|
80
|
+
export interface ServerListResponse {
|
|
81
|
+
id: string;
|
|
82
|
+
createdAt: string;
|
|
83
|
+
description: string;
|
|
84
|
+
displayName: string;
|
|
85
|
+
homepage: string;
|
|
86
|
+
iconUrl: string | null;
|
|
87
|
+
isDeployed: boolean;
|
|
88
|
+
owner: string | null;
|
|
89
|
+
qualifiedName: string;
|
|
90
|
+
remote: boolean | null;
|
|
91
|
+
useCount: number;
|
|
92
|
+
verified: boolean;
|
|
93
|
+
}
|
|
94
|
+
export interface ServerDeleteResponse {
|
|
95
|
+
qualifiedName: string;
|
|
96
|
+
success: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface ServerGetResponse {
|
|
99
|
+
connections: Array<ServerGetResponse.StdioConnection | ServerGetResponse.HTTPConnection>;
|
|
82
100
|
deploymentUrl: string | null;
|
|
83
101
|
description: string;
|
|
84
102
|
displayName: string;
|
|
85
103
|
iconUrl: string | null;
|
|
86
104
|
qualifiedName: string;
|
|
87
105
|
remote: boolean;
|
|
88
|
-
security:
|
|
89
|
-
tools: Array<
|
|
106
|
+
security: ServerGetResponse.Security | null;
|
|
107
|
+
tools: Array<ServerGetResponse.Tool> | null;
|
|
90
108
|
}
|
|
91
|
-
export declare namespace
|
|
109
|
+
export declare namespace ServerGetResponse {
|
|
92
110
|
interface StdioConnection {
|
|
93
111
|
configSchema: {
|
|
94
112
|
[key: string]: unknown;
|
|
@@ -122,24 +140,6 @@ export declare namespace ServerRetrieveResponse {
|
|
|
122
140
|
}
|
|
123
141
|
}
|
|
124
142
|
}
|
|
125
|
-
export interface ServerListResponse {
|
|
126
|
-
id: string;
|
|
127
|
-
createdAt: string;
|
|
128
|
-
description: string;
|
|
129
|
-
displayName: string;
|
|
130
|
-
homepage: string;
|
|
131
|
-
iconUrl: string | null;
|
|
132
|
-
isDeployed: boolean;
|
|
133
|
-
owner: string | null;
|
|
134
|
-
qualifiedName: string;
|
|
135
|
-
remote: boolean | null;
|
|
136
|
-
useCount: number;
|
|
137
|
-
verified: boolean;
|
|
138
|
-
}
|
|
139
|
-
export interface ServerDeleteResponse {
|
|
140
|
-
qualifiedName: string;
|
|
141
|
-
success: boolean;
|
|
142
|
-
}
|
|
143
143
|
export interface ServerListParams extends SmitheryPageParams {
|
|
144
144
|
ids?: Array<string>;
|
|
145
145
|
isDeployed?: '0' | '1' | 'true' | 'false';
|
|
@@ -153,8 +153,8 @@ export interface ServerListParams extends SmitheryPageParams {
|
|
|
153
153
|
verified?: '0' | '1' | 'true' | 'false';
|
|
154
154
|
}
|
|
155
155
|
export declare namespace Servers {
|
|
156
|
-
export { type BuildConfig as BuildConfig, type DeploymentTarget as DeploymentTarget, type ProjectConfig as ProjectConfig, type
|
|
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
|
|
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, };
|
|
158
158
|
export { Logs as Logs, type LogListResponse as LogListResponse, type LogListParams as LogListParams };
|
|
159
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, };
|
|
160
160
|
}
|
|
@@ -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,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,
|
|
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;IAEnE;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,I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BAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,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,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as DeploymentsAPI from "./deployments.js";
|
|
3
|
-
import { DeployPayload, DeploymentDeployParams, DeploymentDeployResponse,
|
|
3
|
+
import { DeployPayload, DeploymentDeployParams, DeploymentDeployResponse, DeploymentGetParams, DeploymentGetResponse, 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
6
|
import * as SecretsAPI from "./secrets.js";
|
|
@@ -12,10 +12,6 @@ export declare class Servers extends APIResource {
|
|
|
12
12
|
deployments: DeploymentsAPI.Deployments;
|
|
13
13
|
logs: LogsAPI.Logs;
|
|
14
14
|
secrets: SecretsAPI.Secrets;
|
|
15
|
-
/**
|
|
16
|
-
* Get a single server by its qualified name.
|
|
17
|
-
*/
|
|
18
|
-
retrieve(qualifiedName: string, options?: RequestOptions): APIPromise<ServerRetrieveResponse>;
|
|
19
15
|
/**
|
|
20
16
|
* Get a paginated list of all servers. Use the `q` parameter to search.
|
|
21
17
|
*/
|
|
@@ -28,6 +24,10 @@ export declare class Servers extends APIResource {
|
|
|
28
24
|
* Download the MCPB bundle for the latest successful stdio deployment
|
|
29
25
|
*/
|
|
30
26
|
download(qualifiedName: string, options?: RequestOptions): APIPromise<Response>;
|
|
27
|
+
/**
|
|
28
|
+
* Get a single server by its qualified name.
|
|
29
|
+
*/
|
|
30
|
+
get(qualifiedName: string, options?: RequestOptions): APIPromise<ServerGetResponse>;
|
|
31
31
|
}
|
|
32
32
|
export type ServerListResponsesSmitheryPage = SmitheryPage<ServerListResponse>;
|
|
33
33
|
/**
|
|
@@ -77,18 +77,36 @@ export declare namespace ProjectConfig {
|
|
|
77
77
|
outputDirectory?: string;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
export interface
|
|
81
|
-
|
|
80
|
+
export interface ServerListResponse {
|
|
81
|
+
id: string;
|
|
82
|
+
createdAt: string;
|
|
83
|
+
description: string;
|
|
84
|
+
displayName: string;
|
|
85
|
+
homepage: string;
|
|
86
|
+
iconUrl: string | null;
|
|
87
|
+
isDeployed: boolean;
|
|
88
|
+
owner: string | null;
|
|
89
|
+
qualifiedName: string;
|
|
90
|
+
remote: boolean | null;
|
|
91
|
+
useCount: number;
|
|
92
|
+
verified: boolean;
|
|
93
|
+
}
|
|
94
|
+
export interface ServerDeleteResponse {
|
|
95
|
+
qualifiedName: string;
|
|
96
|
+
success: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface ServerGetResponse {
|
|
99
|
+
connections: Array<ServerGetResponse.StdioConnection | ServerGetResponse.HTTPConnection>;
|
|
82
100
|
deploymentUrl: string | null;
|
|
83
101
|
description: string;
|
|
84
102
|
displayName: string;
|
|
85
103
|
iconUrl: string | null;
|
|
86
104
|
qualifiedName: string;
|
|
87
105
|
remote: boolean;
|
|
88
|
-
security:
|
|
89
|
-
tools: Array<
|
|
106
|
+
security: ServerGetResponse.Security | null;
|
|
107
|
+
tools: Array<ServerGetResponse.Tool> | null;
|
|
90
108
|
}
|
|
91
|
-
export declare namespace
|
|
109
|
+
export declare namespace ServerGetResponse {
|
|
92
110
|
interface StdioConnection {
|
|
93
111
|
configSchema: {
|
|
94
112
|
[key: string]: unknown;
|
|
@@ -122,24 +140,6 @@ export declare namespace ServerRetrieveResponse {
|
|
|
122
140
|
}
|
|
123
141
|
}
|
|
124
142
|
}
|
|
125
|
-
export interface ServerListResponse {
|
|
126
|
-
id: string;
|
|
127
|
-
createdAt: string;
|
|
128
|
-
description: string;
|
|
129
|
-
displayName: string;
|
|
130
|
-
homepage: string;
|
|
131
|
-
iconUrl: string | null;
|
|
132
|
-
isDeployed: boolean;
|
|
133
|
-
owner: string | null;
|
|
134
|
-
qualifiedName: string;
|
|
135
|
-
remote: boolean | null;
|
|
136
|
-
useCount: number;
|
|
137
|
-
verified: boolean;
|
|
138
|
-
}
|
|
139
|
-
export interface ServerDeleteResponse {
|
|
140
|
-
qualifiedName: string;
|
|
141
|
-
success: boolean;
|
|
142
|
-
}
|
|
143
143
|
export interface ServerListParams extends SmitheryPageParams {
|
|
144
144
|
ids?: Array<string>;
|
|
145
145
|
isDeployed?: '0' | '1' | 'true' | 'false';
|
|
@@ -153,8 +153,8 @@ export interface ServerListParams extends SmitheryPageParams {
|
|
|
153
153
|
verified?: '0' | '1' | 'true' | 'false';
|
|
154
154
|
}
|
|
155
155
|
export declare namespace Servers {
|
|
156
|
-
export { type BuildConfig as BuildConfig, type DeploymentTarget as DeploymentTarget, type ProjectConfig as ProjectConfig, type
|
|
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
|
|
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, };
|
|
158
158
|
export { Logs as Logs, type LogListResponse as LogListResponse, type LogListParams as LogListParams };
|
|
159
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, };
|
|
160
160
|
}
|
|
@@ -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,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,
|
|
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;IAEnE;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,kBAAkB,CAAC;IAInE;;OAEG;IACH,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIzF;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAA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U,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,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,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -20,12 +20,6 @@ class Servers extends resource_1.APIResource {
|
|
|
20
20
|
this.logs = new LogsAPI.Logs(this._client);
|
|
21
21
|
this.secrets = new SecretsAPI.Secrets(this._client);
|
|
22
22
|
}
|
|
23
|
-
/**
|
|
24
|
-
* Get a single server by its qualified name.
|
|
25
|
-
*/
|
|
26
|
-
retrieve(qualifiedName, options) {
|
|
27
|
-
return this._client.get((0, path_1.path) `/servers/${qualifiedName}`, options);
|
|
28
|
-
}
|
|
29
23
|
/**
|
|
30
24
|
* Get a paginated list of all servers. Use the `q` parameter to search.
|
|
31
25
|
*/
|
|
@@ -48,6 +42,12 @@ class Servers extends resource_1.APIResource {
|
|
|
48
42
|
__binaryResponse: true,
|
|
49
43
|
});
|
|
50
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Get a single server by its qualified name.
|
|
47
|
+
*/
|
|
48
|
+
get(qualifiedName, options) {
|
|
49
|
+
return this._client.get((0, path_1.path) `/servers/${qualifiedName}`, options);
|
|
50
|
+
}
|
|
51
51
|
}
|
|
52
52
|
exports.Servers = Servers;
|
|
53
53
|
Servers.Deployments = deployments_1.Deployments;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servers.js","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAcuB;AACvB,2DAAkC;AAClC,oCAA8D;AAC9D,iEAAwC;AACxC,0CAOmB;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;IAoCrE,CAAC;IAlCC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"servers.js","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAcuB;AACvB,2DAAkC;AAClC,oCAA8D;AAC9D,iEAAwC;AACxC,0CAOmB;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;IAoCrE,CAAC;IAlCC;;OAEG;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;;OAEG;IACH,MAAM,CAAC,aAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,aAAa,WAAW,EAAE;YAChE,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;;OAEG;IACH,GAAG,CAAC,aAAqB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAvCD,0BAuCC;AAiLD,OAAO,CAAC,WAAW,GAAG,yBAAW,CAAC;AAClC,OAAO,CAAC,IAAI,GAAG,WAAI,CAAC;AACpB,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -16,12 +16,6 @@ export class Servers extends APIResource {
|
|
|
16
16
|
this.logs = new LogsAPI.Logs(this._client);
|
|
17
17
|
this.secrets = new SecretsAPI.Secrets(this._client);
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Get a single server by its qualified name.
|
|
21
|
-
*/
|
|
22
|
-
retrieve(qualifiedName, options) {
|
|
23
|
-
return this._client.get(path `/servers/${qualifiedName}`, options);
|
|
24
|
-
}
|
|
25
19
|
/**
|
|
26
20
|
* Get a paginated list of all servers. Use the `q` parameter to search.
|
|
27
21
|
*/
|
|
@@ -44,6 +38,12 @@ export class Servers extends APIResource {
|
|
|
44
38
|
__binaryResponse: true,
|
|
45
39
|
});
|
|
46
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Get a single server by its qualified name.
|
|
43
|
+
*/
|
|
44
|
+
get(qualifiedName, options) {
|
|
45
|
+
return this._client.get(path `/servers/${qualifiedName}`, options);
|
|
46
|
+
}
|
|
47
47
|
}
|
|
48
48
|
Servers.Deployments = Deployments;
|
|
49
49
|
Servers.Logs = Logs;
|
|
@@ -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,EASL,WAAW,GAKZ;OACM,KAAK,OAAO;OACZ,EAAkC,IAAI,EAAE;OACxC,KAAK,UAAU;OACf,EAML,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;IAoCrE,CAAC;IAlCC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"servers.mjs","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":"AAAA,s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AC,aAAqB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAiLD,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;AAClC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;AACpB,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
package/resources/tokens.d.mts
CHANGED
|
@@ -9,57 +9,83 @@ export declare class Tokens extends APIResource {
|
|
|
9
9
|
* @example
|
|
10
10
|
* ```ts
|
|
11
11
|
* const createTokenResponse = await client.tokens.create({
|
|
12
|
-
*
|
|
13
|
-
* connections: { can: ['read', 'write'] },
|
|
14
|
-
* 'connections.rpc': { can: ['write'] },
|
|
15
|
-
* },
|
|
12
|
+
* allow: {},
|
|
16
13
|
* ttlSeconds: 3600,
|
|
17
14
|
* });
|
|
18
15
|
* ```
|
|
19
16
|
*/
|
|
20
17
|
create(body: TokenCreateParams, options?: RequestOptions): APIPromise<CreateTokenResponse>;
|
|
21
18
|
}
|
|
22
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Permission action. 'read' allows reading/listing. 'write' allows
|
|
21
|
+
* create/modify/delete.
|
|
22
|
+
*/
|
|
23
|
+
export type Action = 'read' | 'write';
|
|
24
|
+
/**
|
|
25
|
+
* Permission grants with per-resource scoping. Each resource defines its own
|
|
26
|
+
* namespaces and constraints.
|
|
27
|
+
*/
|
|
28
|
+
export interface Allow {
|
|
29
|
+
/**
|
|
30
|
+
* Scope for managing MCP connections.
|
|
31
|
+
*/
|
|
32
|
+
connections?: ConnectionScope;
|
|
33
|
+
/**
|
|
34
|
+
* Scope for deployment operations.
|
|
35
|
+
*/
|
|
36
|
+
deployments?: ResourceScope;
|
|
37
|
+
/**
|
|
38
|
+
* Scope for namespace management.
|
|
39
|
+
*/
|
|
40
|
+
namespaces?: ResourceScope;
|
|
41
|
+
/**
|
|
42
|
+
* Scope for making RPC calls on connections.
|
|
43
|
+
*/
|
|
44
|
+
rpc?: RpcScope;
|
|
45
|
+
/**
|
|
46
|
+
* Scope for server metadata and configuration.
|
|
47
|
+
*/
|
|
48
|
+
servers?: ResourceScope;
|
|
23
49
|
/**
|
|
24
|
-
*
|
|
50
|
+
* Scope for token creation.
|
|
25
51
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
52
|
+
tokens?: ResourceScope;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Scope for connection operations.
|
|
56
|
+
*/
|
|
57
|
+
export interface ConnectionScope {
|
|
58
|
+
/**
|
|
59
|
+
* Actions allowed on connections.
|
|
60
|
+
*/
|
|
61
|
+
actions: Array<Action>;
|
|
62
|
+
/**
|
|
63
|
+
* Namespaces this scope applies to. Use '\*' for all namespaces.
|
|
64
|
+
*/
|
|
65
|
+
namespaces: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Filter access to connections with matching metadata. All keys must match (AND
|
|
68
|
+
* semantics).
|
|
69
|
+
*/
|
|
70
|
+
metadata?: {
|
|
71
|
+
[key: string]: string;
|
|
28
72
|
};
|
|
73
|
+
}
|
|
74
|
+
export interface CreateTokenRequest {
|
|
29
75
|
/**
|
|
30
|
-
*
|
|
76
|
+
* Per-resource permission grants. Format: { [resource]: { actions: [...],
|
|
77
|
+
* namespaces: [...], metadata?: {...} } }
|
|
31
78
|
*/
|
|
32
|
-
|
|
79
|
+
allow: Allow;
|
|
33
80
|
/**
|
|
34
|
-
*
|
|
81
|
+
* Token TTL in seconds. Required. Max 86400 (24 hours).
|
|
35
82
|
*/
|
|
36
|
-
|
|
83
|
+
ttlSeconds: number;
|
|
37
84
|
/**
|
|
38
85
|
* Profile to scope the token to. If not provided, uses the default profile.
|
|
39
86
|
*/
|
|
40
87
|
profileSlug?: string;
|
|
41
88
|
}
|
|
42
|
-
export declare namespace CreateTokenRequest {
|
|
43
|
-
interface Permissions {
|
|
44
|
-
/**
|
|
45
|
-
* Actions granted on this subject.
|
|
46
|
-
*/
|
|
47
|
-
can: Array<'read' | 'write'>;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Optional constraints to limit token access.
|
|
51
|
-
*/
|
|
52
|
-
interface Constraints {
|
|
53
|
-
/**
|
|
54
|
-
* Limit access to specific namespace IDs.
|
|
55
|
-
*/
|
|
56
|
-
namespaceIds?: Array<string>;
|
|
57
|
-
/**
|
|
58
|
-
* Limit access to specific server qualified names.
|
|
59
|
-
*/
|
|
60
|
-
serverQualifiedNames?: Array<string>;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
89
|
export interface CreateTokenResponse {
|
|
64
90
|
/**
|
|
65
91
|
* The signed service token (PASETO v4).
|
|
@@ -70,48 +96,55 @@ export interface CreateTokenResponse {
|
|
|
70
96
|
*/
|
|
71
97
|
expiresAt: string;
|
|
72
98
|
}
|
|
73
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Scope for resource operations.
|
|
101
|
+
*/
|
|
102
|
+
export interface ResourceScope {
|
|
74
103
|
/**
|
|
75
|
-
*
|
|
104
|
+
* Actions allowed on this resource.
|
|
76
105
|
*/
|
|
77
|
-
|
|
78
|
-
|
|
106
|
+
actions: Array<Action>;
|
|
107
|
+
/**
|
|
108
|
+
* Namespaces this scope applies to. Use '\*' for all namespaces.
|
|
109
|
+
*/
|
|
110
|
+
namespaces: Array<string>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Scope for RPC operations on connections.
|
|
114
|
+
*/
|
|
115
|
+
export interface RpcScope {
|
|
116
|
+
/**
|
|
117
|
+
* Actions allowed for RPC calls.
|
|
118
|
+
*/
|
|
119
|
+
actions: Array<Action>;
|
|
120
|
+
/**
|
|
121
|
+
* Namespaces this scope applies to. Use '\*' for all namespaces.
|
|
122
|
+
*/
|
|
123
|
+
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;
|
|
79
130
|
};
|
|
131
|
+
}
|
|
132
|
+
export interface TokenCreateParams {
|
|
80
133
|
/**
|
|
81
|
-
*
|
|
134
|
+
* Per-resource permission grants. Format: { [resource]: { actions: [...],
|
|
135
|
+
* namespaces: [...], metadata?: {...} } }
|
|
82
136
|
*/
|
|
83
|
-
|
|
137
|
+
allow: Allow;
|
|
84
138
|
/**
|
|
85
|
-
*
|
|
139
|
+
* Token TTL in seconds. Required. Max 86400 (24 hours).
|
|
86
140
|
*/
|
|
87
|
-
|
|
141
|
+
ttlSeconds: number;
|
|
88
142
|
/**
|
|
89
143
|
* Profile to scope the token to. If not provided, uses the default profile.
|
|
90
144
|
*/
|
|
91
145
|
profileSlug?: string;
|
|
92
146
|
}
|
|
93
|
-
export declare namespace TokenCreateParams {
|
|
94
|
-
interface Permissions {
|
|
95
|
-
/**
|
|
96
|
-
* Actions granted on this subject.
|
|
97
|
-
*/
|
|
98
|
-
can: Array<'read' | 'write'>;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Optional constraints to limit token access.
|
|
102
|
-
*/
|
|
103
|
-
interface Constraints {
|
|
104
|
-
/**
|
|
105
|
-
* Limit access to specific namespace IDs.
|
|
106
|
-
*/
|
|
107
|
-
namespaceIds?: Array<string>;
|
|
108
|
-
/**
|
|
109
|
-
* Limit access to specific server qualified names.
|
|
110
|
-
*/
|
|
111
|
-
serverQualifiedNames?: Array<string>;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
147
|
export declare namespace Tokens {
|
|
115
|
-
export { type CreateTokenRequest as CreateTokenRequest, type CreateTokenResponse as CreateTokenResponse, type TokenCreateParams as TokenCreateParams, };
|
|
148
|
+
export { type Action as Action, type Allow as Allow, type ConnectionScope as ConnectionScope, type CreateTokenRequest as CreateTokenRequest, type CreateTokenResponse as CreateTokenResponse, type ResourceScope as ResourceScope, type RpcScope as RpcScope, type TokenCreateParams as TokenCreateParams, };
|
|
116
149
|
}
|
|
117
150
|
//# sourceMappingURL=tokens.d.mts.map
|