@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithery/api",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
4
4
  "description": "The official TypeScript library for the Smithery API",
5
5
  "author": "Smithery <contact@smithery.ai>",
6
6
  "types": "./index.d.ts",
@@ -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
- * Metadata key-value pairs for fine-grained access control. When an array is
14
- * provided, each object is evaluated as an OR condition (any must match). Within a
15
- * single object, all key-value pairs must match (AND). For example, [{"userId":
16
- * "alice"}, {"team": "backend"}] allows access if userId is alice OR team is
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
- * Restrict token to specific namespaces.
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
- * Restrict token to specific operations.
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
- * Restrict token to specific resource types.
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
- * TTL as seconds or duration string ("1h", "30m", "20s").
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,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;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"}
@@ -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
- * Metadata key-value pairs for fine-grained access control. When an array is
14
- * provided, each object is evaluated as an OR condition (any must match). Within a
15
- * single object, all key-value pairs must match (AND). For example, [{"userId":
16
- * "alice"}, {"team": "backend"}] allows access if userId is alice OR team is
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
- * Restrict token to specific namespaces.
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
- * Restrict token to specific operations.
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
- * Restrict token to specific resource types.
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
- * TTL as seconds or duration string ("1h", "30m", "20s").
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;;;;;;OAMG;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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,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"}
@@ -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
- * Metadata key-value pairs for fine-grained access control. When an array is
23
- * provided, each object is evaluated as an OR condition (any must match). Within a
24
- * single object, all key-value pairs must match (AND). For example, [{"userId":
25
- * "alice"}, {"team": "backend"}] allows access if userId is alice OR team is
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
- * Restrict token to specific namespaces.
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
- * Restrict token to specific operations.
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
- * Restrict token to specific resource types.
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
- * TTL as seconds or duration string ("1h", "30m", "20s").
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.52.0'; // x-release-please-version
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.52.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.52.0";
1
+ export declare const VERSION = "0.53.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.52.0'; // x-release-please-version
4
+ exports.VERSION = '0.53.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.52.0'; // x-release-please-version
1
+ export const VERSION = '0.53.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map