@smithery/api 0.27.0 → 0.28.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 (120) hide show
  1. package/README.md +10 -5
  2. package/client.d.mts +3 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/beta/connect/tools.d.mts +0 -3
  12. package/resources/beta/connect/tools.d.mts.map +1 -1
  13. package/resources/beta/connect/tools.d.ts +0 -3
  14. package/resources/beta/connect/tools.d.ts.map +1 -1
  15. package/resources/index.d.mts +2 -2
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +2 -2
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js +1 -1
  20. package/resources/index.js.map +1 -1
  21. package/resources/index.mjs +1 -1
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/namespaces/index.d.mts +3 -0
  24. package/resources/namespaces/index.d.mts.map +1 -0
  25. package/resources/namespaces/index.d.ts +3 -0
  26. package/resources/namespaces/index.d.ts.map +1 -0
  27. package/resources/namespaces/index.js +9 -0
  28. package/resources/namespaces/index.js.map +1 -0
  29. package/resources/namespaces/index.mjs +4 -0
  30. package/resources/namespaces/index.mjs.map +1 -0
  31. package/resources/namespaces/namespaces.d.mts +60 -0
  32. package/resources/namespaces/namespaces.d.mts.map +1 -0
  33. package/resources/namespaces/namespaces.d.ts +60 -0
  34. package/resources/namespaces/namespaces.d.ts.map +1 -0
  35. package/resources/namespaces/namespaces.js +54 -0
  36. package/resources/namespaces/namespaces.js.map +1 -0
  37. package/resources/namespaces/namespaces.mjs +49 -0
  38. package/resources/namespaces/namespaces.mjs.map +1 -0
  39. package/resources/namespaces/servers.d.mts +46 -0
  40. package/resources/namespaces/servers.d.mts.map +1 -0
  41. package/resources/namespaces/servers.d.ts +46 -0
  42. package/resources/namespaces/servers.d.ts.map +1 -0
  43. package/resources/namespaces/servers.js +25 -0
  44. package/resources/namespaces/servers.js.map +1 -0
  45. package/resources/namespaces/servers.mjs +21 -0
  46. package/resources/namespaces/servers.mjs.map +1 -0
  47. package/resources/namespaces.d.mts +1 -39
  48. package/resources/namespaces.d.mts.map +1 -1
  49. package/resources/namespaces.d.ts +1 -39
  50. package/resources/namespaces.d.ts.map +1 -1
  51. package/resources/namespaces.js +2 -26
  52. package/resources/namespaces.js.map +1 -1
  53. package/resources/namespaces.mjs +1 -24
  54. package/resources/namespaces.mjs.map +1 -1
  55. package/resources/servers/deployments.d.mts +55 -9
  56. package/resources/servers/deployments.d.mts.map +1 -1
  57. package/resources/servers/deployments.d.ts +55 -9
  58. package/resources/servers/deployments.d.ts.map +1 -1
  59. package/resources/servers/deployments.js +42 -8
  60. package/resources/servers/deployments.js.map +1 -1
  61. package/resources/servers/deployments.mjs +42 -8
  62. package/resources/servers/deployments.mjs.map +1 -1
  63. package/resources/servers/index.d.mts +4 -3
  64. package/resources/servers/index.d.mts.map +1 -1
  65. package/resources/servers/index.d.ts +4 -3
  66. package/resources/servers/index.d.ts.map +1 -1
  67. package/resources/servers/index.js +3 -1
  68. package/resources/servers/index.js.map +1 -1
  69. package/resources/servers/index.mjs +1 -0
  70. package/resources/servers/index.mjs.map +1 -1
  71. package/resources/servers/logs.d.mts +15 -4
  72. package/resources/servers/logs.d.mts.map +1 -1
  73. package/resources/servers/logs.d.ts +15 -4
  74. package/resources/servers/logs.d.ts.map +1 -1
  75. package/resources/servers/logs.js +10 -2
  76. package/resources/servers/logs.js.map +1 -1
  77. package/resources/servers/logs.mjs +10 -2
  78. package/resources/servers/logs.mjs.map +1 -1
  79. package/resources/servers/repo.d.mts +98 -0
  80. package/resources/servers/repo.d.mts.map +1 -0
  81. package/resources/servers/repo.d.ts +98 -0
  82. package/resources/servers/repo.d.ts.map +1 -0
  83. package/resources/servers/repo.js +55 -0
  84. package/resources/servers/repo.js.map +1 -0
  85. package/resources/servers/repo.mjs +51 -0
  86. package/resources/servers/repo.mjs.map +1 -0
  87. package/resources/servers/secrets.d.mts +46 -4
  88. package/resources/servers/secrets.d.mts.map +1 -1
  89. package/resources/servers/secrets.d.ts +46 -4
  90. package/resources/servers/secrets.d.ts.map +1 -1
  91. package/resources/servers/secrets.js +36 -6
  92. package/resources/servers/secrets.js.map +1 -1
  93. package/resources/servers/secrets.mjs +36 -6
  94. package/resources/servers/secrets.mjs.map +1 -1
  95. package/resources/servers/servers.d.mts +55 -10
  96. package/resources/servers/servers.d.mts.map +1 -1
  97. package/resources/servers/servers.d.ts +55 -10
  98. package/resources/servers/servers.d.ts.map +1 -1
  99. package/resources/servers/servers.js +47 -8
  100. package/resources/servers/servers.js.map +1 -1
  101. package/resources/servers/servers.mjs +47 -8
  102. package/resources/servers/servers.mjs.map +1 -1
  103. package/src/client.ts +12 -6
  104. package/src/resources/beta/connect/tools.ts +0 -2
  105. package/src/resources/index.ts +4 -1
  106. package/src/resources/namespaces/index.ts +14 -0
  107. package/src/resources/namespaces/namespaces.ts +92 -0
  108. package/src/resources/namespaces/servers.ts +71 -0
  109. package/src/resources/namespaces.ts +1 -61
  110. package/src/resources/servers/deployments.ts +76 -15
  111. package/src/resources/servers/index.ts +14 -0
  112. package/src/resources/servers/logs.ts +18 -9
  113. package/src/resources/servers/repo.ts +143 -0
  114. package/src/resources/servers/secrets.ts +55 -7
  115. package/src/resources/servers/servers.ts +88 -8
  116. package/src/version.ts +1 -1
  117. package/version.d.mts +1 -1
  118. package/version.d.ts +1 -1
  119. package/version.js +1 -1
  120. package/version.mjs +1 -1
