@smithery/api 0.48.0 → 0.50.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 +28 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +7 -0
- package/client.js.map +1 -1
- package/client.mjs +7 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/connections/connections.d.mts +18 -0
- package/resources/connections/connections.d.mts.map +1 -1
- package/resources/connections/connections.d.ts +18 -0
- package/resources/connections/connections.d.ts.map +1 -1
- package/resources/connections/connections.js.map +1 -1
- package/resources/connections/connections.mjs.map +1 -1
- package/resources/servers/icon.d.mts +51 -0
- package/resources/servers/icon.d.mts.map +1 -0
- package/resources/servers/icon.d.ts +51 -0
- package/resources/servers/icon.d.ts.map +1 -0
- package/resources/servers/icon.js +57 -0
- package/resources/servers/icon.js.map +1 -0
- package/resources/servers/icon.mjs +53 -0
- package/resources/servers/icon.mjs.map +1 -0
- package/resources/servers/index.d.mts +2 -1
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +2 -1
- 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/repo.d.mts +27 -1
- package/resources/servers/repo.d.mts.map +1 -1
- package/resources/servers/repo.d.ts +27 -1
- package/resources/servers/repo.d.ts.map +1 -1
- package/resources/servers/repo.js +14 -0
- package/resources/servers/repo.js.map +1 -1
- package/resources/servers/repo.mjs +14 -0
- package/resources/servers/repo.mjs.map +1 -1
- package/resources/servers/servers.d.mts +6 -2
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +6 -2
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +4 -0
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +5 -1
- package/resources/servers/servers.mjs.map +1 -1
- package/src/client.ts +8 -0
- package/src/resources/connections/connections.ts +21 -0
- package/src/resources/servers/icon.ts +70 -0
- package/src/resources/servers/index.ts +3 -0
- package/src/resources/servers/repo.ts +45 -0
- package/src/resources/servers/servers.ts +21 -1
- 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/src/client.ts
CHANGED
|
@@ -778,6 +778,14 @@ export class Smithery {
|
|
|
778
778
|
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
|
|
779
779
|
) {
|
|
780
780
|
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
|
|
781
|
+
} else if (
|
|
782
|
+
typeof body === 'object' &&
|
|
783
|
+
headers.values.get('content-type') === 'application/x-www-form-urlencoded'
|
|
784
|
+
) {
|
|
785
|
+
return {
|
|
786
|
+
bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
|
|
787
|
+
body: this.stringifyQuery(body as Record<string, unknown>),
|
|
788
|
+
};
|
|
781
789
|
} else {
|
|
782
790
|
return this.#encoder({ body, headers });
|
|
783
791
|
}
|
|
@@ -224,6 +224,13 @@ export interface CreateConnectionRequest {
|
|
|
224
224
|
* Human-readable name (optional, defaults to connection ID)
|
|
225
225
|
*/
|
|
226
226
|
name?: string;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Webhook callback URL for server-to-client messages (HTTPS). When set, the MCP
|
|
230
|
+
* server will POST notifications and requests to this URL instead of using SSE.
|
|
231
|
+
* This field is unstable and may change before GA.
|
|
232
|
+
*/
|
|
233
|
+
unstableCallbackUrl?: string;
|
|
227
234
|
}
|
|
228
235
|
|
|
229
236
|
export interface ConnectionDeleteResponse {
|
|
@@ -251,6 +258,13 @@ export interface ConnectionCreateParams {
|
|
|
251
258
|
* Human-readable name (optional, defaults to connection ID)
|
|
252
259
|
*/
|
|
253
260
|
name?: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Webhook callback URL for server-to-client messages (HTTPS). When set, the MCP
|
|
264
|
+
* server will POST notifications and requests to this URL instead of using SSE.
|
|
265
|
+
* This field is unstable and may change before GA.
|
|
266
|
+
*/
|
|
267
|
+
unstableCallbackUrl?: string;
|
|
254
268
|
}
|
|
255
269
|
|
|
256
270
|
export interface ConnectionListParams {
|
|
@@ -310,6 +324,13 @@ export interface ConnectionSetParams {
|
|
|
310
324
|
* Body param: Human-readable name (optional, defaults to connection ID)
|
|
311
325
|
*/
|
|
312
326
|
name?: string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Body param: Webhook callback URL for server-to-client messages (HTTPS). When
|
|
330
|
+
* set, the MCP server will POST notifications and requests to this URL instead of
|
|
331
|
+
* using SSE. This field is unstable and may change before GA.
|
|
332
|
+
*/
|
|
333
|
+
unstableCallbackUrl?: string;
|
|
313
334
|
}
|
|
314
335
|
|
|
315
336
|
Connections.Mcp = Mcp;
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { buildHeaders } from '../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Icon extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Remove the server's icon.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const icon = await client.servers.icon.delete(
|
|
16
|
+
* 'qualifiedName',
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
delete(qualifiedName: string, options?: RequestOptions): APIPromise<IconDeleteResponse> {
|
|
21
|
+
return this._client.delete(path`/servers/${qualifiedName}/icon`, options);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve the server's icon image. Returns the image directly with appropriate
|
|
26
|
+
* content type.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const icon = await client.servers.icon.get('qualifiedName');
|
|
31
|
+
*
|
|
32
|
+
* const content = await icon.blob();
|
|
33
|
+
* console.log(content);
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
get(qualifiedName: string, options?: RequestOptions): APIPromise<Response> {
|
|
37
|
+
return this._client.get(path`/servers/${qualifiedName}/icon`, {
|
|
38
|
+
...options,
|
|
39
|
+
headers: buildHeaders([{ Accept: 'image/*' }, options?.headers]),
|
|
40
|
+
__binaryResponse: true,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Upload or replace the server icon. Accepts a single image file via
|
|
46
|
+
* multipart/form-data. Max 1MB. Supported formats: PNG, JPEG, GIF, SVG, WebP.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const response = await client.servers.icon.upload(
|
|
51
|
+
* 'qualifiedName',
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
upload(qualifiedName: string, options?: RequestOptions): APIPromise<IconUploadResponse> {
|
|
56
|
+
return this._client.put(path`/servers/${qualifiedName}/icon`, options);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface IconDeleteResponse {
|
|
61
|
+
success: boolean;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface IconUploadResponse {
|
|
65
|
+
iconUrl: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export declare namespace Icon {
|
|
69
|
+
export { type IconDeleteResponse as IconDeleteResponse, type IconUploadResponse as IconUploadResponse };
|
|
70
|
+
}
|
|
@@ -10,6 +10,7 @@ export {
|
|
|
10
10
|
type DomainUpdateParams,
|
|
11
11
|
type DomainDeleteParams,
|
|
12
12
|
} from './domains';
|
|
13
|
+
export { Icon, type IconDeleteResponse, type IconUploadResponse } from './icon';
|
|
13
14
|
export { Logs, type LogListResponse, type LogListParams } from './logs';
|
|
14
15
|
export {
|
|
15
16
|
Releases,
|
|
@@ -30,9 +31,11 @@ export {
|
|
|
30
31
|
} from './releases';
|
|
31
32
|
export {
|
|
32
33
|
Repo,
|
|
34
|
+
type RepoUpdateResponse,
|
|
33
35
|
type RepoDeleteResponse,
|
|
34
36
|
type RepoGetResponse,
|
|
35
37
|
type RepoSetResponse,
|
|
38
|
+
type RepoUpdateParams,
|
|
36
39
|
type RepoSetParams,
|
|
37
40
|
} from './repo';
|
|
38
41
|
export {
|
|
@@ -6,6 +6,25 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
6
6
|
import { path } from '../../internal/utils/path';
|
|
7
7
|
|
|
8
8
|
export class Repo extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Partially update the GitHub repository connection settings. Only provided fields
|
|
11
|
+
* are updated.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const repo = await client.servers.repo.update(
|
|
16
|
+
* 'qualifiedName',
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
update(
|
|
21
|
+
qualifiedName: string,
|
|
22
|
+
body: RepoUpdateParams | null | undefined = {},
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): APIPromise<RepoUpdateResponse> {
|
|
25
|
+
return this._client.patch(path`/servers/${qualifiedName}/repo`, { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
|
|
9
28
|
/**
|
|
10
29
|
* Remove the GitHub repository connection.
|
|
11
30
|
*
|
|
@@ -49,6 +68,22 @@ export class Repo extends APIResource {
|
|
|
49
68
|
}
|
|
50
69
|
}
|
|
51
70
|
|
|
71
|
+
export interface RepoUpdateResponse {
|
|
72
|
+
autoDeploy: boolean | null;
|
|
73
|
+
|
|
74
|
+
baseDirectory: string;
|
|
75
|
+
|
|
76
|
+
branch: string | null;
|
|
77
|
+
|
|
78
|
+
isPrivate: boolean;
|
|
79
|
+
|
|
80
|
+
repoName: string;
|
|
81
|
+
|
|
82
|
+
repoOwner: string;
|
|
83
|
+
|
|
84
|
+
type: 'github';
|
|
85
|
+
}
|
|
86
|
+
|
|
52
87
|
export interface RepoDeleteResponse {
|
|
53
88
|
success: boolean;
|
|
54
89
|
}
|
|
@@ -85,6 +120,14 @@ export interface RepoSetResponse {
|
|
|
85
120
|
type: 'github';
|
|
86
121
|
}
|
|
87
122
|
|
|
123
|
+
export interface RepoUpdateParams {
|
|
124
|
+
autoDeploy?: boolean;
|
|
125
|
+
|
|
126
|
+
baseDirectory?: string;
|
|
127
|
+
|
|
128
|
+
branch?: string | null;
|
|
129
|
+
}
|
|
130
|
+
|
|
88
131
|
export interface RepoSetParams {
|
|
89
132
|
repoName: string;
|
|
90
133
|
|
|
@@ -99,9 +142,11 @@ export interface RepoSetParams {
|
|
|
99
142
|
|
|
100
143
|
export declare namespace Repo {
|
|
101
144
|
export {
|
|
145
|
+
type RepoUpdateResponse as RepoUpdateResponse,
|
|
102
146
|
type RepoDeleteResponse as RepoDeleteResponse,
|
|
103
147
|
type RepoGetResponse as RepoGetResponse,
|
|
104
148
|
type RepoSetResponse as RepoSetResponse,
|
|
149
|
+
type RepoUpdateParams as RepoUpdateParams,
|
|
105
150
|
type RepoSetParams as RepoSetParams,
|
|
106
151
|
};
|
|
107
152
|
}
|
|
@@ -12,6 +12,8 @@ import {
|
|
|
12
12
|
DomainUpdateResponse,
|
|
13
13
|
Domains,
|
|
14
14
|
} from './domains';
|
|
15
|
+
import * as IconAPI from './icon';
|
|
16
|
+
import { Icon, IconDeleteResponse, IconUploadResponse } from './icon';
|
|
15
17
|
import * as LogsAPI from './logs';
|
|
16
18
|
import { LogListParams, LogListResponse, Logs } from './logs';
|
|
17
19
|
import * as ReleasesAPI from './releases';
|
|
@@ -33,7 +35,15 @@ import {
|
|
|
33
35
|
StdioDeployPayload,
|
|
34
36
|
} from './releases';
|
|
35
37
|
import * as RepoAPI from './repo';
|
|
36
|
-
import {
|
|
38
|
+
import {
|
|
39
|
+
Repo,
|
|
40
|
+
RepoDeleteResponse,
|
|
41
|
+
RepoGetResponse,
|
|
42
|
+
RepoSetParams,
|
|
43
|
+
RepoSetResponse,
|
|
44
|
+
RepoUpdateParams,
|
|
45
|
+
RepoUpdateResponse,
|
|
46
|
+
} from './repo';
|
|
37
47
|
import * as SecretsAPI from './secrets';
|
|
38
48
|
import {
|
|
39
49
|
SecretDeleteParams,
|
|
@@ -54,6 +64,7 @@ export class Servers extends APIResource {
|
|
|
54
64
|
logs: LogsAPI.Logs = new LogsAPI.Logs(this._client);
|
|
55
65
|
secrets: SecretsAPI.Secrets = new SecretsAPI.Secrets(this._client);
|
|
56
66
|
repo: RepoAPI.Repo = new RepoAPI.Repo(this._client);
|
|
67
|
+
icon: IconAPI.Icon = new IconAPI.Icon(this._client);
|
|
57
68
|
domains: DomainsAPI.Domains = new DomainsAPI.Domains(this._client);
|
|
58
69
|
|
|
59
70
|
/**
|
|
@@ -461,6 +472,7 @@ Servers.Releases = Releases;
|
|
|
461
472
|
Servers.Logs = Logs;
|
|
462
473
|
Servers.Secrets = Secrets;
|
|
463
474
|
Servers.Repo = Repo;
|
|
475
|
+
Servers.Icon = Icon;
|
|
464
476
|
Servers.Domains = Domains;
|
|
465
477
|
|
|
466
478
|
export declare namespace Servers {
|
|
@@ -510,12 +522,20 @@ export declare namespace Servers {
|
|
|
510
522
|
|
|
511
523
|
export {
|
|
512
524
|
Repo as Repo,
|
|
525
|
+
type RepoUpdateResponse as RepoUpdateResponse,
|
|
513
526
|
type RepoDeleteResponse as RepoDeleteResponse,
|
|
514
527
|
type RepoGetResponse as RepoGetResponse,
|
|
515
528
|
type RepoSetResponse as RepoSetResponse,
|
|
529
|
+
type RepoUpdateParams as RepoUpdateParams,
|
|
516
530
|
type RepoSetParams as RepoSetParams,
|
|
517
531
|
};
|
|
518
532
|
|
|
533
|
+
export {
|
|
534
|
+
Icon as Icon,
|
|
535
|
+
type IconDeleteResponse as IconDeleteResponse,
|
|
536
|
+
type IconUploadResponse as IconUploadResponse,
|
|
537
|
+
};
|
|
538
|
+
|
|
519
539
|
export {
|
|
520
540
|
Domains as Domains,
|
|
521
541
|
type DomainCreateResponse as DomainCreateResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.50.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.50.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.50.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.50.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|