@orq-ai/node 3.14.35 → 3.14.36
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/README.md +1 -1
- package/bin/mcp-server.js +529 -517
- package/bin/mcp-server.js.map +52 -52
- package/docs/sdks/deployments/README.md +43 -43
- package/examples/package-lock.json +1 -1
- package/funcs/deploymentsInvoke.d.ts +1 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +1 -1
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +2 -2
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/deploymentsInvoke.d.ts +1 -1
- package/mcp-server/tools/deploymentsInvoke.js +1 -1
- package/mcp-server/tools/deploymentsInvoke.js.map +1 -1
- package/models/components/index.d.ts +1 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -1
- package/models/components/index.js.map +1 -1
- package/models/components/{deployments.d.ts → invokedeploymentrequest.d.ts} +280 -266
- package/models/components/invokedeploymentrequest.d.ts.map +1 -0
- package/models/components/{deployments.js → invokedeploymentrequest.js} +377 -363
- package/models/components/invokedeploymentrequest.js.map +1 -0
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createprompt.d.ts +2 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +2 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +10 -10
- package/models/operations/deploymentgetconfig.d.ts +42 -32
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +42 -42
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +15 -15
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +17 -17
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +1 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +1 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +41 -32
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +42 -41
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +1 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +1 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +1 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/searchknowledge.d.ts +41 -32
- package/models/operations/searchknowledge.d.ts.map +1 -1
- package/models/operations/searchknowledge.js +40 -40
- package/models/operations/searchknowledge.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updateprompt.d.ts +2 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +10 -10
- package/package.json +1 -1
- package/packages/orq-rc/README.md +24 -22
- package/packages/orq-rc/docs/sdks/tools/README.md +93 -12
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/toolsCreate.ts +11 -2
- package/packages/orq-rc/src/funcs/toolsSync.ts +176 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +3 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsSync.ts +37 -0
- package/packages/orq-rc/src/models/operations/createagent.ts +114 -40
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createtool.ts +873 -277
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +29 -20
- package/packages/orq-rc/src/models/operations/duplicateagent.ts +0 -37
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +466 -87
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +0 -38
- package/packages/orq-rc/src/models/operations/getalltools.ts +447 -96
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +1 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -37
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +466 -85
- package/packages/orq-rc/src/models/operations/runagent.ts +656 -25
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +749 -34
- package/packages/orq-rc/src/models/operations/syncmcptool.ts +2599 -0
- package/packages/orq-rc/src/models/operations/updateagent.ts +121 -77
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updatetool.ts +910 -190
- package/packages/orq-rc/src/sdk/tools.ts +18 -0
- package/sdk/deployments.d.ts +7 -7
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +9 -9
- package/sdk/deployments.js.map +1 -1
- package/src/funcs/deploymentsInvoke.ts +3 -3
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -2
- package/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
- package/src/models/components/index.ts +1 -1
- package/src/models/components/{deployments.ts → invokedeploymentrequest.ts} +822 -728
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createprompt.ts +2 -0
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/deploymentgetconfig.ts +78 -66
- package/src/models/operations/deploymentinvoke.ts +35 -35
- package/src/models/operations/deployments.ts +1 -0
- package/src/models/operations/deploymentstream.ts +80 -78
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +1 -0
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +1 -0
- package/src/models/operations/getpromptversion.ts +1 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +1 -0
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/searchknowledge.ts +79 -70
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updateprompt.ts +2 -0
- package/src/models/operations/updatetool.ts +10 -10
- package/src/sdk/deployments.ts +17 -17
- package/models/components/deployments.d.ts.map +0 -1
- package/models/components/deployments.js.map +0 -1
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
8
11
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
12
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
13
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -32,6 +35,38 @@ export type UpdateToolRequestBodyToolsRequest5Type = ClosedEnum<
|
|
|
32
35
|
typeof UpdateToolRequestBodyToolsRequest5Type
|
|
33
36
|
>;
|
|
34
37
|
|
|
38
|
+
/**
|
|
39
|
+
* The type must be "object"
|
|
40
|
+
*/
|
|
41
|
+
export const UpdateToolRequestBodyToolsRequest5CodeToolType = {
|
|
42
|
+
Object: "object",
|
|
43
|
+
} as const;
|
|
44
|
+
/**
|
|
45
|
+
* The type must be "object"
|
|
46
|
+
*/
|
|
47
|
+
export type UpdateToolRequestBodyToolsRequest5CodeToolType = ClosedEnum<
|
|
48
|
+
typeof UpdateToolRequestBodyToolsRequest5CodeToolType
|
|
49
|
+
>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
53
|
+
*/
|
|
54
|
+
export type UpdateToolRequestBodyToolsParameters = {
|
|
55
|
+
/**
|
|
56
|
+
* The type must be "object"
|
|
57
|
+
*/
|
|
58
|
+
type: UpdateToolRequestBodyToolsRequest5CodeToolType;
|
|
59
|
+
/**
|
|
60
|
+
* The properties of the function parameters
|
|
61
|
+
*/
|
|
62
|
+
properties: { [k: string]: any };
|
|
63
|
+
/**
|
|
64
|
+
* Array of required parameter names
|
|
65
|
+
*/
|
|
66
|
+
required: Array<string>;
|
|
67
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
35
70
|
export const UpdateToolRequestBodyLanguage = {
|
|
36
71
|
Python: "python",
|
|
37
72
|
} as const;
|
|
@@ -43,7 +78,7 @@ export type UpdateToolRequestBodyCodeTool = {
|
|
|
43
78
|
/**
|
|
44
79
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
45
80
|
*/
|
|
46
|
-
parameters?:
|
|
81
|
+
parameters?: UpdateToolRequestBodyToolsParameters | undefined;
|
|
47
82
|
language: UpdateToolRequestBodyLanguage;
|
|
48
83
|
/**
|
|
49
84
|
* The code to execute.
|
|
@@ -116,54 +151,49 @@ export type UpdateToolRequestBodyToolsRequest4McpType = ClosedEnum<
|
|
|
116
151
|
typeof UpdateToolRequestBodyToolsRequest4McpType
|
|
117
152
|
>;
|
|
118
153
|
|
|
119
|
-
|
|
120
|
-
* The original MCP tool input schema for LLM conversion
|
|
121
|
-
*/
|
|
122
|
-
export type RequestBodyInputSchema = {
|
|
154
|
+
export type UpdateToolRequestBodyToolsSchema = {
|
|
123
155
|
type: UpdateToolRequestBodyToolsRequest4McpType;
|
|
124
156
|
properties?: { [k: string]: any } | undefined;
|
|
125
157
|
required?: Array<string> | undefined;
|
|
126
158
|
};
|
|
127
159
|
|
|
160
|
+
export type RequestBodyTools = {
|
|
161
|
+
name: string;
|
|
162
|
+
description?: string | undefined;
|
|
163
|
+
schema: UpdateToolRequestBodyToolsSchema;
|
|
164
|
+
};
|
|
165
|
+
|
|
128
166
|
/**
|
|
129
167
|
* The connection type used by the MCP server
|
|
130
168
|
*/
|
|
131
|
-
export const
|
|
169
|
+
export const UpdateToolRequestBodyConnectionType = {
|
|
132
170
|
Http: "http",
|
|
133
171
|
Sse: "sse",
|
|
134
172
|
} as const;
|
|
135
173
|
/**
|
|
136
174
|
* The connection type used by the MCP server
|
|
137
175
|
*/
|
|
138
|
-
export type
|
|
139
|
-
typeof
|
|
176
|
+
export type UpdateToolRequestBodyConnectionType = ClosedEnum<
|
|
177
|
+
typeof UpdateToolRequestBodyConnectionType
|
|
140
178
|
>;
|
|
141
179
|
|
|
142
|
-
export type
|
|
143
|
-
/**
|
|
144
|
-
* The ID of the MCP server this tool belongs to
|
|
145
|
-
*/
|
|
146
|
-
serverId: string;
|
|
147
|
-
/**
|
|
148
|
-
* The original tool name from the MCP server
|
|
149
|
-
*/
|
|
150
|
-
toolName: string;
|
|
180
|
+
export type UpdateToolRequestBodyMcp = {
|
|
151
181
|
/**
|
|
152
182
|
* The MCP server URL (cached for execution)
|
|
153
183
|
*/
|
|
154
|
-
serverUrl
|
|
184
|
+
serverUrl?: string | undefined;
|
|
155
185
|
/**
|
|
156
|
-
* HTTP headers for MCP server requests
|
|
186
|
+
* HTTP headers for MCP server requests with encryption support
|
|
157
187
|
*/
|
|
158
188
|
headers?: { [k: string]: UpdateToolRequestBodyHeaders } | undefined;
|
|
159
189
|
/**
|
|
160
|
-
*
|
|
190
|
+
* Array of tools available from the MCP server
|
|
161
191
|
*/
|
|
162
|
-
|
|
192
|
+
tools?: Array<RequestBodyTools> | undefined;
|
|
163
193
|
/**
|
|
164
194
|
* The connection type used by the MCP server
|
|
165
195
|
*/
|
|
166
|
-
connectionType
|
|
196
|
+
connectionType?: UpdateToolRequestBodyConnectionType | undefined;
|
|
167
197
|
};
|
|
168
198
|
|
|
169
199
|
/**
|
|
@@ -197,7 +227,7 @@ export type UpdateMCPTool = {
|
|
|
197
227
|
*/
|
|
198
228
|
status?: UpdateToolRequestBodyToolsRequest4Status | undefined;
|
|
199
229
|
type: UpdateToolRequestBodyToolsRequest4Type;
|
|
200
|
-
mcp?:
|
|
230
|
+
mcp?: UpdateToolRequestBodyMcp | undefined;
|
|
201
231
|
};
|
|
202
232
|
|
|
203
233
|
/**
|
|
@@ -239,11 +269,13 @@ export type UpdateToolRequestBodyMethod = ClosedEnum<
|
|
|
239
269
|
typeof UpdateToolRequestBodyMethod
|
|
240
270
|
>;
|
|
241
271
|
|
|
242
|
-
export type
|
|
272
|
+
export type UpdateToolHeaders2 = {
|
|
243
273
|
value: string;
|
|
244
274
|
encrypted?: boolean | undefined;
|
|
245
275
|
};
|
|
246
276
|
|
|
277
|
+
export type UpdateToolRequestBodyToolsHeaders = UpdateToolHeaders2 | string;
|
|
278
|
+
|
|
247
279
|
/**
|
|
248
280
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
249
281
|
*/
|
|
@@ -257,9 +289,9 @@ export type UpdateToolRequestBodyBlueprint = {
|
|
|
257
289
|
*/
|
|
258
290
|
method: UpdateToolRequestBodyMethod;
|
|
259
291
|
/**
|
|
260
|
-
* The headers to send with the request.
|
|
292
|
+
* The headers to send with the request. Can be a string value or an object with value and encrypted properties.
|
|
261
293
|
*/
|
|
262
|
-
headers?: { [k: string]:
|
|
294
|
+
headers?: { [k: string]: UpdateToolHeaders2 | string } | undefined;
|
|
263
295
|
/**
|
|
264
296
|
* The body to send with the request.
|
|
265
297
|
*/
|
|
@@ -373,6 +405,25 @@ export type UpdateToolRequestBodyToolsType = ClosedEnum<
|
|
|
373
405
|
typeof UpdateToolRequestBodyToolsType
|
|
374
406
|
>;
|
|
375
407
|
|
|
408
|
+
/**
|
|
409
|
+
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
410
|
+
*/
|
|
411
|
+
export type UpdateToolRequestBodySchema = {
|
|
412
|
+
/**
|
|
413
|
+
* The JSON Schema type
|
|
414
|
+
*/
|
|
415
|
+
type: string;
|
|
416
|
+
/**
|
|
417
|
+
* The properties of the JSON Schema object
|
|
418
|
+
*/
|
|
419
|
+
properties: { [k: string]: any };
|
|
420
|
+
/**
|
|
421
|
+
* Array of required property names
|
|
422
|
+
*/
|
|
423
|
+
required: Array<string>;
|
|
424
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
425
|
+
};
|
|
426
|
+
|
|
376
427
|
export type UpdateToolRequestBodyJsonSchema = {
|
|
377
428
|
/**
|
|
378
429
|
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
@@ -381,11 +432,11 @@ export type UpdateToolRequestBodyJsonSchema = {
|
|
|
381
432
|
/**
|
|
382
433
|
* A description of what the response format is for. This will be shown to the user.
|
|
383
434
|
*/
|
|
384
|
-
description
|
|
435
|
+
description: string;
|
|
385
436
|
/**
|
|
386
437
|
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
387
438
|
*/
|
|
388
|
-
schema:
|
|
439
|
+
schema: UpdateToolRequestBodySchema;
|
|
389
440
|
/**
|
|
390
441
|
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
|
|
391
442
|
*/
|
|
@@ -449,6 +500,38 @@ export type UpdateToolRequestBodyType = ClosedEnum<
|
|
|
449
500
|
typeof UpdateToolRequestBodyType
|
|
450
501
|
>;
|
|
451
502
|
|
|
503
|
+
/**
|
|
504
|
+
* The type must be "object"
|
|
505
|
+
*/
|
|
506
|
+
export const UpdateToolRequestBodyToolsRequest1Type = {
|
|
507
|
+
Object: "object",
|
|
508
|
+
} as const;
|
|
509
|
+
/**
|
|
510
|
+
* The type must be "object"
|
|
511
|
+
*/
|
|
512
|
+
export type UpdateToolRequestBodyToolsRequest1Type = ClosedEnum<
|
|
513
|
+
typeof UpdateToolRequestBodyToolsRequest1Type
|
|
514
|
+
>;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
518
|
+
*/
|
|
519
|
+
export type UpdateToolRequestBodyParameters = {
|
|
520
|
+
/**
|
|
521
|
+
* The type must be "object"
|
|
522
|
+
*/
|
|
523
|
+
type: UpdateToolRequestBodyToolsRequest1Type;
|
|
524
|
+
/**
|
|
525
|
+
* The properties of the function parameters
|
|
526
|
+
*/
|
|
527
|
+
properties: { [k: string]: any };
|
|
528
|
+
/**
|
|
529
|
+
* Array of required parameter names
|
|
530
|
+
*/
|
|
531
|
+
required: Array<string>;
|
|
532
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
533
|
+
};
|
|
534
|
+
|
|
452
535
|
export type UpdateToolRequestBodyFunction = {
|
|
453
536
|
/**
|
|
454
537
|
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
@@ -465,7 +548,7 @@ export type UpdateToolRequestBodyFunction = {
|
|
|
465
548
|
/**
|
|
466
549
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
467
550
|
*/
|
|
468
|
-
parameters?:
|
|
551
|
+
parameters?: UpdateToolRequestBodyParameters | undefined;
|
|
469
552
|
};
|
|
470
553
|
|
|
471
554
|
/**
|
|
@@ -549,6 +632,37 @@ export const UpdateToolResponseBodyToolsResponse200ApplicationJSONType = {
|
|
|
549
632
|
export type UpdateToolResponseBodyToolsResponse200ApplicationJSONType =
|
|
550
633
|
ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJSONType>;
|
|
551
634
|
|
|
635
|
+
/**
|
|
636
|
+
* The type must be "object"
|
|
637
|
+
*/
|
|
638
|
+
export const UpdateToolResponseBodyToolsResponse200ApplicationJson5Type = {
|
|
639
|
+
Object: "object",
|
|
640
|
+
} as const;
|
|
641
|
+
/**
|
|
642
|
+
* The type must be "object"
|
|
643
|
+
*/
|
|
644
|
+
export type UpdateToolResponseBodyToolsResponse200ApplicationJson5Type =
|
|
645
|
+
ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson5Type>;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
649
|
+
*/
|
|
650
|
+
export type UpdateToolResponseBodyToolsParameters = {
|
|
651
|
+
/**
|
|
652
|
+
* The type must be "object"
|
|
653
|
+
*/
|
|
654
|
+
type: UpdateToolResponseBodyToolsResponse200ApplicationJson5Type;
|
|
655
|
+
/**
|
|
656
|
+
* The properties of the function parameters
|
|
657
|
+
*/
|
|
658
|
+
properties: { [k: string]: any };
|
|
659
|
+
/**
|
|
660
|
+
* Array of required parameter names
|
|
661
|
+
*/
|
|
662
|
+
required: Array<string>;
|
|
663
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
664
|
+
};
|
|
665
|
+
|
|
552
666
|
export const UpdateToolResponseBodyLanguage = {
|
|
553
667
|
Python: "python",
|
|
554
668
|
} as const;
|
|
@@ -560,7 +674,7 @@ export type UpdateToolResponseBodyCodeTool = {
|
|
|
560
674
|
/**
|
|
561
675
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
562
676
|
*/
|
|
563
|
-
parameters?:
|
|
677
|
+
parameters?: UpdateToolResponseBodyToolsParameters | undefined;
|
|
564
678
|
language: UpdateToolResponseBodyLanguage;
|
|
565
679
|
/**
|
|
566
680
|
* The code to execute.
|
|
@@ -649,15 +763,18 @@ export const UpdateToolResponseBodyToolsResponse200ApplicationJson4Type = {
|
|
|
649
763
|
export type UpdateToolResponseBodyToolsResponse200ApplicationJson4Type =
|
|
650
764
|
ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson4Type>;
|
|
651
765
|
|
|
652
|
-
|
|
653
|
-
* The original MCP tool input schema for LLM conversion
|
|
654
|
-
*/
|
|
655
|
-
export type UpdateToolResponseBodyInputSchema = {
|
|
766
|
+
export type UpdateToolResponseBodyToolsSchema = {
|
|
656
767
|
type: UpdateToolResponseBodyToolsResponse200ApplicationJson4Type;
|
|
657
768
|
properties?: { [k: string]: any } | undefined;
|
|
658
769
|
required?: Array<string> | undefined;
|
|
659
770
|
};
|
|
660
771
|
|
|
772
|
+
export type UpdateToolResponseBodyTools = {
|
|
773
|
+
name: string;
|
|
774
|
+
description?: string | undefined;
|
|
775
|
+
schema: UpdateToolResponseBodyToolsSchema;
|
|
776
|
+
};
|
|
777
|
+
|
|
661
778
|
/**
|
|
662
779
|
* The connection type used by the MCP server
|
|
663
780
|
*/
|
|
@@ -673,26 +790,18 @@ export type UpdateToolResponseBodyConnectionType = ClosedEnum<
|
|
|
673
790
|
>;
|
|
674
791
|
|
|
675
792
|
export type UpdateToolResponseBodyMcp = {
|
|
676
|
-
/**
|
|
677
|
-
* The ID of the MCP server this tool belongs to
|
|
678
|
-
*/
|
|
679
|
-
serverId: string;
|
|
680
|
-
/**
|
|
681
|
-
* The original tool name from the MCP server
|
|
682
|
-
*/
|
|
683
|
-
toolName: string;
|
|
684
793
|
/**
|
|
685
794
|
* The MCP server URL (cached for execution)
|
|
686
795
|
*/
|
|
687
796
|
serverUrl: string;
|
|
688
797
|
/**
|
|
689
|
-
* HTTP headers for MCP server requests
|
|
798
|
+
* HTTP headers for MCP server requests with encryption support
|
|
690
799
|
*/
|
|
691
800
|
headers?: { [k: string]: UpdateToolResponseBodyHeaders } | undefined;
|
|
692
801
|
/**
|
|
693
|
-
*
|
|
802
|
+
* Array of tools available from the MCP server
|
|
694
803
|
*/
|
|
695
|
-
|
|
804
|
+
tools: Array<UpdateToolResponseBodyTools>;
|
|
696
805
|
/**
|
|
697
806
|
* The connection type used by the MCP server
|
|
698
807
|
*/
|
|
@@ -783,11 +892,15 @@ export type UpdateToolResponseBodyMethod = ClosedEnum<
|
|
|
783
892
|
typeof UpdateToolResponseBodyMethod
|
|
784
893
|
>;
|
|
785
894
|
|
|
786
|
-
export type
|
|
895
|
+
export type UpdateToolHeadersTools2 = {
|
|
787
896
|
value: string;
|
|
788
897
|
encrypted?: boolean | undefined;
|
|
789
898
|
};
|
|
790
899
|
|
|
900
|
+
export type UpdateToolResponseBodyToolsHeaders =
|
|
901
|
+
| UpdateToolHeadersTools2
|
|
902
|
+
| string;
|
|
903
|
+
|
|
791
904
|
/**
|
|
792
905
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
793
906
|
*/
|
|
@@ -801,9 +914,9 @@ export type UpdateToolResponseBodyBlueprint = {
|
|
|
801
914
|
*/
|
|
802
915
|
method: UpdateToolResponseBodyMethod;
|
|
803
916
|
/**
|
|
804
|
-
* The headers to send with the request.
|
|
917
|
+
* The headers to send with the request. Can be a string value or an object with value and encrypted properties.
|
|
805
918
|
*/
|
|
806
|
-
headers?: { [k: string]:
|
|
919
|
+
headers?: { [k: string]: UpdateToolHeadersTools2 | string } | undefined;
|
|
807
920
|
/**
|
|
808
921
|
* The body to send with the request.
|
|
809
922
|
*/
|
|
@@ -927,6 +1040,25 @@ export type UpdateToolResponseBodyToolsType = ClosedEnum<
|
|
|
927
1040
|
typeof UpdateToolResponseBodyToolsType
|
|
928
1041
|
>;
|
|
929
1042
|
|
|
1043
|
+
/**
|
|
1044
|
+
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
1045
|
+
*/
|
|
1046
|
+
export type UpdateToolResponseBodySchema = {
|
|
1047
|
+
/**
|
|
1048
|
+
* The JSON Schema type
|
|
1049
|
+
*/
|
|
1050
|
+
type: string;
|
|
1051
|
+
/**
|
|
1052
|
+
* The properties of the JSON Schema object
|
|
1053
|
+
*/
|
|
1054
|
+
properties: { [k: string]: any };
|
|
1055
|
+
/**
|
|
1056
|
+
* Array of required property names
|
|
1057
|
+
*/
|
|
1058
|
+
required: Array<string>;
|
|
1059
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
1060
|
+
};
|
|
1061
|
+
|
|
930
1062
|
export type UpdateToolResponseBodyJsonSchema = {
|
|
931
1063
|
/**
|
|
932
1064
|
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
@@ -935,11 +1067,11 @@ export type UpdateToolResponseBodyJsonSchema = {
|
|
|
935
1067
|
/**
|
|
936
1068
|
* A description of what the response format is for. This will be shown to the user.
|
|
937
1069
|
*/
|
|
938
|
-
description
|
|
1070
|
+
description: string;
|
|
939
1071
|
/**
|
|
940
1072
|
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
941
1073
|
*/
|
|
942
|
-
schema:
|
|
1074
|
+
schema: UpdateToolResponseBodySchema;
|
|
943
1075
|
/**
|
|
944
1076
|
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
|
|
945
1077
|
*/
|
|
@@ -1014,6 +1146,37 @@ export type UpdateToolResponseBodyType = ClosedEnum<
|
|
|
1014
1146
|
typeof UpdateToolResponseBodyType
|
|
1015
1147
|
>;
|
|
1016
1148
|
|
|
1149
|
+
/**
|
|
1150
|
+
* The type must be "object"
|
|
1151
|
+
*/
|
|
1152
|
+
export const UpdateToolResponseBodyToolsResponse200ApplicationJson1Type = {
|
|
1153
|
+
Object: "object",
|
|
1154
|
+
} as const;
|
|
1155
|
+
/**
|
|
1156
|
+
* The type must be "object"
|
|
1157
|
+
*/
|
|
1158
|
+
export type UpdateToolResponseBodyToolsResponse200ApplicationJson1Type =
|
|
1159
|
+
ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson1Type>;
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
1163
|
+
*/
|
|
1164
|
+
export type UpdateToolResponseBodyParameters = {
|
|
1165
|
+
/**
|
|
1166
|
+
* The type must be "object"
|
|
1167
|
+
*/
|
|
1168
|
+
type: UpdateToolResponseBodyToolsResponse200ApplicationJson1Type;
|
|
1169
|
+
/**
|
|
1170
|
+
* The properties of the function parameters
|
|
1171
|
+
*/
|
|
1172
|
+
properties: { [k: string]: any };
|
|
1173
|
+
/**
|
|
1174
|
+
* Array of required parameter names
|
|
1175
|
+
*/
|
|
1176
|
+
required: Array<string>;
|
|
1177
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1017
1180
|
export type UpdateToolResponseBodyFunction = {
|
|
1018
1181
|
/**
|
|
1019
1182
|
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
@@ -1030,7 +1193,7 @@ export type UpdateToolResponseBodyFunction = {
|
|
|
1030
1193
|
/**
|
|
1031
1194
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
1032
1195
|
*/
|
|
1033
|
-
parameters?:
|
|
1196
|
+
parameters?: UpdateToolResponseBodyParameters | undefined;
|
|
1034
1197
|
};
|
|
1035
1198
|
|
|
1036
1199
|
export type UpdateToolResponseBody1 = {
|
|
@@ -1107,6 +1270,76 @@ export const UpdateToolRequestBodyToolsRequest5Type$outboundSchema:
|
|
|
1107
1270
|
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest5Type> =
|
|
1108
1271
|
UpdateToolRequestBodyToolsRequest5Type$inboundSchema;
|
|
1109
1272
|
|
|
1273
|
+
/** @internal */
|
|
1274
|
+
export const UpdateToolRequestBodyToolsRequest5CodeToolType$inboundSchema:
|
|
1275
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest5CodeToolType> = z
|
|
1276
|
+
.nativeEnum(UpdateToolRequestBodyToolsRequest5CodeToolType);
|
|
1277
|
+
/** @internal */
|
|
1278
|
+
export const UpdateToolRequestBodyToolsRequest5CodeToolType$outboundSchema:
|
|
1279
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest5CodeToolType> =
|
|
1280
|
+
UpdateToolRequestBodyToolsRequest5CodeToolType$inboundSchema;
|
|
1281
|
+
|
|
1282
|
+
/** @internal */
|
|
1283
|
+
export const UpdateToolRequestBodyToolsParameters$inboundSchema: z.ZodType<
|
|
1284
|
+
UpdateToolRequestBodyToolsParameters,
|
|
1285
|
+
z.ZodTypeDef,
|
|
1286
|
+
unknown
|
|
1287
|
+
> = collectExtraKeys$(
|
|
1288
|
+
z.object({
|
|
1289
|
+
type: UpdateToolRequestBodyToolsRequest5CodeToolType$inboundSchema,
|
|
1290
|
+
properties: z.record(z.any()),
|
|
1291
|
+
required: z.array(z.string()),
|
|
1292
|
+
}).catchall(z.any()),
|
|
1293
|
+
"additionalProperties",
|
|
1294
|
+
true,
|
|
1295
|
+
);
|
|
1296
|
+
/** @internal */
|
|
1297
|
+
export type UpdateToolRequestBodyToolsParameters$Outbound = {
|
|
1298
|
+
type: string;
|
|
1299
|
+
properties: { [k: string]: any };
|
|
1300
|
+
required: Array<string>;
|
|
1301
|
+
[additionalProperties: string]: unknown;
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1304
|
+
/** @internal */
|
|
1305
|
+
export const UpdateToolRequestBodyToolsParameters$outboundSchema: z.ZodType<
|
|
1306
|
+
UpdateToolRequestBodyToolsParameters$Outbound,
|
|
1307
|
+
z.ZodTypeDef,
|
|
1308
|
+
UpdateToolRequestBodyToolsParameters
|
|
1309
|
+
> = z.object({
|
|
1310
|
+
type: UpdateToolRequestBodyToolsRequest5CodeToolType$outboundSchema,
|
|
1311
|
+
properties: z.record(z.any()),
|
|
1312
|
+
required: z.array(z.string()),
|
|
1313
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
1314
|
+
}).transform((v) => {
|
|
1315
|
+
return {
|
|
1316
|
+
...v.additionalProperties,
|
|
1317
|
+
...remap$(v, {
|
|
1318
|
+
additionalProperties: null,
|
|
1319
|
+
}),
|
|
1320
|
+
};
|
|
1321
|
+
});
|
|
1322
|
+
|
|
1323
|
+
export function updateToolRequestBodyToolsParametersToJSON(
|
|
1324
|
+
updateToolRequestBodyToolsParameters: UpdateToolRequestBodyToolsParameters,
|
|
1325
|
+
): string {
|
|
1326
|
+
return JSON.stringify(
|
|
1327
|
+
UpdateToolRequestBodyToolsParameters$outboundSchema.parse(
|
|
1328
|
+
updateToolRequestBodyToolsParameters,
|
|
1329
|
+
),
|
|
1330
|
+
);
|
|
1331
|
+
}
|
|
1332
|
+
export function updateToolRequestBodyToolsParametersFromJSON(
|
|
1333
|
+
jsonString: string,
|
|
1334
|
+
): SafeParseResult<UpdateToolRequestBodyToolsParameters, SDKValidationError> {
|
|
1335
|
+
return safeParse(
|
|
1336
|
+
jsonString,
|
|
1337
|
+
(x) =>
|
|
1338
|
+
UpdateToolRequestBodyToolsParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1339
|
+
`Failed to parse 'UpdateToolRequestBodyToolsParameters' from JSON`,
|
|
1340
|
+
);
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1110
1343
|
/** @internal */
|
|
1111
1344
|
export const UpdateToolRequestBodyLanguage$inboundSchema: z.ZodNativeEnum<
|
|
1112
1345
|
typeof UpdateToolRequestBodyLanguage
|
|
@@ -1122,13 +1355,14 @@ export const UpdateToolRequestBodyCodeTool$inboundSchema: z.ZodType<
|
|
|
1122
1355
|
z.ZodTypeDef,
|
|
1123
1356
|
unknown
|
|
1124
1357
|
> = z.object({
|
|
1125
|
-
parameters: z.
|
|
1358
|
+
parameters: z.lazy(() => UpdateToolRequestBodyToolsParameters$inboundSchema)
|
|
1359
|
+
.optional(),
|
|
1126
1360
|
language: UpdateToolRequestBodyLanguage$inboundSchema,
|
|
1127
1361
|
code: z.string(),
|
|
1128
1362
|
});
|
|
1129
1363
|
/** @internal */
|
|
1130
1364
|
export type UpdateToolRequestBodyCodeTool$Outbound = {
|
|
1131
|
-
parameters?:
|
|
1365
|
+
parameters?: UpdateToolRequestBodyToolsParameters$Outbound | undefined;
|
|
1132
1366
|
language: string;
|
|
1133
1367
|
code: string;
|
|
1134
1368
|
};
|
|
@@ -1139,7 +1373,8 @@ export const UpdateToolRequestBodyCodeTool$outboundSchema: z.ZodType<
|
|
|
1139
1373
|
z.ZodTypeDef,
|
|
1140
1374
|
UpdateToolRequestBodyCodeTool
|
|
1141
1375
|
> = z.object({
|
|
1142
|
-
parameters: z.
|
|
1376
|
+
parameters: z.lazy(() => UpdateToolRequestBodyToolsParameters$outboundSchema)
|
|
1377
|
+
.optional(),
|
|
1143
1378
|
language: UpdateToolRequestBodyLanguage$outboundSchema,
|
|
1144
1379
|
code: z.string(),
|
|
1145
1380
|
});
|
|
@@ -1306,8 +1541,8 @@ export const UpdateToolRequestBodyToolsRequest4McpType$outboundSchema:
|
|
|
1306
1541
|
UpdateToolRequestBodyToolsRequest4McpType$inboundSchema;
|
|
1307
1542
|
|
|
1308
1543
|
/** @internal */
|
|
1309
|
-
export const
|
|
1310
|
-
|
|
1544
|
+
export const UpdateToolRequestBodyToolsSchema$inboundSchema: z.ZodType<
|
|
1545
|
+
UpdateToolRequestBodyToolsSchema,
|
|
1311
1546
|
z.ZodTypeDef,
|
|
1312
1547
|
unknown
|
|
1313
1548
|
> = z.object({
|
|
@@ -1316,114 +1551,153 @@ export const RequestBodyInputSchema$inboundSchema: z.ZodType<
|
|
|
1316
1551
|
required: z.array(z.string()).optional(),
|
|
1317
1552
|
});
|
|
1318
1553
|
/** @internal */
|
|
1319
|
-
export type
|
|
1554
|
+
export type UpdateToolRequestBodyToolsSchema$Outbound = {
|
|
1320
1555
|
type: string;
|
|
1321
1556
|
properties?: { [k: string]: any } | undefined;
|
|
1322
1557
|
required?: Array<string> | undefined;
|
|
1323
1558
|
};
|
|
1324
1559
|
|
|
1325
1560
|
/** @internal */
|
|
1326
|
-
export const
|
|
1327
|
-
|
|
1561
|
+
export const UpdateToolRequestBodyToolsSchema$outboundSchema: z.ZodType<
|
|
1562
|
+
UpdateToolRequestBodyToolsSchema$Outbound,
|
|
1328
1563
|
z.ZodTypeDef,
|
|
1329
|
-
|
|
1564
|
+
UpdateToolRequestBodyToolsSchema
|
|
1330
1565
|
> = z.object({
|
|
1331
1566
|
type: UpdateToolRequestBodyToolsRequest4McpType$outboundSchema,
|
|
1332
1567
|
properties: z.record(z.any()).optional(),
|
|
1333
1568
|
required: z.array(z.string()).optional(),
|
|
1334
1569
|
});
|
|
1335
1570
|
|
|
1336
|
-
export function
|
|
1337
|
-
|
|
1571
|
+
export function updateToolRequestBodyToolsSchemaToJSON(
|
|
1572
|
+
updateToolRequestBodyToolsSchema: UpdateToolRequestBodyToolsSchema,
|
|
1573
|
+
): string {
|
|
1574
|
+
return JSON.stringify(
|
|
1575
|
+
UpdateToolRequestBodyToolsSchema$outboundSchema.parse(
|
|
1576
|
+
updateToolRequestBodyToolsSchema,
|
|
1577
|
+
),
|
|
1578
|
+
);
|
|
1579
|
+
}
|
|
1580
|
+
export function updateToolRequestBodyToolsSchemaFromJSON(
|
|
1581
|
+
jsonString: string,
|
|
1582
|
+
): SafeParseResult<UpdateToolRequestBodyToolsSchema, SDKValidationError> {
|
|
1583
|
+
return safeParse(
|
|
1584
|
+
jsonString,
|
|
1585
|
+
(x) => UpdateToolRequestBodyToolsSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1586
|
+
`Failed to parse 'UpdateToolRequestBodyToolsSchema' from JSON`,
|
|
1587
|
+
);
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
/** @internal */
|
|
1591
|
+
export const RequestBodyTools$inboundSchema: z.ZodType<
|
|
1592
|
+
RequestBodyTools,
|
|
1593
|
+
z.ZodTypeDef,
|
|
1594
|
+
unknown
|
|
1595
|
+
> = z.object({
|
|
1596
|
+
name: z.string(),
|
|
1597
|
+
description: z.string().optional(),
|
|
1598
|
+
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$inboundSchema),
|
|
1599
|
+
});
|
|
1600
|
+
/** @internal */
|
|
1601
|
+
export type RequestBodyTools$Outbound = {
|
|
1602
|
+
name: string;
|
|
1603
|
+
description?: string | undefined;
|
|
1604
|
+
schema: UpdateToolRequestBodyToolsSchema$Outbound;
|
|
1605
|
+
};
|
|
1606
|
+
|
|
1607
|
+
/** @internal */
|
|
1608
|
+
export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
1609
|
+
RequestBodyTools$Outbound,
|
|
1610
|
+
z.ZodTypeDef,
|
|
1611
|
+
RequestBodyTools
|
|
1612
|
+
> = z.object({
|
|
1613
|
+
name: z.string(),
|
|
1614
|
+
description: z.string().optional(),
|
|
1615
|
+
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
1616
|
+
});
|
|
1617
|
+
|
|
1618
|
+
export function requestBodyToolsToJSON(
|
|
1619
|
+
requestBodyTools: RequestBodyTools,
|
|
1338
1620
|
): string {
|
|
1339
1621
|
return JSON.stringify(
|
|
1340
|
-
|
|
1622
|
+
RequestBodyTools$outboundSchema.parse(requestBodyTools),
|
|
1341
1623
|
);
|
|
1342
1624
|
}
|
|
1343
|
-
export function
|
|
1625
|
+
export function requestBodyToolsFromJSON(
|
|
1344
1626
|
jsonString: string,
|
|
1345
|
-
): SafeParseResult<
|
|
1627
|
+
): SafeParseResult<RequestBodyTools, SDKValidationError> {
|
|
1346
1628
|
return safeParse(
|
|
1347
1629
|
jsonString,
|
|
1348
|
-
(x) =>
|
|
1349
|
-
`Failed to parse '
|
|
1630
|
+
(x) => RequestBodyTools$inboundSchema.parse(JSON.parse(x)),
|
|
1631
|
+
`Failed to parse 'RequestBodyTools' from JSON`,
|
|
1350
1632
|
);
|
|
1351
1633
|
}
|
|
1352
1634
|
|
|
1353
1635
|
/** @internal */
|
|
1354
|
-
export const
|
|
1355
|
-
typeof
|
|
1356
|
-
> = z.nativeEnum(
|
|
1636
|
+
export const UpdateToolRequestBodyConnectionType$inboundSchema: z.ZodNativeEnum<
|
|
1637
|
+
typeof UpdateToolRequestBodyConnectionType
|
|
1638
|
+
> = z.nativeEnum(UpdateToolRequestBodyConnectionType);
|
|
1357
1639
|
/** @internal */
|
|
1358
|
-
export const
|
|
1359
|
-
typeof
|
|
1360
|
-
|
|
1640
|
+
export const UpdateToolRequestBodyConnectionType$outboundSchema:
|
|
1641
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyConnectionType> =
|
|
1642
|
+
UpdateToolRequestBodyConnectionType$inboundSchema;
|
|
1361
1643
|
|
|
1362
1644
|
/** @internal */
|
|
1363
|
-
export const
|
|
1364
|
-
|
|
1645
|
+
export const UpdateToolRequestBodyMcp$inboundSchema: z.ZodType<
|
|
1646
|
+
UpdateToolRequestBodyMcp,
|
|
1365
1647
|
z.ZodTypeDef,
|
|
1366
1648
|
unknown
|
|
1367
1649
|
> = z.object({
|
|
1368
|
-
|
|
1369
|
-
tool_name: z.string(),
|
|
1370
|
-
server_url: z.string(),
|
|
1650
|
+
server_url: z.string().optional(),
|
|
1371
1651
|
headers: z.record(z.lazy(() => UpdateToolRequestBodyHeaders$inboundSchema))
|
|
1372
1652
|
.optional(),
|
|
1373
|
-
|
|
1374
|
-
connection_type:
|
|
1653
|
+
tools: z.array(z.lazy(() => RequestBodyTools$inboundSchema)).optional(),
|
|
1654
|
+
connection_type: UpdateToolRequestBodyConnectionType$inboundSchema.optional(),
|
|
1375
1655
|
}).transform((v) => {
|
|
1376
1656
|
return remap$(v, {
|
|
1377
|
-
"server_id": "serverId",
|
|
1378
|
-
"tool_name": "toolName",
|
|
1379
1657
|
"server_url": "serverUrl",
|
|
1380
|
-
"input_schema": "inputSchema",
|
|
1381
1658
|
"connection_type": "connectionType",
|
|
1382
1659
|
});
|
|
1383
1660
|
});
|
|
1384
1661
|
/** @internal */
|
|
1385
|
-
export type
|
|
1386
|
-
|
|
1387
|
-
tool_name: string;
|
|
1388
|
-
server_url: string;
|
|
1662
|
+
export type UpdateToolRequestBodyMcp$Outbound = {
|
|
1663
|
+
server_url?: string | undefined;
|
|
1389
1664
|
headers?: { [k: string]: UpdateToolRequestBodyHeaders$Outbound } | undefined;
|
|
1390
|
-
|
|
1391
|
-
connection_type
|
|
1665
|
+
tools?: Array<RequestBodyTools$Outbound> | undefined;
|
|
1666
|
+
connection_type?: string | undefined;
|
|
1392
1667
|
};
|
|
1393
1668
|
|
|
1394
1669
|
/** @internal */
|
|
1395
|
-
export const
|
|
1396
|
-
|
|
1670
|
+
export const UpdateToolRequestBodyMcp$outboundSchema: z.ZodType<
|
|
1671
|
+
UpdateToolRequestBodyMcp$Outbound,
|
|
1397
1672
|
z.ZodTypeDef,
|
|
1398
|
-
|
|
1673
|
+
UpdateToolRequestBodyMcp
|
|
1399
1674
|
> = z.object({
|
|
1400
|
-
|
|
1401
|
-
toolName: z.string(),
|
|
1402
|
-
serverUrl: z.string(),
|
|
1675
|
+
serverUrl: z.string().optional(),
|
|
1403
1676
|
headers: z.record(z.lazy(() => UpdateToolRequestBodyHeaders$outboundSchema))
|
|
1404
1677
|
.optional(),
|
|
1405
|
-
|
|
1406
|
-
connectionType:
|
|
1678
|
+
tools: z.array(z.lazy(() => RequestBodyTools$outboundSchema)).optional(),
|
|
1679
|
+
connectionType: UpdateToolRequestBodyConnectionType$outboundSchema.optional(),
|
|
1407
1680
|
}).transform((v) => {
|
|
1408
1681
|
return remap$(v, {
|
|
1409
|
-
serverId: "server_id",
|
|
1410
|
-
toolName: "tool_name",
|
|
1411
1682
|
serverUrl: "server_url",
|
|
1412
|
-
inputSchema: "input_schema",
|
|
1413
1683
|
connectionType: "connection_type",
|
|
1414
1684
|
});
|
|
1415
1685
|
});
|
|
1416
1686
|
|
|
1417
|
-
export function
|
|
1418
|
-
|
|
1687
|
+
export function updateToolRequestBodyMcpToJSON(
|
|
1688
|
+
updateToolRequestBodyMcp: UpdateToolRequestBodyMcp,
|
|
1689
|
+
): string {
|
|
1690
|
+
return JSON.stringify(
|
|
1691
|
+
UpdateToolRequestBodyMcp$outboundSchema.parse(updateToolRequestBodyMcp),
|
|
1692
|
+
);
|
|
1419
1693
|
}
|
|
1420
|
-
export function
|
|
1694
|
+
export function updateToolRequestBodyMcpFromJSON(
|
|
1421
1695
|
jsonString: string,
|
|
1422
|
-
): SafeParseResult<
|
|
1696
|
+
): SafeParseResult<UpdateToolRequestBodyMcp, SDKValidationError> {
|
|
1423
1697
|
return safeParse(
|
|
1424
1698
|
jsonString,
|
|
1425
|
-
(x) =>
|
|
1426
|
-
`Failed to parse '
|
|
1699
|
+
(x) => UpdateToolRequestBodyMcp$inboundSchema.parse(JSON.parse(x)),
|
|
1700
|
+
`Failed to parse 'UpdateToolRequestBodyMcp' from JSON`,
|
|
1427
1701
|
);
|
|
1428
1702
|
}
|
|
1429
1703
|
|
|
@@ -1441,7 +1715,7 @@ export const UpdateMCPTool$inboundSchema: z.ZodType<
|
|
|
1441
1715
|
"live",
|
|
1442
1716
|
),
|
|
1443
1717
|
type: UpdateToolRequestBodyToolsRequest4Type$inboundSchema,
|
|
1444
|
-
mcp: z.lazy(() =>
|
|
1718
|
+
mcp: z.lazy(() => UpdateToolRequestBodyMcp$inboundSchema).optional(),
|
|
1445
1719
|
}).transform((v) => {
|
|
1446
1720
|
return remap$(v, {
|
|
1447
1721
|
"display_name": "displayName",
|
|
@@ -1455,7 +1729,7 @@ export type UpdateMCPTool$Outbound = {
|
|
|
1455
1729
|
description?: string | undefined;
|
|
1456
1730
|
status: string;
|
|
1457
1731
|
type: string;
|
|
1458
|
-
mcp?:
|
|
1732
|
+
mcp?: UpdateToolRequestBodyMcp$Outbound | undefined;
|
|
1459
1733
|
};
|
|
1460
1734
|
|
|
1461
1735
|
/** @internal */
|
|
@@ -1472,7 +1746,7 @@ export const UpdateMCPTool$outboundSchema: z.ZodType<
|
|
|
1472
1746
|
"live",
|
|
1473
1747
|
),
|
|
1474
1748
|
type: UpdateToolRequestBodyToolsRequest4Type$outboundSchema,
|
|
1475
|
-
mcp: z.lazy(() =>
|
|
1749
|
+
mcp: z.lazy(() => UpdateToolRequestBodyMcp$outboundSchema).optional(),
|
|
1476
1750
|
}).transform((v) => {
|
|
1477
1751
|
return remap$(v, {
|
|
1478
1752
|
displayName: "display_name",
|
|
@@ -1521,8 +1795,8 @@ export const UpdateToolRequestBodyMethod$outboundSchema: z.ZodNativeEnum<
|
|
|
1521
1795
|
> = UpdateToolRequestBodyMethod$inboundSchema;
|
|
1522
1796
|
|
|
1523
1797
|
/** @internal */
|
|
1524
|
-
export const
|
|
1525
|
-
|
|
1798
|
+
export const UpdateToolHeaders2$inboundSchema: z.ZodType<
|
|
1799
|
+
UpdateToolHeaders2,
|
|
1526
1800
|
z.ZodTypeDef,
|
|
1527
1801
|
unknown
|
|
1528
1802
|
> = z.object({
|
|
@@ -1530,21 +1804,56 @@ export const UpdateToolRequestBodyToolsHeaders$inboundSchema: z.ZodType<
|
|
|
1530
1804
|
encrypted: z.boolean().default(false),
|
|
1531
1805
|
});
|
|
1532
1806
|
/** @internal */
|
|
1533
|
-
export type
|
|
1807
|
+
export type UpdateToolHeaders2$Outbound = {
|
|
1534
1808
|
value: string;
|
|
1535
1809
|
encrypted: boolean;
|
|
1536
1810
|
};
|
|
1537
1811
|
|
|
1538
1812
|
/** @internal */
|
|
1539
|
-
export const
|
|
1540
|
-
|
|
1813
|
+
export const UpdateToolHeaders2$outboundSchema: z.ZodType<
|
|
1814
|
+
UpdateToolHeaders2$Outbound,
|
|
1541
1815
|
z.ZodTypeDef,
|
|
1542
|
-
|
|
1816
|
+
UpdateToolHeaders2
|
|
1543
1817
|
> = z.object({
|
|
1544
1818
|
value: z.string(),
|
|
1545
1819
|
encrypted: z.boolean().default(false),
|
|
1546
1820
|
});
|
|
1547
1821
|
|
|
1822
|
+
export function updateToolHeaders2ToJSON(
|
|
1823
|
+
updateToolHeaders2: UpdateToolHeaders2,
|
|
1824
|
+
): string {
|
|
1825
|
+
return JSON.stringify(
|
|
1826
|
+
UpdateToolHeaders2$outboundSchema.parse(updateToolHeaders2),
|
|
1827
|
+
);
|
|
1828
|
+
}
|
|
1829
|
+
export function updateToolHeaders2FromJSON(
|
|
1830
|
+
jsonString: string,
|
|
1831
|
+
): SafeParseResult<UpdateToolHeaders2, SDKValidationError> {
|
|
1832
|
+
return safeParse(
|
|
1833
|
+
jsonString,
|
|
1834
|
+
(x) => UpdateToolHeaders2$inboundSchema.parse(JSON.parse(x)),
|
|
1835
|
+
`Failed to parse 'UpdateToolHeaders2' from JSON`,
|
|
1836
|
+
);
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
/** @internal */
|
|
1840
|
+
export const UpdateToolRequestBodyToolsHeaders$inboundSchema: z.ZodType<
|
|
1841
|
+
UpdateToolRequestBodyToolsHeaders,
|
|
1842
|
+
z.ZodTypeDef,
|
|
1843
|
+
unknown
|
|
1844
|
+
> = z.union([z.lazy(() => UpdateToolHeaders2$inboundSchema), z.string()]);
|
|
1845
|
+
/** @internal */
|
|
1846
|
+
export type UpdateToolRequestBodyToolsHeaders$Outbound =
|
|
1847
|
+
| UpdateToolHeaders2$Outbound
|
|
1848
|
+
| string;
|
|
1849
|
+
|
|
1850
|
+
/** @internal */
|
|
1851
|
+
export const UpdateToolRequestBodyToolsHeaders$outboundSchema: z.ZodType<
|
|
1852
|
+
UpdateToolRequestBodyToolsHeaders$Outbound,
|
|
1853
|
+
z.ZodTypeDef,
|
|
1854
|
+
UpdateToolRequestBodyToolsHeaders
|
|
1855
|
+
> = z.union([z.lazy(() => UpdateToolHeaders2$outboundSchema), z.string()]);
|
|
1856
|
+
|
|
1548
1857
|
export function updateToolRequestBodyToolsHeadersToJSON(
|
|
1549
1858
|
updateToolRequestBodyToolsHeaders: UpdateToolRequestBodyToolsHeaders,
|
|
1550
1859
|
): string {
|
|
@@ -1573,7 +1882,7 @@ export const UpdateToolRequestBodyBlueprint$inboundSchema: z.ZodType<
|
|
|
1573
1882
|
url: z.string(),
|
|
1574
1883
|
method: UpdateToolRequestBodyMethod$inboundSchema,
|
|
1575
1884
|
headers: z.record(
|
|
1576
|
-
z.lazy(() =>
|
|
1885
|
+
z.union([z.lazy(() => UpdateToolHeaders2$inboundSchema), z.string()]),
|
|
1577
1886
|
).optional(),
|
|
1578
1887
|
body: z.record(z.any()).optional(),
|
|
1579
1888
|
});
|
|
@@ -1581,9 +1890,7 @@ export const UpdateToolRequestBodyBlueprint$inboundSchema: z.ZodType<
|
|
|
1581
1890
|
export type UpdateToolRequestBodyBlueprint$Outbound = {
|
|
1582
1891
|
url: string;
|
|
1583
1892
|
method: string;
|
|
1584
|
-
headers?:
|
|
1585
|
-
| { [k: string]: UpdateToolRequestBodyToolsHeaders$Outbound }
|
|
1586
|
-
| undefined;
|
|
1893
|
+
headers?: { [k: string]: UpdateToolHeaders2$Outbound | string } | undefined;
|
|
1587
1894
|
body?: { [k: string]: any } | undefined;
|
|
1588
1895
|
};
|
|
1589
1896
|
|
|
@@ -1596,7 +1903,7 @@ export const UpdateToolRequestBodyBlueprint$outboundSchema: z.ZodType<
|
|
|
1596
1903
|
url: z.string(),
|
|
1597
1904
|
method: UpdateToolRequestBodyMethod$outboundSchema,
|
|
1598
1905
|
headers: z.record(
|
|
1599
|
-
z.lazy(() =>
|
|
1906
|
+
z.union([z.lazy(() => UpdateToolHeaders2$outboundSchema), z.string()]),
|
|
1600
1907
|
).optional(),
|
|
1601
1908
|
body: z.record(z.any()).optional(),
|
|
1602
1909
|
});
|
|
@@ -1857,6 +2164,66 @@ export const UpdateToolRequestBodyToolsType$outboundSchema: z.ZodNativeEnum<
|
|
|
1857
2164
|
typeof UpdateToolRequestBodyToolsType
|
|
1858
2165
|
> = UpdateToolRequestBodyToolsType$inboundSchema;
|
|
1859
2166
|
|
|
2167
|
+
/** @internal */
|
|
2168
|
+
export const UpdateToolRequestBodySchema$inboundSchema: z.ZodType<
|
|
2169
|
+
UpdateToolRequestBodySchema,
|
|
2170
|
+
z.ZodTypeDef,
|
|
2171
|
+
unknown
|
|
2172
|
+
> = collectExtraKeys$(
|
|
2173
|
+
z.object({
|
|
2174
|
+
type: z.string(),
|
|
2175
|
+
properties: z.record(z.any()),
|
|
2176
|
+
required: z.array(z.string()),
|
|
2177
|
+
}).catchall(z.any()),
|
|
2178
|
+
"additionalProperties",
|
|
2179
|
+
true,
|
|
2180
|
+
);
|
|
2181
|
+
/** @internal */
|
|
2182
|
+
export type UpdateToolRequestBodySchema$Outbound = {
|
|
2183
|
+
type: string;
|
|
2184
|
+
properties: { [k: string]: any };
|
|
2185
|
+
required: Array<string>;
|
|
2186
|
+
[additionalProperties: string]: unknown;
|
|
2187
|
+
};
|
|
2188
|
+
|
|
2189
|
+
/** @internal */
|
|
2190
|
+
export const UpdateToolRequestBodySchema$outboundSchema: z.ZodType<
|
|
2191
|
+
UpdateToolRequestBodySchema$Outbound,
|
|
2192
|
+
z.ZodTypeDef,
|
|
2193
|
+
UpdateToolRequestBodySchema
|
|
2194
|
+
> = z.object({
|
|
2195
|
+
type: z.string(),
|
|
2196
|
+
properties: z.record(z.any()),
|
|
2197
|
+
required: z.array(z.string()),
|
|
2198
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
2199
|
+
}).transform((v) => {
|
|
2200
|
+
return {
|
|
2201
|
+
...v.additionalProperties,
|
|
2202
|
+
...remap$(v, {
|
|
2203
|
+
additionalProperties: null,
|
|
2204
|
+
}),
|
|
2205
|
+
};
|
|
2206
|
+
});
|
|
2207
|
+
|
|
2208
|
+
export function updateToolRequestBodySchemaToJSON(
|
|
2209
|
+
updateToolRequestBodySchema: UpdateToolRequestBodySchema,
|
|
2210
|
+
): string {
|
|
2211
|
+
return JSON.stringify(
|
|
2212
|
+
UpdateToolRequestBodySchema$outboundSchema.parse(
|
|
2213
|
+
updateToolRequestBodySchema,
|
|
2214
|
+
),
|
|
2215
|
+
);
|
|
2216
|
+
}
|
|
2217
|
+
export function updateToolRequestBodySchemaFromJSON(
|
|
2218
|
+
jsonString: string,
|
|
2219
|
+
): SafeParseResult<UpdateToolRequestBodySchema, SDKValidationError> {
|
|
2220
|
+
return safeParse(
|
|
2221
|
+
jsonString,
|
|
2222
|
+
(x) => UpdateToolRequestBodySchema$inboundSchema.parse(JSON.parse(x)),
|
|
2223
|
+
`Failed to parse 'UpdateToolRequestBodySchema' from JSON`,
|
|
2224
|
+
);
|
|
2225
|
+
}
|
|
2226
|
+
|
|
1860
2227
|
/** @internal */
|
|
1861
2228
|
export const UpdateToolRequestBodyJsonSchema$inboundSchema: z.ZodType<
|
|
1862
2229
|
UpdateToolRequestBodyJsonSchema,
|
|
@@ -1864,15 +2231,15 @@ export const UpdateToolRequestBodyJsonSchema$inboundSchema: z.ZodType<
|
|
|
1864
2231
|
unknown
|
|
1865
2232
|
> = z.object({
|
|
1866
2233
|
name: z.string(),
|
|
1867
|
-
description: z.string()
|
|
1868
|
-
schema: z.
|
|
2234
|
+
description: z.string(),
|
|
2235
|
+
schema: z.lazy(() => UpdateToolRequestBodySchema$inboundSchema),
|
|
1869
2236
|
strict: z.boolean().optional(),
|
|
1870
2237
|
});
|
|
1871
2238
|
/** @internal */
|
|
1872
2239
|
export type UpdateToolRequestBodyJsonSchema$Outbound = {
|
|
1873
2240
|
name: string;
|
|
1874
|
-
description
|
|
1875
|
-
schema:
|
|
2241
|
+
description: string;
|
|
2242
|
+
schema: UpdateToolRequestBodySchema$Outbound;
|
|
1876
2243
|
strict?: boolean | undefined;
|
|
1877
2244
|
};
|
|
1878
2245
|
|
|
@@ -1883,8 +2250,8 @@ export const UpdateToolRequestBodyJsonSchema$outboundSchema: z.ZodType<
|
|
|
1883
2250
|
UpdateToolRequestBodyJsonSchema
|
|
1884
2251
|
> = z.object({
|
|
1885
2252
|
name: z.string(),
|
|
1886
|
-
description: z.string()
|
|
1887
|
-
schema: z.
|
|
2253
|
+
description: z.string(),
|
|
2254
|
+
schema: z.lazy(() => UpdateToolRequestBodySchema$outboundSchema),
|
|
1888
2255
|
strict: z.boolean().optional(),
|
|
1889
2256
|
});
|
|
1890
2257
|
|
|
@@ -1994,6 +2361,76 @@ export const UpdateToolRequestBodyType$outboundSchema: z.ZodNativeEnum<
|
|
|
1994
2361
|
typeof UpdateToolRequestBodyType
|
|
1995
2362
|
> = UpdateToolRequestBodyType$inboundSchema;
|
|
1996
2363
|
|
|
2364
|
+
/** @internal */
|
|
2365
|
+
export const UpdateToolRequestBodyToolsRequest1Type$inboundSchema:
|
|
2366
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest1Type> = z.nativeEnum(
|
|
2367
|
+
UpdateToolRequestBodyToolsRequest1Type,
|
|
2368
|
+
);
|
|
2369
|
+
/** @internal */
|
|
2370
|
+
export const UpdateToolRequestBodyToolsRequest1Type$outboundSchema:
|
|
2371
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest1Type> =
|
|
2372
|
+
UpdateToolRequestBodyToolsRequest1Type$inboundSchema;
|
|
2373
|
+
|
|
2374
|
+
/** @internal */
|
|
2375
|
+
export const UpdateToolRequestBodyParameters$inboundSchema: z.ZodType<
|
|
2376
|
+
UpdateToolRequestBodyParameters,
|
|
2377
|
+
z.ZodTypeDef,
|
|
2378
|
+
unknown
|
|
2379
|
+
> = collectExtraKeys$(
|
|
2380
|
+
z.object({
|
|
2381
|
+
type: UpdateToolRequestBodyToolsRequest1Type$inboundSchema,
|
|
2382
|
+
properties: z.record(z.any()),
|
|
2383
|
+
required: z.array(z.string()),
|
|
2384
|
+
}).catchall(z.any()),
|
|
2385
|
+
"additionalProperties",
|
|
2386
|
+
true,
|
|
2387
|
+
);
|
|
2388
|
+
/** @internal */
|
|
2389
|
+
export type UpdateToolRequestBodyParameters$Outbound = {
|
|
2390
|
+
type: string;
|
|
2391
|
+
properties: { [k: string]: any };
|
|
2392
|
+
required: Array<string>;
|
|
2393
|
+
[additionalProperties: string]: unknown;
|
|
2394
|
+
};
|
|
2395
|
+
|
|
2396
|
+
/** @internal */
|
|
2397
|
+
export const UpdateToolRequestBodyParameters$outboundSchema: z.ZodType<
|
|
2398
|
+
UpdateToolRequestBodyParameters$Outbound,
|
|
2399
|
+
z.ZodTypeDef,
|
|
2400
|
+
UpdateToolRequestBodyParameters
|
|
2401
|
+
> = z.object({
|
|
2402
|
+
type: UpdateToolRequestBodyToolsRequest1Type$outboundSchema,
|
|
2403
|
+
properties: z.record(z.any()),
|
|
2404
|
+
required: z.array(z.string()),
|
|
2405
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
2406
|
+
}).transform((v) => {
|
|
2407
|
+
return {
|
|
2408
|
+
...v.additionalProperties,
|
|
2409
|
+
...remap$(v, {
|
|
2410
|
+
additionalProperties: null,
|
|
2411
|
+
}),
|
|
2412
|
+
};
|
|
2413
|
+
});
|
|
2414
|
+
|
|
2415
|
+
export function updateToolRequestBodyParametersToJSON(
|
|
2416
|
+
updateToolRequestBodyParameters: UpdateToolRequestBodyParameters,
|
|
2417
|
+
): string {
|
|
2418
|
+
return JSON.stringify(
|
|
2419
|
+
UpdateToolRequestBodyParameters$outboundSchema.parse(
|
|
2420
|
+
updateToolRequestBodyParameters,
|
|
2421
|
+
),
|
|
2422
|
+
);
|
|
2423
|
+
}
|
|
2424
|
+
export function updateToolRequestBodyParametersFromJSON(
|
|
2425
|
+
jsonString: string,
|
|
2426
|
+
): SafeParseResult<UpdateToolRequestBodyParameters, SDKValidationError> {
|
|
2427
|
+
return safeParse(
|
|
2428
|
+
jsonString,
|
|
2429
|
+
(x) => UpdateToolRequestBodyParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2430
|
+
`Failed to parse 'UpdateToolRequestBodyParameters' from JSON`,
|
|
2431
|
+
);
|
|
2432
|
+
}
|
|
2433
|
+
|
|
1997
2434
|
/** @internal */
|
|
1998
2435
|
export const UpdateToolRequestBodyFunction$inboundSchema: z.ZodType<
|
|
1999
2436
|
UpdateToolRequestBodyFunction,
|
|
@@ -2003,14 +2440,15 @@ export const UpdateToolRequestBodyFunction$inboundSchema: z.ZodType<
|
|
|
2003
2440
|
name: z.string(),
|
|
2004
2441
|
description: z.string().optional(),
|
|
2005
2442
|
strict: z.boolean().optional(),
|
|
2006
|
-
parameters: z.
|
|
2443
|
+
parameters: z.lazy(() => UpdateToolRequestBodyParameters$inboundSchema)
|
|
2444
|
+
.optional(),
|
|
2007
2445
|
});
|
|
2008
2446
|
/** @internal */
|
|
2009
2447
|
export type UpdateToolRequestBodyFunction$Outbound = {
|
|
2010
2448
|
name: string;
|
|
2011
2449
|
description?: string | undefined;
|
|
2012
2450
|
strict?: boolean | undefined;
|
|
2013
|
-
parameters?:
|
|
2451
|
+
parameters?: UpdateToolRequestBodyParameters$Outbound | undefined;
|
|
2014
2452
|
};
|
|
2015
2453
|
|
|
2016
2454
|
/** @internal */
|
|
@@ -2022,7 +2460,8 @@ export const UpdateToolRequestBodyFunction$outboundSchema: z.ZodType<
|
|
|
2022
2460
|
name: z.string(),
|
|
2023
2461
|
description: z.string().optional(),
|
|
2024
2462
|
strict: z.boolean().optional(),
|
|
2025
|
-
parameters: z.
|
|
2463
|
+
parameters: z.lazy(() => UpdateToolRequestBodyParameters$outboundSchema)
|
|
2464
|
+
.optional(),
|
|
2026
2465
|
});
|
|
2027
2466
|
|
|
2028
2467
|
export function updateToolRequestBodyFunctionToJSON(
|
|
@@ -2253,6 +2692,80 @@ export const UpdateToolResponseBodyToolsResponse200ApplicationJSONType$outboundS
|
|
|
2253
2692
|
typeof UpdateToolResponseBodyToolsResponse200ApplicationJSONType
|
|
2254
2693
|
> = UpdateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema;
|
|
2255
2694
|
|
|
2695
|
+
/** @internal */
|
|
2696
|
+
export const UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema:
|
|
2697
|
+
z.ZodNativeEnum<
|
|
2698
|
+
typeof UpdateToolResponseBodyToolsResponse200ApplicationJson5Type
|
|
2699
|
+
> = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson5Type);
|
|
2700
|
+
/** @internal */
|
|
2701
|
+
export const UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$outboundSchema:
|
|
2702
|
+
z.ZodNativeEnum<
|
|
2703
|
+
typeof UpdateToolResponseBodyToolsResponse200ApplicationJson5Type
|
|
2704
|
+
> = UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema;
|
|
2705
|
+
|
|
2706
|
+
/** @internal */
|
|
2707
|
+
export const UpdateToolResponseBodyToolsParameters$inboundSchema: z.ZodType<
|
|
2708
|
+
UpdateToolResponseBodyToolsParameters,
|
|
2709
|
+
z.ZodTypeDef,
|
|
2710
|
+
unknown
|
|
2711
|
+
> = collectExtraKeys$(
|
|
2712
|
+
z.object({
|
|
2713
|
+
type:
|
|
2714
|
+
UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema,
|
|
2715
|
+
properties: z.record(z.any()),
|
|
2716
|
+
required: z.array(z.string()),
|
|
2717
|
+
}).catchall(z.any()),
|
|
2718
|
+
"additionalProperties",
|
|
2719
|
+
true,
|
|
2720
|
+
);
|
|
2721
|
+
/** @internal */
|
|
2722
|
+
export type UpdateToolResponseBodyToolsParameters$Outbound = {
|
|
2723
|
+
type: string;
|
|
2724
|
+
properties: { [k: string]: any };
|
|
2725
|
+
required: Array<string>;
|
|
2726
|
+
[additionalProperties: string]: unknown;
|
|
2727
|
+
};
|
|
2728
|
+
|
|
2729
|
+
/** @internal */
|
|
2730
|
+
export const UpdateToolResponseBodyToolsParameters$outboundSchema: z.ZodType<
|
|
2731
|
+
UpdateToolResponseBodyToolsParameters$Outbound,
|
|
2732
|
+
z.ZodTypeDef,
|
|
2733
|
+
UpdateToolResponseBodyToolsParameters
|
|
2734
|
+
> = z.object({
|
|
2735
|
+
type:
|
|
2736
|
+
UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$outboundSchema,
|
|
2737
|
+
properties: z.record(z.any()),
|
|
2738
|
+
required: z.array(z.string()),
|
|
2739
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
2740
|
+
}).transform((v) => {
|
|
2741
|
+
return {
|
|
2742
|
+
...v.additionalProperties,
|
|
2743
|
+
...remap$(v, {
|
|
2744
|
+
additionalProperties: null,
|
|
2745
|
+
}),
|
|
2746
|
+
};
|
|
2747
|
+
});
|
|
2748
|
+
|
|
2749
|
+
export function updateToolResponseBodyToolsParametersToJSON(
|
|
2750
|
+
updateToolResponseBodyToolsParameters: UpdateToolResponseBodyToolsParameters,
|
|
2751
|
+
): string {
|
|
2752
|
+
return JSON.stringify(
|
|
2753
|
+
UpdateToolResponseBodyToolsParameters$outboundSchema.parse(
|
|
2754
|
+
updateToolResponseBodyToolsParameters,
|
|
2755
|
+
),
|
|
2756
|
+
);
|
|
2757
|
+
}
|
|
2758
|
+
export function updateToolResponseBodyToolsParametersFromJSON(
|
|
2759
|
+
jsonString: string,
|
|
2760
|
+
): SafeParseResult<UpdateToolResponseBodyToolsParameters, SDKValidationError> {
|
|
2761
|
+
return safeParse(
|
|
2762
|
+
jsonString,
|
|
2763
|
+
(x) =>
|
|
2764
|
+
UpdateToolResponseBodyToolsParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2765
|
+
`Failed to parse 'UpdateToolResponseBodyToolsParameters' from JSON`,
|
|
2766
|
+
);
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2256
2769
|
/** @internal */
|
|
2257
2770
|
export const UpdateToolResponseBodyLanguage$inboundSchema: z.ZodNativeEnum<
|
|
2258
2771
|
typeof UpdateToolResponseBodyLanguage
|
|
@@ -2268,13 +2781,14 @@ export const UpdateToolResponseBodyCodeTool$inboundSchema: z.ZodType<
|
|
|
2268
2781
|
z.ZodTypeDef,
|
|
2269
2782
|
unknown
|
|
2270
2783
|
> = z.object({
|
|
2271
|
-
parameters: z.
|
|
2784
|
+
parameters: z.lazy(() => UpdateToolResponseBodyToolsParameters$inboundSchema)
|
|
2785
|
+
.optional(),
|
|
2272
2786
|
language: UpdateToolResponseBodyLanguage$inboundSchema,
|
|
2273
2787
|
code: z.string(),
|
|
2274
2788
|
});
|
|
2275
2789
|
/** @internal */
|
|
2276
2790
|
export type UpdateToolResponseBodyCodeTool$Outbound = {
|
|
2277
|
-
parameters?:
|
|
2791
|
+
parameters?: UpdateToolResponseBodyToolsParameters$Outbound | undefined;
|
|
2278
2792
|
language: string;
|
|
2279
2793
|
code: string;
|
|
2280
2794
|
};
|
|
@@ -2285,7 +2799,8 @@ export const UpdateToolResponseBodyCodeTool$outboundSchema: z.ZodType<
|
|
|
2285
2799
|
z.ZodTypeDef,
|
|
2286
2800
|
UpdateToolResponseBodyCodeTool
|
|
2287
2801
|
> = z.object({
|
|
2288
|
-
parameters: z.
|
|
2802
|
+
parameters: z.lazy(() => UpdateToolResponseBodyToolsParameters$outboundSchema)
|
|
2803
|
+
.optional(),
|
|
2289
2804
|
language: UpdateToolResponseBodyLanguage$outboundSchema,
|
|
2290
2805
|
code: z.string(),
|
|
2291
2806
|
});
|
|
@@ -2315,7 +2830,7 @@ export const UpdateToolResponseBody5$inboundSchema: z.ZodType<
|
|
|
2315
2830
|
z.ZodTypeDef,
|
|
2316
2831
|
unknown
|
|
2317
2832
|
> = z.object({
|
|
2318
|
-
_id: z.string().default("
|
|
2833
|
+
_id: z.string().default("tool_01KA0EAFPMJEYRJ9CCXVDRWTC8"),
|
|
2319
2834
|
path: z.string(),
|
|
2320
2835
|
key: z.string(),
|
|
2321
2836
|
display_name: z.string().optional(),
|
|
@@ -2369,7 +2884,7 @@ export const UpdateToolResponseBody5$outboundSchema: z.ZodType<
|
|
|
2369
2884
|
z.ZodTypeDef,
|
|
2370
2885
|
UpdateToolResponseBody5
|
|
2371
2886
|
> = z.object({
|
|
2372
|
-
id: z.string().default("
|
|
2887
|
+
id: z.string().default("tool_01KA0EAFPMJEYRJ9CCXVDRWTC8"),
|
|
2373
2888
|
path: z.string(),
|
|
2374
2889
|
key: z.string(),
|
|
2375
2890
|
displayName: z.string().optional(),
|
|
@@ -2491,8 +3006,8 @@ export const UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$outbound
|
|
|
2491
3006
|
> = UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema;
|
|
2492
3007
|
|
|
2493
3008
|
/** @internal */
|
|
2494
|
-
export const
|
|
2495
|
-
|
|
3009
|
+
export const UpdateToolResponseBodyToolsSchema$inboundSchema: z.ZodType<
|
|
3010
|
+
UpdateToolResponseBodyToolsSchema,
|
|
2496
3011
|
z.ZodTypeDef,
|
|
2497
3012
|
unknown
|
|
2498
3013
|
> = z.object({
|
|
@@ -2502,17 +3017,17 @@ export const UpdateToolResponseBodyInputSchema$inboundSchema: z.ZodType<
|
|
|
2502
3017
|
required: z.array(z.string()).optional(),
|
|
2503
3018
|
});
|
|
2504
3019
|
/** @internal */
|
|
2505
|
-
export type
|
|
3020
|
+
export type UpdateToolResponseBodyToolsSchema$Outbound = {
|
|
2506
3021
|
type: string;
|
|
2507
3022
|
properties?: { [k: string]: any } | undefined;
|
|
2508
3023
|
required?: Array<string> | undefined;
|
|
2509
3024
|
};
|
|
2510
3025
|
|
|
2511
3026
|
/** @internal */
|
|
2512
|
-
export const
|
|
2513
|
-
|
|
3027
|
+
export const UpdateToolResponseBodyToolsSchema$outboundSchema: z.ZodType<
|
|
3028
|
+
UpdateToolResponseBodyToolsSchema$Outbound,
|
|
2514
3029
|
z.ZodTypeDef,
|
|
2515
|
-
|
|
3030
|
+
UpdateToolResponseBodyToolsSchema
|
|
2516
3031
|
> = z.object({
|
|
2517
3032
|
type:
|
|
2518
3033
|
UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema,
|
|
@@ -2520,22 +3035,69 @@ export const UpdateToolResponseBodyInputSchema$outboundSchema: z.ZodType<
|
|
|
2520
3035
|
required: z.array(z.string()).optional(),
|
|
2521
3036
|
});
|
|
2522
3037
|
|
|
2523
|
-
export function
|
|
2524
|
-
|
|
3038
|
+
export function updateToolResponseBodyToolsSchemaToJSON(
|
|
3039
|
+
updateToolResponseBodyToolsSchema: UpdateToolResponseBodyToolsSchema,
|
|
2525
3040
|
): string {
|
|
2526
3041
|
return JSON.stringify(
|
|
2527
|
-
|
|
2528
|
-
|
|
3042
|
+
UpdateToolResponseBodyToolsSchema$outboundSchema.parse(
|
|
3043
|
+
updateToolResponseBodyToolsSchema,
|
|
2529
3044
|
),
|
|
2530
3045
|
);
|
|
2531
3046
|
}
|
|
2532
|
-
export function
|
|
3047
|
+
export function updateToolResponseBodyToolsSchemaFromJSON(
|
|
2533
3048
|
jsonString: string,
|
|
2534
|
-
): SafeParseResult<
|
|
3049
|
+
): SafeParseResult<UpdateToolResponseBodyToolsSchema, SDKValidationError> {
|
|
2535
3050
|
return safeParse(
|
|
2536
3051
|
jsonString,
|
|
2537
|
-
(x) =>
|
|
2538
|
-
`Failed to parse '
|
|
3052
|
+
(x) => UpdateToolResponseBodyToolsSchema$inboundSchema.parse(JSON.parse(x)),
|
|
3053
|
+
`Failed to parse 'UpdateToolResponseBodyToolsSchema' from JSON`,
|
|
3054
|
+
);
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
/** @internal */
|
|
3058
|
+
export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
3059
|
+
UpdateToolResponseBodyTools,
|
|
3060
|
+
z.ZodTypeDef,
|
|
3061
|
+
unknown
|
|
3062
|
+
> = z.object({
|
|
3063
|
+
name: z.string(),
|
|
3064
|
+
description: z.string().optional(),
|
|
3065
|
+
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
3066
|
+
});
|
|
3067
|
+
/** @internal */
|
|
3068
|
+
export type UpdateToolResponseBodyTools$Outbound = {
|
|
3069
|
+
name: string;
|
|
3070
|
+
description?: string | undefined;
|
|
3071
|
+
schema: UpdateToolResponseBodyToolsSchema$Outbound;
|
|
3072
|
+
};
|
|
3073
|
+
|
|
3074
|
+
/** @internal */
|
|
3075
|
+
export const UpdateToolResponseBodyTools$outboundSchema: z.ZodType<
|
|
3076
|
+
UpdateToolResponseBodyTools$Outbound,
|
|
3077
|
+
z.ZodTypeDef,
|
|
3078
|
+
UpdateToolResponseBodyTools
|
|
3079
|
+
> = z.object({
|
|
3080
|
+
name: z.string(),
|
|
3081
|
+
description: z.string().optional(),
|
|
3082
|
+
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$outboundSchema),
|
|
3083
|
+
});
|
|
3084
|
+
|
|
3085
|
+
export function updateToolResponseBodyToolsToJSON(
|
|
3086
|
+
updateToolResponseBodyTools: UpdateToolResponseBodyTools,
|
|
3087
|
+
): string {
|
|
3088
|
+
return JSON.stringify(
|
|
3089
|
+
UpdateToolResponseBodyTools$outboundSchema.parse(
|
|
3090
|
+
updateToolResponseBodyTools,
|
|
3091
|
+
),
|
|
3092
|
+
);
|
|
3093
|
+
}
|
|
3094
|
+
export function updateToolResponseBodyToolsFromJSON(
|
|
3095
|
+
jsonString: string,
|
|
3096
|
+
): SafeParseResult<UpdateToolResponseBodyTools, SDKValidationError> {
|
|
3097
|
+
return safeParse(
|
|
3098
|
+
jsonString,
|
|
3099
|
+
(x) => UpdateToolResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
|
|
3100
|
+
`Failed to parse 'UpdateToolResponseBodyTools' from JSON`,
|
|
2539
3101
|
);
|
|
2540
3102
|
}
|
|
2541
3103
|
|
|
@@ -2555,29 +3117,22 @@ export const UpdateToolResponseBodyMcp$inboundSchema: z.ZodType<
|
|
|
2555
3117
|
z.ZodTypeDef,
|
|
2556
3118
|
unknown
|
|
2557
3119
|
> = z.object({
|
|
2558
|
-
server_id: z.string(),
|
|
2559
|
-
tool_name: z.string(),
|
|
2560
3120
|
server_url: z.string(),
|
|
2561
3121
|
headers: z.record(z.lazy(() => UpdateToolResponseBodyHeaders$inboundSchema))
|
|
2562
3122
|
.optional(),
|
|
2563
|
-
|
|
3123
|
+
tools: z.array(z.lazy(() => UpdateToolResponseBodyTools$inboundSchema)),
|
|
2564
3124
|
connection_type: UpdateToolResponseBodyConnectionType$inboundSchema,
|
|
2565
3125
|
}).transform((v) => {
|
|
2566
3126
|
return remap$(v, {
|
|
2567
|
-
"server_id": "serverId",
|
|
2568
|
-
"tool_name": "toolName",
|
|
2569
3127
|
"server_url": "serverUrl",
|
|
2570
|
-
"input_schema": "inputSchema",
|
|
2571
3128
|
"connection_type": "connectionType",
|
|
2572
3129
|
});
|
|
2573
3130
|
});
|
|
2574
3131
|
/** @internal */
|
|
2575
3132
|
export type UpdateToolResponseBodyMcp$Outbound = {
|
|
2576
|
-
server_id: string;
|
|
2577
|
-
tool_name: string;
|
|
2578
3133
|
server_url: string;
|
|
2579
3134
|
headers?: { [k: string]: UpdateToolResponseBodyHeaders$Outbound } | undefined;
|
|
2580
|
-
|
|
3135
|
+
tools: Array<UpdateToolResponseBodyTools$Outbound>;
|
|
2581
3136
|
connection_type: string;
|
|
2582
3137
|
};
|
|
2583
3138
|
|
|
@@ -2587,19 +3142,14 @@ export const UpdateToolResponseBodyMcp$outboundSchema: z.ZodType<
|
|
|
2587
3142
|
z.ZodTypeDef,
|
|
2588
3143
|
UpdateToolResponseBodyMcp
|
|
2589
3144
|
> = z.object({
|
|
2590
|
-
serverId: z.string(),
|
|
2591
|
-
toolName: z.string(),
|
|
2592
3145
|
serverUrl: z.string(),
|
|
2593
3146
|
headers: z.record(z.lazy(() => UpdateToolResponseBodyHeaders$outboundSchema))
|
|
2594
3147
|
.optional(),
|
|
2595
|
-
|
|
3148
|
+
tools: z.array(z.lazy(() => UpdateToolResponseBodyTools$outboundSchema)),
|
|
2596
3149
|
connectionType: UpdateToolResponseBodyConnectionType$outboundSchema,
|
|
2597
3150
|
}).transform((v) => {
|
|
2598
3151
|
return remap$(v, {
|
|
2599
|
-
serverId: "server_id",
|
|
2600
|
-
toolName: "tool_name",
|
|
2601
3152
|
serverUrl: "server_url",
|
|
2602
|
-
inputSchema: "input_schema",
|
|
2603
3153
|
connectionType: "connection_type",
|
|
2604
3154
|
});
|
|
2605
3155
|
});
|
|
@@ -2627,7 +3177,7 @@ export const UpdateToolResponseBody4$inboundSchema: z.ZodType<
|
|
|
2627
3177
|
z.ZodTypeDef,
|
|
2628
3178
|
unknown
|
|
2629
3179
|
> = z.object({
|
|
2630
|
-
_id: z.string().default("
|
|
3180
|
+
_id: z.string().default("tool_01KA0EAFPHH5EV465Q6ZW3KQ7E"),
|
|
2631
3181
|
path: z.string(),
|
|
2632
3182
|
key: z.string(),
|
|
2633
3183
|
display_name: z.string().optional(),
|
|
@@ -2680,7 +3230,7 @@ export const UpdateToolResponseBody4$outboundSchema: z.ZodType<
|
|
|
2680
3230
|
z.ZodTypeDef,
|
|
2681
3231
|
UpdateToolResponseBody4
|
|
2682
3232
|
> = z.object({
|
|
2683
|
-
id: z.string().default("
|
|
3233
|
+
id: z.string().default("tool_01KA0EAFPHH5EV465Q6ZW3KQ7E"),
|
|
2684
3234
|
path: z.string(),
|
|
2685
3235
|
key: z.string(),
|
|
2686
3236
|
displayName: z.string().optional(),
|
|
@@ -2754,8 +3304,8 @@ export const UpdateToolResponseBodyMethod$outboundSchema: z.ZodNativeEnum<
|
|
|
2754
3304
|
> = UpdateToolResponseBodyMethod$inboundSchema;
|
|
2755
3305
|
|
|
2756
3306
|
/** @internal */
|
|
2757
|
-
export const
|
|
2758
|
-
|
|
3307
|
+
export const UpdateToolHeadersTools2$inboundSchema: z.ZodType<
|
|
3308
|
+
UpdateToolHeadersTools2,
|
|
2759
3309
|
z.ZodTypeDef,
|
|
2760
3310
|
unknown
|
|
2761
3311
|
> = z.object({
|
|
@@ -2763,21 +3313,56 @@ export const UpdateToolResponseBodyToolsHeaders$inboundSchema: z.ZodType<
|
|
|
2763
3313
|
encrypted: z.boolean().default(false),
|
|
2764
3314
|
});
|
|
2765
3315
|
/** @internal */
|
|
2766
|
-
export type
|
|
3316
|
+
export type UpdateToolHeadersTools2$Outbound = {
|
|
2767
3317
|
value: string;
|
|
2768
3318
|
encrypted: boolean;
|
|
2769
3319
|
};
|
|
2770
3320
|
|
|
2771
3321
|
/** @internal */
|
|
2772
|
-
export const
|
|
2773
|
-
|
|
3322
|
+
export const UpdateToolHeadersTools2$outboundSchema: z.ZodType<
|
|
3323
|
+
UpdateToolHeadersTools2$Outbound,
|
|
2774
3324
|
z.ZodTypeDef,
|
|
2775
|
-
|
|
3325
|
+
UpdateToolHeadersTools2
|
|
2776
3326
|
> = z.object({
|
|
2777
3327
|
value: z.string(),
|
|
2778
3328
|
encrypted: z.boolean().default(false),
|
|
2779
3329
|
});
|
|
2780
3330
|
|
|
3331
|
+
export function updateToolHeadersTools2ToJSON(
|
|
3332
|
+
updateToolHeadersTools2: UpdateToolHeadersTools2,
|
|
3333
|
+
): string {
|
|
3334
|
+
return JSON.stringify(
|
|
3335
|
+
UpdateToolHeadersTools2$outboundSchema.parse(updateToolHeadersTools2),
|
|
3336
|
+
);
|
|
3337
|
+
}
|
|
3338
|
+
export function updateToolHeadersTools2FromJSON(
|
|
3339
|
+
jsonString: string,
|
|
3340
|
+
): SafeParseResult<UpdateToolHeadersTools2, SDKValidationError> {
|
|
3341
|
+
return safeParse(
|
|
3342
|
+
jsonString,
|
|
3343
|
+
(x) => UpdateToolHeadersTools2$inboundSchema.parse(JSON.parse(x)),
|
|
3344
|
+
`Failed to parse 'UpdateToolHeadersTools2' from JSON`,
|
|
3345
|
+
);
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
/** @internal */
|
|
3349
|
+
export const UpdateToolResponseBodyToolsHeaders$inboundSchema: z.ZodType<
|
|
3350
|
+
UpdateToolResponseBodyToolsHeaders,
|
|
3351
|
+
z.ZodTypeDef,
|
|
3352
|
+
unknown
|
|
3353
|
+
> = z.union([z.lazy(() => UpdateToolHeadersTools2$inboundSchema), z.string()]);
|
|
3354
|
+
/** @internal */
|
|
3355
|
+
export type UpdateToolResponseBodyToolsHeaders$Outbound =
|
|
3356
|
+
| UpdateToolHeadersTools2$Outbound
|
|
3357
|
+
| string;
|
|
3358
|
+
|
|
3359
|
+
/** @internal */
|
|
3360
|
+
export const UpdateToolResponseBodyToolsHeaders$outboundSchema: z.ZodType<
|
|
3361
|
+
UpdateToolResponseBodyToolsHeaders$Outbound,
|
|
3362
|
+
z.ZodTypeDef,
|
|
3363
|
+
UpdateToolResponseBodyToolsHeaders
|
|
3364
|
+
> = z.union([z.lazy(() => UpdateToolHeadersTools2$outboundSchema), z.string()]);
|
|
3365
|
+
|
|
2781
3366
|
export function updateToolResponseBodyToolsHeadersToJSON(
|
|
2782
3367
|
updateToolResponseBodyToolsHeaders: UpdateToolResponseBodyToolsHeaders,
|
|
2783
3368
|
): string {
|
|
@@ -2807,7 +3392,7 @@ export const UpdateToolResponseBodyBlueprint$inboundSchema: z.ZodType<
|
|
|
2807
3392
|
url: z.string(),
|
|
2808
3393
|
method: UpdateToolResponseBodyMethod$inboundSchema,
|
|
2809
3394
|
headers: z.record(
|
|
2810
|
-
z.lazy(() =>
|
|
3395
|
+
z.union([z.lazy(() => UpdateToolHeadersTools2$inboundSchema), z.string()]),
|
|
2811
3396
|
).optional(),
|
|
2812
3397
|
body: z.record(z.any()).optional(),
|
|
2813
3398
|
});
|
|
@@ -2816,7 +3401,7 @@ export type UpdateToolResponseBodyBlueprint$Outbound = {
|
|
|
2816
3401
|
url: string;
|
|
2817
3402
|
method: string;
|
|
2818
3403
|
headers?:
|
|
2819
|
-
| { [k: string]:
|
|
3404
|
+
| { [k: string]: UpdateToolHeadersTools2$Outbound | string }
|
|
2820
3405
|
| undefined;
|
|
2821
3406
|
body?: { [k: string]: any } | undefined;
|
|
2822
3407
|
};
|
|
@@ -2830,7 +3415,7 @@ export const UpdateToolResponseBodyBlueprint$outboundSchema: z.ZodType<
|
|
|
2830
3415
|
url: z.string(),
|
|
2831
3416
|
method: UpdateToolResponseBodyMethod$outboundSchema,
|
|
2832
3417
|
headers: z.record(
|
|
2833
|
-
z.lazy(() =>
|
|
3418
|
+
z.union([z.lazy(() => UpdateToolHeadersTools2$outboundSchema), z.string()]),
|
|
2834
3419
|
).optional(),
|
|
2835
3420
|
body: z.record(z.any()).optional(),
|
|
2836
3421
|
});
|
|
@@ -3020,7 +3605,7 @@ export const UpdateToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
3020
3605
|
z.ZodTypeDef,
|
|
3021
3606
|
unknown
|
|
3022
3607
|
> = z.object({
|
|
3023
|
-
_id: z.string().default("
|
|
3608
|
+
_id: z.string().default("tool_01KA0EAFPE83G1MWDFNEP30AWB"),
|
|
3024
3609
|
path: z.string(),
|
|
3025
3610
|
key: z.string(),
|
|
3026
3611
|
display_name: z.string().optional(),
|
|
@@ -3073,7 +3658,7 @@ export const UpdateToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
3073
3658
|
z.ZodTypeDef,
|
|
3074
3659
|
UpdateToolResponseBody3
|
|
3075
3660
|
> = z.object({
|
|
3076
|
-
id: z.string().default("
|
|
3661
|
+
id: z.string().default("tool_01KA0EAFPE83G1MWDFNEP30AWB"),
|
|
3077
3662
|
path: z.string(),
|
|
3078
3663
|
key: z.string(),
|
|
3079
3664
|
displayName: z.string().optional(),
|
|
@@ -3137,6 +3722,66 @@ export const UpdateToolResponseBodyToolsType$outboundSchema: z.ZodNativeEnum<
|
|
|
3137
3722
|
typeof UpdateToolResponseBodyToolsType
|
|
3138
3723
|
> = UpdateToolResponseBodyToolsType$inboundSchema;
|
|
3139
3724
|
|
|
3725
|
+
/** @internal */
|
|
3726
|
+
export const UpdateToolResponseBodySchema$inboundSchema: z.ZodType<
|
|
3727
|
+
UpdateToolResponseBodySchema,
|
|
3728
|
+
z.ZodTypeDef,
|
|
3729
|
+
unknown
|
|
3730
|
+
> = collectExtraKeys$(
|
|
3731
|
+
z.object({
|
|
3732
|
+
type: z.string(),
|
|
3733
|
+
properties: z.record(z.any()),
|
|
3734
|
+
required: z.array(z.string()),
|
|
3735
|
+
}).catchall(z.any()),
|
|
3736
|
+
"additionalProperties",
|
|
3737
|
+
true,
|
|
3738
|
+
);
|
|
3739
|
+
/** @internal */
|
|
3740
|
+
export type UpdateToolResponseBodySchema$Outbound = {
|
|
3741
|
+
type: string;
|
|
3742
|
+
properties: { [k: string]: any };
|
|
3743
|
+
required: Array<string>;
|
|
3744
|
+
[additionalProperties: string]: unknown;
|
|
3745
|
+
};
|
|
3746
|
+
|
|
3747
|
+
/** @internal */
|
|
3748
|
+
export const UpdateToolResponseBodySchema$outboundSchema: z.ZodType<
|
|
3749
|
+
UpdateToolResponseBodySchema$Outbound,
|
|
3750
|
+
z.ZodTypeDef,
|
|
3751
|
+
UpdateToolResponseBodySchema
|
|
3752
|
+
> = z.object({
|
|
3753
|
+
type: z.string(),
|
|
3754
|
+
properties: z.record(z.any()),
|
|
3755
|
+
required: z.array(z.string()),
|
|
3756
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
3757
|
+
}).transform((v) => {
|
|
3758
|
+
return {
|
|
3759
|
+
...v.additionalProperties,
|
|
3760
|
+
...remap$(v, {
|
|
3761
|
+
additionalProperties: null,
|
|
3762
|
+
}),
|
|
3763
|
+
};
|
|
3764
|
+
});
|
|
3765
|
+
|
|
3766
|
+
export function updateToolResponseBodySchemaToJSON(
|
|
3767
|
+
updateToolResponseBodySchema: UpdateToolResponseBodySchema,
|
|
3768
|
+
): string {
|
|
3769
|
+
return JSON.stringify(
|
|
3770
|
+
UpdateToolResponseBodySchema$outboundSchema.parse(
|
|
3771
|
+
updateToolResponseBodySchema,
|
|
3772
|
+
),
|
|
3773
|
+
);
|
|
3774
|
+
}
|
|
3775
|
+
export function updateToolResponseBodySchemaFromJSON(
|
|
3776
|
+
jsonString: string,
|
|
3777
|
+
): SafeParseResult<UpdateToolResponseBodySchema, SDKValidationError> {
|
|
3778
|
+
return safeParse(
|
|
3779
|
+
jsonString,
|
|
3780
|
+
(x) => UpdateToolResponseBodySchema$inboundSchema.parse(JSON.parse(x)),
|
|
3781
|
+
`Failed to parse 'UpdateToolResponseBodySchema' from JSON`,
|
|
3782
|
+
);
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3140
3785
|
/** @internal */
|
|
3141
3786
|
export const UpdateToolResponseBodyJsonSchema$inboundSchema: z.ZodType<
|
|
3142
3787
|
UpdateToolResponseBodyJsonSchema,
|
|
@@ -3144,15 +3789,15 @@ export const UpdateToolResponseBodyJsonSchema$inboundSchema: z.ZodType<
|
|
|
3144
3789
|
unknown
|
|
3145
3790
|
> = z.object({
|
|
3146
3791
|
name: z.string(),
|
|
3147
|
-
description: z.string()
|
|
3148
|
-
schema: z.
|
|
3792
|
+
description: z.string(),
|
|
3793
|
+
schema: z.lazy(() => UpdateToolResponseBodySchema$inboundSchema),
|
|
3149
3794
|
strict: z.boolean().optional(),
|
|
3150
3795
|
});
|
|
3151
3796
|
/** @internal */
|
|
3152
3797
|
export type UpdateToolResponseBodyJsonSchema$Outbound = {
|
|
3153
3798
|
name: string;
|
|
3154
|
-
description
|
|
3155
|
-
schema:
|
|
3799
|
+
description: string;
|
|
3800
|
+
schema: UpdateToolResponseBodySchema$Outbound;
|
|
3156
3801
|
strict?: boolean | undefined;
|
|
3157
3802
|
};
|
|
3158
3803
|
|
|
@@ -3163,8 +3808,8 @@ export const UpdateToolResponseBodyJsonSchema$outboundSchema: z.ZodType<
|
|
|
3163
3808
|
UpdateToolResponseBodyJsonSchema
|
|
3164
3809
|
> = z.object({
|
|
3165
3810
|
name: z.string(),
|
|
3166
|
-
description: z.string()
|
|
3167
|
-
schema: z.
|
|
3811
|
+
description: z.string(),
|
|
3812
|
+
schema: z.lazy(() => UpdateToolResponseBodySchema$outboundSchema),
|
|
3168
3813
|
strict: z.boolean().optional(),
|
|
3169
3814
|
});
|
|
3170
3815
|
|
|
@@ -3193,7 +3838,7 @@ export const UpdateToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
3193
3838
|
z.ZodTypeDef,
|
|
3194
3839
|
unknown
|
|
3195
3840
|
> = z.object({
|
|
3196
|
-
_id: z.string().default("
|
|
3841
|
+
_id: z.string().default("tool_01KA0EAFPDQBYCF6MFYANB2266"),
|
|
3197
3842
|
path: z.string(),
|
|
3198
3843
|
key: z.string(),
|
|
3199
3844
|
display_name: z.string().optional(),
|
|
@@ -3245,7 +3890,7 @@ export const UpdateToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
3245
3890
|
z.ZodTypeDef,
|
|
3246
3891
|
UpdateToolResponseBody2
|
|
3247
3892
|
> = z.object({
|
|
3248
|
-
id: z.string().default("
|
|
3893
|
+
id: z.string().default("tool_01KA0EAFPDQBYCF6MFYANB2266"),
|
|
3249
3894
|
path: z.string(),
|
|
3250
3895
|
key: z.string(),
|
|
3251
3896
|
displayName: z.string().optional(),
|
|
@@ -3308,6 +3953,79 @@ export const UpdateToolResponseBodyType$outboundSchema: z.ZodNativeEnum<
|
|
|
3308
3953
|
typeof UpdateToolResponseBodyType
|
|
3309
3954
|
> = UpdateToolResponseBodyType$inboundSchema;
|
|
3310
3955
|
|
|
3956
|
+
/** @internal */
|
|
3957
|
+
export const UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema:
|
|
3958
|
+
z.ZodNativeEnum<
|
|
3959
|
+
typeof UpdateToolResponseBodyToolsResponse200ApplicationJson1Type
|
|
3960
|
+
> = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson1Type);
|
|
3961
|
+
/** @internal */
|
|
3962
|
+
export const UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$outboundSchema:
|
|
3963
|
+
z.ZodNativeEnum<
|
|
3964
|
+
typeof UpdateToolResponseBodyToolsResponse200ApplicationJson1Type
|
|
3965
|
+
> = UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema;
|
|
3966
|
+
|
|
3967
|
+
/** @internal */
|
|
3968
|
+
export const UpdateToolResponseBodyParameters$inboundSchema: z.ZodType<
|
|
3969
|
+
UpdateToolResponseBodyParameters,
|
|
3970
|
+
z.ZodTypeDef,
|
|
3971
|
+
unknown
|
|
3972
|
+
> = collectExtraKeys$(
|
|
3973
|
+
z.object({
|
|
3974
|
+
type:
|
|
3975
|
+
UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema,
|
|
3976
|
+
properties: z.record(z.any()),
|
|
3977
|
+
required: z.array(z.string()),
|
|
3978
|
+
}).catchall(z.any()),
|
|
3979
|
+
"additionalProperties",
|
|
3980
|
+
true,
|
|
3981
|
+
);
|
|
3982
|
+
/** @internal */
|
|
3983
|
+
export type UpdateToolResponseBodyParameters$Outbound = {
|
|
3984
|
+
type: string;
|
|
3985
|
+
properties: { [k: string]: any };
|
|
3986
|
+
required: Array<string>;
|
|
3987
|
+
[additionalProperties: string]: unknown;
|
|
3988
|
+
};
|
|
3989
|
+
|
|
3990
|
+
/** @internal */
|
|
3991
|
+
export const UpdateToolResponseBodyParameters$outboundSchema: z.ZodType<
|
|
3992
|
+
UpdateToolResponseBodyParameters$Outbound,
|
|
3993
|
+
z.ZodTypeDef,
|
|
3994
|
+
UpdateToolResponseBodyParameters
|
|
3995
|
+
> = z.object({
|
|
3996
|
+
type:
|
|
3997
|
+
UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$outboundSchema,
|
|
3998
|
+
properties: z.record(z.any()),
|
|
3999
|
+
required: z.array(z.string()),
|
|
4000
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
4001
|
+
}).transform((v) => {
|
|
4002
|
+
return {
|
|
4003
|
+
...v.additionalProperties,
|
|
4004
|
+
...remap$(v, {
|
|
4005
|
+
additionalProperties: null,
|
|
4006
|
+
}),
|
|
4007
|
+
};
|
|
4008
|
+
});
|
|
4009
|
+
|
|
4010
|
+
export function updateToolResponseBodyParametersToJSON(
|
|
4011
|
+
updateToolResponseBodyParameters: UpdateToolResponseBodyParameters,
|
|
4012
|
+
): string {
|
|
4013
|
+
return JSON.stringify(
|
|
4014
|
+
UpdateToolResponseBodyParameters$outboundSchema.parse(
|
|
4015
|
+
updateToolResponseBodyParameters,
|
|
4016
|
+
),
|
|
4017
|
+
);
|
|
4018
|
+
}
|
|
4019
|
+
export function updateToolResponseBodyParametersFromJSON(
|
|
4020
|
+
jsonString: string,
|
|
4021
|
+
): SafeParseResult<UpdateToolResponseBodyParameters, SDKValidationError> {
|
|
4022
|
+
return safeParse(
|
|
4023
|
+
jsonString,
|
|
4024
|
+
(x) => UpdateToolResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
|
|
4025
|
+
`Failed to parse 'UpdateToolResponseBodyParameters' from JSON`,
|
|
4026
|
+
);
|
|
4027
|
+
}
|
|
4028
|
+
|
|
3311
4029
|
/** @internal */
|
|
3312
4030
|
export const UpdateToolResponseBodyFunction$inboundSchema: z.ZodType<
|
|
3313
4031
|
UpdateToolResponseBodyFunction,
|
|
@@ -3317,14 +4035,15 @@ export const UpdateToolResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3317
4035
|
name: z.string(),
|
|
3318
4036
|
description: z.string().optional(),
|
|
3319
4037
|
strict: z.boolean().optional(),
|
|
3320
|
-
parameters: z.
|
|
4038
|
+
parameters: z.lazy(() => UpdateToolResponseBodyParameters$inboundSchema)
|
|
4039
|
+
.optional(),
|
|
3321
4040
|
});
|
|
3322
4041
|
/** @internal */
|
|
3323
4042
|
export type UpdateToolResponseBodyFunction$Outbound = {
|
|
3324
4043
|
name: string;
|
|
3325
4044
|
description?: string | undefined;
|
|
3326
4045
|
strict?: boolean | undefined;
|
|
3327
|
-
parameters?:
|
|
4046
|
+
parameters?: UpdateToolResponseBodyParameters$Outbound | undefined;
|
|
3328
4047
|
};
|
|
3329
4048
|
|
|
3330
4049
|
/** @internal */
|
|
@@ -3336,7 +4055,8 @@ export const UpdateToolResponseBodyFunction$outboundSchema: z.ZodType<
|
|
|
3336
4055
|
name: z.string(),
|
|
3337
4056
|
description: z.string().optional(),
|
|
3338
4057
|
strict: z.boolean().optional(),
|
|
3339
|
-
parameters: z.
|
|
4058
|
+
parameters: z.lazy(() => UpdateToolResponseBodyParameters$outboundSchema)
|
|
4059
|
+
.optional(),
|
|
3340
4060
|
});
|
|
3341
4061
|
|
|
3342
4062
|
export function updateToolResponseBodyFunctionToJSON(
|
|
@@ -3364,7 +4084,7 @@ export const UpdateToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
3364
4084
|
z.ZodTypeDef,
|
|
3365
4085
|
unknown
|
|
3366
4086
|
> = z.object({
|
|
3367
|
-
_id: z.string().default("
|
|
4087
|
+
_id: z.string().default("tool_01KA0EAFPB028WX0A7Z28PKB7V"),
|
|
3368
4088
|
path: z.string(),
|
|
3369
4089
|
key: z.string(),
|
|
3370
4090
|
display_name: z.string().optional(),
|
|
@@ -3415,7 +4135,7 @@ export const UpdateToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
3415
4135
|
z.ZodTypeDef,
|
|
3416
4136
|
UpdateToolResponseBody1
|
|
3417
4137
|
> = z.object({
|
|
3418
|
-
id: z.string().default("
|
|
4138
|
+
id: z.string().default("tool_01KA0EAFPB028WX0A7Z28PKB7V"),
|
|
3419
4139
|
path: z.string(),
|
|
3420
4140
|
key: z.string(),
|
|
3421
4141
|
displayName: z.string().optional(),
|