@smithery/api 0.34.0 → 0.35.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 (177) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +11 -7
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +11 -7
  5. package/client.d.ts.map +1 -1
  6. package/client.js +4 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +4 -3
  9. package/client.mjs.map +1 -1
  10. package/core/pagination.d.mts +46 -0
  11. package/core/pagination.d.mts.map +1 -1
  12. package/core/pagination.d.ts +46 -0
  13. package/core/pagination.d.ts.map +1 -1
  14. package/core/pagination.js +45 -1
  15. package/core/pagination.js.map +1 -1
  16. package/core/pagination.mjs +42 -0
  17. package/core/pagination.mjs.map +1 -1
  18. package/internal/parse.d.mts.map +1 -1
  19. package/internal/parse.d.ts.map +1 -1
  20. package/internal/parse.js +5 -0
  21. package/internal/parse.js.map +1 -1
  22. package/internal/parse.mjs +5 -0
  23. package/internal/parse.mjs.map +1 -1
  24. package/package.json +1 -1
  25. package/resources/experimental/agents/agents.d.mts +84 -89
  26. package/resources/experimental/agents/agents.d.mts.map +1 -1
  27. package/resources/experimental/agents/agents.d.ts +84 -89
  28. package/resources/experimental/agents/agents.d.ts.map +1 -1
  29. package/resources/experimental/agents/agents.js.map +1 -1
  30. package/resources/experimental/agents/agents.mjs.map +1 -1
  31. package/resources/experimental/agents/index.d.mts +1 -1
  32. package/resources/experimental/agents/index.d.mts.map +1 -1
  33. package/resources/experimental/agents/index.d.ts +1 -1
  34. package/resources/experimental/agents/index.d.ts.map +1 -1
  35. package/resources/experimental/agents/index.js.map +1 -1
  36. package/resources/experimental/agents/index.mjs +1 -1
  37. package/resources/experimental/agents/index.mjs.map +1 -1
  38. package/resources/experimental/agents/responses.d.mts +1 -31
  39. package/resources/experimental/agents/responses.d.mts.map +1 -1
  40. package/resources/experimental/agents/responses.d.ts +1 -31
  41. package/resources/experimental/agents/responses.d.ts.map +1 -1
  42. package/resources/experimental/connect/connections.d.mts +4 -2
  43. package/resources/experimental/connect/connections.d.mts.map +1 -1
  44. package/resources/experimental/connect/connections.d.ts +4 -2
  45. package/resources/experimental/connect/connections.d.ts.map +1 -1
  46. package/resources/experimental/connect/connections.js +4 -2
  47. package/resources/experimental/connect/connections.js.map +1 -1
  48. package/resources/experimental/connect/connections.mjs +4 -2
  49. package/resources/experimental/connect/connections.mjs.map +1 -1
  50. package/resources/experimental/experimental.d.mts +2 -2
  51. package/resources/experimental/experimental.d.mts.map +1 -1
  52. package/resources/experimental/experimental.d.ts +2 -2
  53. package/resources/experimental/experimental.d.ts.map +1 -1
  54. package/resources/experimental/experimental.js.map +1 -1
  55. package/resources/experimental/experimental.mjs +1 -1
  56. package/resources/experimental/experimental.mjs.map +1 -1
  57. package/resources/experimental/index.d.mts +1 -1
  58. package/resources/experimental/index.d.mts.map +1 -1
  59. package/resources/experimental/index.d.ts +1 -1
  60. package/resources/experimental/index.d.ts.map +1 -1
  61. package/resources/experimental/index.js.map +1 -1
  62. package/resources/experimental/index.mjs +1 -1
  63. package/resources/experimental/index.mjs.map +1 -1
  64. package/resources/index.d.mts +3 -3
  65. package/resources/index.d.mts.map +1 -1
  66. package/resources/index.d.ts +3 -3
  67. package/resources/index.d.ts.map +1 -1
  68. package/resources/index.js +1 -1
  69. package/resources/index.js.map +1 -1
  70. package/resources/index.mjs +1 -1
  71. package/resources/index.mjs.map +1 -1
  72. package/resources/namespaces/index.d.mts +1 -1
  73. package/resources/namespaces/index.d.mts.map +1 -1
  74. package/resources/namespaces/index.d.ts +1 -1
  75. package/resources/namespaces/index.d.ts.map +1 -1
  76. package/resources/namespaces/index.js.map +1 -1
  77. package/resources/namespaces/index.mjs.map +1 -1
  78. package/resources/namespaces/namespaces.d.mts +35 -11
  79. package/resources/namespaces/namespaces.d.mts.map +1 -1
  80. package/resources/namespaces/namespaces.d.ts +35 -11
  81. package/resources/namespaces/namespaces.d.ts.map +1 -1
  82. package/resources/namespaces/namespaces.js +14 -4
  83. package/resources/namespaces/namespaces.js.map +1 -1
  84. package/resources/namespaces/namespaces.mjs +14 -4
  85. package/resources/namespaces/namespaces.mjs.map +1 -1
  86. package/resources/namespaces/servers.d.mts +3 -8
  87. package/resources/namespaces/servers.d.mts.map +1 -1
  88. package/resources/namespaces/servers.d.ts +3 -8
  89. package/resources/namespaces/servers.d.ts.map +1 -1
  90. package/resources/namespaces/servers.js +3 -8
  91. package/resources/namespaces/servers.js.map +1 -1
  92. package/resources/namespaces/servers.mjs +3 -8
  93. package/resources/namespaces/servers.mjs.map +1 -1
  94. package/resources/servers/deployments.d.mts +204 -6
  95. package/resources/servers/deployments.d.mts.map +1 -1
  96. package/resources/servers/deployments.d.ts +204 -6
  97. package/resources/servers/deployments.d.ts.map +1 -1
  98. package/resources/servers/deployments.js +14 -6
  99. package/resources/servers/deployments.js.map +1 -1
  100. package/resources/servers/deployments.mjs +14 -6
  101. package/resources/servers/deployments.mjs.map +1 -1
  102. package/resources/servers/index.d.mts +1 -1
  103. package/resources/servers/index.d.mts.map +1 -1
  104. package/resources/servers/index.d.ts +1 -1
  105. package/resources/servers/index.d.ts.map +1 -1
  106. package/resources/servers/index.js.map +1 -1
  107. package/resources/servers/index.mjs.map +1 -1
  108. package/resources/servers/servers.d.mts +135 -2
  109. package/resources/servers/servers.d.mts.map +1 -1
  110. package/resources/servers/servers.d.ts +135 -2
  111. package/resources/servers/servers.d.ts.map +1 -1
  112. package/resources/servers/servers.js +33 -1
  113. package/resources/servers/servers.js.map +1 -1
  114. package/resources/servers/servers.mjs +33 -1
  115. package/resources/servers/servers.mjs.map +1 -1
  116. package/resources/skills/index.d.mts +3 -0
  117. package/resources/skills/index.d.mts.map +1 -0
  118. package/resources/skills/index.d.ts +3 -0
  119. package/resources/skills/index.d.ts.map +1 -0
  120. package/resources/skills/index.js +9 -0
  121. package/resources/skills/index.js.map +1 -0
  122. package/resources/skills/index.mjs +4 -0
  123. package/resources/skills/index.mjs.map +1 -0
  124. package/resources/skills/reviews.d.mts +123 -0
  125. package/resources/skills/reviews.d.mts.map +1 -0
  126. package/resources/skills/reviews.d.ts +123 -0
  127. package/resources/skills/reviews.d.ts.map +1 -0
  128. package/resources/skills/reviews.js +40 -0
  129. package/resources/skills/reviews.js.map +1 -0
  130. package/resources/skills/reviews.mjs +36 -0
  131. package/resources/skills/reviews.mjs.map +1 -0
  132. package/resources/skills/skills.d.mts +135 -0
  133. package/resources/skills/skills.d.mts.map +1 -0
  134. package/resources/skills/skills.d.ts +135 -0
  135. package/resources/skills/skills.d.ts.map +1 -0
  136. package/resources/skills/skills.js +33 -0
  137. package/resources/skills/skills.js.map +1 -0
  138. package/resources/skills/skills.mjs +28 -0
  139. package/resources/skills/skills.mjs.map +1 -0
  140. package/resources/skills.d.mts +1 -39
  141. package/resources/skills.d.mts.map +1 -1
  142. package/resources/skills.d.ts +1 -39
  143. package/resources/skills.d.ts.map +1 -1
  144. package/resources/skills.js +2 -13
  145. package/resources/skills.js.map +1 -1
  146. package/resources/skills.mjs +1 -11
  147. package/resources/skills.mjs.map +1 -1
  148. package/resources/tokens.d.mts +5 -1
  149. package/resources/tokens.d.mts.map +1 -1
  150. package/resources/tokens.d.ts +5 -1
  151. package/resources/tokens.d.ts.map +1 -1
  152. package/src/client.ts +38 -3
  153. package/src/core/pagination.ts +118 -0
  154. package/src/internal/parse.ts +6 -0
  155. package/src/resources/experimental/agents/agents.ts +111 -106
  156. package/src/resources/experimental/agents/index.ts +17 -1
  157. package/src/resources/experimental/agents/responses.ts +1 -44
  158. package/src/resources/experimental/connect/connections.ts +4 -2
  159. package/src/resources/experimental/experimental.ts +28 -1
  160. package/src/resources/experimental/index.ts +17 -1
  161. package/src/resources/index.ts +9 -1
  162. package/src/resources/namespaces/index.ts +2 -0
  163. package/src/resources/namespaces/namespaces.ts +49 -13
  164. package/src/resources/namespaces/servers.ts +3 -8
  165. package/src/resources/servers/deployments.ts +204 -6
  166. package/src/resources/servers/index.ts +4 -0
  167. package/src/resources/servers/servers.ts +170 -1
  168. package/src/resources/skills/index.ts +21 -0
  169. package/src/resources/skills/reviews.ts +191 -0
  170. package/src/resources/skills/skills.ts +219 -0
  171. package/src/resources/skills.ts +1 -72
  172. package/src/resources/tokens.ts +5 -1
  173. package/src/version.ts +1 -1
  174. package/version.d.mts +1 -1
  175. package/version.d.ts +1 -1
  176. package/version.js +1 -1
  177. package/version.mjs +1 -1
