@smithery/api 0.56.1 → 0.58.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 (176) hide show
  1. package/CHANGELOG.md +196 -0
  2. package/client.d.mts +5 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +4 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +4 -1
  9. package/client.mjs.map +1 -1
  10. package/core/pagination.d.mts +0 -23
  11. package/core/pagination.d.mts.map +1 -1
  12. package/core/pagination.d.ts +0 -23
  13. package/core/pagination.d.ts.map +1 -1
  14. package/core/pagination.js +1 -23
  15. package/core/pagination.js.map +1 -1
  16. package/core/pagination.mjs +0 -21
  17. package/core/pagination.mjs.map +1 -1
  18. package/internal/utils/env.js +2 -2
  19. package/internal/utils/env.js.map +1 -1
  20. package/internal/utils/env.mjs +2 -2
  21. package/internal/utils/env.mjs.map +1 -1
  22. package/package.json +1 -1
  23. package/resources/connections/connections.d.mts +35 -22
  24. package/resources/connections/connections.d.mts.map +1 -1
  25. package/resources/connections/connections.d.ts +35 -22
  26. package/resources/connections/connections.d.ts.map +1 -1
  27. package/resources/connections/connections.js +3 -2
  28. package/resources/connections/connections.js.map +1 -1
  29. package/resources/connections/connections.mjs +3 -2
  30. package/resources/connections/connections.mjs.map +1 -1
  31. package/resources/index.d.mts +2 -1
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +2 -1
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +4 -2
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +2 -1
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/namespaces/namespaces.d.mts +4 -3
  40. package/resources/namespaces/namespaces.d.mts.map +1 -1
  41. package/resources/namespaces/namespaces.d.ts +4 -3
  42. package/resources/namespaces/namespaces.d.ts.map +1 -1
  43. package/resources/namespaces/namespaces.js +4 -3
  44. package/resources/namespaces/namespaces.js.map +1 -1
  45. package/resources/namespaces/namespaces.mjs +4 -3
  46. package/resources/namespaces/namespaces.mjs.map +1 -1
  47. package/resources/organizations/api-keys.d.mts +43 -0
  48. package/resources/organizations/api-keys.d.mts.map +1 -0
  49. package/resources/organizations/api-keys.d.ts +43 -0
  50. package/resources/organizations/api-keys.d.ts.map +1 -0
  51. package/resources/organizations/api-keys.js +30 -0
  52. package/resources/organizations/api-keys.js.map +1 -0
  53. package/resources/organizations/api-keys.mjs +26 -0
  54. package/resources/organizations/api-keys.mjs.map +1 -0
  55. package/resources/organizations/index.d.mts +3 -0
  56. package/resources/organizations/index.d.mts.map +1 -0
  57. package/resources/organizations/index.d.ts +3 -0
  58. package/resources/organizations/index.d.ts.map +1 -0
  59. package/resources/organizations/index.js +9 -0
  60. package/resources/organizations/index.js.map +1 -0
  61. package/resources/organizations/index.mjs +4 -0
  62. package/resources/organizations/index.mjs.map +1 -0
  63. package/resources/organizations/organizations.d.mts +10 -0
  64. package/resources/organizations/organizations.d.mts.map +1 -0
  65. package/resources/organizations/organizations.d.ts +10 -0
  66. package/resources/organizations/organizations.d.ts.map +1 -0
  67. package/resources/organizations/organizations.js +17 -0
  68. package/resources/organizations/organizations.js.map +1 -0
  69. package/resources/organizations/organizations.mjs +12 -0
  70. package/resources/organizations/organizations.mjs.map +1 -0
  71. package/resources/organizations.d.mts +2 -0
  72. package/resources/organizations.d.mts.map +1 -0
  73. package/resources/organizations.d.ts +2 -0
  74. package/resources/organizations.d.ts.map +1 -0
  75. package/resources/organizations.js +6 -0
  76. package/resources/organizations.js.map +1 -0
  77. package/resources/organizations.mjs +3 -0
  78. package/resources/organizations.mjs.map +1 -0
  79. package/resources/servers/domains.d.mts +13 -122
  80. package/resources/servers/domains.d.mts.map +1 -1
  81. package/resources/servers/domains.d.ts +13 -122
  82. package/resources/servers/domains.d.ts.map +1 -1
  83. package/resources/servers/domains.js +6 -32
  84. package/resources/servers/domains.js.map +1 -1
  85. package/resources/servers/domains.mjs +6 -32
  86. package/resources/servers/domains.mjs.map +1 -1
  87. package/resources/servers/index.d.mts +1 -1
  88. package/resources/servers/index.d.mts.map +1 -1
  89. package/resources/servers/index.d.ts +1 -1
  90. package/resources/servers/index.d.ts.map +1 -1
  91. package/resources/servers/index.js.map +1 -1
  92. package/resources/servers/index.mjs.map +1 -1
  93. package/resources/servers/releases.d.mts +0 -12
  94. package/resources/servers/releases.d.mts.map +1 -1
  95. package/resources/servers/releases.d.ts +0 -12
  96. package/resources/servers/releases.d.ts.map +1 -1
  97. package/resources/servers/servers.d.mts +4 -15
  98. package/resources/servers/servers.d.mts.map +1 -1
  99. package/resources/servers/servers.d.ts +4 -15
  100. package/resources/servers/servers.d.ts.map +1 -1
  101. package/resources/servers/servers.js.map +1 -1
  102. package/resources/servers/servers.mjs +1 -1
  103. package/resources/servers/servers.mjs.map +1 -1
  104. package/resources/skills.d.mts +273 -1
  105. package/resources/skills.d.mts.map +1 -1
  106. package/resources/skills.d.ts +273 -1
  107. package/resources/skills.d.ts.map +1 -1
  108. package/resources/skills.js +78 -2
  109. package/resources/skills.js.map +1 -1
  110. package/resources/skills.mjs +76 -1
  111. package/resources/skills.mjs.map +1 -1
  112. package/resources/tokens.d.mts +17 -0
  113. package/resources/tokens.d.mts.map +1 -1
  114. package/resources/tokens.d.ts +17 -0
  115. package/resources/tokens.d.ts.map +1 -1
  116. package/resources/tokens.js +5 -0
  117. package/resources/tokens.js.map +1 -1
  118. package/resources/tokens.mjs +5 -0
  119. package/resources/tokens.mjs.map +1 -1
  120. package/src/client.ts +24 -24
  121. package/src/core/pagination.ts +0 -59
  122. package/src/internal/utils/env.ts +2 -2
  123. package/src/resources/connections/connections.ts +44 -24
  124. package/src/resources/index.ts +2 -1
  125. package/src/resources/namespaces/namespaces.ts +4 -3
  126. package/src/resources/organizations/api-keys.ts +78 -0
  127. package/src/resources/organizations/index.ts +11 -0
  128. package/src/resources/organizations/organizations.ts +29 -0
  129. package/src/resources/organizations.ts +3 -0
  130. package/src/resources/servers/domains.ts +12 -182
  131. package/src/resources/servers/index.ts +0 -4
  132. package/src/resources/servers/releases.ts +0 -14
  133. package/src/resources/servers/servers.ts +3 -29
  134. package/src/resources/skills.ts +427 -1
  135. package/src/resources/tokens.ts +19 -0
  136. package/src/version.ts +1 -1
  137. package/version.d.mts +1 -1
  138. package/version.d.ts +1 -1
  139. package/version.js +1 -1
  140. package/version.mjs +1 -1
  141. package/resources/skills/index.d.mts +0 -4
  142. package/resources/skills/index.d.mts.map +0 -1
  143. package/resources/skills/index.d.ts +0 -4
  144. package/resources/skills/index.d.ts.map +0 -1
  145. package/resources/skills/index.js +0 -11
  146. package/resources/skills/index.js.map +0 -1
  147. package/resources/skills/index.mjs +0 -5
  148. package/resources/skills/index.mjs.map +0 -1
  149. package/resources/skills/reviews.d.mts +0 -160
  150. package/resources/skills/reviews.d.mts.map +0 -1
  151. package/resources/skills/reviews.d.ts +0 -160
  152. package/resources/skills/reviews.d.ts.map +0 -1
  153. package/resources/skills/reviews.js +0 -74
  154. package/resources/skills/reviews.js.map +0 -1
  155. package/resources/skills/reviews.mjs +0 -70
  156. package/resources/skills/reviews.mjs.map +0 -1
  157. package/resources/skills/skills.d.mts +0 -297
  158. package/resources/skills/skills.d.mts.map +0 -1
  159. package/resources/skills/skills.d.ts +0 -297
  160. package/resources/skills/skills.d.ts.map +0 -1
  161. package/resources/skills/skills.js +0 -94
  162. package/resources/skills/skills.js.map +0 -1
  163. package/resources/skills/skills.mjs +0 -89
  164. package/resources/skills/skills.mjs.map +0 -1
  165. package/resources/skills/votes.d.mts +0 -72
  166. package/resources/skills/votes.d.mts.map +0 -1
  167. package/resources/skills/votes.d.ts +0 -72
  168. package/resources/skills/votes.d.ts.map +0 -1
  169. package/resources/skills/votes.js +0 -46
  170. package/resources/skills/votes.js.map +0 -1
  171. package/resources/skills/votes.mjs +0 -42
  172. package/resources/skills/votes.mjs.map +0 -1
  173. package/src/resources/skills/index.ts +0 -47
  174. package/src/resources/skills/reviews.ts +0 -254
  175. package/src/resources/skills/skills.ts +0 -512
  176. package/src/resources/skills/votes.ts +0 -110