@@ -1,10 +1,12 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import * as DeploymentsAPI from "./deployments.mjs";
3
- import { DeployPayload, DeploymentDeployParams, DeploymentDeployResponse, DeploymentGetParams, DeploymentGetResponse, DeploymentListResponse, DeploymentResumeParams, DeploymentResumeResponse, Deployments, ExternalDeployPayload, HostedDeployPayload, ServerCard, StdioDeployPayload } from "./deployments.mjs";
3
+ import { DeployPayload, DeploymentDeployParams, DeploymentDeployResponse, DeploymentGetParams, DeploymentGetResponse, DeploymentListParams, DeploymentListResponse, DeploymentResumeParams, DeploymentResumeResponse, Deployments, ExternalDeployPayload, HostedDeployPayload, ServerCard, StdioDeployPayload } from "./deployments.mjs";
4
4
  import * as LogsAPI from "./logs.mjs";
5
5
  import { LogListParams, LogListResponse, Logs } from "./logs.mjs";
6
+ import * as RepoAPI from "./repo.mjs";
7
+ import { Repo, RepoDeleteParams, RepoDeleteResponse, RepoGetParams, RepoGetResponse, RepoSetParams, RepoSetResponse } from "./repo.mjs";
6
8
  import * as SecretsAPI from "./secrets.mjs";
7
- import { SecretDeleteParams, SecretDeleteResponse, SecretListResponse, SecretSetParams, SecretSetResponse, Secrets } from "./secrets.mjs";
9
+ import { SecretDeleteParams, SecretDeleteResponse, SecretListParams, SecretListResponse, SecretSetParams, SecretSetResponse, Secrets } from "./secrets.mjs";
8
10
  import { APIPromise } from "../../core/api-promise.mjs";
9
11
  import { PagePromise, SmitheryPage, type SmitheryPageParams } from "../../core/pagination.mjs";
10
12
  import { RequestOptions } from "../../internal/request-options.mjs";
