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