@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,191 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { PagePromise, ReviewsPage, type ReviewsPageParams } from '../../core/pagination';
|
|
6
|
+
import { buildHeaders } from '../../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Reviews extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Submit a review for a skill after using it. Updates existing review if one
|
|
13
|
+
* already exists.
|
|
14
|
+
*/
|
|
15
|
+
create(
|
|
16
|
+
slug: string,
|
|
17
|
+
params: ReviewCreateParams,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): APIPromise<CreateReviewResponse> {
|
|
20
|
+
const { namespace, ...body } = params;
|
|
21
|
+
return this._client.post(path`/skills/${namespace}/${slug}/reviews`, { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Get paginated list of reviews for a skill with summary statistics
|
|
26
|
+
*/
|
|
27
|
+
list(
|
|
28
|
+
slug: string,
|
|
29
|
+
params: ReviewListParams,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): PagePromise<ReviewItemsReviewsPage, ReviewItem> {
|
|
32
|
+
const { namespace, ...query } = params;
|
|
33
|
+
return this._client.getAPIList(path`/skills/${namespace}/${slug}/reviews`, ReviewsPage<ReviewItem>, {
|
|
34
|
+
query,
|
|
35
|
+
...options,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Delete your own review for a skill
|
|
41
|
+
*/
|
|
42
|
+
delete(slug: string, params: ReviewDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
43
|
+
const { namespace } = params;
|
|
44
|
+
return this._client.delete(path`/skills/${namespace}/${slug}/reviews`, {
|
|
45
|
+
...options,
|
|
46
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type ReviewItemsReviewsPage = ReviewsPage<ReviewItem>;
|
|
52
|
+
|
|
53
|
+
export interface CreateReviewRequest {
|
|
54
|
+
/**
|
|
55
|
+
* Rating from 1 to 5 stars
|
|
56
|
+
*/
|
|
57
|
+
rating: number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Optional agent model name (e.g., 'claude-3.5-sonnet')
|
|
61
|
+
*/
|
|
62
|
+
agentModel?: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Optional review comment
|
|
66
|
+
*/
|
|
67
|
+
comment?: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface CreateReviewResponse {
|
|
71
|
+
/**
|
|
72
|
+
* Review ID
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
|
|
76
|
+
comment: string | null;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* ISO 8601 timestamp
|
|
80
|
+
*/
|
|
81
|
+
createdAt: string;
|
|
82
|
+
|
|
83
|
+
rating: number;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface ReviewItem {
|
|
87
|
+
id: string;
|
|
88
|
+
|
|
89
|
+
agentClient: string | null;
|
|
90
|
+
|
|
91
|
+
agentModel: string | null;
|
|
92
|
+
|
|
93
|
+
comment: string | null;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* ISO 8601 timestamp
|
|
97
|
+
*/
|
|
98
|
+
createdAt: string;
|
|
99
|
+
|
|
100
|
+
rating: number;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface ReviewsListResponse {
|
|
104
|
+
pagination: ReviewsListResponse.Pagination;
|
|
105
|
+
|
|
106
|
+
reviews: Array<ReviewItem>;
|
|
107
|
+
|
|
108
|
+
summary: ReviewsListResponse.Summary;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export namespace ReviewsListResponse {
|
|
112
|
+
export interface Pagination {
|
|
113
|
+
/**
|
|
114
|
+
* Current page number (1-indexed)
|
|
115
|
+
*/
|
|
116
|
+
currentPage: number;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Number of results per page
|
|
120
|
+
*/
|
|
121
|
+
pageSize: number;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Total number of matching reviews
|
|
125
|
+
*/
|
|
126
|
+
totalCount: number;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Total number of pages available
|
|
130
|
+
*/
|
|
131
|
+
totalPages: number;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface Summary {
|
|
135
|
+
/**
|
|
136
|
+
* Average rating across all reviews
|
|
137
|
+
*/
|
|
138
|
+
averageRating: number;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Total number of reviews
|
|
142
|
+
*/
|
|
143
|
+
totalReviews: number;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface ReviewCreateParams {
|
|
148
|
+
/**
|
|
149
|
+
* Path param
|
|
150
|
+
*/
|
|
151
|
+
namespace: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Body param: Rating from 1 to 5 stars
|
|
155
|
+
*/
|
|
156
|
+
rating: number;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Body param: Optional agent model name (e.g., 'claude-3.5-sonnet')
|
|
160
|
+
*/
|
|
161
|
+
agentModel?: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Body param: Optional review comment
|
|
165
|
+
*/
|
|
166
|
+
comment?: string;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface ReviewListParams extends ReviewsPageParams {
|
|
170
|
+
/**
|
|
171
|
+
* Path param
|
|
172
|
+
*/
|
|
173
|
+
namespace: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface ReviewDeleteParams {
|
|
177
|
+
namespace: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export declare namespace Reviews {
|
|
181
|
+
export {
|
|
182
|
+
type CreateReviewRequest as CreateReviewRequest,
|
|
183
|
+
type CreateReviewResponse as CreateReviewResponse,
|
|
184
|
+
type ReviewItem as ReviewItem,
|
|
185
|
+
type ReviewsListResponse as ReviewsListResponse,
|
|
186
|
+
type ReviewItemsReviewsPage as ReviewItemsReviewsPage,
|
|
187
|
+
type ReviewCreateParams as ReviewCreateParams,
|
|
188
|
+
type ReviewListParams as ReviewListParams,
|
|
189
|
+
type ReviewDeleteParams as ReviewDeleteParams,
|
|
190
|
+
};
|
|
191
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as ReviewsAPI from './reviews';
|
|
5
|
+
import {
|
|
6
|
+
CreateReviewRequest,
|
|
7
|
+
CreateReviewResponse,
|
|
8
|
+
ReviewCreateParams,
|
|
9
|
+
ReviewDeleteParams,
|
|
10
|
+
ReviewItem,
|
|
11
|
+
ReviewItemsReviewsPage,
|
|
12
|
+
ReviewListParams,
|
|
13
|
+
Reviews,
|
|
14
|
+
ReviewsListResponse,
|
|
15
|
+
} from './reviews';
|
|
16
|
+
import { APIPromise } from '../../core/api-promise';
|
|
17
|
+
import { PagePromise, SkillsPage, type SkillsPageParams } from '../../core/pagination';
|
|
18
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
19
|
+
import { path } from '../../internal/utils/path';
|
|
20
|
+
|
|
21
|
+
export class Skills extends APIResource {
|
|
22
|
+
reviews: ReviewsAPI.Reviews = new ReviewsAPI.Reviews(this._client);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Search and browse reusable prompt-based skills. Supports full-text and semantic
|
|
26
|
+
* search via the `q` parameter, and filtering by category, namespace, or slug.
|
|
27
|
+
*/
|
|
28
|
+
list(
|
|
29
|
+
query: SkillListParams | null | undefined = {},
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): PagePromise<SkillListResponsesSkillsPage, SkillListResponse> {
|
|
32
|
+
return this._client.getAPIList('/skills', SkillsPage<SkillListResponse>, { query, ...options });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Get a single skill by its namespace and slug.
|
|
37
|
+
*/
|
|
38
|
+
get(slug: string, params: SkillGetParams, options?: RequestOptions): APIPromise<SkillGetResponse> {
|
|
39
|
+
const { namespace } = params;
|
|
40
|
+
return this._client.get(path`/skills/${namespace}/${slug}`, options);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type SkillListResponsesSkillsPage = SkillsPage<SkillListResponse>;
|
|
45
|
+
|
|
46
|
+
export interface SkillListResponse {
|
|
47
|
+
id: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* ISO 8601 timestamp of when the skill was created.
|
|
51
|
+
*/
|
|
52
|
+
createdAt: string;
|
|
53
|
+
|
|
54
|
+
description: string;
|
|
55
|
+
|
|
56
|
+
displayName: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Whether this skill is publicly listed in the registry.
|
|
60
|
+
*/
|
|
61
|
+
listed: boolean;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Namespace that owns this skill.
|
|
65
|
+
*/
|
|
66
|
+
namespace: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The prompt template for this skill, or null if not publicly visible.
|
|
70
|
+
*/
|
|
71
|
+
prompt: string | null;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Computed quality score from 0 to 1.
|
|
75
|
+
*/
|
|
76
|
+
qualityScore: number;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* URL-friendly short name within the namespace.
|
|
80
|
+
*/
|
|
81
|
+
slug: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* List of categories this skill belongs to.
|
|
85
|
+
*/
|
|
86
|
+
categories?: Array<string>;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* GitHub fork count of the source repository, if applicable.
|
|
90
|
+
*/
|
|
91
|
+
externalForks?: number;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* GitHub star count of the source repository, if applicable.
|
|
95
|
+
*/
|
|
96
|
+
externalStars?: number;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* URL to the skill's source repository.
|
|
100
|
+
*/
|
|
101
|
+
gitUrl?: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Qualified names of MCP servers this skill depends on.
|
|
105
|
+
*/
|
|
106
|
+
servers?: Array<string>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Total number of times this skill has been activated.
|
|
110
|
+
*/
|
|
111
|
+
totalActivations?: number;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Number of distinct users who have activated this skill.
|
|
115
|
+
*/
|
|
116
|
+
uniqueUsers?: number;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface SkillGetResponse {
|
|
120
|
+
id: string;
|
|
121
|
+
|
|
122
|
+
categories: Array<string>;
|
|
123
|
+
|
|
124
|
+
createdAt: string;
|
|
125
|
+
|
|
126
|
+
description: string;
|
|
127
|
+
|
|
128
|
+
displayName: string;
|
|
129
|
+
|
|
130
|
+
externalForks: number;
|
|
131
|
+
|
|
132
|
+
externalStars: number;
|
|
133
|
+
|
|
134
|
+
gitUrl: string;
|
|
135
|
+
|
|
136
|
+
listed: boolean;
|
|
137
|
+
|
|
138
|
+
namespace: string;
|
|
139
|
+
|
|
140
|
+
prompt: string;
|
|
141
|
+
|
|
142
|
+
qualityScore: number;
|
|
143
|
+
|
|
144
|
+
servers: Array<string>;
|
|
145
|
+
|
|
146
|
+
slug: string;
|
|
147
|
+
|
|
148
|
+
totalActivations: number;
|
|
149
|
+
|
|
150
|
+
uniqueUsers: number;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface SkillListParams extends SkillsPageParams {
|
|
154
|
+
/**
|
|
155
|
+
* Filter by skill category (e.g. 'code', 'data', 'web').
|
|
156
|
+
*/
|
|
157
|
+
category?: string;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Comma-separated list of fields to include in response
|
|
161
|
+
*/
|
|
162
|
+
fields?: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Filter by the namespace that owns the skill.
|
|
166
|
+
*/
|
|
167
|
+
namespace?: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Filter by the skill owner's user ID.
|
|
171
|
+
*/
|
|
172
|
+
ownerId?: string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Search query for full-text and semantic search across skill names and
|
|
176
|
+
* descriptions.
|
|
177
|
+
*/
|
|
178
|
+
q?: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Filter by exact skill slug within a namespace. Deprecated: use GET
|
|
182
|
+
* /skills/:namespace/:slug instead.
|
|
183
|
+
*/
|
|
184
|
+
slug?: string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Maximum number of candidate results to consider from the search index before
|
|
188
|
+
* pagination.
|
|
189
|
+
*/
|
|
190
|
+
topK?: number;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface SkillGetParams {
|
|
194
|
+
namespace: string;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
Skills.Reviews = Reviews;
|
|
198
|
+
|
|
199
|
+
export declare namespace Skills {
|
|
200
|
+
export {
|
|
201
|
+
type SkillListResponse as SkillListResponse,
|
|
202
|
+
type SkillGetResponse as SkillGetResponse,
|
|
203
|
+
type SkillListResponsesSkillsPage as SkillListResponsesSkillsPage,
|
|
204
|
+
type SkillListParams as SkillListParams,
|
|
205
|
+
type SkillGetParams as SkillGetParams,
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
export {
|
|
209
|
+
Reviews as Reviews,
|
|
210
|
+
type CreateReviewRequest as CreateReviewRequest,
|
|
211
|
+
type CreateReviewResponse as CreateReviewResponse,
|
|
212
|
+
type ReviewItem as ReviewItem,
|
|
213
|
+
type ReviewsListResponse as ReviewsListResponse,
|
|
214
|
+
type ReviewItemsReviewsPage as ReviewItemsReviewsPage,
|
|
215
|
+
type ReviewCreateParams as ReviewCreateParams,
|
|
216
|
+
type ReviewListParams as ReviewListParams,
|
|
217
|
+
type ReviewDeleteParams as ReviewDeleteParams,
|
|
218
|
+
};
|
|
219
|
+
}
|
package/src/resources/skills.ts
CHANGED
|
@@ -1,74 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import { PagePromise, SkillsPage, type SkillsPageParams } from '../core/pagination';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class Skills extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get a paginated list of skills. When q parameter is provided, uses hybrid BM25 +
|
|
10
|
-
* vector search.
|
|
11
|
-
*/
|
|
12
|
-
list(
|
|
13
|
-
query: SkillListParams | null | undefined = {},
|
|
14
|
-
options?: RequestOptions,
|
|
15
|
-
): PagePromise<SkillListResponsesSkillsPage, SkillListResponse> {
|
|
16
|
-
return this._client.getAPIList('/skills', SkillsPage<SkillListResponse>, { query, ...options });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type SkillListResponsesSkillsPage = SkillsPage<SkillListResponse>;
|
|
21
|
-
|
|
22
|
-
export interface SkillListResponse {
|
|
23
|
-
id: string;
|
|
24
|
-
|
|
25
|
-
createdAt: string;
|
|
26
|
-
|
|
27
|
-
description: string;
|
|
28
|
-
|
|
29
|
-
displayName: string;
|
|
30
|
-
|
|
31
|
-
listed: boolean;
|
|
32
|
-
|
|
33
|
-
namespace: string;
|
|
34
|
-
|
|
35
|
-
prompt: string | null;
|
|
36
|
-
|
|
37
|
-
qualityScore: number;
|
|
38
|
-
|
|
39
|
-
slug: string;
|
|
40
|
-
|
|
41
|
-
categories?: Array<string>;
|
|
42
|
-
|
|
43
|
-
externalForks?: number;
|
|
44
|
-
|
|
45
|
-
externalStars?: number;
|
|
46
|
-
|
|
47
|
-
gitUrl?: string;
|
|
48
|
-
|
|
49
|
-
servers?: Array<string>;
|
|
50
|
-
|
|
51
|
-
totalActivations?: number;
|
|
52
|
-
|
|
53
|
-
uniqueUsers?: number;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface SkillListParams extends SkillsPageParams {
|
|
57
|
-
category?: string;
|
|
58
|
-
|
|
59
|
-
namespace?: string;
|
|
60
|
-
|
|
61
|
-
q?: string;
|
|
62
|
-
|
|
63
|
-
slug?: string;
|
|
64
|
-
|
|
65
|
-
topK?: number;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export declare namespace Skills {
|
|
69
|
-
export {
|
|
70
|
-
type SkillListResponse as SkillListResponse,
|
|
71
|
-
type SkillListResponsesSkillsPage as SkillListResponsesSkillsPage,
|
|
72
|
-
type SkillListParams as SkillListParams,
|
|
73
|
-
};
|
|
74
|
-
}
|
|
3
|
+
export * from './skills/index';
|
package/src/resources/tokens.ts
CHANGED
|
@@ -19,7 +19,11 @@ export class Tokens extends APIResource {
|
|
|
19
19
|
|
|
20
20
|
export interface Constraint {
|
|
21
21
|
/**
|
|
22
|
-
* Metadata
|
|
22
|
+
* Metadata key-value pairs for fine-grained access control. When an array is
|
|
23
|
+
* provided, each object is evaluated as an OR condition (any must match). Within a
|
|
24
|
+
* single object, all key-value pairs must match (AND). For example, [{"userId":
|
|
25
|
+
* "alice"}, {"team": "backend"}] allows access if userId is alice OR team is
|
|
26
|
+
* backend.
|
|
23
27
|
*/
|
|
24
28
|
metadata?: { [key: string]: string } | Array<{ [key: string]: string }>;
|
|
25
29
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.35.0'; // 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.35.0";
|
|
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.35.0";
|
|
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.35.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|