@smithery/api 0.57.0 → 0.59.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 +33 -0
- package/client.d.mts +2 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -4
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -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 +45 -6
- package/resources/connections/connections.d.mts.map +1 -1
- package/resources/connections/connections.d.ts +45 -6
- package/resources/connections/connections.d.ts.map +1 -1
- package/resources/connections/connections.js +4 -4
- package/resources/connections/connections.js.map +1 -1
- package/resources/connections/connections.mjs +4 -4
- package/resources/connections/connections.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/servers/servers.d.mts +2 -1
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +2 -1
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js.map +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/src/client.ts +19 -24
- package/src/core/pagination.ts +0 -59
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/connections/connections.ts +56 -5
- package/src/resources/index.ts +1 -1
- package/src/resources/servers/servers.ts +2 -1
- package/src/resources/skills.ts +427 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- 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,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';
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { PagePromise, ReviewsPage, type ReviewsPageParams } from '../../core/pagination';
|
|
6
|
-
import { buildHeaders } from '../../internal/headers';
|
|
7
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
-
import { path } from '../../internal/utils/path';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Discover and search reusable prompt-based skills for MCP servers
|
|
12
|
-
*/
|
|
13
|
-
export class Reviews extends APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Deprecated (SMI-1505). Submit a review for a skill. Updates existing review if
|
|
16
|
-
* one already exists.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated
|
|
19
|
-
*/
|
|
20
|
-
create(
|
|
21
|
-
slug: string,
|
|
22
|
-
params: ReviewCreateParams,
|
|
23
|
-
options?: RequestOptions,
|
|
24
|
-
): APIPromise<CreateReviewResponse> {
|
|
25
|
-
const { namespace, ...body } = params;
|
|
26
|
-
return this._client.post(path`/skills/${namespace}/${slug}/reviews`, { body, ...options });
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Deprecated (SMI-1505). Get paginated list of reviews with vote counts.
|
|
31
|
-
*
|
|
32
|
-
* @deprecated
|
|
33
|
-
*/
|
|
34
|
-
list(
|
|
35
|
-
slug: string,
|
|
36
|
-
params: ReviewListParams,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): PagePromise<ReviewItemsReviewsPage, ReviewItem> {
|
|
39
|
-
const { namespace, ...query } = params;
|
|
40
|
-
return this._client.getAPIList(path`/skills/${namespace}/${slug}/reviews`, ReviewsPage<ReviewItem>, {
|
|
41
|
-
query,
|
|
42
|
-
...options,
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* [Deprecated] Delete your review
|
|
48
|
-
*
|
|
49
|
-
* @deprecated
|
|
50
|
-
*/
|
|
51
|
-
delete(slug: string, params: ReviewDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
52
|
-
const { namespace } = params;
|
|
53
|
-
return this._client.delete(path`/skills/${namespace}/${slug}/reviews`, {
|
|
54
|
-
...options,
|
|
55
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* [Deprecated] Remove vote from a review
|
|
61
|
-
*
|
|
62
|
-
* @deprecated
|
|
63
|
-
*/
|
|
64
|
-
unvote(reviewID: string, params: ReviewUnvoteParams, options?: RequestOptions): APIPromise<void> {
|
|
65
|
-
const { namespace, slug } = params;
|
|
66
|
-
return this._client.delete(path`/skills/${namespace}/${slug}/reviews/${reviewID}/vote`, {
|
|
67
|
-
...options,
|
|
68
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Deprecated (SMI-1505). Upvote or downvote a review. Updates existing vote if one
|
|
74
|
-
* exists.
|
|
75
|
-
*
|
|
76
|
-
* @deprecated
|
|
77
|
-
*/
|
|
78
|
-
vote(reviewID: string, params: ReviewVoteParams, options?: RequestOptions): APIPromise<ReviewVoteResponse> {
|
|
79
|
-
const { namespace, slug, ...body } = params;
|
|
80
|
-
return this._client.post(path`/skills/${namespace}/${slug}/reviews/${reviewID}/vote`, {
|
|
81
|
-
body,
|
|
82
|
-
...options,
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export type ReviewItemsReviewsPage = ReviewsPage<ReviewItem>;
|
|
88
|
-
|
|
89
|
-
export interface CreateReviewRequest {
|
|
90
|
-
/**
|
|
91
|
-
* Review text (required)
|
|
92
|
-
*/
|
|
93
|
-
review: string;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Optional agent model name (e.g., 'claude-3.5-sonnet')
|
|
97
|
-
*/
|
|
98
|
-
agentModel?: string;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Optional vote direction to submit with review
|
|
102
|
-
*/
|
|
103
|
-
vote?: 'up' | 'down';
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface CreateReviewResponse {
|
|
107
|
-
/**
|
|
108
|
-
* Review ID
|
|
109
|
-
*/
|
|
110
|
-
id: string;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* ISO 8601 timestamp
|
|
114
|
-
*/
|
|
115
|
-
createdAt: string;
|
|
116
|
-
|
|
117
|
-
review: string;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Vote direction if submitted with review
|
|
121
|
-
*/
|
|
122
|
-
vote: 'up' | 'down' | null;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface ReviewError {
|
|
126
|
-
error: string;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export interface ReviewItem {
|
|
130
|
-
id: string;
|
|
131
|
-
|
|
132
|
-
agentClient: string | null;
|
|
133
|
-
|
|
134
|
-
agentModel: string | null;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* ISO 8601 timestamp
|
|
138
|
-
*/
|
|
139
|
-
createdAt: string;
|
|
140
|
-
|
|
141
|
-
downvotes: number;
|
|
142
|
-
|
|
143
|
-
review: string;
|
|
144
|
-
|
|
145
|
-
upvotes: number;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface ReviewVoteRequest {
|
|
149
|
-
/**
|
|
150
|
-
* Vote direction
|
|
151
|
-
*/
|
|
152
|
-
vote: 'up' | 'down';
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export interface ReviewVoteResponse {
|
|
156
|
-
createdAt: string;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Vote direction
|
|
160
|
-
*/
|
|
161
|
-
vote: 'up' | 'down';
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export interface ReviewsListResponse {
|
|
165
|
-
pagination: ReviewsListResponse.Pagination;
|
|
166
|
-
|
|
167
|
-
reviews: Array<ReviewItem>;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export namespace ReviewsListResponse {
|
|
171
|
-
export interface Pagination {
|
|
172
|
-
currentPage: number;
|
|
173
|
-
|
|
174
|
-
pageSize: number;
|
|
175
|
-
|
|
176
|
-
totalCount: number;
|
|
177
|
-
|
|
178
|
-
totalPages: number;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export interface ReviewCreateParams {
|
|
183
|
-
/**
|
|
184
|
-
* Path param
|
|
185
|
-
*/
|
|
186
|
-
namespace: string;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Body param: Review text (required)
|
|
190
|
-
*/
|
|
191
|
-
review: string;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Body param: Optional agent model name (e.g., 'claude-3.5-sonnet')
|
|
195
|
-
*/
|
|
196
|
-
agentModel?: string;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Body param: Optional vote direction to submit with review
|
|
200
|
-
*/
|
|
201
|
-
vote?: 'up' | 'down';
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export interface ReviewListParams extends ReviewsPageParams {
|
|
205
|
-
/**
|
|
206
|
-
* Path param
|
|
207
|
-
*/
|
|
208
|
-
namespace: string;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export interface ReviewDeleteParams {
|
|
212
|
-
namespace: string;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export interface ReviewUnvoteParams {
|
|
216
|
-
namespace: string;
|
|
217
|
-
|
|
218
|
-
slug: string;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export interface ReviewVoteParams {
|
|
222
|
-
/**
|
|
223
|
-
* Path param
|
|
224
|
-
*/
|
|
225
|
-
namespace: string;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Path param
|
|
229
|
-
*/
|
|
230
|
-
slug: string;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Body param: Vote direction
|
|
234
|
-
*/
|
|
235
|
-
vote: 'up' | 'down';
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export declare namespace Reviews {
|
|
239
|
-
export {
|
|
240
|
-
type CreateReviewRequest as CreateReviewRequest,
|
|
241
|
-
type CreateReviewResponse as CreateReviewResponse,
|
|
242
|
-
type ReviewError as ReviewError,
|
|
243
|
-
type ReviewItem as ReviewItem,
|
|
244
|
-
type ReviewVoteRequest as ReviewVoteRequest,
|
|
245
|
-
type ReviewVoteResponse as ReviewVoteResponse,
|
|
246
|
-
type ReviewsListResponse as ReviewsListResponse,
|
|
247
|
-
type ReviewItemsReviewsPage as ReviewItemsReviewsPage,
|
|
248
|
-
type ReviewCreateParams as ReviewCreateParams,
|
|
249
|
-
type ReviewListParams as ReviewListParams,
|
|
250
|
-
type ReviewDeleteParams as ReviewDeleteParams,
|
|
251
|
-
type ReviewUnvoteParams as ReviewUnvoteParams,
|
|
252
|
-
type ReviewVoteParams as ReviewVoteParams,
|
|
253
|
-
};
|
|
254
|
-
}
|