@smithery/api 0.57.0 → 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 +19 -0
- package/client.d.mts +2 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -4
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -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 -3
- package/resources/connections/connections.d.mts.map +1 -1
- package/resources/connections/connections.d.ts +35 -3
- 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 +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/servers/servers.d.mts +2 -1
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +2 -1
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js.map +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/src/client.ts +19 -24
- package/src/core/pagination.ts +0 -59
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/connections/connections.ts +44 -2
- package/src/resources/index.ts +1 -1
- package/src/resources/servers/servers.ts +2 -1
- package/src/resources/skills.ts +427 -1
- 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
package/resources/skills.d.mts
CHANGED
|
@@ -1,2 +1,274 @@
|
|
|
1
|
-
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { PagePromise, SkillsPage, type SkillsPageParams } from "../core/pagination.mjs";
|
|
4
|
+
import { type Uploadable } from "../core/uploads.mjs";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Discover and search reusable prompt-based skills for MCP servers
|
|
8
|
+
*/
|
|
9
|
+
export declare class Skills extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Create a new skill
|
|
12
|
+
* by linking a GitHub repository containing a SKILL.md file.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
16
|
+
create(body: SkillCreateParams, options?: RequestOptions): APIPromise<SkillCreateResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Search and browse reusable prompt-based skills. Supports full-text and semantic
|
|
19
|
+
* search via the `q` parameter, and filtering by category, namespace, or slug.
|
|
20
|
+
*/
|
|
21
|
+
list(query?: SkillListParams | null | undefined, options?: RequestOptions): PagePromise<SkillListResponsesSkillsPage, SkillListResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Delete a skill by namespace and slug. Requires ownership of the namespace.
|
|
24
|
+
*/
|
|
25
|
+
delete(slug: string, params: SkillDeleteParams, options?: RequestOptions): APIPromise<SkillDeleteResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Download a ZIP bundle containing all skill files.
|
|
28
|
+
*/
|
|
29
|
+
download(slug: string, params: SkillDownloadParams, options?: RequestOptions): APIPromise<Response>;
|
|
30
|
+
/**
|
|
31
|
+
* Get a single skill by its namespace and slug.
|
|
32
|
+
*/
|
|
33
|
+
get(slug: string, params: SkillGetParams, options?: RequestOptions): APIPromise<SkillGetResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Idempotent endpoint to create or update a GitHub-backed skill. Send
|
|
36
|
+
* application/json with `gitUrl`.
|
|
37
|
+
*/
|
|
38
|
+
set(slug: string, params: SkillSetParams, options?: RequestOptions): APIPromise<SkillSetResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Refetch SKILL.md and
|
|
41
|
+
* repository stars from GitHub and update the skill record.
|
|
42
|
+
*
|
|
43
|
+
* @deprecated
|
|
44
|
+
*/
|
|
45
|
+
sync(slug: string, params: SkillSyncParams, options?: RequestOptions): APIPromise<SkillSyncResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Upload or replace a skill bundle via multipart/form-data with an `archive` file.
|
|
48
|
+
*/
|
|
49
|
+
upload(slug: string, params: SkillUploadParams, options?: RequestOptions): APIPromise<SkillUploadResponse>;
|
|
50
|
+
}
|
|
51
|
+
export type SkillListResponsesSkillsPage = SkillsPage<SkillListResponse>;
|
|
52
|
+
export interface SkillCreateResponse {
|
|
53
|
+
id: string;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
description: string;
|
|
56
|
+
displayName: string;
|
|
57
|
+
gitUrl: string;
|
|
58
|
+
listed: boolean;
|
|
59
|
+
namespace: string;
|
|
60
|
+
slug: string;
|
|
61
|
+
}
|
|
62
|
+
export interface SkillListResponse {
|
|
63
|
+
id: string;
|
|
64
|
+
/**
|
|
65
|
+
* ISO 8601 timestamp of when the skill was created.
|
|
66
|
+
*/
|
|
67
|
+
createdAt: string;
|
|
68
|
+
description: string;
|
|
69
|
+
displayName: string;
|
|
70
|
+
/**
|
|
71
|
+
* Whether this skill is publicly listed in the registry.
|
|
72
|
+
*/
|
|
73
|
+
listed: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Namespace that owns this skill.
|
|
76
|
+
*/
|
|
77
|
+
namespace: string;
|
|
78
|
+
/**
|
|
79
|
+
* The prompt template for this skill, or null if not publicly visible.
|
|
80
|
+
*/
|
|
81
|
+
prompt: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Computed quality score from 0 to 1.
|
|
84
|
+
*/
|
|
85
|
+
qualityScore: number;
|
|
86
|
+
/**
|
|
87
|
+
* URL-friendly short name within the namespace.
|
|
88
|
+
*/
|
|
89
|
+
slug: string;
|
|
90
|
+
/**
|
|
91
|
+
* Whether this skill's namespace is verified.
|
|
92
|
+
*/
|
|
93
|
+
verified: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* List of categories this skill belongs to.
|
|
96
|
+
*/
|
|
97
|
+
categories?: Array<string>;
|
|
98
|
+
/**
|
|
99
|
+
* GitHub fork count of the source repository, if applicable.
|
|
100
|
+
*/
|
|
101
|
+
externalForks?: number;
|
|
102
|
+
/**
|
|
103
|
+
* GitHub star count of the source repository, if applicable.
|
|
104
|
+
*/
|
|
105
|
+
externalStars?: number;
|
|
106
|
+
/**
|
|
107
|
+
* URL to the skill's source repository.
|
|
108
|
+
*/
|
|
109
|
+
gitUrl?: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* Qualified names of MCP servers this skill depends on.
|
|
112
|
+
*/
|
|
113
|
+
servers?: Array<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Total number of times this skill has been activated.
|
|
116
|
+
*/
|
|
117
|
+
totalActivations?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Number of distinct users who have activated this skill.
|
|
120
|
+
*/
|
|
121
|
+
uniqueUsers?: number;
|
|
122
|
+
}
|
|
123
|
+
export interface SkillDeleteResponse {
|
|
124
|
+
qualifiedName: string;
|
|
125
|
+
success: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface SkillGetResponse {
|
|
128
|
+
id: string;
|
|
129
|
+
categories: Array<string>;
|
|
130
|
+
createdAt: string;
|
|
131
|
+
description: string;
|
|
132
|
+
displayName: string;
|
|
133
|
+
externalForks: number;
|
|
134
|
+
externalStars: number;
|
|
135
|
+
gitUrl: string | null;
|
|
136
|
+
listed: boolean;
|
|
137
|
+
namespace: string;
|
|
138
|
+
/**
|
|
139
|
+
* Organization ID of the skill owner (from namespace)
|
|
140
|
+
*/
|
|
141
|
+
owner: string | null;
|
|
142
|
+
prompt: string;
|
|
143
|
+
qualityScore: number;
|
|
144
|
+
servers: Array<string>;
|
|
145
|
+
slug: string;
|
|
146
|
+
totalActivations: number;
|
|
147
|
+
uniqueUsers: number;
|
|
148
|
+
/**
|
|
149
|
+
* Whether this skill's namespace is verified.
|
|
150
|
+
*/
|
|
151
|
+
verified: boolean;
|
|
152
|
+
}
|
|
153
|
+
export interface SkillSetResponse {
|
|
154
|
+
id: string;
|
|
155
|
+
createdAt: string;
|
|
156
|
+
description: string;
|
|
157
|
+
displayName: string;
|
|
158
|
+
externalStars: number;
|
|
159
|
+
gitUrl: string | null;
|
|
160
|
+
listed: boolean;
|
|
161
|
+
namespace: string;
|
|
162
|
+
slug: string;
|
|
163
|
+
updatedAt: string;
|
|
164
|
+
}
|
|
165
|
+
export interface SkillSyncResponse {
|
|
166
|
+
id: string;
|
|
167
|
+
description: string;
|
|
168
|
+
displayName: string;
|
|
169
|
+
externalStars: number;
|
|
170
|
+
gitUrl: string;
|
|
171
|
+
namespace: string;
|
|
172
|
+
slug: string;
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
}
|
|
175
|
+
export interface SkillUploadResponse {
|
|
176
|
+
id: string;
|
|
177
|
+
createdAt: string;
|
|
178
|
+
description: string;
|
|
179
|
+
displayName: string;
|
|
180
|
+
externalStars: number;
|
|
181
|
+
gitUrl: string | null;
|
|
182
|
+
listed: boolean;
|
|
183
|
+
namespace: string;
|
|
184
|
+
slug: string;
|
|
185
|
+
updatedAt: string;
|
|
186
|
+
}
|
|
187
|
+
export interface SkillCreateParams {
|
|
188
|
+
/**
|
|
189
|
+
* GitHub URL pointing to a repository with SKILL.md
|
|
190
|
+
*/
|
|
191
|
+
gitUrl: string;
|
|
192
|
+
/**
|
|
193
|
+
* The namespace to create the skill in.
|
|
194
|
+
*/
|
|
195
|
+
namespace: string;
|
|
196
|
+
/**
|
|
197
|
+
* URL-friendly identifier for the skill.
|
|
198
|
+
*/
|
|
199
|
+
slug: string;
|
|
200
|
+
}
|
|
201
|
+
export interface SkillListParams extends SkillsPageParams {
|
|
202
|
+
/**
|
|
203
|
+
* Filter by skill category (e.g. 'code', 'data', 'web').
|
|
204
|
+
*/
|
|
205
|
+
category?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Comma-separated list of fields to include in response
|
|
208
|
+
*/
|
|
209
|
+
fields?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Filter by the namespace that owns the skill.
|
|
212
|
+
*/
|
|
213
|
+
namespace?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Filter by the skill owner's organization ID.
|
|
216
|
+
*/
|
|
217
|
+
ownerId?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Search query for full-text and semantic search across skill names and
|
|
220
|
+
* descriptions.
|
|
221
|
+
*/
|
|
222
|
+
q?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Filter by exact skill slug within a namespace. Deprecated: use GET
|
|
225
|
+
* /skills/:namespace/:slug instead.
|
|
226
|
+
*/
|
|
227
|
+
slug?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Maximum number of candidate results to consider from the search index before
|
|
230
|
+
* pagination.
|
|
231
|
+
*/
|
|
232
|
+
topK?: number;
|
|
233
|
+
/**
|
|
234
|
+
* Filter by whether the skill's namespace is verified.
|
|
235
|
+
*/
|
|
236
|
+
verified?: boolean;
|
|
237
|
+
}
|
|
238
|
+
export interface SkillDeleteParams {
|
|
239
|
+
namespace: string;
|
|
240
|
+
}
|
|
241
|
+
export interface SkillDownloadParams {
|
|
242
|
+
namespace: string;
|
|
243
|
+
}
|
|
244
|
+
export interface SkillGetParams {
|
|
245
|
+
namespace: string;
|
|
246
|
+
}
|
|
247
|
+
export interface SkillSetParams {
|
|
248
|
+
/**
|
|
249
|
+
* Path param
|
|
250
|
+
*/
|
|
251
|
+
namespace: string;
|
|
252
|
+
/**
|
|
253
|
+
* Body param
|
|
254
|
+
*/
|
|
255
|
+
body: unknown;
|
|
256
|
+
}
|
|
257
|
+
export interface SkillSyncParams {
|
|
258
|
+
namespace: string;
|
|
259
|
+
}
|
|
260
|
+
export interface SkillUploadParams {
|
|
261
|
+
/**
|
|
262
|
+
* Path param
|
|
263
|
+
*/
|
|
264
|
+
namespace: string;
|
|
265
|
+
/**
|
|
266
|
+
* Body param: ZIP file upload containing a skill folder with SKILL.md and any
|
|
267
|
+
* scripts, references, or assets.
|
|
268
|
+
*/
|
|
269
|
+
archive: Uploadable;
|
|
270
|
+
}
|
|
271
|
+
export declare namespace Skills {
|
|
272
|
+
export { type SkillCreateResponse as SkillCreateResponse, type SkillListResponse as SkillListResponse, type SkillDeleteResponse as SkillDeleteResponse, type SkillGetResponse as SkillGetResponse, type SkillSetResponse as SkillSetResponse, type SkillSyncResponse as SkillSyncResponse, type SkillUploadResponse as SkillUploadResponse, type SkillListResponsesSkillsPage as SkillListResponsesSkillsPage, type SkillCreateParams as SkillCreateParams, type SkillListParams as SkillListParams, type SkillDeleteParams as SkillDeleteParams, type SkillDownloadParams as SkillDownloadParams, type SkillGetParams as SkillGetParams, type SkillSetParams as SkillSetParams, type SkillSyncParams as SkillSyncParams, type SkillUploadParams as SkillUploadParams, };
|
|
273
|
+
}
|
|
2
274
|
//# sourceMappingURL=skills.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.d.mts","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"skills.d.mts","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE;OAClD,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAi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AW,iBAAiB;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,OAAO,EAAE,UAAU,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/skills.d.ts
CHANGED
|
@@ -1,2 +1,274 @@
|
|
|
1
|
-
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { PagePromise, SkillsPage, type SkillsPageParams } from "../core/pagination.js";
|
|
4
|
+
import { type Uploadable } from "../core/uploads.js";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Discover and search reusable prompt-based skills for MCP servers
|
|
8
|
+
*/
|
|
9
|
+
export declare class Skills extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Create a new skill
|
|
12
|
+
* by linking a GitHub repository containing a SKILL.md file.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
16
|
+
create(body: SkillCreateParams, options?: RequestOptions): APIPromise<SkillCreateResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Search and browse reusable prompt-based skills. Supports full-text and semantic
|
|
19
|
+
* search via the `q` parameter, and filtering by category, namespace, or slug.
|
|
20
|
+
*/
|
|
21
|
+
list(query?: SkillListParams | null | undefined, options?: RequestOptions): PagePromise<SkillListResponsesSkillsPage, SkillListResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Delete a skill by namespace and slug. Requires ownership of the namespace.
|
|
24
|
+
*/
|
|
25
|
+
delete(slug: string, params: SkillDeleteParams, options?: RequestOptions): APIPromise<SkillDeleteResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Download a ZIP bundle containing all skill files.
|
|
28
|
+
*/
|
|
29
|
+
download(slug: string, params: SkillDownloadParams, options?: RequestOptions): APIPromise<Response>;
|
|
30
|
+
/**
|
|
31
|
+
* Get a single skill by its namespace and slug.
|
|
32
|
+
*/
|
|
33
|
+
get(slug: string, params: SkillGetParams, options?: RequestOptions): APIPromise<SkillGetResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Idempotent endpoint to create or update a GitHub-backed skill. Send
|
|
36
|
+
* application/json with `gitUrl`.
|
|
37
|
+
*/
|
|
38
|
+
set(slug: string, params: SkillSetParams, options?: RequestOptions): APIPromise<SkillSetResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Refetch SKILL.md and
|
|
41
|
+
* repository stars from GitHub and update the skill record.
|
|
42
|
+
*
|
|
43
|
+
* @deprecated
|
|
44
|
+
*/
|
|
45
|
+
sync(slug: string, params: SkillSyncParams, options?: RequestOptions): APIPromise<SkillSyncResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Upload or replace a skill bundle via multipart/form-data with an `archive` file.
|
|
48
|
+
*/
|
|
49
|
+
upload(slug: string, params: SkillUploadParams, options?: RequestOptions): APIPromise<SkillUploadResponse>;
|
|
50
|
+
}
|
|
51
|
+
export type SkillListResponsesSkillsPage = SkillsPage<SkillListResponse>;
|
|
52
|
+
export interface SkillCreateResponse {
|
|
53
|
+
id: string;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
description: string;
|
|
56
|
+
displayName: string;
|
|
57
|
+
gitUrl: string;
|
|
58
|
+
listed: boolean;
|
|
59
|
+
namespace: string;
|
|
60
|
+
slug: string;
|
|
61
|
+
}
|
|
62
|
+
export interface SkillListResponse {
|
|
63
|
+
id: string;
|
|
64
|
+
/**
|
|
65
|
+
* ISO 8601 timestamp of when the skill was created.
|
|
66
|
+
*/
|
|
67
|
+
createdAt: string;
|
|
68
|
+
description: string;
|
|
69
|
+
displayName: string;
|
|
70
|
+
/**
|
|
71
|
+
* Whether this skill is publicly listed in the registry.
|
|
72
|
+
*/
|
|
73
|
+
listed: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Namespace that owns this skill.
|
|
76
|
+
*/
|
|
77
|
+
namespace: string;
|
|
78
|
+
/**
|
|
79
|
+
* The prompt template for this skill, or null if not publicly visible.
|
|
80
|
+
*/
|
|
81
|
+
prompt: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Computed quality score from 0 to 1.
|
|
84
|
+
*/
|
|
85
|
+
qualityScore: number;
|
|
86
|
+
/**
|
|
87
|
+
* URL-friendly short name within the namespace.
|
|
88
|
+
*/
|
|
89
|
+
slug: string;
|
|
90
|
+
/**
|
|
91
|
+
* Whether this skill's namespace is verified.
|
|
92
|
+
*/
|
|
93
|
+
verified: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* List of categories this skill belongs to.
|
|
96
|
+
*/
|
|
97
|
+
categories?: Array<string>;
|
|
98
|
+
/**
|
|
99
|
+
* GitHub fork count of the source repository, if applicable.
|
|
100
|
+
*/
|
|
101
|
+
externalForks?: number;
|
|
102
|
+
/**
|
|
103
|
+
* GitHub star count of the source repository, if applicable.
|
|
104
|
+
*/
|
|
105
|
+
externalStars?: number;
|
|
106
|
+
/**
|
|
107
|
+
* URL to the skill's source repository.
|
|
108
|
+
*/
|
|
109
|
+
gitUrl?: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* Qualified names of MCP servers this skill depends on.
|
|
112
|
+
*/
|
|
113
|
+
servers?: Array<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Total number of times this skill has been activated.
|
|
116
|
+
*/
|
|
117
|
+
totalActivations?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Number of distinct users who have activated this skill.
|
|
120
|
+
*/
|
|
121
|
+
uniqueUsers?: number;
|
|
122
|
+
}
|
|
123
|
+
export interface SkillDeleteResponse {
|
|
124
|
+
qualifiedName: string;
|
|
125
|
+
success: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface SkillGetResponse {
|
|
128
|
+
id: string;
|
|
129
|
+
categories: Array<string>;
|
|
130
|
+
createdAt: string;
|
|
131
|
+
description: string;
|
|
132
|
+
displayName: string;
|
|
133
|
+
externalForks: number;
|
|
134
|
+
externalStars: number;
|
|
135
|
+
gitUrl: string | null;
|
|
136
|
+
listed: boolean;
|
|
137
|
+
namespace: string;
|
|
138
|
+
/**
|
|
139
|
+
* Organization ID of the skill owner (from namespace)
|
|
140
|
+
*/
|
|
141
|
+
owner: string | null;
|
|
142
|
+
prompt: string;
|
|
143
|
+
qualityScore: number;
|
|
144
|
+
servers: Array<string>;
|
|
145
|
+
slug: string;
|
|
146
|
+
totalActivations: number;
|
|
147
|
+
uniqueUsers: number;
|
|
148
|
+
/**
|
|
149
|
+
* Whether this skill's namespace is verified.
|
|
150
|
+
*/
|
|
151
|
+
verified: boolean;
|
|
152
|
+
}
|
|
153
|
+
export interface SkillSetResponse {
|
|
154
|
+
id: string;
|
|
155
|
+
createdAt: string;
|
|
156
|
+
description: string;
|
|
157
|
+
displayName: string;
|
|
158
|
+
externalStars: number;
|
|
159
|
+
gitUrl: string | null;
|
|
160
|
+
listed: boolean;
|
|
161
|
+
namespace: string;
|
|
162
|
+
slug: string;
|
|
163
|
+
updatedAt: string;
|
|
164
|
+
}
|
|
165
|
+
export interface SkillSyncResponse {
|
|
166
|
+
id: string;
|
|
167
|
+
description: string;
|
|
168
|
+
displayName: string;
|
|
169
|
+
externalStars: number;
|
|
170
|
+
gitUrl: string;
|
|
171
|
+
namespace: string;
|
|
172
|
+
slug: string;
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
}
|
|
175
|
+
export interface SkillUploadResponse {
|
|
176
|
+
id: string;
|
|
177
|
+
createdAt: string;
|
|
178
|
+
description: string;
|
|
179
|
+
displayName: string;
|
|
180
|
+
externalStars: number;
|
|
181
|
+
gitUrl: string | null;
|
|
182
|
+
listed: boolean;
|
|
183
|
+
namespace: string;
|
|
184
|
+
slug: string;
|
|
185
|
+
updatedAt: string;
|
|
186
|
+
}
|
|
187
|
+
export interface SkillCreateParams {
|
|
188
|
+
/**
|
|
189
|
+
* GitHub URL pointing to a repository with SKILL.md
|
|
190
|
+
*/
|
|
191
|
+
gitUrl: string;
|
|
192
|
+
/**
|
|
193
|
+
* The namespace to create the skill in.
|
|
194
|
+
*/
|
|
195
|
+
namespace: string;
|
|
196
|
+
/**
|
|
197
|
+
* URL-friendly identifier for the skill.
|
|
198
|
+
*/
|
|
199
|
+
slug: string;
|
|
200
|
+
}
|
|
201
|
+
export interface SkillListParams extends SkillsPageParams {
|
|
202
|
+
/**
|
|
203
|
+
* Filter by skill category (e.g. 'code', 'data', 'web').
|
|
204
|
+
*/
|
|
205
|
+
category?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Comma-separated list of fields to include in response
|
|
208
|
+
*/
|
|
209
|
+
fields?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Filter by the namespace that owns the skill.
|
|
212
|
+
*/
|
|
213
|
+
namespace?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Filter by the skill owner's organization ID.
|
|
216
|
+
*/
|
|
217
|
+
ownerId?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Search query for full-text and semantic search across skill names and
|
|
220
|
+
* descriptions.
|
|
221
|
+
*/
|
|
222
|
+
q?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Filter by exact skill slug within a namespace. Deprecated: use GET
|
|
225
|
+
* /skills/:namespace/:slug instead.
|
|
226
|
+
*/
|
|
227
|
+
slug?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Maximum number of candidate results to consider from the search index before
|
|
230
|
+
* pagination.
|
|
231
|
+
*/
|
|
232
|
+
topK?: number;
|
|
233
|
+
/**
|
|
234
|
+
* Filter by whether the skill's namespace is verified.
|
|
235
|
+
*/
|
|
236
|
+
verified?: boolean;
|
|
237
|
+
}
|
|
238
|
+
export interface SkillDeleteParams {
|
|
239
|
+
namespace: string;
|
|
240
|
+
}
|
|
241
|
+
export interface SkillDownloadParams {
|
|
242
|
+
namespace: string;
|
|
243
|
+
}
|
|
244
|
+
export interface SkillGetParams {
|
|
245
|
+
namespace: string;
|
|
246
|
+
}
|
|
247
|
+
export interface SkillSetParams {
|
|
248
|
+
/**
|
|
249
|
+
* Path param
|
|
250
|
+
*/
|
|
251
|
+
namespace: string;
|
|
252
|
+
/**
|
|
253
|
+
* Body param
|
|
254
|
+
*/
|
|
255
|
+
body: unknown;
|
|
256
|
+
}
|
|
257
|
+
export interface SkillSyncParams {
|
|
258
|
+
namespace: string;
|
|
259
|
+
}
|
|
260
|
+
export interface SkillUploadParams {
|
|
261
|
+
/**
|
|
262
|
+
* Path param
|
|
263
|
+
*/
|
|
264
|
+
namespace: string;
|
|
265
|
+
/**
|
|
266
|
+
* Body param: ZIP file upload containing a skill folder with SKILL.md and any
|
|
267
|
+
* scripts, references, or assets.
|
|
268
|
+
*/
|
|
269
|
+
archive: Uploadable;
|
|
270
|
+
}
|
|
271
|
+
export declare namespace Skills {
|
|
272
|
+
export { type SkillCreateResponse as SkillCreateResponse, type SkillListResponse as SkillListResponse, type SkillDeleteResponse as SkillDeleteResponse, type SkillGetResponse as SkillGetResponse, type SkillSetResponse as SkillSetResponse, type SkillSyncResponse as SkillSyncResponse, type SkillUploadResponse as SkillUploadResponse, type SkillListResponsesSkillsPage as SkillListResponsesSkillsPage, type SkillCreateParams as SkillCreateParams, type SkillListParams as SkillListParams, type SkillDeleteParams as SkillDeleteParams, type SkillDownloadParams as SkillDownloadParams, type SkillGetParams as SkillGetParams, type SkillSetParams as SkillSetParams, type SkillSyncParams as SkillSyncParams, type SkillUploadParams as SkillUploadParams, };
|
|
273
|
+
}
|
|
2
274
|
//# sourceMappingURL=skills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE;OAClD,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,4BAA4B,EAAE,iBAAiB,CAAC;IAI/D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAK1G;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QA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,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/skills.js
CHANGED
|
@@ -1,6 +1,82 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
exports.Skills = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
8
|
+
const uploads_1 = require("../internal/uploads.js");
|
|
9
|
+
const path_1 = require("../internal/utils/path.js");
|
|
10
|
+
/**
|
|
11
|
+
* Discover and search reusable prompt-based skills for MCP servers
|
|
12
|
+
*/
|
|
13
|
+
class Skills extends resource_1.APIResource {
|
|
14
|
+
/**
|
|
15
|
+
* **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Create a new skill
|
|
16
|
+
* by linking a GitHub repository containing a SKILL.md file.
|
|
17
|
+
*
|
|
18
|
+
* @deprecated
|
|
19
|
+
*/
|
|
20
|
+
create(body, options) {
|
|
21
|
+
return this._client.post('/skills', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Search and browse reusable prompt-based skills. Supports full-text and semantic
|
|
25
|
+
* search via the `q` parameter, and filtering by category, namespace, or slug.
|
|
26
|
+
*/
|
|
27
|
+
list(query = {}, options) {
|
|
28
|
+
return this._client.getAPIList('/skills', (pagination_1.SkillsPage), { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Delete a skill by namespace and slug. Requires ownership of the namespace.
|
|
32
|
+
*/
|
|
33
|
+
delete(slug, params, options) {
|
|
34
|
+
const { namespace } = params;
|
|
35
|
+
return this._client.delete((0, path_1.path) `/skills/${namespace}/${slug}`, options);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Download a ZIP bundle containing all skill files.
|
|
39
|
+
*/
|
|
40
|
+
download(slug, params, options) {
|
|
41
|
+
const { namespace } = params;
|
|
42
|
+
return this._client.get((0, path_1.path) `/skills/${namespace}/${slug}/download`, {
|
|
43
|
+
...options,
|
|
44
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: 'application/zip' }, options?.headers]),
|
|
45
|
+
__binaryResponse: true,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get a single skill by its namespace and slug.
|
|
50
|
+
*/
|
|
51
|
+
get(slug, params, options) {
|
|
52
|
+
const { namespace } = params;
|
|
53
|
+
return this._client.get((0, path_1.path) `/skills/${namespace}/${slug}`, options);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Idempotent endpoint to create or update a GitHub-backed skill. Send
|
|
57
|
+
* application/json with `gitUrl`.
|
|
58
|
+
*/
|
|
59
|
+
set(slug, params, options) {
|
|
60
|
+
const { namespace, body } = params;
|
|
61
|
+
return this._client.put((0, path_1.path) `/skills/${namespace}/${slug}`, { body: body, ...options });
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Refetch SKILL.md and
|
|
65
|
+
* repository stars from GitHub and update the skill record.
|
|
66
|
+
*
|
|
67
|
+
* @deprecated
|
|
68
|
+
*/
|
|
69
|
+
sync(slug, params, options) {
|
|
70
|
+
const { namespace } = params;
|
|
71
|
+
return this._client.post((0, path_1.path) `/skills/${namespace}/${slug}/sync`, options);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Upload or replace a skill bundle via multipart/form-data with an `archive` file.
|
|
75
|
+
*/
|
|
76
|
+
upload(slug, params, options) {
|
|
77
|
+
const { namespace, ...body } = params;
|
|
78
|
+
return this._client.put((0, path_1.path) `/skills/${namespace}/${slug}/upload`, (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.Skills = Skills;
|
|
6
82
|
//# sourceMappingURL=skills.js.map
|
package/resources/skills.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.js","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"skills.js","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAAmD;AAEnD,oDAAkE;AAClE,oDAA8C;AAE9C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;OAKG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,uBAA6B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAY,EAAE,MAAyB,EAAE,OAAwB;QACtE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,SAAS,IAAI,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IA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