@smithery/api 0.26.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +10 -5
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/connect/tools.d.mts +5 -9
- package/resources/beta/connect/tools.d.mts.map +1 -1
- package/resources/beta/connect/tools.d.ts +5 -9
- package/resources/beta/connect/tools.d.ts.map +1 -1
- package/resources/beta/connect/tools.js +4 -5
- package/resources/beta/connect/tools.js.map +1 -1
- package/resources/beta/connect/tools.mjs +4 -5
- package/resources/beta/connect/tools.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/namespaces/index.d.mts +3 -0
- package/resources/namespaces/index.d.mts.map +1 -0
- package/resources/namespaces/index.d.ts +3 -0
- package/resources/namespaces/index.d.ts.map +1 -0
- package/resources/namespaces/index.js +9 -0
- package/resources/namespaces/index.js.map +1 -0
- package/resources/namespaces/index.mjs +4 -0
- package/resources/namespaces/index.mjs.map +1 -0
- package/resources/namespaces/namespaces.d.mts +60 -0
- package/resources/namespaces/namespaces.d.mts.map +1 -0
- package/resources/namespaces/namespaces.d.ts +60 -0
- package/resources/namespaces/namespaces.d.ts.map +1 -0
- package/resources/namespaces/namespaces.js +54 -0
- package/resources/namespaces/namespaces.js.map +1 -0
- package/resources/namespaces/namespaces.mjs +49 -0
- package/resources/namespaces/namespaces.mjs.map +1 -0
- package/resources/namespaces/servers.d.mts +46 -0
- package/resources/namespaces/servers.d.mts.map +1 -0
- package/resources/namespaces/servers.d.ts +46 -0
- package/resources/namespaces/servers.d.ts.map +1 -0
- package/resources/namespaces/servers.js +25 -0
- package/resources/namespaces/servers.js.map +1 -0
- package/resources/namespaces/servers.mjs +21 -0
- package/resources/namespaces/servers.mjs.map +1 -0
- package/resources/namespaces.d.mts +1 -39
- package/resources/namespaces.d.mts.map +1 -1
- package/resources/namespaces.d.ts +1 -39
- package/resources/namespaces.d.ts.map +1 -1
- package/resources/namespaces.js +2 -26
- package/resources/namespaces.js.map +1 -1
- package/resources/namespaces.mjs +1 -24
- package/resources/namespaces.mjs.map +1 -1
- package/resources/servers/deployments.d.mts +55 -9
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +55 -9
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +42 -8
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +42 -8
- package/resources/servers/deployments.mjs.map +1 -1
- package/resources/servers/index.d.mts +4 -3
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +4 -3
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/index.js +3 -1
- package/resources/servers/index.js.map +1 -1
- package/resources/servers/index.mjs +1 -0
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/logs.d.mts +15 -4
- package/resources/servers/logs.d.mts.map +1 -1
- package/resources/servers/logs.d.ts +15 -4
- package/resources/servers/logs.d.ts.map +1 -1
- package/resources/servers/logs.js +10 -2
- package/resources/servers/logs.js.map +1 -1
- package/resources/servers/logs.mjs +10 -2
- package/resources/servers/logs.mjs.map +1 -1
- package/resources/servers/repo.d.mts +98 -0
- package/resources/servers/repo.d.mts.map +1 -0
- package/resources/servers/repo.d.ts +98 -0
- package/resources/servers/repo.d.ts.map +1 -0
- package/resources/servers/repo.js +55 -0
- package/resources/servers/repo.js.map +1 -0
- package/resources/servers/repo.mjs +51 -0
- package/resources/servers/repo.mjs.map +1 -0
- package/resources/servers/secrets.d.mts +46 -4
- package/resources/servers/secrets.d.mts.map +1 -1
- package/resources/servers/secrets.d.ts +46 -4
- package/resources/servers/secrets.d.ts.map +1 -1
- package/resources/servers/secrets.js +36 -6
- package/resources/servers/secrets.js.map +1 -1
- package/resources/servers/secrets.mjs +36 -6
- package/resources/servers/secrets.mjs.map +1 -1
- package/resources/servers/servers.d.mts +55 -10
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +55 -10
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +47 -8
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +47 -8
- package/resources/servers/servers.mjs.map +1 -1
- package/src/client.ts +12 -6
- package/src/resources/beta/connect/tools.ts +6 -9
- package/src/resources/index.ts +4 -1
- package/src/resources/namespaces/index.ts +14 -0
- package/src/resources/namespaces/namespaces.ts +92 -0
- package/src/resources/namespaces/servers.ts +71 -0
- package/src/resources/namespaces.ts +1 -61
- package/src/resources/servers/deployments.ts +76 -15
- package/src/resources/servers/index.ts +14 -0
- package/src/resources/servers/logs.ts +18 -9
- package/src/resources/servers/repo.ts +143 -0
- package/src/resources/servers/secrets.ts +55 -7
- package/src/resources/servers/servers.ts +88 -8
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -8,28 +8,58 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
export class Secrets extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Fetch secret names for the server. Values are not returned.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const secrets = await client.servers.secrets.list(
|
|
15
|
+
* 'server',
|
|
16
|
+
* { namespace: 'namespace' },
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
11
19
|
*/
|
|
12
|
-
list(
|
|
13
|
-
|
|
20
|
+
list(server: string, params: SecretListParams, options?: RequestOptions): APIPromise<SecretListResponse> {
|
|
21
|
+
const { namespace } = params;
|
|
22
|
+
return this._client.get(path`/servers/${namespace}/${server}/secrets`, options);
|
|
14
23
|
}
|
|
15
24
|
|
|
16
25
|
/**
|
|
17
26
|
* Delete a secret by name from the server.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const secret = await client.servers.secrets.delete(
|
|
31
|
+
* 'secretName',
|
|
32
|
+
* { namespace: 'namespace', server: 'server' },
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
18
35
|
*/
|
|
19
36
|
delete(
|
|
20
37
|
secretName: string,
|
|
21
38
|
params: SecretDeleteParams,
|
|
22
39
|
options?: RequestOptions,
|
|
23
40
|
): APIPromise<SecretDeleteResponse> {
|
|
24
|
-
const {
|
|
25
|
-
return this._client.delete(path`/servers/${
|
|
41
|
+
const { namespace, server } = params;
|
|
42
|
+
return this._client.delete(path`/servers/${namespace}/${server}/secrets/${secretName}`, options);
|
|
26
43
|
}
|
|
27
44
|
|
|
28
45
|
/**
|
|
29
46
|
* Set a secret value for the server.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const response = await client.servers.secrets.set(
|
|
51
|
+
* 'server',
|
|
52
|
+
* {
|
|
53
|
+
* namespace: 'namespace',
|
|
54
|
+
* name: 'x',
|
|
55
|
+
* value: 'x',
|
|
56
|
+
* },
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
30
59
|
*/
|
|
31
|
-
set(
|
|
32
|
-
|
|
60
|
+
set(server: string, params: SecretSetParams, options?: RequestOptions): APIPromise<SecretSetResponse> {
|
|
61
|
+
const { namespace, ...body } = params;
|
|
62
|
+
return this._client.put(path`/servers/${namespace}/${server}/secrets`, { body, ...options });
|
|
33
63
|
}
|
|
34
64
|
}
|
|
35
65
|
|
|
@@ -51,13 +81,30 @@ export interface SecretSetResponse {
|
|
|
51
81
|
success: boolean;
|
|
52
82
|
}
|
|
53
83
|
|
|
84
|
+
export interface SecretListParams {
|
|
85
|
+
namespace: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
54
88
|
export interface SecretDeleteParams {
|
|
55
|
-
|
|
89
|
+
namespace: string;
|
|
90
|
+
|
|
91
|
+
server: string;
|
|
56
92
|
}
|
|
57
93
|
|
|
58
94
|
export interface SecretSetParams {
|
|
95
|
+
/**
|
|
96
|
+
* Path param
|
|
97
|
+
*/
|
|
98
|
+
namespace: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Body param
|
|
102
|
+
*/
|
|
59
103
|
name: string;
|
|
60
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Body param
|
|
107
|
+
*/
|
|
61
108
|
value: string;
|
|
62
109
|
}
|
|
63
110
|
|
|
@@ -66,6 +113,7 @@ export declare namespace Secrets {
|
|
|
66
113
|
type SecretListResponse as SecretListResponse,
|
|
67
114
|
type SecretDeleteResponse as SecretDeleteResponse,
|
|
68
115
|
type SecretSetResponse as SecretSetResponse,
|
|
116
|
+
type SecretListParams as SecretListParams,
|
|
69
117
|
type SecretDeleteParams as SecretDeleteParams,
|
|
70
118
|
type SecretSetParams as SecretSetParams,
|
|
71
119
|
};
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
DeploymentDeployResponse,
|
|
9
9
|
DeploymentGetParams,
|
|
10
10
|
DeploymentGetResponse,
|
|
11
|
+
DeploymentListParams,
|
|
11
12
|
DeploymentListResponse,
|
|
12
13
|
DeploymentResumeParams,
|
|
13
14
|
DeploymentResumeResponse,
|
|
@@ -19,10 +20,21 @@ import {
|
|
|
19
20
|
} from './deployments';
|
|
20
21
|
import * as LogsAPI from './logs';
|
|
21
22
|
import { LogListParams, LogListResponse, Logs } from './logs';
|
|
23
|
+
import * as RepoAPI from './repo';
|
|
24
|
+
import {
|
|
25
|
+
Repo,
|
|
26
|
+
RepoDeleteParams,
|
|
27
|
+
RepoDeleteResponse,
|
|
28
|
+
RepoGetParams,
|
|
29
|
+
RepoGetResponse,
|
|
30
|
+
RepoSetParams,
|
|
31
|
+
RepoSetResponse,
|
|
32
|
+
} from './repo';
|
|
22
33
|
import * as SecretsAPI from './secrets';
|
|
23
34
|
import {
|
|
24
35
|
SecretDeleteParams,
|
|
25
36
|
SecretDeleteResponse,
|
|
37
|
+
SecretListParams,
|
|
26
38
|
SecretListResponse,
|
|
27
39
|
SecretSetParams,
|
|
28
40
|
SecretSetResponse,
|
|
@@ -38,9 +50,18 @@ export class Servers extends APIResource {
|
|
|
38
50
|
deployments: DeploymentsAPI.Deployments = new DeploymentsAPI.Deployments(this._client);
|
|
39
51
|
logs: LogsAPI.Logs = new LogsAPI.Logs(this._client);
|
|
40
52
|
secrets: SecretsAPI.Secrets = new SecretsAPI.Secrets(this._client);
|
|
53
|
+
repo: RepoAPI.Repo = new RepoAPI.Repo(this._client);
|
|
41
54
|
|
|
42
55
|
/**
|
|
43
56
|
* Get a paginated list of all servers. Use the `q` parameter to search.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* // Automatically fetches more pages as needed.
|
|
61
|
+
* for await (const serverListResponse of client.servers.list()) {
|
|
62
|
+
* // ...
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
44
65
|
*/
|
|
45
66
|
list(
|
|
46
67
|
query: ServerListParams | null | undefined = {},
|
|
@@ -50,17 +71,40 @@ export class Servers extends APIResource {
|
|
|
50
71
|
}
|
|
51
72
|
|
|
52
73
|
/**
|
|
53
|
-
* Delete a server by
|
|
74
|
+
* Delete a server by namespace and server name.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const server = await client.servers.delete('server', {
|
|
79
|
+
* namespace: 'namespace',
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
54
82
|
*/
|
|
55
|
-
delete(
|
|
56
|
-
|
|
83
|
+
delete(
|
|
84
|
+
server: string,
|
|
85
|
+
params: ServerDeleteParams,
|
|
86
|
+
options?: RequestOptions,
|
|
87
|
+
): APIPromise<ServerDeleteResponse> {
|
|
88
|
+
const { namespace } = params;
|
|
89
|
+
return this._client.delete(path`/servers/${namespace}/${server}`, options);
|
|
57
90
|
}
|
|
58
91
|
|
|
59
92
|
/**
|
|
60
93
|
* Download the MCPB bundle for the latest successful stdio deployment
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* const response = await client.servers.download('server', {
|
|
98
|
+
* namespace: 'namespace',
|
|
99
|
+
* });
|
|
100
|
+
*
|
|
101
|
+
* const content = await response.blob();
|
|
102
|
+
* console.log(content);
|
|
103
|
+
* ```
|
|
61
104
|
*/
|
|
62
|
-
download(
|
|
63
|
-
|
|
105
|
+
download(server: string, params: ServerDownloadParams, options?: RequestOptions): APIPromise<Response> {
|
|
106
|
+
const { namespace } = params;
|
|
107
|
+
return this._client.get(path`/servers/${namespace}/${server}/download`, {
|
|
64
108
|
...options,
|
|
65
109
|
headers: buildHeaders([{ Accept: 'application/zip' }, options?.headers]),
|
|
66
110
|
__binaryResponse: true,
|
|
@@ -68,10 +112,18 @@ export class Servers extends APIResource {
|
|
|
68
112
|
}
|
|
69
113
|
|
|
70
114
|
/**
|
|
71
|
-
* Get a single server by its
|
|
115
|
+
* Get a single server by its namespace and server name.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```ts
|
|
119
|
+
* const server = await client.servers.get('server', {
|
|
120
|
+
* namespace: 'namespace',
|
|
121
|
+
* });
|
|
122
|
+
* ```
|
|
72
123
|
*/
|
|
73
|
-
get(
|
|
74
|
-
|
|
124
|
+
get(server: string, params: ServerGetParams, options?: RequestOptions): APIPromise<ServerGetResponse> {
|
|
125
|
+
const { namespace } = params;
|
|
126
|
+
return this._client.get(path`/servers/${namespace}/${server}`, options);
|
|
75
127
|
}
|
|
76
128
|
}
|
|
77
129
|
|
|
@@ -250,9 +302,22 @@ export interface ServerListParams extends SmitheryPageParams {
|
|
|
250
302
|
verified?: '0' | '1' | 'true' | 'false';
|
|
251
303
|
}
|
|
252
304
|
|
|
305
|
+
export interface ServerDeleteParams {
|
|
306
|
+
namespace: string;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export interface ServerDownloadParams {
|
|
310
|
+
namespace: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export interface ServerGetParams {
|
|
314
|
+
namespace: string;
|
|
315
|
+
}
|
|
316
|
+
|
|
253
317
|
Servers.Deployments = Deployments;
|
|
254
318
|
Servers.Logs = Logs;
|
|
255
319
|
Servers.Secrets = Secrets;
|
|
320
|
+
Servers.Repo = Repo;
|
|
256
321
|
|
|
257
322
|
export declare namespace Servers {
|
|
258
323
|
export {
|
|
@@ -264,6 +329,9 @@ export declare namespace Servers {
|
|
|
264
329
|
type ServerGetResponse as ServerGetResponse,
|
|
265
330
|
type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage,
|
|
266
331
|
type ServerListParams as ServerListParams,
|
|
332
|
+
type ServerDeleteParams as ServerDeleteParams,
|
|
333
|
+
type ServerDownloadParams as ServerDownloadParams,
|
|
334
|
+
type ServerGetParams as ServerGetParams,
|
|
267
335
|
};
|
|
268
336
|
|
|
269
337
|
export {
|
|
@@ -277,6 +345,7 @@ export declare namespace Servers {
|
|
|
277
345
|
type DeploymentDeployResponse as DeploymentDeployResponse,
|
|
278
346
|
type DeploymentGetResponse as DeploymentGetResponse,
|
|
279
347
|
type DeploymentResumeResponse as DeploymentResumeResponse,
|
|
348
|
+
type DeploymentListParams as DeploymentListParams,
|
|
280
349
|
type DeploymentDeployParams as DeploymentDeployParams,
|
|
281
350
|
type DeploymentGetParams as DeploymentGetParams,
|
|
282
351
|
type DeploymentResumeParams as DeploymentResumeParams,
|
|
@@ -289,7 +358,18 @@ export declare namespace Servers {
|
|
|
289
358
|
type SecretListResponse as SecretListResponse,
|
|
290
359
|
type SecretDeleteResponse as SecretDeleteResponse,
|
|
291
360
|
type SecretSetResponse as SecretSetResponse,
|
|
361
|
+
type SecretListParams as SecretListParams,
|
|
292
362
|
type SecretDeleteParams as SecretDeleteParams,
|
|
293
363
|
type SecretSetParams as SecretSetParams,
|
|
294
364
|
};
|
|
365
|
+
|
|
366
|
+
export {
|
|
367
|
+
Repo as Repo,
|
|
368
|
+
type RepoDeleteResponse as RepoDeleteResponse,
|
|
369
|
+
type RepoGetResponse as RepoGetResponse,
|
|
370
|
+
type RepoSetResponse as RepoSetResponse,
|
|
371
|
+
type RepoDeleteParams as RepoDeleteParams,
|
|
372
|
+
type RepoGetParams as RepoGetParams,
|
|
373
|
+
type RepoSetParams as RepoSetParams,
|
|
374
|
+
};
|
|
295
375
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.28.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.28.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.28.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.28.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|