@smithery/api 0.24.0 → 0.25.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.
Files changed (96) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/client.d.mts +6 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +1 -1
  8. package/client.mjs.map +1 -1
  9. package/lib/mcp-transport.d.mts +16 -11
  10. package/lib/mcp-transport.d.mts.map +1 -1
  11. package/lib/mcp-transport.d.ts +16 -11
  12. package/lib/mcp-transport.d.ts.map +1 -1
  13. package/lib/mcp-transport.js +36 -16
  14. package/lib/mcp-transport.js.map +1 -1
  15. package/lib/mcp-transport.mjs +34 -14
  16. package/lib/mcp-transport.mjs.map +1 -1
  17. package/package.json +1 -1
  18. package/resources/beta/connect/connect.d.mts +2 -2
  19. package/resources/beta/connect/connect.d.mts.map +1 -1
  20. package/resources/beta/connect/connect.d.ts +2 -2
  21. package/resources/beta/connect/connect.d.ts.map +1 -1
  22. package/resources/beta/connect/connect.js.map +1 -1
  23. package/resources/beta/connect/connect.mjs.map +1 -1
  24. package/resources/beta/connect/connections.d.mts +38 -24
  25. package/resources/beta/connect/connections.d.mts.map +1 -1
  26. package/resources/beta/connect/connections.d.ts +38 -24
  27. package/resources/beta/connect/connections.d.ts.map +1 -1
  28. package/resources/beta/connect/connections.js +21 -21
  29. package/resources/beta/connect/connections.js.map +1 -1
  30. package/resources/beta/connect/connections.mjs +21 -21
  31. package/resources/beta/connect/connections.mjs.map +1 -1
  32. package/resources/beta/connect/index.d.mts +1 -1
  33. package/resources/beta/connect/index.d.mts.map +1 -1
  34. package/resources/beta/connect/index.d.ts +1 -1
  35. package/resources/beta/connect/index.d.ts.map +1 -1
  36. package/resources/beta/connect/index.js.map +1 -1
  37. package/resources/beta/connect/index.mjs.map +1 -1
  38. package/resources/index.d.mts +3 -3
  39. package/resources/index.d.mts.map +1 -1
  40. package/resources/index.d.ts +3 -3
  41. package/resources/index.d.ts.map +1 -1
  42. package/resources/index.js.map +1 -1
  43. package/resources/index.mjs +1 -1
  44. package/resources/index.mjs.map +1 -1
  45. package/resources/namespaces.d.mts +11 -16
  46. package/resources/namespaces.d.mts.map +1 -1
  47. package/resources/namespaces.d.ts +11 -16
  48. package/resources/namespaces.d.ts.map +1 -1
  49. package/resources/namespaces.js +12 -15
  50. package/resources/namespaces.js.map +1 -1
  51. package/resources/namespaces.mjs +12 -15
  52. package/resources/namespaces.mjs.map +1 -1
  53. package/resources/servers/deployments.d.mts +30 -27
  54. package/resources/servers/deployments.d.mts.map +1 -1
  55. package/resources/servers/deployments.d.ts +30 -27
  56. package/resources/servers/deployments.d.ts.map +1 -1
  57. package/resources/servers/deployments.js +7 -7
  58. package/resources/servers/deployments.js.map +1 -1
  59. package/resources/servers/deployments.mjs +7 -7
  60. package/resources/servers/deployments.mjs.map +1 -1
  61. package/resources/servers/index.d.mts +2 -2
  62. package/resources/servers/index.d.mts.map +1 -1
  63. package/resources/servers/index.d.ts +2 -2
  64. package/resources/servers/index.d.ts.map +1 -1
  65. package/resources/servers/servers.d.mts +30 -30
  66. package/resources/servers/servers.d.mts.map +1 -1
  67. package/resources/servers/servers.d.ts +30 -30
  68. package/resources/servers/servers.d.ts.map +1 -1
  69. package/resources/servers/servers.js +6 -6
  70. package/resources/servers/servers.js.map +1 -1
  71. package/resources/servers/servers.mjs +6 -6
  72. package/resources/servers/servers.mjs.map +1 -1
  73. package/resources/tokens.d.mts +96 -63
  74. package/resources/tokens.d.mts.map +1 -1
  75. package/resources/tokens.d.ts +96 -63
  76. package/resources/tokens.d.ts.map +1 -1
  77. package/resources/tokens.js +1 -4
  78. package/resources/tokens.js.map +1 -1
  79. package/resources/tokens.mjs +1 -4
  80. package/resources/tokens.mjs.map +1 -1
  81. package/src/client.ts +20 -5
  82. package/src/lib/mcp-transport.ts +42 -19
  83. package/src/resources/beta/connect/connect.ts +4 -2
  84. package/src/resources/beta/connect/connections.ts +53 -35
  85. package/src/resources/beta/connect/index.ts +2 -1
  86. package/src/resources/index.ts +13 -3
  87. package/src/resources/namespaces.ts +17 -17
  88. package/src/resources/servers/deployments.ts +45 -47
  89. package/src/resources/servers/index.ts +3 -3
  90. package/src/resources/servers/servers.ts +49 -49
  91. package/src/resources/tokens.ts +103 -58
  92. package/src/version.ts +1 -1
  93. package/version.d.mts +1 -1
  94. package/version.d.ts +1 -1
  95. package/version.js +1 -1
  96. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIzG;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;IAKzB;;;;;;;;;OASG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAItF;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAKvC;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UA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AAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