@@ -8,6 +8,21 @@ export class Agents extends APIResource {
8
8
  responses: ResponsesAPI.Responses = new ResponsesAPI.Responses(this._client);
9
9
  }
10
10
 
11
+ export interface AssistantMessage {
12
+ /**
13
+ * Message ID
14
+ */
15
+ id: string;
16
+
17
+ content: Array<OutputTextContent>;
18
+
19
+ role: 'assistant';
20
+
21
+ status: 'in_progress' | 'completed' | 'incomplete';
22
+
23
+ type: 'message';
24
+ }
25
+
11
26
  export interface CreateResponseRequest {
12
27
  /**
13
28
  * Smithery namespace for tool discovery
@@ -22,10 +37,7 @@ export interface CreateResponseRequest {
22
37
  /**
23
38
  * Input text or array of messages
24
39
  */
25
- input?:
26
- | string
27
- | Array<CreateResponseRequest.AgentUserMessage | CreateResponseRequest.AgentSystemMessage>
28
- | null;
40
+ input?: string | Array<InputItem> | null;
29
41
 
30
42
  /**
31
43
  * Additional system instructions
@@ -73,46 +85,6 @@ export interface CreateResponseRequest {
73
85
  top_p?: number | null;
74
86
  }
75
87
 
76
- export namespace CreateResponseRequest {
77
- export interface AgentUserMessage {
78
- content: Array<AgentUserMessage.UnionMember0> | string;
79
-
80
- role: 'user';
81
-
82
- type: 'message';
83
- }
84
-
85
- export namespace AgentUserMessage {
86
- export interface UnionMember0 {
87
- /**
88
- * The text content
89
- */
90
- text: string;
91
-
92
- type: 'input_text';
93
- }
94
- }
95
-
96
- export interface AgentSystemMessage {
97
- content: Array<AgentSystemMessage.UnionMember0> | string;
98
-
99
- role: 'system';
100
-
101
- type: 'message';
102
- }
103
-
104
- export namespace AgentSystemMessage {
105
- export interface UnionMember0 {
106
- /**
107
- * The text content
108
- */
109
- text: string;
110
-
111
- type: 'input_text';
112
- }
113
- }
114
- }
115
-
116
88
  export interface ErrorResponse {
117
89
  error: ErrorResponse.Error;
118
90
  }
