@smithery/api 0.34.0 → 0.35.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 +24 -0
- package/client.d.mts +11 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -7
- package/client.d.ts.map +1 -1
- package/client.js +4 -3
- package/client.js.map +1 -1
- package/client.mjs +4 -3
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +46 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +46 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +45 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +42 -0
- package/core/pagination.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/experimental/agents/agents.d.mts +84 -89
- package/resources/experimental/agents/agents.d.mts.map +1 -1
- package/resources/experimental/agents/agents.d.ts +84 -89
- package/resources/experimental/agents/agents.d.ts.map +1 -1
- package/resources/experimental/agents/agents.js.map +1 -1
- package/resources/experimental/agents/agents.mjs.map +1 -1
- package/resources/experimental/agents/index.d.mts +1 -1
- package/resources/experimental/agents/index.d.mts.map +1 -1
- package/resources/experimental/agents/index.d.ts +1 -1
- package/resources/experimental/agents/index.d.ts.map +1 -1
- package/resources/experimental/agents/index.js.map +1 -1
- package/resources/experimental/agents/index.mjs +1 -1
- package/resources/experimental/agents/index.mjs.map +1 -1
- package/resources/experimental/agents/responses.d.mts +1 -31
- package/resources/experimental/agents/responses.d.mts.map +1 -1
- package/resources/experimental/agents/responses.d.ts +1 -31
- package/resources/experimental/agents/responses.d.ts.map +1 -1
- package/resources/experimental/connect/connections.d.mts +4 -2
- package/resources/experimental/connect/connections.d.mts.map +1 -1
- package/resources/experimental/connect/connections.d.ts +4 -2
- package/resources/experimental/connect/connections.d.ts.map +1 -1
- package/resources/experimental/connect/connections.js +4 -2
- package/resources/experimental/connect/connections.js.map +1 -1
- package/resources/experimental/connect/connections.mjs +4 -2
- package/resources/experimental/connect/connections.mjs.map +1 -1
- package/resources/experimental/experimental.d.mts +2 -2
- package/resources/experimental/experimental.d.mts.map +1 -1
- package/resources/experimental/experimental.d.ts +2 -2
- package/resources/experimental/experimental.d.ts.map +1 -1
- package/resources/experimental/experimental.js.map +1 -1
- package/resources/experimental/experimental.mjs +1 -1
- package/resources/experimental/experimental.mjs.map +1 -1
- package/resources/experimental/index.d.mts +1 -1
- package/resources/experimental/index.d.mts.map +1 -1
- package/resources/experimental/index.d.ts +1 -1
- package/resources/experimental/index.d.ts.map +1 -1
- package/resources/experimental/index.js.map +1 -1
- package/resources/experimental/index.mjs +1 -1
- package/resources/experimental/index.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/namespaces/index.d.mts +1 -1
- package/resources/namespaces/index.d.mts.map +1 -1
- package/resources/namespaces/index.d.ts +1 -1
- package/resources/namespaces/index.d.ts.map +1 -1
- package/resources/namespaces/index.js.map +1 -1
- package/resources/namespaces/index.mjs.map +1 -1
- package/resources/namespaces/namespaces.d.mts +35 -11
- package/resources/namespaces/namespaces.d.mts.map +1 -1
- package/resources/namespaces/namespaces.d.ts +35 -11
- package/resources/namespaces/namespaces.d.ts.map +1 -1
- package/resources/namespaces/namespaces.js +14 -4
- package/resources/namespaces/namespaces.js.map +1 -1
- package/resources/namespaces/namespaces.mjs +14 -4
- package/resources/namespaces/namespaces.mjs.map +1 -1
- package/resources/namespaces/servers.d.mts +3 -8
- package/resources/namespaces/servers.d.mts.map +1 -1
- package/resources/namespaces/servers.d.ts +3 -8
- package/resources/namespaces/servers.d.ts.map +1 -1
- package/resources/namespaces/servers.js +3 -8
- package/resources/namespaces/servers.js.map +1 -1
- package/resources/namespaces/servers.mjs +3 -8
- package/resources/namespaces/servers.mjs.map +1 -1
- package/resources/servers/deployments.d.mts +204 -6
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +204 -6
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +14 -6
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +14 -6
- package/resources/servers/deployments.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/servers.d.mts +135 -2
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +135 -2
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +33 -1
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +33 -1
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/skills/index.d.mts +3 -0
- package/resources/skills/index.d.mts.map +1 -0
- package/resources/skills/index.d.ts +3 -0
- package/resources/skills/index.d.ts.map +1 -0
- package/resources/skills/index.js +9 -0
- package/resources/skills/index.js.map +1 -0
- package/resources/skills/index.mjs +4 -0
- package/resources/skills/index.mjs.map +1 -0
- package/resources/skills/reviews.d.mts +123 -0
- package/resources/skills/reviews.d.mts.map +1 -0
- package/resources/skills/reviews.d.ts +123 -0
- package/resources/skills/reviews.d.ts.map +1 -0
- package/resources/skills/reviews.js +40 -0
- package/resources/skills/reviews.js.map +1 -0
- package/resources/skills/reviews.mjs +36 -0
- package/resources/skills/reviews.mjs.map +1 -0
- package/resources/skills/skills.d.mts +135 -0
- package/resources/skills/skills.d.mts.map +1 -0
- package/resources/skills/skills.d.ts +135 -0
- package/resources/skills/skills.d.ts.map +1 -0
- package/resources/skills/skills.js +33 -0
- package/resources/skills/skills.js.map +1 -0
- package/resources/skills/skills.mjs +28 -0
- package/resources/skills/skills.mjs.map +1 -0
- package/resources/skills.d.mts +1 -39
- package/resources/skills.d.mts.map +1 -1
- package/resources/skills.d.ts +1 -39
- package/resources/skills.d.ts.map +1 -1
- package/resources/skills.js +2 -13
- package/resources/skills.js.map +1 -1
- package/resources/skills.mjs +1 -11
- package/resources/skills.mjs.map +1 -1
- package/resources/tokens.d.mts +5 -1
- package/resources/tokens.d.mts.map +1 -1
- package/resources/tokens.d.ts +5 -1
- package/resources/tokens.d.ts.map +1 -1
- package/src/client.ts +38 -3
- package/src/core/pagination.ts +118 -0
- package/src/internal/parse.ts +6 -0
- package/src/resources/experimental/agents/agents.ts +111 -106
- package/src/resources/experimental/agents/index.ts +17 -1
- package/src/resources/experimental/agents/responses.ts +1 -44
- package/src/resources/experimental/connect/connections.ts +4 -2
- package/src/resources/experimental/experimental.ts +28 -1
- package/src/resources/experimental/index.ts +17 -1
- package/src/resources/index.ts +9 -1
- package/src/resources/namespaces/index.ts +2 -0
- package/src/resources/namespaces/namespaces.ts +49 -13
- package/src/resources/namespaces/servers.ts +3 -8
- package/src/resources/servers/deployments.ts +204 -6
- package/src/resources/servers/index.ts +4 -0
- package/src/resources/servers/servers.ts +170 -1
- package/src/resources/skills/index.ts +21 -0
- package/src/resources/skills/reviews.ts +191 -0
- package/src/resources/skills/skills.ts +219 -0
- package/src/resources/skills.ts +1 -72
- package/src/resources/tokens.ts +5 -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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/skills/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GASR;OACM,EACL,MAAM,GAMP"}
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
export declare class Reviews extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Submit a review for a skill after using it. Updates existing review if one
|
|
8
|
+
* already exists.
|
|
9
|
+
*/
|
|
10
|
+
create(slug: string, params: ReviewCreateParams, options?: RequestOptions): APIPromise<CreateReviewResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Get paginated list of reviews for a skill with summary statistics
|
|
13
|
+
*/
|
|
14
|
+
list(slug: string, params: ReviewListParams, options?: RequestOptions): PagePromise<ReviewItemsReviewsPage, ReviewItem>;
|
|
15
|
+
/**
|
|
16
|
+
* Delete your own review for a skill
|
|
17
|
+
*/
|
|
18
|
+
delete(slug: string, params: ReviewDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
19
|
+
}
|
|
20
|
+
export type ReviewItemsReviewsPage = ReviewsPage<ReviewItem>;
|
|
21
|
+
export interface CreateReviewRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Rating from 1 to 5 stars
|
|
24
|
+
*/
|
|
25
|
+
rating: number;
|
|
26
|
+
/**
|
|
27
|
+
* Optional agent model name (e.g., 'claude-3.5-sonnet')
|
|
28
|
+
*/
|
|
29
|
+
agentModel?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional review comment
|
|
32
|
+
*/
|
|
33
|
+
comment?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface CreateReviewResponse {
|
|
36
|
+
/**
|
|
37
|
+
* Review ID
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
comment: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* ISO 8601 timestamp
|
|
43
|
+
*/
|
|
44
|
+
createdAt: string;
|
|
45
|
+
rating: number;
|
|
46
|
+
}
|
|
47
|
+
export interface ReviewItem {
|
|
48
|
+
id: string;
|
|
49
|
+
agentClient: string | null;
|
|
50
|
+
agentModel: string | null;
|
|
51
|
+
comment: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* ISO 8601 timestamp
|
|
54
|
+
*/
|
|
55
|
+
createdAt: string;
|
|
56
|
+
rating: number;
|
|
57
|
+
}
|
|
58
|
+
export interface ReviewsListResponse {
|
|
59
|
+
pagination: ReviewsListResponse.Pagination;
|
|
60
|
+
reviews: Array<ReviewItem>;
|
|
61
|
+
summary: ReviewsListResponse.Summary;
|
|
62
|
+
}
|
|
63
|
+
export declare namespace ReviewsListResponse {
|
|
64
|
+
interface Pagination {
|
|
65
|
+
/**
|
|
66
|
+
* Current page number (1-indexed)
|
|
67
|
+
*/
|
|
68
|
+
currentPage: number;
|
|
69
|
+
/**
|
|
70
|
+
* Number of results per page
|
|
71
|
+
*/
|
|
72
|
+
pageSize: number;
|
|
73
|
+
/**
|
|
74
|
+
* Total number of matching reviews
|
|
75
|
+
*/
|
|
76
|
+
totalCount: number;
|
|
77
|
+
/**
|
|
78
|
+
* Total number of pages available
|
|
79
|
+
*/
|
|
80
|
+
totalPages: number;
|
|
81
|
+
}
|
|
82
|
+
interface Summary {
|
|
83
|
+
/**
|
|
84
|
+
* Average rating across all reviews
|
|
85
|
+
*/
|
|
86
|
+
averageRating: number;
|
|
87
|
+
/**
|
|
88
|
+
* Total number of reviews
|
|
89
|
+
*/
|
|
90
|
+
totalReviews: number;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export interface ReviewCreateParams {
|
|
94
|
+
/**
|
|
95
|
+
* Path param
|
|
96
|
+
*/
|
|
97
|
+
namespace: string;
|
|
98
|
+
/**
|
|
99
|
+
* Body param: Rating from 1 to 5 stars
|
|
100
|
+
*/
|
|
101
|
+
rating: number;
|
|
102
|
+
/**
|
|
103
|
+
* Body param: Optional agent model name (e.g., 'claude-3.5-sonnet')
|
|
104
|
+
*/
|
|
105
|
+
agentModel?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Body param: Optional review comment
|
|
108
|
+
*/
|
|
109
|
+
comment?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface ReviewListParams extends ReviewsPageParams {
|
|
112
|
+
/**
|
|
113
|
+
* Path param
|
|
114
|
+
*/
|
|
115
|
+
namespace: string;
|
|
116
|
+
}
|
|
117
|
+
export interface ReviewDeleteParams {
|
|
118
|
+
namespace: string;
|
|
119
|
+
}
|
|
120
|
+
export declare namespace Reviews {
|
|
121
|
+
export { type CreateReviewRequest as CreateReviewRequest, type CreateReviewResponse as CreateReviewResponse, type ReviewItem as ReviewItem, type ReviewsListResponse as ReviewsListResponse, type ReviewItemsReviewsPage as ReviewItemsReviewsPage, type ReviewCreateParams as ReviewCreateParams, type ReviewListParams as ReviewListParams, type ReviewDeleteParams as ReviewDeleteParams, };
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=reviews.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAKnC;;OAEG;IACH,IAAI,CACF,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sBAAsB,EAAE,UAAU,CAAC;IAQlD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,MA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,CAAC;QAEtB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { PagePromise, ReviewsPage, type ReviewsPageParams } from "../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Reviews extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Submit a review for a skill after using it. Updates existing review if one
|
|
8
|
+
* already exists.
|
|
9
|
+
*/
|
|
10
|
+
create(slug: string, params: ReviewCreateParams, options?: RequestOptions): APIPromise<CreateReviewResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Get paginated list of reviews for a skill with summary statistics
|
|
13
|
+
*/
|
|
14
|
+
list(slug: string, params: ReviewListParams, options?: RequestOptions): PagePromise<ReviewItemsReviewsPage, ReviewItem>;
|
|
15
|
+
/**
|
|
16
|
+
* Delete your own review for a skill
|
|
17
|
+
*/
|
|
18
|
+
delete(slug: string, params: ReviewDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
19
|
+
}
|
|
20
|
+
export type ReviewItemsReviewsPage = ReviewsPage<ReviewItem>;
|
|
21
|
+
export interface CreateReviewRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Rating from 1 to 5 stars
|
|
24
|
+
*/
|
|
25
|
+
rating: number;
|
|
26
|
+
/**
|
|
27
|
+
* Optional agent model name (e.g., 'claude-3.5-sonnet')
|
|
28
|
+
*/
|
|
29
|
+
agentModel?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional review comment
|
|
32
|
+
*/
|
|
33
|
+
comment?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface CreateReviewResponse {
|
|
36
|
+
/**
|
|
37
|
+
* Review ID
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
comment: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* ISO 8601 timestamp
|
|
43
|
+
*/
|
|
44
|
+
createdAt: string;
|
|
45
|
+
rating: number;
|
|
46
|
+
}
|
|
47
|
+
export interface ReviewItem {
|
|
48
|
+
id: string;
|
|
49
|
+
agentClient: string | null;
|
|
50
|
+
agentModel: string | null;
|
|
51
|
+
comment: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* ISO 8601 timestamp
|
|
54
|
+
*/
|
|
55
|
+
createdAt: string;
|
|
56
|
+
rating: number;
|
|
57
|
+
}
|
|
58
|
+
export interface ReviewsListResponse {
|
|
59
|
+
pagination: ReviewsListResponse.Pagination;
|
|
60
|
+
reviews: Array<ReviewItem>;
|
|
61
|
+
summary: ReviewsListResponse.Summary;
|
|
62
|
+
}
|
|
63
|
+
export declare namespace ReviewsListResponse {
|
|
64
|
+
interface Pagination {
|
|
65
|
+
/**
|
|
66
|
+
* Current page number (1-indexed)
|
|
67
|
+
*/
|
|
68
|
+
currentPage: number;
|
|
69
|
+
/**
|
|
70
|
+
* Number of results per page
|
|
71
|
+
*/
|
|
72
|
+
pageSize: number;
|
|
73
|
+
/**
|
|
74
|
+
* Total number of matching reviews
|
|
75
|
+
*/
|
|
76
|
+
totalCount: number;
|
|
77
|
+
/**
|
|
78
|
+
* Total number of pages available
|
|
79
|
+
*/
|
|
80
|
+
totalPages: number;
|
|
81
|
+
}
|
|
82
|
+
interface Summary {
|
|
83
|
+
/**
|
|
84
|
+
* Average rating across all reviews
|
|
85
|
+
*/
|
|
86
|
+
averageRating: number;
|
|
87
|
+
/**
|
|
88
|
+
* Total number of reviews
|
|
89
|
+
*/
|
|
90
|
+
totalReviews: number;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export interface ReviewCreateParams {
|
|
94
|
+
/**
|
|
95
|
+
* Path param
|
|
96
|
+
*/
|
|
97
|
+
namespace: string;
|
|
98
|
+
/**
|
|
99
|
+
* Body param: Rating from 1 to 5 stars
|
|
100
|
+
*/
|
|
101
|
+
rating: number;
|
|
102
|
+
/**
|
|
103
|
+
* Body param: Optional agent model name (e.g., 'claude-3.5-sonnet')
|
|
104
|
+
*/
|
|
105
|
+
agentModel?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Body param: Optional review comment
|
|
108
|
+
*/
|
|
109
|
+
comment?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface ReviewListParams extends ReviewsPageParams {
|
|
112
|
+
/**
|
|
113
|
+
* Path param
|
|
114
|
+
*/
|
|
115
|
+
namespace: string;
|
|
116
|
+
}
|
|
117
|
+
export interface ReviewDeleteParams {
|
|
118
|
+
namespace: string;
|
|
119
|
+
}
|
|
120
|
+
export declare namespace Reviews {
|
|
121
|
+
export { type CreateReviewRequest as CreateReviewRequest, type CreateReviewResponse as CreateReviewResponse, type ReviewItem as ReviewItem, type ReviewsListResponse as ReviewsListResponse, type ReviewItemsReviewsPage as ReviewItemsReviewsPage, type ReviewCreateParams as ReviewCreateParams, type ReviewListParams as ReviewListParams, type ReviewDeleteParams as ReviewDeleteParams, };
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=reviews.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reviews.d.ts","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,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAKnC;;OAEG;IACH,IAAI,CACF,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sBAAsB,EAAE,UAAU,CAAC;IAQlD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO7F;AAED,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAE7D,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,SAAS,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AC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.Reviews = 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 path_1 = require("../../internal/utils/path.js");
|
|
9
|
+
class Reviews extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Submit a review for a skill after using it. Updates existing review if one
|
|
12
|
+
* already exists.
|
|
13
|
+
*/
|
|
14
|
+
create(slug, params, options) {
|
|
15
|
+
const { namespace, ...body } = params;
|
|
16
|
+
return this._client.post((0, path_1.path) `/skills/${namespace}/${slug}/reviews`, { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get paginated list of reviews for a skill with summary statistics
|
|
20
|
+
*/
|
|
21
|
+
list(slug, params, options) {
|
|
22
|
+
const { namespace, ...query } = params;
|
|
23
|
+
return this._client.getAPIList((0, path_1.path) `/skills/${namespace}/${slug}/reviews`, (pagination_1.ReviewsPage), {
|
|
24
|
+
query,
|
|
25
|
+
...options,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Delete your own review for a skill
|
|
30
|
+
*/
|
|
31
|
+
delete(slug, params, options) {
|
|
32
|
+
const { namespace } = params;
|
|
33
|
+
return this._client.delete((0, path_1.path) `/skills/${namespace}/${slug}/reviews`, {
|
|
34
|
+
...options,
|
|
35
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.Reviews = Reviews;
|
|
40
|
+
//# sourceMappingURL=reviews.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reviews.js","sourceRoot":"","sources":["../../src/resources/skills/reviews.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAyF;AACzF,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,MAAM,CACJ,IAAY,EACZ,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,WAAW,SAAS,IAAI,IAAI,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,IAAI,CACF,IAAY,EACZ,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,WAAW,SAAS,IAAI,IAAI,UAAU,EAAE,CAAA,wBAAuB,CAAA,EAAE;YAClG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAY,EAAE,MAA0B,EAAE,OAAwB;QACvE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,SAAS,IAAI,IAAI,UAAU,EAAE;YACrE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAvCD,0BAuCC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { ReviewsPage } from "../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
6
|
+
export class Reviews extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Submit a review for a skill after using it. Updates existing review if one
|
|
9
|
+
* already exists.
|
|
10
|
+
*/
|
|
11
|
+
create(slug, params, options) {
|
|
12
|
+
const { namespace, ...body } = params;
|
|
13
|
+
return this._client.post(path `/skills/${namespace}/${slug}/reviews`, { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get paginated list of reviews for a skill with summary statistics
|
|
17
|
+
*/
|
|
18
|
+
list(slug, params, options) {
|
|
19
|
+
const { namespace, ...query } = params;
|
|
20
|
+
return this._client.getAPIList(path `/skills/${namespace}/${slug}/reviews`, (ReviewsPage), {
|
|
21
|
+
query,
|
|
22
|
+
...options,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Delete your own review for a skill
|
|
27
|
+
*/
|
|
28
|
+
delete(slug, params, options) {
|
|
29
|
+
const { namespace } = params;
|
|
30
|
+
return this._client.delete(path `/skills/${namespace}/${slug}/reviews`, {
|
|
31
|
+
...options,
|
|
32
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
33
|
+
});
|
|
34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C,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as ReviewsAPI from "./reviews.mjs";
|
|
3
|
+
import { CreateReviewRequest, CreateReviewResponse, ReviewCreateParams, ReviewDeleteParams, ReviewItem, ReviewItemsReviewsPage, ReviewListParams, Reviews, ReviewsListResponse } from "./reviews.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { PagePromise, SkillsPage, type SkillsPageParams } from "../../core/pagination.mjs";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
|
+
export declare class Skills extends APIResource {
|
|
8
|
+
reviews: ReviewsAPI.Reviews;
|
|
9
|
+
/**
|
|
10
|
+
* Search and browse reusable prompt-based skills. Supports full-text and semantic
|
|
11
|
+
* search via the `q` parameter, and filtering by category, namespace, or slug.
|
|
12
|
+
*/
|
|
13
|
+
list(query?: SkillListParams | null | undefined, options?: RequestOptions): PagePromise<SkillListResponsesSkillsPage, SkillListResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Get a single skill by its namespace and slug.
|
|
16
|
+
*/
|
|
17
|
+
get(slug: string, params: SkillGetParams, options?: RequestOptions): APIPromise<SkillGetResponse>;
|
|
18
|
+
}
|
|
19
|
+
export type SkillListResponsesSkillsPage = SkillsPage<SkillListResponse>;
|
|
20
|
+
export interface SkillListResponse {
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* ISO 8601 timestamp of when the skill was created.
|
|
24
|
+
*/
|
|
25
|
+
createdAt: string;
|
|
26
|
+
description: string;
|
|
27
|
+
displayName: string;
|
|
28
|
+
/**
|
|
29
|
+
* Whether this skill is publicly listed in the registry.
|
|
30
|
+
*/
|
|
31
|
+
listed: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Namespace that owns this skill.
|
|
34
|
+
*/
|
|
35
|
+
namespace: string;
|
|
36
|
+
/**
|
|
37
|
+
* The prompt template for this skill, or null if not publicly visible.
|
|
38
|
+
*/
|
|
39
|
+
prompt: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Computed quality score from 0 to 1.
|
|
42
|
+
*/
|
|
43
|
+
qualityScore: number;
|
|
44
|
+
/**
|
|
45
|
+
* URL-friendly short name within the namespace.
|
|
46
|
+
*/
|
|
47
|
+
slug: string;
|
|
48
|
+
/**
|
|
49
|
+
* List of categories this skill belongs to.
|
|
50
|
+
*/
|
|
51
|
+
categories?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* GitHub fork count of the source repository, if applicable.
|
|
54
|
+
*/
|
|
55
|
+
externalForks?: number;
|
|
56
|
+
/**
|
|
57
|
+
* GitHub star count of the source repository, if applicable.
|
|
58
|
+
*/
|
|
59
|
+
externalStars?: number;
|
|
60
|
+
/**
|
|
61
|
+
* URL to the skill's source repository.
|
|
62
|
+
*/
|
|
63
|
+
gitUrl?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Qualified names of MCP servers this skill depends on.
|
|
66
|
+
*/
|
|
67
|
+
servers?: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Total number of times this skill has been activated.
|
|
70
|
+
*/
|
|
71
|
+
totalActivations?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Number of distinct users who have activated this skill.
|
|
74
|
+
*/
|
|
75
|
+
uniqueUsers?: number;
|
|
76
|
+
}
|
|
77
|
+
export interface SkillGetResponse {
|
|
78
|
+
id: string;
|
|
79
|
+
categories: Array<string>;
|
|
80
|
+
createdAt: string;
|
|
81
|
+
description: string;
|
|
82
|
+
displayName: string;
|
|
83
|
+
externalForks: number;
|
|
84
|
+
externalStars: number;
|
|
85
|
+
gitUrl: string;
|
|
86
|
+
listed: boolean;
|
|
87
|
+
namespace: string;
|
|
88
|
+
prompt: string;
|
|
89
|
+
qualityScore: number;
|
|
90
|
+
servers: Array<string>;
|
|
91
|
+
slug: string;
|
|
92
|
+
totalActivations: number;
|
|
93
|
+
uniqueUsers: number;
|
|
94
|
+
}
|
|
95
|
+
export interface SkillListParams extends SkillsPageParams {
|
|
96
|
+
/**
|
|
97
|
+
* Filter by skill category (e.g. 'code', 'data', 'web').
|
|
98
|
+
*/
|
|
99
|
+
category?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Comma-separated list of fields to include in response
|
|
102
|
+
*/
|
|
103
|
+
fields?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Filter by the namespace that owns the skill.
|
|
106
|
+
*/
|
|
107
|
+
namespace?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Filter by the skill owner's user ID.
|
|
110
|
+
*/
|
|
111
|
+
ownerId?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Search query for full-text and semantic search across skill names and
|
|
114
|
+
* descriptions.
|
|
115
|
+
*/
|
|
116
|
+
q?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Filter by exact skill slug within a namespace. Deprecated: use GET
|
|
119
|
+
* /skills/:namespace/:slug instead.
|
|
120
|
+
*/
|
|
121
|
+
slug?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Maximum number of candidate results to consider from the search index before
|
|
124
|
+
* pagination.
|
|
125
|
+
*/
|
|
126
|
+
topK?: number;
|
|
127
|
+
}
|
|
128
|
+
export interface SkillGetParams {
|
|
129
|
+
namespace: string;
|
|
130
|
+
}
|
|
131
|
+
export declare namespace Skills {
|
|
132
|
+
export { type SkillListResponse as SkillListResponse, type SkillGetResponse as SkillGetResponse, type SkillListResponsesSkillsPage as SkillListResponsesSkillsPage, type SkillListParams as SkillListParams, type SkillGetParams as SkillGetParams, };
|
|
133
|
+
export { Reviews as Reviews, type CreateReviewRequest as CreateReviewRequest, type CreateReviewResponse as CreateReviewResponse, type ReviewItem as ReviewItem, type ReviewsListResponse as ReviewsListResponse, type ReviewItemsReviewsPage as ReviewItemsReviewsPage, type ReviewCreateParams as ReviewCreateParams, type ReviewListParams as ReviewListParams, type ReviewDeleteParams as ReviewDeleteParams, };
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=skills.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.d.mts","sourceRoot":"","sources":["../../src/resources/skills/skills.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,sBAAsB,EACtB,gBAAgB,EAChB,OAAO,EACP,mBAAmB,EACpB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;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,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAIlG;AAED,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;AAEzE,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAE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IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;CACnB;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as ReviewsAPI from "./reviews.js";
|
|
3
|
+
import { CreateReviewRequest, CreateReviewResponse, ReviewCreateParams, ReviewDeleteParams, ReviewItem, ReviewItemsReviewsPage, ReviewListParams, Reviews, ReviewsListResponse } from "./reviews.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { PagePromise, SkillsPage, type SkillsPageParams } from "../../core/pagination.js";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
|
+
export declare class Skills extends APIResource {
|
|
8
|
+
reviews: ReviewsAPI.Reviews;
|
|
9
|
+
/**
|
|
10
|
+
* Search and browse reusable prompt-based skills. Supports full-text and semantic
|
|
11
|
+
* search via the `q` parameter, and filtering by category, namespace, or slug.
|
|
12
|
+
*/
|
|
13
|
+
list(query?: SkillListParams | null | undefined, options?: RequestOptions): PagePromise<SkillListResponsesSkillsPage, SkillListResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Get a single skill by its namespace and slug.
|
|
16
|
+
*/
|
|
17
|
+
get(slug: string, params: SkillGetParams, options?: RequestOptions): APIPromise<SkillGetResponse>;
|
|
18
|
+
}
|
|
19
|
+
export type SkillListResponsesSkillsPage = SkillsPage<SkillListResponse>;
|
|
20
|
+
export interface SkillListResponse {
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* ISO 8601 timestamp of when the skill was created.
|
|
24
|
+
*/
|
|
25
|
+
createdAt: string;
|
|
26
|
+
description: string;
|
|
27
|
+
displayName: string;
|
|
28
|
+
/**
|
|
29
|
+
* Whether this skill is publicly listed in the registry.
|
|
30
|
+
*/
|
|
31
|
+
listed: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Namespace that owns this skill.
|
|
34
|
+
*/
|
|
35
|
+
namespace: string;
|
|
36
|
+
/**
|
|
37
|
+
* The prompt template for this skill, or null if not publicly visible.
|
|
38
|
+
*/
|
|
39
|
+
prompt: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Computed quality score from 0 to 1.
|
|
42
|
+
*/
|
|
43
|
+
qualityScore: number;
|
|
44
|
+
/**
|
|
45
|
+
* URL-friendly short name within the namespace.
|
|
46
|
+
*/
|
|
47
|
+
slug: string;
|
|
48
|
+
/**
|
|
49
|
+
* List of categories this skill belongs to.
|
|
50
|
+
*/
|
|
51
|
+
categories?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* GitHub fork count of the source repository, if applicable.
|
|
54
|
+
*/
|
|
55
|
+
externalForks?: number;
|
|
56
|
+
/**
|
|
57
|
+
* GitHub star count of the source repository, if applicable.
|
|
58
|
+
*/
|
|
59
|
+
externalStars?: number;
|
|
60
|
+
/**
|
|
61
|
+
* URL to the skill's source repository.
|
|
62
|
+
*/
|
|
63
|
+
gitUrl?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Qualified names of MCP servers this skill depends on.
|
|
66
|
+
*/
|
|
67
|
+
servers?: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Total number of times this skill has been activated.
|
|
70
|
+
*/
|
|
71
|
+
totalActivations?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Number of distinct users who have activated this skill.
|
|
74
|
+
*/
|
|
75
|
+
uniqueUsers?: number;
|
|
76
|
+
}
|
|
77
|
+
export interface SkillGetResponse {
|
|
78
|
+
id: string;
|
|
79
|
+
categories: Array<string>;
|
|
80
|
+
createdAt: string;
|
|
81
|
+
description: string;
|
|
82
|
+
displayName: string;
|
|
83
|
+
externalForks: number;
|
|
84
|
+
externalStars: number;
|
|
85
|
+
gitUrl: string;
|
|
86
|
+
listed: boolean;
|
|
87
|
+
namespace: string;
|
|
88
|
+
prompt: string;
|
|
89
|
+
qualityScore: number;
|
|
90
|
+
servers: Array<string>;
|
|
91
|
+
slug: string;
|
|
92
|
+
totalActivations: number;
|
|
93
|
+
uniqueUsers: number;
|
|
94
|
+
}
|
|
95
|
+
export interface SkillListParams extends SkillsPageParams {
|
|
96
|
+
/**
|
|
97
|
+
* Filter by skill category (e.g. 'code', 'data', 'web').
|
|
98
|
+
*/
|
|
99
|
+
category?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Comma-separated list of fields to include in response
|
|
102
|
+
*/
|
|
103
|
+
fields?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Filter by the namespace that owns the skill.
|
|
106
|
+
*/
|
|
107
|
+
namespace?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Filter by the skill owner's user ID.
|
|
110
|
+
*/
|
|
111
|
+
ownerId?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Search query for full-text and semantic search across skill names and
|
|
114
|
+
* descriptions.
|
|
115
|
+
*/
|
|
116
|
+
q?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Filter by exact skill slug within a namespace. Deprecated: use GET
|
|
119
|
+
* /skills/:namespace/:slug instead.
|
|
120
|
+
*/
|
|
121
|
+
slug?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Maximum number of candidate results to consider from the search index before
|
|
124
|
+
* pagination.
|
|
125
|
+
*/
|
|
126
|
+
topK?: number;
|
|
127
|
+
}
|
|
128
|
+
export interface SkillGetParams {
|
|
129
|
+
namespace: string;
|
|
130
|
+
}
|
|
131
|
+
export declare namespace Skills {
|
|
132
|
+
export { type SkillListResponse as SkillListResponse, type SkillGetResponse as SkillGetResponse, type SkillListResponsesSkillsPage as SkillListResponsesSkillsPage, type SkillListParams as SkillListParams, type SkillGetParams as SkillGetParams, };
|
|
133
|
+
export { Reviews as Reviews, type CreateReviewRequest as CreateReviewRequest, type CreateReviewResponse as CreateReviewResponse, type ReviewItem as ReviewItem, type ReviewsListResponse as ReviewsListResponse, type ReviewItemsReviewsPage as ReviewItemsReviewsPage, type ReviewCreateParams as ReviewCreateParams, type ReviewListParams as ReviewListParams, type ReviewDeleteParams as ReviewDeleteParams, };
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=skills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/resources/skills/skills.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,sBAAsB,EACtB,gBAAgB,EAChB,OAAO,EACP,mBAAmB,EACpB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;O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BAAoB,EACjD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.Skills = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const ReviewsAPI = tslib_1.__importStar(require("./reviews.js"));
|
|
8
|
+
const reviews_1 = require("./reviews.js");
|
|
9
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
10
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
11
|
+
class Skills extends resource_1.APIResource {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.reviews = new ReviewsAPI.Reviews(this._client);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Search and browse reusable prompt-based skills. Supports full-text and semantic
|
|
18
|
+
* search via the `q` parameter, and filtering by category, namespace, or slug.
|
|
19
|
+
*/
|
|
20
|
+
list(query = {}, options) {
|
|
21
|
+
return this._client.getAPIList('/skills', (pagination_1.SkillsPage), { query, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Get a single skill by its namespace and slug.
|
|
25
|
+
*/
|
|
26
|
+
get(slug, params, options) {
|
|
27
|
+
const { namespace } = params;
|
|
28
|
+
return this._client.get((0, path_1.path) `/skills/${namespace}/${slug}`, options);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.Skills = Skills;
|
|
32
|
+
Skills.Reviews = reviews_1.Reviews;
|
|
33
|
+
//# sourceMappingURL=skills.js.map
|