@smithery/api 0.30.0 → 0.32.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 (160) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +3 -7
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -7
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/core/pagination.d.mts +0 -37
  9. package/core/pagination.d.mts.map +1 -1
  10. package/core/pagination.d.ts +0 -37
  11. package/core/pagination.d.ts.map +1 -1
  12. package/core/pagination.js +1 -47
  13. package/core/pagination.js.map +1 -1
  14. package/core/pagination.mjs +0 -44
  15. package/core/pagination.mjs.map +1 -1
  16. package/core/streaming.d.mts +33 -0
  17. package/core/streaming.d.mts.map +1 -0
  18. package/core/streaming.d.ts +33 -0
  19. package/core/streaming.d.ts.map +1 -0
  20. package/core/streaming.js +263 -0
  21. package/core/streaming.js.map +1 -0
  22. package/core/streaming.mjs +258 -0
  23. package/core/streaming.mjs.map +1 -0
  24. package/internal/decoders/line.d.mts +17 -0
  25. package/internal/decoders/line.d.mts.map +1 -0
  26. package/internal/decoders/line.d.ts +17 -0
  27. package/internal/decoders/line.d.ts.map +1 -0
  28. package/internal/decoders/line.js +113 -0
  29. package/internal/decoders/line.js.map +1 -0
  30. package/internal/decoders/line.mjs +108 -0
  31. package/internal/decoders/line.mjs.map +1 -0
  32. package/internal/parse.d.mts.map +1 -1
  33. package/internal/parse.d.ts.map +1 -1
  34. package/internal/parse.js +10 -0
  35. package/internal/parse.js.map +1 -1
  36. package/internal/parse.mjs +10 -0
  37. package/internal/parse.mjs.map +1 -1
  38. package/internal/request-options.d.mts +2 -0
  39. package/internal/request-options.d.mts.map +1 -1
  40. package/internal/request-options.d.ts +2 -0
  41. package/internal/request-options.d.ts.map +1 -1
  42. package/internal/request-options.js.map +1 -1
  43. package/internal/request-options.mjs.map +1 -1
  44. package/package.json +11 -1
  45. package/resources/beta/beta.d.mts +0 -4
  46. package/resources/beta/beta.d.mts.map +1 -1
  47. package/resources/beta/beta.d.ts +0 -4
  48. package/resources/beta/beta.d.ts.map +1 -1
  49. package/resources/beta/beta.js +0 -4
  50. package/resources/beta/beta.js.map +1 -1
  51. package/resources/beta/beta.mjs +0 -4
  52. package/resources/beta/beta.mjs.map +1 -1
  53. package/resources/beta/connect/mcp.d.mts +1 -24
  54. package/resources/beta/connect/mcp.d.mts.map +1 -1
  55. package/resources/beta/connect/mcp.d.ts +1 -24
  56. package/resources/beta/connect/mcp.d.ts.map +1 -1
  57. package/resources/beta/connect/mcp.js +3 -7
  58. package/resources/beta/connect/mcp.js.map +1 -1
  59. package/resources/beta/connect/mcp.mjs +3 -7
  60. package/resources/beta/connect/mcp.mjs.map +1 -1
  61. package/resources/beta/index.d.mts +0 -1
  62. package/resources/beta/index.d.mts.map +1 -1
  63. package/resources/beta/index.d.ts +0 -1
  64. package/resources/beta/index.d.ts.map +1 -1
  65. package/resources/beta/index.js +1 -3
  66. package/resources/beta/index.js.map +1 -1
  67. package/resources/beta/index.mjs +0 -1
  68. package/resources/beta/index.mjs.map +1 -1
  69. package/resources/index.d.mts +1 -1
  70. package/resources/index.d.mts.map +1 -1
  71. package/resources/index.d.ts +1 -1
  72. package/resources/index.d.ts.map +1 -1
  73. package/resources/index.js.map +1 -1
  74. package/resources/index.mjs.map +1 -1
  75. package/resources/servers/deployments.d.mts +178 -1
  76. package/resources/servers/deployments.d.mts.map +1 -1
  77. package/resources/servers/deployments.d.ts +178 -1
  78. package/resources/servers/deployments.d.ts.map +1 -1
  79. package/resources/servers/deployments.js +100 -0
  80. package/resources/servers/deployments.js.map +1 -1
  81. package/resources/servers/deployments.mjs +100 -0
  82. package/resources/servers/deployments.mjs.map +1 -1
  83. package/resources/servers/index.d.mts +5 -5
  84. package/resources/servers/index.d.mts.map +1 -1
  85. package/resources/servers/index.d.ts +5 -5
  86. package/resources/servers/index.d.ts.map +1 -1
  87. package/resources/servers/index.js.map +1 -1
  88. package/resources/servers/index.mjs +1 -1
  89. package/resources/servers/index.mjs.map +1 -1
  90. package/resources/servers/logs.d.mts +70 -1
  91. package/resources/servers/logs.d.mts.map +1 -1
  92. package/resources/servers/logs.d.ts +70 -1
  93. package/resources/servers/logs.d.ts.map +1 -1
  94. package/resources/servers/logs.js +14 -0
  95. package/resources/servers/logs.js.map +1 -1
  96. package/resources/servers/logs.mjs +14 -0
  97. package/resources/servers/logs.mjs.map +1 -1
  98. package/resources/servers/repo.d.mts +63 -1
  99. package/resources/servers/repo.d.mts.map +1 -1
  100. package/resources/servers/repo.d.ts +63 -1
  101. package/resources/servers/repo.d.ts.map +1 -1
  102. package/resources/servers/repo.js +40 -0
  103. package/resources/servers/repo.js.map +1 -1
  104. package/resources/servers/repo.mjs +40 -0
  105. package/resources/servers/repo.mjs.map +1 -1
  106. package/resources/servers/secrets.d.mts +57 -1
  107. package/resources/servers/secrets.d.mts.map +1 -1
  108. package/resources/servers/secrets.d.ts +57 -1
  109. package/resources/servers/secrets.d.ts.map +1 -1
  110. package/resources/servers/secrets.js +43 -0
  111. package/resources/servers/secrets.js.map +1 -1
  112. package/resources/servers/secrets.mjs +43 -0
  113. package/resources/servers/secrets.mjs.map +1 -1
  114. package/resources/servers/servers.d.mts +67 -9
  115. package/resources/servers/servers.d.mts.map +1 -1
  116. package/resources/servers/servers.d.ts +67 -9
  117. package/resources/servers/servers.d.ts.map +1 -1
  118. package/resources/servers/servers.js +15 -0
  119. package/resources/servers/servers.js.map +1 -1
  120. package/resources/servers/servers.mjs +16 -1
  121. package/resources/servers/servers.mjs.map +1 -1
  122. package/src/client.ts +2 -13
  123. package/src/core/pagination.ts +0 -106
  124. package/src/core/streaming.ts +315 -0
  125. package/src/internal/decoders/line.ts +135 -0
  126. package/src/internal/parse.ts +14 -0
  127. package/src/internal/request-options.ts +2 -0
  128. package/src/resources/beta/beta.ts +0 -10
  129. package/src/resources/beta/connect/mcp.ts +3 -30
  130. package/src/resources/beta/index.ts +0 -1
  131. package/src/resources/index.ts +1 -0
  132. package/src/resources/servers/deployments.ts +301 -0
  133. package/src/resources/servers/index.ts +28 -1
  134. package/src/resources/servers/logs.ts +107 -1
  135. package/src/resources/servers/repo.ts +99 -0
  136. package/src/resources/servers/secrets.ts +88 -0
  137. package/src/resources/servers/servers.ts +135 -2
  138. package/src/streaming.ts +2 -0
  139. package/src/version.ts +1 -1
  140. package/streaming.d.mts +2 -0
  141. package/streaming.d.mts.map +1 -0
  142. package/streaming.d.ts +2 -0
  143. package/streaming.d.ts.map +1 -0
  144. package/streaming.js +6 -0
  145. package/streaming.js.map +1 -0
  146. package/streaming.mjs +2 -0
  147. package/streaming.mjs.map +1 -0
  148. package/version.d.mts +1 -1
  149. package/version.d.ts +1 -1
  150. package/version.js +1 -1
  151. package/version.mjs +1 -1
  152. package/resources/beta/tools.d.mts +0 -64
  153. package/resources/beta/tools.d.mts.map +0 -1
  154. package/resources/beta/tools.d.ts +0 -64
  155. package/resources/beta/tools.d.ts.map +0 -1
  156. package/resources/beta/tools.js +0 -25
  157. package/resources/beta/tools.js.map +0 -1
  158. package/resources/beta/tools.mjs +0 -21
  159. package/resources/beta/tools.mjs.map +0 -1
  160. package/src/resources/beta/tools.ts +0 -89