@@ -136,6 +108,54 @@ export namespace ErrorResponse {
136
108
  }
137
109
  }
138
110
 
111
+ export interface FunctionCall {
112
+ /**
113
+ * Function call ID
114
+ */
115
+ id: string;
116
+
117
+ /**
118
+ * JSON-encoded arguments
119
+ */
120
+ arguments: string;
121
+
122
+ /**
123
+ * Tool call ID
124
+ */
125
+ call_id: string;
126
+
127
+ /**
128
+ * Function name
129
+ */
130
+ name: string;
131
+
132
+ status: 'in_progress' | 'completed' | 'incomplete';
133
+
134
+ type: 'function_call';
135
+ }
136
+
137
+ export type InputItem = UserMessage | SystemMessage;
138
+
139
+ export interface InputTextContent {
140
+ /**
141
+ * The text content
142
+ */
143
+ text: string;
144
+
145
+ type: 'input_text';
146
+ }
147
+
148
+ export type OutputItem = AssistantMessage | FunctionCall;
149
+
150
+ export interface OutputTextContent {
151
+ /**
152
+ * The output text
153
+ */
154
+ text: string;
155
+
156
+ type: 'output_text';
157
+ }
158
+
139
159
  export interface Response {
140
160
  /**
141
161
  * Response ID
@@ -182,7 +202,7 @@ export interface Response {
182
202
  /**
183
203
  * Output items
184
204
  */
185
- output: Array<Response.AgentAssistantMessage | Response.AgentFunctionCall>;
205
+ output: Array<OutputItem>;
186
206
 
187
207
  /**
188
208
  * Previous response ID
@@ -192,12 +212,12 @@ export interface Response {
192
212
  /**
193
213
  * Response status
194
214
  */
195
- status: 'queued' | 'in_progress' | 'completed' | 'failed' | 'incomplete';
215
+ status: ResponseStatus;
196
216
 
197
217
  /**
198
218
  * Token usage
199
219
  */
200
- usage: Response.Usage | null;
220
+ usage: Usage | null;
201
221
  }