@@ -12,22 +14,55 @@ export declare class Servers extends APIResource {
12
14
  deployments: DeploymentsAPI.Deployments;
13
15
  logs: LogsAPI.Logs;
14
16
  secrets: SecretsAPI.Secrets;
17
+ repo: RepoAPI.Repo;
15
18
  /**
16
19
  * Get a paginated list of all servers. Use the `q` parameter to search.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * // Automatically fetches more pages as needed.
24
+ * for await (const serverListResponse of client.servers.list()) {
25
+ * // ...
26
+ * }
27
+ * ```
17
28
  */
18
29
  list(query?: ServerListParams | null | undefined, options?: RequestOptions): PagePromise<ServerListResponsesSmitheryPage, ServerListResponse>;
19
30
  /**
20
- * Delete a server by qualified name.
31
+ * Delete a server by namespace and server name.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const server = await client.servers.delete('server', {
36
+ * namespace: 'namespace',
37
+ * });
38
+ * ```
21
39
  */
22
- delete(qualifiedName: string, options?: RequestOptions): APIPromise<ServerDeleteResponse>;
40
+ delete(server: string, params: ServerDeleteParams, options?: RequestOptions): APIPromise<ServerDeleteResponse>;
23
41
  /**
24
42
  * Download the MCPB bundle for the latest successful stdio deployment
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * const response = await client.servers.download('server', {
47
+ * namespace: 'namespace',
48
+ * });
49
+ *
50
+ * const content = await response.blob();
51
+ * console.log(content);
52
+ * ```
25
53
  */
26
- download(qualifiedName: string, options?: RequestOptions): APIPromise<Response>;
54
+ download(server: string, params: ServerDownloadParams, options?: RequestOptions): APIPromise<Response>;
27
55
  /**
28
- * Get a single server by its qualified name.
56
+ * Get a single server by its namespace and server name.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const server = await client.servers.get('server', {
61
+ * namespace: 'namespace',
62
+ * });
63
+ * ```
29
64
  */
30
- get(qualifiedName: string, options?: RequestOptions): APIPromise<ServerGetResponse>;
65
+ get(server: string, params: ServerGetParams, options?: RequestOptions): APIPromise<ServerGetResponse>;
31
66
  }
32
67
  export type ServerListResponsesSmitheryPage = SmitheryPage<ServerListResponse>;
33
68
  /**
@@ -152,10 +187,20 @@ export interface ServerListParams extends SmitheryPageParams {
152
187
  topK?: number;
153
188
  verified?: '0' | '1' | 'true' | 'false';
154
189
  }
190
+ export interface ServerDeleteParams {
191
+ namespace: string;
192
+ }
193
+ export interface ServerDownloadParams {
194
+ namespace: string;
195
+ }
196
+ export interface ServerGetParams {
197
+ namespace: string;
198
+ }
155
199
  export declare namespace Servers {
156
- export { type BuildConfig as BuildConfig, type DeploymentTarget as DeploymentTarget, type ProjectConfig as ProjectConfig, type ServerListResponse as ServerListResponse, type ServerDeleteResponse as ServerDeleteResponse, type ServerGetResponse as ServerGetResponse, type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage, type ServerListParams as ServerListParams, };
157
- export { Deployments as Deployments, 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, };
200
+ export { type BuildConfig as BuildConfig, type DeploymentTarget as DeploymentTarget, type ProjectConfig as ProjectConfig, type ServerListResponse as ServerListResponse, type ServerDeleteResponse as ServerDeleteResponse, type ServerGetResponse as ServerGetResponse, type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage, type ServerListParams as ServerListParams, type ServerDeleteParams as ServerDeleteParams, type ServerDownloadParams as ServerDownloadParams, type ServerGetParams as ServerGetParams, };
201
+ export { Deployments as Deployments, 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 DeploymentListParams as DeploymentListParams, type DeploymentDeployParams as DeploymentDeployParams, type DeploymentGetParams as DeploymentGetParams, type DeploymentResumeParams as DeploymentResumeParams, };
158
202
  export { Logs as Logs, type LogListResponse as LogListResponse, type LogListParams as LogListParams };
159
- export { Secrets as Secrets, type SecretListResponse as SecretListResponse, type SecretDeleteResponse as SecretDeleteResponse, type SecretSetResponse as SecretSetResponse, type SecretDeleteParams as SecretDeleteParams, type SecretSetParams as SecretSetParams, };
203
+ export { Secrets as Secrets, type SecretListResponse as SecretListResponse, type SecretDeleteResponse as SecretDeleteResponse, type SecretSetResponse as SecretSetResponse, type SecretListParams as SecretListParams, type SecretDeleteParams as SecretDeleteParams, type SecretSetParams as SecretSetParams, };
204
+ export { Repo as Repo, type RepoDeleteResponse as RepoDeleteResponse, type RepoGetResponse as RepoGetResponse, type RepoSetResponse as RepoSetResponse, type RepoDeleteParams as RepoDeleteParams, type RepoGetParams as RepoGetParams, type RepoSetParams as RepoSetParams, };
160
205
  }
161
206
  //# sourceMappingURL=servers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"servers.d.mts","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,kBAAkB,EACnB;OACM,KAAK,OAAO;OACZ,EAAE,aAAa,EAAE,eAAe,EAAE,IAAI,EAAE;OACxC,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,OAAO,EACR;OACM,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,kBAAkB,CAAC;IAInE;;OAEG;IACH,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,OA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C1C,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,CAAC;IAEtG,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
1
+ {"version":3,"file":"servers.d.mts","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,kBAAkB,EACnB;OACM,KAAK,OAAO;OACZ,EAAE,aAAa,EAAE,eAAe,EAAE,IAAI,EAAE;OACxC,KAAK,OAAO;OACZ,EACL,IAAI,EACJ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,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,CAAC;IAEtG,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -1,10 +1,12 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import * as DeploymentsAPI from "./deployments.js";
3
- import { DeployPayload, DeploymentDeployParams, DeploymentDeployResponse, DeploymentGetParams, DeploymentGetResponse, DeploymentListResponse, DeploymentResumeParams, DeploymentResumeResponse, Deployments, ExternalDeployPayload, HostedDeployPayload, ServerCard, StdioDeployPayload } from "./deployments.js";
3
+ import { DeployPayload, DeploymentDeployParams, DeploymentDeployResponse, DeploymentGetParams, DeploymentGetResponse, DeploymentListParams, DeploymentListResponse, DeploymentResumeParams, DeploymentResumeResponse, Deployments, ExternalDeployPayload, HostedDeployPayload, ServerCard, StdioDeployPayload } from "./deployments.js";
4
4
  import * as LogsAPI from "./logs.js";
5
5
  import { LogListParams, LogListResponse, Logs } from "./logs.js";
6
+ import * as RepoAPI from "./repo.js";
7
+ import { Repo, RepoDeleteParams, RepoDeleteResponse, RepoGetParams, RepoGetResponse, RepoSetParams, RepoSetResponse } from "./repo.js";
6
8
  import * as SecretsAPI from "./secrets.js";
7
- import { SecretDeleteParams, SecretDeleteResponse, SecretListResponse, SecretSetParams, SecretSetResponse, Secrets } from "./secrets.js";
9
+ import { SecretDeleteParams, SecretDeleteResponse, SecretListParams, SecretListResponse, SecretSetParams, SecretSetResponse, Secrets } from "./secrets.js";
8
10
  import { APIPromise } from "../../core/api-promise.js";
9
11
  import { PagePromise, SmitheryPage, type SmitheryPageParams } from "../../core/pagination.js";
10
12
  import { RequestOptions } from "../../internal/request-options.js";
@@ -12,22 +14,55 @@ export declare class Servers extends APIResource {
12
14
  deployments: DeploymentsAPI.Deployments;
13
15
  logs: LogsAPI.Logs;
14
16
  secrets: SecretsAPI.Secrets;
17
+ repo: RepoAPI.Repo;
15
18
  /**
16
19
  * Get a paginated list of all servers. Use the `q` parameter to search.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * // Automatically fetches more pages as needed.
24
+ * for await (const serverListResponse of client.servers.list()) {
25
+ * // ...
26
+ * }
27
+ * ```
17
28
  */
