@orq-ai/node 4.0.0-rc.57 → 4.0.0-rc.59
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 +316 -316
- package/bin/mcp-server.js.map +38 -38
- 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/createknowledge.d.ts +14 -14
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +21 -21
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/createtool.d.ts +47 -32
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +64 -64
- package/models/operations/createtool.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/getalltools.d.ts +49 -34
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +74 -74
- 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/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 +47 -32
- package/models/operations/retrievetool.d.ts.map +1 -1
- package/models/operations/retrievetool.js +64 -64
- package/models/operations/retrievetool.js.map +1 -1
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- 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 +47 -32
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +66 -66
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +1 -1
- 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/createknowledge.ts +33 -47
- package/src/models/operations/createtool.ts +134 -97
- 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 +135 -128
- 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 +168 -132
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- 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 +138 -104
|
@@ -93,7 +93,10 @@ export type RetrieveToolResponseBodyCodeTool = {
|
|
|
93
93
|
code: string;
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Executes code snippets in a sandboxed environment, currently supporting Python.
|
|
98
|
+
*/
|
|
99
|
+
export type RetrieveToolResponseBodyCodeExecutionTool = {
|
|
97
100
|
id?: string | undefined;
|
|
98
101
|
/**
|
|
99
102
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -222,7 +225,10 @@ export type RetrieveToolResponseBodyMcp = {
|
|
|
222
225
|
connectionType: RetrieveToolResponseBodyConnectionType;
|
|
223
226
|
};
|
|
224
227
|
|
|
225
|
-
|
|
228
|
+
/**
|
|
229
|
+
* A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
|
|
230
|
+
*/
|
|
231
|
+
export type RetrieveToolResponseBodyMCPTool = {
|
|
226
232
|
id?: string | undefined;
|
|
227
233
|
/**
|
|
228
234
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -388,7 +394,10 @@ export type RetrieveToolResponseBodyHttp = {
|
|
|
388
394
|
arguments?: { [k: string]: RetrieveToolResponseBodyArguments } | undefined;
|
|
389
395
|
};
|
|
390
396
|
|
|
391
|
-
|
|
397
|
+
/**
|
|
398
|
+
* Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
|
|
399
|
+
*/
|
|
400
|
+
export type RetrieveToolResponseBodyHTTPTool = {
|
|
392
401
|
id?: string | undefined;
|
|
393
402
|
/**
|
|
394
403
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -494,7 +503,10 @@ export type RetrieveToolResponseBodyJsonSchema = {
|
|
|
494
503
|
strict?: boolean | undefined;
|
|
495
504
|
};
|
|
496
505
|
|
|
497
|
-
|
|
506
|
+
/**
|
|
507
|
+
* A tool that enforces structured output format using JSON Schema for consistent response formatting.
|
|
508
|
+
*/
|
|
509
|
+
export type RetrieveToolResponseBodyJSONSchemaTool = {
|
|
498
510
|
id?: string | undefined;
|
|
499
511
|
/**
|
|
500
512
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -614,7 +626,10 @@ export type RetrieveToolResponseBodyFunction = {
|
|
|
614
626
|
parameters?: RetrieveToolResponseBodyParameters | undefined;
|
|
615
627
|
};
|
|
616
628
|
|
|
617
|
-
|
|
629
|
+
/**
|
|
630
|
+
* A custom function tool that allows the model to call predefined functions with structured parameters.
|
|
631
|
+
*/
|
|
632
|
+
export type RetrieveToolResponseBodyFunctionTool = {
|
|
618
633
|
id?: string | undefined;
|
|
619
634
|
/**
|
|
620
635
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -663,11 +678,11 @@ export type RetrieveToolResponseBody1 = {
|
|
|
663
678
|
* Successfully retrieved the tool.
|
|
664
679
|
*/
|
|
665
680
|
export type RetrieveToolResponseBody =
|
|
666
|
-
|
|
|
667
|
-
|
|
|
668
|
-
|
|
|
669
|
-
|
|
|
670
|
-
|
|
|
681
|
+
| RetrieveToolResponseBodyFunctionTool
|
|
682
|
+
| RetrieveToolResponseBodyJSONSchemaTool
|
|
683
|
+
| RetrieveToolResponseBodyHTTPTool
|
|
684
|
+
| RetrieveToolResponseBodyMCPTool
|
|
685
|
+
| RetrieveToolResponseBodyCodeExecutionTool;
|
|
671
686
|
|
|
672
687
|
/** @internal */
|
|
673
688
|
export const RetrieveToolRequest$inboundSchema: z.ZodType<
|
|
@@ -885,12 +900,12 @@ export function retrieveToolResponseBodyCodeToolFromJSON(
|
|
|
885
900
|
}
|
|
886
901
|
|
|
887
902
|
/** @internal */
|
|
888
|
-
export const
|
|
889
|
-
|
|
903
|
+
export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
904
|
+
RetrieveToolResponseBodyCodeExecutionTool,
|
|
890
905
|
z.ZodTypeDef,
|
|
891
906
|
unknown
|
|
892
907
|
> = z.object({
|
|
893
|
-
_id: z.string().default("
|
|
908
|
+
_id: z.string().default("tool_01KAGTP1YPB2PWCR42PFAKMHGN"),
|
|
894
909
|
path: z.string(),
|
|
895
910
|
key: z.string(),
|
|
896
911
|
display_name: z.string().optional(),
|
|
@@ -921,7 +936,7 @@ export const RetrieveToolResponseBody5$inboundSchema: z.ZodType<
|
|
|
921
936
|
});
|
|
922
937
|
});
|
|
923
938
|
/** @internal */
|
|
924
|
-
export type
|
|
939
|
+
export type RetrieveToolResponseBodyCodeExecutionTool$Outbound = {
|
|
925
940
|
_id: string;
|
|
926
941
|
path: string;
|
|
927
942
|
key: string;
|
|
@@ -940,56 +955,66 @@ export type RetrieveToolResponseBody5$Outbound = {
|
|
|
940
955
|
};
|
|
941
956
|
|
|
942
957
|
/** @internal */
|
|
943
|
-
export const
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
958
|
+
export const RetrieveToolResponseBodyCodeExecutionTool$outboundSchema:
|
|
959
|
+
z.ZodType<
|
|
960
|
+
RetrieveToolResponseBodyCodeExecutionTool$Outbound,
|
|
961
|
+
z.ZodTypeDef,
|
|
962
|
+
RetrieveToolResponseBodyCodeExecutionTool
|
|
963
|
+
> = z.object({
|
|
964
|
+
id: z.string().default("tool_01KAGTP1YPB2PWCR42PFAKMHGN"),
|
|
965
|
+
path: z.string(),
|
|
966
|
+
key: z.string(),
|
|
967
|
+
displayName: z.string().optional(),
|
|
968
|
+
description: z.string(),
|
|
969
|
+
createdById: z.string().optional(),
|
|
970
|
+
updatedById: z.string().optional(),
|
|
971
|
+
projectId: z.string(),
|
|
972
|
+
workspaceId: z.string(),
|
|
973
|
+
created: z.string(),
|
|
974
|
+
updated: z.string(),
|
|
975
|
+
status:
|
|
976
|
+
RetrieveToolResponseBodyToolsResponse200ApplicationJSONStatus$outboundSchema
|
|
977
|
+
.default("live"),
|
|
978
|
+
versionHash: z.string().optional(),
|
|
979
|
+
type:
|
|
980
|
+
RetrieveToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema,
|
|
981
|
+
codeTool: z.lazy(() => RetrieveToolResponseBodyCodeTool$outboundSchema),
|
|
982
|
+
}).transform((v) => {
|
|
983
|
+
return remap$(v, {
|
|
984
|
+
id: "_id",
|
|
985
|
+
displayName: "display_name",
|
|
986
|
+
createdById: "created_by_id",
|
|
987
|
+
updatedById: "updated_by_id",
|
|
988
|
+
projectId: "project_id",
|
|
989
|
+
workspaceId: "workspace_id",
|
|
990
|
+
versionHash: "version_hash",
|
|
991
|
+
codeTool: "code_tool",
|
|
992
|
+
});
|
|
976
993
|
});
|
|
977
|
-
});
|
|
978
994
|
|
|
979
|
-
export function
|
|
980
|
-
|
|
995
|
+
export function retrieveToolResponseBodyCodeExecutionToolToJSON(
|
|
996
|
+
retrieveToolResponseBodyCodeExecutionTool:
|
|
997
|
+
RetrieveToolResponseBodyCodeExecutionTool,
|
|
981
998
|
): string {
|
|
982
999
|
return JSON.stringify(
|
|
983
|
-
|
|
1000
|
+
RetrieveToolResponseBodyCodeExecutionTool$outboundSchema.parse(
|
|
1001
|
+
retrieveToolResponseBodyCodeExecutionTool,
|
|
1002
|
+
),
|
|
984
1003
|
);
|
|
985
1004
|
}
|
|
986
|
-
export function
|
|
1005
|
+
export function retrieveToolResponseBodyCodeExecutionToolFromJSON(
|
|
987
1006
|
jsonString: string,
|
|
988
|
-
): SafeParseResult<
|
|
1007
|
+
): SafeParseResult<
|
|
1008
|
+
RetrieveToolResponseBodyCodeExecutionTool,
|
|
1009
|
+
SDKValidationError
|
|
1010
|
+
> {
|
|
989
1011
|
return safeParse(
|
|
990
1012
|
jsonString,
|
|
991
|
-
(x) =>
|
|
992
|
-
|
|
1013
|
+
(x) =>
|
|
1014
|
+
RetrieveToolResponseBodyCodeExecutionTool$inboundSchema.parse(
|
|
1015
|
+
JSON.parse(x),
|
|
1016
|
+
),
|
|
1017
|
+
`Failed to parse 'RetrieveToolResponseBodyCodeExecutionTool' from JSON`,
|
|
993
1018
|
);
|
|
994
1019
|
}
|
|
995
1020
|
|
|
@@ -1125,7 +1150,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1125
1150
|
z.ZodTypeDef,
|
|
1126
1151
|
unknown
|
|
1127
1152
|
> = z.object({
|
|
1128
|
-
id: z.string().default("
|
|
1153
|
+
id: z.string().default("01KAGTP1YN9ETND54H3K0VTCRX"),
|
|
1129
1154
|
name: z.string(),
|
|
1130
1155
|
description: z.string().optional(),
|
|
1131
1156
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -1144,7 +1169,7 @@ export const RetrieveToolResponseBodyTools$outboundSchema: z.ZodType<
|
|
|
1144
1169
|
z.ZodTypeDef,
|
|
1145
1170
|
RetrieveToolResponseBodyTools
|
|
1146
1171
|
> = z.object({
|
|
1147
|
-
id: z.string().default("
|
|
1172
|
+
id: z.string().default("01KAGTP1YN9ETND54H3K0VTCRX"),
|
|
1148
1173
|
name: z.string(),
|
|
1149
1174
|
description: z.string().optional(),
|
|
1150
1175
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$outboundSchema),
|
|
@@ -1245,12 +1270,12 @@ export function retrieveToolResponseBodyMcpFromJSON(
|
|
|
1245
1270
|
}
|
|
1246
1271
|
|
|
1247
1272
|
/** @internal */
|
|
1248
|
-
export const
|
|
1249
|
-
|
|
1273
|
+
export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
1274
|
+
RetrieveToolResponseBodyMCPTool,
|
|
1250
1275
|
z.ZodTypeDef,
|
|
1251
1276
|
unknown
|
|
1252
1277
|
> = z.object({
|
|
1253
|
-
_id: z.string().default("
|
|
1278
|
+
_id: z.string().default("tool_01KAGTP1YK4PNCXX7G1CCW3X6W"),
|
|
1254
1279
|
path: z.string(),
|
|
1255
1280
|
key: z.string(),
|
|
1256
1281
|
display_name: z.string().optional(),
|
|
@@ -1279,7 +1304,7 @@ export const RetrieveToolResponseBody4$inboundSchema: z.ZodType<
|
|
|
1279
1304
|
});
|
|
1280
1305
|
});
|
|
1281
1306
|
/** @internal */
|
|
1282
|
-
export type
|
|
1307
|
+
export type RetrieveToolResponseBodyMCPTool$Outbound = {
|
|
1283
1308
|
_id: string;
|
|
1284
1309
|
path: string;
|
|
1285
1310
|
key: string;
|
|
@@ -1298,12 +1323,12 @@ export type RetrieveToolResponseBody4$Outbound = {
|
|
|
1298
1323
|
};
|
|
1299
1324
|
|
|
1300
1325
|
/** @internal */
|
|
1301
|
-
export const
|
|
1302
|
-
|
|
1326
|
+
export const RetrieveToolResponseBodyMCPTool$outboundSchema: z.ZodType<
|
|
1327
|
+
RetrieveToolResponseBodyMCPTool$Outbound,
|
|
1303
1328
|
z.ZodTypeDef,
|
|
1304
|
-
|
|
1329
|
+
RetrieveToolResponseBodyMCPTool
|
|
1305
1330
|
> = z.object({
|
|
1306
|
-
id: z.string().default("
|
|
1331
|
+
id: z.string().default("tool_01KAGTP1YK4PNCXX7G1CCW3X6W"),
|
|
1307
1332
|
path: z.string(),
|
|
1308
1333
|
key: z.string(),
|
|
1309
1334
|
displayName: z.string().optional(),
|
|
@@ -1332,20 +1357,22 @@ export const RetrieveToolResponseBody4$outboundSchema: z.ZodType<
|
|
|
1332
1357
|
});
|
|
1333
1358
|
});
|
|
1334
1359
|
|
|
1335
|
-
export function
|
|
1336
|
-
|
|
1360
|
+
export function retrieveToolResponseBodyMCPToolToJSON(
|
|
1361
|
+
retrieveToolResponseBodyMCPTool: RetrieveToolResponseBodyMCPTool,
|
|
1337
1362
|
): string {
|
|
1338
1363
|
return JSON.stringify(
|
|
1339
|
-
|
|
1364
|
+
RetrieveToolResponseBodyMCPTool$outboundSchema.parse(
|
|
1365
|
+
retrieveToolResponseBodyMCPTool,
|
|
1366
|
+
),
|
|
1340
1367
|
);
|
|
1341
1368
|
}
|
|
1342
|
-
export function
|
|
1369
|
+
export function retrieveToolResponseBodyMCPToolFromJSON(
|
|
1343
1370
|
jsonString: string,
|
|
1344
|
-
): SafeParseResult<
|
|
1371
|
+
): SafeParseResult<RetrieveToolResponseBodyMCPTool, SDKValidationError> {
|
|
1345
1372
|
return safeParse(
|
|
1346
1373
|
jsonString,
|
|
1347
|
-
(x) =>
|
|
1348
|
-
`Failed to parse '
|
|
1374
|
+
(x) => RetrieveToolResponseBodyMCPTool$inboundSchema.parse(JSON.parse(x)),
|
|
1375
|
+
`Failed to parse 'RetrieveToolResponseBodyMCPTool' from JSON`,
|
|
1349
1376
|
);
|
|
1350
1377
|
}
|
|
1351
1378
|
|
|
@@ -1676,12 +1703,12 @@ export function retrieveToolResponseBodyHttpFromJSON(
|
|
|
1676
1703
|
}
|
|
1677
1704
|
|
|
1678
1705
|
/** @internal */
|
|
1679
|
-
export const
|
|
1680
|
-
|
|
1706
|
+
export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
1707
|
+
RetrieveToolResponseBodyHTTPTool,
|
|
1681
1708
|
z.ZodTypeDef,
|
|
1682
1709
|
unknown
|
|
1683
1710
|
> = z.object({
|
|
1684
|
-
_id: z.string().default("
|
|
1711
|
+
_id: z.string().default("tool_01KAGTP1YGRG9T03Z9F402GRDV"),
|
|
1685
1712
|
path: z.string(),
|
|
1686
1713
|
key: z.string(),
|
|
1687
1714
|
display_name: z.string().optional(),
|
|
@@ -1710,7 +1737,7 @@ export const RetrieveToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
1710
1737
|
});
|
|
1711
1738
|
});
|
|
1712
1739
|
/** @internal */
|
|
1713
|
-
export type
|
|
1740
|
+
export type RetrieveToolResponseBodyHTTPTool$Outbound = {
|
|
1714
1741
|
_id: string;
|
|
1715
1742
|
path: string;
|
|
1716
1743
|
key: string;
|
|
@@ -1729,12 +1756,12 @@ export type RetrieveToolResponseBody3$Outbound = {
|
|
|
1729
1756
|
};
|
|
1730
1757
|
|
|
1731
1758
|
/** @internal */
|
|
1732
|
-
export const
|
|
1733
|
-
|
|
1759
|
+
export const RetrieveToolResponseBodyHTTPTool$outboundSchema: z.ZodType<
|
|
1760
|
+
RetrieveToolResponseBodyHTTPTool$Outbound,
|
|
1734
1761
|
z.ZodTypeDef,
|
|
1735
|
-
|
|
1762
|
+
RetrieveToolResponseBodyHTTPTool
|
|
1736
1763
|
> = z.object({
|
|
1737
|
-
id: z.string().default("
|
|
1764
|
+
id: z.string().default("tool_01KAGTP1YGRG9T03Z9F402GRDV"),
|
|
1738
1765
|
path: z.string(),
|
|
1739
1766
|
key: z.string(),
|
|
1740
1767
|
displayName: z.string().optional(),
|
|
@@ -1763,20 +1790,22 @@ export const RetrieveToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
1763
1790
|
});
|
|
1764
1791
|
});
|
|
1765
1792
|
|
|
1766
|
-
export function
|
|
1767
|
-
|
|
1793
|
+
export function retrieveToolResponseBodyHTTPToolToJSON(
|
|
1794
|
+
retrieveToolResponseBodyHTTPTool: RetrieveToolResponseBodyHTTPTool,
|
|
1768
1795
|
): string {
|
|
1769
1796
|
return JSON.stringify(
|
|
1770
|
-
|
|
1797
|
+
RetrieveToolResponseBodyHTTPTool$outboundSchema.parse(
|
|
1798
|
+
retrieveToolResponseBodyHTTPTool,
|
|
1799
|
+
),
|
|
1771
1800
|
);
|
|
1772
1801
|
}
|
|
1773
|
-
export function
|
|
1802
|
+
export function retrieveToolResponseBodyHTTPToolFromJSON(
|
|
1774
1803
|
jsonString: string,
|
|
1775
|
-
): SafeParseResult<
|
|
1804
|
+
): SafeParseResult<RetrieveToolResponseBodyHTTPTool, SDKValidationError> {
|
|
1776
1805
|
return safeParse(
|
|
1777
1806
|
jsonString,
|
|
1778
|
-
(x) =>
|
|
1779
|
-
`Failed to parse '
|
|
1807
|
+
(x) => RetrieveToolResponseBodyHTTPTool$inboundSchema.parse(JSON.parse(x)),
|
|
1808
|
+
`Failed to parse 'RetrieveToolResponseBodyHTTPTool' from JSON`,
|
|
1780
1809
|
);
|
|
1781
1810
|
}
|
|
1782
1811
|
|
|
@@ -1910,12 +1939,12 @@ export function retrieveToolResponseBodyJsonSchemaFromJSON(
|
|
|
1910
1939
|
}
|
|
1911
1940
|
|
|
1912
1941
|
/** @internal */
|
|
1913
|
-
export const
|
|
1914
|
-
|
|
1942
|
+
export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
1943
|
+
RetrieveToolResponseBodyJSONSchemaTool,
|
|
1915
1944
|
z.ZodTypeDef,
|
|
1916
1945
|
unknown
|
|
1917
1946
|
> = z.object({
|
|
1918
|
-
_id: z.string().default("
|
|
1947
|
+
_id: z.string().default("tool_01KAGTP1YDYN51NV6A0M2WA6ST"),
|
|
1919
1948
|
path: z.string(),
|
|
1920
1949
|
key: z.string(),
|
|
1921
1950
|
display_name: z.string().optional(),
|
|
@@ -1943,7 +1972,7 @@ export const RetrieveToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
1943
1972
|
});
|
|
1944
1973
|
});
|
|
1945
1974
|
/** @internal */
|
|
1946
|
-
export type
|
|
1975
|
+
export type RetrieveToolResponseBodyJSONSchemaTool$Outbound = {
|
|
1947
1976
|
_id: string;
|
|
1948
1977
|
path: string;
|
|
1949
1978
|
key: string;
|
|
@@ -1962,12 +1991,12 @@ export type RetrieveToolResponseBody2$Outbound = {
|
|
|
1962
1991
|
};
|
|
1963
1992
|
|
|
1964
1993
|
/** @internal */
|
|
1965
|
-
export const
|
|
1966
|
-
|
|
1994
|
+
export const RetrieveToolResponseBodyJSONSchemaTool$outboundSchema: z.ZodType<
|
|
1995
|
+
RetrieveToolResponseBodyJSONSchemaTool$Outbound,
|
|
1967
1996
|
z.ZodTypeDef,
|
|
1968
|
-
|
|
1997
|
+
RetrieveToolResponseBodyJSONSchemaTool
|
|
1969
1998
|
> = z.object({
|
|
1970
|
-
id: z.string().default("
|
|
1999
|
+
id: z.string().default("tool_01KAGTP1YDYN51NV6A0M2WA6ST"),
|
|
1971
2000
|
path: z.string(),
|
|
1972
2001
|
key: z.string(),
|
|
1973
2002
|
displayName: z.string().optional(),
|
|
@@ -1995,20 +2024,24 @@ export const RetrieveToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
1995
2024
|
});
|
|
1996
2025
|
});
|
|
1997
2026
|
|
|
1998
|
-
export function
|
|
1999
|
-
|
|
2027
|
+
export function retrieveToolResponseBodyJSONSchemaToolToJSON(
|
|
2028
|
+
retrieveToolResponseBodyJSONSchemaTool:
|
|
2029
|
+
RetrieveToolResponseBodyJSONSchemaTool,
|
|
2000
2030
|
): string {
|
|
2001
2031
|
return JSON.stringify(
|
|
2002
|
-
|
|
2032
|
+
RetrieveToolResponseBodyJSONSchemaTool$outboundSchema.parse(
|
|
2033
|
+
retrieveToolResponseBodyJSONSchemaTool,
|
|
2034
|
+
),
|
|
2003
2035
|
);
|
|
2004
2036
|
}
|
|
2005
|
-
export function
|
|
2037
|
+
export function retrieveToolResponseBodyJSONSchemaToolFromJSON(
|
|
2006
2038
|
jsonString: string,
|
|
2007
|
-
): SafeParseResult<
|
|
2039
|
+
): SafeParseResult<RetrieveToolResponseBodyJSONSchemaTool, SDKValidationError> {
|
|
2008
2040
|
return safeParse(
|
|
2009
2041
|
jsonString,
|
|
2010
|
-
(x) =>
|
|
2011
|
-
|
|
2042
|
+
(x) =>
|
|
2043
|
+
RetrieveToolResponseBodyJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
|
|
2044
|
+
`Failed to parse 'RetrieveToolResponseBodyJSONSchemaTool' from JSON`,
|
|
2012
2045
|
);
|
|
2013
2046
|
}
|
|
2014
2047
|
|
|
@@ -2160,12 +2193,12 @@ export function retrieveToolResponseBodyFunctionFromJSON(
|
|
|
2160
2193
|
}
|
|
2161
2194
|
|
|
2162
2195
|
/** @internal */
|
|
2163
|
-
export const
|
|
2164
|
-
|
|
2196
|
+
export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
2197
|
+
RetrieveToolResponseBodyFunctionTool,
|
|
2165
2198
|
z.ZodTypeDef,
|
|
2166
2199
|
unknown
|
|
2167
2200
|
> = z.object({
|
|
2168
|
-
_id: z.string().default("
|
|
2201
|
+
_id: z.string().default("tool_01KAGTP1YB2G3169QZRDJNZ2CY"),
|
|
2169
2202
|
path: z.string(),
|
|
2170
2203
|
key: z.string(),
|
|
2171
2204
|
display_name: z.string().optional(),
|
|
@@ -2192,7 +2225,7 @@ export const RetrieveToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
2192
2225
|
});
|
|
2193
2226
|
});
|
|
2194
2227
|
/** @internal */
|
|
2195
|
-
export type
|
|
2228
|
+
export type RetrieveToolResponseBodyFunctionTool$Outbound = {
|
|
2196
2229
|
_id: string;
|
|
2197
2230
|
path: string;
|
|
2198
2231
|
key: string;
|
|
@@ -2211,12 +2244,12 @@ export type RetrieveToolResponseBody1$Outbound = {
|
|
|
2211
2244
|
};
|
|
2212
2245
|
|
|
2213
2246
|
/** @internal */
|
|
2214
|
-
export const
|
|
2215
|
-
|
|
2247
|
+
export const RetrieveToolResponseBodyFunctionTool$outboundSchema: z.ZodType<
|
|
2248
|
+
RetrieveToolResponseBodyFunctionTool$Outbound,
|
|
2216
2249
|
z.ZodTypeDef,
|
|
2217
|
-
|
|
2250
|
+
RetrieveToolResponseBodyFunctionTool
|
|
2218
2251
|
> = z.object({
|
|
2219
|
-
id: z.string().default("
|
|
2252
|
+
id: z.string().default("tool_01KAGTP1YB2G3169QZRDJNZ2CY"),
|
|
2220
2253
|
path: z.string(),
|
|
2221
2254
|
key: z.string(),
|
|
2222
2255
|
displayName: z.string().optional(),
|
|
@@ -2243,20 +2276,23 @@ export const RetrieveToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
2243
2276
|
});
|
|
2244
2277
|
});
|
|
2245
2278
|
|
|
2246
|
-
export function
|
|
2247
|
-
|
|
2279
|
+
export function retrieveToolResponseBodyFunctionToolToJSON(
|
|
2280
|
+
retrieveToolResponseBodyFunctionTool: RetrieveToolResponseBodyFunctionTool,
|
|
2248
2281
|
): string {
|
|
2249
2282
|
return JSON.stringify(
|
|
2250
|
-
|
|
2283
|
+
RetrieveToolResponseBodyFunctionTool$outboundSchema.parse(
|
|
2284
|
+
retrieveToolResponseBodyFunctionTool,
|
|
2285
|
+
),
|
|
2251
2286
|
);
|
|
2252
2287
|
}
|
|
2253
|
-
export function
|
|
2288
|
+
export function retrieveToolResponseBodyFunctionToolFromJSON(
|
|
2254
2289
|
jsonString: string,
|
|
2255
|
-
): SafeParseResult<
|
|
2290
|
+
): SafeParseResult<RetrieveToolResponseBodyFunctionTool, SDKValidationError> {
|
|
2256
2291
|
return safeParse(
|
|
2257
2292
|
jsonString,
|
|
2258
|
-
(x) =>
|
|
2259
|
-
|
|
2293
|
+
(x) =>
|
|
2294
|
+
RetrieveToolResponseBodyFunctionTool$inboundSchema.parse(JSON.parse(x)),
|
|
2295
|
+
`Failed to parse 'RetrieveToolResponseBodyFunctionTool' from JSON`,
|
|
2260
2296
|
);
|
|
2261
2297
|
}
|
|
2262
2298
|
|
|
@@ -2266,19 +2302,19 @@ export const RetrieveToolResponseBody$inboundSchema: z.ZodType<
|
|
|
2266
2302
|
z.ZodTypeDef,
|
|
2267
2303
|
unknown
|
|
2268
2304
|
> = z.union([
|
|
2269
|
-
z.lazy(() =>
|
|
2270
|
-
z.lazy(() =>
|
|
2271
|
-
z.lazy(() =>
|
|
2272
|
-
z.lazy(() =>
|
|
2273
|
-
z.lazy(() =>
|
|
2305
|
+
z.lazy(() => RetrieveToolResponseBodyFunctionTool$inboundSchema),
|
|
2306
|
+
z.lazy(() => RetrieveToolResponseBodyJSONSchemaTool$inboundSchema),
|
|
2307
|
+
z.lazy(() => RetrieveToolResponseBodyHTTPTool$inboundSchema),
|
|
2308
|
+
z.lazy(() => RetrieveToolResponseBodyMCPTool$inboundSchema),
|
|
2309
|
+
z.lazy(() => RetrieveToolResponseBodyCodeExecutionTool$inboundSchema),
|
|
2274
2310
|
]);
|
|
2275
2311
|
/** @internal */
|
|
2276
2312
|
export type RetrieveToolResponseBody$Outbound =
|
|
2277
|
-
|
|
|
2278
|
-
|
|
|
2279
|
-
|
|
|
2280
|
-
|
|
|
2281
|
-
|
|
|
2313
|
+
| RetrieveToolResponseBodyFunctionTool$Outbound
|
|
2314
|
+
| RetrieveToolResponseBodyJSONSchemaTool$Outbound
|
|
2315
|
+
| RetrieveToolResponseBodyHTTPTool$Outbound
|
|
2316
|
+
| RetrieveToolResponseBodyMCPTool$Outbound
|
|
2317
|
+
| RetrieveToolResponseBodyCodeExecutionTool$Outbound;
|
|
2282
2318
|
|
|
2283
2319
|
/** @internal */
|
|
2284
2320
|
export const RetrieveToolResponseBody$outboundSchema: z.ZodType<
|
|
@@ -2286,11 +2322,11 @@ export const RetrieveToolResponseBody$outboundSchema: z.ZodType<
|
|
|
2286
2322
|
z.ZodTypeDef,
|
|
2287
2323
|
RetrieveToolResponseBody
|
|
2288
2324
|
> = z.union([
|
|
2289
|
-
z.lazy(() =>
|
|
2290
|
-
z.lazy(() =>
|
|
2291
|
-
z.lazy(() =>
|
|
2292
|
-
z.lazy(() =>
|
|
2293
|
-
z.lazy(() =>
|
|
2325
|
+
z.lazy(() => RetrieveToolResponseBodyFunctionTool$outboundSchema),
|
|
2326
|
+
z.lazy(() => RetrieveToolResponseBodyJSONSchemaTool$outboundSchema),
|
|
2327
|
+
z.lazy(() => RetrieveToolResponseBodyHTTPTool$outboundSchema),
|
|
2328
|
+
z.lazy(() => RetrieveToolResponseBodyMCPTool$outboundSchema),
|
|
2329
|
+
z.lazy(() => RetrieveToolResponseBodyCodeExecutionTool$outboundSchema),
|
|
2294
2330
|
]);
|
|
2295
2331
|
|
|
2296
2332
|
export function retrieveToolResponseBodyToJSON(
|
|
@@ -4775,7 +4775,7 @@ export function schemaFromJSON(
|
|
|
4775
4775
|
/** @internal */
|
|
4776
4776
|
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
4777
4777
|
.object({
|
|
4778
|
-
id: z.string().default("
|
|
4778
|
+
id: z.string().default("01KAGTP1KA7QMKGGMH1ZNZ8MKG"),
|
|
4779
4779
|
name: z.string(),
|
|
4780
4780
|
description: z.string().optional(),
|
|
4781
4781
|
schema: z.lazy(() => Schema$inboundSchema),
|
|
@@ -4794,7 +4794,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
4794
4794
|
z.ZodTypeDef,
|
|
4795
4795
|
Tools
|
|
4796
4796
|
> = z.object({
|
|
4797
|
-
id: z.string().default("
|
|
4797
|
+
id: z.string().default("01KAGTP1KA7QMKGGMH1ZNZ8MKG"),
|
|
4798
4798
|
name: z.string(),
|
|
4799
4799
|
description: z.string().optional(),
|
|
4800
4800
|
schema: z.lazy(() => Schema$outboundSchema),
|
|
@@ -6299,7 +6299,7 @@ export const AgentToolInputRunTools$inboundSchema: z.ZodType<
|
|
|
6299
6299
|
z.ZodTypeDef,
|
|
6300
6300
|
unknown
|
|
6301
6301
|
> = z.object({
|
|
6302
|
-
id: z.string().default("
|
|
6302
|
+
id: z.string().default("01KAGTP1MP2K8YGJ6XKGBZM63Z"),
|
|
6303
6303
|
name: z.string(),
|
|
6304
6304
|
description: z.string().optional(),
|
|
6305
6305
|
schema: z.lazy(() => AgentToolInputRunSchema$inboundSchema),
|
|
@@ -6318,7 +6318,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
6318
6318
|
z.ZodTypeDef,
|
|
6319
6319
|
AgentToolInputRunTools
|
|
6320
6320
|
> = z.object({
|
|
6321
|
-
id: z.string().default("
|
|
6321
|
+
id: z.string().default("01KAGTP1MP2K8YGJ6XKGBZM63Z"),
|
|
6322
6322
|
name: z.string(),
|
|
6323
6323
|
description: z.string().optional(),
|
|
6324
6324
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -436,7 +436,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
436
436
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
437
437
|
.optional(),
|
|
438
438
|
updated: z.string().datetime({ offset: true }).default(
|
|
439
|
-
"2025-11-
|
|
439
|
+
"2025-11-20T14:28:39.426Z",
|
|
440
440
|
).transform(v => new Date(v)),
|
|
441
441
|
}).transform((v) => {
|
|
442
442
|
return remap$(v, {
|
|
@@ -473,7 +473,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
473
473
|
isActive: z.boolean(),
|
|
474
474
|
consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
|
|
475
475
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
476
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
476
|
+
updated: z.date().default(() => new Date("2025-11-20T14:28:39.426Z"))
|
|
477
477
|
.transform(v => v.toISOString()),
|
|
478
478
|
}).transform((v) => {
|
|
479
479
|
return remap$(v, {
|
|
@@ -214,7 +214,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
214
214
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
215
215
|
.optional(),
|
|
216
216
|
updated: z.string().datetime({ offset: true }).default(
|
|
217
|
-
"2025-11-
|
|
217
|
+
"2025-11-20T14:28:39.096Z",
|
|
218
218
|
).transform(v => new Date(v)),
|
|
219
219
|
}).transform((v) => {
|
|
220
220
|
return remap$(v, {
|
|
@@ -251,7 +251,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
251
251
|
tags: z.array(z.string()).optional(),
|
|
252
252
|
metadata: z.record(z.any()).optional(),
|
|
253
253
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
254
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
254
|
+
updated: z.date().default(() => new Date("2025-11-20T14:28:39.096Z"))
|
|
255
255
|
.transform(v => v.toISOString()),
|
|
256
256
|
}).transform((v) => {
|
|
257
257
|
return remap$(v, {
|