@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.
Files changed (94) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +11 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +11 -0
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/connections/connections.d.mts +4 -0
  16. package/resources/connections/connections.d.mts.map +1 -1
  17. package/resources/connections/connections.d.ts +4 -0
  18. package/resources/connections/connections.d.ts.map +1 -1
  19. package/resources/connections/connections.js +4 -0
  20. package/resources/connections/connections.js.map +1 -1
  21. package/resources/connections/connections.mjs +4 -0
  22. package/resources/connections/connections.mjs.map +1 -1
  23. package/resources/connections/index.d.mts +1 -0
  24. package/resources/connections/index.d.mts.map +1 -1
  25. package/resources/connections/index.d.ts +1 -0
  26. package/resources/connections/index.d.ts.map +1 -1
  27. package/resources/connections/index.js +3 -1
  28. package/resources/connections/index.js.map +1 -1
  29. package/resources/connections/index.mjs +1 -0
  30. package/resources/connections/index.mjs.map +1 -1
  31. package/resources/connections/subscriptions.d.mts +11 -1
  32. package/resources/connections/subscriptions.d.mts.map +1 -1
  33. package/resources/connections/subscriptions.d.ts +11 -1
  34. package/resources/connections/subscriptions.d.ts.map +1 -1
  35. package/resources/connections/subscriptions.js +6 -2
  36. package/resources/connections/subscriptions.js.map +1 -1
  37. package/resources/connections/subscriptions.mjs +6 -2
  38. package/resources/connections/subscriptions.mjs.map +1 -1
  39. package/resources/connections/tools.d.mts +126 -0
  40. package/resources/connections/tools.d.mts.map +1 -0
  41. package/resources/connections/tools.d.ts +126 -0
  42. package/resources/connections/tools.d.ts.map +1 -0
  43. package/resources/connections/tools.js +69 -0
  44. package/resources/connections/tools.js.map +1 -0
  45. package/resources/connections/tools.mjs +65 -0
  46. package/resources/connections/tools.mjs.map +1 -0
  47. package/resources/connections/triggers.d.mts +13 -0
  48. package/resources/connections/triggers.d.mts.map +1 -1
  49. package/resources/connections/triggers.d.ts +13 -0
  50. package/resources/connections/triggers.d.ts.map +1 -1
  51. package/resources/connections/triggers.js +3 -1
  52. package/resources/connections/triggers.js.map +1 -1
  53. package/resources/connections/triggers.mjs +3 -1
  54. package/resources/connections/triggers.mjs.map +1 -1
  55. package/resources/index.d.mts +1 -1
  56. package/resources/index.d.mts.map +1 -1
  57. package/resources/index.d.ts +1 -1
  58. package/resources/index.d.ts.map +1 -1
  59. package/resources/index.js.map +1 -1
  60. package/resources/index.mjs.map +1 -1
  61. package/resources/servers/releases.d.mts +2 -1
  62. package/resources/servers/releases.d.mts.map +1 -1
  63. package/resources/servers/releases.d.ts +2 -1
  64. package/resources/servers/releases.d.ts.map +1 -1
  65. package/resources/servers/servers.d.mts +8 -0
  66. package/resources/servers/servers.d.mts.map +1 -1
  67. package/resources/servers/servers.d.ts +8 -0
  68. package/resources/servers/servers.d.ts.map +1 -1
  69. package/resources/servers/servers.js.map +1 -1
  70. package/resources/servers/servers.mjs.map +1 -1
  71. package/resources/subscriptions.d.mts +31 -2
  72. package/resources/subscriptions.d.mts.map +1 -1
  73. package/resources/subscriptions.d.ts +31 -2
  74. package/resources/subscriptions.d.ts.map +1 -1
  75. package/resources/subscriptions.js +25 -1
  76. package/resources/subscriptions.js.map +1 -1
  77. package/resources/subscriptions.mjs +25 -1
  78. package/resources/subscriptions.mjs.map +1 -1
  79. package/src/client.ts +14 -0
  80. package/src/internal/types.ts +6 -8
  81. package/src/resources/connections/connections.ts +24 -0
  82. package/src/resources/connections/index.ts +10 -0
  83. package/src/resources/connections/subscriptions.ts +14 -2
  84. package/src/resources/connections/tools.ts +185 -0
  85. package/src/resources/connections/triggers.ts +14 -1
  86. package/src/resources/index.ts +1 -0
  87. package/src/resources/servers/releases.ts +3 -1
  88. package/src/resources/servers/servers.ts +10 -0
  89. package/src/resources/subscriptions.ts +37 -1
  90. package/src/version.ts +1 -1
  91. package/version.d.mts +1 -1
  92. package/version.d.ts +1 -1
  93. package/version.js +1 -1
  94. 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(namespace: string, options?: RequestOptions): APIPromise<CreateSubscriptionResponse> {
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.63.1'; // x-release-please-version
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.63.1";
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.63.1";
1
+ export declare const VERSION = "0.64.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.63.1'; // x-release-please-version
4
+ exports.VERSION = '0.64.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.63.1'; // x-release-please-version
1
+ export const VERSION = '0.64.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map