@smithery/api 0.46.0 → 0.48.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 +17 -0
- package/README.md +5 -10
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/servers/domains.d.mts +176 -0
- package/resources/servers/domains.d.mts.map +1 -0
- package/resources/servers/domains.d.ts +176 -0
- package/resources/servers/domains.d.ts.map +1 -0
- package/resources/servers/domains.js +67 -0
- package/resources/servers/domains.js.map +1 -0
- package/resources/servers/domains.mjs +63 -0
- package/resources/servers/domains.mjs.map +1 -0
- package/resources/servers/index.d.mts +6 -5
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +6 -5
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/index.js +5 -3
- package/resources/servers/index.js.map +1 -1
- package/resources/servers/index.mjs +3 -2
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/logs.d.mts +5 -79
- package/resources/servers/logs.d.mts.map +1 -1
- package/resources/servers/logs.d.ts +5 -79
- package/resources/servers/logs.d.ts.map +1 -1
- package/resources/servers/logs.js +5 -21
- package/resources/servers/logs.js.map +1 -1
- package/resources/servers/logs.mjs +5 -21
- package/resources/servers/logs.mjs.map +1 -1
- package/resources/servers/releases.d.mts +437 -0
- package/resources/servers/releases.d.mts.map +1 -0
- package/resources/servers/releases.d.ts +437 -0
- package/resources/servers/releases.d.ts.map +1 -0
- package/resources/servers/releases.js +91 -0
- package/resources/servers/releases.js.map +1 -0
- package/resources/servers/releases.mjs +87 -0
- package/resources/servers/releases.mjs.map +1 -0
- package/resources/servers/repo.d.mts +13 -103
- package/resources/servers/repo.d.mts.map +1 -1
- package/resources/servers/repo.d.ts +13 -103
- package/resources/servers/repo.d.ts.map +1 -1
- package/resources/servers/repo.js +15 -61
- package/resources/servers/repo.js.map +1 -1
- package/resources/servers/repo.mjs +15 -61
- package/resources/servers/repo.mjs.map +1 -1
- package/resources/servers/secrets.d.mts +14 -85
- package/resources/servers/secrets.d.mts.map +1 -1
- package/resources/servers/secrets.d.ts +14 -85
- package/resources/servers/secrets.d.ts.map +1 -1
- package/resources/servers/secrets.js +13 -63
- package/resources/servers/secrets.js.map +1 -1
- package/resources/servers/secrets.mjs +13 -63
- package/resources/servers/secrets.mjs.map +1 -1
- package/resources/servers/servers.d.mts +32 -184
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +32 -184
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +30 -83
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +32 -85
- package/resources/servers/servers.mjs.map +1 -1
- package/src/client.ts +0 -16
- package/src/resources/index.ts +0 -8
- package/src/resources/servers/domains.ts +270 -0
- package/src/resources/servers/index.ts +22 -48
- package/src/resources/servers/logs.ts +9 -118
- package/src/resources/servers/releases.ts +621 -0
- package/src/resources/servers/repo.ts +15 -150
- package/src/resources/servers/secrets.ts +17 -126
- package/src/resources/servers/servers.ts +76 -344
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/servers/deployments.d.mts +0 -686
- package/resources/servers/deployments.d.mts.map +0 -1
- package/resources/servers/deployments.d.ts +0 -686
- package/resources/servers/deployments.d.ts.map +0 -1
- package/resources/servers/deployments.js +0 -179
- package/resources/servers/deployments.js.map +0 -1
- package/resources/servers/deployments.mjs +0 -175
- package/resources/servers/deployments.mjs.map +0 -1
- package/src/resources/servers/deployments.ts +0 -978
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Deployments = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../internal/headers.js");
|
|
7
|
-
const uploads_1 = require("../../internal/uploads.js");
|
|
8
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
9
|
-
class Deployments extends resource_1.APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* List all deployments for a server, ordered by most recent first. Does not
|
|
12
|
-
* include deployment logs — fetch a specific deployment to see logs.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const deployments = await client.servers.deployments.list(
|
|
17
|
-
* 'server',
|
|
18
|
-
* { namespace: 'namespace' },
|
|
19
|
-
* );
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
list(server, params, options) {
|
|
23
|
-
const { namespace } = params;
|
|
24
|
-
return this._client.get((0, path_1.path) `/servers/${namespace}/${server}/deployments`, options);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Deploy an MCP server via multipart form. Supports hosted deployments (upload a
|
|
28
|
-
* JS module), external deployments (register a URL), stdio deployments (upload an
|
|
29
|
-
* MCPB bundle), and repo deployments (build from a connected GitHub repository).
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* const response = await client.servers.deployments.deploy(
|
|
34
|
-
* 'server',
|
|
35
|
-
* { namespace: 'namespace', payload: 'payload' },
|
|
36
|
-
* );
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
deploy(server, params, options) {
|
|
40
|
-
const { namespace, ...body } = params;
|
|
41
|
-
return this._client.put((0, path_1.path) `/servers/${namespace}/${server}/deployments`, (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Deploy an MCP server via multipart form. Supports hosted deployments (upload a
|
|
45
|
-
* JS module), external deployments (register a URL), stdio deployments (upload an
|
|
46
|
-
* MCPB bundle), and repo deployments (build from a connected GitHub repository).
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const response =
|
|
51
|
-
* await client.servers.deployments.deployByNamespace(
|
|
52
|
-
* 'namespace',
|
|
53
|
-
* { payload: 'payload' },
|
|
54
|
-
* );
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
deployByNamespace(namespace, body, options) {
|
|
58
|
-
return this._client.put((0, path_1.path) `/servers/${namespace}/deployments`, (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Get full details for a specific deployment, including status, type, git
|
|
62
|
-
* metadata, pipeline logs, and MCP endpoint URL.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```ts
|
|
66
|
-
* const deployment = await client.servers.deployments.get(
|
|
67
|
-
* 'id',
|
|
68
|
-
* { namespace: 'namespace', server: 'server' },
|
|
69
|
-
* );
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
get(id, params, options) {
|
|
73
|
-
const { namespace, server } = params;
|
|
74
|
-
return this._client.get((0, path_1.path) `/servers/${namespace}/${server}/deployments/${id}`, options);
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Get full details for a specific deployment, including status, type, git
|
|
78
|
-
* metadata, pipeline logs, and MCP endpoint URL.
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* ```ts
|
|
82
|
-
* const response =
|
|
83
|
-
* await client.servers.deployments.getByNamespace('id', {
|
|
84
|
-
* namespace: 'namespace',
|
|
85
|
-
* });
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
getByNamespace(id, params, options) {
|
|
89
|
-
const { namespace } = params;
|
|
90
|
-
return this._client.get((0, path_1.path) `/servers/${namespace}/deployments/${id}`, options);
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* List all deployments for a server, ordered by most recent first. Does not
|
|
94
|
-
* include deployment logs — fetch a specific deployment to see logs.
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* ```ts
|
|
98
|
-
* const response =
|
|
99
|
-
* await client.servers.deployments.listByNamespace(
|
|
100
|
-
* 'namespace',
|
|
101
|
-
* );
|
|
102
|
-
* ```
|
|
103
|
-
*/
|
|
104
|
-
listByNamespace(namespace, options) {
|
|
105
|
-
return this._client.get((0, path_1.path) `/servers/${namespace}/deployments`, options);
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Use id='latest' to resume the most recent deployment
|
|
109
|
-
*
|
|
110
|
-
* @example
|
|
111
|
-
* ```ts
|
|
112
|
-
* const response = await client.servers.deployments.resume(
|
|
113
|
-
* 'id',
|
|
114
|
-
* { namespace: 'namespace', server: 'server' },
|
|
115
|
-
* );
|
|
116
|
-
* ```
|
|
117
|
-
*/
|
|
118
|
-
resume(id, params, options) {
|
|
119
|
-
const { namespace, server } = params;
|
|
120
|
-
return this._client.post((0, path_1.path) `/servers/${namespace}/${server}/deployments/${id}/resume`, options);
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Use id='latest' to resume the most recent deployment
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* ```ts
|
|
127
|
-
* const response =
|
|
128
|
-
* await client.servers.deployments.resumeByNamespace('id', {
|
|
129
|
-
* namespace: 'namespace',
|
|
130
|
-
* });
|
|
131
|
-
* ```
|
|
132
|
-
*/
|
|
133
|
-
resumeByNamespace(id, params, options) {
|
|
134
|
-
const { namespace } = params;
|
|
135
|
-
return this._client.post((0, path_1.path) `/servers/${namespace}/deployments/${id}/resume`, options);
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Returns a real-time SSE stream of deployment logs and status updates. Connect to
|
|
139
|
-
* this endpoint to receive live updates as the deployment progresses.
|
|
140
|
-
*
|
|
141
|
-
* @example
|
|
142
|
-
* ```ts
|
|
143
|
-
* const response = await client.servers.deployments.stream(
|
|
144
|
-
* 'id',
|
|
145
|
-
* { namespace: 'namespace', server: 'server' },
|
|
146
|
-
* );
|
|
147
|
-
* ```
|
|
148
|
-
*/
|
|
149
|
-
stream(id, params, options) {
|
|
150
|
-
const { namespace, server } = params;
|
|
151
|
-
return this._client.get((0, path_1.path) `/servers/${namespace}/${server}/deployments/${id}/stream`, {
|
|
152
|
-
...options,
|
|
153
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: 'text/event-stream' }, options?.headers]),
|
|
154
|
-
stream: true,
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Returns a real-time SSE stream of deployment logs and status updates. Connect to
|
|
159
|
-
* this endpoint to receive live updates as the deployment progresses.
|
|
160
|
-
*
|
|
161
|
-
* @example
|
|
162
|
-
* ```ts
|
|
163
|
-
* const response =
|
|
164
|
-
* await client.servers.deployments.streamByNamespace('id', {
|
|
165
|
-
* namespace: 'namespace',
|
|
166
|
-
* });
|
|
167
|
-
* ```
|
|
168
|
-
*/
|
|
169
|
-
streamByNamespace(id, params, options) {
|
|
170
|
-
const { namespace } = params;
|
|
171
|
-
return this._client.get((0, path_1.path) `/servers/${namespace}/deployments/${id}/stream`, {
|
|
172
|
-
...options,
|
|
173
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: 'text/event-stream' }, options?.headers]),
|
|
174
|
-
stream: true,
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
exports.Deployments = Deployments;
|
|
179
|
-
//# sourceMappingURL=deployments.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.js","sourceRoot":"","sources":["../../src/resources/servers/deployments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD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;YACtF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC1E,MAAM,EAAE,IAAI;SACb,CAAiD,CAAC;IACrD,CAAC;IAED;;;;;;;;;;;OAWG;IACH,iBAAiB,CACf,EAAU,EACV,MAAyC,EACzC,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,gBAAgB,EAAE,SAAS,EAAE;YAC5E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC1E,MAAM,EAAE,IAAI;SACb,CAA4D,CAAC;IAChE,CAAC;CACF;AA1ND,kCA0NC"}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
-
import { multipartFormRequestOptions } from "../../internal/uploads.mjs";
|
|
5
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
6
|
-
export class Deployments extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* List all deployments for a server, ordered by most recent first. Does not
|
|
9
|
-
* include deployment logs — fetch a specific deployment to see logs.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const deployments = await client.servers.deployments.list(
|
|
14
|
-
* 'server',
|
|
15
|
-
* { namespace: 'namespace' },
|
|
16
|
-
* );
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
list(server, params, options) {
|
|
20
|
-
const { namespace } = params;
|
|
21
|
-
return this._client.get(path `/servers/${namespace}/${server}/deployments`, options);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Deploy an MCP server via multipart form. Supports hosted deployments (upload a
|
|
25
|
-
* JS module), external deployments (register a URL), stdio deployments (upload an
|
|
26
|
-
* MCPB bundle), and repo deployments (build from a connected GitHub repository).
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const response = await client.servers.deployments.deploy(
|
|
31
|
-
* 'server',
|
|
32
|
-
* { namespace: 'namespace', payload: 'payload' },
|
|
33
|
-
* );
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
deploy(server, params, options) {
|
|
37
|
-
const { namespace, ...body } = params;
|
|
38
|
-
return this._client.put(path `/servers/${namespace}/${server}/deployments`, multipartFormRequestOptions({ body, ...options }, this._client));
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Deploy an MCP server via multipart form. Supports hosted deployments (upload a
|
|
42
|
-
* JS module), external deployments (register a URL), stdio deployments (upload an
|
|
43
|
-
* MCPB bundle), and repo deployments (build from a connected GitHub repository).
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```ts
|
|
47
|
-
* const response =
|
|
48
|
-
* await client.servers.deployments.deployByNamespace(
|
|
49
|
-
* 'namespace',
|
|
50
|
-
* { payload: 'payload' },
|
|
51
|
-
* );
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
deployByNamespace(namespace, body, options) {
|
|
55
|
-
return this._client.put(path `/servers/${namespace}/deployments`, multipartFormRequestOptions({ body, ...options }, this._client));
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Get full details for a specific deployment, including status, type, git
|
|
59
|
-
* metadata, pipeline logs, and MCP endpoint URL.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```ts
|
|
63
|
-
* const deployment = await client.servers.deployments.get(
|
|
64
|
-
* 'id',
|
|
65
|
-
* { namespace: 'namespace', server: 'server' },
|
|
66
|
-
* );
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
get(id, params, options) {
|
|
70
|
-
const { namespace, server } = params;
|
|
71
|
-
return this._client.get(path `/servers/${namespace}/${server}/deployments/${id}`, options);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Get full details for a specific deployment, including status, type, git
|
|
75
|
-
* metadata, pipeline logs, and MCP endpoint URL.
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```ts
|
|
79
|
-
* const response =
|
|
80
|
-
* await client.servers.deployments.getByNamespace('id', {
|
|
81
|
-
* namespace: 'namespace',
|
|
82
|
-
* });
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
|
-
getByNamespace(id, params, options) {
|
|
86
|
-
const { namespace } = params;
|
|
87
|
-
return this._client.get(path `/servers/${namespace}/deployments/${id}`, options);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* List all deployments for a server, ordered by most recent first. Does not
|
|
91
|
-
* include deployment logs — fetch a specific deployment to see logs.
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* ```ts
|
|
95
|
-
* const response =
|
|
96
|
-
* await client.servers.deployments.listByNamespace(
|
|
97
|
-
* 'namespace',
|
|
98
|
-
* );
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
listByNamespace(namespace, options) {
|
|
102
|
-
return this._client.get(path `/servers/${namespace}/deployments`, options);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Use id='latest' to resume the most recent deployment
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* ```ts
|
|
109
|
-
* const response = await client.servers.deployments.resume(
|
|
110
|
-
* 'id',
|
|
111
|
-
* { namespace: 'namespace', server: 'server' },
|
|
112
|
-
* );
|
|
113
|
-
* ```
|
|
114
|
-
*/
|
|
115
|
-
resume(id, params, options) {
|
|
116
|
-
const { namespace, server } = params;
|
|
117
|
-
return this._client.post(path `/servers/${namespace}/${server}/deployments/${id}/resume`, options);
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Use id='latest' to resume the most recent deployment
|
|
121
|
-
*
|
|
122
|
-
* @example
|
|
123
|
-
* ```ts
|
|
124
|
-
* const response =
|
|
125
|
-
* await client.servers.deployments.resumeByNamespace('id', {
|
|
126
|
-
* namespace: 'namespace',
|
|
127
|
-
* });
|
|
128
|
-
* ```
|
|
129
|
-
*/
|
|
130
|
-
resumeByNamespace(id, params, options) {
|
|
131
|
-
const { namespace } = params;
|
|
132
|
-
return this._client.post(path `/servers/${namespace}/deployments/${id}/resume`, options);
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Returns a real-time SSE stream of deployment logs and status updates. Connect to
|
|
136
|
-
* this endpoint to receive live updates as the deployment progresses.
|
|
137
|
-
*
|
|
138
|
-
* @example
|
|
139
|
-
* ```ts
|
|
140
|
-
* const response = await client.servers.deployments.stream(
|
|
141
|
-
* 'id',
|
|
142
|
-
* { namespace: 'namespace', server: 'server' },
|
|
143
|
-
* );
|
|
144
|
-
* ```
|
|
145
|
-
*/
|
|
146
|
-
stream(id, params, options) {
|
|
147
|
-
const { namespace, server } = params;
|
|
148
|
-
return this._client.get(path `/servers/${namespace}/${server}/deployments/${id}/stream`, {
|
|
149
|
-
...options,
|
|
150
|
-
headers: buildHeaders([{ Accept: 'text/event-stream' }, options?.headers]),
|
|
151
|
-
stream: true,
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Returns a real-time SSE stream of deployment logs and status updates. Connect to
|
|
156
|
-
* this endpoint to receive live updates as the deployment progresses.
|
|
157
|
-
*
|
|
158
|
-
* @example
|
|
159
|
-
* ```ts
|
|
160
|
-
* const response =
|
|
161
|
-
* await client.servers.deployments.streamByNamespace('id', {
|
|
162
|
-
* namespace: 'namespace',
|
|
163
|
-
* });
|
|
164
|
-
* ```
|
|
165
|
-
*/
|
|
166
|
-
streamByNamespace(id, params, options) {
|
|
167
|
-
const { namespace } = params;
|
|
168
|
-
return this._client.get(path `/servers/${namespace}/deployments/${id}/stream`, {
|
|
169
|
-
...options,
|
|
170
|
-
headers: buildHeaders([{ Accept: 'text/event-stream' }, options?.headers]),
|
|
171
|
-
stream: true,
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
//# sourceMappingURL=deployments.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.mjs","sourceRoot":"","sources":["../../src/resources/servers/deployments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,YAAY,EAAE;OAEhB,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAAc,EACd,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,cAAc,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;;;OAYG;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,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,cAAc,EACjD,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CACf,SAAiB,EACjB,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC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