@smithery/api 0.52.0 → 0.54.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 +29 -0
- package/client.d.mts +15 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -4
- package/client.d.ts.map +1 -1
- package/client.js +11 -2
- package/client.js.map +1 -1
- package/client.mjs +11 -2
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +23 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +23 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +23 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +21 -0
- package/core/pagination.mjs.map +1 -1
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/servers/icon.d.mts +3 -0
- package/resources/servers/icon.d.mts.map +1 -1
- package/resources/servers/icon.d.ts +3 -0
- package/resources/servers/icon.d.ts.map +1 -1
- package/resources/servers/icon.js +3 -0
- package/resources/servers/icon.js.map +1 -1
- package/resources/servers/icon.mjs +3 -0
- package/resources/servers/icon.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/logs.d.mts +3 -0
- package/resources/servers/logs.d.mts.map +1 -1
- package/resources/servers/logs.d.ts +3 -0
- package/resources/servers/logs.d.ts.map +1 -1
- package/resources/servers/logs.js +3 -0
- package/resources/servers/logs.js.map +1 -1
- package/resources/servers/logs.mjs +3 -0
- package/resources/servers/logs.mjs.map +1 -1
- package/resources/servers/releases.d.mts +54 -52
- package/resources/servers/releases.d.mts.map +1 -1
- package/resources/servers/releases.d.ts +54 -52
- package/resources/servers/releases.d.ts.map +1 -1
- package/resources/servers/releases.js +11 -4
- package/resources/servers/releases.js.map +1 -1
- package/resources/servers/releases.mjs +11 -4
- package/resources/servers/releases.mjs.map +1 -1
- package/resources/servers/repo.d.mts +3 -0
- package/resources/servers/repo.d.mts.map +1 -1
- package/resources/servers/repo.d.ts +3 -0
- package/resources/servers/repo.d.ts.map +1 -1
- package/resources/servers/repo.js +3 -0
- package/resources/servers/repo.js.map +1 -1
- package/resources/servers/repo.mjs +3 -0
- package/resources/servers/repo.mjs.map +1 -1
- package/resources/servers/secrets.d.mts +3 -0
- package/resources/servers/secrets.d.mts.map +1 -1
- package/resources/servers/secrets.d.ts +3 -0
- package/resources/servers/secrets.d.ts.map +1 -1
- package/resources/servers/secrets.js +3 -0
- package/resources/servers/secrets.js.map +1 -1
- package/resources/servers/secrets.mjs +3 -0
- package/resources/servers/secrets.mjs.map +1 -1
- package/resources/servers/servers.d.mts +5 -2
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +5 -2
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +3 -0
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +3 -0
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/skills/index.d.mts +1 -1
- package/resources/skills/index.d.mts.map +1 -1
- package/resources/skills/index.d.ts +1 -1
- package/resources/skills/index.d.ts.map +1 -1
- package/resources/skills/index.js.map +1 -1
- package/resources/skills/index.mjs.map +1 -1
- package/resources/skills/reviews.d.mts +3 -0
- package/resources/skills/reviews.d.mts.map +1 -1
- package/resources/skills/reviews.d.ts +3 -0
- package/resources/skills/reviews.d.ts.map +1 -1
- package/resources/skills/reviews.js +3 -0
- package/resources/skills/reviews.js.map +1 -1
- package/resources/skills/reviews.mjs +3 -0
- package/resources/skills/reviews.mjs.map +1 -1
- package/resources/skills/skills.d.mts +12 -1
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts +12 -1
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +16 -0
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +16 -0
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/votes.d.mts +3 -0
- package/resources/skills/votes.d.mts.map +1 -1
- package/resources/skills/votes.d.ts +3 -0
- package/resources/skills/votes.d.ts.map +1 -1
- package/resources/skills/votes.js +3 -0
- package/resources/skills/votes.js.map +1 -1
- package/resources/skills/votes.mjs +3 -0
- package/resources/skills/votes.mjs.map +1 -1
- package/resources/tokens.d.mts +23 -9
- package/resources/tokens.d.mts.map +1 -1
- package/resources/tokens.d.ts +23 -9
- package/resources/tokens.d.ts.map +1 -1
- package/resources/uplink.d.mts +3 -0
- package/resources/uplink.d.mts.map +1 -1
- package/resources/uplink.d.ts +3 -0
- package/resources/uplink.d.ts.map +1 -1
- package/resources/uplink.js +3 -0
- package/resources/uplink.js.map +1 -1
- package/resources/uplink.mjs +3 -0
- package/resources/uplink.mjs.map +1 -1
- package/src/client.ts +21 -5
- package/src/core/pagination.ts +59 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/servers/icon.ts +3 -0
- package/src/resources/servers/index.ts +2 -0
- package/src/resources/servers/logs.ts +3 -0
- package/src/resources/servers/releases.ts +65 -56
- package/src/resources/servers/repo.ts +3 -0
- package/src/resources/servers/secrets.ts +3 -0
- package/src/resources/servers/servers.ts +7 -0
- package/src/resources/skills/index.ts +1 -0
- package/src/resources/skills/reviews.ts +3 -0
- package/src/resources/skills/skills.ts +22 -0
- package/src/resources/skills/votes.ts +3 -0
- package/src/resources/tokens.ts +22 -9
- package/src/resources/uplink.ts +3 -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
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { PagePromise, ReleasesPage, type ReleasesPageParams } from '../../core/pagination';
|
|
5
6
|
import { Stream } from '../../core/streaming';
|
|
6
7
|
import { type Uploadable } from '../../core/uploads';
|
|
7
8
|
import { buildHeaders } from '../../internal/headers';
|
|
@@ -9,6 +10,9 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
9
10
|
import { multipartFormRequestOptions } from '../../internal/uploads';
|
|
10
11
|
import { path } from '../../internal/utils/path';
|
|
11
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Browse the MCP server registry, manage server configuration, and handle deployments
|
|
15
|
+
*/
|
|
12
16
|
export class Releases extends APIResource {
|
|
13
17
|
/**
|
|
14
18
|
* List releases ordered by most recent first. Logs are omitted — fetch a specific
|
|
@@ -16,13 +20,24 @@ export class Releases extends APIResource {
|
|
|
16
20
|
*
|
|
17
21
|
* @example
|
|
18
22
|
* ```ts
|
|
19
|
-
*
|
|
23
|
+
* // Automatically fetches more pages as needed.
|
|
24
|
+
* for await (const releaseListResponse of client.servers.releases.list(
|
|
20
25
|
* 'qualifiedName',
|
|
21
|
-
* )
|
|
26
|
+
* )) {
|
|
27
|
+
* // ...
|
|
28
|
+
* }
|
|
22
29
|
* ```
|
|
23
30
|
*/
|
|
24
|
-
list(
|
|
25
|
-
|
|
31
|
+
list(
|
|
32
|
+
qualifiedName: string,
|
|
33
|
+
query: ReleaseListParams | null | undefined = {},
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): PagePromise<ReleaseListResponsesReleasesPage, ReleaseListResponse> {
|
|
36
|
+
return this._client.getAPIList(
|
|
37
|
+
path`/servers/${qualifiedName}/releases`,
|
|
38
|
+
ReleasesPage<ReleaseListResponse>,
|
|
39
|
+
{ query, ...options },
|
|
40
|
+
);
|
|
26
41
|
}
|
|
27
42
|
|
|
28
43
|
/**
|
|
@@ -110,6 +125,8 @@ export class Releases extends APIResource {
|
|
|
110
125
|
}
|
|
111
126
|
}
|
|
112
127
|
|
|
128
|
+
export type ReleaseListResponsesReleasesPage = ReleasesPage<ReleaseListResponse>;
|
|
129
|
+
|
|
113
130
|
export type DeployPayload =
|
|
114
131
|
| HostedDeployPayload
|
|
115
132
|
| ExternalDeployPayload
|
|
@@ -165,8 +182,6 @@ export namespace HostedDeployPayload {
|
|
|
165
182
|
export interface ServerCard {
|
|
166
183
|
serverInfo: ServerCard.ServerInfo;
|
|
167
184
|
|
|
168
|
-
authentication?: ServerCard.Authentication;
|
|
169
|
-
|
|
170
185
|
eventTopics?: Array<ServerCard.EventTopic>;
|
|
171
186
|
|
|
172
187
|
prompts?: Array<ServerCard.Prompt>;
|
|
@@ -205,12 +220,6 @@ export namespace ServerCard {
|
|
|
205
220
|
}
|
|
206
221
|
}
|
|
207
222
|
|
|
208
|
-
export interface Authentication {
|
|
209
|
-
required: boolean;
|
|
210
|
-
|
|
211
|
-
schemes: Array<string>;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
223
|
export interface EventTopic {
|
|
215
224
|
name: string;
|
|
216
225
|
|
|
@@ -386,59 +395,55 @@ export namespace StdioDeployPayload {
|
|
|
386
395
|
}
|
|
387
396
|
}
|
|
388
397
|
|
|
389
|
-
export
|
|
390
|
-
|
|
391
|
-
export namespace ReleaseListResponse {
|
|
392
|
-
export interface ReleaseListResponseItem {
|
|
393
|
-
id: string;
|
|
398
|
+
export interface ReleaseListResponse {
|
|
399
|
+
id: string;
|
|
394
400
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
401
|
+
/**
|
|
402
|
+
* ISO 8601 timestamp of when the release was created.
|
|
403
|
+
*/
|
|
404
|
+
createdAt: string;
|
|
399
405
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
406
|
+
/**
|
|
407
|
+
* Current status: QUEUED, WORKING, SUCCESS, FAILURE, FAILURE_SCAN, AUTH_REQUIRED,
|
|
408
|
+
* CANCELLED, or INTERNAL_ERROR.
|
|
409
|
+
*/
|
|
410
|
+
status: string;
|
|
405
411
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
412
|
+
/**
|
|
413
|
+
* Release type: hosted_shttp (Smithery-hosted), external_shttp (external URL), or
|
|
414
|
+
* stdio (local binary).
|
|
415
|
+
*/
|
|
416
|
+
type: string;
|
|
411
417
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
418
|
+
/**
|
|
419
|
+
* ISO 8601 timestamp of the last status change.
|
|
420
|
+
*/
|
|
421
|
+
updatedAt: string;
|
|
416
422
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
423
|
+
/**
|
|
424
|
+
* Git branch this release was built from.
|
|
425
|
+
*/
|
|
426
|
+
branch?: string | null;
|
|
421
427
|
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
428
|
+
/**
|
|
429
|
+
* Git commit SHA that triggered this release.
|
|
430
|
+
*/
|
|
431
|
+
commit?: string | null;
|
|
426
432
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
433
|
+
/**
|
|
434
|
+
* Git commit message associated with this release.
|
|
435
|
+
*/
|
|
436
|
+
commitMessage?: string | null;
|
|
431
437
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
438
|
+
/**
|
|
439
|
+
* The MCP endpoint URL for connecting to this server.
|
|
440
|
+
*/
|
|
441
|
+
mcpUrl?: string;
|
|
436
442
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
443
|
+
/**
|
|
444
|
+
* Upstream MCP server URL. Present only for external releases.
|
|
445
|
+
*/
|
|
446
|
+
upstreamUrl?: string | null;
|
|
442
447
|
}
|
|
443
448
|
|
|
444
449
|
export interface ReleaseDeployResponse {
|
|
@@ -569,6 +574,8 @@ export interface ReleaseResumeResponse {
|
|
|
569
574
|
*/
|
|
570
575
|
export type ReleaseStreamResponse = string;
|
|
571
576
|
|
|
577
|
+
export interface ReleaseListParams extends ReleasesPageParams {}
|
|
578
|
+
|
|
572
579
|
export interface ReleaseDeployParams {
|
|
573
580
|
/**
|
|
574
581
|
* JSON-encoded release payload. See DeployPayload schema for structure.
|
|
@@ -627,6 +634,8 @@ export declare namespace Releases {
|
|
|
627
634
|
type ReleaseGetResponse as ReleaseGetResponse,
|
|
628
635
|
type ReleaseResumeResponse as ReleaseResumeResponse,
|
|
629
636
|
type ReleaseStreamResponse as ReleaseStreamResponse,
|
|
637
|
+
type ReleaseListResponsesReleasesPage as ReleaseListResponsesReleasesPage,
|
|
638
|
+
type ReleaseListParams as ReleaseListParams,
|
|
630
639
|
type ReleaseDeployParams as ReleaseDeployParams,
|
|
631
640
|
type ReleaseGetParams as ReleaseGetParams,
|
|
632
641
|
type ReleaseResumeParams as ReleaseResumeParams,
|
|
@@ -5,6 +5,9 @@ import { APIPromise } from '../../core/api-promise';
|
|
|
5
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
6
|
import { path } from '../../internal/utils/path';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Browse the MCP server registry, manage server configuration, and handle deployments
|
|
10
|
+
*/
|
|
8
11
|
export class Repo extends APIResource {
|
|
9
12
|
/**
|
|
10
13
|
* Partially update the GitHub repository connection settings. Only provided fields
|
|
@@ -5,6 +5,9 @@ import { APIPromise } from '../../core/api-promise';
|
|
|
5
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
6
|
import { path } from '../../internal/utils/path';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Browse the MCP server registry, manage server configuration, and handle deployments
|
|
10
|
+
*/
|
|
8
11
|
export class Secrets extends APIResource {
|
|
9
12
|
/**
|
|
10
13
|
* List secret names. Values are not returned.
|
|
@@ -25,7 +25,9 @@ import {
|
|
|
25
25
|
ReleaseDeployResponse,
|
|
26
26
|
ReleaseGetParams,
|
|
27
27
|
ReleaseGetResponse,
|
|
28
|
+
ReleaseListParams,
|
|
28
29
|
ReleaseListResponse,
|
|
30
|
+
ReleaseListResponsesReleasesPage,
|
|
29
31
|
ReleaseResumeParams,
|
|
30
32
|
ReleaseResumeResponse,
|
|
31
33
|
ReleaseStreamParams,
|
|
@@ -59,6 +61,9 @@ import { buildHeaders } from '../../internal/headers';
|
|
|
59
61
|
import { RequestOptions } from '../../internal/request-options';
|
|
60
62
|
import { path } from '../../internal/utils/path';
|
|
61
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Browse the MCP server registry, manage server configuration, and handle deployments
|
|
66
|
+
*/
|
|
62
67
|
export class Servers extends APIResource {
|
|
63
68
|
releases: ReleasesAPI.Releases = new ReleasesAPI.Releases(this._client);
|
|
64
69
|
logs: LogsAPI.Logs = new LogsAPI.Logs(this._client);
|
|
@@ -549,6 +554,8 @@ export declare namespace Servers {
|
|
|
549
554
|
type ReleaseGetResponse as ReleaseGetResponse,
|
|
550
555
|
type ReleaseResumeResponse as ReleaseResumeResponse,
|
|
551
556
|
type ReleaseStreamResponse as ReleaseStreamResponse,
|
|
557
|
+
type ReleaseListResponsesReleasesPage as ReleaseListResponsesReleasesPage,
|
|
558
|
+
type ReleaseListParams as ReleaseListParams,
|
|
552
559
|
type ReleaseDeployParams as ReleaseDeployParams,
|
|
553
560
|
type ReleaseGetParams as ReleaseGetParams,
|
|
554
561
|
type ReleaseResumeParams as ReleaseResumeParams,
|
|
@@ -7,6 +7,9 @@ import { buildHeaders } from '../../internal/headers';
|
|
|
7
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Discover and search reusable prompt-based skills for MCP servers
|
|
12
|
+
*/
|
|
10
13
|
export class Reviews extends APIResource {
|
|
11
14
|
/**
|
|
12
15
|
* Submit a review for a skill. Updates existing review if one already exists.
|
|
@@ -31,9 +31,13 @@ import {
|
|
|
31
31
|
} from './votes';
|
|
32
32
|
import { APIPromise } from '../../core/api-promise';
|
|
33
33
|
import { PagePromise, SkillsPage, type SkillsPageParams } from '../../core/pagination';
|
|
34
|
+
import { buildHeaders } from '../../internal/headers';
|
|
34
35
|
import { RequestOptions } from '../../internal/request-options';
|
|
35
36
|
import { path } from '../../internal/utils/path';
|
|
36
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Discover and search reusable prompt-based skills for MCP servers
|
|
40
|
+
*/
|
|
37
41
|
export class Skills extends APIResource {
|
|
38
42
|
votes: VotesAPI.Votes = new VotesAPI.Votes(this._client);
|
|
39
43
|
reviews: ReviewsAPI.Reviews = new ReviewsAPI.Reviews(this._client);
|
|
@@ -67,6 +71,19 @@ export class Skills extends APIResource {
|
|
|
67
71
|
return this._client.delete(path`/skills/${namespace}/${slug}`, options);
|
|
68
72
|
}
|
|
69
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Download a ZIP bundle containing all skill files, fetched via well-known
|
|
76
|
+
* endpoints.
|
|
77
|
+
*/
|
|
78
|
+
download(slug: string, params: SkillDownloadParams, options?: RequestOptions): APIPromise<Response> {
|
|
79
|
+
const { namespace } = params;
|
|
80
|
+
return this._client.get(path`/skills/${namespace}/${slug}/download`, {
|
|
81
|
+
...options,
|
|
82
|
+
headers: buildHeaders([{ Accept: 'application/zip' }, options?.headers]),
|
|
83
|
+
__binaryResponse: true,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
70
87
|
/**
|
|
71
88
|
* Get a single skill by its namespace and slug.
|
|
72
89
|
*/
|
|
@@ -372,6 +389,10 @@ export interface SkillDeleteParams {
|
|
|
372
389
|
namespace: string;
|
|
373
390
|
}
|
|
374
391
|
|
|
392
|
+
export interface SkillDownloadParams {
|
|
393
|
+
namespace: string;
|
|
394
|
+
}
|
|
395
|
+
|
|
375
396
|
export interface SkillGetParams {
|
|
376
397
|
namespace: string;
|
|
377
398
|
}
|
|
@@ -407,6 +428,7 @@ export declare namespace Skills {
|
|
|
407
428
|
type SkillCreateParams as SkillCreateParams,
|
|
408
429
|
type SkillListParams as SkillListParams,
|
|
409
430
|
type SkillDeleteParams as SkillDeleteParams,
|
|
431
|
+
type SkillDownloadParams as SkillDownloadParams,
|
|
410
432
|
type SkillGetParams as SkillGetParams,
|
|
411
433
|
type SkillSetParams as SkillSetParams,
|
|
412
434
|
type SkillSyncParams as SkillSyncParams,
|
|
@@ -6,6 +6,9 @@ import { buildHeaders } from '../../internal/headers';
|
|
|
6
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
7
|
import { path } from '../../internal/utils/path';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Discover and search reusable prompt-based skills for MCP servers
|
|
11
|
+
*/
|
|
9
12
|
export class Votes extends APIResource {
|
|
10
13
|
/**
|
|
11
14
|
* Upvote or downvote a skill. Updates existing vote if one exists.
|
package/src/resources/tokens.ts
CHANGED
|
@@ -17,28 +17,33 @@ export class Tokens extends APIResource {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* A policy constraint that restricts a token's scope. All specified fields within
|
|
22
|
+
* a single constraint are AND'd together. When multiple constraints are passed in
|
|
23
|
+
* the policy array, each is applied as an independent attenuation block.
|
|
24
|
+
*/
|
|
20
25
|
export interface Constraint {
|
|
21
26
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* backend.
|
|
27
|
+
* Key-value metadata for fine-grained filtering. A single object requires all
|
|
28
|
+
* pairs to match (AND). An array of objects requires any one to match (OR-of-AND),
|
|
29
|
+
* e.g. [{"userId":"alice"},{"team":"backend"}] grants access when either condition
|
|
30
|
+
* is met.
|
|
27
31
|
*/
|
|
28
32
|
metadata?: { [key: string]: string } | Array<{ [key: string]: string }>;
|
|
29
33
|
|
|
30
34
|
/**
|
|
31
|
-
*
|
|
35
|
+
* Namespace(s) the token is scoped to. Accepts a single slug or an array.
|
|
32
36
|
*/
|
|
33
37
|
namespaces?: string | Array<string>;
|
|
34
38
|
|
|
35
39
|
/**
|
|
36
|
-
*
|
|
40
|
+
* Operation(s) the token may perform: read, write, or execute.
|
|
37
41
|
*/
|
|
38
42
|
operations?: 'read' | 'write' | 'execute' | Array<'read' | 'write' | 'execute'>;
|
|
39
43
|
|
|
40
44
|
/**
|
|
41
|
-
*
|
|
45
|
+
* Resource type(s) the token may access: connections, servers, namespaces, or
|
|
46
|
+
* skills.
|
|
42
47
|
*/
|
|
43
48
|
resources?:
|
|
44
49
|
| 'connections'
|
|
@@ -48,7 +53,15 @@ export interface Constraint {
|
|
|
48
53
|
| Array<'connections' | 'servers' | 'namespaces' | 'skills'>;
|
|
49
54
|
|
|
50
55
|
/**
|
|
51
|
-
*
|
|
56
|
+
* MCP JSON-RPC request matching rules. Keys are dot-paths into the request body
|
|
57
|
+
* (e.g. "params.name", "method"). Values are regex patterns. All entries must
|
|
58
|
+
* match (AND).
|
|
59
|
+
*/
|
|
60
|
+
rpcReqMatch?: { [key: string]: string };
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Time-to-live for the constraint. Accepts seconds (number) or a duration string
|
|
64
|
+
* such as "1h", "30m", or "20s".
|
|
52
65
|
*/
|
|
53
66
|
ttl?: string | number;
|
|
54
67
|
}
|
package/src/resources/uplink.ts
CHANGED
|
@@ -4,6 +4,9 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../internal/request-options';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Manage uplink tokens for connecting locally-running MCP servers to Smithery
|
|
9
|
+
*/
|
|
7
10
|
export class Uplink extends APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* Create or retrieve an authtoken for uplink connections
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.54.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.54.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.54.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.54.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|