1
+ {"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIzG;;;;;;;;;OASG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAKvC;;;;;;;;;;;;OAYG;IAC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OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -22,25 +22,8 @@ class Connections extends resource_1.APIResource {
22
22
  return this._client.post((0, path_1.path) `/connect/${namespace}`, { body, ...options });
23
23
  }
24
24
  /**
25
- * Get details for a specific connection. Requires service token with
26
- * connections:read scope.
27
- *
28
- * @example
29
- * ```ts
30
- * const connection =
31
- * await client.beta.connect.connections.retrieve(
32
- * 'connectionId',
33
- * { namespace: 'namespace' },
34
- * );
35
- * ```
36
- */
37
- retrieve(connectionID, params, options) {
38
- const { namespace } = params;
39
- return this._client.get((0, path_1.path) `/connect/${namespace}/${connectionID}`, options);
40
- }
41
- /**
42
- * List all connections in a namespace. Requires service token with
43
- * connections:read scope.
25
+ * List all connections in a namespace. Supports filtering by metadata using
26
+ * `metadata.{key}={value}` query params (e.g., `metadata.userId=alice`).
44
27
  *
45
28
  * @example
46
29
  * ```ts
@@ -48,8 +31,8 @@ class Connections extends resource_1.APIResource {
48
31
  * await client.beta.connect.connections.list('namespace');
49
32
  * ```
50
33
  */