18
29
  list(query?: ServerListParams | null | undefined, options?: RequestOptions): PagePromise<ServerListResponsesSmitheryPage, ServerListResponse>;
19
30
  /**
20
- * Delete a server by qualified name.
31
+ * Delete a server by namespace and server name.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const server = await client.servers.delete('server', {
36
+ * namespace: 'namespace',
37
+ * });
38
+ * ```
21
39
  */
22
- delete(qualifiedName: string, options?: RequestOptions): APIPromise<ServerDeleteResponse>;
40
+ delete(server: string, params: ServerDeleteParams, options?: RequestOptions): APIPromise<ServerDeleteResponse>;
23
41
  /**
24
42
  * Download the MCPB bundle for the latest successful stdio deployment
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * const response = await client.servers.download('server', {
47
+ * namespace: 'namespace',
48
+ * });
49
+ *
50
+ * const content = await response.blob();
51
+ * console.log(content);
52
+ * ```
25
53
  */
26
- download(qualifiedName: string, options?: RequestOptions): APIPromise<Response>;
54
+ download(server: string, params: ServerDownloadParams, options?: RequestOptions): APIPromise<Response>;
27
55
  /**
28
- * Get a single server by its qualified name.
56
+ * Get a single server by its namespace and server name.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const server = await client.servers.get('server', {
61
+ * namespace: 'namespace',
62
+ * });
63
+ * ```
29
64
  */
30
- get(qualifiedName: string, options?: RequestOptions): APIPromise<ServerGetResponse>;
65
+ get(server: string, params: ServerGetParams, options?: RequestOptions): APIPromise<ServerGetResponse>;
31
66
  }
32
67
  export type ServerListResponsesSmitheryPage = SmitheryPage<ServerListResponse>;
