@smithery/api 0.64.1 → 0.64.2

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 (70) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +0 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +0 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/connections/connections.d.mts +2 -6
  12. package/resources/connections/connections.d.mts.map +1 -1
  13. package/resources/connections/connections.d.ts +2 -6
  14. package/resources/connections/connections.d.ts.map +1 -1
  15. package/resources/connections/connections.js +0 -4
  16. package/resources/connections/connections.js.map +1 -1
  17. package/resources/connections/connections.mjs +0 -4
  18. package/resources/connections/connections.mjs.map +1 -1
  19. package/resources/connections/index.d.mts +1 -2
  20. package/resources/connections/index.d.mts.map +1 -1
  21. package/resources/connections/index.d.ts +1 -2
  22. package/resources/connections/index.d.ts.map +1 -1
  23. package/resources/connections/index.js +1 -3
  24. package/resources/connections/index.js.map +1 -1
  25. package/resources/connections/index.mjs +0 -1
  26. package/resources/connections/index.mjs.map +1 -1
  27. package/resources/connections/triggers.d.mts +92 -65
  28. package/resources/connections/triggers.d.mts.map +1 -1
  29. package/resources/connections/triggers.d.ts +92 -65
  30. package/resources/connections/triggers.d.ts.map +1 -1
  31. package/resources/connections/triggers.js +40 -48
  32. package/resources/connections/triggers.js.map +1 -1
  33. package/resources/connections/triggers.mjs +40 -48
  34. package/resources/connections/triggers.mjs.map +1 -1
  35. package/resources/index.d.mts +0 -1
  36. package/resources/index.d.mts.map +1 -1
  37. package/resources/index.d.ts +0 -1
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +1 -3
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +0 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/src/client.ts +0 -23
  44. package/src/resources/connections/connections.ts +14 -28
  45. package/src/resources/connections/index.ts +7 -12
  46. package/src/resources/connections/triggers.ts +117 -98
  47. package/src/resources/index.ts +0 -10
  48. package/src/version.ts +1 -1
  49. package/version.d.mts +1 -1
  50. package/version.d.ts +1 -1
  51. package/version.js +1 -1
  52. package/version.mjs +1 -1
  53. package/resources/connections/subscriptions.d.mts +0 -83
  54. package/resources/connections/subscriptions.d.mts.map +0 -1
  55. package/resources/connections/subscriptions.d.ts +0 -83
  56. package/resources/connections/subscriptions.d.ts.map +0 -1
  57. package/resources/connections/subscriptions.js +0 -77
  58. package/resources/connections/subscriptions.js.map +0 -1
  59. package/resources/connections/subscriptions.mjs +0 -73
  60. package/resources/connections/subscriptions.mjs.map +0 -1
  61. package/resources/subscriptions.d.mts +0 -113
  62. package/resources/subscriptions.d.mts.map +0 -1
  63. package/resources/subscriptions.d.ts +0 -113
  64. package/resources/subscriptions.d.ts.map +0 -1
  65. package/resources/subscriptions.js +0 -68
  66. package/resources/subscriptions.js.map +0 -1
  67. package/resources/subscriptions.mjs +0 -64
  68. package/resources/subscriptions.mjs.map +0 -1
  69. package/src/resources/connections/subscriptions.ts +0 -132
  70. package/src/resources/subscriptions.ts +0 -167