51
- list(namespace, options) {
52
- return this._client.get((0, path_1.path) `/connect/${namespace}`, options);
34
+ list(namespace, query = {}, options) {
35
+ return this._client.get((0, path_1.path) `/connect/${namespace}`, { query, ...options });
53
36
  }
54
37
  /**
55
38
  * Delete a connection and terminate its MCP session. Requires API key and
@@ -68,6 +51,23 @@ class Connections extends resource_1.APIResource {
68
51
  const { namespace } = params;
69
52
  return this._client.delete((0, path_1.path) `/connect/${namespace}/${connectionID}`, options);
70
53
  }
54
+ /**
55
+ * Get details for a specific connection. Requires service token with
56
+ * connections:read scope.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const connection =
61
+ * await client.beta.connect.connections.get(
62
+ * 'connectionId',
63
+ * { namespace: 'namespace' },
64
+ * );
65
+ * ```
66
+ */
67
+ get(connectionID, params, options) {
68
+ const { namespace } = params;
69
+ return this._client.get((0, path_1.path) `/connect/${namespace}/${connectionID}`, options);
70
+ }
71
71
  /**
72
72
  * Create a new MCP connection with the given ID. Returns 409 if connection already
73
73
  * exists - delete it first to recreate. Requires API key and namespace ownership.
@@ -1 +1 @@
1
- {"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;OAYG;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E,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,SAAS,IAAI,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF;AAhGD,kCAgGC"}
@@ -19,25 +19,8 @@ export class Connections extends APIResource {
19
19
  return this._client.post(path `/connect/${namespace}`, { body, ...options });
20
20
  }
21
21
  /**
22
- * Get details for a specific connection. Requires service token with
23
- * connections:read scope.
24
- *
25
- * @example
26
- * ```ts
27
- * const connection =
28
- * await client.beta.connect.connections.retrieve(
29
- * 'connectionId',
30
- * { namespace: 'namespace' },
31
- * );
32
- * ```
33
- */
34
- retrieve(connectionID, params, options) {
35
- const { namespace } = params;
36
- return this._client.get(path `/connect/${namespace}/${connectionID}`, options);
37
- }
38
- /**
39
- * List all connections in a namespace. Requires service token with
40
- * connections:read scope.
22
+ * List all connections in a namespace. Supports filtering by metadata using
23
+ * `metadata.{key}={value}` query params (e.g., `metadata.userId=alice`).
41
24
  *
42
25
  * @example
43
26
  * ```ts
@@ -45,8 +28,8 @@ export class Connections extends APIResource {
45
28
  * await client.beta.connect.connections.list('namespace');
46
29
  * ```
47
30
  */
48
- list(namespace, options) {
49
- return this._client.get(path `/connect/${namespace}`, options);
31
+ list(namespace, query = {}, options) {
32
+ return this._client.get(path `/connect/${namespace}`, { query, ...options });
50
33
  }
51
34
  /**
52
35
  * Delete a connection and terminate its MCP session. Requires API key and
@@ -65,6 +48,23 @@ export class Connections extends APIResource {
65
48
  const { namespace } = params;
66
49
  return this._client.delete(path `/connect/${namespace}/${connectionID}`, options);
67
50
  }
51
+ /**
52
+ * Get details for a specific connection. Requires service token with
53
+ * connections:read scope.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const connection =
58
+ * await client.beta.connect.connections.get(
59
+ * 'connectionId',
60
+ * { namespace: 'namespace' },
61
+ * );
62
+ * ```
63
+ */
64
+ get(connectionID, params, options) {
65
+ const { namespace } = params;
66
+ return this._client.get(path `/connect/${namespace}/${connectionID}`, options);
67
+ }
68
68
  /**
69
69
  * Create a new MCP connection with the given ID. Returns 409 if connection already
70
70
  * exists - delete it first to recreate. Requires API key and namespace ownership.
@@ -1 +1 @@
1
- {"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,SAAiB,EAAE,IAA4B,EAAE,OAAwB;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAoB,EACpB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,SAAiB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YAAoB,EACpB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,YAA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AED;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,YAAoB,EAAE,MAA2B,EAAE,OAAwB;QAC7E,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,YAAoB,EAAE,MAA2B,EAAE,OAAwB;QAC7E,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF"}
@@ -1,4 +1,4 @@
1
1
  export { Connect } from "./connect.mjs";
2
- export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionRetrieveParams, type ConnectionDeleteParams, type ConnectionSetParams, } from "./connections.mjs";
2
+ export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionListParams, type ConnectionDeleteParams, type ConnectionGetParams, type ConnectionSetParams, } from "./connections.mjs";
3
3
  export { Rpc, type JsonRpcRequest, type JsonRpcResponse, type RpcCallParams } from "./rpc.mjs";
4
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB;OACM,EAAE,GAAG,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,GAAG,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE"}
@@ -1,4 +1,4 @@
1
1
  export { Connect } from "./connect.js";
2
- export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionRetrieveParams, type ConnectionDeleteParams, type ConnectionSetParams, } from "./connections.js";
2
+ export { Connections, type Connection, type ConnectionsListResponse, type CreateConnectionRequest, type ConnectionDeleteResponse, type ConnectionCreateParams, type ConnectionListParams, type ConnectionDeleteParams, type ConnectionGetParams, type ConnectionSetParams, } from "./connections.js";
3
3
  export { Rpc, type JsonRpcRequest, type JsonRpcResponse, type RpcCallParams } from "./rpc.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB;OACM,EAAE,GAAG,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,GAAG,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,gDAUuB;AATrB,0GAAA,WAAW,OAAA;AAUb,gCAA2F;AAAlF,0FAAA,GAAG,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,gCAA2F;AAAlF,0FAAA,GAAG,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAE;OACX,EACL,WAAW,GASZ;OACM,EAAE,GAAG,EAAiE"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/connect/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAE;OACX,EACL,WAAW,GAUZ;OACM,EAAE,GAAG,EAAiE"}
@@ -1,8 +1,8 @@
1
1
  export { Beta } from "./beta/beta.mjs";
2
2
  export { Health, type HealthCheckResponse } from "./health.mjs";
3
- export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type NamespaceCreateParams, } from "./namespaces.mjs";
4
- export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerRetrieveResponse, type ServerListResponse, type ServerDeleteResponse, type ServerListParams, type ServerListResponsesSmitheryPage, } from "./servers/servers.mjs";
3
+ export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type NamespaceSetResponse, } from "./namespaces.mjs";
4
+ export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerListResponse, type ServerDeleteResponse, type ServerGetResponse, type ServerListParams, type ServerListResponsesSmitheryPage, } from "./servers/servers.mjs";
5
5
  export { Skills, type SkillListResponse, type SkillListParams, type SkillListResponsesSkillsPage, } from "./skills.mjs";
6
- export { Tokens, type CreateTokenRequest, type CreateTokenResponse, type TokenCreateParams } from "./tokens.mjs";
6
+ export { Tokens, type Action, type Allow, type ConnectionScope, type CreateTokenRequest, type CreateTokenResponse, type ResourceScope, type RpcScope, type TokenCreateParams, } from "./tokens.mjs";
7
7
  export { Uplink, type UplinkCreateTokenResponse } from "./uplink.mjs";
8
8
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,GACrC;OACM,EACL,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,4BAA4B,GAClC;OACM,EAAE,MAAM,EAAE,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OACrF,EAAE,MAAM,EAAE,KAAK,yBAAyB,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B;OACM,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,GACrC;OACM,EACL,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,4BAA4B,GAClC;OACM,EACL,MAAM,EACN,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,iBAAiB,GACvB;OACM,EAAE,MAAM,EAAE,KAAK,yBAAyB,EAAE"}
@@ -1,8 +1,8 @@
1
1
  export { Beta } from "./beta/beta.js";
2
2
  export { Health, type HealthCheckResponse } from "./health.js";
3
- export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type NamespaceCreateParams, } from "./namespaces.js";
4
- export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerRetrieveResponse, type ServerListResponse, type ServerDeleteResponse, type ServerListParams, type ServerListResponsesSmitheryPage, } from "./servers/servers.js";
3
+ export { Namespaces, type NamespaceCreateResponse, type NamespaceListResponse, type NamespaceSetResponse, } from "./namespaces.js";
4
+ export { Servers, type BuildConfig, type DeploymentTarget, type ProjectConfig, type ServerListResponse, type ServerDeleteResponse, type ServerGetResponse, type ServerListParams, type ServerListResponsesSmitheryPage, } from "./servers/servers.js";
5
5
  export { Skills, type SkillListResponse, type SkillListParams, type SkillListResponsesSkillsPage, } from "./skills.js";
6
- export { Tokens, type CreateTokenRequest, type CreateTokenResponse, type TokenCreateParams } from "./tokens.js";
6
+ export { Tokens, type Action, type Allow, type ConnectionScope, type CreateTokenRequest, type CreateTokenResponse, type ResourceScope, type RpcScope, type TokenCreateParams, } from "./tokens.js";
7
7
  export { Uplink, type UplinkCreateTokenResponse } from "./uplink.js";
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,GACrC;OACM,EACL,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,4BAA4B,GAClC;OACM,EAAE,MAAM,EAAE,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OACrF,EAAE,MAAM,EAAE,KAAK,yBAAyB,EAAE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B;OACM,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,GACrC;OACM,EACL,MAAM,EACN,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,4BAA4B,GAClC;OACM,EACL,MAAM,EACN,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,iBAAiB,GACvB;OACM,EAAE,MAAM,EAAE,KAAK,yBAAyB,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,sCAA4D;AAAnD,gGAAA,MAAM,OAAA;AACf,8CAKsB;AAJpB,wGAAA,UAAU,OAAA;AAKZ,gDAU2B;AATzB,kGAAA,OAAO,OAAA;AAUT,sCAKkB;AAJhB,gGAAA,MAAM,OAAA;AAKR,sCAA6G;AAApG,gGAAA,MAAM,OAAA;AACf,sCAAkE;AAAzD,gGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,sCAA4D;AAAnD,gGAAA,MAAM,OAAA;AACf,8CAKsB;AAJpB,wGAAA,UAAU,OAAA;AAKZ,gDAU2B;AATzB,kGAAA,OAAO,OAAA;AAUT,sCAKkB;AAJhB,gGAAA,MAAM,OAAA;AAKR,sCAUkB;AAThB,gGAAA,MAAM,OAAA;AAUR,sCAAkE;AAAzD,gGAAA,MAAM,OAAA"}
@@ -4,6 +4,6 @@ export { Health } from "./health.mjs";
4
4
  export { Namespaces, } from "./namespaces.mjs";
5
5
  export { Servers, } from "./servers/servers.mjs";
6
6
  export { Skills, } from "./skills.mjs";
7
- export { Tokens } from "./tokens.mjs";
7
+ export { Tokens, } from "./tokens.mjs";
8
8
  export { Uplink } from "./uplink.mjs";
9
9
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAA4B;OACpC,EACL,UAAU,GAIX;OACM,EACL,OAAO,GASR;OACM,EACL,MAAM,GAIP;OACM,EAAE,MAAM,EAA6E;OACrF,EAAE,MAAM,EAAkC"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAA4B;OACpC,EACL,UAAU,GAIX;OACM,EACL,OAAO,GASR;OACM,EACL,MAAM,GAIP;OACM,EACL,MAAM,GASP;OACM,EAAE,MAAM,EAAkC"}
@@ -3,25 +3,19 @@ import { APIPromise } from "../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../internal/request-options.mjs";
4
4
  export declare class Namespaces extends APIResource {
5
5
  /**
6
- * Create a new namespace owned by the authenticated user
7
- *
8
- * @example
9
- * ```ts
10
- * const namespace = await client.namespaces.create({
11
- * name: 'myorg',
12
- * });
13
- * ```
6
+ * Create a new namespace with a server-generated human-readable name, owned by the
7
+ * authenticated user
14
8
  */
15
- create(body: NamespaceCreateParams, options?: RequestOptions): APIPromise<NamespaceCreateResponse>;
9
+ create(options?: RequestOptions): APIPromise<NamespaceCreateResponse>;
16
10
  /**
17
11
  * Get a list of all namespaces owned by the authenticated user
18
- *
19
- * @example
20
- * ```ts
21
- * const namespaces = await client.namespaces.list();
22
- * ```
23
12
  */
24
13
  list(options?: RequestOptions): APIPromise<NamespaceListResponse>;
14
+ /**
15
+ * Create a new namespace with a user-specified name, owned by the authenticated
16
+ * user
17
+ */
18
+ set(name: string, options?: RequestOptions): APIPromise<NamespaceSetResponse>;
25
19
  }
26
20
  export interface NamespaceCreateResponse {
27
21
  createdAt: string;
@@ -36,10 +30,11 @@ export declare namespace NamespaceListResponse {
36
30
  name: string;
37
31
  }
38
32
  }
39
- export interface NamespaceCreateParams {
33
+ export interface NamespaceSetResponse {
34
+ createdAt: string;
40
35
  name: string;
41
36
  }
42
37
  export declare namespace Namespaces {
43
- export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type NamespaceCreateParams as NamespaceCreateParams, };
38
+ export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type NamespaceSetResponse as NamespaceSetResponse, };
44
39
  }
