@smithery/api 0.52.0 → 0.53.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 +13 -0
- package/package.json +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/src/resources/tokens.ts +22 -9
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.53.0 (2026-02-26)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.52.0...v0.53.0](https://github.com/smithery-ai/typescript-api/compare/v0.52.0...v0.53.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **SMI-1462:** MCP-level request matching (Phase 1) ([#1612](https://github.com/smithery-ai/typescript-api/issues/1612)) ([ee531f2](https://github.com/smithery-ai/typescript-api/commit/ee531f2a7f268b28d591d553a6d2dd7f924ea9a0))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **SMI-1462:** Export Constraint schema for Stainless SDK generation ([#1621](https://github.com/smithery-ai/typescript-api/issues/1621)) ([dcc3579](https://github.com/smithery-ai/typescript-api/commit/dcc357964db6ea3404dbe29530696bdc49237335))
|
|
15
|
+
|
|
3
16
|
## 0.52.0 (2026-02-25)
|
|
4
17
|
|
|
5
18
|
Full Changelog: [v0.51.0...v0.52.0](https://github.com/smithery-ai/typescript-api/compare/v0.51.0...v0.52.0)
|
package/package.json
CHANGED
package/resources/tokens.d.mts
CHANGED
|
@@ -8,13 +8,17 @@ export declare class Tokens extends APIResource {
|
|
|
8
8
|
*/
|
|
9
9
|
create(body?: TokenCreateParams | null | undefined, options?: RequestOptions): APIPromise<CreateTokenResponse>;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* A policy constraint that restricts a token's scope. All specified fields within
|
|
13
|
+
* a single constraint are AND'd together. When multiple constraints are passed in
|
|
14
|
+
* the policy array, each is applied as an independent attenuation block.
|
|
15
|
+
*/
|
|
11
16
|
export interface Constraint {
|
|
12
17
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* backend.
|
|
18
|
+
* Key-value metadata for fine-grained filtering. A single object requires all
|
|
19
|
+
* pairs to match (AND). An array of objects requires any one to match (OR-of-AND),
|
|
20
|
+
* e.g. [{"userId":"alice"},{"team":"backend"}] grants access when either condition
|
|
21
|
+
* is met.
|
|
18
22
|
*/
|
|
19
23
|
metadata?: {
|
|
20
24
|
[key: string]: string;
|
|
@@ -22,19 +26,29 @@ export interface Constraint {
|
|
|
22
26
|
[key: string]: string;
|
|
23
27
|
}>;
|
|
24
28
|
/**
|
|
25
|
-
*
|
|
29
|
+
* Namespace(s) the token is scoped to. Accepts a single slug or an array.
|
|
26
30
|
*/
|
|
27
31
|
namespaces?: string | Array<string>;
|
|
28
32
|
/**
|
|
29
|
-
*
|
|
33
|
+
* Operation(s) the token may perform: read, write, or execute.
|
|
30
34
|
*/
|
|
31
35
|
operations?: 'read' | 'write' | 'execute' | Array<'read' | 'write' | 'execute'>;
|
|
32
36
|
/**
|
|
33
|
-
*
|
|
37
|
+
* Resource type(s) the token may access: connections, servers, namespaces, or
|
|
38
|
+
* skills.
|
|
34
39
|
*/
|
|
35
40
|
resources?: 'connections' | 'servers' | 'namespaces' | 'skills' | Array<'connections' | 'servers' | 'namespaces' | 'skills'>;
|
|
36
41
|
/**
|
|
37
|
-
*
|
|
42
|
+
* MCP JSON-RPC request matching rules. Keys are dot-paths into the request body
|
|
43
|
+
* (e.g. "params.name", "method"). Values are regex patterns. All entries must
|
|
44
|
+
* match (AND).
|
|
45
|
+
*/
|
|
46
|
+
rpcReqMatch?: {
|
|
47
|
+
[key: string]: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Time-to-live for the constraint. Accepts seconds (number) or a duration string
|
|
51
|
+
* such as "1h", "30m", or "20s".
|
|
38
52
|
*/
|
|
39
53
|
ttl?: string | number;
|
|
40
54
|
}
|
|
@@ -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;;;OAGG;IACH,MAAM,CACJ,IAAI,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAGnC;AAED,MAAM,WAAW,UAAU;IACzB
|
|
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;;;OAGG;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,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;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,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;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
|
@@ -8,13 +8,17 @@ export declare class Tokens extends APIResource {
|
|
|
8
8
|
*/
|
|
9
9
|
create(body?: TokenCreateParams | null | undefined, options?: RequestOptions): APIPromise<CreateTokenResponse>;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* A policy constraint that restricts a token's scope. All specified fields within
|
|
13
|
+
* a single constraint are AND'd together. When multiple constraints are passed in
|
|
14
|
+
* the policy array, each is applied as an independent attenuation block.
|
|
15
|
+
*/
|
|
11
16
|
export interface Constraint {
|
|
12
17
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* backend.
|
|
18
|
+
* Key-value metadata for fine-grained filtering. A single object requires all
|
|
19
|
+
* pairs to match (AND). An array of objects requires any one to match (OR-of-AND),
|
|
20
|
+
* e.g. [{"userId":"alice"},{"team":"backend"}] grants access when either condition
|
|
21
|
+
* is met.
|
|
18
22
|
*/
|
|
19
23
|
metadata?: {
|
|
20
24
|
[key: string]: string;
|
|
@@ -22,19 +26,29 @@ export interface Constraint {
|
|
|
22
26
|
[key: string]: string;
|
|
23
27
|
}>;
|
|
24
28
|
/**
|
|
25
|
-
*
|
|
29
|
+
* Namespace(s) the token is scoped to. Accepts a single slug or an array.
|
|
26
30
|
*/
|
|
27
31
|
namespaces?: string | Array<string>;
|
|
28
32
|
/**
|
|
29
|
-
*
|
|
33
|
+
* Operation(s) the token may perform: read, write, or execute.
|
|
30
34
|
*/
|
|
31
35
|
operations?: 'read' | 'write' | 'execute' | Array<'read' | 'write' | 'execute'>;
|
|
32
36
|
/**
|
|
33
|
-
*
|
|
37
|
+
* Resource type(s) the token may access: connections, servers, namespaces, or
|
|
38
|
+
* skills.
|
|
34
39
|
*/
|
|
35
40
|
resources?: 'connections' | 'servers' | 'namespaces' | 'skills' | Array<'connections' | 'servers' | 'namespaces' | 'skills'>;
|
|
36
41
|
/**
|
|
37
|
-
*
|
|
42
|
+
* MCP JSON-RPC request matching rules. Keys are dot-paths into the request body
|
|
43
|
+
* (e.g. "params.name", "method"). Values are regex patterns. All entries must
|
|
44
|
+
* match (AND).
|
|
45
|
+
*/
|
|
46
|
+
rpcReqMatch?: {
|
|
47
|
+
[key: string]: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Time-to-live for the constraint. Accepts seconds (number) or a duration string
|
|
51
|
+
* such as "1h", "30m", or "20s".
|
|
38
52
|
*/
|
|
39
53
|
ttl?: string | number;
|
|
40
54
|
}
|
|
@@ -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;;;OAGG;IACH,MAAM,CACJ,IAAI,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAGnC;AAED,MAAM,WAAW,UAAU;IACzB
|
|
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;;;OAGG;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,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;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,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;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/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/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.53.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.53.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.53.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.53.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|