@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.
Files changed (97) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +2 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -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 -3
  24. package/resources/connections/connections.d.mts.map +1 -1
  25. package/resources/connections/connections.d.ts +35 -3
  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 +1 -1
  32. package/resources/index.d.ts +1 -1
  33. package/resources/index.js +1 -1
  34. package/resources/index.js.map +1 -1
  35. package/resources/index.mjs +1 -1
  36. package/resources/servers/servers.d.mts +2 -1
  37. package/resources/servers/servers.d.mts.map +1 -1
  38. package/resources/servers/servers.d.ts +2 -1
  39. package/resources/servers/servers.d.ts.map +1 -1
  40. package/resources/servers/servers.js.map +1 -1
  41. package/resources/servers/servers.mjs.map +1 -1
  42. package/resources/skills.d.mts +273 -1
  43. package/resources/skills.d.mts.map +1 -1
  44. package/resources/skills.d.ts +273 -1
  45. package/resources/skills.d.ts.map +1 -1
  46. package/resources/skills.js +78 -2
  47. package/resources/skills.js.map +1 -1
  48. package/resources/skills.mjs +76 -1
  49. package/resources/skills.mjs.map +1 -1
  50. package/src/client.ts +19 -24
  51. package/src/core/pagination.ts +0 -59
  52. package/src/internal/utils/env.ts +2 -2
  53. package/src/resources/connections/connections.ts +44 -2
  54. package/src/resources/index.ts +1 -1
  55. package/src/resources/servers/servers.ts +2 -1
  56. package/src/resources/skills.ts +427 -1
  57. package/src/version.ts +1 -1
  58. package/version.d.mts +1 -1
  59. package/version.d.ts +1 -1
  60. package/version.js +1 -1
  61. package/version.mjs +1 -1
  62. package/resources/skills/index.d.mts +0 -4
  63. package/resources/skills/index.d.mts.map +0 -1
  64. package/resources/skills/index.d.ts +0 -4
  65. package/resources/skills/index.d.ts.map +0 -1
  66. package/resources/skills/index.js +0 -11
  67. package/resources/skills/index.js.map +0 -1
  68. package/resources/skills/index.mjs +0 -5
  69. package/resources/skills/index.mjs.map +0 -1
  70. package/resources/skills/reviews.d.mts +0 -160
  71. package/resources/skills/reviews.d.mts.map +0 -1
  72. package/resources/skills/reviews.d.ts +0 -160
  73. package/resources/skills/reviews.d.ts.map +0 -1
  74. package/resources/skills/reviews.js +0 -74
  75. package/resources/skills/reviews.js.map +0 -1
  76. package/resources/skills/reviews.mjs +0 -70
  77. package/resources/skills/reviews.mjs.map +0 -1
  78. package/resources/skills/skills.d.mts +0 -297
  79. package/resources/skills/skills.d.mts.map +0 -1
  80. package/resources/skills/skills.d.ts +0 -297
  81. package/resources/skills/skills.d.ts.map +0 -1
  82. package/resources/skills/skills.js +0 -94
  83. package/resources/skills/skills.js.map +0 -1
  84. package/resources/skills/skills.mjs +0 -89
  85. package/resources/skills/skills.mjs.map +0 -1
  86. package/resources/skills/votes.d.mts +0 -72
  87. package/resources/skills/votes.d.mts.map +0 -1
  88. package/resources/skills/votes.d.ts +0 -72
  89. package/resources/skills/votes.d.ts.map +0 -1
  90. package/resources/skills/votes.js +0 -46
  91. package/resources/skills/votes.js.map +0 -1
  92. package/resources/skills/votes.mjs +0 -42
  93. package/resources/skills/votes.mjs.map +0 -1
  94. package/src/resources/skills/index.ts +0 -47
  95. package/src/resources/skills/reviews.ts +0 -254
  96. package/src/resources/skills/skills.ts +0 -512
  97. package/src/resources/skills/votes.ts +0 -110