@@ -21,6 +21,25 @@ export class Logs extends APIResource {
21
21
  const { namespace, ...query } = params;
22
22
  return this._client.get(path`/servers/${namespace}/${server}/logs`, { query, ...options });
23
23
  }
24
+
25
+ /**
26
+ * Fetch recent runtime logs for the server's deployed Worker, grouped by
27
+ * invocation (requires ownership).
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const response = await client.servers.logs.listByNamespace(
32
+ * 'namespace',
33
+ * );
34
+ * ```
35
+ */
36
+ listByNamespace(
37
+ namespace: string,
38
+ query: LogListByNamespaceParams | null | undefined = {},
39
+ options?: RequestOptions,
40
+ ): APIPromise<LogListByNamespaceResponse> {
41
+ return this._client.get(path`/servers/${namespace}/logs`, { query, ...options });
42
+ }
24
43
  }
25
44
 
26
45
  export interface LogListResponse {
@@ -88,6 +107,71 @@ export namespace LogListResponse {
88
107
  }
89
108
  }
90
109
 
110
+ export interface LogListByNamespaceResponse {
111
+ invocations: Array<LogListByNamespaceResponse.Invocation>;
112
+
113
+ /**
114
+ * Total invocations matching query
115
+ */
116
+ total: number;
117
+ }
118
+
119
+ export namespace LogListByNamespaceResponse {
120
+ export interface Invocation {
121
+ id: string;
122
+
123
+ duration: Invocation.Duration;
124
+
125
+ exceptions: Array<Invocation.Exception>;
126
+
127
+ logs: Array<Invocation.Log>;
128
+
129
+ request: Invocation.Request;
130
+
131
+ response: Invocation.Response;
132
+
133
+ timestamp: string;
134
+ }
135
+
136
+ export namespace Invocation {
137
+ export interface Duration {
138
+ cpuMs: number;
139
+
140
+ wallMs: number;
141
+ }
142
+
143
+ export interface Exception {
144
+ message: string;
145
+
146
+ name: string;
147
+
148
+ timestamp: string;
149
+
150
+ stack?: string;
151
+ }
152
+
153
+ export interface Log {
154
+ level: string;
155
+
156
+ message: string;
157
+
158
+ timestamp: string;
159
+ }
160
+
161
+ export interface Request {
162
+ method: string;
163
+
164
+ url: string;
165
+ }
166
+
167
+ export interface Response {
168
+ outcome: string;
169
+
170
+ status: number;
171
+ }
172
+ }
173
+ }
174
+
91
175
  export interface LogListParams {
92
176
  /**
93
177
  * Path param
@@ -110,6 +194,28 @@ export interface LogListParams {
110
194
  to?: string;
111
195
  }
112
196
 
197
+ export interface LogListByNamespaceParams {
198
+ /**
199
+ * Start of time range (ISO 8601).
200
+ */
201
+ from?: string;
202
+
203
+ /**
204
+ * Max invocations to return. Defaults to 50.
205
+ */
206
+ limit?: number;
207
+
208
+ /**
209
+ * End of time range (ISO 8601).
210
+ */
211
+ to?: string;
212
+ }
213
+
113
214
  export declare namespace Logs {
114
- export { type LogListResponse as LogListResponse, type LogListParams as LogListParams };
215
+ export {
216
+ type LogListResponse as LogListResponse,
217
+ type LogListByNamespaceResponse as LogListByNamespaceResponse,
218
+ type LogListParams as LogListParams,
219
+ type LogListByNamespaceParams as LogListByNamespaceParams,
220
+ };
115
221
  }
