@smithery/api 0.5.0 → 0.7.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 +16 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/namespaces.d.mts +45 -0
- package/resources/namespaces.d.mts.map +1 -0
- package/resources/namespaces.d.ts +45 -0
- package/resources/namespaces.d.ts.map +1 -0
- package/resources/namespaces.js +33 -0
- package/resources/namespaces.js.map +1 -0
- package/resources/namespaces.mjs +29 -0
- package/resources/namespaces.mjs.map +1 -0
- package/resources/servers/index.d.mts +1 -0
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +1 -0
- 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/secrets.d.mts +42 -0
- package/resources/servers/secrets.d.mts.map +1 -0
- package/resources/servers/secrets.d.ts +42 -0
- package/resources/servers/secrets.d.ts.map +1 -0
- package/resources/servers/secrets.js +30 -0
- package/resources/servers/secrets.js.map +1 -0
- package/resources/servers/secrets.mjs +26 -0
- package/resources/servers/secrets.mjs.map +1 -0
- package/resources/servers/servers.d.mts +9 -0
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +9 -0
- 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 +15 -0
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/skills.d.mts +1 -0
- package/resources/skills.d.mts.map +1 -1
- package/resources/skills.d.ts +1 -0
- package/resources/skills.d.ts.map +1 -1
- package/src/client.ts +15 -0
- package/src/resources/index.ts +6 -0
- package/src/resources/namespaces.ts +63 -0
- package/src/resources/servers/index.ts +8 -0
- package/src/resources/servers/secrets.ts +73 -0
- package/src/resources/servers/servers.ts +34 -0
- package/src/resources/skills.ts +2 -0
- 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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Secrets extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Fetch secret names for the server's deployed Worker (requires ownership). Values
|
|
11
|
+
* are not returned.
|
|
12
|
+
*/
|
|
13
|
+
list(qualifiedName: string, options?: RequestOptions): APIPromise<SecretListResponse> {
|
|
14
|
+
return this._client.get(path`/servers/${qualifiedName}/secrets`, options);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Delete a secret by name from the server's deployed Worker (requires ownership).
|
|
19
|
+
*/
|
|
20
|
+
delete(
|
|
21
|
+
secretName: string,
|
|
22
|
+
params: SecretDeleteParams,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): APIPromise<SecretDeleteResponse> {
|
|
25
|
+
const { qualifiedName } = params;
|
|
26
|
+
return this._client.delete(path`/servers/${qualifiedName}/secrets/${secretName}`, options);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Set a secret value for the server's deployed Worker (requires ownership).
|
|
31
|
+
*/
|
|
32
|
+
set(qualifiedName: string, body: SecretSetParams, options?: RequestOptions): APIPromise<SecretSetResponse> {
|
|
33
|
+
return this._client.put(path`/servers/${qualifiedName}/secrets`, { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type SecretListResponse = Array<SecretListResponse.SecretListResponseItem>;
|
|
38
|
+
|
|
39
|
+
export namespace SecretListResponse {
|
|
40
|
+
export interface SecretListResponseItem {
|
|
41
|
+
name: string;
|
|
42
|
+
|
|
43
|
+
type: string;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface SecretDeleteResponse {
|
|
48
|
+
success: boolean;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface SecretSetResponse {
|
|
52
|
+
success: boolean;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface SecretDeleteParams {
|
|
56
|
+
qualifiedName: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface SecretSetParams {
|
|
60
|
+
name: string;
|
|
61
|
+
|
|
62
|
+
value: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export declare namespace Secrets {
|
|
66
|
+
export {
|
|
67
|
+
type SecretListResponse as SecretListResponse,
|
|
68
|
+
type SecretDeleteResponse as SecretDeleteResponse,
|
|
69
|
+
type SecretSetResponse as SecretSetResponse,
|
|
70
|
+
type SecretDeleteParams as SecretDeleteParams,
|
|
71
|
+
type SecretSetParams as SecretSetParams,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -19,14 +19,25 @@ import {
|
|
|
19
19
|
} from './deployments';
|
|
20
20
|
import * as LogsAPI from './logs';
|
|
21
21
|
import { LogListParams, LogListResponse, Logs } from './logs';
|
|
22
|
+
import * as SecretsAPI from './secrets';
|
|
23
|
+
import {
|
|
24
|
+
SecretDeleteParams,
|
|
25
|
+
SecretDeleteResponse,
|
|
26
|
+
SecretListResponse,
|
|
27
|
+
SecretSetParams,
|
|
28
|
+
SecretSetResponse,
|
|
29
|
+
Secrets,
|
|
30
|
+
} from './secrets';
|
|
22
31
|
import { APIPromise } from '../../core/api-promise';
|
|
23
32
|
import { PagePromise, SmitheryPage, type SmitheryPageParams } from '../../core/pagination';
|
|
33
|
+
import { buildHeaders } from '../../internal/headers';
|
|
24
34
|
import { RequestOptions } from '../../internal/request-options';
|
|
25
35
|
import { path } from '../../internal/utils/path';
|
|
26
36
|
|
|
27
37
|
export class Servers extends APIResource {
|
|
28
38
|
deployments: DeploymentsAPI.Deployments = new DeploymentsAPI.Deployments(this._client);
|
|
29
39
|
logs: LogsAPI.Logs = new LogsAPI.Logs(this._client);
|
|
40
|
+
secrets: SecretsAPI.Secrets = new SecretsAPI.Secrets(this._client);
|
|
30
41
|
|
|
31
42
|
/**
|
|
32
43
|
* Get a single server by its qualified name.
|
|
@@ -44,6 +55,17 @@ export class Servers extends APIResource {
|
|
|
44
55
|
): PagePromise<ServerListResponsesSmitheryPage, ServerListResponse> {
|
|
45
56
|
return this._client.getAPIList('/servers', SmitheryPage<ServerListResponse>, { query, ...options });
|
|
46
57
|
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Download the MCPB bundle for the latest successful stdio deployment
|
|
61
|
+
*/
|
|
62
|
+
download(qualifiedName: string, options?: RequestOptions): APIPromise<Response> {
|
|
63
|
+
return this._client.get(path`/servers/${qualifiedName}/download`, {
|
|
64
|
+
...options,
|
|
65
|
+
headers: buildHeaders([{ Accept: 'application/zip' }, options?.headers]),
|
|
66
|
+
__binaryResponse: true,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
47
69
|
}
|
|
48
70
|
|
|
49
71
|
export type ServerListResponsesSmitheryPage = SmitheryPage<ServerListResponse>;
|
|
@@ -147,11 +169,14 @@ export interface ServerListParams extends SmitheryPageParams {
|
|
|
147
169
|
|
|
148
170
|
repoOwner?: string;
|
|
149
171
|
|
|
172
|
+
topK?: number;
|
|
173
|
+
|
|
150
174
|
verified?: '0' | '1' | 'true' | 'false';
|
|
151
175
|
}
|
|
152
176
|
|
|
153
177
|
Servers.Deployments = Deployments;
|
|
154
178
|
Servers.Logs = Logs;
|
|
179
|
+
Servers.Secrets = Secrets;
|
|
155
180
|
|
|
156
181
|
export declare namespace Servers {
|
|
157
182
|
export {
|
|
@@ -178,4 +203,13 @@ export declare namespace Servers {
|
|
|
178
203
|
};
|
|
179
204
|
|
|
180
205
|
export { Logs as Logs, type LogListResponse as LogListResponse, type LogListParams as LogListParams };
|
|
206
|
+
|
|
207
|
+
export {
|
|
208
|
+
Secrets as Secrets,
|
|
209
|
+
type SecretListResponse as SecretListResponse,
|
|
210
|
+
type SecretDeleteResponse as SecretDeleteResponse,
|
|
211
|
+
type SecretSetResponse as SecretSetResponse,
|
|
212
|
+
type SecretDeleteParams as SecretDeleteParams,
|
|
213
|
+
type SecretSetParams as SecretSetParams,
|
|
214
|
+
};
|
|
181
215
|
}
|
package/src/resources/skills.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.7.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.7.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.7.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.7.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|