@@ -1,167 +0,0 @@
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
- * @example
14
- * ```ts
15
- * const subscription = await client.subscriptions.create(
16
- * 'namespace',
17
- * {
18
- * secret:
19
- * 'whsec_dGVzdF9zZWNyZXRfMjRfYnl0ZXNfbWluaW11bSE=',
20
- * url: 'https://my-app.example.com/events',
21
- * },
22
- * );
23
- * ```
24
- */
25
- create(
26
- namespace: string,
27
- body: SubscriptionCreateParams,
28
- options?: RequestOptions,
29
- ): APIPromise<Subscription> {
30
- return this._client.post(path`/${namespace}/.subscriptions`, {
31
- body,
32
- defaultBaseURL: 'https://smithery.run',
33
- ...options,
34
- });
35
- }
36
-
37
- /**
38
- * List namespace-scoped trigger subscriptions for all connections in the
39
- * namespace.
40
- *
41
- * @example
42
- * ```ts
43
- * const subscriptionList = await client.subscriptions.list(
44
- * 'namespace',
45
- * );
46
- * ```
47
- */
48
- list(namespace: string, options?: RequestOptions): APIPromise<SubscriptionList> {
49
- return this._client.get(path`/${namespace}/.subscriptions`, {
50
- defaultBaseURL: 'https://smithery.run',
51
- ...options,
52
- });
53
- }
54
-
55
- /**
56
- * Delete a namespace-scoped trigger subscription.
57
- *
58
- * @example
59
- * ```ts
60
- * const subscription = await client.subscriptions.delete(
61
- * 'subscriptionId',
62
- * { namespace: 'namespace' },
63
- * );
64
- * ```
65
- */
66
- delete(
67
- subscriptionID: string,
68
- params: SubscriptionDeleteParams,
69
- options?: RequestOptions,
70
- ): APIPromise<SubscriptionDeleteResponse> {
71
- const { namespace } = params;
72
- return this._client.delete(path`/${namespace}/.subscriptions/${subscriptionID}`, {
73
- defaultBaseURL: 'https://smithery.run',
74
- ...options,
75
- });
76
- }
77
- }
78
-
79
- export interface CreateSubscriptionRequest {
80
- /**
81
- * Standard Webhooks signing secret generated and stored by the receiver
82
- */
83
- secret: string;
84
-
85
- /**
86
- * HTTPS webhook destination
87
- */
88
- url: string;
89
- }
90
-
91
- export interface CreateSubscriptionResponse {
92
- /**
93
- * Stable subscription id generated by Smithery
94
- */
95
- id: string;
96
-
97
- /**
98
- * Connection scope. Null for namespace-wide subscriptions.
99
- */
100
- connection_id: string | null;
101
-
102
- /**
103
- * ISO 8601 timestamp
104
- */
105
- created_at: string;
106
-
107
- /**
108
- * Destination URL for webhook deliveries
109
- */
110
- url: string;
111
- }
112
-
113
- export interface Subscription {
114
- /**
115
- * Stable subscription id generated by Smithery
116
- */
117
- id: string;
118
-
119
- /**
120
- * Connection scope. Null for namespace-wide subscriptions.
121
- */
122
- connection_id: string | null;
123
-
124
- /**
125
- * ISO 8601 timestamp
126
- */
127
- created_at: string;
128
-
129
- /**
130
- * Destination URL for webhook deliveries
131
- */
132
- url: string;
133
- }
134
-
135
- export type SubscriptionList = Array<Subscription>;
136
-
137
- export interface SubscriptionDeleteResponse {
138
- success: true;
139
- }
140
-
141
- export interface SubscriptionCreateParams {
142
- /**
143
- * Standard Webhooks signing secret generated and stored by the receiver
144
- */
145
- secret: string;
146
-
147
- /**
148
- * HTTPS webhook destination
149
- */
150
- url: string;
151
- }
152
-
153
- export interface SubscriptionDeleteParams {
154
- namespace: string;
155
- }
156
-
157
- export declare namespace Subscriptions {
158
- export {
159
- type CreateSubscriptionRequest as CreateSubscriptionRequest,
160
- type CreateSubscriptionResponse as CreateSubscriptionResponse,
161
- type Subscription as Subscription,
162
- type SubscriptionList as SubscriptionList,
163
- type SubscriptionDeleteResponse as SubscriptionDeleteResponse,
164
- type SubscriptionCreateParams as SubscriptionCreateParams,
165
- type SubscriptionDeleteParams as SubscriptionDeleteParams,
166
- };
167
- }