@smithery/api 0.63.1 → 0.64.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 +21 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js +11 -0
- package/client.js.map +1 -1
- package/client.mjs +11 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/connections/connections.d.mts +4 -0
- package/resources/connections/connections.d.mts.map +1 -1
- package/resources/connections/connections.d.ts +4 -0
- package/resources/connections/connections.d.ts.map +1 -1
- package/resources/connections/connections.js +4 -0
- package/resources/connections/connections.js.map +1 -1
- package/resources/connections/connections.mjs +4 -0
- package/resources/connections/connections.mjs.map +1 -1
- package/resources/connections/index.d.mts +1 -0
- package/resources/connections/index.d.mts.map +1 -1
- package/resources/connections/index.d.ts +1 -0
- package/resources/connections/index.d.ts.map +1 -1
- package/resources/connections/index.js +3 -1
- package/resources/connections/index.js.map +1 -1
- package/resources/connections/index.mjs +1 -0
- package/resources/connections/index.mjs.map +1 -1
- package/resources/connections/subscriptions.d.mts +11 -1
- package/resources/connections/subscriptions.d.mts.map +1 -1
- package/resources/connections/subscriptions.d.ts +11 -1
- package/resources/connections/subscriptions.d.ts.map +1 -1
- package/resources/connections/subscriptions.js +6 -2
- package/resources/connections/subscriptions.js.map +1 -1
- package/resources/connections/subscriptions.mjs +6 -2
- package/resources/connections/subscriptions.mjs.map +1 -1
- package/resources/connections/tools.d.mts +126 -0
- package/resources/connections/tools.d.mts.map +1 -0
- package/resources/connections/tools.d.ts +126 -0
- package/resources/connections/tools.d.ts.map +1 -0
- package/resources/connections/tools.js +69 -0
- package/resources/connections/tools.js.map +1 -0
- package/resources/connections/tools.mjs +65 -0
- package/resources/connections/tools.mjs.map +1 -0
- package/resources/connections/triggers.d.mts +13 -0
- package/resources/connections/triggers.d.mts.map +1 -1
- package/resources/connections/triggers.d.ts +13 -0
- package/resources/connections/triggers.d.ts.map +1 -1
- package/resources/connections/triggers.js +3 -1
- package/resources/connections/triggers.js.map +1 -1
- package/resources/connections/triggers.mjs +3 -1
- package/resources/connections/triggers.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/releases.d.mts +2 -1
- package/resources/servers/releases.d.mts.map +1 -1
- package/resources/servers/releases.d.ts +2 -1
- package/resources/servers/releases.d.ts.map +1 -1
- package/resources/servers/servers.d.mts +8 -0
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +8 -0
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/subscriptions.d.mts +31 -2
- package/resources/subscriptions.d.mts.map +1 -1
- package/resources/subscriptions.d.ts +31 -2
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +25 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +25 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/client.ts +14 -0
- package/src/internal/types.ts +6 -8
- package/src/resources/connections/connections.ts +24 -0
- package/src/resources/connections/index.ts +10 -0
- package/src/resources/connections/subscriptions.ts +14 -2
- package/src/resources/connections/tools.ts +185 -0
- package/src/resources/connections/triggers.ts +14 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/servers/releases.ts +3 -1
- package/src/resources/servers/servers.ts +10 -0
- package/src/resources/subscriptions.ts +37 -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
|
@@ -9,9 +9,22 @@ export class Subscriptions extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Create a namespace-scoped subscription that receives events from every
|
|
11
11
|
* connection in the namespace.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const createSubscriptionResponse =
|
|
16
|
+
* await client.subscriptions.create('namespace', {
|
|
17
|
+
* url: 'https://my-app.example.com/events',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
12
20
|
*/
|
|
13
|
-
create(
|
|
21
|
+
create(
|
|
22
|
+
namespace: string,
|
|
23
|
+
body: SubscriptionCreateParams,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): APIPromise<CreateSubscriptionResponse> {
|
|
14
26
|
return this._client.post(path`/${namespace}/.subscriptions`, {
|
|
27
|
+
body,
|
|
15
28
|
defaultBaseURL: 'https://smithery.run',
|
|
16
29
|
...options,
|
|
17
30
|
});
|
|
@@ -20,6 +33,13 @@ export class Subscriptions extends APIResource {
|
|
|
20
33
|
/**
|
|
21
34
|
* List namespace-scoped trigger subscriptions for all connections in the
|
|
22
35
|
* namespace.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const subscriptionList = await client.subscriptions.list(
|
|
40
|
+
* 'namespace',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
23
43
|
*/
|
|
24
44
|
list(namespace: string, options?: RequestOptions): APIPromise<SubscriptionList> {
|
|
25
45
|
return this._client.get(path`/${namespace}/.subscriptions`, {
|
|
@@ -30,6 +50,14 @@ export class Subscriptions extends APIResource {
|
|
|
30
50
|
|
|
31
51
|
/**
|
|
32
52
|
* Delete a namespace-scoped trigger subscription.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const subscription = await client.subscriptions.delete(
|
|
57
|
+
* 'subscriptionId',
|
|
58
|
+
* { namespace: 'namespace' },
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
33
61
|
*/
|
|
34
62
|
delete(
|
|
35
63
|
subscriptionID: string,
|
|
@@ -106,6 +134,13 @@ export interface SubscriptionDeleteResponse {
|
|
|
106
134
|
success: true;
|
|
107
135
|
}
|
|
108
136
|
|
|
137
|
+
export interface SubscriptionCreateParams {
|
|
138
|
+
/**
|
|
139
|
+
* HTTPS webhook destination
|
|
140
|
+
*/
|
|
141
|
+
url: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
109
144
|
export interface SubscriptionDeleteParams {
|
|
110
145
|
namespace: string;
|
|
111
146
|
}
|
|
@@ -117,6 +152,7 @@ export declare namespace Subscriptions {
|
|
|
117
152
|
type Subscription as Subscription,
|
|
118
153
|
type SubscriptionList as SubscriptionList,
|
|
119
154
|
type SubscriptionDeleteResponse as SubscriptionDeleteResponse,
|
|
155
|
+
type SubscriptionCreateParams as SubscriptionCreateParams,
|
|
120
156
|
type SubscriptionDeleteParams as SubscriptionDeleteParams,
|
|
121
157
|
};
|
|
122
158
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.64.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.64.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.64.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.64.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|