@smithery/api 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/client.d.mts +1 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -5
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +0 -37
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +0 -37
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +1 -47
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +0 -44
- package/core/pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/agents/agents.d.mts +230 -0
- package/resources/beta/agents/agents.d.mts.map +1 -0
- package/resources/beta/agents/agents.d.ts +230 -0
- package/resources/beta/agents/agents.d.ts.map +1 -0
- package/resources/beta/agents/agents.js +17 -0
- package/resources/beta/agents/agents.js.map +1 -0
- package/resources/beta/agents/agents.mjs +12 -0
- package/resources/beta/agents/agents.mjs.map +1 -0
- package/resources/beta/agents/index.d.mts +3 -0
- package/resources/beta/agents/index.d.mts.map +1 -0
- package/resources/beta/agents/index.d.ts +3 -0
- package/resources/beta/agents/index.d.ts.map +1 -0
- package/resources/beta/agents/index.js +9 -0
- package/resources/beta/agents/index.js.map +1 -0
- package/resources/beta/agents/index.mjs +4 -0
- package/resources/beta/agents/index.mjs.map +1 -0
- package/resources/beta/agents/responses.d.mts +4 -0
- package/resources/beta/agents/responses.d.mts.map +1 -0
- package/resources/beta/agents/responses.d.ts +4 -0
- package/resources/beta/agents/responses.d.ts.map +1 -0
- package/resources/beta/agents/responses.js +9 -0
- package/resources/beta/agents/responses.js.map +1 -0
- package/resources/beta/agents/responses.mjs +5 -0
- package/resources/beta/agents/responses.mjs.map +1 -0
- package/resources/beta/agents.d.mts +2 -0
- package/resources/beta/agents.d.mts.map +1 -0
- package/resources/beta/agents.d.ts +2 -0
- package/resources/beta/agents.d.ts.map +1 -0
- package/resources/beta/agents.js +6 -0
- package/resources/beta/agents.js.map +1 -0
- package/resources/beta/agents.mjs +3 -0
- package/resources/beta/agents.mjs.map +1 -0
- package/resources/beta/beta.d.mts +4 -4
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +4 -4
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +4 -4
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +4 -4
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/connect/connect.d.mts +0 -4
- package/resources/beta/connect/connect.d.mts.map +1 -1
- package/resources/beta/connect/connect.d.ts +0 -4
- package/resources/beta/connect/connect.d.ts.map +1 -1
- package/resources/beta/connect/connect.js +0 -4
- package/resources/beta/connect/connect.js.map +1 -1
- package/resources/beta/connect/connect.mjs +0 -4
- package/resources/beta/connect/connect.mjs.map +1 -1
- package/resources/beta/connect/index.d.mts +0 -1
- package/resources/beta/connect/index.d.mts.map +1 -1
- package/resources/beta/connect/index.d.ts +0 -1
- package/resources/beta/connect/index.d.ts.map +1 -1
- package/resources/beta/connect/index.js +1 -3
- package/resources/beta/connect/index.js.map +1 -1
- package/resources/beta/connect/index.mjs +0 -1
- package/resources/beta/connect/index.mjs.map +1 -1
- package/resources/beta/connect/mcp.d.mts +1 -24
- package/resources/beta/connect/mcp.d.mts.map +1 -1
- package/resources/beta/connect/mcp.d.ts +1 -24
- package/resources/beta/connect/mcp.d.ts.map +1 -1
- package/resources/beta/connect/mcp.js +3 -7
- package/resources/beta/connect/mcp.js.map +1 -1
- package/resources/beta/connect/mcp.mjs +3 -7
- package/resources/beta/connect/mcp.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +5 -5
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/namespaces/index.d.mts +1 -1
- package/resources/namespaces/index.d.mts.map +1 -1
- package/resources/namespaces/index.d.ts +1 -1
- package/resources/namespaces/index.d.ts.map +1 -1
- package/resources/namespaces/index.js.map +1 -1
- package/resources/namespaces/index.mjs +1 -1
- package/resources/namespaces/index.mjs.map +1 -1
- package/resources/namespaces/namespaces.d.mts +2 -2
- package/resources/namespaces/namespaces.d.mts.map +1 -1
- package/resources/namespaces/namespaces.d.ts +2 -2
- package/resources/namespaces/namespaces.d.ts.map +1 -1
- package/resources/namespaces/namespaces.js.map +1 -1
- package/resources/namespaces/namespaces.mjs.map +1 -1
- package/resources/namespaces/servers.d.mts +7 -11
- package/resources/namespaces/servers.d.mts.map +1 -1
- package/resources/namespaces/servers.d.ts +7 -11
- package/resources/namespaces/servers.d.ts.map +1 -1
- package/resources/namespaces/servers.js +4 -4
- package/resources/namespaces/servers.mjs +4 -4
- package/resources/servers/deployments.d.mts +13 -3
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +13 -3
- package/resources/servers/deployments.d.ts.map +1 -1
- package/src/client.ts +0 -13
- package/src/core/pagination.ts +0 -106
- package/src/resources/beta/agents/agents.ts +296 -0
- package/src/resources/beta/agents/index.ts +4 -0
- package/src/resources/beta/agents/responses.ts +5 -0
- package/src/resources/beta/agents.ts +3 -0
- package/src/resources/beta/beta.ts +8 -8
- package/src/resources/beta/connect/connect.ts +0 -10
- package/src/resources/beta/connect/index.ts +0 -1
- package/src/resources/beta/connect/mcp.ts +3 -30
- package/src/resources/beta/index.ts +1 -1
- package/src/resources/namespaces/index.ts +1 -6
- package/src/resources/namespaces/namespaces.ts +2 -3
- package/src/resources/namespaces/servers.ts +7 -17
- package/src/resources/servers/deployments.ts +25 -5
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/beta/connect/tools.d.mts +0 -47
- package/resources/beta/connect/tools.d.mts.map +0 -1
- package/resources/beta/connect/tools.d.ts +0 -47
- package/resources/beta/connect/tools.d.ts.map +0 -1
- package/resources/beta/connect/tools.js +0 -25
- package/resources/beta/connect/tools.js.map +0 -1
- package/resources/beta/connect/tools.mjs +0 -21
- package/resources/beta/connect/tools.mjs.map +0 -1
- package/resources/beta/tools.d.mts +0 -98
- package/resources/beta/tools.d.mts.map +0 -1
- package/resources/beta/tools.d.ts +0 -98
- package/resources/beta/tools.d.ts.map +0 -1
- package/resources/beta/tools.js +0 -27
- package/resources/beta/tools.js.map +0 -1
- package/resources/beta/tools.mjs +0 -23
- package/resources/beta/tools.mjs.map +0 -1
- package/src/resources/beta/connect/tools.ts +0 -70
- package/src/resources/beta/tools.ts +0 -150
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as ResponsesAPI from './responses';
|
|
5
|
+
import { Responses } from './responses';
|
|
6
|
+
|
|
7
|
+
export class Agents extends APIResource {
|
|
8
|
+
responses: ResponsesAPI.Responses = new ResponsesAPI.Responses(this._client);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface CreateResponseRequest {
|
|
12
|
+
/**
|
|
13
|
+
* Smithery namespace for tool discovery
|
|
14
|
+
*/
|
|
15
|
+
namespace: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Run in background for long-running tasks
|
|
19
|
+
*/
|
|
20
|
+
background?: boolean;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Input text or array of messages
|
|
24
|
+
*/
|
|
25
|
+
input?:
|
|
26
|
+
| string
|
|
27
|
+
| Array<CreateResponseRequest.AgentUserMessage | CreateResponseRequest.AgentSystemMessage>
|
|
28
|
+
| null;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Additional system instructions
|
|
32
|
+
*/
|
|
33
|
+
instructions?: string | null;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Maximum output tokens
|
|
37
|
+
*/
|
|
38
|
+
max_output_tokens?: number | null;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Maximum tool calls before stopping
|
|
42
|
+
*/
|
|
43
|
+
max_tool_calls?: number | null;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Request metadata
|
|
47
|
+
*/
|
|
48
|
+
metadata?: { [key: string]: string } | null;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Model to use
|
|
52
|
+
*/
|
|
53
|
+
model?: string | null;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Previous response ID for multi-turn
|
|
57
|
+
*/
|
|
58
|
+
previous_response_id?: string | null;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Enable streaming response
|
|
62
|
+
*/
|
|
63
|
+
stream?: boolean;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Temperature for generation
|
|
67
|
+
*/
|
|
68
|
+
temperature?: number | null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Top-p sampling
|
|
72
|
+
*/
|
|
73
|
+
top_p?: number | null;
|
|
74
|
+
}
|
|
75
|
+
|
|
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
|
+
export interface ErrorResponse {
|
|
117
|
+
error: ErrorResponse.Error;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export namespace ErrorResponse {
|
|
121
|
+
export interface Error {
|
|
122
|
+
/**
|
|
123
|
+
* Error code
|
|
124
|
+
*/
|
|
125
|
+
code: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Error message
|
|
129
|
+
*/
|
|
130
|
+
message: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Error type
|
|
134
|
+
*/
|
|
135
|
+
type?: string;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface Response {
|
|
140
|
+
/**
|
|
141
|
+
* Response ID
|
|
142
|
+
*/
|
|
143
|
+
id: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Whether running in background
|
|
147
|
+
*/
|
|
148
|
+
background: boolean;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Unix timestamp of completion
|
|
152
|
+
*/
|
|
153
|
+
completed_at: number | null;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Unix timestamp of creation
|
|
157
|
+
*/
|
|
158
|
+
created_at: number;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Error details if failed
|
|
162
|
+
*/
|
|
163
|
+
error: Response.Error | null;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* System instructions used
|
|
167
|
+
*/
|
|
168
|
+
instructions: string | null;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Request metadata
|
|
172
|
+
*/
|
|
173
|
+
metadata: { [key: string]: string } | null;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Model used
|
|
177
|
+
*/
|
|
178
|
+
model: string;
|
|
179
|
+
|
|
180
|
+
object: 'response';
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Output items
|
|
184
|
+
*/
|
|
185
|
+
output: Array<Response.AgentAssistantMessage | Response.AgentFunctionCall>;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Previous response ID
|
|
189
|
+
*/
|
|
190
|
+
previous_response_id: string | null;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Response status
|
|
194
|
+
*/
|
|
195
|
+
status: 'queued' | 'in_progress' | 'completed' | 'failed' | 'incomplete';
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Token usage
|
|
199
|
+
*/
|
|
200
|
+
usage: Response.Usage | null;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export namespace Response {
|
|
204
|
+
/**
|
|
205
|
+
* Error details if failed
|
|
206
|
+
*/
|
|
207
|
+
export interface Error {
|
|
208
|
+
code: string;
|
|
209
|
+
|
|
210
|
+
message: string;
|
|
211
|
+
}
|
|
212
|
+
|
|
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
|
+
|
|
235
|
+
type: 'output_text';
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface AgentFunctionCall {
|
|
240
|
+
/**
|
|
241
|
+
* Function call ID
|
|
242
|
+
*/
|
|
243
|
+
id: string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* JSON-encoded arguments
|
|
247
|
+
*/
|
|
248
|
+
arguments: string;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Tool call ID
|
|
252
|
+
*/
|
|
253
|
+
call_id: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Function name
|
|
257
|
+
*/
|
|
258
|
+
name: string;
|
|
259
|
+
|
|
260
|
+
status: 'in_progress' | 'completed' | 'incomplete';
|
|
261
|
+
|
|
262
|
+
type: 'function_call';
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Token usage
|
|
267
|
+
*/
|
|
268
|
+
export interface Usage {
|
|
269
|
+
/**
|
|
270
|
+
* Input tokens used
|
|
271
|
+
*/
|
|
272
|
+
input_tokens: number;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Output tokens generated
|
|
276
|
+
*/
|
|
277
|
+
output_tokens: number;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Total tokens
|
|
281
|
+
*/
|
|
282
|
+
total_tokens: number;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
Agents.Responses = Responses;
|
|
287
|
+
|
|
288
|
+
export declare namespace Agents {
|
|
289
|
+
export {
|
|
290
|
+
type CreateResponseRequest as CreateResponseRequest,
|
|
291
|
+
type ErrorResponse as ErrorResponse,
|
|
292
|
+
type Response as Response,
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
export { Responses as Responses };
|
|
296
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
4
|
+
import * as AgentsAPI from './agents/agents';
|
|
5
|
+
import { Agents, CreateResponseRequest, ErrorResponse, Response } from './agents/agents';
|
|
6
6
|
import * as ConnectAPI from './connect/connect';
|
|
7
7
|
import { Connect } from './connect/connect';
|
|
8
8
|
|
|
9
9
|
export class Beta extends APIResource {
|
|
10
|
-
|
|
10
|
+
agents: AgentsAPI.Agents = new AgentsAPI.Agents(this._client);
|
|
11
11
|
connect: ConnectAPI.Connect = new ConnectAPI.Connect(this._client);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
Beta.
|
|
14
|
+
Beta.Agents = Agents;
|
|
15
15
|
Beta.Connect = Connect;
|
|
16
16
|
|
|
17
17
|
export declare namespace Beta {
|
|
18
18
|
export {
|
|
19
|
-
|
|
20
|
-
type
|
|
21
|
-
type
|
|
22
|
-
type
|
|
19
|
+
Agents as Agents,
|
|
20
|
+
type CreateResponseRequest as CreateResponseRequest,
|
|
21
|
+
type ErrorResponse as ErrorResponse,
|
|
22
|
+
type Response as Response,
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export { Connect as Connect };
|
|
@@ -16,26 +16,16 @@ import {
|
|
|
16
16
|
} from './connections';
|
|
17
17
|
import * as McpAPI from './mcp';
|
|
18
18
|
import { JsonRpcRequest, JsonRpcResponse, Mcp, McpCallParams } from './mcp';
|
|
19
|
-
import * as ToolsAPI from './tools';
|
|
20
|
-
import { ToolSearchParams, ToolSearchResponse, Tools } from './tools';
|
|
21
19
|
|
|
22
20
|
export class Connect extends APIResource {
|
|
23
|
-
tools: ToolsAPI.Tools = new ToolsAPI.Tools(this._client);
|
|
24
21
|
connections: ConnectionsAPI.Connections = new ConnectionsAPI.Connections(this._client);
|
|
25
22
|
mcp: McpAPI.Mcp = new McpAPI.Mcp(this._client);
|
|
26
23
|
}
|
|
27
24
|
|
|
28
|
-
Connect.Tools = Tools;
|
|
29
25
|
Connect.Connections = Connections;
|
|
30
26
|
Connect.Mcp = Mcp;
|
|
31
27
|
|
|
32
28
|
export declare namespace Connect {
|
|
33
|
-
export {
|
|
34
|
-
Tools as Tools,
|
|
35
|
-
type ToolSearchResponse as ToolSearchResponse,
|
|
36
|
-
type ToolSearchParams as ToolSearchParams,
|
|
37
|
-
};
|
|
38
|
-
|
|
39
29
|
export {
|
|
40
30
|
Connections as Connections,
|
|
41
31
|
type Connection as Connection,
|
|
@@ -14,17 +14,13 @@ export class Mcp extends APIResource {
|
|
|
14
14
|
* ```ts
|
|
15
15
|
* const jsonRpcResponse = await client.beta.connect.mcp.call(
|
|
16
16
|
* 'connectionId',
|
|
17
|
-
* {
|
|
18
|
-
* namespace: 'namespace',
|
|
19
|
-
* jsonrpc: '2.0',
|
|
20
|
-
* method: 'tools/list',
|
|
21
|
-
* },
|
|
17
|
+
* { namespace: 'namespace' },
|
|
22
18
|
* );
|
|
23
19
|
* ```
|
|
24
20
|
*/
|
|
25
21
|
call(connectionID: string, params: McpCallParams, options?: RequestOptions): APIPromise<JsonRpcResponse> {
|
|
26
|
-
const { namespace
|
|
27
|
-
return this._client.post(path`/connect/${namespace}/${connectionID}/mcp`,
|
|
22
|
+
const { namespace } = params;
|
|
23
|
+
return this._client.post(path`/connect/${namespace}/${connectionID}/mcp`, options);
|
|
28
24
|
}
|
|
29
25
|
}
|
|
30
26
|
|
|
@@ -53,30 +49,7 @@ export interface JsonRpcResponse {
|
|
|
53
49
|
}
|
|
54
50
|
|
|
55
51
|
export interface McpCallParams {
|
|
56
|
-
/**
|
|
57
|
-
* Path param
|
|
58
|
-
*/
|
|
59
52
|
namespace: string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Body param
|
|
63
|
-
*/
|
|
64
|
-
jsonrpc: '2.0';
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Body param: MCP method to call
|
|
68
|
-
*/
|
|
69
|
-
method: string;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Body param
|
|
73
|
-
*/
|
|
74
|
-
id?: string | number;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Body param: Method parameters
|
|
78
|
-
*/
|
|
79
|
-
params?: unknown;
|
|
80
53
|
}
|
|
81
54
|
|
|
82
55
|
export declare namespace Mcp {
|
|
@@ -1,5 +1,5 @@
|
|
|
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
4
|
export { Beta } from './beta';
|
|
4
5
|
export { Connect } from './connect/index';
|
|
5
|
-
export { Tools, type ToolListResponse, type ToolListParams, type ToolListResponsesToolsPage } from './tools';
|
|
@@ -6,9 +6,4 @@ export {
|
|
|
6
6
|
type NamespaceListResponse,
|
|
7
7
|
type NamespaceSetResponse,
|
|
8
8
|
} from './namespaces';
|
|
9
|
-
export {
|
|
10
|
-
Servers,
|
|
11
|
-
type CreateServerRequest,
|
|
12
|
-
type CreateServerResponse,
|
|
13
|
-
type ServerCreateParams,
|
|
14
|
-
} from './servers';
|
|
9
|
+
export { Servers, type ServerCreateResponse, type ServerCreateParams } from './servers';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as ServersAPI from './servers';
|
|
5
|
-
import {
|
|
5
|
+
import { ServerCreateParams, ServerCreateResponse, Servers } from './servers';
|
|
6
6
|
import { APIPromise } from '../../core/api-promise';
|
|
7
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
@@ -85,8 +85,7 @@ export declare namespace Namespaces {
|
|
|
85
85
|
|
|
86
86
|
export {
|
|
87
87
|
Servers as Servers,
|
|
88
|
-
type
|
|
89
|
-
type CreateServerResponse as CreateServerResponse,
|
|
88
|
+
type ServerCreateResponse as ServerCreateResponse,
|
|
90
89
|
type ServerCreateParams as ServerCreateParams,
|
|
91
90
|
};
|
|
92
91
|
}
|
|
@@ -11,29 +11,23 @@ export class Servers extends APIResource {
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
|
-
* const
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
14
|
+
* const server = await client.namespaces.servers.create(
|
|
15
|
+
* 'xxx',
|
|
16
|
+
* { namespace: 'namespace' },
|
|
17
|
+
* );
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
create(
|
|
21
21
|
server: string,
|
|
22
22
|
params: ServerCreateParams,
|
|
23
23
|
options?: RequestOptions,
|
|
24
|
-
): APIPromise<
|
|
24
|
+
): APIPromise<ServerCreateResponse> {
|
|
25
25
|
const { namespace, ...body } = params;
|
|
26
26
|
return this._client.put(path`/namespaces/${namespace}/servers/${server}`, { body, ...options });
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export interface
|
|
31
|
-
description?: string;
|
|
32
|
-
|
|
33
|
-
displayName?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface CreateServerResponse {
|
|
30
|
+
export interface ServerCreateResponse {
|
|
37
31
|
createdAt: string;
|
|
38
32
|
|
|
39
33
|
description: string;
|
|
@@ -63,9 +57,5 @@ export interface ServerCreateParams {
|
|
|
63
57
|
}
|
|
64
58
|
|
|
65
59
|
export declare namespace Servers {
|
|
66
|
-
export {
|
|
67
|
-
type CreateServerRequest as CreateServerRequest,
|
|
68
|
-
type CreateServerResponse as CreateServerResponse,
|
|
69
|
-
type ServerCreateParams as ServerCreateParams,
|
|
70
|
-
};
|
|
60
|
+
export { type ServerCreateResponse as ServerCreateResponse, type ServerCreateParams as ServerCreateParams };
|
|
71
61
|
}
|
|
@@ -96,15 +96,15 @@ export type DeployPayload =
|
|
|
96
96
|
|
|
97
97
|
export namespace DeployPayload {
|
|
98
98
|
export interface RepoDeployPayload {
|
|
99
|
-
|
|
99
|
+
type: 'repo';
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
baseDirectory?: string;
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
branch?: string;
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
repoName?: string;
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
repoOwner?: string;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -356,9 +356,19 @@ export namespace DeploymentListResponse {
|
|
|
356
356
|
|
|
357
357
|
status: string;
|
|
358
358
|
|
|
359
|
+
type: string;
|
|
360
|
+
|
|
359
361
|
updatedAt: string;
|
|
360
362
|
|
|
363
|
+
branch?: string | null;
|
|
364
|
+
|
|
365
|
+
commit?: string | null;
|
|
366
|
+
|
|
367
|
+
commitMessage?: string | null;
|
|
368
|
+
|
|
361
369
|
mcpUrl?: string;
|
|
370
|
+
|
|
371
|
+
upstreamUrl?: string | null;
|
|
362
372
|
}
|
|
363
373
|
}
|
|
364
374
|
|
|
@@ -379,11 +389,21 @@ export interface DeploymentGetResponse {
|
|
|
379
389
|
|
|
380
390
|
status: string;
|
|
381
391
|
|
|
392
|
+
type: string;
|
|
393
|
+
|
|
382
394
|
updatedAt: string;
|
|
383
395
|
|
|
396
|
+
branch?: string | null;
|
|
397
|
+
|
|
398
|
+
commit?: string | null;
|
|
399
|
+
|
|
400
|
+
commitMessage?: string | null;
|
|
401
|
+
|
|
384
402
|
logs?: Array<DeploymentGetResponse.Log>;
|
|
385
403
|
|
|
386
404
|
mcpUrl?: string;
|
|
405
|
+
|
|
406
|
+
upstreamUrl?: string | null;
|
|
387
407
|
}
|
|
388
408
|
|
|
389
409
|
export namespace DeploymentGetResponse {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.31.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.31.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.31.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.31.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
-
export declare class Tools extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Search or list indexed tools across all connections in a namespace. If 'q' query
|
|
7
|
-
* parameter is omitted, returns all tools. Filter by connectionId or server URL.
|
|
8
|
-
* Metadata constraints from service tokens are applied automatically.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const response = await client.beta.connect.tools.search(
|
|
13
|
-
* 'namespace',
|
|
14
|
-
* );
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
search(namespace: string, query?: ToolSearchParams | null | undefined, options?: RequestOptions): APIPromise<ToolSearchResponse>;
|
|
18
|
-
}
|
|
19
|
-
export interface ToolSearchResponse {
|
|
20
|
-
nextCursor: string | null;
|
|
21
|
-
tools: Array<ToolSearchResponse.Tool>;
|
|
22
|
-
}
|
|
23
|
-
export declare namespace ToolSearchResponse {
|
|
24
|
-
interface Tool {
|
|
25
|
-
connectionId: string;
|
|
26
|
-
serverUrl: string;
|
|
27
|
-
tool: Tool.Tool;
|
|
28
|
-
score?: number;
|
|
29
|
-
}
|
|
30
|
-
namespace Tool {
|
|
31
|
-
interface Tool {
|
|
32
|
-
name: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export interface ToolSearchParams {
|
|
38
|
-
connectionId?: string;
|
|
39
|
-
cursor?: string;
|
|
40
|
-
limit?: number;
|
|
41
|
-
q?: string;
|
|
42
|
-
server?: string;
|
|
43
|
-
}
|
|
44
|
-
export declare namespace Tools {
|
|
45
|
-
export { type ToolSearchResponse as ToolSearchResponse, type ToolSearchParams as ToolSearchParams };
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=tools.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/connect/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAGlC;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB,YAAY,EAAE,MAAM,CAAC;QAErB,SAAS,EAAE,MAAM,CAAC;QAElB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,IAAI;YACnB,IAAI,EAAE,MAAM,CAAC;YAEb,WAAW,CAAC,EAAE,MAAM,CAAC;SACtB;KACF;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,CAAC,CAAC,EAAE,MAAM,CAAC;IAEX,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
|