33
68
  /**
@@ -152,10 +187,20 @@ export interface ServerListParams extends SmitheryPageParams {
152
187
  topK?: number;
153
188
  verified?: '0' | '1' | 'true' | 'false';
154
189
  }
190
+ export interface ServerDeleteParams {
191
+ namespace: string;
192
+ }
193
+ export interface ServerDownloadParams {
194
+ namespace: string;
195
+ }
196
+ export interface ServerGetParams {
197
+ namespace: string;
198
+ }
155
199
  export declare namespace Servers {
156
- export { type BuildConfig as BuildConfig, type DeploymentTarget as DeploymentTarget, type ProjectConfig as ProjectConfig, type ServerListResponse as ServerListResponse, type ServerDeleteResponse as ServerDeleteResponse, type ServerGetResponse as ServerGetResponse, type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage, type ServerListParams as ServerListParams, };
157
- export { Deployments as Deployments, 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, };
200
+ export { type BuildConfig as BuildConfig, type DeploymentTarget as DeploymentTarget, type ProjectConfig as ProjectConfig, type ServerListResponse as ServerListResponse, type ServerDeleteResponse as ServerDeleteResponse, type ServerGetResponse as ServerGetResponse, type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage, type ServerListParams as ServerListParams, type ServerDeleteParams as ServerDeleteParams, type ServerDownloadParams as ServerDownloadParams, type ServerGetParams as ServerGetParams, };
201
+ export { Deployments as Deployments, 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 DeploymentListParams as DeploymentListParams, type DeploymentDeployParams as DeploymentDeployParams, type DeploymentGetParams as DeploymentGetParams, type DeploymentResumeParams as DeploymentResumeParams, };
158
202
  export { Logs as Logs, type LogListResponse as LogListResponse, type LogListParams as LogListParams };
159
- export { Secrets as Secrets, type SecretListResponse as SecretListResponse, type SecretDeleteResponse as SecretDeleteResponse, type SecretSetResponse as SecretSetResponse, type SecretDeleteParams as SecretDeleteParams, type SecretSetParams as SecretSetParams, };
203
+ export { Secrets as Secrets, type SecretListResponse as SecretListResponse, type SecretDeleteResponse as SecretDeleteResponse, type SecretSetResponse as SecretSetResponse, type SecretListParams as SecretListParams, type SecretDeleteParams as SecretDeleteParams, type SecretSetParams as SecretSetParams, };
204
+ export { Repo as Repo, type RepoDeleteResponse as RepoDeleteResponse, type RepoGetResponse as RepoGetResponse, type RepoSetResponse as RepoSetResponse, type RepoDeleteParams as RepoDeleteParams, type RepoGetParams as RepoGetParams, type RepoSetParams as RepoSetParams, };
160
205
  }
161
206
  //# sourceMappingURL=servers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,kBAAkB,EACnB;OACM,KAAK,OAAO;OACZ,EAAE,aAAa,EAAE,eAAe,EAAE,IAAI,EAAE;OACxC,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,OAAO,EACR;OACM,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,kBAAkB,CAAC;IAInE;;OAEG;IACH,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIzF;;OAEG;I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,aAAa,EACnC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,CAAC;IAEtG,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
1
+ {"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,kBAAkB,EACnB;OACM,KAAK,OAAO;OACZ,EAAE,aAAa,EAAE,eAAe,EAAE,IAAI,EAAE;OACxC,KAAK,OAAO;OACZ,EACL,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,aAAa,EACb,eAAe,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BAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,CAAC;IAEtG,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -8,6 +8,8 @@ const DeploymentsAPI = tslib_1.__importStar(require("./deployments.js"));
8
8
  const deployments_1 = require("./deployments.js");
9
9
  const LogsAPI = tslib_1.__importStar(require("./logs.js"));
10
10
  const logs_1 = require("./logs.js");
11
+ const RepoAPI = tslib_1.__importStar(require("./repo.js"));
12
+ const repo_1 = require("./repo.js");
11
13
  const SecretsAPI = tslib_1.__importStar(require("./secrets.js"));
12
14
  const secrets_1 = require("./secrets.js");
13
15
  const pagination_1 = require("../../core/pagination.js");
@@ -19,38 +21,75 @@ class Servers extends resource_1.APIResource {
19
21
  this.deployments = new DeploymentsAPI.Deployments(this._client);
20
22
  this.logs = new LogsAPI.Logs(this._client);
21
23
  this.secrets = new SecretsAPI.Secrets(this._client);
24
+ this.repo = new RepoAPI.Repo(this._client);
22
25
  }
23
26
  /**
24
27
  * Get a paginated list of all servers. Use the `q` parameter to search.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * // Automatically fetches more pages as needed.
32
+ * for await (const serverListResponse of client.servers.list()) {
33
+ * // ...
34
+ * }
35
+ * ```
25
36
  */