45
40
  //# sourceMappingURL=namespaces.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"namespaces.d.mts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIlG;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGlE;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBA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,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -3,25 +3,19 @@ import { APIPromise } from "../core/api-promise.js";
3
3
  import { RequestOptions } from "../internal/request-options.js";
4
4
  export declare class Namespaces extends APIResource {
5
5
  /**
6
- * Create a new namespace owned by the authenticated user
7
- *
8
- * @example
9
- * ```ts
10
- * const namespace = await client.namespaces.create({
11
- * name: 'myorg',
12
- * });
13
- * ```
6
+ * Create a new namespace with a server-generated human-readable name, owned by the
7
+ * authenticated user
14
8
  */
15
- create(body: NamespaceCreateParams, options?: RequestOptions): APIPromise<NamespaceCreateResponse>;
9
+ create(options?: RequestOptions): APIPromise<NamespaceCreateResponse>;
16
10
  /**
17
11
  * Get a list of all namespaces owned by the authenticated user
18
- *
19
- * @example
20
- * ```ts
21
- * const namespaces = await client.namespaces.list();
22
- * ```
23
12
  */
24
13
  list(options?: RequestOptions): APIPromise<NamespaceListResponse>;
14
+ /**
15
+ * Create a new namespace with a user-specified name, owned by the authenticated
16
+ * user
17
+ */
18
+ set(name: string, options?: RequestOptions): APIPromise<NamespaceSetResponse>;
25
19
  }