202
222
 
203
223
  export namespace Response {
@@ -209,87 +229,72 @@ export namespace Response {
209
229
 
210
230
  message: string;
211
231
  }
232
+ }
212
233
 
213
- export interface AgentAssistantMessage {
214
- /**
215
- * Message ID
216
- */
217
- id: string;
218
-
219
- content: Array<AgentAssistantMessage.Content>;
220
-
221
- role: 'assistant';
222
-
223
- status: 'in_progress' | 'completed' | 'incomplete';
224
-
225
- type: 'message';
226
- }
227
-
228
- export namespace AgentAssistantMessage {
229
- export interface Content {
230
- /**
231
- * The output text
232
- */
233
- text: string;
234
+ export type ResponseStatus = 'queued' | 'in_progress' | 'completed' | 'failed' | 'incomplete';
234
235
 
235
- type: 'output_text';
236
- }
237
- }
236
+ /**
237
+ * Simple text content
238
+ */
239
+ export type StringContent = string;
238
240
 
239
- export interface AgentFunctionCall {
240
- /**
241
- * Function call ID
242
- */
243
- id: string;
241
+ export interface SystemMessage {
242
+ /**
243
+ * Simple text content
244
+ */
245
+ content: Array<InputTextContent> | StringContent;
244
246
 
245
- /**
246
- * JSON-encoded arguments
247
- */
248
- arguments: string;
247
+ role: 'system';
249
248
 
250
- /**
251
- * Tool call ID
252
- */
253
- call_id: string;
249
+ type: 'message';
250
+ }
254
251
 
255
- /**
256
- * Function name
257
- */
258
- name: string;
252
+ export interface Usage {
253
+ /**
254
+ * Input tokens used
255
+ */
256
+ input_tokens: number;
259
257
 
260
- status: 'in_progress' | 'completed' | 'incomplete';
258
+ /**
259
+ * Output tokens generated
260
+ */
261
+ output_tokens: number;
261
262
 
262
- type: 'function_call';
263
- }
263
+ /**
264
+ * Total tokens
265
+ */
266
+ total_tokens: number;
267
+ }
264
268
 
269
+ export interface UserMessage {
265
270
  /**
266
- * Token usage
271
+ * Simple text content
267
272
  */
268
- export interface Usage {
269
- /**
270
- * Input tokens used
271
- */
272
- input_tokens: number;
273
+ content: Array<InputTextContent> | StringContent;
273
274
 
274
- /**
275
- * Output tokens generated
276
- */
277
- output_tokens: number;
275
+ role: 'user';
278
276
 
279
- /**
280
- * Total tokens
281
- */
282
- total_tokens: number;
283
- }
277
+ type: 'message';
284
278
  }
