@orq-ai/node 3.14.44 → 3.14.45
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/bin/mcp-server.js +209 -209
- package/bin/mcp-server.js.map +35 -35
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +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.js +10 -10
- 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/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- 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.js +10 -10
- 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.js +10 -10
- package/package.json +1 -1
- package/packages/orq-rc/README.md +3 -4
- package/packages/orq-rc/docs/sdks/agents/README.md +195 -157
- package/packages/orq-rc/docs/sdks/chunking/README.md +2 -0
- package/packages/orq-rc/docs/sdks/memorystores/README.md +3 -4
- 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/agentsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +4 -4
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +4 -4
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +8 -8
- package/packages/orq-rc/src/funcs/agentsRun.ts +4 -4
- package/packages/orq-rc/src/funcs/agentsStream.ts +1 -0
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -0
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +2 -11
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +3 -3
- package/packages/orq-rc/src/models/errors/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/createagent.ts +31 -13
- 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 +368 -294
- package/packages/orq-rc/src/models/operations/createknowledge.ts +33 -47
- package/packages/orq-rc/src/models/operations/createtool.ts +198 -161
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +17 -24
- 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 +9 -0
- package/packages/orq-rc/src/models/operations/getagenttask.ts +1873 -428
- package/packages/orq-rc/src/models/operations/getalltools.ts +284 -231
- 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/invokeagent.ts +319 -299
- package/packages/orq-rc/src/models/operations/listagents.ts +9 -0
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +2029 -540
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listchunks.ts +14 -14
- 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 +15 -22
- package/packages/orq-rc/src/models/operations/parse.ts +16 -0
- 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 +168 -132
- package/packages/orq-rc/src/models/operations/runagent.ts +264 -220
- package/packages/orq-rc/src/models/operations/streamagent.ts +7635 -414
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +10745 -3582
- package/packages/orq-rc/src/models/operations/updateagent.ts +56 -31
- 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 +138 -104
- package/packages/orq-rc/src/sdk/agents.ts +37 -37
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- 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 +10 -10
- 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/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- 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 +10 -10
- 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 +10 -10
- package/packages/orq-rc/src/models/errors/getagenttask.ts +0 -67
|
@@ -15,7 +15,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
15
15
|
/**
|
|
16
16
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
17
17
|
*/
|
|
18
|
-
export const
|
|
18
|
+
export const CreateToolRequestBodyToolsRequestStatus = {
|
|
19
19
|
Live: "live",
|
|
20
20
|
Draft: "draft",
|
|
21
21
|
Pending: "pending",
|
|
@@ -24,8 +24,8 @@ export const CreateToolRequestBodyToolsRequest5Status = {
|
|
|
24
24
|
/**
|
|
25
25
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
26
26
|
*/
|
|
27
|
-
export type
|
|
28
|
-
typeof
|
|
27
|
+
export type CreateToolRequestBodyToolsRequestStatus = ClosedEnum<
|
|
28
|
+
typeof CreateToolRequestBodyToolsRequestStatus
|
|
29
29
|
>;
|
|
30
30
|
|
|
31
31
|
export const CreateToolRequestBodyToolsRequest5Type = {
|
|
@@ -113,7 +113,7 @@ export type RequestBodyCodeExecutionTool = {
|
|
|
113
113
|
/**
|
|
114
114
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
115
115
|
*/
|
|
116
|
-
status?:
|
|
116
|
+
status?: CreateToolRequestBodyToolsRequestStatus | undefined;
|
|
117
117
|
type: CreateToolRequestBodyToolsRequest5Type;
|
|
118
118
|
codeTool: RequestBodyCodeTool;
|
|
119
119
|
};
|
|
@@ -121,7 +121,7 @@ export type RequestBodyCodeExecutionTool = {
|
|
|
121
121
|
/**
|
|
122
122
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
123
123
|
*/
|
|
124
|
-
export const
|
|
124
|
+
export const CreateToolRequestBodyToolsStatus = {
|
|
125
125
|
Live: "live",
|
|
126
126
|
Draft: "draft",
|
|
127
127
|
Pending: "pending",
|
|
@@ -130,8 +130,8 @@ export const CreateToolRequestBodyToolsRequestStatus = {
|
|
|
130
130
|
/**
|
|
131
131
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
132
132
|
*/
|
|
133
|
-
export type
|
|
134
|
-
typeof
|
|
133
|
+
export type CreateToolRequestBodyToolsStatus = ClosedEnum<
|
|
134
|
+
typeof CreateToolRequestBodyToolsStatus
|
|
135
135
|
>;
|
|
136
136
|
|
|
137
137
|
export const CreateToolRequestBodyToolsRequest4Type = {
|
|
@@ -204,7 +204,7 @@ export type RequestBodyMCPTool = {
|
|
|
204
204
|
/**
|
|
205
205
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
206
206
|
*/
|
|
207
|
-
status?:
|
|
207
|
+
status?: CreateToolRequestBodyToolsStatus | undefined;
|
|
208
208
|
type: CreateToolRequestBodyToolsRequest4Type;
|
|
209
209
|
mcp: RequestBodyMcp;
|
|
210
210
|
};
|
|
@@ -212,7 +212,7 @@ export type RequestBodyMCPTool = {
|
|
|
212
212
|
/**
|
|
213
213
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
214
214
|
*/
|
|
215
|
-
export const
|
|
215
|
+
export const CreateToolRequestBodyStatus = {
|
|
216
216
|
Live: "live",
|
|
217
217
|
Draft: "draft",
|
|
218
218
|
Pending: "pending",
|
|
@@ -221,8 +221,8 @@ export const CreateToolRequestBodyToolsStatus = {
|
|
|
221
221
|
/**
|
|
222
222
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
223
223
|
*/
|
|
224
|
-
export type
|
|
225
|
-
typeof
|
|
224
|
+
export type CreateToolRequestBodyStatus = ClosedEnum<
|
|
225
|
+
typeof CreateToolRequestBodyStatus
|
|
226
226
|
>;
|
|
227
227
|
|
|
228
228
|
export const CreateToolRequestBodyToolsRequestType = {
|
|
@@ -356,7 +356,7 @@ export type RequestBodyHTTPTool = {
|
|
|
356
356
|
/**
|
|
357
357
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
358
358
|
*/
|
|
359
|
-
status?:
|
|
359
|
+
status?: CreateToolRequestBodyStatus | undefined;
|
|
360
360
|
type: CreateToolRequestBodyToolsRequestType;
|
|
361
361
|
http: CreateToolRequestBodyHttp;
|
|
362
362
|
};
|
|
@@ -364,7 +364,7 @@ export type RequestBodyHTTPTool = {
|
|
|
364
364
|
/**
|
|
365
365
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
366
366
|
*/
|
|
367
|
-
export const
|
|
367
|
+
export const RequestBodyStatus = {
|
|
368
368
|
Live: "live",
|
|
369
369
|
Draft: "draft",
|
|
370
370
|
Pending: "pending",
|
|
@@ -373,9 +373,7 @@ export const CreateToolRequestBodyStatus = {
|
|
|
373
373
|
/**
|
|
374
374
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
375
375
|
*/
|
|
376
|
-
export type
|
|
377
|
-
typeof CreateToolRequestBodyStatus
|
|
378
|
-
>;
|
|
376
|
+
export type RequestBodyStatus = ClosedEnum<typeof RequestBodyStatus>;
|
|
379
377
|
|
|
380
378
|
export const CreateToolRequestBodyToolsType = {
|
|
381
379
|
JsonSchema: "json_schema",
|
|
@@ -451,7 +449,7 @@ export type JSONSchemaTool = {
|
|
|
451
449
|
/**
|
|
452
450
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
453
451
|
*/
|
|
454
|
-
status?:
|
|
452
|
+
status?: RequestBodyStatus | undefined;
|
|
455
453
|
type: CreateToolRequestBodyToolsType;
|
|
456
454
|
jsonSchema: RequestBodyJsonSchema;
|
|
457
455
|
};
|
|
@@ -459,7 +457,7 @@ export type JSONSchemaTool = {
|
|
|
459
457
|
/**
|
|
460
458
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
461
459
|
*/
|
|
462
|
-
export const
|
|
460
|
+
export const CreateToolRequestBodyToolsRequest1Status = {
|
|
463
461
|
Live: "live",
|
|
464
462
|
Draft: "draft",
|
|
465
463
|
Pending: "pending",
|
|
@@ -468,7 +466,9 @@ export const RequestBodyStatus = {
|
|
|
468
466
|
/**
|
|
469
467
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
470
468
|
*/
|
|
471
|
-
export type
|
|
469
|
+
export type CreateToolRequestBodyToolsRequest1Status = ClosedEnum<
|
|
470
|
+
typeof CreateToolRequestBodyToolsRequest1Status
|
|
471
|
+
>;
|
|
472
472
|
|
|
473
473
|
export const CreateToolRequestBodyType = {
|
|
474
474
|
Function: "function",
|
|
@@ -557,7 +557,7 @@ export type RequestBodyFunctionTool = {
|
|
|
557
557
|
/**
|
|
558
558
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
559
559
|
*/
|
|
560
|
-
status?:
|
|
560
|
+
status?: CreateToolRequestBodyToolsRequest1Status | undefined;
|
|
561
561
|
type: CreateToolRequestBodyType;
|
|
562
562
|
function: RequestBodyFunction;
|
|
563
563
|
};
|
|
@@ -642,7 +642,10 @@ export type ResponseBodyCodeTool = {
|
|
|
642
642
|
code: string;
|
|
643
643
|
};
|
|
644
644
|
|
|
645
|
-
|
|
645
|
+
/**
|
|
646
|
+
* Executes code snippets in a sandboxed environment, currently supporting Python.
|
|
647
|
+
*/
|
|
648
|
+
export type ResponseBodyCodeExecutionTool = {
|
|
646
649
|
id?: string | undefined;
|
|
647
650
|
/**
|
|
648
651
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -767,7 +770,10 @@ export type ResponseBodyMcp = {
|
|
|
767
770
|
connectionType: ResponseBodyConnectionType;
|
|
768
771
|
};
|
|
769
772
|
|
|
770
|
-
|
|
773
|
+
/**
|
|
774
|
+
* A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
|
|
775
|
+
*/
|
|
776
|
+
export type ResponseBodyMCPTool = {
|
|
771
777
|
id?: string | undefined;
|
|
772
778
|
/**
|
|
773
779
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -929,7 +935,10 @@ export type CreateToolResponseBodyHttp = {
|
|
|
929
935
|
arguments?: { [k: string]: ResponseBodyArguments } | undefined;
|
|
930
936
|
};
|
|
931
937
|
|
|
932
|
-
|
|
938
|
+
/**
|
|
939
|
+
* Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
|
|
940
|
+
*/
|
|
941
|
+
export type ResponseBodyHTTPTool = {
|
|
933
942
|
id?: string | undefined;
|
|
934
943
|
/**
|
|
935
944
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -1035,7 +1044,10 @@ export type ResponseBodyJsonSchema = {
|
|
|
1035
1044
|
strict?: boolean | undefined;
|
|
1036
1045
|
};
|
|
1037
1046
|
|
|
1038
|
-
|
|
1047
|
+
/**
|
|
1048
|
+
* A tool that enforces structured output format using JSON Schema for consistent response formatting.
|
|
1049
|
+
*/
|
|
1050
|
+
export type ResponseBodyJSONSchemaTool = {
|
|
1039
1051
|
id?: string | undefined;
|
|
1040
1052
|
/**
|
|
1041
1053
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -1151,7 +1163,10 @@ export type CreateToolResponseBodyFunction = {
|
|
|
1151
1163
|
parameters?: ResponseBodyParameters | undefined;
|
|
1152
1164
|
};
|
|
1153
1165
|
|
|
1154
|
-
|
|
1166
|
+
/**
|
|
1167
|
+
* A custom function tool that allows the model to call predefined functions with structured parameters.
|
|
1168
|
+
*/
|
|
1169
|
+
export type ResponseBodyFunctionTool = {
|
|
1155
1170
|
id?: string | undefined;
|
|
1156
1171
|
/**
|
|
1157
1172
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -1200,20 +1215,20 @@ export type ResponseBody1 = {
|
|
|
1200
1215
|
* Successfully created the tool.
|
|
1201
1216
|
*/
|
|
1202
1217
|
export type CreateToolResponseBody =
|
|
1203
|
-
|
|
|
1204
|
-
|
|
|
1205
|
-
|
|
|
1206
|
-
|
|
|
1207
|
-
|
|
|
1218
|
+
| ResponseBodyFunctionTool
|
|
1219
|
+
| ResponseBodyJSONSchemaTool
|
|
1220
|
+
| ResponseBodyHTTPTool
|
|
1221
|
+
| ResponseBodyMCPTool
|
|
1222
|
+
| ResponseBodyCodeExecutionTool;
|
|
1208
1223
|
|
|
1209
1224
|
/** @internal */
|
|
1210
|
-
export const
|
|
1211
|
-
z.ZodNativeEnum<typeof
|
|
1212
|
-
.nativeEnum(
|
|
1225
|
+
export const CreateToolRequestBodyToolsRequestStatus$inboundSchema:
|
|
1226
|
+
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequestStatus> = z
|
|
1227
|
+
.nativeEnum(CreateToolRequestBodyToolsRequestStatus);
|
|
1213
1228
|
/** @internal */
|
|
1214
|
-
export const
|
|
1215
|
-
z.ZodNativeEnum<typeof
|
|
1216
|
-
|
|
1229
|
+
export const CreateToolRequestBodyToolsRequestStatus$outboundSchema:
|
|
1230
|
+
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequestStatus> =
|
|
1231
|
+
CreateToolRequestBodyToolsRequestStatus$inboundSchema;
|
|
1217
1232
|
|
|
1218
1233
|
/** @internal */
|
|
1219
1234
|
export const CreateToolRequestBodyToolsRequest5Type$inboundSchema:
|
|
@@ -1360,9 +1375,7 @@ export const RequestBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1360
1375
|
key: z.string(),
|
|
1361
1376
|
display_name: z.string().optional(),
|
|
1362
1377
|
description: z.string(),
|
|
1363
|
-
status:
|
|
1364
|
-
"live",
|
|
1365
|
-
),
|
|
1378
|
+
status: CreateToolRequestBodyToolsRequestStatus$inboundSchema.default("live"),
|
|
1366
1379
|
type: CreateToolRequestBodyToolsRequest5Type$inboundSchema,
|
|
1367
1380
|
code_tool: z.lazy(() => RequestBodyCodeTool$inboundSchema),
|
|
1368
1381
|
}).transform((v) => {
|
|
@@ -1392,7 +1405,7 @@ export const RequestBodyCodeExecutionTool$outboundSchema: z.ZodType<
|
|
|
1392
1405
|
key: z.string(),
|
|
1393
1406
|
displayName: z.string().optional(),
|
|
1394
1407
|
description: z.string(),
|
|
1395
|
-
status:
|
|
1408
|
+
status: CreateToolRequestBodyToolsRequestStatus$outboundSchema.default(
|
|
1396
1409
|
"live",
|
|
1397
1410
|
),
|
|
1398
1411
|
type: CreateToolRequestBodyToolsRequest5Type$outboundSchema,
|
|
@@ -1424,13 +1437,13 @@ export function requestBodyCodeExecutionToolFromJSON(
|
|
|
1424
1437
|
}
|
|
1425
1438
|
|
|
1426
1439
|
/** @internal */
|
|
1427
|
-
export const
|
|
1428
|
-
|
|
1429
|
-
|
|
1440
|
+
export const CreateToolRequestBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
|
|
1441
|
+
typeof CreateToolRequestBodyToolsStatus
|
|
1442
|
+
> = z.nativeEnum(CreateToolRequestBodyToolsStatus);
|
|
1430
1443
|
/** @internal */
|
|
1431
|
-
export const
|
|
1432
|
-
|
|
1433
|
-
|
|
1444
|
+
export const CreateToolRequestBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
|
|
1445
|
+
typeof CreateToolRequestBodyToolsStatus
|
|
1446
|
+
> = CreateToolRequestBodyToolsStatus$inboundSchema;
|
|
1434
1447
|
|
|
1435
1448
|
/** @internal */
|
|
1436
1449
|
export const CreateToolRequestBodyToolsRequest4Type$inboundSchema:
|
|
@@ -1554,7 +1567,7 @@ export const RequestBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
1554
1567
|
key: z.string(),
|
|
1555
1568
|
display_name: z.string().optional(),
|
|
1556
1569
|
description: z.string(),
|
|
1557
|
-
status:
|
|
1570
|
+
status: CreateToolRequestBodyToolsStatus$inboundSchema.default("live"),
|
|
1558
1571
|
type: CreateToolRequestBodyToolsRequest4Type$inboundSchema,
|
|
1559
1572
|
mcp: z.lazy(() => RequestBodyMcp$inboundSchema),
|
|
1560
1573
|
}).transform((v) => {
|
|
@@ -1583,9 +1596,7 @@ export const RequestBodyMCPTool$outboundSchema: z.ZodType<
|
|
|
1583
1596
|
key: z.string(),
|
|
1584
1597
|
displayName: z.string().optional(),
|
|
1585
1598
|
description: z.string(),
|
|
1586
|
-
status:
|
|
1587
|
-
"live",
|
|
1588
|
-
),
|
|
1599
|
+
status: CreateToolRequestBodyToolsStatus$outboundSchema.default("live"),
|
|
1589
1600
|
type: CreateToolRequestBodyToolsRequest4Type$outboundSchema,
|
|
1590
1601
|
mcp: z.lazy(() => RequestBodyMcp$outboundSchema),
|
|
1591
1602
|
}).transform((v) => {
|
|
@@ -1612,13 +1623,13 @@ export function requestBodyMCPToolFromJSON(
|
|
|
1612
1623
|
}
|
|
1613
1624
|
|
|
1614
1625
|
/** @internal */
|
|
1615
|
-
export const
|
|
1616
|
-
typeof
|
|
1617
|
-
> = z.nativeEnum(
|
|
1626
|
+
export const CreateToolRequestBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
1627
|
+
typeof CreateToolRequestBodyStatus
|
|
1628
|
+
> = z.nativeEnum(CreateToolRequestBodyStatus);
|
|
1618
1629
|
/** @internal */
|
|
1619
|
-
export const
|
|
1620
|
-
typeof
|
|
1621
|
-
> =
|
|
1630
|
+
export const CreateToolRequestBodyStatus$outboundSchema: z.ZodNativeEnum<
|
|
1631
|
+
typeof CreateToolRequestBodyStatus
|
|
1632
|
+
> = CreateToolRequestBodyStatus$inboundSchema;
|
|
1622
1633
|
|
|
1623
1634
|
/** @internal */
|
|
1624
1635
|
export const CreateToolRequestBodyToolsRequestType$inboundSchema:
|
|
@@ -1925,7 +1936,7 @@ export const RequestBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1925
1936
|
key: z.string(),
|
|
1926
1937
|
display_name: z.string().optional(),
|
|
1927
1938
|
description: z.string(),
|
|
1928
|
-
status:
|
|
1939
|
+
status: CreateToolRequestBodyStatus$inboundSchema.default("live"),
|
|
1929
1940
|
type: CreateToolRequestBodyToolsRequestType$inboundSchema,
|
|
1930
1941
|
http: z.lazy(() => CreateToolRequestBodyHttp$inboundSchema),
|
|
1931
1942
|
}).transform((v) => {
|
|
@@ -1954,7 +1965,7 @@ export const RequestBodyHTTPTool$outboundSchema: z.ZodType<
|
|
|
1954
1965
|
key: z.string(),
|
|
1955
1966
|
displayName: z.string().optional(),
|
|
1956
1967
|
description: z.string(),
|
|
1957
|
-
status:
|
|
1968
|
+
status: CreateToolRequestBodyStatus$outboundSchema.default("live"),
|
|
1958
1969
|
type: CreateToolRequestBodyToolsRequestType$outboundSchema,
|
|
1959
1970
|
http: z.lazy(() => CreateToolRequestBodyHttp$outboundSchema),
|
|
1960
1971
|
}).transform((v) => {
|
|
@@ -1981,13 +1992,13 @@ export function requestBodyHTTPToolFromJSON(
|
|
|
1981
1992
|
}
|
|
1982
1993
|
|
|
1983
1994
|
/** @internal */
|
|
1984
|
-
export const
|
|
1985
|
-
typeof
|
|
1986
|
-
> = z.nativeEnum(
|
|
1995
|
+
export const RequestBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
1996
|
+
typeof RequestBodyStatus
|
|
1997
|
+
> = z.nativeEnum(RequestBodyStatus);
|
|
1987
1998
|
/** @internal */
|
|
1988
|
-
export const
|
|
1989
|
-
typeof
|
|
1990
|
-
> =
|
|
1999
|
+
export const RequestBodyStatus$outboundSchema: z.ZodNativeEnum<
|
|
2000
|
+
typeof RequestBodyStatus
|
|
2001
|
+
> = RequestBodyStatus$inboundSchema;
|
|
1991
2002
|
|
|
1992
2003
|
/** @internal */
|
|
1993
2004
|
export const CreateToolRequestBodyToolsType$inboundSchema: z.ZodNativeEnum<
|
|
@@ -2114,7 +2125,7 @@ export const JSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2114
2125
|
key: z.string(),
|
|
2115
2126
|
display_name: z.string().optional(),
|
|
2116
2127
|
description: z.string(),
|
|
2117
|
-
status:
|
|
2128
|
+
status: RequestBodyStatus$inboundSchema.default("live"),
|
|
2118
2129
|
type: CreateToolRequestBodyToolsType$inboundSchema,
|
|
2119
2130
|
json_schema: z.lazy(() => RequestBodyJsonSchema$inboundSchema),
|
|
2120
2131
|
}).transform((v) => {
|
|
@@ -2144,7 +2155,7 @@ export const JSONSchemaTool$outboundSchema: z.ZodType<
|
|
|
2144
2155
|
key: z.string(),
|
|
2145
2156
|
displayName: z.string().optional(),
|
|
2146
2157
|
description: z.string(),
|
|
2147
|
-
status:
|
|
2158
|
+
status: RequestBodyStatus$outboundSchema.default("live"),
|
|
2148
2159
|
type: CreateToolRequestBodyToolsType$outboundSchema,
|
|
2149
2160
|
jsonSchema: z.lazy(() => RequestBodyJsonSchema$outboundSchema),
|
|
2150
2161
|
}).transform((v) => {
|
|
@@ -2168,13 +2179,13 @@ export function jsonSchemaToolFromJSON(
|
|
|
2168
2179
|
}
|
|
2169
2180
|
|
|
2170
2181
|
/** @internal */
|
|
2171
|
-
export const
|
|
2172
|
-
typeof
|
|
2173
|
-
|
|
2182
|
+
export const CreateToolRequestBodyToolsRequest1Status$inboundSchema:
|
|
2183
|
+
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest1Status> = z
|
|
2184
|
+
.nativeEnum(CreateToolRequestBodyToolsRequest1Status);
|
|
2174
2185
|
/** @internal */
|
|
2175
|
-
export const
|
|
2176
|
-
typeof
|
|
2177
|
-
|
|
2186
|
+
export const CreateToolRequestBodyToolsRequest1Status$outboundSchema:
|
|
2187
|
+
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest1Status> =
|
|
2188
|
+
CreateToolRequestBodyToolsRequest1Status$inboundSchema;
|
|
2178
2189
|
|
|
2179
2190
|
/** @internal */
|
|
2180
2191
|
export const CreateToolRequestBodyType$inboundSchema: z.ZodNativeEnum<
|
|
@@ -2311,7 +2322,9 @@ export const RequestBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2311
2322
|
key: z.string(),
|
|
2312
2323
|
display_name: z.string().optional(),
|
|
2313
2324
|
description: z.string(),
|
|
2314
|
-
status:
|
|
2325
|
+
status: CreateToolRequestBodyToolsRequest1Status$inboundSchema.default(
|
|
2326
|
+
"live",
|
|
2327
|
+
),
|
|
2315
2328
|
type: CreateToolRequestBodyType$inboundSchema,
|
|
2316
2329
|
function: z.lazy(() => RequestBodyFunction$inboundSchema),
|
|
2317
2330
|
}).transform((v) => {
|
|
@@ -2340,7 +2353,9 @@ export const RequestBodyFunctionTool$outboundSchema: z.ZodType<
|
|
|
2340
2353
|
key: z.string(),
|
|
2341
2354
|
displayName: z.string().optional(),
|
|
2342
2355
|
description: z.string(),
|
|
2343
|
-
status:
|
|
2356
|
+
status: CreateToolRequestBodyToolsRequest1Status$outboundSchema.default(
|
|
2357
|
+
"live",
|
|
2358
|
+
),
|
|
2344
2359
|
type: CreateToolRequestBodyType$outboundSchema,
|
|
2345
2360
|
function: z.lazy(() => RequestBodyFunction$outboundSchema),
|
|
2346
2361
|
}).transform((v) => {
|
|
@@ -2566,12 +2581,12 @@ export function responseBodyCodeToolFromJSON(
|
|
|
2566
2581
|
}
|
|
2567
2582
|
|
|
2568
2583
|
/** @internal */
|
|
2569
|
-
export const
|
|
2570
|
-
|
|
2584
|
+
export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
2585
|
+
ResponseBodyCodeExecutionTool,
|
|
2571
2586
|
z.ZodTypeDef,
|
|
2572
2587
|
unknown
|
|
2573
2588
|
> = z.object({
|
|
2574
|
-
_id: z.string().default("
|
|
2589
|
+
_id: z.string().default("tool_01KAJP98B320MWEY5WB8PJVTGG"),
|
|
2575
2590
|
path: z.string(),
|
|
2576
2591
|
key: z.string(),
|
|
2577
2592
|
display_name: z.string().optional(),
|
|
@@ -2601,7 +2616,7 @@ export const ResponseBody5$inboundSchema: z.ZodType<
|
|
|
2601
2616
|
});
|
|
2602
2617
|
});
|
|
2603
2618
|
/** @internal */
|
|
2604
|
-
export type
|
|
2619
|
+
export type ResponseBodyCodeExecutionTool$Outbound = {
|
|
2605
2620
|
_id: string;
|
|
2606
2621
|
path: string;
|
|
2607
2622
|
key: string;
|
|
@@ -2620,12 +2635,12 @@ export type ResponseBody5$Outbound = {
|
|
|
2620
2635
|
};
|
|
2621
2636
|
|
|
2622
2637
|
/** @internal */
|
|
2623
|
-
export const
|
|
2624
|
-
|
|
2638
|
+
export const ResponseBodyCodeExecutionTool$outboundSchema: z.ZodType<
|
|
2639
|
+
ResponseBodyCodeExecutionTool$Outbound,
|
|
2625
2640
|
z.ZodTypeDef,
|
|
2626
|
-
|
|
2641
|
+
ResponseBodyCodeExecutionTool
|
|
2627
2642
|
> = z.object({
|
|
2628
|
-
id: z.string().default("
|
|
2643
|
+
id: z.string().default("tool_01KAJP98B320MWEY5WB8PJVTGG"),
|
|
2629
2644
|
path: z.string(),
|
|
2630
2645
|
key: z.string(),
|
|
2631
2646
|
displayName: z.string().optional(),
|
|
@@ -2656,16 +2671,22 @@ export const ResponseBody5$outboundSchema: z.ZodType<
|
|
|
2656
2671
|
});
|
|
2657
2672
|
});
|
|
2658
2673
|
|
|
2659
|
-
export function
|
|
2660
|
-
|
|
2674
|
+
export function responseBodyCodeExecutionToolToJSON(
|
|
2675
|
+
responseBodyCodeExecutionTool: ResponseBodyCodeExecutionTool,
|
|
2676
|
+
): string {
|
|
2677
|
+
return JSON.stringify(
|
|
2678
|
+
ResponseBodyCodeExecutionTool$outboundSchema.parse(
|
|
2679
|
+
responseBodyCodeExecutionTool,
|
|
2680
|
+
),
|
|
2681
|
+
);
|
|
2661
2682
|
}
|
|
2662
|
-
export function
|
|
2683
|
+
export function responseBodyCodeExecutionToolFromJSON(
|
|
2663
2684
|
jsonString: string,
|
|
2664
|
-
): SafeParseResult<
|
|
2685
|
+
): SafeParseResult<ResponseBodyCodeExecutionTool, SDKValidationError> {
|
|
2665
2686
|
return safeParse(
|
|
2666
2687
|
jsonString,
|
|
2667
|
-
(x) =>
|
|
2668
|
-
`Failed to parse '
|
|
2688
|
+
(x) => ResponseBodyCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
|
|
2689
|
+
`Failed to parse 'ResponseBodyCodeExecutionTool' from JSON`,
|
|
2669
2690
|
);
|
|
2670
2691
|
}
|
|
2671
2692
|
|
|
@@ -2795,7 +2816,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2795
2816
|
z.ZodTypeDef,
|
|
2796
2817
|
unknown
|
|
2797
2818
|
> = z.object({
|
|
2798
|
-
id: z.string().default("
|
|
2819
|
+
id: z.string().default("01KAJP98B29RA5XACQF57SE0NK"),
|
|
2799
2820
|
name: z.string(),
|
|
2800
2821
|
description: z.string().optional(),
|
|
2801
2822
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2814,7 +2835,7 @@ export const ResponseBodyTools$outboundSchema: z.ZodType<
|
|
|
2814
2835
|
z.ZodTypeDef,
|
|
2815
2836
|
ResponseBodyTools
|
|
2816
2837
|
> = z.object({
|
|
2817
|
-
id: z.string().default("
|
|
2838
|
+
id: z.string().default("01KAJP98B29RA5XACQF57SE0NK"),
|
|
2818
2839
|
name: z.string(),
|
|
2819
2840
|
description: z.string().optional(),
|
|
2820
2841
|
schema: z.lazy(() => CreateToolResponseBodySchema$outboundSchema),
|
|
@@ -2904,12 +2925,12 @@ export function responseBodyMcpFromJSON(
|
|
|
2904
2925
|
}
|
|
2905
2926
|
|
|
2906
2927
|
/** @internal */
|
|
2907
|
-
export const
|
|
2908
|
-
|
|
2928
|
+
export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
2929
|
+
ResponseBodyMCPTool,
|
|
2909
2930
|
z.ZodTypeDef,
|
|
2910
2931
|
unknown
|
|
2911
2932
|
> = z.object({
|
|
2912
|
-
_id: z.string().default("
|
|
2933
|
+
_id: z.string().default("tool_01KAJP98B0PXFHR9NNZV59ED6K"),
|
|
2913
2934
|
path: z.string(),
|
|
2914
2935
|
key: z.string(),
|
|
2915
2936
|
display_name: z.string().optional(),
|
|
@@ -2938,7 +2959,7 @@ export const ResponseBody4$inboundSchema: z.ZodType<
|
|
|
2938
2959
|
});
|
|
2939
2960
|
});
|
|
2940
2961
|
/** @internal */
|
|
2941
|
-
export type
|
|
2962
|
+
export type ResponseBodyMCPTool$Outbound = {
|
|
2942
2963
|
_id: string;
|
|
2943
2964
|
path: string;
|
|
2944
2965
|
key: string;
|
|
@@ -2957,12 +2978,12 @@ export type ResponseBody4$Outbound = {
|
|
|
2957
2978
|
};
|
|
2958
2979
|
|
|
2959
2980
|
/** @internal */
|
|
2960
|
-
export const
|
|
2961
|
-
|
|
2981
|
+
export const ResponseBodyMCPTool$outboundSchema: z.ZodType<
|
|
2982
|
+
ResponseBodyMCPTool$Outbound,
|
|
2962
2983
|
z.ZodTypeDef,
|
|
2963
|
-
|
|
2984
|
+
ResponseBodyMCPTool
|
|
2964
2985
|
> = z.object({
|
|
2965
|
-
id: z.string().default("
|
|
2986
|
+
id: z.string().default("tool_01KAJP98B0PXFHR9NNZV59ED6K"),
|
|
2966
2987
|
path: z.string(),
|
|
2967
2988
|
key: z.string(),
|
|
2968
2989
|
displayName: z.string().optional(),
|
|
@@ -2991,16 +3012,20 @@ export const ResponseBody4$outboundSchema: z.ZodType<
|
|
|
2991
3012
|
});
|
|
2992
3013
|
});
|
|
2993
3014
|
|
|
2994
|
-
export function
|
|
2995
|
-
|
|
3015
|
+
export function responseBodyMCPToolToJSON(
|
|
3016
|
+
responseBodyMCPTool: ResponseBodyMCPTool,
|
|
3017
|
+
): string {
|
|
3018
|
+
return JSON.stringify(
|
|
3019
|
+
ResponseBodyMCPTool$outboundSchema.parse(responseBodyMCPTool),
|
|
3020
|
+
);
|
|
2996
3021
|
}
|
|
2997
|
-
export function
|
|
3022
|
+
export function responseBodyMCPToolFromJSON(
|
|
2998
3023
|
jsonString: string,
|
|
2999
|
-
): SafeParseResult<
|
|
3024
|
+
): SafeParseResult<ResponseBodyMCPTool, SDKValidationError> {
|
|
3000
3025
|
return safeParse(
|
|
3001
3026
|
jsonString,
|
|
3002
|
-
(x) =>
|
|
3003
|
-
`Failed to parse '
|
|
3027
|
+
(x) => ResponseBodyMCPTool$inboundSchema.parse(JSON.parse(x)),
|
|
3028
|
+
`Failed to parse 'ResponseBodyMCPTool' from JSON`,
|
|
3004
3029
|
);
|
|
3005
3030
|
}
|
|
3006
3031
|
|
|
@@ -3313,12 +3338,12 @@ export function createToolResponseBodyHttpFromJSON(
|
|
|
3313
3338
|
}
|
|
3314
3339
|
|
|
3315
3340
|
/** @internal */
|
|
3316
|
-
export const
|
|
3317
|
-
|
|
3341
|
+
export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
3342
|
+
ResponseBodyHTTPTool,
|
|
3318
3343
|
z.ZodTypeDef,
|
|
3319
3344
|
unknown
|
|
3320
3345
|
> = z.object({
|
|
3321
|
-
_id: z.string().default("
|
|
3346
|
+
_id: z.string().default("tool_01KAJP98AW253PYWTP35KN9KBJ"),
|
|
3322
3347
|
path: z.string(),
|
|
3323
3348
|
key: z.string(),
|
|
3324
3349
|
display_name: z.string().optional(),
|
|
@@ -3345,7 +3370,7 @@ export const ResponseBody3$inboundSchema: z.ZodType<
|
|
|
3345
3370
|
});
|
|
3346
3371
|
});
|
|
3347
3372
|
/** @internal */
|
|
3348
|
-
export type
|
|
3373
|
+
export type ResponseBodyHTTPTool$Outbound = {
|
|
3349
3374
|
_id: string;
|
|
3350
3375
|
path: string;
|
|
3351
3376
|
key: string;
|
|
@@ -3364,12 +3389,12 @@ export type ResponseBody3$Outbound = {
|
|
|
3364
3389
|
};
|
|
3365
3390
|
|
|
3366
3391
|
/** @internal */
|
|
3367
|
-
export const
|
|
3368
|
-
|
|
3392
|
+
export const ResponseBodyHTTPTool$outboundSchema: z.ZodType<
|
|
3393
|
+
ResponseBodyHTTPTool$Outbound,
|
|
3369
3394
|
z.ZodTypeDef,
|
|
3370
|
-
|
|
3395
|
+
ResponseBodyHTTPTool
|
|
3371
3396
|
> = z.object({
|
|
3372
|
-
id: z.string().default("
|
|
3397
|
+
id: z.string().default("tool_01KAJP98AW253PYWTP35KN9KBJ"),
|
|
3373
3398
|
path: z.string(),
|
|
3374
3399
|
key: z.string(),
|
|
3375
3400
|
displayName: z.string().optional(),
|
|
@@ -3396,16 +3421,20 @@ export const ResponseBody3$outboundSchema: z.ZodType<
|
|
|
3396
3421
|
});
|
|
3397
3422
|
});
|
|
3398
3423
|
|
|
3399
|
-
export function
|
|
3400
|
-
|
|
3424
|
+
export function responseBodyHTTPToolToJSON(
|
|
3425
|
+
responseBodyHTTPTool: ResponseBodyHTTPTool,
|
|
3426
|
+
): string {
|
|
3427
|
+
return JSON.stringify(
|
|
3428
|
+
ResponseBodyHTTPTool$outboundSchema.parse(responseBodyHTTPTool),
|
|
3429
|
+
);
|
|
3401
3430
|
}
|
|
3402
|
-
export function
|
|
3431
|
+
export function responseBodyHTTPToolFromJSON(
|
|
3403
3432
|
jsonString: string,
|
|
3404
|
-
): SafeParseResult<
|
|
3433
|
+
): SafeParseResult<ResponseBodyHTTPTool, SDKValidationError> {
|
|
3405
3434
|
return safeParse(
|
|
3406
3435
|
jsonString,
|
|
3407
|
-
(x) =>
|
|
3408
|
-
`Failed to parse '
|
|
3436
|
+
(x) => ResponseBodyHTTPTool$inboundSchema.parse(JSON.parse(x)),
|
|
3437
|
+
`Failed to parse 'ResponseBodyHTTPTool' from JSON`,
|
|
3409
3438
|
);
|
|
3410
3439
|
}
|
|
3411
3440
|
|
|
@@ -3534,12 +3563,12 @@ export function responseBodyJsonSchemaFromJSON(
|
|
|
3534
3563
|
}
|
|
3535
3564
|
|
|
3536
3565
|
/** @internal */
|
|
3537
|
-
export const
|
|
3538
|
-
|
|
3566
|
+
export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
3567
|
+
ResponseBodyJSONSchemaTool,
|
|
3539
3568
|
z.ZodTypeDef,
|
|
3540
3569
|
unknown
|
|
3541
3570
|
> = z.object({
|
|
3542
|
-
_id: z.string().default("
|
|
3571
|
+
_id: z.string().default("tool_01KAJP98AT9A7EYXPN0G7THJCF"),
|
|
3543
3572
|
path: z.string(),
|
|
3544
3573
|
key: z.string(),
|
|
3545
3574
|
display_name: z.string().optional(),
|
|
@@ -3567,7 +3596,7 @@ export const ResponseBody2$inboundSchema: z.ZodType<
|
|
|
3567
3596
|
});
|
|
3568
3597
|
});
|
|
3569
3598
|
/** @internal */
|
|
3570
|
-
export type
|
|
3599
|
+
export type ResponseBodyJSONSchemaTool$Outbound = {
|
|
3571
3600
|
_id: string;
|
|
3572
3601
|
path: string;
|
|
3573
3602
|
key: string;
|
|
@@ -3586,12 +3615,12 @@ export type ResponseBody2$Outbound = {
|
|
|
3586
3615
|
};
|
|
3587
3616
|
|
|
3588
3617
|
/** @internal */
|
|
3589
|
-
export const
|
|
3590
|
-
|
|
3618
|
+
export const ResponseBodyJSONSchemaTool$outboundSchema: z.ZodType<
|
|
3619
|
+
ResponseBodyJSONSchemaTool$Outbound,
|
|
3591
3620
|
z.ZodTypeDef,
|
|
3592
|
-
|
|
3621
|
+
ResponseBodyJSONSchemaTool
|
|
3593
3622
|
> = z.object({
|
|
3594
|
-
id: z.string().default("
|
|
3623
|
+
id: z.string().default("tool_01KAJP98AT9A7EYXPN0G7THJCF"),
|
|
3595
3624
|
path: z.string(),
|
|
3596
3625
|
key: z.string(),
|
|
3597
3626
|
displayName: z.string().optional(),
|
|
@@ -3619,16 +3648,20 @@ export const ResponseBody2$outboundSchema: z.ZodType<
|
|
|
3619
3648
|
});
|
|
3620
3649
|
});
|
|
3621
3650
|
|
|
3622
|
-
export function
|
|
3623
|
-
|
|
3651
|
+
export function responseBodyJSONSchemaToolToJSON(
|
|
3652
|
+
responseBodyJSONSchemaTool: ResponseBodyJSONSchemaTool,
|
|
3653
|
+
): string {
|
|
3654
|
+
return JSON.stringify(
|
|
3655
|
+
ResponseBodyJSONSchemaTool$outboundSchema.parse(responseBodyJSONSchemaTool),
|
|
3656
|
+
);
|
|
3624
3657
|
}
|
|
3625
|
-
export function
|
|
3658
|
+
export function responseBodyJSONSchemaToolFromJSON(
|
|
3626
3659
|
jsonString: string,
|
|
3627
|
-
): SafeParseResult<
|
|
3660
|
+
): SafeParseResult<ResponseBodyJSONSchemaTool, SDKValidationError> {
|
|
3628
3661
|
return safeParse(
|
|
3629
3662
|
jsonString,
|
|
3630
|
-
(x) =>
|
|
3631
|
-
`Failed to parse '
|
|
3663
|
+
(x) => ResponseBodyJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
|
|
3664
|
+
`Failed to parse 'ResponseBodyJSONSchemaTool' from JSON`,
|
|
3632
3665
|
);
|
|
3633
3666
|
}
|
|
3634
3667
|
|
|
@@ -3772,12 +3805,12 @@ export function createToolResponseBodyFunctionFromJSON(
|
|
|
3772
3805
|
}
|
|
3773
3806
|
|
|
3774
3807
|
/** @internal */
|
|
3775
|
-
export const
|
|
3776
|
-
|
|
3808
|
+
export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
3809
|
+
ResponseBodyFunctionTool,
|
|
3777
3810
|
z.ZodTypeDef,
|
|
3778
3811
|
unknown
|
|
3779
3812
|
> = z.object({
|
|
3780
|
-
_id: z.string().default("
|
|
3813
|
+
_id: z.string().default("tool_01KAJP98AQ7JF0B0J1CTX22E0M"),
|
|
3781
3814
|
path: z.string(),
|
|
3782
3815
|
key: z.string(),
|
|
3783
3816
|
display_name: z.string().optional(),
|
|
@@ -3804,7 +3837,7 @@ export const ResponseBody1$inboundSchema: z.ZodType<
|
|
|
3804
3837
|
});
|
|
3805
3838
|
});
|
|
3806
3839
|
/** @internal */
|
|
3807
|
-
export type
|
|
3840
|
+
export type ResponseBodyFunctionTool$Outbound = {
|
|
3808
3841
|
_id: string;
|
|
3809
3842
|
path: string;
|
|
3810
3843
|
key: string;
|
|
@@ -3823,12 +3856,12 @@ export type ResponseBody1$Outbound = {
|
|
|
3823
3856
|
};
|
|
3824
3857
|
|
|
3825
3858
|
/** @internal */
|
|
3826
|
-
export const
|
|
3827
|
-
|
|
3859
|
+
export const ResponseBodyFunctionTool$outboundSchema: z.ZodType<
|
|
3860
|
+
ResponseBodyFunctionTool$Outbound,
|
|
3828
3861
|
z.ZodTypeDef,
|
|
3829
|
-
|
|
3862
|
+
ResponseBodyFunctionTool
|
|
3830
3863
|
> = z.object({
|
|
3831
|
-
id: z.string().default("
|
|
3864
|
+
id: z.string().default("tool_01KAJP98AQ7JF0B0J1CTX22E0M"),
|
|
3832
3865
|
path: z.string(),
|
|
3833
3866
|
key: z.string(),
|
|
3834
3867
|
displayName: z.string().optional(),
|
|
@@ -3855,16 +3888,20 @@ export const ResponseBody1$outboundSchema: z.ZodType<
|
|
|
3855
3888
|
});
|
|
3856
3889
|
});
|
|
3857
3890
|
|
|
3858
|
-
export function
|
|
3859
|
-
|
|
3891
|
+
export function responseBodyFunctionToolToJSON(
|
|
3892
|
+
responseBodyFunctionTool: ResponseBodyFunctionTool,
|
|
3893
|
+
): string {
|
|
3894
|
+
return JSON.stringify(
|
|
3895
|
+
ResponseBodyFunctionTool$outboundSchema.parse(responseBodyFunctionTool),
|
|
3896
|
+
);
|
|
3860
3897
|
}
|
|
3861
|
-
export function
|
|
3898
|
+
export function responseBodyFunctionToolFromJSON(
|
|
3862
3899
|
jsonString: string,
|
|
3863
|
-
): SafeParseResult<
|
|
3900
|
+
): SafeParseResult<ResponseBodyFunctionTool, SDKValidationError> {
|
|
3864
3901
|
return safeParse(
|
|
3865
3902
|
jsonString,
|
|
3866
|
-
(x) =>
|
|
3867
|
-
`Failed to parse '
|
|
3903
|
+
(x) => ResponseBodyFunctionTool$inboundSchema.parse(JSON.parse(x)),
|
|
3904
|
+
`Failed to parse 'ResponseBodyFunctionTool' from JSON`,
|
|
3868
3905
|
);
|
|
3869
3906
|
}
|
|
3870
3907
|
|
|
@@ -3874,19 +3911,19 @@ export const CreateToolResponseBody$inboundSchema: z.ZodType<
|
|
|
3874
3911
|
z.ZodTypeDef,
|
|
3875
3912
|
unknown
|
|
3876
3913
|
> = z.union([
|
|
3877
|
-
z.lazy(() =>
|
|
3878
|
-
z.lazy(() =>
|
|
3879
|
-
z.lazy(() =>
|
|
3880
|
-
z.lazy(() =>
|
|
3881
|
-
z.lazy(() =>
|
|
3914
|
+
z.lazy(() => ResponseBodyFunctionTool$inboundSchema),
|
|
3915
|
+
z.lazy(() => ResponseBodyJSONSchemaTool$inboundSchema),
|
|
3916
|
+
z.lazy(() => ResponseBodyHTTPTool$inboundSchema),
|
|
3917
|
+
z.lazy(() => ResponseBodyMCPTool$inboundSchema),
|
|
3918
|
+
z.lazy(() => ResponseBodyCodeExecutionTool$inboundSchema),
|
|
3882
3919
|
]);
|
|
3883
3920
|
/** @internal */
|
|
3884
3921
|
export type CreateToolResponseBody$Outbound =
|
|
3885
|
-
|
|
|
3886
|
-
|
|
|
3887
|
-
|
|
|
3888
|
-
|
|
|
3889
|
-
|
|
|
3922
|
+
| ResponseBodyFunctionTool$Outbound
|
|
3923
|
+
| ResponseBodyJSONSchemaTool$Outbound
|
|
3924
|
+
| ResponseBodyHTTPTool$Outbound
|
|
3925
|
+
| ResponseBodyMCPTool$Outbound
|
|
3926
|
+
| ResponseBodyCodeExecutionTool$Outbound;
|
|
3890
3927
|
|
|
3891
3928
|
/** @internal */
|
|
3892
3929
|
export const CreateToolResponseBody$outboundSchema: z.ZodType<
|
|
@@ -3894,11 +3931,11 @@ export const CreateToolResponseBody$outboundSchema: z.ZodType<
|
|
|
3894
3931
|
z.ZodTypeDef,
|
|
3895
3932
|
CreateToolResponseBody
|
|
3896
3933
|
> = z.union([
|
|
3897
|
-
z.lazy(() =>
|
|
3898
|
-
z.lazy(() =>
|
|
3899
|
-
z.lazy(() =>
|
|
3900
|
-
z.lazy(() =>
|
|
3901
|
-
z.lazy(() =>
|
|
3934
|
+
z.lazy(() => ResponseBodyFunctionTool$outboundSchema),
|
|
3935
|
+
z.lazy(() => ResponseBodyJSONSchemaTool$outboundSchema),
|
|
3936
|
+
z.lazy(() => ResponseBodyHTTPTool$outboundSchema),
|
|
3937
|
+
z.lazy(() => ResponseBodyMCPTool$outboundSchema),
|
|
3938
|
+
z.lazy(() => ResponseBodyCodeExecutionTool$outboundSchema),
|
|
3902
3939
|
]);
|
|
3903
3940
|
|
|
3904
3941
|
export function createToolResponseBodyToJSON(
|