@smithery/api 0.61.0 → 0.63.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 +37 -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/connections/connections.d.mts +8 -4
- package/resources/connections/connections.d.mts.map +1 -1
- package/resources/connections/connections.d.ts +8 -4
- package/resources/connections/connections.d.ts.map +1 -1
- package/resources/connections/connections.js +31 -9
- package/resources/connections/connections.js.map +1 -1
- package/resources/connections/connections.mjs +31 -9
- package/resources/connections/connections.mjs.map +1 -1
- package/resources/connections/index.d.mts +2 -1
- package/resources/connections/index.d.mts.map +1 -1
- package/resources/connections/index.d.ts +2 -1
- package/resources/connections/index.d.ts.map +1 -1
- package/resources/connections/index.js +5 -3
- package/resources/connections/index.js.map +1 -1
- package/resources/connections/index.mjs +2 -1
- package/resources/connections/index.mjs.map +1 -1
- package/resources/connections/subscriptions.d.mts +66 -0
- package/resources/connections/subscriptions.d.mts.map +1 -0
- package/resources/connections/subscriptions.d.ts +66 -0
- package/resources/connections/subscriptions.d.ts.map +1 -0
- package/resources/connections/subscriptions.js +71 -0
- package/resources/connections/subscriptions.js.map +1 -0
- package/resources/connections/subscriptions.mjs +67 -0
- package/resources/connections/subscriptions.mjs.map +1 -0
- package/resources/connections/triggers.d.mts +160 -0
- package/resources/connections/triggers.d.mts.map +1 -0
- package/resources/connections/triggers.d.ts +160 -0
- package/resources/connections/triggers.d.ts.map +1 -0
- package/resources/connections/triggers.js +111 -0
- package/resources/connections/triggers.js.map +1 -0
- package/resources/connections/triggers.mjs +107 -0
- package/resources/connections/triggers.mjs.map +1 -0
- 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/servers/index.d.mts +0 -1
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +0 -1
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/index.js +1 -3
- package/resources/servers/index.js.map +1 -1
- package/resources/servers/index.mjs +0 -1
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/releases.d.mts +10 -8
- package/resources/servers/releases.d.mts.map +1 -1
- package/resources/servers/releases.d.ts +10 -8
- package/resources/servers/releases.d.ts.map +1 -1
- package/resources/servers/releases.js +1 -1
- package/resources/servers/releases.js.map +1 -1
- package/resources/servers/releases.mjs +1 -1
- package/resources/servers/releases.mjs.map +1 -1
- package/resources/servers/servers.d.mts +7 -10
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +7 -10
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +2 -5
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +2 -5
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/subscriptions.d.mts +76 -0
- package/resources/subscriptions.d.mts.map +1 -0
- package/resources/subscriptions.d.ts +76 -0
- package/resources/subscriptions.d.ts.map +1 -0
- package/resources/subscriptions.js +40 -0
- package/resources/subscriptions.js.map +1 -0
- package/resources/subscriptions.mjs +36 -0
- package/resources/subscriptions.mjs.map +1 -0
- package/src/client.ts +21 -0
- package/src/resources/connections/connections.ts +68 -13
- package/src/resources/connections/index.ts +20 -1
- package/src/resources/connections/subscriptions.ts +112 -0
- package/src/resources/connections/triggers.ts +245 -0
- package/src/resources/index.ts +9 -0
- package/src/resources/servers/index.ts +0 -9
- package/src/resources/servers/releases.ts +8 -9
- package/src/resources/servers/servers.ts +10 -31
- package/src/resources/subscriptions.ts +122 -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
- package/resources/connections/mcp.d.mts +0 -44
- package/resources/connections/mcp.d.mts.map +0 -1
- package/resources/connections/mcp.d.ts +0 -44
- package/resources/connections/mcp.d.ts.map +0 -1
- package/resources/connections/mcp.js +0 -28
- package/resources/connections/mcp.js.map +0 -1
- package/resources/connections/mcp.mjs +0 -24
- package/resources/connections/mcp.mjs.map +0 -1
- package/resources/servers/repo.d.mts +0 -99
- package/resources/servers/repo.d.mts.map +0 -1
- package/resources/servers/repo.d.ts +0 -99
- package/resources/servers/repo.d.ts.map +0 -1
- package/resources/servers/repo.js +0 -66
- package/resources/servers/repo.js.map +0 -1
- package/resources/servers/repo.mjs +0 -62
- package/resources/servers/repo.mjs.map +0 -1
- package/src/resources/connections/mcp.ts +0 -63
- package/src/resources/servers/repo.ts +0 -155
|
@@ -0,0 +1,245 @@
|
|
|
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 Triggers extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a trigger instance for a connection using the trigger's declared params.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const triggerInstance =
|
|
15
|
+
* await client.connections.triggers.create('triggerName', {
|
|
16
|
+
* namespace: 'namespace',
|
|
17
|
+
* connectionId: 'connectionId',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(
|
|
22
|
+
triggerName: string,
|
|
23
|
+
params: TriggerCreateParams,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): APIPromise<TriggerInstance> {
|
|
26
|
+
const { namespace, connectionId } = params;
|
|
27
|
+
return this._client.post(path`/${namespace}/${connectionId}/.triggers/${triggerName}`, {
|
|
28
|
+
defaultBaseURL: 'https://smithery.run',
|
|
29
|
+
...options,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* List trigger types exposed by a connection.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const triggerDefinitionList =
|
|
39
|
+
* await client.connections.triggers.list('connectionId', {
|
|
40
|
+
* namespace: 'namespace',
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
list(
|
|
45
|
+
connectionID: string,
|
|
46
|
+
params: TriggerListParams,
|
|
47
|
+
options?: RequestOptions,
|
|
48
|
+
): APIPromise<TriggerDefinitionList> {
|
|
49
|
+
const { namespace } = params;
|
|
50
|
+
return this._client.get(path`/${namespace}/${connectionID}/.triggers`, {
|
|
51
|
+
defaultBaseURL: 'https://smithery.run',
|
|
52
|
+
...options,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Delete a trigger instance and deregister its upstream webhook.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const trigger = await client.connections.triggers.delete(
|
|
62
|
+
* 'triggerId',
|
|
63
|
+
* {
|
|
64
|
+
* namespace: 'namespace',
|
|
65
|
+
* connectionId: 'connectionId',
|
|
66
|
+
* triggerName: 'triggerName',
|
|
67
|
+
* },
|
|
68
|
+
* );
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
delete(
|
|
72
|
+
triggerID: string,
|
|
73
|
+
params: TriggerDeleteParams,
|
|
74
|
+
options?: RequestOptions,
|
|
75
|
+
): APIPromise<TriggerDeleteResponse> {
|
|
76
|
+
const { namespace, connectionId, triggerName } = params;
|
|
77
|
+
return this._client.delete(path`/${namespace}/${connectionId}/.triggers/${triggerName}/${triggerID}`, {
|
|
78
|
+
defaultBaseURL: 'https://smithery.run',
|
|
79
|
+
...options,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Get the schema for a single trigger type.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* const triggerDefinition =
|
|
89
|
+
* await client.connections.triggers.get('triggerName', {
|
|
90
|
+
* namespace: 'namespace',
|
|
91
|
+
* connectionId: 'connectionId',
|
|
92
|
+
* });
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
get(
|
|
96
|
+
triggerName: string,
|
|
97
|
+
params: TriggerGetParams,
|
|
98
|
+
options?: RequestOptions,
|
|
99
|
+
): APIPromise<TriggerDefinition> {
|
|
100
|
+
const { namespace, connectionId } = params;
|
|
101
|
+
return this._client.get(path`/${namespace}/${connectionId}/.triggers/${triggerName}`, {
|
|
102
|
+
defaultBaseURL: 'https://smithery.run',
|
|
103
|
+
...options,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Get a specific trigger instance for a connection.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```ts
|
|
112
|
+
* const triggerInstance =
|
|
113
|
+
* await client.connections.triggers.getInstance(
|
|
114
|
+
* 'triggerId',
|
|
115
|
+
* {
|
|
116
|
+
* namespace: 'namespace',
|
|
117
|
+
* connectionId: 'connectionId',
|
|
118
|
+
* triggerName: 'triggerName',
|
|
119
|
+
* },
|
|
120
|
+
* );
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
getInstance(
|
|
124
|
+
triggerID: string,
|
|
125
|
+
params: TriggerGetInstanceParams,
|
|
126
|
+
options?: RequestOptions,
|
|
127
|
+
): APIPromise<TriggerInstance> {
|
|
128
|
+
const { namespace, connectionId, triggerName } = params;
|
|
129
|
+
return this._client.get(path`/${namespace}/${connectionId}/.triggers/${triggerName}/${triggerID}`, {
|
|
130
|
+
defaultBaseURL: 'https://smithery.run',
|
|
131
|
+
...options,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface CreateTriggerRequest {
|
|
137
|
+
/**
|
|
138
|
+
* Trigger-specific parameters defined by the trigger inputSchema
|
|
139
|
+
*/
|
|
140
|
+
params: { [key: string]: unknown };
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface TriggerDefinition {
|
|
144
|
+
/**
|
|
145
|
+
* Supported delivery modes
|
|
146
|
+
*/
|
|
147
|
+
delivery: Array<string>;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Trigger name exposed by the MCP server
|
|
151
|
+
*/
|
|
152
|
+
name: string;
|
|
153
|
+
|
|
154
|
+
description?: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* JSON Schema for the params required to create the trigger
|
|
158
|
+
*/
|
|
159
|
+
inputSchema?: { [key: string]: unknown };
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* JSON Schema for the event payload delivered by the trigger
|
|
163
|
+
*/
|
|
164
|
+
payloadSchema?: { [key: string]: unknown };
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export type TriggerDefinitionList = Array<TriggerDefinition>;
|
|
168
|
+
|
|
169
|
+
export interface TriggerInstance {
|
|
170
|
+
/**
|
|
171
|
+
* Stable trigger instance id generated by Smithery
|
|
172
|
+
*/
|
|
173
|
+
id: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Connection id the trigger belongs to
|
|
177
|
+
*/
|
|
178
|
+
connection_id: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* ISO 8601 timestamp
|
|
182
|
+
*/
|
|
183
|
+
created_at: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Trigger name
|
|
187
|
+
*/
|
|
188
|
+
name: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Trigger instance parameters
|
|
192
|
+
*/
|
|
193
|
+
params: { [key: string]: unknown };
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface TriggerDeleteResponse {
|
|
197
|
+
success: true;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface TriggerCreateParams {
|
|
201
|
+
namespace: string;
|
|
202
|
+
|
|
203
|
+
connectionId: string;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface TriggerListParams {
|
|
207
|
+
namespace: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export interface TriggerDeleteParams {
|
|
211
|
+
namespace: string;
|
|
212
|
+
|
|
213
|
+
connectionId: string;
|
|
214
|
+
|
|
215
|
+
triggerName: string;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface TriggerGetParams {
|
|
219
|
+
namespace: string;
|
|
220
|
+
|
|
221
|
+
connectionId: string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface TriggerGetInstanceParams {
|
|
225
|
+
namespace: string;
|
|
226
|
+
|
|
227
|
+
connectionId: string;
|
|
228
|
+
|
|
229
|
+
triggerName: string;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export declare namespace Triggers {
|
|
233
|
+
export {
|
|
234
|
+
type CreateTriggerRequest as CreateTriggerRequest,
|
|
235
|
+
type TriggerDefinition as TriggerDefinition,
|
|
236
|
+
type TriggerDefinitionList as TriggerDefinitionList,
|
|
237
|
+
type TriggerInstance as TriggerInstance,
|
|
238
|
+
type TriggerDeleteResponse as TriggerDeleteResponse,
|
|
239
|
+
type TriggerCreateParams as TriggerCreateParams,
|
|
240
|
+
type TriggerListParams as TriggerListParams,
|
|
241
|
+
type TriggerDeleteParams as TriggerDeleteParams,
|
|
242
|
+
type TriggerGetParams as TriggerGetParams,
|
|
243
|
+
type TriggerGetInstanceParams as TriggerGetInstanceParams,
|
|
244
|
+
};
|
|
245
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -57,6 +57,15 @@ export {
|
|
|
57
57
|
type SkillUploadParams,
|
|
58
58
|
type SkillListResponsesSkillsPage,
|
|
59
59
|
} from './skills';
|
|
60
|
+
export {
|
|
61
|
+
Subscriptions,
|
|
62
|
+
type CreateSubscriptionRequest,
|
|
63
|
+
type CreateSubscriptionResponse,
|
|
64
|
+
type Subscription,
|
|
65
|
+
type SubscriptionList,
|
|
66
|
+
type SubscriptionDeleteResponse,
|
|
67
|
+
type SubscriptionDeleteParams,
|
|
68
|
+
} from './subscriptions';
|
|
60
69
|
export {
|
|
61
70
|
Tokens,
|
|
62
71
|
type Constraint,
|
|
@@ -26,15 +26,6 @@ export {
|
|
|
26
26
|
type ReleaseStreamParams,
|
|
27
27
|
type ReleaseListResponsesReleasesPage,
|
|
28
28
|
} from './releases';
|
|
29
|
-
export {
|
|
30
|
-
Repo,
|
|
31
|
-
type RepoUpdateResponse,
|
|
32
|
-
type RepoDeleteResponse,
|
|
33
|
-
type RepoGetResponse,
|
|
34
|
-
type RepoSetResponse,
|
|
35
|
-
type RepoUpdateParams,
|
|
36
|
-
type RepoSetParams,
|
|
37
|
-
} from './repo';
|
|
38
29
|
export {
|
|
39
30
|
Secrets,
|
|
40
31
|
type SecretListResponse,
|
|
@@ -1,6 +1,7 @@
|
|
|
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 ReleasesAPI from './releases';
|
|
4
5
|
import { APIPromise } from '../../core/api-promise';
|
|
5
6
|
import { PagePromise, ReleasesPage, type ReleasesPageParams } from '../../core/pagination';
|
|
6
7
|
import { Stream } from '../../core/streaming';
|
|
@@ -42,7 +43,7 @@ export class Releases extends APIResource {
|
|
|
42
43
|
|
|
43
44
|
/**
|
|
44
45
|
* Submit a release via multipart form. Supports hosted (JS module upload),
|
|
45
|
-
* external (URL), stdio (MCPB bundle)
|
|
46
|
+
* external (URL), and stdio (MCPB bundle) release types.
|
|
46
47
|
*
|
|
47
48
|
* @example
|
|
48
49
|
* ```ts
|
|
@@ -127,19 +128,17 @@ export class Releases extends APIResource {
|
|
|
127
128
|
|
|
128
129
|
export type ReleaseListResponsesReleasesPage = ReleasesPage<ReleaseListResponse>;
|
|
129
130
|
|
|
130
|
-
export type DeployPayload = HostedDeployPayload | ExternalDeployPayload | DeployPayload.
|
|
131
|
+
export type DeployPayload = HostedDeployPayload | ExternalDeployPayload | DeployPayload.StdioDeployPayload;
|
|
131
132
|
|
|
132
133
|
export namespace DeployPayload {
|
|
133
|
-
export interface
|
|
134
|
-
|
|
134
|
+
export interface StdioDeployPayload {
|
|
135
|
+
runtime: 'node' | 'binary' | 'python' | 'bun';
|
|
135
136
|
|
|
136
|
-
|
|
137
|
+
type: 'stdio';
|
|
137
138
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
repoName?: string;
|
|
139
|
+
configSchema?: { [key: string]: unknown };
|
|
141
140
|
|
|
142
|
-
|
|
141
|
+
serverCard?: ReleasesAPI.ServerCard;
|
|
143
142
|
}
|
|
144
143
|
}
|
|
145
144
|
|
|
@@ -26,16 +26,6 @@ import {
|
|
|
26
26
|
Releases,
|
|
27
27
|
ServerCard,
|
|
28
28
|
} from './releases';
|
|
29
|
-
import * as RepoAPI from './repo';
|
|
30
|
-
import {
|
|
31
|
-
Repo,
|
|
32
|
-
RepoDeleteResponse,
|
|
33
|
-
RepoGetResponse,
|
|
34
|
-
RepoSetParams,
|
|
35
|
-
RepoSetResponse,
|
|
36
|
-
RepoUpdateParams,
|
|
37
|
-
RepoUpdateResponse,
|
|
38
|
-
} from './repo';
|
|
39
29
|
import * as SecretsAPI from './secrets';
|
|
40
30
|
import {
|
|
41
31
|
SecretDeleteParams,
|
|
@@ -58,7 +48,6 @@ export class Servers extends APIResource {
|
|
|
58
48
|
releases: ReleasesAPI.Releases = new ReleasesAPI.Releases(this._client);
|
|
59
49
|
logs: LogsAPI.Logs = new LogsAPI.Logs(this._client);
|
|
60
50
|
secrets: SecretsAPI.Secrets = new SecretsAPI.Secrets(this._client);
|
|
61
|
-
repo: RepoAPI.Repo = new RepoAPI.Repo(this._client);
|
|
62
51
|
icon: IconAPI.Icon = new IconAPI.Icon(this._client);
|
|
63
52
|
domains: DomainsAPI.Domains = new DomainsAPI.Domains(this._client);
|
|
64
53
|
|
|
@@ -80,7 +69,8 @@ export class Servers extends APIResource {
|
|
|
80
69
|
}
|
|
81
70
|
|
|
82
71
|
/**
|
|
83
|
-
* Update server metadata such as display name, description, icon, or
|
|
72
|
+
* Update server metadata such as display name, description, repository, icon, or
|
|
73
|
+
* visibility.
|
|
84
74
|
*
|
|
85
75
|
* @example
|
|
86
76
|
* ```ts
|
|
@@ -341,15 +331,13 @@ export interface ServerGetResponse {
|
|
|
341
331
|
|
|
342
332
|
export namespace ServerGetResponse {
|
|
343
333
|
export interface StdioConnection {
|
|
344
|
-
|
|
334
|
+
bundleUrl: string;
|
|
345
335
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
bundleUrl?: string;
|
|
336
|
+
configSchema: { [key: string]: unknown };
|
|
349
337
|
|
|
350
|
-
runtime
|
|
338
|
+
runtime: 'node' | 'binary' | 'python' | 'bun';
|
|
351
339
|
|
|
352
|
-
|
|
340
|
+
type: 'stdio';
|
|
353
341
|
}
|
|
354
342
|
|
|
355
343
|
export interface HTTPConnection {
|
|
@@ -426,6 +414,8 @@ export interface ServerUpdateParams {
|
|
|
426
414
|
|
|
427
415
|
license?: string | null;
|
|
428
416
|
|
|
417
|
+
repositoryUrl?: string | null;
|
|
418
|
+
|
|
429
419
|
unlisted?: boolean;
|
|
430
420
|
}
|
|
431
421
|
|
|
@@ -475,12 +465,12 @@ export interface ServerListParams extends SmitheryPageParams {
|
|
|
475
465
|
remote?: '0' | '1' | 'true' | 'false';
|
|
476
466
|
|
|
477
467
|
/**
|
|
478
|
-
* Filter by
|
|
468
|
+
* Filter by GitHub repository name from repository_url.
|
|
479
469
|
*/
|
|
480
470
|
repoName?: string;
|
|
481
471
|
|
|
482
472
|
/**
|
|
483
|
-
* Filter by
|
|
473
|
+
* Filter by GitHub repository owner from repository_url.
|
|
484
474
|
*/
|
|
485
475
|
repoOwner?: string;
|
|
486
476
|
|
|
@@ -505,7 +495,6 @@ export interface ServerListParams extends SmitheryPageParams {
|
|
|
505
495
|
Servers.Releases = Releases;
|
|
506
496
|
Servers.Logs = Logs;
|
|
507
497
|
Servers.Secrets = Secrets;
|
|
508
|
-
Servers.Repo = Repo;
|
|
509
498
|
Servers.Icon = Icon;
|
|
510
499
|
Servers.Domains = Domains;
|
|
511
500
|
|
|
@@ -555,16 +544,6 @@ export declare namespace Servers {
|
|
|
555
544
|
type SecretSetParams as SecretSetParams,
|
|
556
545
|
};
|
|
557
546
|
|
|
558
|
-
export {
|
|
559
|
-
Repo as Repo,
|
|
560
|
-
type RepoUpdateResponse as RepoUpdateResponse,
|
|
561
|
-
type RepoDeleteResponse as RepoDeleteResponse,
|
|
562
|
-
type RepoGetResponse as RepoGetResponse,
|
|
563
|
-
type RepoSetResponse as RepoSetResponse,
|
|
564
|
-
type RepoUpdateParams as RepoUpdateParams,
|
|
565
|
-
type RepoSetParams as RepoSetParams,
|
|
566
|
-
};
|
|
567
|
-
|
|
568
547
|
export {
|
|
569
548
|
Icon as Icon,
|
|
570
549
|
type IconDeleteResponse as IconDeleteResponse,
|
|
@@ -0,0 +1,122 @@
|
|
|
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 Subscriptions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a namespace-scoped subscription that receives events from every
|
|
11
|
+
* connection in the namespace.
|
|
12
|
+
*/
|
|
13
|
+
create(namespace: string, options?: RequestOptions): APIPromise<CreateSubscriptionResponse> {
|
|
14
|
+
return this._client.post(path`/${namespace}/.subscriptions`, {
|
|
15
|
+
defaultBaseURL: 'https://smithery.run',
|
|
16
|
+
...options,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* List namespace-scoped trigger subscriptions for all connections in the
|
|
22
|
+
* namespace.
|
|
23
|
+
*/
|
|
24
|
+
list(namespace: string, options?: RequestOptions): APIPromise<SubscriptionList> {
|
|
25
|
+
return this._client.get(path`/${namespace}/.subscriptions`, {
|
|
26
|
+
defaultBaseURL: 'https://smithery.run',
|
|
27
|
+
...options,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Delete a namespace-scoped trigger subscription.
|
|
33
|
+
*/
|
|
34
|
+
delete(
|
|
35
|
+
subscriptionID: string,
|
|
36
|
+
params: SubscriptionDeleteParams,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<SubscriptionDeleteResponse> {
|
|
39
|
+
const { namespace } = params;
|
|
40
|
+
return this._client.delete(path`/${namespace}/.subscriptions/${subscriptionID}`, {
|
|
41
|
+
defaultBaseURL: 'https://smithery.run',
|
|
42
|
+
...options,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface CreateSubscriptionRequest {
|
|
48
|
+
/**
|
|
49
|
+
* HTTPS webhook destination
|
|
50
|
+
*/
|
|
51
|
+
url: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface CreateSubscriptionResponse {
|
|
55
|
+
/**
|
|
56
|
+
* Stable subscription id generated by Smithery
|
|
57
|
+
*/
|
|
58
|
+
id: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Connection scope. Null for namespace-wide subscriptions.
|
|
62
|
+
*/
|
|
63
|
+
connection_id: string | null;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* ISO 8601 timestamp
|
|
67
|
+
*/
|
|
68
|
+
created_at: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Webhook signing secret. Returned only once at creation time.
|
|
72
|
+
*/
|
|
73
|
+
secret: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Destination URL for webhook deliveries
|
|
77
|
+
*/
|
|
78
|
+
url: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface Subscription {
|
|
82
|
+
/**
|
|
83
|
+
* Stable subscription id generated by Smithery
|
|
84
|
+
*/
|
|
85
|
+
id: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Connection scope. Null for namespace-wide subscriptions.
|
|
89
|
+
*/
|
|
90
|
+
connection_id: string | null;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* ISO 8601 timestamp
|
|
94
|
+
*/
|
|
95
|
+
created_at: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Destination URL for webhook deliveries
|
|
99
|
+
*/
|
|
100
|
+
url: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type SubscriptionList = Array<Subscription>;
|
|
104
|
+
|
|
105
|
+
export interface SubscriptionDeleteResponse {
|
|
106
|
+
success: true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface SubscriptionDeleteParams {
|
|
110
|
+
namespace: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export declare namespace Subscriptions {
|
|
114
|
+
export {
|
|
115
|
+
type CreateSubscriptionRequest as CreateSubscriptionRequest,
|
|
116
|
+
type CreateSubscriptionResponse as CreateSubscriptionResponse,
|
|
117
|
+
type Subscription as Subscription,
|
|
118
|
+
type SubscriptionList as SubscriptionList,
|
|
119
|
+
type SubscriptionDeleteResponse as SubscriptionDeleteResponse,
|
|
120
|
+
type SubscriptionDeleteParams as SubscriptionDeleteParams,
|
|
121
|
+
};
|
|
122
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.63.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.63.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.63.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.63.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
-
export declare class Mcp extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Stateless MCP endpoint using Streamable HTTP transport. Accepts JSON-RPC
|
|
7
|
-
* requests and notifications. Session management is handled internally by
|
|
8
|
-
* Connect—clients should not send mcp-session-id headers. Requires service token
|
|
9
|
-
* with mcp scope.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const jsonRpcResponse = await client.connections.mcp.call(
|
|
14
|
-
* 'connectionId',
|
|
15
|
-
* { namespace: 'namespace' },
|
|
16
|
-
* );
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
call(connectionID: string, params: McpCallParams, options?: RequestOptions): APIPromise<JsonRpcResponse>;
|
|
20
|
-
}
|
|
21
|
-
export interface JsonRpcRequest {
|
|
22
|
-
jsonrpc: '2.0';
|
|
23
|
-
/**
|
|
24
|
-
* MCP method to call
|
|
25
|
-
*/
|
|
26
|
-
method: string;
|
|
27
|
-
id?: string | number;
|
|
28
|
-
/**
|
|
29
|
-
* Method parameters
|
|
30
|
-
*/
|
|
31
|
-
params?: unknown;
|
|
32
|
-
}
|
|
33
|
-
export interface JsonRpcResponse {
|
|
34
|
-
id: string | number | null;
|
|
35
|
-
jsonrpc: '2.0';
|
|
36
|
-
result?: unknown;
|
|
37
|
-
}
|
|
38
|
-
export interface McpCallParams {
|
|
39
|
-
namespace: string;
|
|
40
|
-
}
|
|
41
|
-
export declare namespace Mcp {
|
|
42
|
-
export { type JsonRpcRequest as JsonRpcRequest, type JsonRpcResponse as JsonRpcResponse, type McpCallParams as McpCallParams, };
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=mcp.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.mts","sourceRoot":"","sources":["../../src/resources/connections/mcp.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAIzG;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,KAAK,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAE3B,OAAO,EAAE,KAAK,CAAC;IAEf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
-
export declare class Mcp extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Stateless MCP endpoint using Streamable HTTP transport. Accepts JSON-RPC
|
|
7
|
-
* requests and notifications. Session management is handled internally by
|
|
8
|
-
* Connect—clients should not send mcp-session-id headers. Requires service token
|
|
9
|
-
* with mcp scope.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const jsonRpcResponse = await client.connections.mcp.call(
|
|
14
|
-
* 'connectionId',
|
|
15
|
-
* { namespace: 'namespace' },
|
|
16
|
-
* );
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
call(connectionID: string, params: McpCallParams, options?: RequestOptions): APIPromise<JsonRpcResponse>;
|
|
20
|
-
}
|
|
21
|
-
export interface JsonRpcRequest {
|
|
22
|
-
jsonrpc: '2.0';
|
|
23
|
-
/**
|
|
24
|
-
* MCP method to call
|
|
25
|
-
*/
|
|
26
|
-
method: string;
|
|
27
|
-
id?: string | number;
|
|
28
|
-
/**
|
|
29
|
-
* Method parameters
|
|
30
|
-
*/
|
|
31
|
-
params?: unknown;
|
|
32
|
-
}
|
|
33
|
-
export interface JsonRpcResponse {
|
|
34
|
-
id: string | number | null;
|
|
35
|
-
jsonrpc: '2.0';
|
|
36
|
-
result?: unknown;
|
|
37
|
-
}
|
|
38
|
-
export interface McpCallParams {
|
|
39
|
-
namespace: string;
|
|
40
|
-
}
|
|
41
|
-
export declare namespace Mcp {
|
|
42
|
-
export { type JsonRpcRequest as JsonRpcRequest, type JsonRpcResponse as JsonRpcResponse, type McpCallParams as McpCallParams, };
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=mcp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/resources/connections/mcp.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAIzG;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,KAAK,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAE3B,OAAO,EAAE,KAAK,CAAC;IAEf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|