285
279
 
286
280
  Agents.Responses = Responses;
287
281
 
288
282
  export declare namespace Agents {
289
283
  export {
284
+ type AssistantMessage as AssistantMessage,
290
285
  type CreateResponseRequest as CreateResponseRequest,
291
286
  type ErrorResponse as ErrorResponse,
287
+ type FunctionCall as FunctionCall,
288
+ type InputItem as InputItem,
289
+ type InputTextContent as InputTextContent,
290
+ type OutputItem as OutputItem,
291
+ type OutputTextContent as OutputTextContent,
292
292
  type Response as Response,
293
+ type ResponseStatus as ResponseStatus,
294
+ type StringContent as StringContent,
295
+ type SystemMessage as SystemMessage,
296
+ type Usage as Usage,
297
+ type UserMessage as UserMessage,
293
298
  };
294
299
 
295
300
  export { Responses as Responses, type ResponseCreateParams as ResponseCreateParams };
@@ -1,4 +1,20 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Agents, type CreateResponseRequest, type ErrorResponse, type Response } from './agents';
3
+ export {
4
+ Agents,
5
+ type AssistantMessage,
6
+ type CreateResponseRequest,
7
+ type ErrorResponse,
8
+ type FunctionCall,
9
+ type InputItem,
10
+ type InputTextContent,
11
+ type OutputItem,
12
+ type OutputTextContent,
13
+ type Response,
14
+ type ResponseStatus,
15
+ type StringContent,
16
+ type SystemMessage,
17
+ type Usage,
18
+ type UserMessage,
19
+ } from './agents';
4
20
  export { Responses, type ResponseCreateParams } from './responses';
@@ -52,10 +52,7 @@ export interface ResponseCreateParams {
52
52
  /**
53
53
  * Input text or array of messages
54
54
  */
55
- input?:
56
- | string
57
- | Array<ResponseCreateParams.AgentUserMessage | ResponseCreateParams.AgentSystemMessage>
58
- | null;
55
+ input?: string | Array<AgentsAPI.InputItem> | null;
59
56
 
60
57
  /**
61
58
  * Additional system instructions
@@ -103,46 +100,6 @@ export interface ResponseCreateParams {
103
100
  top_p?: number | null;
104
101
  }
105
102
 
106
- export namespace ResponseCreateParams {
107
- export interface AgentUserMessage {
108
- content: Array<AgentUserMessage.UnionMember0> | string;
109
-
110
- role: 'user';
111
-
112
- type: 'message';
113
- }
114
-
115
- export namespace AgentUserMessage {
116
- export interface UnionMember0 {
117
- /**
118
- * The text content
119
- */
120
- text: string;
121
-
122
- type: 'input_text';
123
- }
124
- }
125
-
126
- export interface AgentSystemMessage {
127
- content: Array<AgentSystemMessage.UnionMember0> | string;
128
-
129
- role: 'system';
130
-
131
- type: 'message';
132
- }
133
-
134
- export namespace AgentSystemMessage {
135
- export interface UnionMember0 {
136
- /**
137
- * The text content
138
- */
139
- text: string;
140
-
141
- type: 'input_text';
142
- }
143
- }
144
- }
145
-
146
103
  export declare namespace Responses {
147
104
  export { type ResponseCreateParams as ResponseCreateParams };
148
105
  }
@@ -84,8 +84,10 @@ export class Connections extends APIResource {
84
84
  }
85
85
 
