@orq-ai/node 4.0.0-rc.30 → 4.0.0-rc.31
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 +24 -22
- package/bin/mcp-server.js +2116 -596
- package/bin/mcp-server.js.map +50 -47
- package/docs/sdks/tools/README.md +93 -12
- package/examples/package-lock.json +1 -1
- package/funcs/toolsCreate.d.ts +2 -1
- package/funcs/toolsCreate.d.ts.map +1 -1
- package/funcs/toolsCreate.js +6 -2
- package/funcs/toolsCreate.js.map +1 -1
- package/funcs/toolsSync.d.ts +18 -0
- package/funcs/toolsSync.d.ts.map +1 -0
- package/funcs/toolsSync.js +123 -0
- package/funcs/toolsSync.js.map +1 -0
- 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.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/toolsSync.d.ts +8 -0
- package/mcp-server/tools/toolsSync.d.ts.map +1 -0
- package/mcp-server/tools/toolsSync.js +64 -0
- package/mcp-server/tools/toolsSync.js.map +1 -0
- package/models/operations/createagent.d.ts +53 -24
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +51 -25
- package/models/operations/createagent.js.map +1 -1
- 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/createtool.d.ts +373 -144
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +332 -133
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +8 -8
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +13 -12
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/duplicateagent.d.ts +0 -19
- package/models/operations/duplicateagent.d.ts.map +1 -1
- package/models/operations/duplicateagent.js +3 -21
- package/models/operations/duplicateagent.js.map +1 -1
- package/models/operations/duplicatetool.d.ts +189 -49
- package/models/operations/duplicatetool.d.ts.map +1 -1
- package/models/operations/duplicatetool.js +172 -44
- package/models/operations/duplicatetool.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +0 -19
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +3 -20
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.d.ts +194 -54
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +176 -51
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listagents.d.ts +0 -19
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +3 -22
- package/models/operations/listagents.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/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.d.ts +189 -49
- package/models/operations/retrievetool.d.ts.map +1 -1
- package/models/operations/retrievetool.js +172 -44
- package/models/operations/retrievetool.js.map +1 -1
- package/models/operations/runagent.d.ts +279 -23
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +274 -15
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +282 -26
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +268 -22
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/syncmcptool.d.ts +1113 -0
- package/models/operations/syncmcptool.d.ts.map +1 -0
- package/models/operations/syncmcptool.js +1070 -0
- package/models/operations/syncmcptool.js.map +1 -0
- package/models/operations/updateagent.d.ts +53 -43
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +52 -43
- package/models/operations/updateagent.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/updatetool.d.ts +394 -114
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +356 -95
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +1 -1
- package/sdk/tools.d.ts +7 -0
- package/sdk/tools.d.ts.map +1 -1
- package/sdk/tools.js +10 -0
- package/sdk/tools.js.map +1 -1
- package/src/funcs/toolsCreate.ts +11 -2
- package/src/funcs/toolsSync.ts +176 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/toolsSync.ts +37 -0
- package/src/models/operations/createagent.ts +114 -40
- 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/createtool.ts +873 -277
- package/src/models/operations/deploymentgetconfig.ts +29 -20
- package/src/models/operations/duplicateagent.ts +0 -37
- package/src/models/operations/duplicatetool.ts +466 -87
- 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/getagent.ts +0 -38
- package/src/models/operations/getalltools.ts +447 -96
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listagents.ts +0 -37
- 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/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 +466 -85
- package/src/models/operations/runagent.ts +656 -25
- package/src/models/operations/streamrunagent.ts +749 -34
- package/src/models/operations/syncmcptool.ts +2599 -0
- package/src/models/operations/updateagent.ts +121 -77
- 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/updatetool.ts +910 -190
- package/src/sdk/tools.ts +18 -0
|
@@ -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";
|
|
@@ -38,6 +41,39 @@ export type RetrieveToolResponseBodyToolsResponse200ApplicationJSONType =
|
|
|
38
41
|
typeof RetrieveToolResponseBodyToolsResponse200ApplicationJSONType
|
|
39
42
|
>;
|
|
40
43
|
|
|
44
|
+
/**
|
|
45
|
+
* The type must be "object"
|
|
46
|
+
*/
|
|
47
|
+
export const RetrieveToolResponseBodyToolsResponse200ApplicationJson5Type = {
|
|
48
|
+
Object: "object",
|
|
49
|
+
} as const;
|
|
50
|
+
/**
|
|
51
|
+
* The type must be "object"
|
|
52
|
+
*/
|
|
53
|
+
export type RetrieveToolResponseBodyToolsResponse200ApplicationJson5Type =
|
|
54
|
+
ClosedEnum<
|
|
55
|
+
typeof RetrieveToolResponseBodyToolsResponse200ApplicationJson5Type
|
|
56
|
+
>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* 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.
|
|
60
|
+
*/
|
|
61
|
+
export type RetrieveToolResponseBodyToolsParameters = {
|
|
62
|
+
/**
|
|
63
|
+
* The type must be "object"
|
|
64
|
+
*/
|
|
65
|
+
type: RetrieveToolResponseBodyToolsResponse200ApplicationJson5Type;
|
|
66
|
+
/**
|
|
67
|
+
* The properties of the function parameters
|
|
68
|
+
*/
|
|
69
|
+
properties: { [k: string]: any };
|
|
70
|
+
/**
|
|
71
|
+
* Array of required parameter names
|
|
72
|
+
*/
|
|
73
|
+
required: Array<string>;
|
|
74
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
75
|
+
};
|
|
76
|
+
|
|
41
77
|
export const RetrieveToolResponseBodyLanguage = {
|
|
42
78
|
Python: "python",
|
|
43
79
|
} as const;
|
|
@@ -49,7 +85,7 @@ export type RetrieveToolResponseBodyCodeTool = {
|
|
|
49
85
|
/**
|
|
50
86
|
* 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.
|
|
51
87
|
*/
|
|
52
|
-
parameters?:
|
|
88
|
+
parameters?: RetrieveToolResponseBodyToolsParameters | undefined;
|
|
53
89
|
language: RetrieveToolResponseBodyLanguage;
|
|
54
90
|
/**
|
|
55
91
|
* The code to execute.
|
|
@@ -140,15 +176,18 @@ export type RetrieveToolResponseBodyToolsResponse200ApplicationJson4Type =
|
|
|
140
176
|
typeof RetrieveToolResponseBodyToolsResponse200ApplicationJson4Type
|
|
141
177
|
>;
|
|
142
178
|
|
|
143
|
-
|
|
144
|
-
* The original MCP tool input schema for LLM conversion
|
|
145
|
-
*/
|
|
146
|
-
export type RetrieveToolResponseBodyInputSchema = {
|
|
179
|
+
export type RetrieveToolResponseBodyToolsSchema = {
|
|
147
180
|
type: RetrieveToolResponseBodyToolsResponse200ApplicationJson4Type;
|
|
148
181
|
properties?: { [k: string]: any } | undefined;
|
|
149
182
|
required?: Array<string> | undefined;
|
|
150
183
|
};
|
|
151
184
|
|
|
185
|
+
export type RetrieveToolResponseBodyTools = {
|
|
186
|
+
name: string;
|
|
187
|
+
description?: string | undefined;
|
|
188
|
+
schema: RetrieveToolResponseBodyToolsSchema;
|
|
189
|
+
};
|
|
190
|
+
|
|
152
191
|
/**
|
|
153
192
|
* The connection type used by the MCP server
|
|
154
193
|
*/
|
|
@@ -164,26 +203,18 @@ export type RetrieveToolResponseBodyConnectionType = ClosedEnum<
|
|
|
164
203
|
>;
|
|
165
204
|
|
|
166
205
|
export type RetrieveToolResponseBodyMcp = {
|
|
167
|
-
/**
|
|
168
|
-
* The ID of the MCP server this tool belongs to
|
|
169
|
-
*/
|
|
170
|
-
serverId: string;
|
|
171
|
-
/**
|
|
172
|
-
* The original tool name from the MCP server
|
|
173
|
-
*/
|
|
174
|
-
toolName: string;
|
|
175
206
|
/**
|
|
176
207
|
* The MCP server URL (cached for execution)
|
|
177
208
|
*/
|
|
178
209
|
serverUrl: string;
|
|
179
210
|
/**
|
|
180
|
-
* HTTP headers for MCP server requests
|
|
211
|
+
* HTTP headers for MCP server requests with encryption support
|
|
181
212
|
*/
|
|
182
213
|
headers?: { [k: string]: RetrieveToolResponseBodyHeaders } | undefined;
|
|
183
214
|
/**
|
|
184
|
-
*
|
|
215
|
+
* Array of tools available from the MCP server
|
|
185
216
|
*/
|
|
186
|
-
|
|
217
|
+
tools: Array<RetrieveToolResponseBodyTools>;
|
|
187
218
|
/**
|
|
188
219
|
* The connection type used by the MCP server
|
|
189
220
|
*/
|
|
@@ -274,11 +305,15 @@ export type RetrieveToolResponseBodyMethod = ClosedEnum<
|
|
|
274
305
|
typeof RetrieveToolResponseBodyMethod
|
|
275
306
|
>;
|
|
276
307
|
|
|
277
|
-
export type
|
|
308
|
+
export type RetrieveToolHeaders2 = {
|
|
278
309
|
value: string;
|
|
279
310
|
encrypted?: boolean | undefined;
|
|
280
311
|
};
|
|
281
312
|
|
|
313
|
+
export type RetrieveToolResponseBodyToolsHeaders =
|
|
314
|
+
| RetrieveToolHeaders2
|
|
315
|
+
| string;
|
|
316
|
+
|
|
282
317
|
/**
|
|
283
318
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
284
319
|
*/
|
|
@@ -292,9 +327,9 @@ export type RetrieveToolResponseBodyBlueprint = {
|
|
|
292
327
|
*/
|
|
293
328
|
method: RetrieveToolResponseBodyMethod;
|
|
294
329
|
/**
|
|
295
|
-
* The headers to send with the request.
|
|
330
|
+
* The headers to send with the request. Can be a string value or an object with value and encrypted properties.
|
|
296
331
|
*/
|
|
297
|
-
headers?: { [k: string]:
|
|
332
|
+
headers?: { [k: string]: RetrieveToolHeaders2 | string } | undefined;
|
|
298
333
|
/**
|
|
299
334
|
* The body to send with the request.
|
|
300
335
|
*/
|
|
@@ -420,6 +455,25 @@ export type RetrieveToolResponseBodyToolsType = ClosedEnum<
|
|
|
420
455
|
typeof RetrieveToolResponseBodyToolsType
|
|
421
456
|
>;
|
|
422
457
|
|
|
458
|
+
/**
|
|
459
|
+
* 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.
|
|
460
|
+
*/
|
|
461
|
+
export type RetrieveToolResponseBodySchema = {
|
|
462
|
+
/**
|
|
463
|
+
* The JSON Schema type
|
|
464
|
+
*/
|
|
465
|
+
type: string;
|
|
466
|
+
/**
|
|
467
|
+
* The properties of the JSON Schema object
|
|
468
|
+
*/
|
|
469
|
+
properties: { [k: string]: any };
|
|
470
|
+
/**
|
|
471
|
+
* Array of required property names
|
|
472
|
+
*/
|
|
473
|
+
required: Array<string>;
|
|
474
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
475
|
+
};
|
|
476
|
+
|
|
423
477
|
export type RetrieveToolResponseBodyJsonSchema = {
|
|
424
478
|
/**
|
|
425
479
|
* 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.
|
|
@@ -428,11 +482,11 @@ export type RetrieveToolResponseBodyJsonSchema = {
|
|
|
428
482
|
/**
|
|
429
483
|
* A description of what the response format is for. This will be shown to the user.
|
|
430
484
|
*/
|
|
431
|
-
description
|
|
485
|
+
description: string;
|
|
432
486
|
/**
|
|
433
487
|
* 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.
|
|
434
488
|
*/
|
|
435
|
-
schema:
|
|
489
|
+
schema: RetrieveToolResponseBodySchema;
|
|
436
490
|
/**
|
|
437
491
|
* 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.
|
|
438
492
|
*/
|
|
@@ -507,6 +561,39 @@ export type RetrieveToolResponseBodyType = ClosedEnum<
|
|
|
507
561
|
typeof RetrieveToolResponseBodyType
|
|
508
562
|
>;
|
|
509
563
|
|
|
564
|
+
/**
|
|
565
|
+
* The type must be "object"
|
|
566
|
+
*/
|
|
567
|
+
export const RetrieveToolResponseBodyToolsResponse200ApplicationJson1Type = {
|
|
568
|
+
Object: "object",
|
|
569
|
+
} as const;
|
|
570
|
+
/**
|
|
571
|
+
* The type must be "object"
|
|
572
|
+
*/
|
|
573
|
+
export type RetrieveToolResponseBodyToolsResponse200ApplicationJson1Type =
|
|
574
|
+
ClosedEnum<
|
|
575
|
+
typeof RetrieveToolResponseBodyToolsResponse200ApplicationJson1Type
|
|
576
|
+
>;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* 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.
|
|
580
|
+
*/
|
|
581
|
+
export type RetrieveToolResponseBodyParameters = {
|
|
582
|
+
/**
|
|
583
|
+
* The type must be "object"
|
|
584
|
+
*/
|
|
585
|
+
type: RetrieveToolResponseBodyToolsResponse200ApplicationJson1Type;
|
|
586
|
+
/**
|
|
587
|
+
* The properties of the function parameters
|
|
588
|
+
*/
|
|
589
|
+
properties: { [k: string]: any };
|
|
590
|
+
/**
|
|
591
|
+
* Array of required parameter names
|
|
592
|
+
*/
|
|
593
|
+
required: Array<string>;
|
|
594
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
595
|
+
};
|
|
596
|
+
|
|
510
597
|
export type RetrieveToolResponseBodyFunction = {
|
|
511
598
|
/**
|
|
512
599
|
* 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.
|
|
@@ -523,7 +610,7 @@ export type RetrieveToolResponseBodyFunction = {
|
|
|
523
610
|
/**
|
|
524
611
|
* 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.
|
|
525
612
|
*/
|
|
526
|
-
parameters?:
|
|
613
|
+
parameters?: RetrieveToolResponseBodyParameters | undefined;
|
|
527
614
|
};
|
|
528
615
|
|
|
529
616
|
export type RetrieveToolResponseBody1 = {
|
|
@@ -653,6 +740,89 @@ export const RetrieveToolResponseBodyToolsResponse200ApplicationJSONType$outboun
|
|
|
653
740
|
typeof RetrieveToolResponseBodyToolsResponse200ApplicationJSONType
|
|
654
741
|
> = RetrieveToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema;
|
|
655
742
|
|
|
743
|
+
/** @internal */
|
|
744
|
+
export const RetrieveToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema:
|
|
745
|
+
z.ZodNativeEnum<
|
|
746
|
+
typeof RetrieveToolResponseBodyToolsResponse200ApplicationJson5Type
|
|
747
|
+
> = z.nativeEnum(
|
|
748
|
+
RetrieveToolResponseBodyToolsResponse200ApplicationJson5Type,
|
|
749
|
+
);
|
|
750
|
+
/** @internal */
|
|
751
|
+
export const RetrieveToolResponseBodyToolsResponse200ApplicationJson5Type$outboundSchema:
|
|
752
|
+
z.ZodNativeEnum<
|
|
753
|
+
typeof RetrieveToolResponseBodyToolsResponse200ApplicationJson5Type
|
|
754
|
+
> =
|
|
755
|
+
RetrieveToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema;
|
|
756
|
+
|
|
757
|
+
/** @internal */
|
|
758
|
+
export const RetrieveToolResponseBodyToolsParameters$inboundSchema: z.ZodType<
|
|
759
|
+
RetrieveToolResponseBodyToolsParameters,
|
|
760
|
+
z.ZodTypeDef,
|
|
761
|
+
unknown
|
|
762
|
+
> = collectExtraKeys$(
|
|
763
|
+
z.object({
|
|
764
|
+
type:
|
|
765
|
+
RetrieveToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema,
|
|
766
|
+
properties: z.record(z.any()),
|
|
767
|
+
required: z.array(z.string()),
|
|
768
|
+
}).catchall(z.any()),
|
|
769
|
+
"additionalProperties",
|
|
770
|
+
true,
|
|
771
|
+
);
|
|
772
|
+
/** @internal */
|
|
773
|
+
export type RetrieveToolResponseBodyToolsParameters$Outbound = {
|
|
774
|
+
type: string;
|
|
775
|
+
properties: { [k: string]: any };
|
|
776
|
+
required: Array<string>;
|
|
777
|
+
[additionalProperties: string]: unknown;
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
/** @internal */
|
|
781
|
+
export const RetrieveToolResponseBodyToolsParameters$outboundSchema: z.ZodType<
|
|
782
|
+
RetrieveToolResponseBodyToolsParameters$Outbound,
|
|
783
|
+
z.ZodTypeDef,
|
|
784
|
+
RetrieveToolResponseBodyToolsParameters
|
|
785
|
+
> = z.object({
|
|
786
|
+
type:
|
|
787
|
+
RetrieveToolResponseBodyToolsResponse200ApplicationJson5Type$outboundSchema,
|
|
788
|
+
properties: z.record(z.any()),
|
|
789
|
+
required: z.array(z.string()),
|
|
790
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
791
|
+
}).transform((v) => {
|
|
792
|
+
return {
|
|
793
|
+
...v.additionalProperties,
|
|
794
|
+
...remap$(v, {
|
|
795
|
+
additionalProperties: null,
|
|
796
|
+
}),
|
|
797
|
+
};
|
|
798
|
+
});
|
|
799
|
+
|
|
800
|
+
export function retrieveToolResponseBodyToolsParametersToJSON(
|
|
801
|
+
retrieveToolResponseBodyToolsParameters:
|
|
802
|
+
RetrieveToolResponseBodyToolsParameters,
|
|
803
|
+
): string {
|
|
804
|
+
return JSON.stringify(
|
|
805
|
+
RetrieveToolResponseBodyToolsParameters$outboundSchema.parse(
|
|
806
|
+
retrieveToolResponseBodyToolsParameters,
|
|
807
|
+
),
|
|
808
|
+
);
|
|
809
|
+
}
|
|
810
|
+
export function retrieveToolResponseBodyToolsParametersFromJSON(
|
|
811
|
+
jsonString: string,
|
|
812
|
+
): SafeParseResult<
|
|
813
|
+
RetrieveToolResponseBodyToolsParameters,
|
|
814
|
+
SDKValidationError
|
|
815
|
+
> {
|
|
816
|
+
return safeParse(
|
|
817
|
+
jsonString,
|
|
818
|
+
(x) =>
|
|
819
|
+
RetrieveToolResponseBodyToolsParameters$inboundSchema.parse(
|
|
820
|
+
JSON.parse(x),
|
|
821
|
+
),
|
|
822
|
+
`Failed to parse 'RetrieveToolResponseBodyToolsParameters' from JSON`,
|
|
823
|
+
);
|
|
824
|
+
}
|
|
825
|
+
|
|
656
826
|
/** @internal */
|
|
657
827
|
export const RetrieveToolResponseBodyLanguage$inboundSchema: z.ZodNativeEnum<
|
|
658
828
|
typeof RetrieveToolResponseBodyLanguage
|
|
@@ -668,13 +838,15 @@ export const RetrieveToolResponseBodyCodeTool$inboundSchema: z.ZodType<
|
|
|
668
838
|
z.ZodTypeDef,
|
|
669
839
|
unknown
|
|
670
840
|
> = z.object({
|
|
671
|
-
parameters: z.
|
|
841
|
+
parameters: z.lazy(() =>
|
|
842
|
+
RetrieveToolResponseBodyToolsParameters$inboundSchema
|
|
843
|
+
).optional(),
|
|
672
844
|
language: RetrieveToolResponseBodyLanguage$inboundSchema,
|
|
673
845
|
code: z.string(),
|
|
674
846
|
});
|
|
675
847
|
/** @internal */
|
|
676
848
|
export type RetrieveToolResponseBodyCodeTool$Outbound = {
|
|
677
|
-
parameters?:
|
|
849
|
+
parameters?: RetrieveToolResponseBodyToolsParameters$Outbound | undefined;
|
|
678
850
|
language: string;
|
|
679
851
|
code: string;
|
|
680
852
|
};
|
|
@@ -685,7 +857,9 @@ export const RetrieveToolResponseBodyCodeTool$outboundSchema: z.ZodType<
|
|
|
685
857
|
z.ZodTypeDef,
|
|
686
858
|
RetrieveToolResponseBodyCodeTool
|
|
687
859
|
> = z.object({
|
|
688
|
-
parameters: z.
|
|
860
|
+
parameters: z.lazy(() =>
|
|
861
|
+
RetrieveToolResponseBodyToolsParameters$outboundSchema
|
|
862
|
+
).optional(),
|
|
689
863
|
language: RetrieveToolResponseBodyLanguage$outboundSchema,
|
|
690
864
|
code: z.string(),
|
|
691
865
|
});
|
|
@@ -715,7 +889,7 @@ export const RetrieveToolResponseBody5$inboundSchema: z.ZodType<
|
|
|
715
889
|
z.ZodTypeDef,
|
|
716
890
|
unknown
|
|
717
891
|
> = z.object({
|
|
718
|
-
_id: z.string().default("
|
|
892
|
+
_id: z.string().default("tool_01KA0EAFQRJKMVM2E2P5R1CQF5"),
|
|
719
893
|
path: z.string(),
|
|
720
894
|
key: z.string(),
|
|
721
895
|
display_name: z.string().optional(),
|
|
@@ -770,7 +944,7 @@ export const RetrieveToolResponseBody5$outboundSchema: z.ZodType<
|
|
|
770
944
|
z.ZodTypeDef,
|
|
771
945
|
RetrieveToolResponseBody5
|
|
772
946
|
> = z.object({
|
|
773
|
-
id: z.string().default("
|
|
947
|
+
id: z.string().default("tool_01KA0EAFQRJKMVM2E2P5R1CQF5"),
|
|
774
948
|
path: z.string(),
|
|
775
949
|
key: z.string(),
|
|
776
950
|
displayName: z.string().optional(),
|
|
@@ -895,8 +1069,8 @@ export const RetrieveToolResponseBodyToolsResponse200ApplicationJson4Type$outbou
|
|
|
895
1069
|
RetrieveToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema;
|
|
896
1070
|
|
|
897
1071
|
/** @internal */
|
|
898
|
-
export const
|
|
899
|
-
|
|
1072
|
+
export const RetrieveToolResponseBodyToolsSchema$inboundSchema: z.ZodType<
|
|
1073
|
+
RetrieveToolResponseBodyToolsSchema,
|
|
900
1074
|
z.ZodTypeDef,
|
|
901
1075
|
unknown
|
|
902
1076
|
> = z.object({
|
|
@@ -906,17 +1080,17 @@ export const RetrieveToolResponseBodyInputSchema$inboundSchema: z.ZodType<
|
|
|
906
1080
|
required: z.array(z.string()).optional(),
|
|
907
1081
|
});
|
|
908
1082
|
/** @internal */
|
|
909
|
-
export type
|
|
1083
|
+
export type RetrieveToolResponseBodyToolsSchema$Outbound = {
|
|
910
1084
|
type: string;
|
|
911
1085
|
properties?: { [k: string]: any } | undefined;
|
|
912
1086
|
required?: Array<string> | undefined;
|
|
913
1087
|
};
|
|
914
1088
|
|
|
915
1089
|
/** @internal */
|
|
916
|
-
export const
|
|
917
|
-
|
|
1090
|
+
export const RetrieveToolResponseBodyToolsSchema$outboundSchema: z.ZodType<
|
|
1091
|
+
RetrieveToolResponseBodyToolsSchema$Outbound,
|
|
918
1092
|
z.ZodTypeDef,
|
|
919
|
-
|
|
1093
|
+
RetrieveToolResponseBodyToolsSchema
|
|
920
1094
|
> = z.object({
|
|
921
1095
|
type:
|
|
922
1096
|
RetrieveToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema,
|
|
@@ -924,23 +1098,70 @@ export const RetrieveToolResponseBodyInputSchema$outboundSchema: z.ZodType<
|
|
|
924
1098
|
required: z.array(z.string()).optional(),
|
|
925
1099
|
});
|
|
926
1100
|
|
|
927
|
-
export function
|
|
928
|
-
|
|
1101
|
+
export function retrieveToolResponseBodyToolsSchemaToJSON(
|
|
1102
|
+
retrieveToolResponseBodyToolsSchema: RetrieveToolResponseBodyToolsSchema,
|
|
929
1103
|
): string {
|
|
930
1104
|
return JSON.stringify(
|
|
931
|
-
|
|
932
|
-
|
|
1105
|
+
RetrieveToolResponseBodyToolsSchema$outboundSchema.parse(
|
|
1106
|
+
retrieveToolResponseBodyToolsSchema,
|
|
933
1107
|
),
|
|
934
1108
|
);
|
|
935
1109
|
}
|
|
936
|
-
export function
|
|
1110
|
+
export function retrieveToolResponseBodyToolsSchemaFromJSON(
|
|
937
1111
|
jsonString: string,
|
|
938
|
-
): SafeParseResult<
|
|
1112
|
+
): SafeParseResult<RetrieveToolResponseBodyToolsSchema, SDKValidationError> {
|
|
939
1113
|
return safeParse(
|
|
940
1114
|
jsonString,
|
|
941
1115
|
(x) =>
|
|
942
|
-
|
|
943
|
-
`Failed to parse '
|
|
1116
|
+
RetrieveToolResponseBodyToolsSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1117
|
+
`Failed to parse 'RetrieveToolResponseBodyToolsSchema' from JSON`,
|
|
1118
|
+
);
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
/** @internal */
|
|
1122
|
+
export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
1123
|
+
RetrieveToolResponseBodyTools,
|
|
1124
|
+
z.ZodTypeDef,
|
|
1125
|
+
unknown
|
|
1126
|
+
> = z.object({
|
|
1127
|
+
name: z.string(),
|
|
1128
|
+
description: z.string().optional(),
|
|
1129
|
+
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
1130
|
+
});
|
|
1131
|
+
/** @internal */
|
|
1132
|
+
export type RetrieveToolResponseBodyTools$Outbound = {
|
|
1133
|
+
name: string;
|
|
1134
|
+
description?: string | undefined;
|
|
1135
|
+
schema: RetrieveToolResponseBodyToolsSchema$Outbound;
|
|
1136
|
+
};
|
|
1137
|
+
|
|
1138
|
+
/** @internal */
|
|
1139
|
+
export const RetrieveToolResponseBodyTools$outboundSchema: z.ZodType<
|
|
1140
|
+
RetrieveToolResponseBodyTools$Outbound,
|
|
1141
|
+
z.ZodTypeDef,
|
|
1142
|
+
RetrieveToolResponseBodyTools
|
|
1143
|
+
> = z.object({
|
|
1144
|
+
name: z.string(),
|
|
1145
|
+
description: z.string().optional(),
|
|
1146
|
+
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$outboundSchema),
|
|
1147
|
+
});
|
|
1148
|
+
|
|
1149
|
+
export function retrieveToolResponseBodyToolsToJSON(
|
|
1150
|
+
retrieveToolResponseBodyTools: RetrieveToolResponseBodyTools,
|
|
1151
|
+
): string {
|
|
1152
|
+
return JSON.stringify(
|
|
1153
|
+
RetrieveToolResponseBodyTools$outboundSchema.parse(
|
|
1154
|
+
retrieveToolResponseBodyTools,
|
|
1155
|
+
),
|
|
1156
|
+
);
|
|
1157
|
+
}
|
|
1158
|
+
export function retrieveToolResponseBodyToolsFromJSON(
|
|
1159
|
+
jsonString: string,
|
|
1160
|
+
): SafeParseResult<RetrieveToolResponseBodyTools, SDKValidationError> {
|
|
1161
|
+
return safeParse(
|
|
1162
|
+
jsonString,
|
|
1163
|
+
(x) => RetrieveToolResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
|
|
1164
|
+
`Failed to parse 'RetrieveToolResponseBodyTools' from JSON`,
|
|
944
1165
|
);
|
|
945
1166
|
}
|
|
946
1167
|
|
|
@@ -960,31 +1181,24 @@ export const RetrieveToolResponseBodyMcp$inboundSchema: z.ZodType<
|
|
|
960
1181
|
z.ZodTypeDef,
|
|
961
1182
|
unknown
|
|
962
1183
|
> = z.object({
|
|
963
|
-
server_id: z.string(),
|
|
964
|
-
tool_name: z.string(),
|
|
965
1184
|
server_url: z.string(),
|
|
966
1185
|
headers: z.record(z.lazy(() => RetrieveToolResponseBodyHeaders$inboundSchema))
|
|
967
1186
|
.optional(),
|
|
968
|
-
|
|
1187
|
+
tools: z.array(z.lazy(() => RetrieveToolResponseBodyTools$inboundSchema)),
|
|
969
1188
|
connection_type: RetrieveToolResponseBodyConnectionType$inboundSchema,
|
|
970
1189
|
}).transform((v) => {
|
|
971
1190
|
return remap$(v, {
|
|
972
|
-
"server_id": "serverId",
|
|
973
|
-
"tool_name": "toolName",
|
|
974
1191
|
"server_url": "serverUrl",
|
|
975
|
-
"input_schema": "inputSchema",
|
|
976
1192
|
"connection_type": "connectionType",
|
|
977
1193
|
});
|
|
978
1194
|
});
|
|
979
1195
|
/** @internal */
|
|
980
1196
|
export type RetrieveToolResponseBodyMcp$Outbound = {
|
|
981
|
-
server_id: string;
|
|
982
|
-
tool_name: string;
|
|
983
1197
|
server_url: string;
|
|
984
1198
|
headers?:
|
|
985
1199
|
| { [k: string]: RetrieveToolResponseBodyHeaders$Outbound }
|
|
986
1200
|
| undefined;
|
|
987
|
-
|
|
1201
|
+
tools: Array<RetrieveToolResponseBodyTools$Outbound>;
|
|
988
1202
|
connection_type: string;
|
|
989
1203
|
};
|
|
990
1204
|
|
|
@@ -994,20 +1208,15 @@ export const RetrieveToolResponseBodyMcp$outboundSchema: z.ZodType<
|
|
|
994
1208
|
z.ZodTypeDef,
|
|
995
1209
|
RetrieveToolResponseBodyMcp
|
|
996
1210
|
> = z.object({
|
|
997
|
-
serverId: z.string(),
|
|
998
|
-
toolName: z.string(),
|
|
999
1211
|
serverUrl: z.string(),
|
|
1000
1212
|
headers: z.record(
|
|
1001
1213
|
z.lazy(() => RetrieveToolResponseBodyHeaders$outboundSchema),
|
|
1002
1214
|
).optional(),
|
|
1003
|
-
|
|
1215
|
+
tools: z.array(z.lazy(() => RetrieveToolResponseBodyTools$outboundSchema)),
|
|
1004
1216
|
connectionType: RetrieveToolResponseBodyConnectionType$outboundSchema,
|
|
1005
1217
|
}).transform((v) => {
|
|
1006
1218
|
return remap$(v, {
|
|
1007
|
-
serverId: "server_id",
|
|
1008
|
-
toolName: "tool_name",
|
|
1009
1219
|
serverUrl: "server_url",
|
|
1010
|
-
inputSchema: "input_schema",
|
|
1011
1220
|
connectionType: "connection_type",
|
|
1012
1221
|
});
|
|
1013
1222
|
});
|
|
@@ -1037,7 +1246,7 @@ export const RetrieveToolResponseBody4$inboundSchema: z.ZodType<
|
|
|
1037
1246
|
z.ZodTypeDef,
|
|
1038
1247
|
unknown
|
|
1039
1248
|
> = z.object({
|
|
1040
|
-
_id: z.string().default("
|
|
1249
|
+
_id: z.string().default("tool_01KA0EAFQQRFBHF4776J75QPSK"),
|
|
1041
1250
|
path: z.string(),
|
|
1042
1251
|
key: z.string(),
|
|
1043
1252
|
display_name: z.string().optional(),
|
|
@@ -1090,7 +1299,7 @@ export const RetrieveToolResponseBody4$outboundSchema: z.ZodType<
|
|
|
1090
1299
|
z.ZodTypeDef,
|
|
1091
1300
|
RetrieveToolResponseBody4
|
|
1092
1301
|
> = z.object({
|
|
1093
|
-
id: z.string().default("
|
|
1302
|
+
id: z.string().default("tool_01KA0EAFQQRFBHF4776J75QPSK"),
|
|
1094
1303
|
path: z.string(),
|
|
1095
1304
|
key: z.string(),
|
|
1096
1305
|
displayName: z.string().optional(),
|
|
@@ -1164,8 +1373,8 @@ export const RetrieveToolResponseBodyMethod$outboundSchema: z.ZodNativeEnum<
|
|
|
1164
1373
|
> = RetrieveToolResponseBodyMethod$inboundSchema;
|
|
1165
1374
|
|
|
1166
1375
|
/** @internal */
|
|
1167
|
-
export const
|
|
1168
|
-
|
|
1376
|
+
export const RetrieveToolHeaders2$inboundSchema: z.ZodType<
|
|
1377
|
+
RetrieveToolHeaders2,
|
|
1169
1378
|
z.ZodTypeDef,
|
|
1170
1379
|
unknown
|
|
1171
1380
|
> = z.object({
|
|
@@ -1173,21 +1382,56 @@ export const RetrieveToolResponseBodyToolsHeaders$inboundSchema: z.ZodType<
|
|
|
1173
1382
|
encrypted: z.boolean().default(false),
|
|
1174
1383
|
});
|
|
1175
1384
|
/** @internal */
|
|
1176
|
-
export type
|
|
1385
|
+
export type RetrieveToolHeaders2$Outbound = {
|
|
1177
1386
|
value: string;
|
|
1178
1387
|
encrypted: boolean;
|
|
1179
1388
|
};
|
|
1180
1389
|
|
|
1181
1390
|
/** @internal */
|
|
1182
|
-
export const
|
|
1183
|
-
|
|
1391
|
+
export const RetrieveToolHeaders2$outboundSchema: z.ZodType<
|
|
1392
|
+
RetrieveToolHeaders2$Outbound,
|
|
1184
1393
|
z.ZodTypeDef,
|
|
1185
|
-
|
|
1394
|
+
RetrieveToolHeaders2
|
|
1186
1395
|
> = z.object({
|
|
1187
1396
|
value: z.string(),
|
|
1188
1397
|
encrypted: z.boolean().default(false),
|
|
1189
1398
|
});
|
|
1190
1399
|
|
|
1400
|
+
export function retrieveToolHeaders2ToJSON(
|
|
1401
|
+
retrieveToolHeaders2: RetrieveToolHeaders2,
|
|
1402
|
+
): string {
|
|
1403
|
+
return JSON.stringify(
|
|
1404
|
+
RetrieveToolHeaders2$outboundSchema.parse(retrieveToolHeaders2),
|
|
1405
|
+
);
|
|
1406
|
+
}
|
|
1407
|
+
export function retrieveToolHeaders2FromJSON(
|
|
1408
|
+
jsonString: string,
|
|
1409
|
+
): SafeParseResult<RetrieveToolHeaders2, SDKValidationError> {
|
|
1410
|
+
return safeParse(
|
|
1411
|
+
jsonString,
|
|
1412
|
+
(x) => RetrieveToolHeaders2$inboundSchema.parse(JSON.parse(x)),
|
|
1413
|
+
`Failed to parse 'RetrieveToolHeaders2' from JSON`,
|
|
1414
|
+
);
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/** @internal */
|
|
1418
|
+
export const RetrieveToolResponseBodyToolsHeaders$inboundSchema: z.ZodType<
|
|
1419
|
+
RetrieveToolResponseBodyToolsHeaders,
|
|
1420
|
+
z.ZodTypeDef,
|
|
1421
|
+
unknown
|
|
1422
|
+
> = z.union([z.lazy(() => RetrieveToolHeaders2$inboundSchema), z.string()]);
|
|
1423
|
+
/** @internal */
|
|
1424
|
+
export type RetrieveToolResponseBodyToolsHeaders$Outbound =
|
|
1425
|
+
| RetrieveToolHeaders2$Outbound
|
|
1426
|
+
| string;
|
|
1427
|
+
|
|
1428
|
+
/** @internal */
|
|
1429
|
+
export const RetrieveToolResponseBodyToolsHeaders$outboundSchema: z.ZodType<
|
|
1430
|
+
RetrieveToolResponseBodyToolsHeaders$Outbound,
|
|
1431
|
+
z.ZodTypeDef,
|
|
1432
|
+
RetrieveToolResponseBodyToolsHeaders
|
|
1433
|
+
> = z.union([z.lazy(() => RetrieveToolHeaders2$outboundSchema), z.string()]);
|
|
1434
|
+
|
|
1191
1435
|
export function retrieveToolResponseBodyToolsHeadersToJSON(
|
|
1192
1436
|
retrieveToolResponseBodyToolsHeaders: RetrieveToolResponseBodyToolsHeaders,
|
|
1193
1437
|
): string {
|
|
@@ -1217,7 +1461,7 @@ export const RetrieveToolResponseBodyBlueprint$inboundSchema: z.ZodType<
|
|
|
1217
1461
|
url: z.string(),
|
|
1218
1462
|
method: RetrieveToolResponseBodyMethod$inboundSchema,
|
|
1219
1463
|
headers: z.record(
|
|
1220
|
-
z.lazy(() =>
|
|
1464
|
+
z.union([z.lazy(() => RetrieveToolHeaders2$inboundSchema), z.string()]),
|
|
1221
1465
|
).optional(),
|
|
1222
1466
|
body: z.record(z.any()).optional(),
|
|
1223
1467
|
});
|
|
@@ -1225,9 +1469,7 @@ export const RetrieveToolResponseBodyBlueprint$inboundSchema: z.ZodType<
|
|
|
1225
1469
|
export type RetrieveToolResponseBodyBlueprint$Outbound = {
|
|
1226
1470
|
url: string;
|
|
1227
1471
|
method: string;
|
|
1228
|
-
headers?:
|
|
1229
|
-
| { [k: string]: RetrieveToolResponseBodyToolsHeaders$Outbound }
|
|
1230
|
-
| undefined;
|
|
1472
|
+
headers?: { [k: string]: RetrieveToolHeaders2$Outbound | string } | undefined;
|
|
1231
1473
|
body?: { [k: string]: any } | undefined;
|
|
1232
1474
|
};
|
|
1233
1475
|
|
|
@@ -1240,7 +1482,7 @@ export const RetrieveToolResponseBodyBlueprint$outboundSchema: z.ZodType<
|
|
|
1240
1482
|
url: z.string(),
|
|
1241
1483
|
method: RetrieveToolResponseBodyMethod$outboundSchema,
|
|
1242
1484
|
headers: z.record(
|
|
1243
|
-
z.lazy(() =>
|
|
1485
|
+
z.union([z.lazy(() => RetrieveToolHeaders2$outboundSchema), z.string()]),
|
|
1244
1486
|
).optional(),
|
|
1245
1487
|
body: z.record(z.any()).optional(),
|
|
1246
1488
|
});
|
|
@@ -1435,7 +1677,7 @@ export const RetrieveToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
1435
1677
|
z.ZodTypeDef,
|
|
1436
1678
|
unknown
|
|
1437
1679
|
> = z.object({
|
|
1438
|
-
_id: z.string().default("
|
|
1680
|
+
_id: z.string().default("tool_01KA0EAFQN1DHVSX00510BQE1Y"),
|
|
1439
1681
|
path: z.string(),
|
|
1440
1682
|
key: z.string(),
|
|
1441
1683
|
display_name: z.string().optional(),
|
|
@@ -1488,7 +1730,7 @@ export const RetrieveToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
1488
1730
|
z.ZodTypeDef,
|
|
1489
1731
|
RetrieveToolResponseBody3
|
|
1490
1732
|
> = z.object({
|
|
1491
|
-
id: z.string().default("
|
|
1733
|
+
id: z.string().default("tool_01KA0EAFQN1DHVSX00510BQE1Y"),
|
|
1492
1734
|
path: z.string(),
|
|
1493
1735
|
key: z.string(),
|
|
1494
1736
|
displayName: z.string().optional(),
|
|
@@ -1552,6 +1794,66 @@ export const RetrieveToolResponseBodyToolsType$outboundSchema: z.ZodNativeEnum<
|
|
|
1552
1794
|
typeof RetrieveToolResponseBodyToolsType
|
|
1553
1795
|
> = RetrieveToolResponseBodyToolsType$inboundSchema;
|
|
1554
1796
|
|
|
1797
|
+
/** @internal */
|
|
1798
|
+
export const RetrieveToolResponseBodySchema$inboundSchema: z.ZodType<
|
|
1799
|
+
RetrieveToolResponseBodySchema,
|
|
1800
|
+
z.ZodTypeDef,
|
|
1801
|
+
unknown
|
|
1802
|
+
> = collectExtraKeys$(
|
|
1803
|
+
z.object({
|
|
1804
|
+
type: z.string(),
|
|
1805
|
+
properties: z.record(z.any()),
|
|
1806
|
+
required: z.array(z.string()),
|
|
1807
|
+
}).catchall(z.any()),
|
|
1808
|
+
"additionalProperties",
|
|
1809
|
+
true,
|
|
1810
|
+
);
|
|
1811
|
+
/** @internal */
|
|
1812
|
+
export type RetrieveToolResponseBodySchema$Outbound = {
|
|
1813
|
+
type: string;
|
|
1814
|
+
properties: { [k: string]: any };
|
|
1815
|
+
required: Array<string>;
|
|
1816
|
+
[additionalProperties: string]: unknown;
|
|
1817
|
+
};
|
|
1818
|
+
|
|
1819
|
+
/** @internal */
|
|
1820
|
+
export const RetrieveToolResponseBodySchema$outboundSchema: z.ZodType<
|
|
1821
|
+
RetrieveToolResponseBodySchema$Outbound,
|
|
1822
|
+
z.ZodTypeDef,
|
|
1823
|
+
RetrieveToolResponseBodySchema
|
|
1824
|
+
> = z.object({
|
|
1825
|
+
type: z.string(),
|
|
1826
|
+
properties: z.record(z.any()),
|
|
1827
|
+
required: z.array(z.string()),
|
|
1828
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
1829
|
+
}).transform((v) => {
|
|
1830
|
+
return {
|
|
1831
|
+
...v.additionalProperties,
|
|
1832
|
+
...remap$(v, {
|
|
1833
|
+
additionalProperties: null,
|
|
1834
|
+
}),
|
|
1835
|
+
};
|
|
1836
|
+
});
|
|
1837
|
+
|
|
1838
|
+
export function retrieveToolResponseBodySchemaToJSON(
|
|
1839
|
+
retrieveToolResponseBodySchema: RetrieveToolResponseBodySchema,
|
|
1840
|
+
): string {
|
|
1841
|
+
return JSON.stringify(
|
|
1842
|
+
RetrieveToolResponseBodySchema$outboundSchema.parse(
|
|
1843
|
+
retrieveToolResponseBodySchema,
|
|
1844
|
+
),
|
|
1845
|
+
);
|
|
1846
|
+
}
|
|
1847
|
+
export function retrieveToolResponseBodySchemaFromJSON(
|
|
1848
|
+
jsonString: string,
|
|
1849
|
+
): SafeParseResult<RetrieveToolResponseBodySchema, SDKValidationError> {
|
|
1850
|
+
return safeParse(
|
|
1851
|
+
jsonString,
|
|
1852
|
+
(x) => RetrieveToolResponseBodySchema$inboundSchema.parse(JSON.parse(x)),
|
|
1853
|
+
`Failed to parse 'RetrieveToolResponseBodySchema' from JSON`,
|
|
1854
|
+
);
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1555
1857
|
/** @internal */
|
|
1556
1858
|
export const RetrieveToolResponseBodyJsonSchema$inboundSchema: z.ZodType<
|
|
1557
1859
|
RetrieveToolResponseBodyJsonSchema,
|
|
@@ -1559,15 +1861,15 @@ export const RetrieveToolResponseBodyJsonSchema$inboundSchema: z.ZodType<
|
|
|
1559
1861
|
unknown
|
|
1560
1862
|
> = z.object({
|
|
1561
1863
|
name: z.string(),
|
|
1562
|
-
description: z.string()
|
|
1563
|
-
schema: z.
|
|
1864
|
+
description: z.string(),
|
|
1865
|
+
schema: z.lazy(() => RetrieveToolResponseBodySchema$inboundSchema),
|
|
1564
1866
|
strict: z.boolean().optional(),
|
|
1565
1867
|
});
|
|
1566
1868
|
/** @internal */
|
|
1567
1869
|
export type RetrieveToolResponseBodyJsonSchema$Outbound = {
|
|
1568
1870
|
name: string;
|
|
1569
|
-
description
|
|
1570
|
-
schema:
|
|
1871
|
+
description: string;
|
|
1872
|
+
schema: RetrieveToolResponseBodySchema$Outbound;
|
|
1571
1873
|
strict?: boolean | undefined;
|
|
1572
1874
|
};
|
|
1573
1875
|
|
|
@@ -1578,8 +1880,8 @@ export const RetrieveToolResponseBodyJsonSchema$outboundSchema: z.ZodType<
|
|
|
1578
1880
|
RetrieveToolResponseBodyJsonSchema
|
|
1579
1881
|
> = z.object({
|
|
1580
1882
|
name: z.string(),
|
|
1581
|
-
description: z.string()
|
|
1582
|
-
schema: z.
|
|
1883
|
+
description: z.string(),
|
|
1884
|
+
schema: z.lazy(() => RetrieveToolResponseBodySchema$outboundSchema),
|
|
1583
1885
|
strict: z.boolean().optional(),
|
|
1584
1886
|
});
|
|
1585
1887
|
|
|
@@ -1609,7 +1911,7 @@ export const RetrieveToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
1609
1911
|
z.ZodTypeDef,
|
|
1610
1912
|
unknown
|
|
1611
1913
|
> = z.object({
|
|
1612
|
-
_id: z.string().default("
|
|
1914
|
+
_id: z.string().default("tool_01KA0EAFQMXCW92V1E89J6M3W2"),
|
|
1613
1915
|
path: z.string(),
|
|
1614
1916
|
key: z.string(),
|
|
1615
1917
|
display_name: z.string().optional(),
|
|
@@ -1661,7 +1963,7 @@ export const RetrieveToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
1661
1963
|
z.ZodTypeDef,
|
|
1662
1964
|
RetrieveToolResponseBody2
|
|
1663
1965
|
> = z.object({
|
|
1664
|
-
id: z.string().default("
|
|
1966
|
+
id: z.string().default("tool_01KA0EAFQMXCW92V1E89J6M3W2"),
|
|
1665
1967
|
path: z.string(),
|
|
1666
1968
|
key: z.string(),
|
|
1667
1969
|
displayName: z.string().optional(),
|
|
@@ -1724,6 +2026,83 @@ export const RetrieveToolResponseBodyType$outboundSchema: z.ZodNativeEnum<
|
|
|
1724
2026
|
typeof RetrieveToolResponseBodyType
|
|
1725
2027
|
> = RetrieveToolResponseBodyType$inboundSchema;
|
|
1726
2028
|
|
|
2029
|
+
/** @internal */
|
|
2030
|
+
export const RetrieveToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema:
|
|
2031
|
+
z.ZodNativeEnum<
|
|
2032
|
+
typeof RetrieveToolResponseBodyToolsResponse200ApplicationJson1Type
|
|
2033
|
+
> = z.nativeEnum(
|
|
2034
|
+
RetrieveToolResponseBodyToolsResponse200ApplicationJson1Type,
|
|
2035
|
+
);
|
|
2036
|
+
/** @internal */
|
|
2037
|
+
export const RetrieveToolResponseBodyToolsResponse200ApplicationJson1Type$outboundSchema:
|
|
2038
|
+
z.ZodNativeEnum<
|
|
2039
|
+
typeof RetrieveToolResponseBodyToolsResponse200ApplicationJson1Type
|
|
2040
|
+
> =
|
|
2041
|
+
RetrieveToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema;
|
|
2042
|
+
|
|
2043
|
+
/** @internal */
|
|
2044
|
+
export const RetrieveToolResponseBodyParameters$inboundSchema: z.ZodType<
|
|
2045
|
+
RetrieveToolResponseBodyParameters,
|
|
2046
|
+
z.ZodTypeDef,
|
|
2047
|
+
unknown
|
|
2048
|
+
> = collectExtraKeys$(
|
|
2049
|
+
z.object({
|
|
2050
|
+
type:
|
|
2051
|
+
RetrieveToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema,
|
|
2052
|
+
properties: z.record(z.any()),
|
|
2053
|
+
required: z.array(z.string()),
|
|
2054
|
+
}).catchall(z.any()),
|
|
2055
|
+
"additionalProperties",
|
|
2056
|
+
true,
|
|
2057
|
+
);
|
|
2058
|
+
/** @internal */
|
|
2059
|
+
export type RetrieveToolResponseBodyParameters$Outbound = {
|
|
2060
|
+
type: string;
|
|
2061
|
+
properties: { [k: string]: any };
|
|
2062
|
+
required: Array<string>;
|
|
2063
|
+
[additionalProperties: string]: unknown;
|
|
2064
|
+
};
|
|
2065
|
+
|
|
2066
|
+
/** @internal */
|
|
2067
|
+
export const RetrieveToolResponseBodyParameters$outboundSchema: z.ZodType<
|
|
2068
|
+
RetrieveToolResponseBodyParameters$Outbound,
|
|
2069
|
+
z.ZodTypeDef,
|
|
2070
|
+
RetrieveToolResponseBodyParameters
|
|
2071
|
+
> = z.object({
|
|
2072
|
+
type:
|
|
2073
|
+
RetrieveToolResponseBodyToolsResponse200ApplicationJson1Type$outboundSchema,
|
|
2074
|
+
properties: z.record(z.any()),
|
|
2075
|
+
required: z.array(z.string()),
|
|
2076
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
2077
|
+
}).transform((v) => {
|
|
2078
|
+
return {
|
|
2079
|
+
...v.additionalProperties,
|
|
2080
|
+
...remap$(v, {
|
|
2081
|
+
additionalProperties: null,
|
|
2082
|
+
}),
|
|
2083
|
+
};
|
|
2084
|
+
});
|
|
2085
|
+
|
|
2086
|
+
export function retrieveToolResponseBodyParametersToJSON(
|
|
2087
|
+
retrieveToolResponseBodyParameters: RetrieveToolResponseBodyParameters,
|
|
2088
|
+
): string {
|
|
2089
|
+
return JSON.stringify(
|
|
2090
|
+
RetrieveToolResponseBodyParameters$outboundSchema.parse(
|
|
2091
|
+
retrieveToolResponseBodyParameters,
|
|
2092
|
+
),
|
|
2093
|
+
);
|
|
2094
|
+
}
|
|
2095
|
+
export function retrieveToolResponseBodyParametersFromJSON(
|
|
2096
|
+
jsonString: string,
|
|
2097
|
+
): SafeParseResult<RetrieveToolResponseBodyParameters, SDKValidationError> {
|
|
2098
|
+
return safeParse(
|
|
2099
|
+
jsonString,
|
|
2100
|
+
(x) =>
|
|
2101
|
+
RetrieveToolResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2102
|
+
`Failed to parse 'RetrieveToolResponseBodyParameters' from JSON`,
|
|
2103
|
+
);
|
|
2104
|
+
}
|
|
2105
|
+
|
|
1727
2106
|
/** @internal */
|
|
1728
2107
|
export const RetrieveToolResponseBodyFunction$inboundSchema: z.ZodType<
|
|
1729
2108
|
RetrieveToolResponseBodyFunction,
|
|
@@ -1733,14 +2112,15 @@ export const RetrieveToolResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
1733
2112
|
name: z.string(),
|
|
1734
2113
|
description: z.string().optional(),
|
|
1735
2114
|
strict: z.boolean().optional(),
|
|
1736
|
-
parameters: z.
|
|
2115
|
+
parameters: z.lazy(() => RetrieveToolResponseBodyParameters$inboundSchema)
|
|
2116
|
+
.optional(),
|
|
1737
2117
|
});
|
|
1738
2118
|
/** @internal */
|
|
1739
2119
|
export type RetrieveToolResponseBodyFunction$Outbound = {
|
|
1740
2120
|
name: string;
|
|
1741
2121
|
description?: string | undefined;
|
|
1742
2122
|
strict?: boolean | undefined;
|
|
1743
|
-
parameters?:
|
|
2123
|
+
parameters?: RetrieveToolResponseBodyParameters$Outbound | undefined;
|
|
1744
2124
|
};
|
|
1745
2125
|
|
|
1746
2126
|
/** @internal */
|
|
@@ -1752,7 +2132,8 @@ export const RetrieveToolResponseBodyFunction$outboundSchema: z.ZodType<
|
|
|
1752
2132
|
name: z.string(),
|
|
1753
2133
|
description: z.string().optional(),
|
|
1754
2134
|
strict: z.boolean().optional(),
|
|
1755
|
-
parameters: z.
|
|
2135
|
+
parameters: z.lazy(() => RetrieveToolResponseBodyParameters$outboundSchema)
|
|
2136
|
+
.optional(),
|
|
1756
2137
|
});
|
|
1757
2138
|
|
|
1758
2139
|
export function retrieveToolResponseBodyFunctionToJSON(
|
|
@@ -1780,7 +2161,7 @@ export const RetrieveToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
1780
2161
|
z.ZodTypeDef,
|
|
1781
2162
|
unknown
|
|
1782
2163
|
> = z.object({
|
|
1783
|
-
_id: z.string().default("
|
|
2164
|
+
_id: z.string().default("tool_01KA0EAFQJZDXPD49SAKHW2Z8E"),
|
|
1784
2165
|
path: z.string(),
|
|
1785
2166
|
key: z.string(),
|
|
1786
2167
|
display_name: z.string().optional(),
|
|
@@ -1831,7 +2212,7 @@ export const RetrieveToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
1831
2212
|
z.ZodTypeDef,
|
|
1832
2213
|
RetrieveToolResponseBody1
|
|
1833
2214
|
> = z.object({
|
|
1834
|
-
id: z.string().default("
|
|
2215
|
+
id: z.string().default("tool_01KA0EAFQJZDXPD49SAKHW2Z8E"),
|
|
1835
2216
|
path: z.string(),
|
|
1836
2217
|
key: z.string(),
|
|
1837
2218
|
displayName: z.string().optional(),
|