@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,512 +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 * as ReviewsAPI from './reviews';
|
|
5
|
-
import {
|
|
6
|
-
CreateReviewRequest,
|
|
7
|
-
CreateReviewResponse,
|
|
8
|
-
ReviewCreateParams,
|
|
9
|
-
ReviewDeleteParams,
|
|
10
|
-
ReviewError,
|
|
11
|
-
ReviewItem,
|
|
12
|
-
ReviewItemsReviewsPage,
|
|
13
|
-
ReviewListParams,
|
|
14
|
-
ReviewUnvoteParams,
|
|
15
|
-
ReviewVoteParams,
|
|
16
|
-
ReviewVoteRequest,
|
|
17
|
-
ReviewVoteResponse,
|
|
18
|
-
Reviews,
|
|
19
|
-
ReviewsListResponse,
|
|
20
|
-
} from './reviews';
|
|
21
|
-
import * as VotesAPI from './votes';
|
|
22
|
-
import {
|
|
23
|
-
SkillVoteCounts,
|
|
24
|
-
SkillVoteError,
|
|
25
|
-
SkillVoteRequest,
|
|
26
|
-
SkillVoteResponse,
|
|
27
|
-
VoteCreateParams,
|
|
28
|
-
VoteDeleteParams,
|
|
29
|
-
VoteGetParams,
|
|
30
|
-
Votes,
|
|
31
|
-
} from './votes';
|
|
32
|
-
import { APIPromise } from '../../core/api-promise';
|
|
33
|
-
import { PagePromise, SkillsPage, type SkillsPageParams } from '../../core/pagination';
|
|
34
|
-
import { type Uploadable } from '../../core/uploads';
|
|
35
|
-
import { buildHeaders } from '../../internal/headers';
|
|
36
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
37
|
-
import { multipartFormRequestOptions } from '../../internal/uploads';
|
|
38
|
-
import { path } from '../../internal/utils/path';
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Discover and search reusable prompt-based skills for MCP servers
|
|
42
|
-
*/
|
|
43
|
-
export class Skills extends APIResource {
|
|
44
|
-
votes: VotesAPI.Votes = new VotesAPI.Votes(this._client);
|
|
45
|
-
reviews: ReviewsAPI.Reviews = new ReviewsAPI.Reviews(this._client);
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Create a new skill
|
|
49
|
-
* by linking a GitHub repository containing a SKILL.md file.
|
|
50
|
-
*
|
|
51
|
-
* @deprecated
|
|
52
|
-
*/
|
|
53
|
-
create(body: SkillCreateParams, options?: RequestOptions): APIPromise<SkillCreateResponse> {
|
|
54
|
-
return this._client.post('/skills', { body, ...options });
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Search and browse reusable prompt-based skills. Supports full-text and semantic
|
|
59
|
-
* search via the `q` parameter, and filtering by category, namespace, or slug.
|
|
60
|
-
*/
|
|
61
|
-
list(
|
|
62
|
-
query: SkillListParams | null | undefined = {},
|
|
63
|
-
options?: RequestOptions,
|
|
64
|
-
): PagePromise<SkillListResponsesSkillsPage, SkillListResponse> {
|
|
65
|
-
return this._client.getAPIList('/skills', SkillsPage<SkillListResponse>, { query, ...options });
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Delete a skill by namespace and slug. Requires ownership of the namespace.
|
|
70
|
-
*/
|
|
71
|
-
delete(slug: string, params: SkillDeleteParams, options?: RequestOptions): APIPromise<SkillDeleteResponse> {
|
|
72
|
-
const { namespace } = params;
|
|
73
|
-
return this._client.delete(path`/skills/${namespace}/${slug}`, options);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Download a ZIP bundle containing all skill files.
|
|
78
|
-
*/
|
|
79
|
-
download(slug: string, params: SkillDownloadParams, options?: RequestOptions): APIPromise<Response> {
|
|
80
|
-
const { namespace } = params;
|
|
81
|
-
return this._client.get(path`/skills/${namespace}/${slug}/download`, {
|
|
82
|
-
...options,
|
|
83
|
-
headers: buildHeaders([{ Accept: 'application/zip' }, options?.headers]),
|
|
84
|
-
__binaryResponse: true,
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Get a single skill by its namespace and slug.
|
|
90
|
-
*/
|
|
91
|
-
get(slug: string, params: SkillGetParams, options?: RequestOptions): APIPromise<SkillGetResponse> {
|
|
92
|
-
const { namespace } = params;
|
|
93
|
-
return this._client.get(path`/skills/${namespace}/${slug}`, options);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Idempotent endpoint to create or update a GitHub-backed skill. Send
|
|
98
|
-
* application/json with `gitUrl`.
|
|
99
|
-
*/
|
|
100
|
-
set(slug: string, params: SkillSetParams, options?: RequestOptions): APIPromise<SkillSetResponse> {
|
|
101
|
-
const { namespace, body } = params;
|
|
102
|
-
return this._client.put(path`/skills/${namespace}/${slug}`, { body: body, ...options });
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Refetch SKILL.md and
|
|
107
|
-
* repository stars from GitHub and update the skill record.
|
|
108
|
-
*
|
|
109
|
-
* @deprecated
|
|
110
|
-
*/
|
|
111
|
-
sync(slug: string, params: SkillSyncParams, options?: RequestOptions): APIPromise<SkillSyncResponse> {
|
|
112
|
-
const { namespace } = params;
|
|
113
|
-
return this._client.post(path`/skills/${namespace}/${slug}/sync`, options);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Upload or replace a skill bundle via multipart/form-data with an `archive` file.
|
|
118
|
-
*/
|
|
119
|
-
upload(slug: string, params: SkillUploadParams, options?: RequestOptions): APIPromise<SkillUploadResponse> {
|
|
120
|
-
const { namespace, ...body } = params;
|
|
121
|
-
return this._client.put(
|
|
122
|
-
path`/skills/${namespace}/${slug}/upload`,
|
|
123
|
-
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export type SkillListResponsesSkillsPage = SkillsPage<SkillListResponse>;
|
|
129
|
-
|
|
130
|
-
export interface SkillCreateResponse {
|
|
131
|
-
id: string;
|
|
132
|
-
|
|
133
|
-
createdAt: string;
|
|
134
|
-
|
|
135
|
-
description: string;
|
|
136
|
-
|
|
137
|
-
displayName: string;
|
|
138
|
-
|
|
139
|
-
gitUrl: string;
|
|
140
|
-
|
|
141
|
-
listed: boolean;
|
|
142
|
-
|
|
143
|
-
namespace: string;
|
|
144
|
-
|
|
145
|
-
slug: string;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface SkillListResponse {
|
|
149
|
-
id: string;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* ISO 8601 timestamp of when the skill was created.
|
|
153
|
-
*/
|
|
154
|
-
createdAt: string;
|
|
155
|
-
|
|
156
|
-
description: string;
|
|
157
|
-
|
|
158
|
-
displayName: string;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Whether this skill is publicly listed in the registry.
|
|
162
|
-
*/
|
|
163
|
-
listed: boolean;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Namespace that owns this skill.
|
|
167
|
-
*/
|
|
168
|
-
namespace: string;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* The prompt template for this skill, or null if not publicly visible.
|
|
172
|
-
*/
|
|
173
|
-
prompt: string | null;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Computed quality score from 0 to 1.
|
|
177
|
-
*/
|
|
178
|
-
qualityScore: number;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* URL-friendly short name within the namespace.
|
|
182
|
-
*/
|
|
183
|
-
slug: string;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Whether this skill's namespace is verified.
|
|
187
|
-
*/
|
|
188
|
-
verified: boolean;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* List of categories this skill belongs to.
|
|
192
|
-
*/
|
|
193
|
-
categories?: Array<string>;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Number of downvotes for this skill.
|
|
197
|
-
*/
|
|
198
|
-
downvotes?: number;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* GitHub fork count of the source repository, if applicable.
|
|
202
|
-
*/
|
|
203
|
-
externalForks?: number;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* GitHub star count of the source repository, if applicable.
|
|
207
|
-
*/
|
|
208
|
-
externalStars?: number;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* URL to the skill's source repository.
|
|
212
|
-
*/
|
|
213
|
-
gitUrl?: string | null;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Number of reviews for this skill.
|
|
217
|
-
*/
|
|
218
|
-
reviewCount?: number;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Qualified names of MCP servers this skill depends on.
|
|
222
|
-
*/
|
|
223
|
-
servers?: Array<string>;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Total number of times this skill has been activated.
|
|
227
|
-
*/
|
|
228
|
-
totalActivations?: number;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Number of distinct users who have activated this skill.
|
|
232
|
-
*/
|
|
233
|
-
uniqueUsers?: number;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Number of upvotes for this skill.
|
|
237
|
-
*/
|
|
238
|
-
upvotes?: number;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export interface SkillDeleteResponse {
|
|
242
|
-
qualifiedName: string;
|
|
243
|
-
|
|
244
|
-
success: boolean;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export interface SkillGetResponse {
|
|
248
|
-
id: string;
|
|
249
|
-
|
|
250
|
-
categories: Array<string>;
|
|
251
|
-
|
|
252
|
-
createdAt: string;
|
|
253
|
-
|
|
254
|
-
description: string;
|
|
255
|
-
|
|
256
|
-
displayName: string;
|
|
257
|
-
|
|
258
|
-
downvotes: number;
|
|
259
|
-
|
|
260
|
-
externalForks: number;
|
|
261
|
-
|
|
262
|
-
externalStars: number;
|
|
263
|
-
|
|
264
|
-
gitUrl: string | null;
|
|
265
|
-
|
|
266
|
-
listed: boolean;
|
|
267
|
-
|
|
268
|
-
namespace: string;
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* User ID of the skill owner (from namespace)
|
|
272
|
-
*/
|
|
273
|
-
owner: string | null;
|
|
274
|
-
|
|
275
|
-
prompt: string;
|
|
276
|
-
|
|
277
|
-
qualityScore: number;
|
|
278
|
-
|
|
279
|
-
reviewCount: number;
|
|
280
|
-
|
|
281
|
-
servers: Array<string>;
|
|
282
|
-
|
|
283
|
-
slug: string;
|
|
284
|
-
|
|
285
|
-
totalActivations: number;
|
|
286
|
-
|
|
287
|
-
uniqueUsers: number;
|
|
288
|
-
|
|
289
|
-
upvotes: number;
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Whether this skill's namespace is verified.
|
|
293
|
-
*/
|
|
294
|
-
verified: boolean;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
export interface SkillSetResponse {
|
|
298
|
-
id: string;
|
|
299
|
-
|
|
300
|
-
createdAt: string;
|
|
301
|
-
|
|
302
|
-
description: string;
|
|
303
|
-
|
|
304
|
-
displayName: string;
|
|
305
|
-
|
|
306
|
-
externalStars: number;
|
|
307
|
-
|
|
308
|
-
gitUrl: string | null;
|
|
309
|
-
|
|
310
|
-
listed: boolean;
|
|
311
|
-
|
|
312
|
-
namespace: string;
|
|
313
|
-
|
|
314
|
-
slug: string;
|
|
315
|
-
|
|
316
|
-
updatedAt: string;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export interface SkillSyncResponse {
|
|
320
|
-
id: string;
|
|
321
|
-
|
|
322
|
-
description: string;
|
|
323
|
-
|
|
324
|
-
displayName: string;
|
|
325
|
-
|
|
326
|
-
externalStars: number;
|
|
327
|
-
|
|
328
|
-
gitUrl: string;
|
|
329
|
-
|
|
330
|
-
namespace: string;
|
|
331
|
-
|
|
332
|
-
slug: string;
|
|
333
|
-
|
|
334
|
-
updatedAt: string;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
export interface SkillUploadResponse {
|
|
338
|
-
id: string;
|
|
339
|
-
|
|
340
|
-
createdAt: string;
|
|
341
|
-
|
|
342
|
-
description: string;
|
|
343
|
-
|
|
344
|
-
displayName: string;
|
|
345
|
-
|
|
346
|
-
externalStars: number;
|
|
347
|
-
|
|
348
|
-
gitUrl: string | null;
|
|
349
|
-
|
|
350
|
-
listed: boolean;
|
|
351
|
-
|
|
352
|
-
namespace: string;
|
|
353
|
-
|
|
354
|
-
slug: string;
|
|
355
|
-
|
|
356
|
-
updatedAt: string;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
export interface SkillCreateParams {
|
|
360
|
-
/**
|
|
361
|
-
* GitHub URL pointing to a repository with SKILL.md
|
|
362
|
-
*/
|
|
363
|
-
gitUrl: string;
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* The namespace to create the skill in.
|
|
367
|
-
*/
|
|
368
|
-
namespace: string;
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* URL-friendly identifier for the skill.
|
|
372
|
-
*/
|
|
373
|
-
slug: string;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
export interface SkillListParams extends SkillsPageParams {
|
|
377
|
-
/**
|
|
378
|
-
* Filter by skill category (e.g. 'code', 'data', 'web').
|
|
379
|
-
*/
|
|
380
|
-
category?: string;
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* Comma-separated list of fields to include in response
|
|
384
|
-
*/
|
|
385
|
-
fields?: string;
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Filter by the namespace that owns the skill.
|
|
389
|
-
*/
|
|
390
|
-
namespace?: string;
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Filter by the skill owner's user ID.
|
|
394
|
-
*/
|
|
395
|
-
ownerId?: string;
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* Search query for full-text and semantic search across skill names and
|
|
399
|
-
* descriptions.
|
|
400
|
-
*/
|
|
401
|
-
q?: string;
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* Filter by exact skill slug within a namespace. Deprecated: use GET
|
|
405
|
-
* /skills/:namespace/:slug instead.
|
|
406
|
-
*/
|
|
407
|
-
slug?: string;
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* Maximum number of candidate results to consider from the search index before
|
|
411
|
-
* pagination.
|
|
412
|
-
*/
|
|
413
|
-
topK?: number;
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* Filter by whether the skill's namespace is verified.
|
|
417
|
-
*/
|
|
418
|
-
verified?: boolean;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
export interface SkillDeleteParams {
|
|
422
|
-
namespace: string;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export interface SkillDownloadParams {
|
|
426
|
-
namespace: string;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
export interface SkillGetParams {
|
|
430
|
-
namespace: string;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
export interface SkillSetParams {
|
|
434
|
-
/**
|
|
435
|
-
* Path param
|
|
436
|
-
*/
|
|
437
|
-
namespace: string;
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* Body param
|
|
441
|
-
*/
|
|
442
|
-
body: unknown;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
export interface SkillSyncParams {
|
|
446
|
-
namespace: string;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
export interface SkillUploadParams {
|
|
450
|
-
/**
|
|
451
|
-
* Path param
|
|
452
|
-
*/
|
|
453
|
-
namespace: string;
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* Body param: ZIP file upload containing a skill folder with SKILL.md and any
|
|
457
|
-
* scripts, references, or assets.
|
|
458
|
-
*/
|
|
459
|
-
archive: Uploadable;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
Skills.Votes = Votes;
|
|
463
|
-
Skills.Reviews = Reviews;
|
|
464
|
-
|
|
465
|
-
export declare namespace Skills {
|
|
466
|
-
export {
|
|
467
|
-
type SkillCreateResponse as SkillCreateResponse,
|
|
468
|
-
type SkillListResponse as SkillListResponse,
|
|
469
|
-
type SkillDeleteResponse as SkillDeleteResponse,
|
|
470
|
-
type SkillGetResponse as SkillGetResponse,
|
|
471
|
-
type SkillSetResponse as SkillSetResponse,
|
|
472
|
-
type SkillSyncResponse as SkillSyncResponse,
|
|
473
|
-
type SkillUploadResponse as SkillUploadResponse,
|
|
474
|
-
type SkillListResponsesSkillsPage as SkillListResponsesSkillsPage,
|
|
475
|
-
type SkillCreateParams as SkillCreateParams,
|
|
476
|
-
type SkillListParams as SkillListParams,
|
|
477
|
-
type SkillDeleteParams as SkillDeleteParams,
|
|
478
|
-
type SkillDownloadParams as SkillDownloadParams,
|
|
479
|
-
type SkillGetParams as SkillGetParams,
|
|
480
|
-
type SkillSetParams as SkillSetParams,
|
|
481
|
-
type SkillSyncParams as SkillSyncParams,
|
|
482
|
-
type SkillUploadParams as SkillUploadParams,
|
|
483
|
-
};
|
|
484
|
-
|
|
485
|
-
export {
|
|
486
|
-
Votes as Votes,
|
|
487
|
-
type SkillVoteCounts as SkillVoteCounts,
|
|
488
|
-
type SkillVoteError as SkillVoteError,
|
|
489
|
-
type SkillVoteRequest as SkillVoteRequest,
|
|
490
|
-
type SkillVoteResponse as SkillVoteResponse,
|
|
491
|
-
type VoteCreateParams as VoteCreateParams,
|
|
492
|
-
type VoteDeleteParams as VoteDeleteParams,
|
|
493
|
-
type VoteGetParams as VoteGetParams,
|
|
494
|
-
};
|
|
495
|
-
|
|
496
|
-
export {
|
|
497
|
-
Reviews as Reviews,
|
|
498
|
-
type CreateReviewRequest as CreateReviewRequest,
|
|
499
|
-
type CreateReviewResponse as CreateReviewResponse,
|
|
500
|
-
type ReviewError as ReviewError,
|
|
501
|
-
type ReviewItem as ReviewItem,
|
|
502
|
-
type ReviewVoteRequest as ReviewVoteRequest,
|
|
503
|
-
type ReviewVoteResponse as ReviewVoteResponse,
|
|
504
|
-
type ReviewsListResponse as ReviewsListResponse,
|
|
505
|
-
type ReviewItemsReviewsPage as ReviewItemsReviewsPage,
|
|
506
|
-
type ReviewCreateParams as ReviewCreateParams,
|
|
507
|
-
type ReviewListParams as ReviewListParams,
|
|
508
|
-
type ReviewDeleteParams as ReviewDeleteParams,
|
|
509
|
-
type ReviewUnvoteParams as ReviewUnvoteParams,
|
|
510
|
-
type ReviewVoteParams as ReviewVoteParams,
|
|
511
|
-
};
|
|
512
|
-
}
|
|
@@ -1,110 +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 { buildHeaders } from '../../internal/headers';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
-
import { path } from '../../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Discover and search reusable prompt-based skills for MCP servers
|
|
11
|
-
*/
|
|
12
|
-
export class Votes extends APIResource {
|
|
13
|
-
/**
|
|
14
|
-
* Deprecated (SMI-1505). Upvote or downvote a skill. Updates existing vote if one
|
|
15
|
-
* exists.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated
|
|
18
|
-
*/
|
|
19
|
-
create(slug: string, params: VoteCreateParams, options?: RequestOptions): APIPromise<SkillVoteResponse> {
|
|
20
|
-
const { namespace, ...body } = params;
|
|
21
|
-
return this._client.post(path`/skills/${namespace}/${slug}/vote`, { body, ...options });
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* [Deprecated] Remove vote from a skill
|
|
26
|
-
*
|
|
27
|
-
* @deprecated
|
|
28
|
-
*/
|
|
29
|
-
delete(slug: string, params: VoteDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
30
|
-
const { namespace } = params;
|
|
31
|
-
return this._client.delete(path`/skills/${namespace}/${slug}/vote`, {
|
|
32
|
-
...options,
|
|
33
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Deprecated (SMI-1505). Get upvote/downvote counts and current user's vote (if
|
|
39
|
-
* authenticated).
|
|
40
|
-
*
|
|
41
|
-
* @deprecated
|
|
42
|
-
*/
|
|
43
|
-
get(slug: string, params: VoteGetParams, options?: RequestOptions): APIPromise<SkillVoteCounts> {
|
|
44
|
-
const { namespace } = params;
|
|
45
|
-
return this._client.get(path`/skills/${namespace}/${slug}/vote`, options);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface SkillVoteCounts {
|
|
50
|
-
downvotes: number;
|
|
51
|
-
|
|
52
|
-
upvotes: number;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Current user's vote, null if not voted
|
|
56
|
-
*/
|
|
57
|
-
userVote: 'up' | 'down' | null;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface SkillVoteError {
|
|
61
|
-
error: string;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface SkillVoteRequest {
|
|
65
|
-
/**
|
|
66
|
-
* Vote direction
|
|
67
|
-
*/
|
|
68
|
-
vote: 'up' | 'down';
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface SkillVoteResponse {
|
|
72
|
-
createdAt: string;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Vote direction
|
|
76
|
-
*/
|
|
77
|
-
vote: 'up' | 'down';
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export interface VoteCreateParams {
|
|
81
|
-
/**
|
|
82
|
-
* Path param
|
|
83
|
-
*/
|
|
84
|
-
namespace: string;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Body param: Vote direction
|
|
88
|
-
*/
|
|
89
|
-
vote: 'up' | 'down';
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface VoteDeleteParams {
|
|
93
|
-
namespace: string;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface VoteGetParams {
|
|
97
|
-
namespace: string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export declare namespace Votes {
|
|
101
|
-
export {
|
|
102
|
-
type SkillVoteCounts as SkillVoteCounts,
|
|
103
|
-
type SkillVoteError as SkillVoteError,
|
|
104
|
-
type SkillVoteRequest as SkillVoteRequest,
|
|
105
|
-
type SkillVoteResponse as SkillVoteResponse,
|
|
106
|
-
type VoteCreateParams as VoteCreateParams,
|
|
107
|
-
type VoteDeleteParams as VoteDeleteParams,
|
|
108
|
-
type VoteGetParams as VoteGetParams,
|
|
109
|
-
};
|
|
110
|
-
}
|