@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
|
@@ -8,29 +8,63 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
8
8
|
class Deployments extends resource_1.APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* List deployments for a server
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const deployments = await client.servers.deployments.list(
|
|
15
|
+
* 'server',
|
|
16
|
+
* { namespace: 'namespace' },
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
11
19
|
*/
|
|
12
|
-
list(
|
|
13
|
-
|
|
20
|
+
list(server, params, options) {
|
|
21
|
+
const { namespace } = params;
|
|
22
|
+
return this._client.get((0, path_1.path) `/servers/${namespace}/${server}/deployments`, options);
|
|
14
23
|
}
|
|
15
24
|
/**
|
|
16
25
|
* Upload and deploy an MCP server (hosted or external)
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const response = await client.servers.deployments.deploy(
|
|
30
|
+
* 'server',
|
|
31
|
+
* { namespace: 'namespace', payload: 'payload' },
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
17
34
|
*/
|
|
18
|
-
deploy(
|
|
19
|
-
|
|
35
|
+
deploy(server, params, options) {
|
|
36
|
+
const { namespace, ...body } = params;
|
|
37
|
+
return this._client.put((0, path_1.path) `/servers/${namespace}/${server}/deployments`, (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
20
38
|
}
|
|
21
39
|
/**
|
|
22
40
|
* Get deployment status
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const deployment = await client.servers.deployments.get(
|
|
45
|
+
* 'id',
|
|
46
|
+
* { namespace: 'namespace', server: 'server' },
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
23
49
|
*/
|
|
24
50
|
get(id, params, options) {
|
|
25
|
-
const {
|
|
26
|
-
return this._client.get((0, path_1.path) `/servers/${
|
|
51
|
+
const { namespace, server } = params;
|
|
52
|
+
return this._client.get((0, path_1.path) `/servers/${namespace}/${server}/deployments/${id}`, options);
|
|
27
53
|
}
|
|
28
54
|
/**
|
|
29
55
|
* Use id='latest' to resume the most recent deployment
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const response = await client.servers.deployments.resume(
|
|
60
|
+
* 'id',
|
|
61
|
+
* { namespace: 'namespace', server: 'server' },
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
30
64
|
*/
|
|
31
65
|
resume(id, params, options) {
|
|
32
|
-
const {
|
|
33
|
-
return this._client.post((0, path_1.path) `/servers/${
|
|
66
|
+
const { namespace, server } = params;
|
|
67
|
+
return this._client.post((0, path_1.path) `/servers/${namespace}/${server}/deployments/${id}/resume`, options);
|
|
34
68
|
}
|
|
35
69
|
}
|
|
36
70
|
exports.Deployments = Deployments;
|
|
@@ -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
|
|
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;;;;;;;;;;OAUG;IACH,IAAI,CACF,MAAc,EACd,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,cAAc,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAc,EACd,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,cAAc,EACjD,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CAAC,EAAU,EAAE,MAA2B,EAAE,OAAwB;QACnE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAU,EACV,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,gBAAgB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF;AA/ED,kCA+EC"}
|
|
@@ -5,29 +5,63 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
5
5
|
export class Deployments extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* List deployments for a server
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const deployments = await client.servers.deployments.list(
|
|
12
|
+
* 'server',
|
|
13
|
+
* { namespace: 'namespace' },
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
8
16
|
*/
|
|
9
|
-
list(
|
|
10
|
-
|
|
17
|
+
list(server, params, options) {
|
|
18
|
+
const { namespace } = params;
|
|
19
|
+
return this._client.get(path `/servers/${namespace}/${server}/deployments`, options);
|
|
11
20
|
}
|
|
12
21
|
/**
|
|
13
22
|
* Upload and deploy an MCP server (hosted or external)
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const response = await client.servers.deployments.deploy(
|
|
27
|
+
* 'server',
|
|
28
|
+
* { namespace: 'namespace', payload: 'payload' },
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
14
31
|
*/
|
|
15
|
-
deploy(
|
|
16
|
-
|
|
32
|
+
deploy(server, params, options) {
|
|
33
|
+
const { namespace, ...body } = params;
|
|
34
|
+
return this._client.put(path `/servers/${namespace}/${server}/deployments`, multipartFormRequestOptions({ body, ...options }, this._client));
|
|
17
35
|
}
|
|
18
36
|
/**
|
|
19
37
|
* Get deployment status
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const deployment = await client.servers.deployments.get(
|
|
42
|
+
* 'id',
|
|
43
|
+
* { namespace: 'namespace', server: 'server' },
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
20
46
|
*/
|
|
21
47
|
get(id, params, options) {
|
|
22
|
-
const {
|
|
23
|
-
return this._client.get(path `/servers/${
|
|
48
|
+
const { namespace, server } = params;
|
|
49
|
+
return this._client.get(path `/servers/${namespace}/${server}/deployments/${id}`, options);
|
|
24
50
|
}
|
|
25
51
|
/**
|
|
26
52
|
* Use id='latest' to resume the most recent deployment
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const response = await client.servers.deployments.resume(
|
|
57
|
+
* 'id',
|
|
58
|
+
* { namespace: 'namespace', server: 'server' },
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
27
61
|
*/
|
|
28
62
|
resume(id, params, options) {
|
|
29
|
-
const {
|
|
30
|
-
return this._client.post(path `/servers/${
|
|
63
|
+
const { namespace, server } = params;
|
|
64
|
+
return this._client.post(path `/servers/${namespace}/${server}/deployments/${id}/resume`, options);
|
|
31
65
|
}
|
|
32
66
|
}
|
|
33
67
|
//# sourceMappingURL=deployments.mjs.map
|
|
@@ -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
|
|
1
|
+
{"version":3,"file":"deployments.mjs","sourceRoot":"","sources":["../../src/resources/servers/deployments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,2BA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@@
|
|
|
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";
|
|
1
|
+
export { Deployments, type DeployPayload, type ExternalDeployPayload, type HostedDeployPayload, type ServerCard, type StdioDeployPayload, type DeploymentListResponse, type DeploymentDeployResponse, type DeploymentGetResponse, type DeploymentResumeResponse, type DeploymentListParams, type DeploymentDeployParams, type DeploymentGetParams, type DeploymentResumeParams, } from "./deployments.mjs";
|
|
2
2
|
export { Logs, type LogListResponse, type LogListParams } from "./logs.mjs";
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export { Repo, type RepoDeleteResponse, type RepoGetResponse, type RepoSetResponse, type RepoDeleteParams, type RepoGetParams, type RepoSetParams, } from "./repo.mjs";
|
|
4
|
+
export { Secrets, type SecretListResponse, type SecretDeleteResponse, type SecretSetResponse, type SecretListParams, type SecretDeleteParams, type SecretSetParams, } from "./secrets.mjs";
|
|
5
|
+
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerListResponse, type ServerDeleteResponse, type ServerGetResponse, type ServerListParams, type ServerDeleteParams, type ServerDownloadParams, type ServerGetParams, type ServerListResponsesSmitheryPage, } from "./servers.mjs";
|
|
5
6
|
//# 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,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
|
+
{"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,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,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,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,+BAA+B,GACrC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
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";
|
|
1
|
+
export { Deployments, type DeployPayload, type ExternalDeployPayload, type HostedDeployPayload, type ServerCard, type StdioDeployPayload, type DeploymentListResponse, type DeploymentDeployResponse, type DeploymentGetResponse, type DeploymentResumeResponse, type DeploymentListParams, type DeploymentDeployParams, type DeploymentGetParams, type DeploymentResumeParams, } from "./deployments.js";
|
|
2
2
|
export { Logs, type LogListResponse, type LogListParams } from "./logs.js";
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export { Repo, type RepoDeleteResponse, type RepoGetResponse, type RepoSetResponse, type RepoDeleteParams, type RepoGetParams, type RepoSetParams, } from "./repo.js";
|
|
4
|
+
export { Secrets, type SecretListResponse, type SecretDeleteResponse, type SecretSetResponse, type SecretListParams, type SecretDeleteParams, type SecretSetParams, } from "./secrets.js";
|
|
5
|
+
export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerListResponse, type ServerDeleteResponse, type ServerGetResponse, type ServerListParams, type ServerDeleteParams, type ServerDownloadParams, type ServerGetParams, type ServerListResponsesSmitheryPage, } from "./servers.js";
|
|
5
6
|
//# 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,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
|
+
{"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,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,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,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,+BAA+B,GACrC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Servers = exports.Secrets = exports.Logs = exports.Deployments = void 0;
|
|
4
|
+
exports.Servers = exports.Secrets = exports.Repo = exports.Logs = exports.Deployments = void 0;
|
|
5
5
|
var deployments_1 = require("./deployments.js");
|
|
6
6
|
Object.defineProperty(exports, "Deployments", { enumerable: true, get: function () { return deployments_1.Deployments; } });
|
|
7
7
|
var logs_1 = require("./logs.js");
|
|
8
8
|
Object.defineProperty(exports, "Logs", { enumerable: true, get: function () { return logs_1.Logs; } });
|
|
9
|
+
var repo_1 = require("./repo.js");
|
|
10
|
+
Object.defineProperty(exports, "Repo", { enumerable: true, get: function () { return repo_1.Repo; } });
|
|
9
11
|
var secrets_1 = require("./secrets.js");
|
|
10
12
|
Object.defineProperty(exports, "Secrets", { enumerable: true, get: function () { return secrets_1.Secrets; } });
|
|
11
13
|
var servers_1 = require("./servers.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/servers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/servers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAeuB;AAdrB,0GAAA,WAAW,OAAA;AAeb,kCAAwE;AAA/D,4FAAA,IAAI,OAAA;AACb,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,wCAamB;AAZjB,kGAAA,OAAO,OAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Deployments, } from "./deployments.mjs";
|
|
3
3
|
export { Logs } from "./logs.mjs";
|
|
4
|
+
export { Repo, } from "./repo.mjs";
|
|
4
5
|
export { Secrets, } from "./secrets.mjs";
|
|
5
6
|
export { Servers, } from "./servers.mjs";
|
|
6
7
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/servers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/servers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAcZ;OACM,EAAE,IAAI,EAA4C;OAClD,EACL,IAAI,GAOL;OACM,EACL,OAAO,GAOR;OACM,EACL,OAAO,GAYR"}
|
|
@@ -5,8 +5,15 @@ export declare class Logs extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Fetch recent runtime logs for the server's deployed Worker, grouped by
|
|
7
7
|
* invocation (requires ownership).
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const logs = await client.servers.logs.list('server', {
|
|
12
|
+
* namespace: 'namespace',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
8
15
|
*/
|
|
9
|
-
list(
|
|
16
|
+
list(server: string, params: LogListParams, options?: RequestOptions): APIPromise<LogListResponse>;
|
|
10
17
|
}
|
|
11
18
|
export interface LogListResponse {
|
|
12
19
|
invocations: Array<LogListResponse.Invocation>;
|
|
@@ -53,15 +60,19 @@ export declare namespace LogListResponse {
|
|
|
53
60
|
}
|
|
54
61
|
export interface LogListParams {
|
|
55
62
|
/**
|
|
56
|
-
*
|
|
63
|
+
* Path param
|
|
64
|
+
*/
|
|
65
|
+
namespace: string;
|
|
66
|
+
/**
|
|
67
|
+
* Query param: Start of time range (ISO 8601).
|
|
57
68
|
*/
|
|
58
69
|
from?: string;
|
|
59
70
|
/**
|
|
60
|
-
* Max invocations to return. Defaults to 50.
|
|
71
|
+
* Query param: Max invocations to return. Defaults to 50.
|
|
61
72
|
*/
|
|
62
73
|
limit?: number;
|
|
63
74
|
/**
|
|
64
|
-
* End of time range (ISO 8601).
|
|
75
|
+
* Query param: End of time range (ISO 8601).
|
|
65
76
|
*/
|
|
66
77
|
to?: string;
|
|
67
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.mts","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC
|
|
1
|
+
{"version":3,"file":"logs.d.mts","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAInG;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;IAE/C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,eAAe,CAAC;IAC/B,UAAiB,UAAU;QACzB,EAAE,EAA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,15 @@ export declare class Logs extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Fetch recent runtime logs for the server's deployed Worker, grouped by
|
|
7
7
|
* invocation (requires ownership).
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const logs = await client.servers.logs.list('server', {
|
|
12
|
+
* namespace: 'namespace',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
8
15
|
*/
|
|
9
|
-
list(
|
|
16
|
+
list(server: string, params: LogListParams, options?: RequestOptions): APIPromise<LogListResponse>;
|
|
10
17
|
}
|
|
11
18
|
export interface LogListResponse {
|
|
12
19
|
invocations: Array<LogListResponse.Invocation>;
|
|
@@ -53,15 +60,19 @@ export declare namespace LogListResponse {
|
|
|
53
60
|
}
|
|
54
61
|
export interface LogListParams {
|
|
55
62
|
/**
|
|
56
|
-
*
|
|
63
|
+
* Path param
|
|
64
|
+
*/
|
|
65
|
+
namespace: string;
|
|
66
|
+
/**
|
|
67
|
+
* Query param: Start of time range (ISO 8601).
|
|
57
68
|
*/
|
|
58
69
|
from?: string;
|
|
59
70
|
/**
|
|
60
|
-
* Max invocations to return. Defaults to 50.
|
|
71
|
+
* Query param: Max invocations to return. Defaults to 50.
|
|
61
72
|
*/
|
|
62
73
|
limit?: number;
|
|
63
74
|
/**
|
|
64
|
-
* End of time range (ISO 8601).
|
|
75
|
+
* Query param: End of time range (ISO 8601).
|
|
65
76
|
*/
|
|
66
77
|
to?: string;
|
|
67
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":"OAE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vB,OAAO,EAAE,MAAM,CAAC;YAEhB,MAAM,EAAE,MAAM,CAAC;SAChB;KACF;CACF;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,CAAC;CACzF"}
|
|
@@ -8,9 +8,17 @@ class Logs extends resource_1.APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Fetch recent runtime logs for the server's deployed Worker, grouped by
|
|
10
10
|
* invocation (requires ownership).
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const logs = await client.servers.logs.list('server', {
|
|
15
|
+
* namespace: 'namespace',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
11
18
|
*/
|
|
12
|
-
list(
|
|
13
|
-
|
|
19
|
+
list(server, params, options) {
|
|
20
|
+
const { namespace, ...query } = params;
|
|
21
|
+
return this._client.get((0, path_1.path) `/servers/${namespace}/${server}/logs`, { query, ...options });
|
|
14
22
|
}
|
|
15
23
|
}
|
|
16
24
|
exports.Logs = Logs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,IAAK,SAAQ,sBAAW;IACnC
|
|
1
|
+
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAwB;QAClE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF;AAhBD,oBAgBC"}
|
|
@@ -5,9 +5,17 @@ export class Logs extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Fetch recent runtime logs for the server's deployed Worker, grouped by
|
|
7
7
|
* invocation (requires ownership).
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const logs = await client.servers.logs.list('server', {
|
|
12
|
+
* namespace: 'namespace',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
8
15
|
*/
|
|
9
|
-
list(
|
|
10
|
-
|
|
16
|
+
list(server, params, options) {
|
|
17
|
+
const { namespace, ...query } = params;
|
|
18
|
+
return this._client.get(path `/servers/${namespace}/${server}/logs`, { query, ...options });
|
|
11
19
|
}
|
|
12
20
|
}
|
|
13
21
|
//# sourceMappingURL=logs.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.mjs","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC
|
|
1
|
+
{"version":3,"file":"logs.mjs","sourceRoot":"","sources":["../../src/resources/servers/logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAwB;QAClE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Repo extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Disconnect the GitHub repository connection from a server.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const repo = await client.servers.repo.delete('server', {
|
|
11
|
+
* namespace: 'namespace',
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
delete(server: string, params: RepoDeleteParams, options?: RequestOptions): APIPromise<RepoDeleteResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get the GitHub repository connection for a server, if one exists.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const repo = await client.servers.repo.get('server', {
|
|
22
|
+
* namespace: 'namespace',
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
get(server: string, params: RepoGetParams, options?: RequestOptions): APIPromise<RepoGetResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Upsert a GitHub repository connection for a server. Creates a new connection if
|
|
29
|
+
* none exists, or updates the existing one.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const response = await client.servers.repo.set('server', {
|
|
34
|
+
* namespace: 'namespace',
|
|
35
|
+
* repoName: 'x',
|
|
36
|
+
* repoOwner: 'x',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
set(server: string, params: RepoSetParams, options?: RequestOptions): APIPromise<RepoSetResponse>;
|
|
41
|
+
}
|
|
42
|
+
export interface RepoDeleteResponse {
|
|
43
|
+
success: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface RepoGetResponse {
|
|
46
|
+
autoDeploy: boolean | null;
|
|
47
|
+
baseDirectory: string;
|
|
48
|
+
branch: string | null;
|
|
49
|
+
isPrivate: boolean;
|
|
50
|
+
repoName: string;
|
|
51
|
+
repoOwner: string;
|
|
52
|
+
type: 'github';
|
|
53
|
+
}
|
|
54
|
+
export interface RepoSetResponse {
|
|
55
|
+
autoDeploy: boolean | null;
|
|
56
|
+
baseDirectory: string;
|
|
57
|
+
branch: string | null;
|
|
58
|
+
isPrivate: boolean;
|
|
59
|
+
repoName: string;
|
|
60
|
+
repoOwner: string;
|
|
61
|
+
type: 'github';
|
|
62
|
+
}
|
|
63
|
+
export interface RepoDeleteParams {
|
|
64
|
+
namespace: string;
|
|
65
|
+
}
|
|
66
|
+
export interface RepoGetParams {
|
|
67
|
+
namespace: string;
|
|
68
|
+
}
|
|
69
|
+
export interface RepoSetParams {
|
|
70
|
+
/**
|
|
71
|
+
* Path param
|
|
72
|
+
*/
|
|
73
|
+
namespace: string;
|
|
74
|
+
/**
|
|
75
|
+
* Body param
|
|
76
|
+
*/
|
|
77
|
+
repoName: string;
|
|
78
|
+
/**
|
|
79
|
+
* Body param
|
|
80
|
+
*/
|
|
81
|
+
repoOwner: string;
|
|
82
|
+
/**
|
|
83
|
+
* Body param
|
|
84
|
+
*/
|
|
85
|
+
autoDeploy?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Body param
|
|
88
|
+
*/
|
|
89
|
+
baseDirectory?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Body param
|
|
92
|
+
*/
|
|
93
|
+
branch?: string | null;
|
|
94
|
+
}
|
|
95
|
+
export declare namespace Repo {
|
|
96
|
+
export { type RepoDeleteResponse as RepoDeleteResponse, type RepoGetResponse as RepoGetResponse, type RepoSetResponse as RepoSetResponse, type RepoDeleteParams as RepoDeleteParams, type RepoGetParams as RepoGetParams, type RepoSetParams as RepoSetParams, };
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=repo.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repo.d.mts","sourceRoot":"","sources":["../../src/resources/servers/repo.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAK1G;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAKjG;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAIlG;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,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"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Repo extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Disconnect the GitHub repository connection from a server.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const repo = await client.servers.repo.delete('server', {
|
|
11
|
+
* namespace: 'namespace',
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
delete(server: string, params: RepoDeleteParams, options?: RequestOptions): APIPromise<RepoDeleteResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get the GitHub repository connection for a server, if one exists.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const repo = await client.servers.repo.get('server', {
|
|
22
|
+
* namespace: 'namespace',
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
get(server: string, params: RepoGetParams, options?: RequestOptions): APIPromise<RepoGetResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Upsert a GitHub repository connection for a server. Creates a new connection if
|
|
29
|
+
* none exists, or updates the existing one.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const response = await client.servers.repo.set('server', {
|
|
34
|
+
* namespace: 'namespace',
|
|
35
|
+
* repoName: 'x',
|
|
36
|
+
* repoOwner: 'x',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
set(server: string, params: RepoSetParams, options?: RequestOptions): APIPromise<RepoSetResponse>;
|
|
41
|
+
}
|
|
42
|
+
export interface RepoDeleteResponse {
|
|
43
|
+
success: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface RepoGetResponse {
|
|
46
|
+
autoDeploy: boolean | null;
|
|
47
|
+
baseDirectory: string;
|
|
48
|
+
branch: string | null;
|
|
49
|
+
isPrivate: boolean;
|
|
50
|
+
repoName: string;
|
|
51
|
+
repoOwner: string;
|
|
52
|
+
type: 'github';
|
|
53
|
+
}
|
|
54
|
+
export interface RepoSetResponse {
|
|
55
|
+
autoDeploy: boolean | null;
|
|
56
|
+
baseDirectory: string;
|
|
57
|
+
branch: string | null;
|
|
58
|
+
isPrivate: boolean;
|
|
59
|
+
repoName: string;
|
|
60
|
+
repoOwner: string;
|
|
61
|
+
type: 'github';
|
|
62
|
+
}
|
|
63
|
+
export interface RepoDeleteParams {
|
|
64
|
+
namespace: string;
|
|
65
|
+
}
|
|
66
|
+
export interface RepoGetParams {
|
|
67
|
+
namespace: string;
|
|
68
|
+
}
|
|
69
|
+
export interface RepoSetParams {
|
|
70
|
+
/**
|
|
71
|
+
* Path param
|
|
72
|
+
*/
|
|
73
|
+
namespace: string;
|
|
74
|
+
/**
|
|
75
|
+
* Body param
|
|
76
|
+
*/
|
|
77
|
+
repoName: string;
|
|
78
|
+
/**
|
|
79
|
+
* Body param
|
|
80
|
+
*/
|
|
81
|
+
repoOwner: string;
|
|
82
|
+
/**
|
|
83
|
+
* Body param
|
|
84
|
+
*/
|
|
85
|
+
autoDeploy?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Body param
|
|
88
|
+
*/
|
|
89
|
+
baseDirectory?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Body param
|
|
92
|
+
*/
|
|
93
|
+
branch?: string | null;
|
|
94
|
+
}
|
|
95
|
+
export declare namespace Repo {
|
|
96
|
+
export { type RepoDeleteResponse as RepoDeleteResponse, type RepoGetResponse as RepoGetResponse, type RepoSetResponse as RepoSetResponse, type RepoDeleteParams as RepoDeleteParams, type RepoGetParams as RepoGetParams, type RepoSetParams as RepoSetParams, };
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=repo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repo.d.ts","sourceRoot":"","sources":["../../src/resources/servers/repo.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM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