@smithery/api 0.30.0 → 0.32.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 +19 -0
- package/client.d.mts +3 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -7
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +0 -37
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +0 -37
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +1 -47
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +0 -44
- package/core/pagination.mjs.map +1 -1
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +263 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +258 -0
- package/core/streaming.mjs.map +1 -0
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +113 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +108 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +10 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +10 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +2 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +2 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/package.json +11 -1
- package/resources/beta/beta.d.mts +0 -4
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +0 -4
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +0 -4
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +0 -4
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/connect/mcp.d.mts +1 -24
- package/resources/beta/connect/mcp.d.mts.map +1 -1
- package/resources/beta/connect/mcp.d.ts +1 -24
- package/resources/beta/connect/mcp.d.ts.map +1 -1
- package/resources/beta/connect/mcp.js +3 -7
- package/resources/beta/connect/mcp.js.map +1 -1
- package/resources/beta/connect/mcp.mjs +3 -7
- package/resources/beta/connect/mcp.mjs.map +1 -1
- package/resources/beta/index.d.mts +0 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +0 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +1 -3
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +0 -1
- package/resources/beta/index.mjs.map +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/deployments.d.mts +178 -1
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +178 -1
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +100 -0
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +100 -0
- package/resources/servers/deployments.mjs.map +1 -1
- package/resources/servers/index.d.mts +5 -5
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +5 -5
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/index.js.map +1 -1
- package/resources/servers/index.mjs +1 -1
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/logs.d.mts +70 -1
- package/resources/servers/logs.d.mts.map +1 -1
- package/resources/servers/logs.d.ts +70 -1
- package/resources/servers/logs.d.ts.map +1 -1
- package/resources/servers/logs.js +14 -0
- package/resources/servers/logs.js.map +1 -1
- package/resources/servers/logs.mjs +14 -0
- package/resources/servers/logs.mjs.map +1 -1
- package/resources/servers/repo.d.mts +63 -1
- package/resources/servers/repo.d.mts.map +1 -1
- package/resources/servers/repo.d.ts +63 -1
- package/resources/servers/repo.d.ts.map +1 -1
- package/resources/servers/repo.js +40 -0
- package/resources/servers/repo.js.map +1 -1
- package/resources/servers/repo.mjs +40 -0
- package/resources/servers/repo.mjs.map +1 -1
- package/resources/servers/secrets.d.mts +57 -1
- package/resources/servers/secrets.d.mts.map +1 -1
- package/resources/servers/secrets.d.ts +57 -1
- package/resources/servers/secrets.d.ts.map +1 -1
- package/resources/servers/secrets.js +43 -0
- package/resources/servers/secrets.js.map +1 -1
- package/resources/servers/secrets.mjs +43 -0
- package/resources/servers/secrets.mjs.map +1 -1
- package/resources/servers/servers.d.mts +67 -9
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +67 -9
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +15 -0
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +16 -1
- package/resources/servers/servers.mjs.map +1 -1
- package/src/client.ts +2 -13
- package/src/core/pagination.ts +0 -106
- package/src/core/streaming.ts +315 -0
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +14 -0
- package/src/internal/request-options.ts +2 -0
- package/src/resources/beta/beta.ts +0 -10
- package/src/resources/beta/connect/mcp.ts +3 -30
- package/src/resources/beta/index.ts +0 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/servers/deployments.ts +301 -0
- package/src/resources/servers/index.ts +28 -1
- package/src/resources/servers/logs.ts +107 -1
- package/src/resources/servers/repo.ts +99 -0
- package/src/resources/servers/secrets.ts +88 -0
- package/src/resources/servers/servers.ts +135 -2
- package/src/streaming.ts +2 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +2 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +2 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +6 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +2 -0
- package/streaming.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/beta/tools.d.mts +0 -64
- package/resources/beta/tools.d.mts.map +0 -1
- package/resources/beta/tools.d.ts +0 -64
- package/resources/beta/tools.d.ts.map +0 -1
- package/resources/beta/tools.js +0 -25
- package/resources/beta/tools.js.map +0 -1
- package/resources/beta/tools.mjs +0 -21
- package/resources/beta/tools.mjs.map +0 -1
- package/src/resources/beta/tools.ts +0 -89
package/src/internal/parse.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import type { FinalRequestOptions } from './request-options';
|
|
4
|
+
import { Stream } from '../core/streaming';
|
|
4
5
|
import { type Smithery } from '../client';
|
|
5
6
|
import { formatRequestDetails, loggerFor } from './utils/log';
|
|
6
7
|
|
|
@@ -16,6 +17,19 @@ export type APIResponseProps = {
|
|
|
16
17
|
export async function defaultParseResponse<T>(client: Smithery, props: APIResponseProps): Promise<T> {
|
|
17
18
|
const { response, requestLogID, retryOfRequestLogID, startTime } = props;
|
|
18
19
|
const body = await (async () => {
|
|
20
|
+
if (props.options.stream) {
|
|
21
|
+
loggerFor(client).debug('response', response.status, response.url, response.headers, response.body);
|
|
22
|
+
|
|
23
|
+
// Note: there is an invariant here that isn't represented in the type system
|
|
24
|
+
// that if you set `stream: true` the response type must also be `Stream<T>`
|
|
25
|
+
|
|
26
|
+
if (props.options.__streamClass) {
|
|
27
|
+
return props.options.__streamClass.fromSSEResponse(response, props.controller, client) as any;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return Stream.fromSSEResponse(response, props.controller, client) as any;
|
|
31
|
+
}
|
|
32
|
+
|
|
19
33
|
// fetch refuses to read the body when the status code is 204.
|
|
20
34
|
if (response.status === 204) {
|
|
21
35
|
return null as T;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { NullableHeaders } from './headers';
|
|
4
4
|
|
|
5
5
|
import type { BodyInit } from './builtin-types';
|
|
6
|
+
import { Stream } from '../core/streaming';
|
|
6
7
|
import type { HTTPMethod, MergedRequestInit } from './types';
|
|
7
8
|
import { type HeadersLike } from './headers';
|
|
8
9
|
|
|
@@ -76,6 +77,7 @@ export type RequestOptions = {
|
|
|
76
77
|
defaultBaseURL?: string | undefined;
|
|
77
78
|
|
|
78
79
|
__binaryResponse?: boolean | undefined;
|
|
80
|
+
__streamClass?: typeof Stream;
|
|
79
81
|
};
|
|
80
82
|
|
|
81
83
|
export type EncodedContent = { bodyHeaders: HeadersLike; body: BodyInit };
|
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as ToolsAPI from './tools';
|
|
5
|
-
import { ToolSearchParams, ToolSearchResponse, Tools } from './tools';
|
|
6
4
|
import * as ConnectAPI from './connect/connect';
|
|
7
5
|
import { Connect } from './connect/connect';
|
|
8
6
|
|
|
9
7
|
export class Beta extends APIResource {
|
|
10
|
-
tools: ToolsAPI.Tools = new ToolsAPI.Tools(this._client);
|
|
11
8
|
connect: ConnectAPI.Connect = new ConnectAPI.Connect(this._client);
|
|
12
9
|
}
|
|
13
10
|
|
|
14
|
-
Beta.Tools = Tools;
|
|
15
11
|
Beta.Connect = Connect;
|
|
16
12
|
|
|
17
13
|
export declare namespace Beta {
|
|
18
|
-
export {
|
|
19
|
-
Tools as Tools,
|
|
20
|
-
type ToolSearchResponse as ToolSearchResponse,
|
|
21
|
-
type ToolSearchParams as ToolSearchParams,
|
|
22
|
-
};
|
|
23
|
-
|
|
24
14
|
export { Connect as Connect };
|
|
25
15
|
}
|
|
@@ -14,17 +14,13 @@ export class Mcp extends APIResource {
|
|
|
14
14
|
* ```ts
|
|
15
15
|
* const jsonRpcResponse = await client.beta.connect.mcp.call(
|
|
16
16
|
* 'connectionId',
|
|
17
|
-
* {
|
|
18
|
-
* namespace: 'namespace',
|
|
19
|
-
* jsonrpc: '2.0',
|
|
20
|
-
* method: 'tools/list',
|
|
21
|
-
* },
|
|
17
|
+
* { namespace: 'namespace' },
|
|
22
18
|
* );
|
|
23
19
|
* ```
|
|
24
20
|
*/
|
|
25
21
|
call(connectionID: string, params: McpCallParams, options?: RequestOptions): APIPromise<JsonRpcResponse> {
|
|
26
|
-
const { namespace
|
|
27
|
-
return this._client.post(path`/connect/${namespace}/${connectionID}/mcp`,
|
|
22
|
+
const { namespace } = params;
|
|
23
|
+
return this._client.post(path`/connect/${namespace}/${connectionID}/mcp`, options);
|
|
28
24
|
}
|
|
29
25
|
}
|
|
30
26
|
|
|
@@ -53,30 +49,7 @@ export interface JsonRpcResponse {
|
|
|
53
49
|
}
|
|
54
50
|
|
|
55
51
|
export interface McpCallParams {
|
|
56
|
-
/**
|
|
57
|
-
* Path param
|
|
58
|
-
*/
|
|
59
52
|
namespace: string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Body param
|
|
63
|
-
*/
|
|
64
|
-
jsonrpc: '2.0';
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Body param: MCP method to call
|
|
68
|
-
*/
|
|
69
|
-
method: string;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Body param
|
|
73
|
-
*/
|
|
74
|
-
id?: string | number;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Body param: Method parameters
|
|
78
|
-
*/
|
|
79
|
-
params?: unknown;
|
|
80
53
|
}
|
|
81
54
|
|
|
82
55
|
export declare namespace Mcp {
|
package/src/resources/index.ts
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { Stream } from '../../core/streaming';
|
|
5
6
|
import { type Uploadable } from '../../core/uploads';
|
|
7
|
+
import { buildHeaders } from '../../internal/headers';
|
|
6
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
9
|
import { multipartFormRequestOptions } from '../../internal/uploads';
|
|
8
10
|
import { path } from '../../internal/utils/path';
|
|
@@ -51,6 +53,29 @@ export class Deployments extends APIResource {
|
|
|
51
53
|
);
|
|
52
54
|
}
|
|
53
55
|
|
|
56
|
+
/**
|
|
57
|
+
* Upload and deploy an MCP server (hosted or external)
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const response =
|
|
62
|
+
* await client.servers.deployments.deployByNamespace(
|
|
63
|
+
* 'namespace',
|
|
64
|
+
* { payload: 'payload' },
|
|
65
|
+
* );
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
deployByNamespace(
|
|
69
|
+
namespace: string,
|
|
70
|
+
body: DeploymentDeployByNamespaceParams,
|
|
71
|
+
options?: RequestOptions,
|
|
72
|
+
): APIPromise<DeploymentDeployByNamespaceResponse> {
|
|
73
|
+
return this._client.put(
|
|
74
|
+
path`/servers/${namespace}/deployments`,
|
|
75
|
+
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
54
79
|
/**
|
|
55
80
|
* Get deployment status
|
|
56
81
|
*
|
|
@@ -67,6 +92,44 @@ export class Deployments extends APIResource {
|
|
|
67
92
|
return this._client.get(path`/servers/${namespace}/${server}/deployments/${id}`, options);
|
|
68
93
|
}
|
|
69
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Get deployment status
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* const response =
|
|
101
|
+
* await client.servers.deployments.getByNamespace('id', {
|
|
102
|
+
* namespace: 'namespace',
|
|
103
|
+
* });
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
getByNamespace(
|
|
107
|
+
id: string,
|
|
108
|
+
params: DeploymentGetByNamespaceParams,
|
|
109
|
+
options?: RequestOptions,
|
|
110
|
+
): APIPromise<DeploymentGetByNamespaceResponse> {
|
|
111
|
+
const { namespace } = params;
|
|
112
|
+
return this._client.get(path`/servers/${namespace}/deployments/${id}`, options);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* List deployments for a server
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```ts
|
|
120
|
+
* const response =
|
|
121
|
+
* await client.servers.deployments.listByNamespace(
|
|
122
|
+
* 'namespace',
|
|
123
|
+
* );
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
listByNamespace(
|
|
127
|
+
namespace: string,
|
|
128
|
+
options?: RequestOptions,
|
|
129
|
+
): APIPromise<DeploymentListByNamespaceResponse> {
|
|
130
|
+
return this._client.get(path`/servers/${namespace}/deployments`, options);
|
|
131
|
+
}
|
|
132
|
+
|
|
70
133
|
/**
|
|
71
134
|
* Use id='latest' to resume the most recent deployment
|
|
72
135
|
*
|
|
@@ -86,6 +149,76 @@ export class Deployments extends APIResource {
|
|
|
86
149
|
const { namespace, server } = params;
|
|
87
150
|
return this._client.post(path`/servers/${namespace}/${server}/deployments/${id}/resume`, options);
|
|
88
151
|
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Use id='latest' to resume the most recent deployment
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* ```ts
|
|
158
|
+
* const response =
|
|
159
|
+
* await client.servers.deployments.resumeByNamespace('id', {
|
|
160
|
+
* namespace: 'namespace',
|
|
161
|
+
* });
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
resumeByNamespace(
|
|
165
|
+
id: string,
|
|
166
|
+
params: DeploymentResumeByNamespaceParams,
|
|
167
|
+
options?: RequestOptions,
|
|
168
|
+
): APIPromise<DeploymentResumeByNamespaceResponse> {
|
|
169
|
+
const { namespace } = params;
|
|
170
|
+
return this._client.post(path`/servers/${namespace}/deployments/${id}/resume`, options);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Returns a real-time SSE stream of deployment logs and status updates. Connect to
|
|
175
|
+
* this endpoint to receive live updates as the deployment progresses.
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* ```ts
|
|
179
|
+
* const response = await client.servers.deployments.stream(
|
|
180
|
+
* 'id',
|
|
181
|
+
* { namespace: 'namespace', server: 'server' },
|
|
182
|
+
* );
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
stream(
|
|
186
|
+
id: string,
|
|
187
|
+
params: DeploymentStreamParams,
|
|
188
|
+
options?: RequestOptions,
|
|
189
|
+
): APIPromise<Stream<DeploymentStreamResponse>> {
|
|
190
|
+
const { namespace, server } = params;
|
|
191
|
+
return this._client.get(path`/servers/${namespace}/${server}/deployments/${id}/stream`, {
|
|
192
|
+
...options,
|
|
193
|
+
headers: buildHeaders([{ Accept: 'text/event-stream' }, options?.headers]),
|
|
194
|
+
stream: true,
|
|
195
|
+
}) as APIPromise<Stream<DeploymentStreamResponse>>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Returns a real-time SSE stream of deployment logs and status updates. Connect to
|
|
200
|
+
* this endpoint to receive live updates as the deployment progresses.
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* ```ts
|
|
204
|
+
* const response =
|
|
205
|
+
* await client.servers.deployments.streamByNamespace('id', {
|
|
206
|
+
* namespace: 'namespace',
|
|
207
|
+
* });
|
|
208
|
+
* ```
|
|
209
|
+
*/
|
|
210
|
+
streamByNamespace(
|
|
211
|
+
id: string,
|
|
212
|
+
params: DeploymentStreamByNamespaceParams,
|
|
213
|
+
options?: RequestOptions,
|
|
214
|
+
): APIPromise<Stream<DeploymentStreamByNamespaceResponse>> {
|
|
215
|
+
const { namespace } = params;
|
|
216
|
+
return this._client.get(path`/servers/${namespace}/deployments/${id}/stream`, {
|
|
217
|
+
...options,
|
|
218
|
+
headers: buildHeaders([{ Accept: 'text/event-stream' }, options?.headers]),
|
|
219
|
+
stream: true,
|
|
220
|
+
}) as APIPromise<Stream<DeploymentStreamByNamespaceResponse>>;
|
|
221
|
+
}
|
|
89
222
|
}
|
|
90
223
|
|
|
91
224
|
export type DeployPayload =
|
|
@@ -356,9 +489,19 @@ export namespace DeploymentListResponse {
|
|
|
356
489
|
|
|
357
490
|
status: string;
|
|
358
491
|
|
|
492
|
+
type: string;
|
|
493
|
+
|
|
359
494
|
updatedAt: string;
|
|
360
495
|
|
|
496
|
+
branch?: string | null;
|
|
497
|
+
|
|
498
|
+
commit?: string | null;
|
|
499
|
+
|
|
500
|
+
commitMessage?: string | null;
|
|
501
|
+
|
|
361
502
|
mcpUrl?: string;
|
|
503
|
+
|
|
504
|
+
upstreamUrl?: string | null;
|
|
362
505
|
}
|
|
363
506
|
}
|
|
364
507
|
|
|
@@ -372,6 +515,16 @@ export interface DeploymentDeployResponse {
|
|
|
372
515
|
warnings?: Array<string>;
|
|
373
516
|
}
|
|
374
517
|
|
|
518
|
+
export interface DeploymentDeployByNamespaceResponse {
|
|
519
|
+
deploymentId: string;
|
|
520
|
+
|
|
521
|
+
mcpUrl: string;
|
|
522
|
+
|
|
523
|
+
status: string;
|
|
524
|
+
|
|
525
|
+
warnings?: Array<string>;
|
|
526
|
+
}
|
|
527
|
+
|
|
375
528
|
export interface DeploymentGetResponse {
|
|
376
529
|
id: string;
|
|
377
530
|
|
|
@@ -379,11 +532,21 @@ export interface DeploymentGetResponse {
|
|
|
379
532
|
|
|
380
533
|
status: string;
|
|
381
534
|
|
|
535
|
+
type: string;
|
|
536
|
+
|
|
382
537
|
updatedAt: string;
|
|
383
538
|
|
|
539
|
+
branch?: string | null;
|
|
540
|
+
|
|
541
|
+
commit?: string | null;
|
|
542
|
+
|
|
543
|
+
commitMessage?: string | null;
|
|
544
|
+
|
|
384
545
|
logs?: Array<DeploymentGetResponse.Log>;
|
|
385
546
|
|
|
386
547
|
mcpUrl?: string;
|
|
548
|
+
|
|
549
|
+
upstreamUrl?: string | null;
|
|
387
550
|
}
|
|
388
551
|
|
|
389
552
|
export namespace DeploymentGetResponse {
|
|
@@ -406,12 +569,99 @@ export namespace DeploymentGetResponse {
|
|
|
406
569
|
}
|
|
407
570
|
}
|
|
408
571
|
|
|
572
|
+
export interface DeploymentGetByNamespaceResponse {
|
|
573
|
+
id: string;
|
|
574
|
+
|
|
575
|
+
createdAt: string;
|
|
576
|
+
|
|
577
|
+
status: string;
|
|
578
|
+
|
|
579
|
+
type: string;
|
|
580
|
+
|
|
581
|
+
updatedAt: string;
|
|
582
|
+
|
|
583
|
+
branch?: string | null;
|
|
584
|
+
|
|
585
|
+
commit?: string | null;
|
|
586
|
+
|
|
587
|
+
commitMessage?: string | null;
|
|
588
|
+
|
|
589
|
+
logs?: Array<DeploymentGetByNamespaceResponse.Log>;
|
|
590
|
+
|
|
591
|
+
mcpUrl?: string;
|
|
592
|
+
|
|
593
|
+
upstreamUrl?: string | null;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
export namespace DeploymentGetByNamespaceResponse {
|
|
597
|
+
export interface Log {
|
|
598
|
+
level: string;
|
|
599
|
+
|
|
600
|
+
message: string;
|
|
601
|
+
|
|
602
|
+
stage: 'deploy' | 'scan' | 'metadata' | 'publish';
|
|
603
|
+
|
|
604
|
+
timestamp: string;
|
|
605
|
+
|
|
606
|
+
error?: Log.Error;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export namespace Log {
|
|
610
|
+
export interface Error {
|
|
611
|
+
message?: string;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export type DeploymentListByNamespaceResponse =
|
|
617
|
+
Array<DeploymentListByNamespaceResponse.DeploymentListByNamespaceResponseItem>;
|
|
618
|
+
|
|
619
|
+
export namespace DeploymentListByNamespaceResponse {
|
|
620
|
+
export interface DeploymentListByNamespaceResponseItem {
|
|
621
|
+
id: string;
|
|
622
|
+
|
|
623
|
+
createdAt: string;
|
|
624
|
+
|
|
625
|
+
status: string;
|
|
626
|
+
|
|
627
|
+
type: string;
|
|
628
|
+
|
|
629
|
+
updatedAt: string;
|
|
630
|
+
|
|
631
|
+
branch?: string | null;
|
|
632
|
+
|
|
633
|
+
commit?: string | null;
|
|
634
|
+
|
|
635
|
+
commitMessage?: string | null;
|
|
636
|
+
|
|
637
|
+
mcpUrl?: string;
|
|
638
|
+
|
|
639
|
+
upstreamUrl?: string | null;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
409
643
|
export interface DeploymentResumeResponse {
|
|
410
644
|
deploymentId: string;
|
|
411
645
|
|
|
412
646
|
status: string;
|
|
413
647
|
}
|
|
414
648
|
|
|
649
|
+
export interface DeploymentResumeByNamespaceResponse {
|
|
650
|
+
deploymentId: string;
|
|
651
|
+
|
|
652
|
+
status: string;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* SSE events: init (with buffered logs), log, status, complete
|
|
657
|
+
*/
|
|
658
|
+
export type DeploymentStreamResponse = string;
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* SSE events: init (with buffered logs), log, status, complete
|
|
662
|
+
*/
|
|
663
|
+
export type DeploymentStreamByNamespaceResponse = string;
|
|
664
|
+
|
|
415
665
|
export interface DeploymentListParams {
|
|
416
666
|
namespace: string;
|
|
417
667
|
}
|
|
@@ -444,18 +694,58 @@ export interface DeploymentDeployParams {
|
|
|
444
694
|
sourcemap?: Uploadable;
|
|
445
695
|
}
|
|
446
696
|
|
|
697
|
+
export interface DeploymentDeployByNamespaceParams {
|
|
698
|
+
/**
|
|
699
|
+
* JSON-encoded deployment payload. See DeployPayload schema for structure.
|
|
700
|
+
*/
|
|
701
|
+
payload: string;
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* MCPB bundle file (for stdio deployments)
|
|
705
|
+
*/
|
|
706
|
+
bundle?: Uploadable;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* JavaScript module file (for hosted deployments)
|
|
710
|
+
*/
|
|
711
|
+
module?: Uploadable;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Source map file (for hosted deployments)
|
|
715
|
+
*/
|
|
716
|
+
sourcemap?: Uploadable;
|
|
717
|
+
}
|
|
718
|
+
|
|
447
719
|
export interface DeploymentGetParams {
|
|
448
720
|
namespace: string;
|
|
449
721
|
|
|
450
722
|
server: string;
|
|
451
723
|
}
|
|
452
724
|
|
|
725
|
+
export interface DeploymentGetByNamespaceParams {
|
|
726
|
+
namespace: string;
|
|
727
|
+
}
|
|
728
|
+
|
|
453
729
|
export interface DeploymentResumeParams {
|
|
454
730
|
namespace: string;
|
|
455
731
|
|
|
456
732
|
server: string;
|
|
457
733
|
}
|
|
458
734
|
|
|
735
|
+
export interface DeploymentResumeByNamespaceParams {
|
|
736
|
+
namespace: string;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
export interface DeploymentStreamParams {
|
|
740
|
+
namespace: string;
|
|
741
|
+
|
|
742
|
+
server: string;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export interface DeploymentStreamByNamespaceParams {
|
|
746
|
+
namespace: string;
|
|
747
|
+
}
|
|
748
|
+
|
|
459
749
|
export declare namespace Deployments {
|
|
460
750
|
export {
|
|
461
751
|
type DeployPayload as DeployPayload,
|
|
@@ -465,11 +755,22 @@ export declare namespace Deployments {
|
|
|
465
755
|
type StdioDeployPayload as StdioDeployPayload,
|
|
466
756
|
type DeploymentListResponse as DeploymentListResponse,
|
|
467
757
|
type DeploymentDeployResponse as DeploymentDeployResponse,
|
|
758
|
+
type DeploymentDeployByNamespaceResponse as DeploymentDeployByNamespaceResponse,
|
|
468
759
|
type DeploymentGetResponse as DeploymentGetResponse,
|
|
760
|
+
type DeploymentGetByNamespaceResponse as DeploymentGetByNamespaceResponse,
|
|
761
|
+
type DeploymentListByNamespaceResponse as DeploymentListByNamespaceResponse,
|
|
469
762
|
type DeploymentResumeResponse as DeploymentResumeResponse,
|
|
763
|
+
type DeploymentResumeByNamespaceResponse as DeploymentResumeByNamespaceResponse,
|
|
764
|
+
type DeploymentStreamResponse as DeploymentStreamResponse,
|
|
765
|
+
type DeploymentStreamByNamespaceResponse as DeploymentStreamByNamespaceResponse,
|
|
470
766
|
type DeploymentListParams as DeploymentListParams,
|
|
471
767
|
type DeploymentDeployParams as DeploymentDeployParams,
|
|
768
|
+
type DeploymentDeployByNamespaceParams as DeploymentDeployByNamespaceParams,
|
|
472
769
|
type DeploymentGetParams as DeploymentGetParams,
|
|
770
|
+
type DeploymentGetByNamespaceParams as DeploymentGetByNamespaceParams,
|
|
473
771
|
type DeploymentResumeParams as DeploymentResumeParams,
|
|
772
|
+
type DeploymentResumeByNamespaceParams as DeploymentResumeByNamespaceParams,
|
|
773
|
+
type DeploymentStreamParams as DeploymentStreamParams,
|
|
774
|
+
type DeploymentStreamByNamespaceParams as DeploymentStreamByNamespaceParams,
|
|
474
775
|
};
|
|
475
776
|
}
|
|
@@ -9,31 +9,57 @@ export {
|
|
|
9
9
|
type StdioDeployPayload,
|
|
10
10
|
type DeploymentListResponse,
|
|
11
11
|
type DeploymentDeployResponse,
|
|
12
|
+
type DeploymentDeployByNamespaceResponse,
|
|
12
13
|
type DeploymentGetResponse,
|
|
14
|
+
type DeploymentGetByNamespaceResponse,
|
|
15
|
+
type DeploymentListByNamespaceResponse,
|
|
13
16
|
type DeploymentResumeResponse,
|
|
17
|
+
type DeploymentResumeByNamespaceResponse,
|
|
18
|
+
type DeploymentStreamResponse,
|
|
19
|
+
type DeploymentStreamByNamespaceResponse,
|
|
14
20
|
type DeploymentListParams,
|
|
15
21
|
type DeploymentDeployParams,
|
|
22
|
+
type DeploymentDeployByNamespaceParams,
|
|
16
23
|
type DeploymentGetParams,
|
|
24
|
+
type DeploymentGetByNamespaceParams,
|
|
17
25
|
type DeploymentResumeParams,
|
|
26
|
+
type DeploymentResumeByNamespaceParams,
|
|
27
|
+
type DeploymentStreamParams,
|
|
28
|
+
type DeploymentStreamByNamespaceParams,
|
|
18
29
|
} from './deployments';
|
|
19
|
-
export {
|
|
30
|
+
export {
|
|
31
|
+
Logs,
|
|
32
|
+
type LogListResponse,
|
|
33
|
+
type LogListByNamespaceResponse,
|
|
34
|
+
type LogListParams,
|
|
35
|
+
type LogListByNamespaceParams,
|
|
36
|
+
} from './logs';
|
|
20
37
|
export {
|
|
21
38
|
Repo,
|
|
22
39
|
type RepoDeleteResponse,
|
|
40
|
+
type RepoDeleteByNamespaceResponse,
|
|
23
41
|
type RepoGetResponse,
|
|
42
|
+
type RepoGetByNamespaceResponse,
|
|
24
43
|
type RepoSetResponse,
|
|
44
|
+
type RepoSetByNamespaceResponse,
|
|
25
45
|
type RepoDeleteParams,
|
|
26
46
|
type RepoGetParams,
|
|
27
47
|
type RepoSetParams,
|
|
48
|
+
type RepoSetByNamespaceParams,
|
|
28
49
|
} from './repo';
|
|
29
50
|
export {
|
|
30
51
|
Secrets,
|
|
31
52
|
type SecretListResponse,
|
|
32
53
|
type SecretDeleteResponse,
|
|
54
|
+
type SecretDeleteByNamespaceResponse,
|
|
55
|
+
type SecretListByNamespaceResponse,
|
|
33
56
|
type SecretSetResponse,
|
|
57
|
+
type SecretSetByNamespaceResponse,
|
|
34
58
|
type SecretListParams,
|
|
35
59
|
type SecretDeleteParams,
|
|
60
|
+
type SecretDeleteByNamespaceParams,
|
|
36
61
|
type SecretSetParams,
|
|
62
|
+
type SecretSetByNamespaceParams,
|
|
37
63
|
} from './secrets';
|
|
38
64
|
export {
|
|
39
65
|
Servers,
|
|
@@ -43,6 +69,7 @@ export {
|
|
|
43
69
|
type ServerListResponse,
|
|
44
70
|
type ServerDeleteResponse,
|
|
45
71
|
type ServerGetResponse,
|
|
72
|
+
type ServerGetByNamespaceResponse,
|
|
46
73
|
type ServerListParams,
|
|
47
74
|
type ServerDeleteParams,
|
|
48
75
|
type ServerDownloadParams,
|