26
37
  list(query = {}, options) {
27
38
  return this._client.getAPIList('/servers', (pagination_1.SmitheryPage), { query, ...options });
28
39
  }
29
40
  /**
30
- * Delete a server by qualified name.
41
+ * Delete a server by namespace and server name.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const server = await client.servers.delete('server', {
46
+ * namespace: 'namespace',
47
+ * });
48
+ * ```
31
49
  */
32
- delete(qualifiedName, options) {
33
- return this._client.delete((0, path_1.path) `/servers/${qualifiedName}`, options);
50
+ delete(server, params, options) {
51
+ const { namespace } = params;
52
+ return this._client.delete((0, path_1.path) `/servers/${namespace}/${server}`, options);
34
53
  }
35
54
  /**
36
55
  * Download the MCPB bundle for the latest successful stdio deployment
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * const response = await client.servers.download('server', {
60
+ * namespace: 'namespace',
61
+ * });
62
+ *
63
+ * const content = await response.blob();
64
+ * console.log(content);
65
+ * ```
37
66
  */
38
- download(qualifiedName, options) {
39
- return this._client.get((0, path_1.path) `/servers/${qualifiedName}/download`, {
67
+ download(server, params, options) {
68
+ const { namespace } = params;
69
+ return this._client.get((0, path_1.path) `/servers/${namespace}/${server}/download`, {
40
70
  ...options,
41
71
  headers: (0, headers_1.buildHeaders)([{ Accept: 'application/zip' }, options?.headers]),
42
72
  __binaryResponse: true,
43
73
  });
44
74
  }
45
75
  /**
46
- * Get a single server by its qualified name.
76
+ * Get a single server by its namespace and server name.
77
+ *
78
+ * @example
79
+ * ```ts
80
+ * const server = await client.servers.get('server', {
81
+ * namespace: 'namespace',
82
+ * });
83
+ * ```
47
84
  */
48
- get(qualifiedName, options) {
49
- return this._client.get((0, path_1.path) `/servers/${qualifiedName}`, options);
85
+ get(server, params, options) {
86
+ const { namespace } = params;
87
+ return this._client.get((0, path_1.path) `/servers/${namespace}/${server}`, options);
50
88
  }
51
89
  }
52
90
  exports.Servers = Servers;
53
91
  Servers.Deployments = deployments_1.Deployments;
54
92
  Servers.Logs = logs_1.Logs;
55
93
  Servers.Secrets = secrets_1.Secrets;
94
+ Servers.Repo = repo_1.Repo;
56
95
  //# sourceMappingURL=servers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"servers.js","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAcuB;AACvB,2DAAkC;AAClC,oCAA8D;AAC9D,iEAAwC;AACxC,0CAOmB;AAEnB,yDAA2F;AAC3F,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoCrE,CAAC;IAlCC;;OAEG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,yBAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,aAAqB,EAAE,OAAw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WAAI,EAAA,YAAY,SAAS,IAAI,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AA/ED,0BA+EC;AA6LD,OAAO,CAAC,WAAW,GAAG,yBAAW,CAAC;AAClC,OAAO,CAAC,IAAI,GAAG,WAAI,CAAC;AACpB,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC1B,OAAO,CAAC,IAAI,GAAG,WAAI,CAAC"}
@@ -4,6 +4,8 @@ import * as DeploymentsAPI from "./deployments.mjs";
4
4
  import { Deployments, } from "./deployments.mjs";
5
5
  import * as LogsAPI from "./logs.mjs";
6
6
  import { Logs } from "./logs.mjs";
7
+ import * as RepoAPI from "./repo.mjs";
8
+ import { Repo, } from "./repo.mjs";
7
9
  import * as SecretsAPI from "./secrets.mjs";
8
10
  import { Secrets, } from "./secrets.mjs";
9
11
  import { SmitheryPage } from "../../core/pagination.mjs";
@@ -15,37 +17,74 @@ export class Servers extends APIResource {
15
17
  this.deployments = new DeploymentsAPI.Deployments(this._client);
16
18
  this.logs = new LogsAPI.Logs(this._client);
17
19
  this.secrets = new SecretsAPI.Secrets(this._client);
20
+ this.repo = new RepoAPI.Repo(this._client);
18
21
  }
19
22
  /**
20
23
  * Get a paginated list of all servers. Use the `q` parameter to search.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * // Automatically fetches more pages as needed.
28
+ * for await (const serverListResponse of client.servers.list()) {
29
+ * // ...
30
+ * }
31
+ * ```
21
32
  */
22
33
  list(query = {}, options) {
23
34
  return this._client.getAPIList('/servers', (SmitheryPage), { query, ...options });
24
35
  }
25
36
  /**
26
- * Delete a server by qualified name.
37
+ * Delete a server by namespace and server name.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const server = await client.servers.delete('server', {
42
+ * namespace: 'namespace',
43
+ * });
44
+ * ```
27
45
  */
28
- delete(qualifiedName, options) {
29
- return this._client.delete(path `/servers/${qualifiedName}`, options);
46
+ delete(server, params, options) {
47
+ const { namespace } = params;
48
+ return this._client.delete(path `/servers/${namespace}/${server}`, options);
30
49
  }
31
50
  /**
32
51
  * Download the MCPB bundle for the latest successful stdio deployment
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * const response = await client.servers.download('server', {
56
+ * namespace: 'namespace',
57
+ * });
58
+ *
59
+ * const content = await response.blob();
60
+ * console.log(content);
61
+ * ```
33
62
  */
34
- download(qualifiedName, options) {
35
- return this._client.get(path `/servers/${qualifiedName}/download`, {
63
+ download(server, params, options) {
64
+ const { namespace } = params;
65
+ return this._client.get(path `/servers/${namespace}/${server}/download`, {
36
66
  ...options,
37
67
  headers: buildHeaders([{ Accept: 'application/zip' }, options?.headers]),
38
68
  __binaryResponse: true,
39
69
  });
40
70
  }
41
71
  /**
42
- * Get a single server by its qualified name.
72
+ * Get a single server by its namespace and server name.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const server = await client.servers.get('server', {
77
+ * namespace: 'namespace',
78
+ * });
79
+ * ```
43
80
  */
44
- get(qualifiedName, options) {
45
- return this._client.get(path `/servers/${qualifiedName}`, options);
81
+ get(server, params, options) {
82
+ const { namespace } = params;
83
+ return this._client.get(path `/servers/${namespace}/${server}`, options);
46
84
  }
47
85
  }
48
86
  Servers.Deployments = Deployments;
49
87
  Servers.Logs = Logs;
50
88
  Servers.Secrets = Secrets;
89
+ Servers.Repo = Repo;
51
90
  //# sourceMappingURL=servers.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"servers.mjs","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EASL,WAAW,GAKZ;OACM,KAAK,OAAO;OACZ,EAAkC,IAAI,EAAE;OACxC,KAAK,UAAU;OACf,EAML,OAAO,GACR;OAEM,EAAe,YAAY,EAA2B;OACtD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAx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,MAAc,EAAE,MAA4B,EAAE,OAAwB;QAC7E,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,WAAW,EAAE;YACtE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACxE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAc,EAAE,MAAuB,EAAE,OAAwB;QACnE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,SAAS,IAAI,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AA6LD,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;AAClC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;AACpB,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;AAC1B,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC"}
package/src/client.ts CHANGED
@@ -30,12 +30,6 @@ import * as Uploads from './core/uploads';
30
30
  import * as API from './resources/index';
31
31
  import { APIPromise } from './core/api-promise';
32
32
  import { Health, HealthCheckResponse } from './resources/health';
33
- import {
34
- NamespaceCreateResponse,
35
- NamespaceListResponse,
36
- NamespaceSetResponse,
37
- Namespaces,
38
- } from './resources/namespaces';
39
33
  import { SkillListParams, SkillListResponse, SkillListResponsesSkillsPage, Skills } from './resources/skills';
40
34
  import {
41
35
  Action,
@@ -50,11 +44,20 @@ import {
50
44
  } from './resources/tokens';
51
45
  import { Uplink, UplinkCreateTokenResponse } from './resources/uplink';
52
46
  import { Beta } from './resources/beta/beta';
47
+ import {
48
+ NamespaceCreateResponse,
49
+ NamespaceListResponse,
50
+ NamespaceSetResponse,
51
+ Namespaces,
52
+ } from './resources/namespaces/namespaces';
53
53
  import {
54
54
  BuildConfig,
55
55
  DeploymentTarget,
56
56
  ProjectConfig,
57
+ ServerDeleteParams,
57
58
  ServerDeleteResponse,
59
+ ServerDownloadParams,
60
+ ServerGetParams,
58
61
  ServerGetResponse,
59
62
  ServerListParams,
60
63
  ServerListResponse,
@@ -808,6 +811,9 @@ export declare namespace Smithery {
808
811
  type ServerGetResponse as ServerGetResponse,
809
812
  type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage,
810
813
  type ServerListParams as ServerListParams,
814
+ type ServerDeleteParams as ServerDeleteParams,
815
+ type ServerDownloadParams as ServerDownloadParams,
816
+ type ServerGetParams as ServerGetParams,
811
817
  };
812
818
 
813
819
  export { Uplink as Uplink, type UplinkCreateTokenResponse as UplinkCreateTokenResponse };
@@ -49,8 +49,6 @@ export namespace ToolSearchResponse {
49
49
  name: string;
50
50
 
51
51
  description?: string;
52
-
53
- inputSchema?: { [key: string]: unknown };
54
52
  }
55
53
  }
56
54
  }
@@ -7,7 +7,7 @@ export {
7
7
  type NamespaceCreateResponse,
8
8
  type NamespaceListResponse,
9
9
  type NamespaceSetResponse,
10
- } from './namespaces';
10
+ } from './namespaces/namespaces';
11
11
  export {
12
12
  Servers,
13
13
  type BuildConfig,
@@ -17,6 +17,9 @@ export {
17
17
  type ServerDeleteResponse,
18
18
  type ServerGetResponse,
19
19
  type ServerListParams,
20
+ type ServerDeleteParams,
21
+ type ServerDownloadParams,
22
+ type ServerGetParams,
20
23
  type ServerListResponsesSmitheryPage,
21
24
  } from './servers/servers';
22
25
  export {
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ Namespaces,
5
+ type NamespaceCreateResponse,
6
+ type NamespaceListResponse,
7
+ type NamespaceSetResponse,
8
+ } from './namespaces';
9
+ export {
10
+ Servers,
11
+ type CreateServerRequest,
12
+ type CreateServerResponse,
13
+ type ServerCreateParams,
14
+ } from './servers';
@@ -0,0 +1,92 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as ServersAPI from './servers';
5
+ import { CreateServerRequest, CreateServerResponse, ServerCreateParams, Servers } from './servers';
6
+ import { APIPromise } from '../../core/api-promise';
7
+ import { RequestOptions } from '../../internal/request-options';
8
+ import { path } from '../../internal/utils/path';
9
+
10
+ export class Namespaces extends APIResource {
11
+ servers: ServersAPI.Servers = new ServersAPI.Servers(this._client);
12
+
13
+ /**
14
+ * Create a new namespace with a server-generated human-readable name, owned by the
15
+ * authenticated user
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const namespace = await client.namespaces.create();
20
+ * ```
21
+ */
22
+ create(options?: RequestOptions): APIPromise<NamespaceCreateResponse> {
23
+ return this._client.post('/namespaces', options);
24
+ }
25
+
26
+ /**
27
+ * Get a list of all namespaces owned by the authenticated user
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const namespaces = await client.namespaces.list();
32
+ * ```
33
+ */
34
+ list(options?: RequestOptions): APIPromise<NamespaceListResponse> {
35
+ return this._client.get('/namespaces', options);
36
+ }
37
+
38
+ /**
39
+ * Create a new namespace owned by the authenticated user. This endpoint is
40
+ * idempotent - if the namespace already exists and is owned by the user, returns
41
+ * success.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const response = await client.namespaces.set('xxx');
46
+ * ```
47
+ */
48
+ set(name: string, options?: RequestOptions): APIPromise<NamespaceSetResponse> {
49
+ return this._client.put(path`/namespaces/${name}`, options);
50
+ }
51
+ }
52
+
53
+ export interface NamespaceCreateResponse {
54
+ createdAt: string;
55
+
56
+ name: string;
57
+ }
58
+
59
+ export interface NamespaceListResponse {
60
+ namespaces: Array<NamespaceListResponse.Namespace>;
61
+ }
62
+
63
+ export namespace NamespaceListResponse {
64
+ export interface Namespace {
65
+ createdAt: string;
66
+
67
+ name: string;
68
+ }
69
+ }
70
+
71
+ export interface NamespaceSetResponse {
72
+ createdAt: string;
73
+
74
+ name: string;
75
+ }
76
+
77
+ Namespaces.Servers = Servers;
78
+
79
+ export declare namespace Namespaces {
80
+ export {
81
+ type NamespaceCreateResponse as NamespaceCreateResponse,
82
+ type NamespaceListResponse as NamespaceListResponse,
83
+ type NamespaceSetResponse as NamespaceSetResponse,
84
+ };
85
+
86
+ export {
87
+ Servers as Servers,
88
+ type CreateServerRequest as CreateServerRequest,
89
+ type CreateServerResponse as CreateServerResponse,
90
+ type ServerCreateParams as ServerCreateParams,
91
+ };
92
+ }