@smithery/api 0.56.0 → 0.57.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 +189 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/connections/connections.d.mts +0 -19
- package/resources/connections/connections.d.mts.map +1 -1
- package/resources/connections/connections.d.ts +0 -19
- package/resources/connections/connections.d.ts.map +1 -1
- package/resources/connections/connections.js.map +1 -1
- package/resources/connections/connections.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- 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 +2 -2
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +2 -2
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/index.js.map +1 -1
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/releases.d.mts +2 -30
- package/resources/servers/releases.d.mts.map +1 -1
- package/resources/servers/releases.d.ts +2 -30
- package/resources/servers/releases.d.ts.map +1 -1
- package/resources/servers/servers.d.mts +4 -16
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +4 -16
- 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/reviews.d.mts +17 -5
- package/resources/skills/reviews.d.mts.map +1 -1
- package/resources/skills/reviews.d.ts +17 -5
- package/resources/skills/reviews.d.ts.map +1 -1
- package/resources/skills/reviews.js +17 -5
- package/resources/skills/reviews.js.map +1 -1
- package/resources/skills/reviews.mjs +17 -5
- package/resources/skills/reviews.mjs.map +1 -1
- package/resources/skills/skills.d.mts +2 -2
- package/resources/skills/skills.d.ts +2 -2
- package/resources/skills/votes.d.mts +11 -3
- package/resources/skills/votes.d.mts.map +1 -1
- package/resources/skills/votes.d.ts +11 -3
- package/resources/skills/votes.d.ts.map +1 -1
- package/resources/skills/votes.js +11 -3
- package/resources/skills/votes.js.map +1 -1
- package/resources/skills/votes.mjs +11 -3
- package/resources/skills/votes.mjs.map +1 -1
- package/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 +5 -0
- package/src/resources/connections/connections.ts +0 -22
- package/src/resources/index.ts +1 -0
- 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 -5
- package/src/resources/servers/releases.ts +1 -42
- package/src/resources/servers/servers.ts +1 -30
- package/src/resources/skills/reviews.ts +17 -5
- package/src/resources/skills/skills.ts +2 -2
- package/src/resources/skills/votes.ts +11 -3
- 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
|
@@ -11,14 +11,19 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
11
11
|
*/
|
|
12
12
|
class Reviews extends resource_1.APIResource {
|
|
13
13
|
/**
|
|
14
|
-
* Submit a review for a skill. Updates existing review if
|
|
14
|
+
* Deprecated (SMI-1505). Submit a review for a skill. Updates existing review if
|
|
15
|
+
* one already exists.
|
|
16
|
+
*
|
|
17
|
+
* @deprecated
|
|
15
18
|
*/
|
|
16
19
|
create(slug, params, options) {
|
|
17
20
|
const { namespace, ...body } = params;
|
|
18
21
|
return this._client.post((0, path_1.path) `/skills/${namespace}/${slug}/reviews`, { body, ...options });
|
|
19
22
|
}
|
|
20
23
|
/**
|
|
21
|
-
* Get paginated list of reviews with vote counts
|
|
24
|
+
* Deprecated (SMI-1505). Get paginated list of reviews with vote counts.
|
|
25
|
+
*
|
|
26
|
+
* @deprecated
|
|
22
27
|
*/
|
|
23
28
|
list(slug, params, options) {
|
|
24
29
|
const { namespace, ...query } = params;
|
|
@@ -28,7 +33,9 @@ class Reviews extends resource_1.APIResource {
|
|
|
28
33
|
});
|
|
29
34
|
}
|
|
30
35
|
/**
|
|
31
|
-
* Delete your review
|
|
36
|
+
* [Deprecated] Delete your review
|
|
37
|
+
*
|
|
38
|
+
* @deprecated
|
|
32
39
|
*/
|
|
33
40
|
delete(slug, params, options) {
|
|
34
41
|
const { namespace } = params;
|
|
@@ -38,7 +45,9 @@ class Reviews extends resource_1.APIResource {
|
|
|
38
45
|
});
|
|
39
46
|
}
|
|
40
47
|
/**
|
|
41
|
-
* Remove vote from a review
|
|
48
|
+
* [Deprecated] Remove vote from a review
|
|
49
|
+
*
|
|
50
|
+
* @deprecated
|
|
42
51
|
*/
|
|
43
52
|
unvote(reviewID, params, options) {
|
|
44
53
|
const { namespace, slug } = params;
|
|
@@ -48,7 +57,10 @@ class Reviews extends resource_1.APIResource {
|
|
|
48
57
|
});
|
|
49
58
|
}
|
|
50
59
|
/**
|
|
51
|
-
* Upvote or downvote a review. Updates existing vote if one
|
|
60
|
+
* Deprecated (SMI-1505). Upvote or downvote a review. Updates existing vote if one
|
|
61
|
+
* exists.
|
|
62
|
+
*
|
|
63
|
+
* @deprecated
|
|
52
64
|
*/
|
|
53
65
|
vote(reviewID, params, options) {
|
|
54
66
|
const { namespace, slug, ...body } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviews.js","sourceRoot":"","sources":["../../src/resources/skills/reviews.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAyF;AACzF,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC
|
|
1
|
+
{"version":3,"file":"reviews.js","sourceRoot":"","sources":["../../src/resources/skills/reviews.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAyF;AACzF,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;OAKG;IACH,MAAM,CACJ,IAAY,EACZ,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,WAAW,SAAS,IAAI,IAAI,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,IAAY,EACZ,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,WAAW,SAAS,IAAI,IAAI,UAAU,EAAE,CAAA,wBAAuB,CAAA,EAAE;YAClG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAY,EAAE,MAA0B,EAAE,OAAwB;QACvE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,SAAS,IAAI,IAAI,UAAU,EAAE;YACrE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,QAAgB,EAAE,MAA0B,EAAE,OAAwB;QAC3E,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,SAAS,IAAI,IAAI,YAAY,QAAQ,OAAO,EAAE;YACtF,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,IAAI,CAAC,QAAgB,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,WAAW,SAAS,IAAI,IAAI,YAAY,QAAQ,OAAO,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAxED,0BAwEC"}
|
|
@@ -8,14 +8,19 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export class Reviews extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Submit a review for a skill. Updates existing review if
|
|
11
|
+
* Deprecated (SMI-1505). Submit a review for a skill. Updates existing review if
|
|
12
|
+
* one already exists.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated
|
|
12
15
|
*/
|
|
13
16
|
create(slug, params, options) {
|
|
14
17
|
const { namespace, ...body } = params;
|
|
15
18
|
return this._client.post(path `/skills/${namespace}/${slug}/reviews`, { body, ...options });
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
|
-
* Get paginated list of reviews with vote counts
|
|
21
|
+
* Deprecated (SMI-1505). Get paginated list of reviews with vote counts.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated
|
|
19
24
|
*/
|
|
20
25
|
list(slug, params, options) {
|
|
21
26
|
const { namespace, ...query } = params;
|
|
@@ -25,7 +30,9 @@ export class Reviews extends APIResource {
|
|
|
25
30
|
});
|
|
26
31
|
}
|
|
27
32
|
/**
|
|
28
|
-
* Delete your review
|
|
33
|
+
* [Deprecated] Delete your review
|
|
34
|
+
*
|
|
35
|
+
* @deprecated
|
|
29
36
|
*/
|
|
30
37
|
delete(slug, params, options) {
|
|
31
38
|
const { namespace } = params;
|
|
@@ -35,7 +42,9 @@ export class Reviews extends APIResource {
|
|
|
35
42
|
});
|
|
36
43
|
}
|
|
37
44
|
/**
|
|
38
|
-
* Remove vote from a review
|
|
45
|
+
* [Deprecated] Remove vote from a review
|
|
46
|
+
*
|
|
47
|
+
* @deprecated
|
|
39
48
|
*/
|
|
40
49
|
unvote(reviewID, params, options) {
|
|
41
50
|
const { namespace, slug } = params;
|
|
@@ -45,7 +54,10 @@ export class Reviews extends APIResource {
|
|
|
45
54
|
});
|
|
46
55
|
}
|
|
47
56
|
/**
|
|
48
|
-
* Upvote or downvote a review. Updates existing vote if one
|
|
57
|
+
* Deprecated (SMI-1505). Upvote or downvote a review. Updates existing vote if one
|
|
58
|
+
* exists.
|
|
59
|
+
*
|
|
60
|
+
* @deprecated
|
|
49
61
|
*/
|
|
50
62
|
vote(reviewID, params, options) {
|
|
51
63
|
const { namespace, slug, ...body } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviews.mjs","sourceRoot":"","sources":["../../src/resources/skills/reviews.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAe,WAAW,EAA0B;OACpD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"reviews.mjs","sourceRoot":"","sources":["../../src/resources/skills/reviews.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAe,WAAW,EAA0B;OACpD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;OAKG;IACH,MAAM,CACJ,IAAY,EACZ,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,SAAS,IAAI,IAAI,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,IAAY,EACZ,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,WAAW,SAAS,IAAI,IAAI,UAAU,EAAE,CAAA,WAAuB,CAAA,EAAE;YAClG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAY,EAAE,MAA0B,EAAE,OAAwB;QACvE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,SAAS,IAAI,IAAI,UAAU,EAAE;YACrE,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;;;;OAIG;IACH,MAAM,CAAC,QAAgB,EAAE,MAA0B,EAAE,OAAwB;QAC3E,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,SAAS,IAAI,IAAI,YAAY,QAAQ,OAAO,EAAE;YACtF,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,IAAI,CAAC,QAAgB,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,SAAS,IAAI,IAAI,YAAY,QAAQ,OAAO,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -155,7 +155,7 @@ export interface SkillGetResponse {
|
|
|
155
155
|
listed: boolean;
|
|
156
156
|
namespace: string;
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
158
|
+
* Organization ID of the skill owner (from namespace)
|
|
159
159
|
*/
|
|
160
160
|
owner: string | null;
|
|
161
161
|
prompt: string;
|
|
@@ -233,7 +233,7 @@ export interface SkillListParams extends SkillsPageParams {
|
|
|
233
233
|
*/
|
|
234
234
|
namespace?: string;
|
|
235
235
|
/**
|
|
236
|
-
* Filter by the skill owner's
|
|
236
|
+
* Filter by the skill owner's organization ID.
|
|
237
237
|
*/
|
|
238
238
|
ownerId?: string;
|
|
239
239
|
/**
|
|
@@ -155,7 +155,7 @@ export interface SkillGetResponse {
|
|
|
155
155
|
listed: boolean;
|
|
156
156
|
namespace: string;
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
158
|
+
* Organization ID of the skill owner (from namespace)
|
|
159
159
|
*/
|
|
160
160
|
owner: string | null;
|
|
161
161
|
prompt: string;
|
|
@@ -233,7 +233,7 @@ export interface SkillListParams extends SkillsPageParams {
|
|
|
233
233
|
*/
|
|
234
234
|
namespace?: string;
|
|
235
235
|
/**
|
|
236
|
-
* Filter by the skill owner's
|
|
236
|
+
* Filter by the skill owner's organization ID.
|
|
237
237
|
*/
|
|
238
238
|
ownerId?: string;
|
|
239
239
|
/**
|
|
@@ -6,15 +6,23 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class Votes extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Upvote or downvote a skill. Updates existing vote if one
|
|
9
|
+
* Deprecated (SMI-1505). Upvote or downvote a skill. Updates existing vote if one
|
|
10
|
+
* exists.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated
|
|
10
13
|
*/
|
|
11
14
|
create(slug: string, params: VoteCreateParams, options?: RequestOptions): APIPromise<SkillVoteResponse>;
|
|
12
15
|
/**
|
|
13
|
-
* Remove vote from a skill
|
|
16
|
+
* [Deprecated] Remove vote from a skill
|
|
17
|
+
*
|
|
18
|
+
* @deprecated
|
|
14
19
|
*/
|
|
15
20
|
delete(slug: string, params: VoteDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
16
21
|
/**
|
|
17
|
-
* Get upvote/downvote counts and current user's vote (if
|
|
22
|
+
* Deprecated (SMI-1505). Get upvote/downvote counts and current user's vote (if
|
|
23
|
+
* authenticated).
|
|
24
|
+
*
|
|
25
|
+
* @deprecated
|
|
18
26
|
*/
|
|
19
27
|
get(slug: string, params: VoteGetParams, options?: RequestOptions): APIPromise<SkillVoteCounts>;
|
|
20
28
|
}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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"}
|
|
@@ -6,15 +6,23 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class Votes extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Upvote or downvote a skill. Updates existing vote if one
|
|
9
|
+
* Deprecated (SMI-1505). Upvote or downvote a skill. Updates existing vote if one
|
|
10
|
+
* exists.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated
|
|
10
13
|
*/
|
|
11
14
|
create(slug: string, params: VoteCreateParams, options?: RequestOptions): APIPromise<SkillVoteResponse>;
|
|
12
15
|
/**
|
|
13
|
-
* Remove vote from a skill
|
|
16
|
+
* [Deprecated] Remove vote from a skill
|
|
17
|
+
*
|
|
18
|
+
* @deprecated
|
|
14
19
|
*/
|
|
15
20
|
delete(slug: string, params: VoteDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
16
21
|
/**
|
|
17
|
-
* Get upvote/downvote counts and current user's vote (if
|
|
22
|
+
* Deprecated (SMI-1505). Get upvote/downvote counts and current user's vote (if
|
|
23
|
+
* authenticated).
|
|
24
|
+
*
|
|
25
|
+
* @deprecated
|
|
18
26
|
*/
|
|
19
27
|
get(slug: string, params: VoteGetParams, options?: RequestOptions): APIPromise<SkillVoteCounts>;
|
|
20
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"votes.d.ts","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
|
|
1
|
+
{"version":3,"file":"votes.d.ts","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"}
|
|
@@ -10,14 +10,19 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
10
10
|
*/
|
|
11
11
|
class Votes extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
|
-
* Upvote or downvote a skill. Updates existing vote if one
|
|
13
|
+
* Deprecated (SMI-1505). Upvote or downvote a skill. Updates existing vote if one
|
|
14
|
+
* exists.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated
|
|
14
17
|
*/
|
|
15
18
|
create(slug, params, options) {
|
|
16
19
|
const { namespace, ...body } = params;
|
|
17
20
|
return this._client.post((0, path_1.path) `/skills/${namespace}/${slug}/vote`, { body, ...options });
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
20
|
-
* Remove vote from a skill
|
|
23
|
+
* [Deprecated] Remove vote from a skill
|
|
24
|
+
*
|
|
25
|
+
* @deprecated
|
|
21
26
|
*/
|
|
22
27
|
delete(slug, params, options) {
|
|
23
28
|
const { namespace } = params;
|
|
@@ -27,7 +32,10 @@ class Votes extends resource_1.APIResource {
|
|
|
27
32
|
});
|
|
28
33
|
}
|
|
29
34
|
/**
|
|
30
|
-
* Get upvote/downvote counts and current user's vote (if
|
|
35
|
+
* Deprecated (SMI-1505). Get upvote/downvote counts and current user's vote (if
|
|
36
|
+
* authenticated).
|
|
37
|
+
*
|
|
38
|
+
* @deprecated
|
|
31
39
|
*/
|
|
32
40
|
get(slug, params, options) {
|
|
33
41
|
const { namespace } = params;
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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"}
|
|
@@ -7,14 +7,19 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
7
7
|
*/
|
|
8
8
|
export class Votes extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Upvote or downvote a skill. Updates existing vote if one
|
|
10
|
+
* Deprecated (SMI-1505). Upvote or downvote a skill. Updates existing vote if one
|
|
11
|
+
* exists.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated
|
|
11
14
|
*/
|
|
12
15
|
create(slug, params, options) {
|
|
13
16
|
const { namespace, ...body } = params;
|
|
14
17
|
return this._client.post(path `/skills/${namespace}/${slug}/vote`, { body, ...options });
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
|
-
* Remove vote from a skill
|
|
20
|
+
* [Deprecated] Remove vote from a skill
|
|
21
|
+
*
|
|
22
|
+
* @deprecated
|
|
18
23
|
*/
|
|
19
24
|
delete(slug, params, options) {
|
|
20
25
|
const { namespace } = params;
|
|
@@ -24,7 +29,10 @@ export class Votes extends APIResource {
|
|
|
24
29
|
});
|
|
25
30
|
}
|
|
26
31
|
/**
|
|
27
|
-
* Get upvote/downvote counts and current user's vote (if
|
|
32
|
+
* Deprecated (SMI-1505). Get upvote/downvote counts and current user's vote (if
|
|
33
|
+
* authenticated).
|
|
34
|
+
*
|
|
35
|
+
* @deprecated
|
|
28
36
|
*/
|
|
29
37
|
get(slug, params, options) {
|
|
30
38
|
const { namespace } = params;
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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"}
|
package/resources/tokens.d.mts
CHANGED
|
@@ -5,6 +5,11 @@ export declare class Tokens extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Create a service token for machine-to-machine authentication. Accepts API key or
|
|
7
7
|
* bearer token. Optionally apply restrictions.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const createTokenResponse = await client.tokens.create();
|
|
12
|
+
* ```
|
|
8
13
|
*/
|
|
9
14
|
create(body?: TokenCreateParams | null | undefined, options?: RequestOptions): APIPromise<CreateTokenResponse>;
|
|
10
15
|
}
|
|
@@ -53,6 +58,12 @@ export interface Constraint {
|
|
|
53
58
|
ttl?: string | number;
|
|
54
59
|
}
|
|
55
60
|
export interface CreateTokenRequest {
|
|
61
|
+
/**
|
|
62
|
+
* Optional organization ID to scope the token to. When provided, the token is
|
|
63
|
+
* minted with org context. The authenticated user must be an admin or owner of the
|
|
64
|
+
* organization.
|
|
65
|
+
*/
|
|
66
|
+
organizationId?: string;
|
|
56
67
|
/**
|
|
57
68
|
* Constraint objects to restrict the token. Each constraint may include a `ttl`
|
|
58
69
|
* field (max 24 hours). Default TTL is 1 hour. Maximum is 24 hours.
|
|
@@ -70,6 +81,12 @@ export interface CreateTokenResponse {
|
|
|
70
81
|
expiresAt: string;
|
|
71
82
|
}
|
|
72
83
|
export interface TokenCreateParams {
|
|
84
|
+
/**
|
|
85
|
+
* Optional organization ID to scope the token to. When provided, the token is
|
|
86
|
+
* minted with org context. The authenticated user must be an admin or owner of the
|
|
87
|
+
* organization.
|
|
88
|
+
*/
|
|
89
|
+
organizationId?: string;
|
|
73
90
|
/**
|
|
74
91
|
* Constraint objects to restrict the token. Each constraint may include a `ttl`
|
|
75
92
|
* field (max 24 hours). Default TTL is 1 hour. Maximum is 24 hours.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.mts","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"tokens.d.mts","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;OAQG;IACH,MAAM,CACJ,IAAI,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAGnC;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,KAAK,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;IAExE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;IAEhF;;;OAGG;IACH,SAAS,CAAC,EACN,aAAa,GACb,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,KAAK,CAAC,aAAa,GAAG,SAAS,GAAG,YAAY,GAAG,QAAQ,CAAC,CAAC;IAE/D;;;;OAIG;IACH,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAExC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/tokens.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ export declare class Tokens extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Create a service token for machine-to-machine authentication. Accepts API key or
|
|
7
7
|
* bearer token. Optionally apply restrictions.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const createTokenResponse = await client.tokens.create();
|
|
12
|
+
* ```
|
|
8
13
|
*/
|
|
9
14
|
create(body?: TokenCreateParams | null | undefined, options?: RequestOptions): APIPromise<CreateTokenResponse>;
|
|
10
15
|
}
|
|
@@ -53,6 +58,12 @@ export interface Constraint {
|
|
|
53
58
|
ttl?: string | number;
|
|
54
59
|
}
|
|
55
60
|
export interface CreateTokenRequest {
|
|
61
|
+
/**
|
|
62
|
+
* Optional organization ID to scope the token to. When provided, the token is
|
|
63
|
+
* minted with org context. The authenticated user must be an admin or owner of the
|
|
64
|
+
* organization.
|
|
65
|
+
*/
|
|
66
|
+
organizationId?: string;
|
|
56
67
|
/**
|
|
57
68
|
* Constraint objects to restrict the token. Each constraint may include a `ttl`
|
|
58
69
|
* field (max 24 hours). Default TTL is 1 hour. Maximum is 24 hours.
|
|
@@ -70,6 +81,12 @@ export interface CreateTokenResponse {
|
|
|
70
81
|
expiresAt: string;
|
|
71
82
|
}
|
|
72
83
|
export interface TokenCreateParams {
|
|
84
|
+
/**
|
|
85
|
+
* Optional organization ID to scope the token to. When provided, the token is
|
|
86
|
+
* minted with org context. The authenticated user must be an admin or owner of the
|
|
87
|
+
* organization.
|
|
88
|
+
*/
|
|
89
|
+
organizationId?: string;
|
|
73
90
|
/**
|
|
74
91
|
* Constraint objects to restrict the token. Each constraint may include a `ttl`
|
|
75
92
|
* field (max 24 hours). Default TTL is 1 hour. Maximum is 24 hours.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;OAQG;IACH,MAAM,CACJ,IAAI,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAGnC;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,KAAK,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;IAExE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;IAEhF;;;OAGG;IACH,SAAS,CAAC,EACN,aAAa,GACb,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,KAAK,CAAC,aAAa,GAAG,SAAS,GAAG,YAAY,GAAG,QAAQ,CAAC,CAAC;IAE/D;;;;OAIG;IACH,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAExC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/tokens.js
CHANGED
|
@@ -7,6 +7,11 @@ class Tokens extends resource_1.APIResource {
|
|
|
7
7
|
/**
|
|
8
8
|
* Create a service token for machine-to-machine authentication. Accepts API key or
|
|
9
9
|
* bearer token. Optionally apply restrictions.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const createTokenResponse = await client.tokens.create();
|
|
14
|
+
* ```
|
|
10
15
|
*/
|
|
11
16
|
create(body = {}, options) {
|
|
12
17
|
return this._client.post('/tokens', { body, ...options });
|
package/resources/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,MAAO,SAAQ,sBAAW;IACrC
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;OAQG;IACH,MAAM,CACJ,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF;AAhBD,wBAgBC"}
|
package/resources/tokens.mjs
CHANGED
|
@@ -4,6 +4,11 @@ export class Tokens extends APIResource {
|
|
|
4
4
|
/**
|
|
5
5
|
* Create a service token for machine-to-machine authentication. Accepts API key or
|
|
6
6
|
* bearer token. Optionally apply restrictions.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const createTokenResponse = await client.tokens.create();
|
|
11
|
+
* ```
|
|
7
12
|
*/
|
|
8
13
|
create(body = {}, options) {
|
|
9
14
|
return this._client.post('/tokens', { body, ...options });
|
package/resources/tokens.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.mjs","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"tokens.mjs","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;OAQG;IACH,MAAM,CACJ,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
NamespaceSetResponse,
|
|
62
62
|
Namespaces,
|
|
63
63
|
} from './resources/namespaces/namespaces';
|
|
64
|
+
import { Organizations } from './resources/organizations/organizations';
|
|
64
65
|
import {
|
|
65
66
|
BuildConfig,
|
|
66
67
|
DeploymentTarget,
|
|
@@ -830,6 +831,7 @@ export class Smithery {
|
|
|
830
831
|
*/
|
|
831
832
|
skills: API.Skills = new API.Skills(this);
|
|
832
833
|
namespaces: API.Namespaces = new API.Namespaces(this);
|
|
834
|
+
organizations: API.Organizations = new API.Organizations(this);
|
|
833
835
|
tokens: API.Tokens = new API.Tokens(this);
|
|
834
836
|
connections: API.Connections = new API.Connections(this);
|
|
835
837
|
}
|
|
@@ -839,6 +841,7 @@ Smithery.Servers = Servers;
|
|
|
839
841
|
Smithery.Uplink = Uplink;
|
|
840
842
|
Smithery.Skills = Skills;
|
|
841
843
|
Smithery.Namespaces = Namespaces;
|
|
844
|
+
Smithery.Organizations = Organizations;
|
|
842
845
|
Smithery.Tokens = Tokens;
|
|
843
846
|
Smithery.Connections = Connections;
|
|
844
847
|
|
|
@@ -913,6 +916,8 @@ export declare namespace Smithery {
|
|
|
913
916
|
type NamespaceListParams as NamespaceListParams,
|
|
914
917
|
};
|
|
915
918
|
|
|
919
|
+
export { Organizations as Organizations };
|
|
920
|
+
|
|
916
921
|
export {
|
|
917
922
|
Tokens as Tokens,
|
|
918
923
|
type Constraint as Constraint,
|
|
@@ -224,13 +224,6 @@ export interface CreateConnectionRequest {
|
|
|
224
224
|
* Human-readable name (optional, defaults to connection ID)
|
|
225
225
|
*/
|
|
226
226
|
name?: string;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Webhook callback URL for server-to-client messages (HTTPS). When set, the MCP
|
|
230
|
-
* server will POST notifications and requests to this URL instead of Connect's
|
|
231
|
-
* built-in event polling. This field is unstable and may change before GA.
|
|
232
|
-
*/
|
|
233
|
-
unstableCallbackUrl?: string;
|
|
234
227
|
}
|
|
235
228
|
|
|
236
229
|
export interface ConnectionDeleteResponse {
|
|
@@ -258,13 +251,6 @@ export interface ConnectionCreateParams {
|
|
|
258
251
|
* Human-readable name (optional, defaults to connection ID)
|
|
259
252
|
*/
|
|
260
253
|
name?: string;
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Webhook callback URL for server-to-client messages (HTTPS). When set, the MCP
|
|
264
|
-
* server will POST notifications and requests to this URL instead of Connect's
|
|
265
|
-
* built-in event polling. This field is unstable and may change before GA.
|
|
266
|
-
*/
|
|
267
|
-
unstableCallbackUrl?: string;
|
|
268
254
|
}
|
|
269
255
|
|
|
270
256
|
export interface ConnectionListParams {
|
|
@@ -324,14 +310,6 @@ export interface ConnectionSetParams {
|
|
|
324
310
|
* Body param: Human-readable name (optional, defaults to connection ID)
|
|
325
311
|
*/
|
|
326
312
|
name?: string;
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* Body param: Webhook callback URL for server-to-client messages (HTTPS). When
|
|
330
|
-
* set, the MCP server will POST notifications and requests to this URL instead of
|
|
331
|
-
* Connect's built-in event polling. This field is unstable and may change before
|
|
332
|
-
* GA.
|
|
333
|
-
*/
|
|
334
|
-
unstableCallbackUrl?: string;
|
|
335
313
|
}
|
|
336
314
|
|
|
337
315
|
Connections.Mcp = Mcp;
|
package/src/resources/index.ts
CHANGED
|
@@ -63,9 +63,10 @@ export class Namespaces extends APIResource {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
* Create a new namespace owned by the authenticated user. This
|
|
67
|
-
* idempotent - if the namespace already exists and is owned by the
|
|
68
|
-
* success.
|
|
66
|
+
* Create a new namespace owned by the authenticated user or an organization. This
|
|
67
|
+
* endpoint is idempotent - if the namespace already exists and is owned by the
|
|
68
|
+
* user/org, returns success. Pass organizationId in the request body to create an
|
|
69
|
+
* org-owned namespace.
|
|
69
70
|
*
|
|
70
71
|
* @example
|
|
71
72
|
* ```ts
|
|
@@ -0,0 +1,78 @@
|
|
|
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 { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class APIKeys extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates an API key owned by the organization. Requires admin role.
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
orgID: string,
|
|
14
|
+
body: APIKeyCreateParams,
|
|
15
|
+
options?: RequestOptions,
|
|
16
|
+
): APIPromise<APIKeyCreateResponse> {
|
|
17
|
+
return this._client.post(path`/organizations/${orgID}/api-keys`, { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Returns all API keys belonging to the organization. Requires admin role. Key
|
|
22
|
+
* values are not included in the response.
|
|
23
|
+
*/
|
|
24
|
+
list(orgID: string, options?: RequestOptions): APIPromise<APIKeyListResponse> {
|
|
25
|
+
return this._client.get(path`/organizations/${orgID}/api-keys`, options);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Deletes an API key belonging to the organization. Requires admin role.
|
|
30
|
+
*/
|
|
31
|
+
delete(
|
|
32
|
+
keyID: string,
|
|
33
|
+
params: APIKeyDeleteParams,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<APIKeyDeleteResponse> {
|
|
36
|
+
const { orgId } = params;
|
|
37
|
+
return this._client.delete(path`/organizations/${orgId}/api-keys/${keyID}`, options);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface APIKeyCreateResponse {
|
|
42
|
+
id: string;
|
|
43
|
+
|
|
44
|
+
createdAt: string;
|
|
45
|
+
|
|
46
|
+
key: string;
|
|
47
|
+
|
|
48
|
+
name: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface APIKeyListResponse {
|
|
52
|
+
apiKeys: Array<unknown>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface APIKeyDeleteResponse {
|
|
56
|
+
success: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface APIKeyCreateParams {
|
|
60
|
+
/**
|
|
61
|
+
* Name for the team API key
|
|
62
|
+
*/
|
|
63
|
+
name: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface APIKeyDeleteParams {
|
|
67
|
+
orgId: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export declare namespace APIKeys {
|
|
71
|
+
export {
|
|
72
|
+
type APIKeyCreateResponse as APIKeyCreateResponse,
|
|
73
|
+
type APIKeyListResponse as APIKeyListResponse,
|
|
74
|
+
type APIKeyDeleteResponse as APIKeyDeleteResponse,
|
|
75
|
+
type APIKeyCreateParams as APIKeyCreateParams,
|
|
76
|
+
type APIKeyDeleteParams as APIKeyDeleteParams,
|
|
77
|
+
};
|
|
78
|
+
}
|