@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
|
@@ -1,94 +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.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 VotesAPI = tslib_1.__importStar(require("./votes.js"));
|
|
10
|
-
const votes_1 = require("./votes.js");
|
|
11
|
-
const pagination_1 = require("../../core/pagination.js");
|
|
12
|
-
const headers_1 = require("../../internal/headers.js");
|
|
13
|
-
const uploads_1 = require("../../internal/uploads.js");
|
|
14
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
15
|
-
/**
|
|
16
|
-
* Discover and search reusable prompt-based skills for MCP servers
|
|
17
|
-
*/
|
|
18
|
-
class Skills extends resource_1.APIResource {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
this.votes = new VotesAPI.Votes(this._client);
|
|
22
|
-
this.reviews = new ReviewsAPI.Reviews(this._client);
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Create a new skill
|
|
26
|
-
* by linking a GitHub repository containing a SKILL.md file.
|
|
27
|
-
*
|
|
28
|
-
* @deprecated
|
|
29
|
-
*/
|
|
30
|
-
create(body, options) {
|
|
31
|
-
return this._client.post('/skills', { body, ...options });
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Search and browse reusable prompt-based skills. Supports full-text and semantic
|
|
35
|
-
* search via the `q` parameter, and filtering by category, namespace, or slug.
|
|
36
|
-
*/
|
|
37
|
-
list(query = {}, options) {
|
|
38
|
-
return this._client.getAPIList('/skills', (pagination_1.SkillsPage), { query, ...options });
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Delete a skill by namespace and slug. Requires ownership of the namespace.
|
|
42
|
-
*/
|
|
43
|
-
delete(slug, params, options) {
|
|
44
|
-
const { namespace } = params;
|
|
45
|
-
return this._client.delete((0, path_1.path) `/skills/${namespace}/${slug}`, options);
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Download a ZIP bundle containing all skill files.
|
|
49
|
-
*/
|
|
50
|
-
download(slug, params, options) {
|
|
51
|
-
const { namespace } = params;
|
|
52
|
-
return this._client.get((0, path_1.path) `/skills/${namespace}/${slug}/download`, {
|
|
53
|
-
...options,
|
|
54
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: 'application/zip' }, options?.headers]),
|
|
55
|
-
__binaryResponse: true,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Get a single skill by its namespace and slug.
|
|
60
|
-
*/
|
|
61
|
-
get(slug, params, options) {
|
|
62
|
-
const { namespace } = params;
|
|
63
|
-
return this._client.get((0, path_1.path) `/skills/${namespace}/${slug}`, options);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Idempotent endpoint to create or update a GitHub-backed skill. Send
|
|
67
|
-
* application/json with `gitUrl`.
|
|
68
|
-
*/
|
|
69
|
-
set(slug, params, options) {
|
|
70
|
-
const { namespace, body } = params;
|
|
71
|
-
return this._client.put((0, path_1.path) `/skills/${namespace}/${slug}`, { body: body, ...options });
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Refetch SKILL.md and
|
|
75
|
-
* repository stars from GitHub and update the skill record.
|
|
76
|
-
*
|
|
77
|
-
* @deprecated
|
|
78
|
-
*/
|
|
79
|
-
sync(slug, params, options) {
|
|
80
|
-
const { namespace } = params;
|
|
81
|
-
return this._client.post((0, path_1.path) `/skills/${namespace}/${slug}/sync`, options);
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Upload or replace a skill bundle via multipart/form-data with an `archive` file.
|
|
85
|
-
*/
|
|
86
|
-
upload(slug, params, options) {
|
|
87
|
-
const { namespace, ...body } = params;
|
|
88
|
-
return this._client.put((0, path_1.path) `/skills/${namespace}/${slug}/upload`, (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.Skills = Skills;
|
|
92
|
-
Skills.Votes = votes_1.Votes;
|
|
93
|
-
Skills.Reviews = reviews_1.Reviews;
|
|
94
|
-
//# sourceM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O,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,WAAW,SAAS,IAAI,IAAI,SAAS,EACzC,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;CACF;AAnFD,wBAmFC;AAgVD,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC;AACrB,MAAM,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import * as ReviewsAPI from "./reviews.mjs";
|
|
4
|
-
import { Reviews, } from "./reviews.mjs";
|
|
5
|
-
import * as VotesAPI from "./votes.mjs";
|
|
6
|
-
import { Votes, } from "./votes.mjs";
|
|
7
|
-
import { SkillsPage } from "../../core/pagination.mjs";
|
|
8
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
9
|
-
import { multipartFormRequestOptions } from "../../internal/uploads.mjs";
|
|
10
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
11
|
-
/**
|
|
12
|
-
* Discover and search reusable prompt-based skills for MCP servers
|
|
13
|
-
*/
|
|
14
|
-
export class Skills extends APIResource {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.votes = new VotesAPI.Votes(this._client);
|
|
18
|
-
this.reviews = new ReviewsAPI.Reviews(this._client);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Create a new skill
|
|
22
|
-
* by linking a GitHub repository containing a SKILL.md file.
|
|
23
|
-
*
|
|
24
|
-
* @deprecated
|
|
25
|
-
*/
|
|
26
|
-
create(body, options) {
|
|
27
|
-
return this._client.post('/skills', { body, ...options });
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Search and browse reusable prompt-based skills. Supports full-text and semantic
|
|
31
|
-
* search via the `q` parameter, and filtering by category, namespace, or slug.
|
|
32
|
-
*/
|
|
33
|
-
list(query = {}, options) {
|
|
34
|
-
return this._client.getAPIList('/skills', (SkillsPage), { query, ...options });
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Delete a skill by namespace and slug. Requires ownership of the namespace.
|
|
38
|
-
*/
|
|
39
|
-
delete(slug, params, options) {
|
|
40
|
-
const { namespace } = params;
|
|
41
|
-
return this._client.delete(path `/skills/${namespace}/${slug}`, options);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Download a ZIP bundle containing all skill files.
|
|
45
|
-
*/
|
|
46
|
-
download(slug, params, options) {
|
|
47
|
-
const { namespace } = params;
|
|
48
|
-
return this._client.get(path `/skills/${namespace}/${slug}/download`, {
|
|
49
|
-
...options,
|
|
50
|
-
headers: buildHeaders([{ Accept: 'application/zip' }, options?.headers]),
|
|
51
|
-
__binaryResponse: true,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Get a single skill by its namespace and slug.
|
|
56
|
-
*/
|
|
57
|
-
get(slug, params, options) {
|
|
58
|
-
const { namespace } = params;
|
|
59
|
-
return this._client.get(path `/skills/${namespace}/${slug}`, options);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Idempotent endpoint to create or update a GitHub-backed skill. Send
|
|
63
|
-
* application/json with `gitUrl`.
|
|
64
|
-
*/
|
|
65
|
-
set(slug, params, options) {
|
|
66
|
-
const { namespace, body } = params;
|
|
67
|
-
return this._client.put(path `/skills/${namespace}/${slug}`, { body: body, ...options });
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* **Deprecated:** Use PUT /skills/{namespace}/{slug} instead. Refetch SKILL.md and
|
|
71
|
-
* repository stars from GitHub and update the skill record.
|
|
72
|
-
*
|
|
73
|
-
* @deprecated
|
|
74
|
-
*/
|
|
75
|
-
sync(slug, params, options) {
|
|
76
|
-
const { namespace } = params;
|
|
77
|
-
return this._client.post(path `/skills/${namespace}/${slug}/sync`, options);
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Upload or replace a skill bundle via multipart/form-data with an `archive` file.
|
|
81
|
-
*/
|
|
82
|
-
upload(slug, params, options) {
|
|
83
|
-
const { namespace, ...body } = params;
|
|
84
|
-
return this._client.put(path `/skills/${namespace}/${slug}/upload`, multipartFormRequestOptions({ body, ...options }, this._client));
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
Skills.Votes = Votes;
|
|
88
|
-
Skills.Reviews = Reviews;
|
|
89
|
-
//# sourceMappingURL=skills.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skills.mjs","sourceRoot":"","sources":["../../src/resources/skills/skills.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAaL,OAAO,GAER;OACM,KAAK,QAAQ;OACb,EAQL,KAAK,GACN;OAEM,EAAe,UAAU,EAAyB;OAElD,EAAE,YAAY,EAAE;OAEhB,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiFrE,CAAC;IA/EC;;;;;OAKG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,I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AAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;OAKG;IACH,IAAI,CAAC,IAAY,EAAE,MAAuB,EAAE,OAAwB;QAClE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,SAAS,IAAI,IAAI,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAY,EAAE,MAAyB,EAAE,OAAwB;QACtE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,WAAW,SAAS,IAAI,IAAI,SAAS,EACzC,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;CACF;AAgVD,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;AACrB,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* Discover and search reusable prompt-based skills for MCP servers
|
|
6
|
-
*/
|
|
7
|
-
export declare class Votes extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Deprecated (SMI-1505). Upvote or downvote a skill. Updates existing vote if one
|
|
10
|
-
* exists.
|
|
11
|
-
*
|
|
12
|
-
* @deprecated
|
|
13
|
-
*/
|
|
14
|
-
create(slug: string, params: VoteCreateParams, options?: RequestOptions): APIPromise<SkillVoteResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* [Deprecated] Remove vote from a skill
|
|
17
|
-
*
|
|
18
|
-
* @deprecated
|
|
19
|
-
*/
|
|
20
|
-
delete(slug: string, params: VoteDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* Deprecated (SMI-1505). Get upvote/downvote counts and current user's vote (if
|
|
23
|
-
* authenticated).
|
|
24
|
-
*
|
|
25
|
-
* @deprecated
|
|
26
|
-
*/
|
|
27
|
-
get(slug: string, params: VoteGetParams, options?: RequestOptions): APIPromise<SkillVoteCounts>;
|
|
28
|
-
}
|
|
29
|
-
export interface SkillVoteCounts {
|
|
30
|
-
downvotes: number;
|
|
31
|
-
upvotes: number;
|
|
32
|
-
/**
|
|
33
|
-
* Current user's vote, null if not voted
|
|
34
|
-
*/
|
|
35
|
-
userVote: 'up' | 'down' | null;
|
|
36
|
-
}
|
|
37
|
-
export interface SkillVoteError {
|
|
38
|
-
error: string;
|
|
39
|
-
}
|
|
40
|
-
export interface SkillVoteRequest {
|
|
41
|
-
/**
|
|
42
|
-
* Vote direction
|
|
43
|
-
*/
|
|
44
|
-
vote: 'up' | 'down';
|
|
45
|
-
}
|
|
46
|
-
export interface SkillVoteResponse {
|
|
47
|
-
createdAt: string;
|
|
48
|
-
/**
|
|
49
|
-
* Vote direction
|
|
50
|
-
*/
|
|
51
|
-
vote: 'up' | 'down';
|
|
52
|
-
}
|
|
53
|
-
export interface VoteCreateParams {
|
|
54
|
-
/**
|
|
55
|
-
* Path param
|
|
56
|
-
*/
|
|
57
|
-
namespace: string;
|
|
58
|
-
/**
|
|
59
|
-
* Body param: Vote direction
|
|
60
|
-
*/
|
|
61
|
-
vote: 'up' | 'down';
|
|
62
|
-
}
|
|
63
|
-
export interface VoteDeleteParams {
|
|
64
|
-
namespace: string;
|
|
65
|
-
}
|
|
66
|
-
export interface VoteGetParams {
|
|
67
|
-
namespace: string;
|
|
68
|
-
}
|
|
69
|
-
export declare namespace Votes {
|
|
70
|
-
export { type SkillVoteCounts as SkillVoteCounts, type SkillVoteError as SkillVoteError, type SkillVoteRequest as SkillVoteRequest, type SkillVoteResponse as SkillVoteResponse, type VoteCreateParams as VoteCreateParams, type VoteDeleteParams as VoteDeleteParams, type VoteGetParams as VoteGetParams, };
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=votes.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"votes.d.mts","sourceRoot":"","sources":["../../src/resources/skills/votes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAKvG;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ1F;;;;;OAKG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAIhG;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
-
/**
|
|
5
|
-
* Discover and search reusable prompt-based skills for MCP servers
|
|
6
|
-
*/
|
|
7
|
-
export declare class Votes extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Deprecated (SMI-1505). Upvote or downvote a skill. Updates existing vote if one
|
|
10
|
-
* exists.
|
|
11
|
-
*
|
|
12
|
-
* @deprecated
|
|
13
|
-
*/
|
|
14
|
-
create(slug: string, params: VoteCreateParams, options?: RequestOptions): APIPromise<SkillVoteResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* [Deprecated] Remove vote from a skill
|
|
17
|
-
*
|
|
18
|
-
* @deprecated
|
|
19
|
-
*/
|
|
20
|
-
delete(slug: string, params: VoteDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* Deprecated (SMI-1505). Get upvote/downvote counts and current user's vote (if
|
|
23
|
-
* authenticated).
|
|
24
|
-
*
|
|
25
|
-
* @deprecated
|
|
26
|
-
*/
|
|
27
|
-
get(slug: string, params: VoteGetParams, options?: RequestOptions): APIPromise<SkillVoteCounts>;
|
|
28
|
-
}
|
|
29
|
-
export interface SkillVoteCounts {
|
|
30
|
-
downvotes: number;
|
|
31
|
-
upvotes: number;
|
|
32
|
-
/**
|
|
33
|
-
* Current user's vote, null if not voted
|
|
34
|
-
*/
|
|
35
|
-
userVote: 'up' | 'down' | null;
|
|
36
|
-
}
|
|
37
|
-
export interface SkillVoteError {
|
|
38
|
-
error: string;
|
|
39
|
-
}
|
|
40
|
-
export interface SkillVoteRequest {
|
|
41
|
-
/**
|
|
42
|
-
* Vote direction
|
|
43
|
-
*/
|
|
44
|
-
vote: 'up' | 'down';
|
|
45
|
-
}
|
|
46
|
-
export interface SkillVoteResponse {
|
|
47
|
-
createdAt: string;
|
|
48
|
-
/**
|
|
49
|
-
* Vote direction
|
|
50
|
-
*/
|
|
51
|
-
vote: 'up' | 'down';
|
|
52
|
-
}
|
|
53
|
-
export interface VoteCreateParams {
|
|
54
|
-
/**
|
|
55
|
-
* Path param
|
|
56
|
-
*/
|
|
57
|
-
namespace: string;
|
|
58
|
-
/**
|
|
59
|
-
* Body param: Vote direction
|
|
60
|
-
*/
|
|
61
|
-
vote: 'up' | 'down';
|
|
62
|
-
}
|
|
63
|
-
export interface VoteDeleteParams {
|
|
64
|
-
namespace: string;
|
|
65
|
-
}
|
|
66
|
-
export interface VoteGetParams {
|
|
67
|
-
namespace: string;
|
|
68
|
-
}
|
|
69
|
-
export declare namespace Votes {
|
|
70
|
-
export { type SkillVoteCounts as SkillVoteCounts, type SkillVoteError as SkillVoteError, type SkillVoteRequest as SkillVoteRequest, type SkillVoteResponse as SkillVoteResponse, type VoteCreateParams as VoteCreateParams, type VoteDeleteParams as VoteDeleteParams, type VoteGetParams as VoteGetParams, };
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL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gB;IAC/B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -1,46 +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 = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../internal/headers.js");
|
|
7
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
-
/**
|
|
9
|
-
* Discover and search reusable prompt-based skills for MCP servers
|
|
10
|
-
*/
|
|
11
|
-
class Votes extends resource_1.APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Deprecated (SMI-1505). Upvote or downvote a skill. Updates existing vote if one
|
|
14
|
-
* exists.
|
|
15
|
-
*
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
create(slug, params, options) {
|
|
19
|
-
const { namespace, ...body } = params;
|
|
20
|
-
return this._client.post((0, path_1.path) `/skills/${namespace}/${slug}/vote`, { body, ...options });
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* [Deprecated] Remove vote from a skill
|
|
24
|
-
*
|
|
25
|
-
* @deprecated
|
|
26
|
-
*/
|
|
27
|
-
delete(slug, params, options) {
|
|
28
|
-
const { namespace } = params;
|
|
29
|
-
return this._client.delete((0, path_1.path) `/skills/${namespace}/${slug}/vote`, {
|
|
30
|
-
...options,
|
|
31
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Deprecated (SMI-1505). Get upvote/downvote counts and current user's vote (if
|
|
36
|
-
* authenticated).
|
|
37
|
-
*
|
|
38
|
-
* @deprecated
|
|
39
|
-
*/
|
|
40
|
-
get(slug, params, options) {
|
|
41
|
-
const { namespace } = params;
|
|
42
|
-
return this._client.get((0, path_1.path) `/skills/${namespace}/${slug}/vote`, options);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.Votes = Votes;
|
|
46
|
-
//# sourceMappingURL=votes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"votes.js","sourceRoot":"","sources":["../../src/resources/skills/votes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;OAKG;IACH,MAAM,CAAC,IAAY,EAAE,MAAwB,EAAE,OAAwB;QACrE,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,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAY,EAAE,MAAwB,EAAE,OAAwB;QACrE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,SAAS,IAAI,IAAI,OAAO,EAAE;YAClE,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;IAED;;;;;OAKG;IACH,GAAG,CAAC,IAAY,EAAE,MAAqB,EAAE,OAAwB;QAC/D,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,SAAS,IAAI,IAAI,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AAnCD,sBAmCC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
-
/**
|
|
6
|
-
* Discover and search reusable prompt-based skills for MCP servers
|
|
7
|
-
*/
|
|
8
|
-
export class Votes extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Deprecated (SMI-1505). Upvote or downvote a skill. Updates existing vote if one
|
|
11
|
-
* exists.
|
|
12
|
-
*
|
|
13
|
-
* @deprecated
|
|
14
|
-
*/
|
|
15
|
-
create(slug, params, options) {
|
|
16
|
-
const { namespace, ...body } = params;
|
|
17
|
-
return this._client.post(path `/skills/${namespace}/${slug}/vote`, { body, ...options });
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* [Deprecated] Remove vote from a skill
|
|
21
|
-
*
|
|
22
|
-
* @deprecated
|
|
23
|
-
*/
|
|
24
|
-
delete(slug, params, options) {
|
|
25
|
-
const { namespace } = params;
|
|
26
|
-
return this._client.delete(path `/skills/${namespace}/${slug}/vote`, {
|
|
27
|
-
...options,
|
|
28
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Deprecated (SMI-1505). Get upvote/downvote counts and current user's vote (if
|
|
33
|
-
* authenticated).
|
|
34
|
-
*
|
|
35
|
-
* @deprecated
|
|
36
|
-
*/
|
|
37
|
-
get(slug, params, options) {
|
|
38
|
-
const { namespace } = params;
|
|
39
|
-
return this._client.get(path `/skills/${namespace}/${slug}/vote`, options);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=votes.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"votes.mjs","sourceRoot":"","sources":["../../src/resources/skills/votes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;OAKG;IACH,MAAM,CAAC,IAAY,EAAE,MAAwB,EAAE,OAAwB;QACrE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,SAAS,IAAI,IAAI,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAY,EAAE,MAAwB,EAAE,OAAwB;QACrE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,SAAS,IAAI,IAAI,OAAO,EAAE;YAClE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,IAAY,EAAE,MAAqB,EAAE,OAAwB;QAC/D,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,SAAS,IAAI,IAAI,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
Reviews,
|
|
5
|
-
type CreateReviewRequest,
|
|
6
|
-
type CreateReviewResponse,
|
|
7
|
-
type ReviewError,
|
|
8
|
-
type ReviewItem,
|
|
9
|
-
type ReviewVoteRequest,
|
|
10
|
-
type ReviewVoteResponse,
|
|
11
|
-
type ReviewsListResponse,
|
|
12
|
-
type ReviewCreateParams,
|
|
13
|
-
type ReviewListParams,
|
|
14
|
-
type ReviewDeleteParams,
|
|
15
|
-
type ReviewUnvoteParams,
|
|
16
|
-
type ReviewVoteParams,
|
|
17
|
-
type ReviewItemsReviewsPage,
|
|
18
|
-
} from './reviews';
|
|
19
|
-
export {
|
|
20
|
-
Skills,
|
|
21
|
-
type SkillCreateResponse,
|
|
22
|
-
type SkillListResponse,
|
|
23
|
-
type SkillDeleteResponse,
|
|
24
|
-
type SkillGetResponse,
|
|
25
|
-
type SkillSetResponse,
|
|
26
|
-
type SkillSyncResponse,
|
|
27
|
-
type SkillUploadResponse,
|
|
28
|
-
type SkillCreateParams,
|
|
29
|
-
type SkillListParams,
|
|
30
|
-
type SkillDeleteParams,
|
|
31
|
-
type SkillDownloadParams,
|
|
32
|
-
type SkillGetParams,
|
|
33
|
-
type SkillSetParams,
|
|
34
|
-
type SkillSyncParams,
|
|
35
|
-
type SkillUploadParams,
|
|
36
|
-
type SkillListResponsesSkillsPage,
|
|
37
|
-
} from './skills';
|
|
38
|
-
export {
|
|
39
|
-
Votes,
|
|
40
|
-
type SkillVoteCounts,
|
|
41
|
-
type SkillVoteError,
|
|
42
|
-
type SkillVoteRequest,
|
|
43
|
-
type SkillVoteResponse,
|
|
44
|
-
type VoteCreateParams,
|
|
45
|
-
type VoteDeleteParams,
|
|
46
|
-
type VoteGetParams,
|
|
47
|
-
} from './votes';
|