@@ -21,6 +21,19 @@ export class Repo extends APIResource {
21
21
  return this._client.delete(path`/servers/${namespace}/${server}/repo`, options);
22
22
  }
23
23
 
24
+ /**
25
+ * Disconnect the GitHub repository connection from a server.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const response =
30
+ * await client.servers.repo.deleteByNamespace('namespace');
31
+ * ```
32
+ */
33
+ deleteByNamespace(namespace: string, options?: RequestOptions): APIPromise<RepoDeleteByNamespaceResponse> {
34
+ return this._client.delete(path`/servers/${namespace}/repo`, options);
35
+ }
36
+
24
37
  /**
25
38
  * Get the GitHub repository connection for a server, if one exists.
26
39
  *
@@ -36,6 +49,20 @@ export class Repo extends APIResource {
36
49
  return this._client.get(path`/servers/${namespace}/${server}/repo`, options);
37
50
  }
38
51
 
52
+ /**
53
+ * Get the GitHub repository connection for a server, if one exists.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const response = await client.servers.repo.getByNamespace(
58
+ * 'namespace',
59
+ * );
60
+ * ```
61
+ */
62
+ getByNamespace(namespace: string, options?: RequestOptions): APIPromise<RepoGetByNamespaceResponse> {
63
+ return this._client.get(path`/servers/${namespace}/repo`, options);
64
+ }
65
+
39
66
  /**
40
67
  * Upsert a GitHub repository connection for a server. Creates a new connection if
41
68
  * none exists, or updates the existing one.
@@ -53,12 +80,36 @@ export class Repo extends APIResource {
53
80
  const { namespace, ...body } = params;
54
81
  return this._client.put(path`/servers/${namespace}/${server}/repo`, { body, ...options });
55
82
  }
83
+
84
+ /**
85
+ * Upsert a GitHub repository connection for a server. Creates a new connection if
86
+ * none exists, or updates the existing one.
87
+ *
88
+ * @example
89
+ * ```ts
90
+ * const response = await client.servers.repo.setByNamespace(
91
+ * 'namespace',
92
+ * { repoName: 'x', repoOwner: 'x' },
93
+ * );
94
+ * ```
95
+ */
96
+ setByNamespace(
97
+ namespace: string,
98
+ body: RepoSetByNamespaceParams,
99
+ options?: RequestOptions,
100
+ ): APIPromise<RepoSetByNamespaceResponse> {
101
+ return this._client.put(path`/servers/${namespace}/repo`, { body, ...options });
102
+ }
56
103
  }