86
86
  /**
87
- * Create a new MCP connection with the given ID. Returns 409 if connection already
88
- * exists - delete it first to recreate. Requires API key and namespace ownership.
87
+ * Create or update an MCP connection with the given ID. If the connection exists
88
+ * and mcpUrl matches, updates name/metadata/headers. Returns 409 if mcpUrl
89
+ * differs - delete and recreate to change URL. Requires API key and namespace
90
+ * ownership.
89
91
  *
90
92
  * @example
91
93
  * ```ts
@@ -2,7 +2,23 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as AgentsAPI from './agents/agents';
5
- import { Agents, CreateResponseRequest, ErrorResponse, Response } from './agents/agents';
5
+ import {
6
+ Agents,
7
+ AssistantMessage,
8
+ CreateResponseRequest,
9
+ ErrorResponse,
10
+ FunctionCall,
11
+ InputItem,
12
+ InputTextContent,
13
+ OutputItem,
14
+ OutputTextContent,
15
+ Response,
16
+ ResponseStatus,
17
+ StringContent,
18
+ SystemMessage,
19
+ Usage,
20
+ UserMessage,
21
+ } from './agents/agents';
6
22
  import * as ConnectAPI from './connect/connect';
7
23
  import { Connect } from './connect/connect';
8
24
 
@@ -17,9 +33,20 @@ Experimental.Connect = Connect;
17
33
  export declare namespace Experimental {
18
34
  export {
19
35
  Agents as Agents,
36
+ type AssistantMessage as AssistantMessage,
20
37
  type CreateResponseRequest as CreateResponseRequest,
21
38
  type ErrorResponse as ErrorResponse,
39
+ type FunctionCall as FunctionCall,
40
+ type InputItem as InputItem,
41
+ type InputTextContent as InputTextContent,
42
+ type OutputItem as OutputItem,
43
+ type OutputTextContent as OutputTextContent,
22
44
  type Response as Response,
45
+ type ResponseStatus as ResponseStatus,
46
+ type StringContent as StringContent,
47
+ type SystemMessage as SystemMessage,
48
+ type Usage as Usage,
49
+ type UserMessage as UserMessage,
23
50
  };
24
51
 
25
52
  export { Connect as Connect };
@@ -1,5 +1,21 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Agents, type CreateResponseRequest, type ErrorResponse, type Response } from './agents/index';
3
+ export {
4
+ Agents,
5
+ type AssistantMessage,
6
+ type CreateResponseRequest,
7
+ type ErrorResponse,
8
+ type FunctionCall,
9
+ type InputItem,
10
+ type InputTextContent,
11
+ type OutputItem,
12
+ type OutputTextContent,
13
+ type Response,
14
+ type ResponseStatus,
15
+ type StringContent,
16
+ type SystemMessage,
17
+ type Usage,
18
+ type UserMessage,
19
+ } from './agents/index';
4
20
  export { Connect } from './connect/index';
5
21
  export { Experimental } from './experimental';
@@ -7,18 +7,24 @@ export {
7
7
  type NamespaceCreateResponse,
8
8
  type NamespaceListResponse,
9
9
  type NamespaceSetResponse,
10
+ type NamespaceListParams,
11
+ type NamespaceListResponsesNamespacesPage,
10
12
  } from './namespaces/namespaces';
11
13
  export {
12
14
  Servers,
13
15
  type BuildConfig,
14
16
  type DeploymentTarget,
15
17
  type ProjectConfig,
18
+ type ServerCreateResponse,
16
19
  type ServerListResponse,
17
20
  type ServerDeleteResponse,
21
+ type ServerCreateByNamespaceResponse,
18
22
  type ServerGetResponse,
19
23
  type ServerGetByNamespaceResponse,
24
+ type ServerCreateParams,
20
25
  type ServerListParams,
21
26
  type ServerDeleteParams,
27
+ type ServerCreateByNamespaceParams,
22
28
  type ServerDownloadParams,
23
29
  type ServerGetParams,
24
30
  type ServerListResponsesSmitheryPage,
@@ -26,9 +32,11 @@ export {
26
32
  export {
27
33
  Skills,
28
34
  type SkillListResponse,
35
+ type SkillGetResponse,
29
36
  type SkillListParams,
37
+ type SkillGetParams,
30
38
  type SkillListResponsesSkillsPage,
31
- } from './skills';
39
+ } from './skills/skills';
32
40
  export {
33
41
  Tokens,
34
42
  type Constraint,
@@ -5,5 +5,7 @@ export {
5
5
  type NamespaceCreateResponse,
6
6
  type NamespaceListResponse,
7
7
  type NamespaceSetResponse,
8
+ type NamespaceListParams,
9
+ type NamespaceListResponsesNamespacesPage,
8
10
  } from './namespaces';
9
11
  export { Servers, type ServerCreateResponse, type ServerCreateParams } from './servers';
@@ -4,6 +4,7 @@ import { APIResource } from '../../core/resource';
4
4
  import * as ServersAPI from './servers';
5
5
  import { ServerCreateParams, ServerCreateResponse, Servers } from './servers';
6
6
  import { APIPromise } from '../../core/api-promise';
7
+ import { NamespacesPage, type NamespacesPageParams, PagePromise } from '../../core/pagination';
7
8
  import { RequestOptions } from '../../internal/request-options';
8
9
  import { path } from '../../internal/utils/path';
9
10
 
@@ -24,15 +25,27 @@ export class Namespaces extends APIResource {
24
25
  }
25
26
 
26
27
  /**
27
- * Get a list of all namespaces owned by the authenticated user
28
+ * When called without query params, returns the authenticated user's namespaces
29
+ * (backwards compatible). When query params are provided, searches public
30
+ * namespaces with pagination. Use ownerId to filter by owner, hasServers/hasSkills
31
+ * to filter by content, q for text search.
28
32
  *
29
33
  * @example
30
34
  * ```ts
31
- * const namespaces = await client.namespaces.list();
35
+ * // Automatically fetches more pages as needed.
36
+ * for await (const namespaceListResponse of client.namespaces.list()) {
37
+ * // ...
38
+ * }
32
39
  * ```
33
40
  */