@@ -1,254 +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 { PagePromise, ReviewsPage, type ReviewsPageParams } from '../../core/pagination';
6
- import { buildHeaders } from '../../internal/headers';
7
- import { RequestOptions } from '../../internal/request-options';
8
- import { path } from '../../internal/utils/path';
9
-
10
- /**
11
- * Discover and search reusable prompt-based skills for MCP servers
12
- */
13
- export class Reviews extends APIResource {
14
- /**
15
- * Deprecated (SMI-1505). Submit a review for a skill. Updates existing review if
16
- * one already exists.
17
- *
18
- * @deprecated
19
- */
20
- create(
21
- slug: string,
22
- params: ReviewCreateParams,
23
- options?: RequestOptions,
24
- ): APIPromise<CreateReviewResponse> {
25
- const { namespace, ...body } = params;
26
- return this._client.post(path`/skills/${namespace}/${slug}/reviews`, { body, ...options });
27
- }
28
-
29
- /**
30
- * Deprecated (SMI-1505). Get paginated list of reviews with vote counts.
31
- *
32
- * @deprecated
33
- */
34
- list(
35
- slug: string,
36
- params: ReviewListParams,
37
- options?: RequestOptions,
38
- ): PagePromise<ReviewItemsReviewsPage, ReviewItem> {
39
- const { namespace, ...query } = params;
40
- return this._client.getAPIList(path`/skills/${namespace}/${slug}/reviews`, ReviewsPage<ReviewItem>, {
41
- query,
42
- ...options,
43
- });
44
- }
45
-
46
- /**
47
- * [Deprecated] Delete your review
48
- *
49
- * @deprecated
50
- */
51
- delete(slug: string, params: ReviewDeleteParams, options?: RequestOptions): APIPromise<void> {
52
- const { namespace } = params;
53
- return this._client.delete(path`/skills/${namespace}/${slug}/reviews`, {
54
- ...options,
55
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
56
- });
57
- }
58
-
59
- /**
60
- * [Deprecated] Remove vote from a review
61
- *
62
- * @deprecated
63
- */
64
- unvote(reviewID: string, params: ReviewUnvoteParams, options?: RequestOptions): APIPromise<void> {
65
- const { namespace, slug } = params;
66
- return this._client.delete(path`/skills/${namespace}/${slug}/reviews/${reviewID}/vote`, {
67
- ...options,
68
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
69
- });
70
- }
71
-
72
- /**
73
- * Deprecated (SMI-1505). Upvote or downvote a review. Updates existing vote if one
74
- * exists.
75
- *
76
- * @deprecated
77
- */
78
- vote(reviewID: string, params: ReviewVoteParams, options?: RequestOptions): APIPromise<ReviewVoteResponse> {
79
- const { namespace, slug, ...body } = params;
80
- return this._client.post(path`/skills/${namespace}/${slug}/reviews/${reviewID}/vote`, {
81
- body,
82
- ...options,
83
- });
84
- }
85
- }
86
-
87
- export type ReviewItemsReviewsPage = ReviewsPage<ReviewItem>;
88
-
89
- export interface CreateReviewRequest {
90
- /**
91
- * Review text (required)
92
- */
93
- review: string;
94
-
95
- /**
96
- * Optional agent model name (e.g., 'claude-3.5-sonnet')
97
- */
98
- agentModel?: string;
99
-
100
- /**
101
- * Optional vote direction to submit with review
102
- */
103
- vote?: 'up' | 'down';
104
- }
105
-
106
- export interface CreateReviewResponse {
107
- /**
108
- * Review ID
109
- */
110
- id: string;
111
-
112
- /**
113
- * ISO 8601 timestamp
114
- */
115
- createdAt: string;
116
-
117
- review: string;
118
-
119
- /**
120
- * Vote direction if submitted with review
121
- */
122
- vote: 'up' | 'down' | null;
123
- }
124
-
125
- export interface ReviewError {
126
- error: string;
127
- }
128
-
129
- export interface ReviewItem {
130
- id: string;
131
-
132
- agentClient: string | null;
133
-
134
- agentModel: string | null;
135
-
136
- /**
137
- * ISO 8601 timestamp
138
- */
139
- createdAt: string;
140
-
141
- downvotes: number;
142
-
143
- review: string;
144
-
145
- upvotes: number;
146
- }
147
-
148
- export interface ReviewVoteRequest {
149
- /**
150
- * Vote direction
151
- */
152
- vote: 'up' | 'down';
153
- }
154
-
155
- export interface ReviewVoteResponse {
156
- createdAt: string;
157
-
158
- /**
159
- * Vote direction
160
- */
161
- vote: 'up' | 'down';
162
- }
163
-
164
- export interface ReviewsListResponse {
165
- pagination: ReviewsListResponse.Pagination;
166
-
167
- reviews: Array<ReviewItem>;
168
- }
169
-
170
- export namespace ReviewsListResponse {
171
- export interface Pagination {
172
- currentPage: number;
173
-
174
- pageSize: number;
175
-
176
- totalCount: number;
177
-
178
- totalPages: number;
179
- }
180
- }
181
-
182
- export interface ReviewCreateParams {
183
- /**
184
- * Path param
185
- */
186
- namespace: string;
187
-
188
- /**
189
- * Body param: Review text (required)
190
- */
191
- review: string;
192
-
193
- /**
194
- * Body param: Optional agent model name (e.g., 'claude-3.5-sonnet')
195
- */
196
- agentModel?: string;
197
-
198
- /**
199
- * Body param: Optional vote direction to submit with review
200
- */
201
- vote?: 'up' | 'down';
202
- }
203
-
204
- export interface ReviewListParams extends ReviewsPageParams {
205
- /**
206
- * Path param
207
- */
208
- namespace: string;
209
- }
210
-
211
- export interface ReviewDeleteParams {
212
- namespace: string;
213
- }
214
-
215
- export interface ReviewUnvoteParams {
216
- namespace: string;
217
-
218
- slug: string;
219
- }
220
-
221
- export interface ReviewVoteParams {
222
- /**
223
- * Path param
224
- */
225
- namespace: string;
226
-
227
- /**
228
- * Path param
229
- */
230
- slug: string;
231
-
232
- /**
233
- * Body param: Vote direction
234
- */
235
- vote: 'up' | 'down';
236
- }
237
-
238
- export declare namespace Reviews {
239
- export {
240
- type CreateReviewRequest as CreateReviewRequest,
241
- type CreateReviewResponse as CreateReviewResponse,
242
- type ReviewError as ReviewError,
243
- type ReviewItem as ReviewItem,
244
- type ReviewVoteRequest as ReviewVoteRequest,
245
- type ReviewVoteResponse as ReviewVoteResponse,
246
- type ReviewsListResponse as ReviewsListResponse,
247
- type ReviewItemsReviewsPage as ReviewItemsReviewsPage,
248
- type ReviewCreateParams as ReviewCreateParams,
249
- type ReviewListParams as ReviewListParams,
250
- type ReviewDeleteParams as ReviewDeleteParams,
251
- type ReviewUnvoteParams as ReviewUnvoteParams,
252
- type ReviewVoteParams as ReviewVoteParams,
253
- };
254
- }