57
104
 
58
105
  export interface RepoDeleteResponse {
59
106
  success: boolean;
60
107
  }
61
108
 
109
+ export interface RepoDeleteByNamespaceResponse {
110
+ success: boolean;
111
+ }
112
+
62
113
  export interface RepoGetResponse {
63
114
  autoDeploy: boolean | null;
64
115
 
@@ -75,6 +126,22 @@ export interface RepoGetResponse {
75
126
  type: 'github';
76
127
  }
77
128
 
129
+ export interface RepoGetByNamespaceResponse {
130
+ autoDeploy: boolean | null;
131
+
132
+ baseDirectory: string;
133
+
134
+ branch: string | null;
135
+
136
+ isPrivate: boolean;
137
+
138
+ repoName: string;
139
+
140
+ repoOwner: string;
141
+
142
+ type: 'github';
143
+ }
144
+
78
145
  export interface RepoSetResponse {
79
146
  autoDeploy: boolean | null;
80
147
 
@@ -91,6 +158,22 @@ export interface RepoSetResponse {
91
158
  type: 'github';
92
159
  }
93
160
 
161
+ export interface RepoSetByNamespaceResponse {
162
+ autoDeploy: boolean | null;
163
+
164
+ baseDirectory: string;
165
+
166
+ branch: string | null;
167
+
168
+ isPrivate: boolean;
169
+
170
+ repoName: string;
171
+
172
+ repoOwner: string;
173
+
174
+ type: 'github';
175
+ }
176
+
94
177
  export interface RepoDeleteParams {
95
178
  namespace: string;
96
179
  }
@@ -131,13 +214,29 @@ export interface RepoSetParams {
131
214
  branch?: string | null;
132
215
  }
133
216
 
217
+ export interface RepoSetByNamespaceParams {
218
+ repoName: string;
219
+
220
+ repoOwner: string;
221
+
222
+ autoDeploy?: boolean;
223
+
224
+ baseDirectory?: string;
225
+
226
+ branch?: string | null;
227
+ }
228
+
134
229
  export declare namespace Repo {
135
230
  export {
136
231
  type RepoDeleteResponse as RepoDeleteResponse,
232
+ type RepoDeleteByNamespaceResponse as RepoDeleteByNamespaceResponse,
137
233
  type RepoGetResponse as RepoGetResponse,
234
+ type RepoGetByNamespaceResponse as RepoGetByNamespaceResponse,
138
235
  type RepoSetResponse as RepoSetResponse,
236
+ type RepoSetByNamespaceResponse as RepoSetByNamespaceResponse,
139
237
  type RepoDeleteParams as RepoDeleteParams,
140
238
  type RepoGetParams as RepoGetParams,
141
239
  type RepoSetParams as RepoSetParams,
240
+ type RepoSetByNamespaceParams as RepoSetByNamespaceParams,
142
241
  };
143
242
  }
@@ -42,6 +42,40 @@ export class Secrets extends APIResource {
42
42
  return this._client.delete(path`/servers/${namespace}/${server}/secrets/${secretName}`, options);
43
43
  }
44
44
 
45
+ /**
46
+ * Delete a secret by name from the server.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const response =
51
+ * await client.servers.secrets.deleteByNamespace(
52
+ * 'secretName',
53
+ * { namespace: 'namespace' },
54
+ * );
55
+ * ```
56
+ */
57
+ deleteByNamespace(
58
+ secretName: string,
59
+ params: SecretDeleteByNamespaceParams,
60
+ options?: RequestOptions,
61
+ ): APIPromise<SecretDeleteByNamespaceResponse> {
62
+ const { namespace } = params;
63
+ return this._client.delete(path`/servers/${namespace}/secrets/${secretName}`, options);
64
+ }
65
+
66
+ /**
67
+ * Fetch secret names for the server. Values are not returned.
68
+ *
69
+ * @example
70
+ * ```ts
71
+ * const response =
72
+ * await client.servers.secrets.listByNamespace('namespace');
73
+ * ```
74
+ */
75
+ listByNamespace(namespace: string, options?: RequestOptions): APIPromise<SecretListByNamespaceResponse> {
76
+ return this._client.get(path`/servers/${namespace}/secrets`, options);
77
+ }
78
+
45
79
  /**
46
80
  * Set a secret value for the server.
47
81
  *
@@ -61,6 +95,26 @@ export class Secrets extends APIResource {
61
95
  const { namespace, ...body } = params;
62
96
  return this._client.put(path`/servers/${namespace}/${server}/secrets`, { body, ...options });
63
97
  }
98
+
99
+ /**
100
+ * Set a secret value for the server.
101
+ *
102
+ * @example
103
+ * ```ts
104
+ * const response =
105
+ * await client.servers.secrets.setByNamespace('namespace', {
106
+ * name: 'x',
107
+ * value: 'x',
108
+ * });
109
+ * ```
110
+ */
111
+ setByNamespace(
112
+ namespace: string,
113
+ body: SecretSetByNamespaceParams,
114
+ options?: RequestOptions,
115
+ ): APIPromise<SecretSetByNamespaceResponse> {
116
+ return this._client.put(path`/servers/${namespace}/secrets`, { body, ...options });
117
+ }
64
118
  }
65
119
 
66
120
  export type SecretListResponse = Array<SecretListResponse.SecretListResponseItem>;
@@ -77,10 +131,29 @@ export interface SecretDeleteResponse {
77
131
  success: boolean;
78
132
  }
79
133
 
134
+ export interface SecretDeleteByNamespaceResponse {
135
+ success: boolean;
136
+ }
137
+
138
+ export type SecretListByNamespaceResponse =
139
+ Array<SecretListByNamespaceResponse.SecretListByNamespaceResponseItem>;
140
+
141
+ export namespace SecretListByNamespaceResponse {
142
+ export interface SecretListByNamespaceResponseItem {
143
+ name: string;
144
+
145
+ type: string;
146
+ }
147
+ }
148
+
80
149
  export interface SecretSetResponse {
81
150
  success: boolean;
82
151
  }
83
152
 
153
+ export interface SecretSetByNamespaceResponse {
154
+ success: boolean;
155
+ }
156
+
84
157
  export interface SecretListParams {
85
158
  namespace: string;
86
159
  }
@@ -91,6 +164,10 @@ export interface SecretDeleteParams {
91
164
  server: string;
92
165
  }
93
166
 
167
+ export interface SecretDeleteByNamespaceParams {
168
+ namespace: string;
169
+ }
170
+
94
171
  export interface SecretSetParams {
95
172
  /**
96
173
  * Path param
@@ -108,13 +185,24 @@ export interface SecretSetParams {
108
185
  value: string;
109
186
  }
110
187
 
188
+ export interface SecretSetByNamespaceParams {
189
+ name: string;
190
+
191
+ value: string;
192
+ }
193
+
111
194
  export declare namespace Secrets {
112
195
  export {
113
196
  type SecretListResponse as SecretListResponse,
114
197
  type SecretDeleteResponse as SecretDeleteResponse,
198
+ type SecretDeleteByNamespaceResponse as SecretDeleteByNamespaceResponse,
199
+ type SecretListByNamespaceResponse as SecretListByNamespaceResponse,
115
200
  type SecretSetResponse as SecretSetResponse,
201
+ type SecretSetByNamespaceResponse as SecretSetByNamespaceResponse,
116
202
  type SecretListParams as SecretListParams,
117
203
  type SecretDeleteParams as SecretDeleteParams,
204
+ type SecretDeleteByNamespaceParams as SecretDeleteByNamespaceParams,
118
205
  type SecretSetParams as SecretSetParams,
206
+ type SecretSetByNamespaceParams as SecretSetByNamespaceParams,
119
207
  };
120
208
  }
@@ -4,14 +4,25 @@ import { APIResource } from '../../core/resource';
4
4
  import * as DeploymentsAPI from './deployments';
5
5
  import {
6
6
  DeployPayload,
7
+ DeploymentDeployByNamespaceParams,
8
+ DeploymentDeployByNamespaceResponse,
7
9
  DeploymentDeployParams,
8
10
  DeploymentDeployResponse,
11
+ DeploymentGetByNamespaceParams,
12
+ DeploymentGetByNamespaceResponse,
9
13
  DeploymentGetParams,
10
14
  DeploymentGetResponse,
15
+ DeploymentListByNamespaceResponse,
11
16
  DeploymentListParams,
12
17
  DeploymentListResponse,
18
+ DeploymentResumeByNamespaceParams,
19
+ DeploymentResumeByNamespaceResponse,
13
20
  DeploymentResumeParams,
14
21
  DeploymentResumeResponse,
22
+ DeploymentStreamByNamespaceParams,
23
+ DeploymentStreamByNamespaceResponse,
24
+ DeploymentStreamParams,
25
+ DeploymentStreamResponse,
15
26
  Deployments,
16
27
  ExternalDeployPayload,
17
28
  HostedDeployPayload,
@@ -19,23 +30,38 @@ import {
19
30
  StdioDeployPayload,
20
31
  } from './deployments';
21
32
  import * as LogsAPI from './logs';
22
- import { LogListParams, LogListResponse, Logs } from './logs';
33
+ import {
34
+ LogListByNamespaceParams,
35
+ LogListByNamespaceResponse,
36
+ LogListParams,
37
+ LogListResponse,
38
+ Logs,
39
+ } from './logs';
23
40
  import * as RepoAPI from './repo';
24
41
  import {
25
42
  Repo,
43
+ RepoDeleteByNamespaceResponse,
26
44
  RepoDeleteParams,
27
45
  RepoDeleteResponse,
46
+ RepoGetByNamespaceResponse,
28
47
  RepoGetParams,
29
48
  RepoGetResponse,
49
+ RepoSetByNamespaceParams,
50
+ RepoSetByNamespaceResponse,
30
51
  RepoSetParams,
31
52
  RepoSetResponse,
32
53
  } from './repo';
33
54
  import * as SecretsAPI from './secrets';
34
55
  import {
56
+ SecretDeleteByNamespaceParams,
57
+ SecretDeleteByNamespaceResponse,
35
58
  SecretDeleteParams,
36
59
  SecretDeleteResponse,
60
+ SecretListByNamespaceResponse,
37
61
  SecretListParams,
38
62
  SecretListResponse,
63
+ SecretSetByNamespaceParams,
64
+ SecretSetByNamespaceResponse,
39
65
  SecretSetParams,
40
66
  SecretSetResponse,
41
67
  Secrets,
@@ -125,6 +151,22 @@ export class Servers extends APIResource {
125
151
  const { namespace } = params;
126
152
  return this._client.get(path`/servers/${namespace}/${server}`, options);
127
153
  }
154
+
155
+ /**
156
+ * Get a server by namespace name. Used for namespace-only servers where the
157
+ * namespace name is also the server name. Also handles deprecated encoded
158
+ * patterns.
159
+ *
160
+ * @example
161
+ * ```ts
162
+ * const response = await client.servers.getByNamespace(
163
+ * 'namespace',
164
+ * );
165
+ * ```
166
+ */
167
+ getByNamespace(namespace: string, options?: RequestOptions): APIPromise<ServerGetByNamespaceResponse> {
168
+ return this._client.get(path`/servers/${namespace}`, options);
169
+ }
128
170
  }
129
171
 
130
172
  export type ServerListResponsesSmitheryPage = SmitheryPage<ServerListResponse>;
@@ -284,6 +326,70 @@ export namespace ServerGetResponse {
284
326
  }
285
327
  }