34
- list(options?: RequestOptions): APIPromise<NamespaceListResponse> {
35
- return this._client.get('/namespaces', options);
41
+ list(
42
+ query: NamespaceListParams | null | undefined = {},
43
+ options?: RequestOptions,
44
+ ): PagePromise<NamespaceListResponsesNamespacesPage, NamespaceListResponse> {
45
+ return this._client.getAPIList('/namespaces', NamespacesPage<NamespaceListResponse>, {
46
+ query,
47
+ ...options,
48
+ });
36
49
  }
37
50
 
38
51
  /**
@@ -50,6 +63,8 @@ export class Namespaces extends APIResource {
50
63
  }
51
64
  }
52
65
 
66
+ export type NamespaceListResponsesNamespacesPage = NamespacesPage<NamespaceListResponse>;
67
+
53
68
  export interface NamespaceCreateResponse {
54
69
  createdAt: string;
55
70
 
@@ -57,15 +72,7 @@ export interface NamespaceCreateResponse {
57
72
  }
58
73
 
59
74
  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
- }
75
+ name: string;
69
76
  }
70
77
 
71
78
  export interface NamespaceSetResponse {
@@ -74,6 +81,33 @@ export interface NamespaceSetResponse {
74
81
  name: string;
75
82
  }
76
83
 
84
+ export interface NamespaceListParams extends NamespacesPageParams {
85
+ /**
86
+ * Comma-separated list of fields to include in response
87
+ */
88
+ fields?: string;
89
+
90
+ /**
91
+ * Filter namespaces with servers
92
+ */
93
+ hasServers?: '0' | '1' | 'true' | 'false';
94
+
95
+ /**
96
+ * Filter namespaces with skills
97
+ */
98
+ hasSkills?: '0' | '1' | 'true' | 'false';
99
+
100
+ /**
101
+ * Filter by owner ID
102
+ */
103
+ ownerId?: string;
104
+
105
+ /**
106
+ * Text search query (prefix match on name)
107
+ */
108
+ q?: string;
109
+ }
110
+
77
111
  Namespaces.Servers = Servers;
78
112
 
79
113
  export declare namespace Namespaces {
@@ -81,6 +115,8 @@ export declare namespace Namespaces {
81
115
  type NamespaceCreateResponse as NamespaceCreateResponse,
82
116
  type NamespaceListResponse as NamespaceListResponse,
83
117
  type NamespaceSetResponse as NamespaceSetResponse,
118
+ type NamespaceListResponsesNamespacesPage as NamespaceListResponsesNamespacesPage,
119
+ type NamespaceListParams as NamespaceListParams,
84
120
  };
85
121
 
86
122
  export {
@@ -7,15 +7,10 @@ import { path } from '../../internal/utils/path';
7
7
 
8
8
  export class Servers extends APIResource {
9
9
  /**
10
- * Create a new server under the specified namespace. This endpoint is idempotent.
10
+ * **Deprecated:** Use PUT /servers/{namespace}/{server} instead. Create a new
11
+ * server under the specified namespace. This endpoint is idempotent.
11
12
  *
12
- * @example
13
- * ```ts
14
- * const server = await client.namespaces.servers.create(
15
- * 'xxx',
16
- * { namespace: 'namespace' },
17
- * );
18
- * ```
13
+ * @deprecated
19
14
  */
20
15
  create(
21
16
  server: string,