@@ -1,3 +1,429 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export * from './skills/index';
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { PagePromise, SkillsPage, type SkillsPageParams } from '../core/pagination';
6
+ import { type Uploadable } from '../core/uploads';
7
+ import { buildHeaders } from '../internal/headers';
8
+ import { RequestOptions } from '../internal/request-options';
9
+ import { multipartFormRequestOptions } from '../internal/uploads';
10
+ import { path } from '../internal/utils/path';
11
+
12
+ /**
13
+ * Discover and search reusable prompt-based skills for MCP servers
14
+ */
15
+ export class Skills extends APIResource {
16
+ /**
17
+ * **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Create a new skill
18
+ * by linking a GitHub repository containing a SKILL.md file.
19
+ *
20
+ * @deprecated
21
+ */
22
+ create(body: SkillCreateParams, options?: RequestOptions): APIPromise<SkillCreateResponse> {
23
+ return this._client.post('/skills', { body, ...options });
24
+ }
25
+
26
+ /**
27
+ * Search and browse reusable prompt-based skills. Supports full-text and semantic
28
+ * search via the `q` parameter, and filtering by category, namespace, or slug.
29
+ */
30
+ list(
31
+ query: SkillListParams | null | undefined = {},
32
+ options?: RequestOptions,
33
+ ): PagePromise<SkillListResponsesSkillsPage, SkillListResponse> {
34
+ return this._client.getAPIList('/skills', SkillsPage<SkillListResponse>, { query, ...options });
35
+ }
36
+
37
+ /**
38
+ * Delete a skill by namespace and slug. Requires ownership of the namespace.
39
+ */
40
+ delete(slug: string, params: SkillDeleteParams, options?: RequestOptions): APIPromise<SkillDeleteResponse> {
41
+ const { namespace } = params;
42
+ return this._client.delete(path`/skills/${namespace}/${slug}`, options);
43
+ }
44
+
45
+ /**
46
+ * Download a ZIP bundle containing all skill files.
47
+ */
48
+ download(slug: string, params: SkillDownloadParams, options?: RequestOptions): APIPromise<Response> {
49
+ const { namespace } = params;
50
+ return this._client.get(path`/skills/${namespace}/${slug}/download`, {
51
+ ...options,
52
+ headers: buildHeaders([{ Accept: 'application/zip' }, options?.headers]),
53
+ __binaryResponse: true,
54
+ });
55
+ }
56
+
57
+ /**
58
+ * Get a single skill by its namespace and slug.
59
+ */
60
+ get(slug: string, params: SkillGetParams, options?: RequestOptions): APIPromise<SkillGetResponse> {
61
+ const { namespace } = params;
62
+ return this._client.get(path`/skills/${namespace}/${slug}`, options);
63
+ }
64
+
65
+ /**
66
+ * Idempotent endpoint to create or update a GitHub-backed skill. Send
67
+ * application/json with `gitUrl`.
68
+ */
69
+ set(slug: string, params: SkillSetParams, options?: RequestOptions): APIPromise<SkillSetResponse> {
70
+ const { namespace, body } = params;
71
+ return this._client.put(path`/skills/${namespace}/${slug}`, { body: body, ...options });
72
+ }
73
+
74
+ /**
75
+ * **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Refetch SKILL.md and
76
+ * repository stars from GitHub and update the skill record.
77
+ *
78
+ * @deprecated
79
+ */
80
+ sync(slug: string, params: SkillSyncParams, options?: RequestOptions): APIPromise<SkillSyncResponse> {
81
+ const { namespace } = params;
82
+ return this._client.post(path`/skills/${namespace}/${slug}/sync`, options);
83
+ }
84
+
85
+ /**
86
+ * Upload or replace a skill bundle via multipart/form-data with an `archive` file.
87
+ */
88
+ upload(slug: string, params: SkillUploadParams, options?: RequestOptions): APIPromise<SkillUploadResponse> {
89
+ const { namespace, ...body } = params;
90
+ return this._client.put(
91
+ path`/skills/${namespace}/${slug}/upload`,
92
+ multipartFormRequestOptions({ body, ...options }, this._client),
93
+ );
94
+ }
95
+ }
96
+
97
+ export type SkillListResponsesSkillsPage = SkillsPage<SkillListResponse>;
98
+
99
+ export interface SkillCreateResponse {
100
+ id: string;
101
+
102
+ createdAt: string;
103
+
104
+ description: string;
105
+
106
+ displayName: string;
107
+
108
+ gitUrl: string;
109
+
110
+ listed: boolean;
111
+
112
+ namespace: string;
113
+
114
+ slug: string;
115
+ }
116
+
117
+ export interface SkillListResponse {
118
+ id: string;
119
+
120
+ /**
121
+ * ISO 8601 timestamp of when the skill was created.
122
+ */
123
+ createdAt: string;
124
+
125
+ description: string;
126
+
127
+ displayName: string;
128
+
129
+ /**
130
+ * Whether this skill is publicly listed in the registry.
131
+ */
132
+ listed: boolean;
133
+
134
+ /**
135
+ * Namespace that owns this skill.
136
+ */
137
+ namespace: string;
138
+
139
+ /**
140
+ * The prompt template for this skill, or null if not publicly visible.
141
+ */
142
+ prompt: string | null;
143
+
144
+ /**
145
+ * Computed quality score from 0 to 1.
146
+ */
147
+ qualityScore: number;
148
+
149
+ /**
150
+ * URL-friendly short name within the namespace.
151
+ */
152
+ slug: string;
153
+
154
+ /**
155
+ * Whether this skill's namespace is verified.
156
+ */
157
+ verified: boolean;
158
+
159
+ /**
160
+ * List of categories this skill belongs to.
161
+ */
162
+ categories?: Array<string>;
163
+
164
+ /**
165
+ * GitHub fork count of the source repository, if applicable.
166
+ */
167
+ externalForks?: number;
168
+
169
+ /**
170
+ * GitHub star count of the source repository, if applicable.
171
+ */
172
+ externalStars?: number;
173
+
174
+ /**
175
+ * URL to the skill's source repository.
176
+ */
177
+ gitUrl?: string | null;
178
+
179
+ /**
180
+ * Qualified names of MCP servers this skill depends on.
181
+ */
182
+ servers?: Array<string>;
183
+
184
+ /**
185
+ * Total number of times this skill has been activated.
186
+ */
187
+ totalActivations?: number;
188
+
189
+ /**
190
+ * Number of distinct users who have activated this skill.
191
+ */
192
+ uniqueUsers?: number;
193
+ }
194
+
195
+ export interface SkillDeleteResponse {
196
+ qualifiedName: string;
197
+
198
+ success: boolean;
199
+ }
200
+
201
+ export interface SkillGetResponse {
202
+ id: string;
203
+
204
+ categories: Array<string>;
205
+
206
+ createdAt: string;
207
+
208
+ description: string;
209
+
210
+ displayName: string;
211
+
212
+ externalForks: number;
213
+
214
+ externalStars: number;
215
+
216
+ gitUrl: string | null;
217
+
218
+ listed: boolean;
219
+
220
+ namespace: string;
221
+
222
+ /**
223
+ * Organization ID of the skill owner (from namespace)
224
+ */
225
+ owner: string | null;
226
+
227
+ prompt: string;
228
+
229
+ qualityScore: number;
230
+
231
+ servers: Array<string>;
232
+
233
+ slug: string;
234
+
235
+ totalActivations: number;
236
+
237
+ uniqueUsers: number;
238
+
239
+ /**
240
+ * Whether this skill's namespace is verified.
241
+ */
242
+ verified: boolean;
243
+ }
244
+
245
+ export interface SkillSetResponse {
246
+ id: string;
247
+
248
+ createdAt: string;
249
+
250
+ description: string;
251
+
252
+ displayName: string;
253
+
254
+ externalStars: number;
255
+
256
+ gitUrl: string | null;
257
+
258
+ listed: boolean;
259
+
260
+ namespace: string;
261
+
262
+ slug: string;
263
+
264
+ updatedAt: string;
265
+ }
266
+
267
+ export interface SkillSyncResponse {
268
+ id: string;
269
+
270
+ description: string;
271
+
272
+ displayName: string;
273
+
274
+ externalStars: number;
275
+
276
+ gitUrl: string;
277
+
278
+ namespace: string;
279
+
280
+ slug: string;
281
+
282
+ updatedAt: string;
283
+ }
284
+
285
+ export interface SkillUploadResponse {
286
+ id: string;
287
+
288
+ createdAt: string;
289
+
290
+ description: string;
291
+
292
+ displayName: string;
293
+
294
+ externalStars: number;
295
+
296
+ gitUrl: string | null;
297
+
298
+ listed: boolean;
299
+
300
+ namespace: string;
301
+
302
+ slug: string;
303
+
304
+ updatedAt: string;
305
+ }
306
+
307
+ export interface SkillCreateParams {
308
+ /**
309
+ * GitHub URL pointing to a repository with SKILL.md
310
+ */
311
+ gitUrl: string;
312
+
313
+ /**
314
+ * The namespace to create the skill in.
315
+ */
316
+ namespace: string;
317
+
318
+ /**
319
+ * URL-friendly identifier for the skill.
320
+ */
321
+ slug: string;
322
+ }
323
+
324
+ export interface SkillListParams extends SkillsPageParams {
325
+ /**
326
+ * Filter by skill category (e.g. 'code', 'data', 'web').
327
+ */
328
+ category?: string;
329
+
330
+ /**
331
+ * Comma-separated list of fields to include in response
332
+ */
333
+ fields?: string;
334
+
335
+ /**
336
+ * Filter by the namespace that owns the skill.
337
+ */
338
+ namespace?: string;
339
+
340
+ /**
341
+ * Filter by the skill owner's organization ID.
342
+ */
343
+ ownerId?: string;
344
+
345
+ /**
346
+ * Search query for full-text and semantic search across skill names and
347
+ * descriptions.
348
+ */
349
+ q?: string;
350
+
351
+ /**
352
+ * Filter by exact skill slug within a namespace. Deprecated: use GET
353
+ * /skills/:namespace/:slug instead.
354
+ */
355
+ slug?: string;
356
+
357
+ /**
358
+ * Maximum number of candidate results to consider from the search index before
359
+ * pagination.
360
+ */
361
+ topK?: number;
362
+
363
+ /**
364
+ * Filter by whether the skill's namespace is verified.
365
+ */
366
+ verified?: boolean;
367
+ }
368
+
369
+ export interface SkillDeleteParams {
370
+ namespace: string;
371
+ }
372
+
373
+ export interface SkillDownloadParams {
374
+ namespace: string;
375
+ }
376
+
377
+ export interface SkillGetParams {
378
+ namespace: string;
379
+ }
380
+
381
+ export interface SkillSetParams {
382
+ /**
383
+ * Path param
384
+ */
385
+ namespace: string;
386
+
387
+ /**
388
+ * Body param
389
+ */
390
+ body: unknown;
391
+ }
392
+
393
+ export interface SkillSyncParams {
394
+ namespace: string;
395
+ }
396
+
397
+ export interface SkillUploadParams {
398
+ /**
399
+ * Path param
400
+ */
401
+ namespace: string;
402
+
403
+ /**
404
+ * Body param: ZIP file upload containing a skill folder with SKILL.md and any
405
+ * scripts, references, or assets.
406
+ */
407
+ archive: Uploadable;
408
+ }
409
+
410
+ export declare namespace Skills {
411
+ export {
412
+ type SkillCreateResponse as SkillCreateResponse,
413
+ type SkillListResponse as SkillListResponse,
414
+ type SkillDeleteResponse as SkillDeleteResponse,
415
+ type SkillGetResponse as SkillGetResponse,
416
+ type SkillSetResponse as SkillSetResponse,
417
+ type SkillSyncResponse as SkillSyncResponse,
418
+ type SkillUploadResponse as SkillUploadResponse,
419
+ type SkillListResponsesSkillsPage as SkillListResponsesSkillsPage,
420
+ type SkillCreateParams as SkillCreateParams,
421
+ type SkillListParams as SkillListParams,
422
+ type SkillDeleteParams as SkillDeleteParams,
423
+ type SkillDownloadParams as SkillDownloadParams,
424
+ type SkillGetParams as SkillGetParams,
425
+ type SkillSetParams as SkillSetParams,
426
+ type SkillSyncParams as SkillSyncParams,
427
+ type SkillUploadParams as SkillUploadParams,
428
+ };
429
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.57.0'; // x-release-please-version
1
+ export const VERSION = '0.58.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.57.0";
1
+ export declare const VERSION = "0.58.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.57.0";
1
+ export declare const VERSION = "0.58.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.57.0'; // x-release-please-version
4
+ exports.VERSION = '0.58.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.57.0'; // x-release-please-version
1
+ export const VERSION = '0.58.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,4 +0,0 @@
1
- export { Reviews, type CreateReviewRequest, type CreateReviewResponse, type ReviewError, type ReviewItem, type ReviewVoteRequest, type ReviewVoteResponse, type ReviewsListResponse, type ReviewCreateParams, type ReviewListParams, type ReviewDeleteParams, type ReviewUnvoteParams, type ReviewVoteParams, type ReviewItemsReviewsPage, } from "./reviews.mjs";
2
- export { Skills, type SkillCreateResponse, type SkillListResponse, type SkillDeleteResponse, type SkillGetResponse, type SkillSetResponse, type SkillSyncResponse, type SkillUploadResponse, type SkillCreateParams, type SkillListParams, type SkillDeleteParams, type SkillDownloadParams, type SkillGetParams, type SkillSetParams, type SkillSyncParams, type SkillUploadParams, type SkillListResponsesSkillsPage, } from "./skills.mjs";
3
- export { Votes, type SkillVoteCounts, type SkillVoteError, type SkillVoteRequest, type SkillVoteResponse, type VoteCreateParams, type VoteDeleteParams, type VoteGetParams, } from "./votes.mjs";
4
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/skills/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,4BAA4B,GAClC;OACM,EACL,KAAK,EACL,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB"}
@@ -1,4 +0,0 @@
1
- export { Reviews, type CreateReviewRequest, type CreateReviewResponse, type ReviewError, type ReviewItem, type ReviewVoteRequest, type ReviewVoteResponse, type ReviewsListResponse, type ReviewCreateParams, type ReviewListParams, type ReviewDeleteParams, type ReviewUnvoteParams, type ReviewVoteParams, type ReviewItemsReviewsPage, } from "./reviews.js";
2
- export { Skills, type SkillCreateResponse, type SkillListResponse, type SkillDeleteResponse, type SkillGetResponse, type SkillSetResponse, type SkillSyncResponse, type SkillUploadResponse, type SkillCreateParams, type SkillListParams, type SkillDeleteParams, type SkillDownloadParams, type SkillGetParams, type SkillSetParams, type SkillSyncParams, type SkillUploadParams, type SkillListResponsesSkillsPage, } from "./skills.js";
3
- export { Votes, type SkillVoteCounts, type SkillVoteError, type SkillVoteRequest, type SkillVoteResponse, type VoteCreateParams, type VoteDeleteParams, type VoteGetParams, } from "./votes.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/skills/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,4BAA4B,GAClC;OACM,EACL,KAAK,EACL,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Votes = exports.Skills = exports.Reviews = void 0;
5
- var reviews_1 = require("./reviews.js");
6
- Object.defineProperty(exports, "Reviews", { enumerable: true, get: function () { return reviews_1.Reviews; } });
7
- var skills_1 = require("./skills.js");
8
- Object.defineProperty(exports, "Skills", { enumerable: true, get: function () { return skills_1.Skills; } });
9
- var votes_1 = require("./votes.js");
10
- Object.defineProperty(exports, "Votes", { enumerable: true, get: function () { return votes_1.Votes; } });
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/skills/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAemB;AAdjB,kGAAA,OAAO,OAAA;AAeT,sCAkBkB;AAjBhB,gGAAA,MAAM,OAAA;AAkBR,oCASiB;AARf,8FAAA,KAAK,OAAA"}
@@ -1,5 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Reviews, } from "./reviews.mjs";
3
- export { Skills, } from "./skills.mjs";
4
- export { Votes, } from "./votes.mjs";
5
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/skills/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAcR;OACM,EACL,MAAM,GAiBP;OACM,EACL,KAAK,GAQN"}
@@ -1,160 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import { APIPromise } from "../../core/api-promise.mjs";
3
- import { PagePromise, ReviewsPage, type ReviewsPageParams } from "../../core/pagination.mjs";
4
- import { RequestOptions } from "../../internal/request-options.mjs";
5
- /**
6
- * Discover and search reusable prompt-based skills for MCP servers
7
- */
8
- export declare class Reviews extends APIResource {
9
- /**
10
- * Deprecated (SMI-1505). Submit a review for a skill. Updates existing review if
11
- * one already exists.
12
- *
13
- * @deprecated
14
- */
15
- create(slug: string, params: ReviewCreateParams, options?: RequestOptions): APIPromise<CreateReviewResponse>;
16
- /**
17
- * Deprecated (SMI-1505). Get paginated list of reviews with vote counts.
18
- *
19
- * @deprecated
20
- */
21
- list(slug: string, params: ReviewListParams, options?: RequestOptions): PagePromise<ReviewItemsReviewsPage, ReviewItem>;
22
- /**
23
- * [Deprecated] Delete your review
24
- *
25
- * @deprecated
26
- */
27
- delete(slug: string, params: ReviewDeleteParams, options?: RequestOptions): APIPromise<void>;
28
- /**
29
- * [Deprecated] Remove vote from a review
30
- *
31
- * @deprecated
32
- */
33
- unvote(reviewID: string, params: ReviewUnvoteParams, options?: RequestOptions): APIPromise<void>;
34
- /**
35
- * Deprecated (SMI-1505). Upvote or downvote a review. Updates existing vote if one
36
- * exists.
37
- *
38
- * @deprecated
39
- */
40
- vote(reviewID: string, params: ReviewVoteParams, options?: RequestOptions): APIPromise<ReviewVoteResponse>;
41
- }
42
- export type ReviewItemsReviewsPage = ReviewsPage<ReviewItem>;
43
- export interface CreateReviewRequest {
44
- /**
45
- * Review text (required)
46
- */
47
- review: string;
48
- /**
49
- * Optional agent model name (e.g., 'claude-3.5-sonnet')
50
- */
51
- agentModel?: string;
52
- /**
53
- * Optional vote direction to submit with review
54
- */
55
- vote?: 'up' | 'down';
56
- }
57
- export interface CreateReviewResponse {
58
- /**
59
- * Review ID
60
- */
61
- id: string;
62
- /**
63
- * ISO 8601 timestamp
64
- */
65
- createdAt: string;
66
- review: string;
67
- /**
68
- * Vote direction if submitted with review
69
- */
70
- vote: 'up' | 'down' | null;
71
- }
72
- export interface ReviewError {
73
- error: string;
74
- }
75
- export interface ReviewItem {
76
- id: string;
77
- agentClient: string | null;
78
- agentModel: string | null;
79
- /**
80
- * ISO 8601 timestamp
81
- */
82
- createdAt: string;
83
- downvotes: number;
84
- review: string;
85
- upvotes: number;
86
- }
87
- export interface ReviewVoteRequest {
88
- /**
89
- * Vote direction
90
- */
91
- vote: 'up' | 'down';
92
- }
93
- export interface ReviewVoteResponse {
94
- createdAt: string;
95
- /**
96
- * Vote direction
97
- */
98
- vote: 'up' | 'down';
99
- }
100
- export interface ReviewsListResponse {
101
- pagination: ReviewsListResponse.Pagination;
102
- reviews: Array<ReviewItem>;
103
- }
104
- export declare namespace ReviewsListResponse {
105
- interface Pagination {
106
- currentPage: number;
107
- pageSize: number;
108
- totalCount: number;
109
- totalPages: number;
110
- }
111
- }
112
- export interface ReviewCreateParams {
113
- /**
114
- * Path param
115
- */
116
- namespace: string;
117
- /**
118
- * Body param: Review text (required)
119
- */
120
- review: string;
121
- /**
122
- * Body param: Optional agent model name (e.g., 'claude-3.5-sonnet')
123
- */
124
- agentModel?: string;
125
- /**
126
- * Body param: Optional vote direction to submit with review
127
- */
128
- vote?: 'up' | 'down';
129
- }
130
- export interface ReviewListParams extends ReviewsPageParams {
131
- /**
132
- * Path param
133
- */
134
- namespace: string;
135
- }
136
- export interface ReviewDeleteParams {
137
- namespace: string;
138
- }
139
- export interface ReviewUnvoteParams {
140
- namespace: string;
141
- slug: string;
142
- }
143
- export interface ReviewVoteParams {
144
- /**
145
- * Path param
146
- */
147
- namespace: string;
148
- /**
149
- * Path param
150
- */
151
- slug: string;
152
- /**
153
- * Body param: Vote direction
154
- */
155
- vote: 'up' | 'down';
156
- }
157
- export declare namespace Reviews {
158
- export { type CreateReviewRequest as CreateReviewRequest, type CreateReviewResponse as CreateReviewResponse, type ReviewError as ReviewError, type ReviewItem as ReviewItem, type ReviewVoteRequest as ReviewVoteRequest, type ReviewVoteResponse as ReviewVoteResponse, type ReviewsListResponse as ReviewsListResponse, type ReviewItemsReviewsPage as ReviewItemsReviewsPage, type ReviewCreateParams as ReviewCreateParams, type ReviewListParams as ReviewListParams, type ReviewDeleteParams as ReviewDeleteParams, type ReviewUnvoteParams as ReviewUnvoteParams, type ReviewVoteParams as ReviewVoteParams, };
159
- }
160
- //# sourceMappingURL=reviews.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reviews.d.mts","sourceRoot":"","sources":["../../src/resources/skills/reviews.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE;OAEpD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;OAKG;IACH,MAAM,CACJ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAKnC;;;;OAIG;IACH,IAAI,CACF,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sBAAsB,EAAE,UAAU,CAAC;IAQlD;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ5F;;;;OAIG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQhG;;;;;OAKG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAO3G;AAED,MAAM,MAAM,sBAAsB,GAAG,WAAW,C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