@smithery/api 0.55.0 → 0.56.1
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 +20 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.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 +2 -18
- package/resources/servers/releases.d.mts.map +1 -1
- package/resources/servers/releases.d.ts +2 -18
- package/resources/servers/releases.d.ts.map +1 -1
- package/resources/servers/servers.d.mts +2 -2
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +2 -2
- 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/index.d.mts +1 -1
- package/resources/skills/index.d.mts.map +1 -1
- package/resources/skills/index.d.ts +1 -1
- package/resources/skills/index.d.ts.map +1 -1
- package/resources/skills/index.js.map +1 -1
- package/resources/skills/index.mjs.map +1 -1
- package/resources/skills/reviews.d.mts +17 -5
- package/resources/skills/reviews.d.mts.map +1 -1
- package/resources/skills/reviews.d.ts +17 -5
- package/resources/skills/reviews.d.ts.map +1 -1
- package/resources/skills/reviews.js +17 -5
- package/resources/skills/reviews.js.map +1 -1
- package/resources/skills/reviews.mjs +17 -5
- package/resources/skills/reviews.mjs.map +1 -1
- package/resources/skills/skills.d.mts +37 -11
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts +37 -11
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +13 -7
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +13 -7
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/votes.d.mts +11 -3
- package/resources/skills/votes.d.mts.map +1 -1
- package/resources/skills/votes.d.ts +11 -3
- package/resources/skills/votes.d.ts.map +1 -1
- package/resources/skills/votes.js +11 -3
- package/resources/skills/votes.js.map +1 -1
- package/resources/skills/votes.mjs +11 -3
- package/resources/skills/votes.mjs.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/servers/index.ts +0 -1
- package/src/resources/servers/releases.ts +1 -28
- package/src/resources/servers/servers.ts +0 -2
- package/src/resources/skills/index.ts +2 -0
- package/src/resources/skills/reviews.ts +17 -5
- package/src/resources/skills/skills.ts +60 -12
- package/src/resources/skills/votes.ts +11 -3
- 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
|
@@ -12,7 +12,10 @@ import { path } from '../../internal/utils/path';
|
|
|
12
12
|
*/
|
|
13
13
|
export class Reviews extends APIResource {
|
|
14
14
|
/**
|
|
15
|
-
* Submit a review for a skill. Updates existing review if
|
|
15
|
+
* Deprecated (SMI-1505). Submit a review for a skill. Updates existing review if
|
|
16
|
+
* one already exists.
|
|
17
|
+
*
|
|
18
|
+
* @deprecated
|
|
16
19
|
*/
|
|
17
20
|
create(
|
|
18
21
|
slug: string,
|
|
@@ -24,7 +27,9 @@ export class Reviews extends APIResource {
|
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
/**
|
|
27
|
-
* Get paginated list of reviews with vote counts
|
|
30
|
+
* Deprecated (SMI-1505). Get paginated list of reviews with vote counts.
|
|
31
|
+
*
|
|
32
|
+
* @deprecated
|
|
28
33
|
*/
|
|
29
34
|
list(
|
|
30
35
|
slug: string,
|
|
@@ -39,7 +44,9 @@ export class Reviews extends APIResource {
|
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
/**
|
|
42
|
-
* Delete your review
|
|
47
|
+
* [Deprecated] Delete your review
|
|
48
|
+
*
|
|
49
|
+
* @deprecated
|
|
43
50
|
*/
|
|
44
51
|
delete(slug: string, params: ReviewDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
45
52
|
const { namespace } = params;
|
|
@@ -50,7 +57,9 @@ export class Reviews extends APIResource {
|
|
|
50
57
|
}
|
|
51
58
|
|
|
52
59
|
/**
|
|
53
|
-
* Remove vote from a review
|
|
60
|
+
* [Deprecated] Remove vote from a review
|
|
61
|
+
*
|
|
62
|
+
* @deprecated
|
|
54
63
|
*/
|
|
55
64
|
unvote(reviewID: string, params: ReviewUnvoteParams, options?: RequestOptions): APIPromise<void> {
|
|
56
65
|
const { namespace, slug } = params;
|
|
@@ -61,7 +70,10 @@ export class Reviews extends APIResource {
|
|
|
61
70
|
}
|
|
62
71
|
|
|
63
72
|
/**
|
|
64
|
-
* Upvote or downvote a review. Updates existing vote if one
|
|
73
|
+
* Deprecated (SMI-1505). Upvote or downvote a review. Updates existing vote if one
|
|
74
|
+
* exists.
|
|
75
|
+
*
|
|
76
|
+
* @deprecated
|
|
65
77
|
*/
|
|
66
78
|
vote(reviewID: string, params: ReviewVoteParams, options?: RequestOptions): APIPromise<ReviewVoteResponse> {
|
|
67
79
|
const { namespace, slug, ...body } = params;
|
|
@@ -31,8 +31,10 @@ import {
|
|
|
31
31
|
} from './votes';
|
|
32
32
|
import { APIPromise } from '../../core/api-promise';
|
|
33
33
|
import { PagePromise, SkillsPage, type SkillsPageParams } from '../../core/pagination';
|
|
34
|
+
import { type Uploadable } from '../../core/uploads';
|
|
34
35
|
import { buildHeaders } from '../../internal/headers';
|
|
35
36
|
import { RequestOptions } from '../../internal/request-options';
|
|
37
|
+
import { multipartFormRequestOptions } from '../../internal/uploads';
|
|
36
38
|
import { path } from '../../internal/utils/path';
|
|
37
39
|
|
|
38
40
|
/**
|
|
@@ -72,8 +74,7 @@ export class Skills extends APIResource {
|
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
/**
|
|
75
|
-
* Download a ZIP bundle containing all skill files
|
|
76
|
-
* endpoints.
|
|
77
|
+
* Download a ZIP bundle containing all skill files.
|
|
77
78
|
*/
|
|
78
79
|
download(slug: string, params: SkillDownloadParams, options?: RequestOptions): APIPromise<Response> {
|
|
79
80
|
const { namespace } = params;
|
|
@@ -93,13 +94,12 @@ export class Skills extends APIResource {
|
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
/**
|
|
96
|
-
* Idempotent endpoint to create or
|
|
97
|
-
*
|
|
98
|
-
* from GitHub.
|
|
97
|
+
* Idempotent endpoint to create or update a GitHub-backed skill. Send
|
|
98
|
+
* application/json with `gitUrl`.
|
|
99
99
|
*/
|
|
100
100
|
set(slug: string, params: SkillSetParams, options?: RequestOptions): APIPromise<SkillSetResponse> {
|
|
101
|
-
const { namespace,
|
|
102
|
-
return this._client.put(path`/skills/${namespace}/${slug}`, { body, ...options });
|
|
101
|
+
const { namespace, body } = params;
|
|
102
|
+
return this._client.put(path`/skills/${namespace}/${slug}`, { body: body, ...options });
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
/**
|
|
@@ -112,6 +112,17 @@ export class Skills extends APIResource {
|
|
|
112
112
|
const { namespace } = params;
|
|
113
113
|
return this._client.post(path`/skills/${namespace}/${slug}/sync`, options);
|
|
114
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
|
+
}
|
|
115
126
|
}
|
|
116
127
|
|
|
117
128
|
export type SkillListResponsesSkillsPage = SkillsPage<SkillListResponse>;
|
|
@@ -199,7 +210,7 @@ export interface SkillListResponse {
|
|
|
199
210
|
/**
|
|
200
211
|
* URL to the skill's source repository.
|
|
201
212
|
*/
|
|
202
|
-
gitUrl?: string;
|
|
213
|
+
gitUrl?: string | null;
|
|
203
214
|
|
|
204
215
|
/**
|
|
205
216
|
* Number of reviews for this skill.
|
|
@@ -250,7 +261,7 @@ export interface SkillGetResponse {
|
|
|
250
261
|
|
|
251
262
|
externalStars: number;
|
|
252
263
|
|
|
253
|
-
gitUrl: string;
|
|
264
|
+
gitUrl: string | null;
|
|
254
265
|
|
|
255
266
|
listed: boolean;
|
|
256
267
|
|
|
@@ -294,7 +305,7 @@ export interface SkillSetResponse {
|
|
|
294
305
|
|
|
295
306
|
externalStars: number;
|
|
296
307
|
|
|
297
|
-
gitUrl: string;
|
|
308
|
+
gitUrl: string | null;
|
|
298
309
|
|
|
299
310
|
listed: boolean;
|
|
300
311
|
|
|
@@ -323,6 +334,28 @@ export interface SkillSyncResponse {
|
|
|
323
334
|
updatedAt: string;
|
|
324
335
|
}
|
|
325
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
|
+
|
|
326
359
|
export interface SkillCreateParams {
|
|
327
360
|
/**
|
|
328
361
|
* GitHub URL pointing to a repository with SKILL.md
|
|
@@ -404,15 +437,28 @@ export interface SkillSetParams {
|
|
|
404
437
|
namespace: string;
|
|
405
438
|
|
|
406
439
|
/**
|
|
407
|
-
* Body param
|
|
440
|
+
* Body param
|
|
408
441
|
*/
|
|
409
|
-
|
|
442
|
+
body: unknown;
|
|
410
443
|
}
|
|
411
444
|
|
|
412
445
|
export interface SkillSyncParams {
|
|
413
446
|
namespace: string;
|
|
414
447
|
}
|
|
415
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
|
+
|
|
416
462
|
Skills.Votes = Votes;
|
|
417
463
|
Skills.Reviews = Reviews;
|
|
418
464
|
|
|
@@ -424,6 +470,7 @@ export declare namespace Skills {
|
|
|
424
470
|
type SkillGetResponse as SkillGetResponse,
|
|
425
471
|
type SkillSetResponse as SkillSetResponse,
|
|
426
472
|
type SkillSyncResponse as SkillSyncResponse,
|
|
473
|
+
type SkillUploadResponse as SkillUploadResponse,
|
|
427
474
|
type SkillListResponsesSkillsPage as SkillListResponsesSkillsPage,
|
|
428
475
|
type SkillCreateParams as SkillCreateParams,
|
|
429
476
|
type SkillListParams as SkillListParams,
|
|
@@ -432,6 +479,7 @@ export declare namespace Skills {
|
|
|
432
479
|
type SkillGetParams as SkillGetParams,
|
|
433
480
|
type SkillSetParams as SkillSetParams,
|
|
434
481
|
type SkillSyncParams as SkillSyncParams,
|
|
482
|
+
type SkillUploadParams as SkillUploadParams,
|
|
435
483
|
};
|
|
436
484
|
|
|
437
485
|
export {
|
|
@@ -11,7 +11,10 @@ import { path } from '../../internal/utils/path';
|
|
|
11
11
|
*/
|
|
12
12
|
export class Votes extends APIResource {
|
|
13
13
|
/**
|
|
14
|
-
* Upvote or downvote a skill. Updates existing vote if one
|
|
14
|
+
* Deprecated (SMI-1505). Upvote or downvote a skill. Updates existing vote if one
|
|
15
|
+
* exists.
|
|
16
|
+
*
|
|
17
|
+
* @deprecated
|
|
15
18
|
*/
|
|
16
19
|
create(slug: string, params: VoteCreateParams, options?: RequestOptions): APIPromise<SkillVoteResponse> {
|
|
17
20
|
const { namespace, ...body } = params;
|
|
@@ -19,7 +22,9 @@ export class Votes extends APIResource {
|
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
/**
|
|
22
|
-
* Remove vote from a skill
|
|
25
|
+
* [Deprecated] Remove vote from a skill
|
|
26
|
+
*
|
|
27
|
+
* @deprecated
|
|
23
28
|
*/
|
|
24
29
|
delete(slug: string, params: VoteDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
25
30
|
const { namespace } = params;
|
|
@@ -30,7 +35,10 @@ export class Votes extends APIResource {
|
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
/**
|
|
33
|
-
* Get upvote/downvote counts and current user's vote (if
|
|
38
|
+
* Deprecated (SMI-1505). Get upvote/downvote counts and current user's vote (if
|
|
39
|
+
* authenticated).
|
|
40
|
+
*
|
|
41
|
+
* @deprecated
|
|
34
42
|
*/
|
|
35
43
|
get(slug: string, params: VoteGetParams, options?: RequestOptions): APIPromise<SkillVoteCounts> {
|
|
36
44
|
const { namespace } = params;
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.56.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.56.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.56.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.56.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|