@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.
- package/CHANGELOG.md +196 -0
- package/client.d.mts +5 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -4
- package/client.d.ts.map +1 -1
- package/client.js +4 -1
- package/client.js.map +1 -1
- package/client.mjs +4 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +0 -23
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +0 -23
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +1 -23
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +0 -21
- package/core/pagination.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/connections/connections.d.mts +35 -22
- package/resources/connections/connections.d.mts.map +1 -1
- package/resources/connections/connections.d.ts +35 -22
- package/resources/connections/connections.d.ts.map +1 -1
- package/resources/connections/connections.js +3 -2
- package/resources/connections/connections.js.map +1 -1
- package/resources/connections/connections.mjs +3 -2
- package/resources/connections/connections.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/namespaces/namespaces.d.mts +4 -3
- package/resources/namespaces/namespaces.d.mts.map +1 -1
- package/resources/namespaces/namespaces.d.ts +4 -3
- package/resources/namespaces/namespaces.d.ts.map +1 -1
- package/resources/namespaces/namespaces.js +4 -3
- package/resources/namespaces/namespaces.js.map +1 -1
- package/resources/namespaces/namespaces.mjs +4 -3
- package/resources/namespaces/namespaces.mjs.map +1 -1
- package/resources/organizations/api-keys.d.mts +43 -0
- package/resources/organizations/api-keys.d.mts.map +1 -0
- package/resources/organizations/api-keys.d.ts +43 -0
- package/resources/organizations/api-keys.d.ts.map +1 -0
- package/resources/organizations/api-keys.js +30 -0
- package/resources/organizations/api-keys.js.map +1 -0
- package/resources/organizations/api-keys.mjs +26 -0
- package/resources/organizations/api-keys.mjs.map +1 -0
- package/resources/organizations/index.d.mts +3 -0
- package/resources/organizations/index.d.mts.map +1 -0
- package/resources/organizations/index.d.ts +3 -0
- package/resources/organizations/index.d.ts.map +1 -0
- package/resources/organizations/index.js +9 -0
- package/resources/organizations/index.js.map +1 -0
- package/resources/organizations/index.mjs +4 -0
- package/resources/organizations/index.mjs.map +1 -0
- package/resources/organizations/organizations.d.mts +10 -0
- package/resources/organizations/organizations.d.mts.map +1 -0
- package/resources/organizations/organizations.d.ts +10 -0
- package/resources/organizations/organizations.d.ts.map +1 -0
- package/resources/organizations/organizations.js +17 -0
- package/resources/organizations/organizations.js.map +1 -0
- package/resources/organizations/organizations.mjs +12 -0
- package/resources/organizations/organizations.mjs.map +1 -0
- package/resources/organizations.d.mts +2 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +2 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +6 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +3 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/servers/domains.d.mts +13 -122
- package/resources/servers/domains.d.mts.map +1 -1
- package/resources/servers/domains.d.ts +13 -122
- package/resources/servers/domains.d.ts.map +1 -1
- package/resources/servers/domains.js +6 -32
- package/resources/servers/domains.js.map +1 -1
- package/resources/servers/domains.mjs +6 -32
- package/resources/servers/domains.mjs.map +1 -1
- package/resources/servers/index.d.mts +1 -1
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +1 -1
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/index.js.map +1 -1
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/releases.d.mts +0 -12
- package/resources/servers/releases.d.mts.map +1 -1
- package/resources/servers/releases.d.ts +0 -12
- package/resources/servers/releases.d.ts.map +1 -1
- package/resources/servers/servers.d.mts +4 -15
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +4 -15
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +1 -1
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/skills.d.mts +273 -1
- package/resources/skills.d.mts.map +1 -1
- package/resources/skills.d.ts +273 -1
- package/resources/skills.d.ts.map +1 -1
- package/resources/skills.js +78 -2
- package/resources/skills.js.map +1 -1
- package/resources/skills.mjs +76 -1
- package/resources/skills.mjs.map +1 -1
- package/resources/tokens.d.mts +17 -0
- package/resources/tokens.d.mts.map +1 -1
- package/resources/tokens.d.ts +17 -0
- package/resources/tokens.d.ts.map +1 -1
- package/resources/tokens.js +5 -0
- package/resources/tokens.js.map +1 -1
- package/resources/tokens.mjs +5 -0
- package/resources/tokens.mjs.map +1 -1
- package/src/client.ts +24 -24
- package/src/core/pagination.ts +0 -59
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/connections/connections.ts +44 -24
- package/src/resources/index.ts +2 -1
- package/src/resources/namespaces/namespaces.ts +4 -3
- package/src/resources/organizations/api-keys.ts +78 -0
- package/src/resources/organizations/index.ts +11 -0
- package/src/resources/organizations/organizations.ts +29 -0
- package/src/resources/organizations.ts +3 -0
- package/src/resources/servers/domains.ts +12 -182
- package/src/resources/servers/index.ts +0 -4
- package/src/resources/servers/releases.ts +0 -14
- package/src/resources/servers/servers.ts +3 -29
- package/src/resources/skills.ts +427 -1
- package/src/resources/tokens.ts +19 -0
- 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
- package/resources/skills/index.d.mts +0 -4
- package/resources/skills/index.d.mts.map +0 -1
- package/resources/skills/index.d.ts +0 -4
- package/resources/skills/index.d.ts.map +0 -1
- package/resources/skills/index.js +0 -11
- package/resources/skills/index.js.map +0 -1
- package/resources/skills/index.mjs +0 -5
- package/resources/skills/index.mjs.map +0 -1
- package/resources/skills/reviews.d.mts +0 -160
- package/resources/skills/reviews.d.mts.map +0 -1
- package/resources/skills/reviews.d.ts +0 -160
- package/resources/skills/reviews.d.ts.map +0 -1
- package/resources/skills/reviews.js +0 -74
- package/resources/skills/reviews.js.map +0 -1
- package/resources/skills/reviews.mjs +0 -70
- package/resources/skills/reviews.mjs.map +0 -1
- package/resources/skills/skills.d.mts +0 -297
- package/resources/skills/skills.d.mts.map +0 -1
- package/resources/skills/skills.d.ts +0 -297
- package/resources/skills/skills.d.ts.map +0 -1
- package/resources/skills/skills.js +0 -94
- package/resources/skills/skills.js.map +0 -1
- package/resources/skills/skills.mjs +0 -89
- package/resources/skills/skills.mjs.map +0 -1
- package/resources/skills/votes.d.mts +0 -72
- package/resources/skills/votes.d.mts.map +0 -1
- package/resources/skills/votes.d.ts +0 -72
- package/resources/skills/votes.d.ts.map +0 -1
- package/resources/skills/votes.js +0 -46
- package/resources/skills/votes.js.map +0 -1
- package/resources/skills/votes.mjs +0 -42
- package/resources/skills/votes.mjs.map +0 -1
- package/src/resources/skills/index.ts +0 -47
- package/src/resources/skills/reviews.ts +0 -254
- package/src/resources/skills/skills.ts +0 -512
- 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
|
-
}
|