26
20
  export interface NamespaceCreateResponse {
27
21
  createdAt: string;
@@ -36,10 +30,11 @@ export declare namespace NamespaceListResponse {
36
30
  name: string;
37
31
  }
38
32
  }
39
- export interface NamespaceCreateParams {
33
+ export interface NamespaceSetResponse {
34
+ createdAt: string;
40
35
  name: string;
41
36
  }
42
37
  export declare namespace Namespaces {
43
- export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type NamespaceCreateParams as NamespaceCreateParams, };
38
+ export { type NamespaceCreateResponse as NamespaceCreateResponse, type NamespaceListResponse as NamespaceListResponse, type NamespaceSetResponse as NamespaceSetResponse, };
44
39
  }
45
40
  //# sourceMappingURL=namespaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"namespaces.d.ts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIlG;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGlE;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,KAAK,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;CACpD;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,SAAS;QACxB,SAAS,EAAE,MAAM,CAAC;QAElB,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
1
+ {"version":3,"file":"namespaces.d.ts","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIrE;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjE;;;OAGG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG9E;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,KAAK,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;CACpD;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,SAAS;QACxB,SAAS,EAAE,MAAM,CAAC;QAElB,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -3,31 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Namespaces = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
+ const path_1 = require("../internal/utils/path.js");
6
7
  class Namespaces extends resource_1.APIResource {
7
8
  /**
8
- * Create a new namespace owned by the authenticated user
9
- *
10
- * @example
11
- * ```ts
12
- * const namespace = await client.namespaces.create({
13
- * name: 'myorg',
14
- * });
15
- * ```
9
+ * Create a new namespace with a server-generated human-readable name, owned by the
10
+ * authenticated user
16
11
  */
17
- create(body, options) {
18
- return this._client.put('/namespaces', { body, ...options });
12
+ create(options) {
13
+ return this._client.post('/namespaces', options);
19
14
  }
20
15
  /**
21
16
  * Get a list of all namespaces owned by the authenticated user
22
- *
23
- * @example
24
- * ```ts
25
- * const namespaces = await client.namespaces.list();
26
- * ```
27
17
  */
28
18
  list(options) {
29
19
  return this._client.get('/namespaces', options);
30
20
  }
21
+ /**
22
+ * Create a new namespace with a user-specified name, owned by the authenticated
23
+ * user
24
+ */
25
+ set(name, options) {
26
+ return this._client.put((0, path_1.path) `/namespaces/${name}`, options);
27
+ }
31
28
  }
32
29
  exports.Namespaces = Namespaces;
33
30
  //# sourceMappingURL=namespaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF;AA1BD,gCA0BC"}
1
+ {"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;OAGG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,IAAY,EAAE,OAAwB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF;AAvBD,gCAuBC"}
@@ -1,29 +1,26 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
+ import { path } from "../internal/utils/path.mjs";
3
4
  export class Namespaces extends APIResource {
4
5
  /**
5
- * Create a new namespace owned by the authenticated user
6
- *
7
- * @example
8
- * ```ts
9
- * const namespace = await client.namespaces.create({
10
- * name: 'myorg',
11
- * });
12
- * ```
6
+ * Create a new namespace with a server-generated human-readable name, owned by the
7
+ * authenticated user
13
8
  */
14
- create(body, options) {
15
- return this._client.put('/namespaces', { body, ...options });
9
+ create(options) {
10
+ return this._client.post('/namespaces', options);
16
11
  }
17
12
  /**
18
13
  * Get a list of all namespaces owned by the authenticated user
19
- *
20
- * @example
21
- * ```ts
22
- * const namespaces = await client.namespaces.list();
23
- * ```
24
14
  */
25
15
  list(options) {
26
16
  return this._client.get('/namespaces', options);
27
17
  }
18
+ /**
19
+ * Create a new namespace with a user-specified name, owned by the authenticated
20
+ * user
21
+ */
22
+ set(name, options) {
23
+ return this._client.put(path `/namespaces/${name}`, options);
24
+ }
28
25
  }
29
26
  //# sourceMappingURL=namespaces.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"namespaces.mjs","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF"}
1
+ {"version":3,"file":"namespaces.mjs","sourceRoot":"","sources":["../src/resources/namespaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,IAAY,EAAE,OAAwB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF"}
@@ -3,10 +3,6 @@ import { APIPromise } from "../../core/api-promise.mjs";
3
3
  import { type Uploadable } from "../../core/uploads.mjs";
4
4
  import { RequestOptions } from "../../internal/request-options.mjs";
5
5
  export declare class Deployments extends APIResource {
6
- /**
7
- * Get deployment status
8
- */
9
- retrieve(id: string, params: DeploymentRetrieveParams, options?: RequestOptions): APIPromise<DeploymentRetrieveResponse>;
10
6
  /**
11
7
  * List deployments for a server
12
8
  */
@@ -15,6 +11,10 @@ export declare class Deployments extends APIResource {
15
11
  * Upload and deploy an MCP server (hosted or external)
16
12
  */
17
13
  deploy(qualifiedName: string, body: DeploymentDeployParams, options?: RequestOptions): APIPromise<DeploymentDeployResponse>;
14
+ /**
15
+ * Get deployment status
16
+ */
17
+ get(id: string, params: DeploymentGetParams, options?: RequestOptions): APIPromise<DeploymentGetResponse>;
18
18
  /**
19
19
  * Use id='latest' to resume the most recent deployment
20
20
  */
@@ -32,6 +32,9 @@ export interface ExternalDeployPayload {
32
32
  configSchema?: {
33
33
  [key: string]: unknown;
34
34
  };
35
+ scanCredentials?: {
36
+ [key: string]: string;
37
+ };
35
38
  }
36
39
  export interface HostedDeployPayload {
37
40
  stateful: boolean;
@@ -188,15 +191,31 @@ export declare namespace StdioDeployPayload {
188
191
  commit?: string;
189
192
  }
190
193
  }
191
- export interface DeploymentRetrieveResponse {
194
+ export type DeploymentListResponse = Array<DeploymentListResponse.DeploymentListResponseItem>;
195
+ export declare namespace DeploymentListResponse {
196
+ interface DeploymentListResponseItem {
197
+ id: string;
198
+ createdAt: string;
199
+ status: string;
200
+ updatedAt: string;
201
+ mcpUrl?: string;
202
+ }
203
+ }
204
+ export interface DeploymentDeployResponse {
205
+ deploymentId: string;
206
+ mcpUrl: string;
207
+ status: string;
208
+ warnings?: Array<string>;
209
+ }
210
+ export interface DeploymentGetResponse {
192
211
  id: string;
193
212
  createdAt: string;
194
213
  status: string;
195
214
  updatedAt: string;
196
- logs?: Array<DeploymentRetrieveResponse.Log>;
215
+ logs?: Array<DeploymentGetResponse.Log>;
197
216
  mcpUrl?: string;
198
217
  }
199
- export declare namespace DeploymentRetrieveResponse {
218
+ export declare namespace DeploymentGetResponse {
200
219
  interface Log {
201
220
  level: string;
202
221
  message: string;
@@ -210,29 +229,10 @@ export declare namespace DeploymentRetrieveResponse {
210
229
  }
211
230
  }
212
231
  }
213
- export type DeploymentListResponse = Array<DeploymentListResponse.DeploymentListResponseItem>;
214
- export declare namespace DeploymentListResponse {
215
- interface DeploymentListResponseItem {
216
- id: string;
217
- createdAt: string;
218
- status: string;
219
- updatedAt: string;
220
- mcpUrl?: string;
221
- }
222
- }
223
- export interface DeploymentDeployResponse {
224
- deploymentId: string;
225
- mcpUrl: string;
226
- status: string;
227
- warnings?: Array<string>;
228
- }
229
232
  export interface DeploymentResumeResponse {
230
233
  deploymentId: string;
231
234
  status: string;
232
235
  }
233
- export interface DeploymentRetrieveParams {
234
- qualifiedName: string;
235
- }
236
236
  export interface DeploymentDeployParams {
237
237
  /**
238
238
  * JSON-encoded deployment payload. See DeployPayload schema for structure.
@@ -251,10 +251,13 @@ export interface DeploymentDeployParams {
251
251
  */
252
252
  sourcemap?: Uploadable;
253
253
  }
254
+ export interface DeploymentGetParams {
255
+ qualifiedName: string;
256
+ }
254
257
  export interface DeploymentResumeParams {
255
258
  qualifiedName: string;
256
259
  }
257
260
  export declare namespace Deployments {
258
- export { type DeployPayload as DeployPayload, type ExternalDeployPayload as ExternalDeployPayload, type HostedDeployPayload as HostedDeployPayload, type ServerCard as ServerCard, type StdioDeployPayload as StdioDeployPayload, type DeploymentRetrieveResponse as DeploymentRetrieveResponse, type DeploymentListResponse as DeploymentListResponse, type DeploymentDeployResponse as DeploymentDeployResponse, type DeploymentResumeResponse as DeploymentResumeResponse, type DeploymentRetrieveParams as DeploymentRetrieveParams, type DeploymentDeployParams as DeploymentDeployParams, type DeploymentResumeParams as DeploymentResumeParams, };
261
+ export { type DeployPayload as DeployPayload, type ExternalDeployPayload as ExternalDeployPayload, type HostedDeployPayload as HostedDeployPayload, type ServerCard as ServerCard, type StdioDeployPayload as StdioDeployPayload, type DeploymentListResponse as DeploymentListResponse, type DeploymentDeployResponse as DeploymentDeployResponse, type DeploymentGetResponse as DeploymentGetResponse, type DeploymentResumeResponse as DeploymentResumeResponse, type DeploymentDeployParams as DeploymentDeployParams, type DeploymentGetParams as DeploymentGetParams, type DeploymentResumeParams as DeploymentResumeParams, };
259
262
  }
260
263
  //# sourceMappingURL=deployments.d.mts.map