@smithery/api 0.56.1 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +196 -0
- package/client.d.mts +5 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -4
- package/client.d.ts.map +1 -1
- package/client.js +4 -1
- package/client.js.map +1 -1
- package/client.mjs +4 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +0 -23
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +0 -23
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +1 -23
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +0 -21
- package/core/pagination.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/connections/connections.d.mts +35 -22
- package/resources/connections/connections.d.mts.map +1 -1
- package/resources/connections/connections.d.ts +35 -22
- package/resources/connections/connections.d.ts.map +1 -1
- package/resources/connections/connections.js +3 -2
- package/resources/connections/connections.js.map +1 -1
- package/resources/connections/connections.mjs +3 -2
- package/resources/connections/connections.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/namespaces/namespaces.d.mts +4 -3
- package/resources/namespaces/namespaces.d.mts.map +1 -1
- package/resources/namespaces/namespaces.d.ts +4 -3
- package/resources/namespaces/namespaces.d.ts.map +1 -1
- package/resources/namespaces/namespaces.js +4 -3
- package/resources/namespaces/namespaces.js.map +1 -1
- package/resources/namespaces/namespaces.mjs +4 -3
- package/resources/namespaces/namespaces.mjs.map +1 -1
- package/resources/organizations/api-keys.d.mts +43 -0
- package/resources/organizations/api-keys.d.mts.map +1 -0
- package/resources/organizations/api-keys.d.ts +43 -0
- package/resources/organizations/api-keys.d.ts.map +1 -0
- package/resources/organizations/api-keys.js +30 -0
- package/resources/organizations/api-keys.js.map +1 -0
- package/resources/organizations/api-keys.mjs +26 -0
- package/resources/organizations/api-keys.mjs.map +1 -0
- package/resources/organizations/index.d.mts +3 -0
- package/resources/organizations/index.d.mts.map +1 -0
- package/resources/organizations/index.d.ts +3 -0
- package/resources/organizations/index.d.ts.map +1 -0
- package/resources/organizations/index.js +9 -0
- package/resources/organizations/index.js.map +1 -0
- package/resources/organizations/index.mjs +4 -0
- package/resources/organizations/index.mjs.map +1 -0
- package/resources/organizations/organizations.d.mts +10 -0
- package/resources/organizations/organizations.d.mts.map +1 -0
- package/resources/organizations/organizations.d.ts +10 -0
- package/resources/organizations/organizations.d.ts.map +1 -0
- package/resources/organizations/organizations.js +17 -0
- package/resources/organizations/organizations.js.map +1 -0
- package/resources/organizations/organizations.mjs +12 -0
- package/resources/organizations/organizations.mjs.map +1 -0
- package/resources/organizations.d.mts +2 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +2 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +6 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +3 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/servers/domains.d.mts +13 -122
- package/resources/servers/domains.d.mts.map +1 -1
- package/resources/servers/domains.d.ts +13 -122
- package/resources/servers/domains.d.ts.map +1 -1
- package/resources/servers/domains.js +6 -32
- package/resources/servers/domains.js.map +1 -1
- package/resources/servers/domains.mjs +6 -32
- package/resources/servers/domains.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 +0 -12
- package/resources/servers/releases.d.mts.map +1 -1
- package/resources/servers/releases.d.ts +0 -12
- package/resources/servers/releases.d.ts.map +1 -1
- package/resources/servers/servers.d.mts +4 -15
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +4 -15
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +1 -1
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/skills.d.mts +273 -1
- package/resources/skills.d.mts.map +1 -1
- package/resources/skills.d.ts +273 -1
- package/resources/skills.d.ts.map +1 -1
- package/resources/skills.js +78 -2
- package/resources/skills.js.map +1 -1
- package/resources/skills.mjs +76 -1
- package/resources/skills.mjs.map +1 -1
- package/resources/tokens.d.mts +17 -0
- package/resources/tokens.d.mts.map +1 -1
- package/resources/tokens.d.ts +17 -0
- package/resources/tokens.d.ts.map +1 -1
- package/resources/tokens.js +5 -0
- package/resources/tokens.js.map +1 -1
- package/resources/tokens.mjs +5 -0
- package/resources/tokens.mjs.map +1 -1
- package/src/client.ts +24 -24
- package/src/core/pagination.ts +0 -59
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/connections/connections.ts +44 -24
- package/src/resources/index.ts +2 -1
- package/src/resources/namespaces/namespaces.ts +4 -3
- package/src/resources/organizations/api-keys.ts +78 -0
- package/src/resources/organizations/index.ts +11 -0
- package/src/resources/organizations/organizations.ts +29 -0
- package/src/resources/organizations.ts +3 -0
- package/src/resources/servers/domains.ts +12 -182
- package/src/resources/servers/index.ts +0 -4
- package/src/resources/servers/releases.ts +0 -14
- package/src/resources/servers/servers.ts +3 -29
- package/src/resources/skills.ts +427 -1
- package/src/resources/tokens.ts +19 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/skills/index.d.mts +0 -4
- package/resources/skills/index.d.mts.map +0 -1
- package/resources/skills/index.d.ts +0 -4
- package/resources/skills/index.d.ts.map +0 -1
- package/resources/skills/index.js +0 -11
- package/resources/skills/index.js.map +0 -1
- package/resources/skills/index.mjs +0 -5
- package/resources/skills/index.mjs.map +0 -1
- package/resources/skills/reviews.d.mts +0 -160
- package/resources/skills/reviews.d.mts.map +0 -1
- package/resources/skills/reviews.d.ts +0 -160
- package/resources/skills/reviews.d.ts.map +0 -1
- package/resources/skills/reviews.js +0 -74
- package/resources/skills/reviews.js.map +0 -1
- package/resources/skills/reviews.mjs +0 -70
- package/resources/skills/reviews.mjs.map +0 -1
- package/resources/skills/skills.d.mts +0 -297
- package/resources/skills/skills.d.mts.map +0 -1
- package/resources/skills/skills.d.ts +0 -297
- package/resources/skills/skills.d.ts.map +0 -1
- package/resources/skills/skills.js +0 -94
- package/resources/skills/skills.js.map +0 -1
- package/resources/skills/skills.mjs +0 -89
- package/resources/skills/skills.mjs.map +0 -1
- package/resources/skills/votes.d.mts +0 -72
- package/resources/skills/votes.d.mts.map +0 -1
- package/resources/skills/votes.d.ts +0 -72
- package/resources/skills/votes.d.ts.map +0 -1
- package/resources/skills/votes.js +0 -46
- package/resources/skills/votes.js.map +0 -1
- package/resources/skills/votes.mjs +0 -42
- package/resources/skills/votes.mjs.map +0 -1
- package/src/resources/skills/index.ts +0 -47
- package/src/resources/skills/reviews.ts +0 -254
- package/src/resources/skills/skills.ts +0 -512
- package/src/resources/skills/votes.ts +0 -110
|
@@ -2,13 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
Domains,
|
|
5
|
-
type DomainCreateResponse,
|
|
6
5
|
type DomainUpdateResponse,
|
|
7
6
|
type DomainListResponse,
|
|
8
|
-
type DomainDeleteResponse,
|
|
9
|
-
type DomainCreateParams,
|
|
10
7
|
type DomainUpdateParams,
|
|
11
|
-
type DomainDeleteParams,
|
|
12
8
|
} from './domains';
|
|
13
9
|
export { Icon, type IconDeleteResponse, type IconUploadResponse } from './icon';
|
|
14
10
|
export { Logs, type LogListResponse, type LogListParams } from './logs';
|
|
@@ -178,8 +178,6 @@ export namespace HostedDeployPayload {
|
|
|
178
178
|
export interface ServerCard {
|
|
179
179
|
serverInfo: ServerCard.ServerInfo;
|
|
180
180
|
|
|
181
|
-
eventTopics?: Array<ServerCard.EventTopic>;
|
|
182
|
-
|
|
183
181
|
prompts?: Array<ServerCard.Prompt>;
|
|
184
182
|
|
|
185
183
|
resources?: Array<ServerCard.Resource>;
|
|
@@ -216,18 +214,6 @@ export namespace ServerCard {
|
|
|
216
214
|
}
|
|
217
215
|
}
|
|
218
216
|
|
|
219
|
-
export interface EventTopic {
|
|
220
|
-
name: string;
|
|
221
|
-
|
|
222
|
-
topic: string;
|
|
223
|
-
|
|
224
|
-
description?: string;
|
|
225
|
-
|
|
226
|
-
eventSchema?: { [key: string]: unknown };
|
|
227
|
-
|
|
228
|
-
inputSchema?: { [key: string]: unknown };
|
|
229
|
-
}
|
|
230
|
-
|
|
231
217
|
export interface Prompt {
|
|
232
218
|
name: string;
|
|
233
219
|
|
|
@@ -2,16 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as DomainsAPI from './domains';
|
|
5
|
-
import {
|
|
6
|
-
DomainCreateParams,
|
|
7
|
-
DomainCreateResponse,
|
|
8
|
-
DomainDeleteParams,
|
|
9
|
-
DomainDeleteResponse,
|
|
10
|
-
DomainListResponse,
|
|
11
|
-
DomainUpdateParams,
|
|
12
|
-
DomainUpdateResponse,
|
|
13
|
-
Domains,
|
|
14
|
-
} from './domains';
|
|
5
|
+
import { DomainListResponse, DomainUpdateParams, DomainUpdateResponse, Domains } from './domains';
|
|
15
6
|
import * as IconAPI from './icon';
|
|
16
7
|
import { Icon, IconDeleteResponse, IconUploadResponse } from './icon';
|
|
17
8
|
import * as LogsAPI from './logs';
|
|
@@ -262,7 +253,8 @@ export interface ServerListResponse {
|
|
|
262
253
|
displayName: string;
|
|
263
254
|
|
|
264
255
|
/**
|
|
265
|
-
* URL
|
|
256
|
+
* The server owner's homepage URL, or the server's Smithery page as a fallback.
|
|
257
|
+
* Will become nullable in a future release.
|
|
266
258
|
*/
|
|
267
259
|
homepage: string;
|
|
268
260
|
|
|
@@ -332,8 +324,6 @@ export interface ServerGetResponse {
|
|
|
332
324
|
|
|
333
325
|
displayName: string;
|
|
334
326
|
|
|
335
|
-
eventTopics: Array<ServerGetResponse.EventTopic> | null;
|
|
336
|
-
|
|
337
327
|
iconUrl: string | null;
|
|
338
328
|
|
|
339
329
|
prompts: Array<ServerGetResponse.Prompt> | null;
|
|
@@ -370,18 +360,6 @@ export namespace ServerGetResponse {
|
|
|
370
360
|
type: 'http';
|
|
371
361
|
}
|
|
372
362
|
|
|
373
|
-
export interface EventTopic {
|
|
374
|
-
name: string;
|
|
375
|
-
|
|
376
|
-
topic: string;
|
|
377
|
-
|
|
378
|
-
description?: string;
|
|
379
|
-
|
|
380
|
-
eventSchema?: { [key: string]: unknown };
|
|
381
|
-
|
|
382
|
-
inputSchema?: { [key: string]: unknown };
|
|
383
|
-
}
|
|
384
|
-
|
|
385
363
|
export interface Prompt {
|
|
386
364
|
name: string;
|
|
387
365
|
|
|
@@ -595,12 +573,8 @@ export declare namespace Servers {
|
|
|
595
573
|
|
|
596
574
|
export {
|
|
597
575
|
Domains as Domains,
|
|
598
|
-
type DomainCreateResponse as DomainCreateResponse,
|
|
599
576
|
type DomainUpdateResponse as DomainUpdateResponse,
|
|
600
577
|
type DomainListResponse as DomainListResponse,
|
|
601
|
-
type DomainDeleteResponse as DomainDeleteResponse,
|
|
602
|
-
type DomainCreateParams as DomainCreateParams,
|
|
603
578
|
type DomainUpdateParams as DomainUpdateParams,
|
|
604
|
-
type DomainDeleteParams as DomainDeleteParams,
|
|
605
579
|
};
|
|
606
580
|
}
|
package/src/resources/skills.ts
CHANGED
|
@@ -1,3 +1,429 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
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/resources/tokens.ts
CHANGED
|
@@ -8,6 +8,11 @@ export class Tokens extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Create a service token for machine-to-machine authentication. Accepts API key or
|
|
10
10
|
* bearer token. Optionally apply restrictions.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const createTokenResponse = await client.tokens.create();
|
|
15
|
+
* ```
|
|
11
16
|
*/
|
|
12
17
|
create(
|
|
13
18
|
body: TokenCreateParams | null | undefined = {},
|
|
@@ -67,6 +72,13 @@ export interface Constraint {
|
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
export interface CreateTokenRequest {
|
|
75
|
+
/**
|
|
76
|
+
* Optional organization ID to scope the token to. When provided, the token is
|
|
77
|
+
* minted with org context. The authenticated user must be an admin or owner of the
|
|
78
|
+
* organization.
|
|
79
|
+
*/
|
|
80
|
+
organizationId?: string;
|
|
81
|
+
|
|
70
82
|
/**
|
|
71
83
|
* Constraint objects to restrict the token. Each constraint may include a `ttl`
|
|
72
84
|
* field (max 24 hours). Default TTL is 1 hour. Maximum is 24 hours.
|
|
@@ -87,6 +99,13 @@ export interface CreateTokenResponse {
|
|
|
87
99
|
}
|
|
88
100
|
|
|
89
101
|
export interface TokenCreateParams {
|
|
102
|
+
/**
|
|
103
|
+
* Optional organization ID to scope the token to. When provided, the token is
|
|
104
|
+
* minted with org context. The authenticated user must be an admin or owner of the
|
|
105
|
+
* organization.
|
|
106
|
+
*/
|
|
107
|
+
organizationId?: string;
|
|
108
|
+
|
|
90
109
|
/**
|
|
91
110
|
* Constraint objects to restrict the token. Each constraint may include a `ttl`
|
|
92
111
|
* field (max 24 hours). Default TTL is 1 hour. Maximum is 24 hours.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
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.
|
|
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.
|
|
1
|
+
export declare const VERSION = "0.58.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.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 +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"}
|