286
328
 
329
+ export interface ServerGetByNamespaceResponse {
330
+ connections: Array<
331
+ ServerGetByNamespaceResponse.StdioConnection | ServerGetByNamespaceResponse.HTTPConnection
332
+ >;
333
+
334
+ deploymentUrl: string | null;
335
+
336
+ description: string;
337
+
338
+ displayName: string;
339
+
340
+ iconUrl: string | null;
341
+
342
+ qualifiedName: string;
343
+
344
+ remote: boolean;
345
+
346
+ security: ServerGetByNamespaceResponse.Security | null;
347
+
348
+ tools: Array<ServerGetByNamespaceResponse.Tool> | null;
349
+ }
350
+
351
+ export namespace ServerGetByNamespaceResponse {
352
+ export interface StdioConnection {
353
+ configSchema: { [key: string]: unknown };
354
+
355
+ type: 'stdio';
356
+
357
+ bundleUrl?: string;
358
+
359
+ runtime?: string;
360
+
361
+ stdioFunction?: string;
362
+ }
363
+
364
+ export interface HTTPConnection {
365
+ configSchema: { [key: string]: unknown };
366
+
367
+ deploymentUrl: string;
368
+
369
+ type: 'http';
370
+ }
371
+
372
+ export interface Security {
373
+ scanPassed: boolean;
374
+ }
375
+
376
+ export interface Tool {
377
+ description: string | null;
378
+
379
+ inputSchema: Tool.InputSchema;
380
+
381
+ name: string;
382
+ }
383
+
384
+ export namespace Tool {
385
+ export interface InputSchema {
386
+ type: 'object';
387
+
388
+ properties?: { [key: string]: unknown };
389
+ }
390
+ }
391
+ }
392
+
287
393
  export interface ServerListParams extends SmitheryPageParams {
288
394
  ids?: Array<string>;
289
395
 
@@ -331,6 +437,7 @@ export declare namespace Servers {
331
437
  type ServerListResponse as ServerListResponse,
332
438
  type ServerDeleteResponse as ServerDeleteResponse,
333
439
  type ServerGetResponse as ServerGetResponse,
440
+ type ServerGetByNamespaceResponse as ServerGetByNamespaceResponse,
334
441
  type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage,
335
442
  type ServerListParams as ServerListParams,
336
443
  type ServerDeleteParams as ServerDeleteParams,
@@ -347,33 +454,59 @@ export declare namespace Servers {
347
454
  type StdioDeployPayload as StdioDeployPayload,
348
455
  type DeploymentListResponse as DeploymentListResponse,
349
456
  type DeploymentDeployResponse as DeploymentDeployResponse,
457
+ type DeploymentDeployByNamespaceResponse as DeploymentDeployByNamespaceResponse,
350
458
  type DeploymentGetResponse as DeploymentGetResponse,
459
+ type DeploymentGetByNamespaceResponse as DeploymentGetByNamespaceResponse,
460
+ type DeploymentListByNamespaceResponse as DeploymentListByNamespaceResponse,
351
461
  type DeploymentResumeResponse as DeploymentResumeResponse,
462
+ type DeploymentResumeByNamespaceResponse as DeploymentResumeByNamespaceResponse,
463
+ type DeploymentStreamResponse as DeploymentStreamResponse,
464
+ type DeploymentStreamByNamespaceResponse as DeploymentStreamByNamespaceResponse,
352
465
  type DeploymentListParams as DeploymentListParams,
353
466
  type DeploymentDeployParams as DeploymentDeployParams,
467
+ type DeploymentDeployByNamespaceParams as DeploymentDeployByNamespaceParams,
354
468
  type DeploymentGetParams as DeploymentGetParams,
469
+ type DeploymentGetByNamespaceParams as DeploymentGetByNamespaceParams,
355
470
  type DeploymentResumeParams as DeploymentResumeParams,
471
+ type DeploymentResumeByNamespaceParams as DeploymentResumeByNamespaceParams,
472
+ type DeploymentStreamParams as DeploymentStreamParams,
473
+ type DeploymentStreamByNamespaceParams as DeploymentStreamByNamespaceParams,
356
474
  };
357
475
 
358
- export { Logs as Logs, type LogListResponse as LogListResponse, type LogListParams as LogListParams };
476
+ export {
477
+ Logs as Logs,
478
+ type LogListResponse as LogListResponse,
479
+ type LogListByNamespaceResponse as LogListByNamespaceResponse,
480
+ type LogListParams as LogListParams,
481
+ type LogListByNamespaceParams as LogListByNamespaceParams,
482
+ };
359
483
 
360
484
  export {
361
485
  Secrets as Secrets,
362
486
  type SecretListResponse as SecretListResponse,
363
487
  type SecretDeleteResponse as SecretDeleteResponse,
488
+ type SecretDeleteByNamespaceResponse as SecretDeleteByNamespaceResponse,
489
+ type SecretListByNamespaceResponse as SecretListByNamespaceResponse,
364
490
  type SecretSetResponse as SecretSetResponse,
491
+ type SecretSetByNamespaceResponse as SecretSetByNamespaceResponse,
365
492
  type SecretListParams as SecretListParams,
366
493
  type SecretDeleteParams as SecretDeleteParams,
494
+ type SecretDeleteByNamespaceParams as SecretDeleteByNamespaceParams,
367
495
  type SecretSetParams as SecretSetParams,
496
+ type SecretSetByNamespaceParams as SecretSetByNamespaceParams,
368
497
  };
369
498
 
370
499
  export {
371
500
  Repo as Repo,
372
501
  type RepoDeleteResponse as RepoDeleteResponse,
502
+ type RepoDeleteByNamespaceResponse as RepoDeleteByNamespaceResponse,
373
503
  type RepoGetResponse as RepoGetResponse,
504
+ type RepoGetByNamespaceResponse as RepoGetByNamespaceResponse,
374
505
  type RepoSetResponse as RepoSetResponse,
506
+ type RepoSetByNamespaceResponse as RepoSetByNamespaceResponse,
375
507
  type RepoDeleteParams as RepoDeleteParams,
376
508
  type RepoGetParams as RepoGetParams,
377
509
  type RepoSetParams as RepoSetParams,
510
+ type RepoSetByNamespaceParams as RepoSetByNamespaceParams,
378
511
  };
379
512
  }
@@ -0,0 +1,2 @@
1
+ /** @deprecated Import from ./core/streaming instead */
2
+ export * from './core/streaming';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.30.0'; // x-release-please-version
1
+ export const VERSION = '0.32.0'; // x-release-please-version
@@ -0,0 +1,2 @@
1
+ export * from "./core/streaming.mjs";
2
+ //# sourceMappingURL=streaming.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming.d.mts","sourceRoot":"","sources":["src/streaming.ts"],"names":[],"mappings":""}
package/streaming.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./core/streaming.js";
2
+ //# sourceMappingURL=streaming.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["src/streaming.ts"],"names":[],"mappings":""}
package/streaming.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("./internal/tslib.js");
4
+ /** @deprecated Import from ./core/streaming instead */
5
+ tslib_1.__exportStar(require("./core/streaming.js"), exports);
6
+ //# sourceMappingURL=streaming.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming.js","sourceRoot":"","sources":["src/streaming.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,8DAAiC"}
package/streaming.mjs ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./core/streaming.mjs";
2
+ //# sourceMappingURL=streaming.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming.mjs","sourceRoot":"","sources":["src/streaming.ts"],"names":[],"mappings":""}
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.30.0";
1
+ export declare const VERSION = "0.32.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.30.0";
1
+ export declare const VERSION = "0.32.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.30.0'; // x-release-please-version
4
+ exports.VERSION = '0.32.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.30.0'; // x-release-please-version
1
+ export const VERSION = '0.32.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map