@orq-ai/node 3.14.43 → 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 +21 -31
- package/packages/orq-rc/docs/sdks/agents/README.md +195 -235
- 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/docs/sdks/tools/README.md +1 -152
- 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 -9
- package/packages/orq-rc/src/models/errors/index.ts +0 -3
- package/packages/orq-rc/src/models/operations/createagent.ts +35 -17
- 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/index.ts +0 -3
- 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 +36 -54
- package/packages/orq-rc/src/sdk/tools.ts +0 -36
- 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/funcs/agentsDuplicate.ts +0 -179
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsSync.ts +0 -176
- package/packages/orq-rc/src/mcp-server/tools/agentsDuplicate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsSync.ts +0 -37
- package/packages/orq-rc/src/models/errors/duplicateagent.ts +0 -128
- package/packages/orq-rc/src/models/errors/duplicatetool.ts +0 -78
- package/packages/orq-rc/src/models/errors/getagenttask.ts +0 -67
- package/packages/orq-rc/src/models/operations/duplicateagent.ts +0 -3598
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +0 -2395
- package/packages/orq-rc/src/models/operations/syncmcptool.ts +0 -2603
|
@@ -105,7 +105,10 @@ export type DataCodeTool = {
|
|
|
105
105
|
code: string;
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
/**
|
|
109
|
+
* Executes code snippets in a sandboxed environment, currently supporting Python.
|
|
110
|
+
*/
|
|
111
|
+
export type DataCodeExecutionTool = {
|
|
109
112
|
id?: string | undefined;
|
|
110
113
|
/**
|
|
111
114
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -230,7 +233,10 @@ export type DataMcp = {
|
|
|
230
233
|
connectionType: DataConnectionType;
|
|
231
234
|
};
|
|
232
235
|
|
|
233
|
-
|
|
236
|
+
/**
|
|
237
|
+
* A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
|
|
238
|
+
*/
|
|
239
|
+
export type DataMCPTool = {
|
|
234
240
|
id?: string | undefined;
|
|
235
241
|
/**
|
|
236
242
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -392,7 +398,10 @@ export type GetAllToolsDataHttp = {
|
|
|
392
398
|
arguments?: { [k: string]: DataArguments } | undefined;
|
|
393
399
|
};
|
|
394
400
|
|
|
395
|
-
|
|
401
|
+
/**
|
|
402
|
+
* Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
|
|
403
|
+
*/
|
|
404
|
+
export type DataHTTPTool = {
|
|
396
405
|
id?: string | undefined;
|
|
397
406
|
/**
|
|
398
407
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -496,7 +505,10 @@ export type DataJsonSchema = {
|
|
|
496
505
|
strict?: boolean | undefined;
|
|
497
506
|
};
|
|
498
507
|
|
|
499
|
-
|
|
508
|
+
/**
|
|
509
|
+
* A tool that enforces structured output format using JSON Schema for consistent response formatting.
|
|
510
|
+
*/
|
|
511
|
+
export type DataJSONSchemaTool = {
|
|
500
512
|
id?: string | undefined;
|
|
501
513
|
/**
|
|
502
514
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -612,7 +624,10 @@ export type GetAllToolsDataFunction = {
|
|
|
612
624
|
parameters?: DataParameters | undefined;
|
|
613
625
|
};
|
|
614
626
|
|
|
615
|
-
|
|
627
|
+
/**
|
|
628
|
+
* A custom function tool that allows the model to call predefined functions with structured parameters.
|
|
629
|
+
*/
|
|
630
|
+
export type DataFunctionTool = {
|
|
616
631
|
id?: string | undefined;
|
|
617
632
|
/**
|
|
618
633
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -657,14 +672,25 @@ export type Data1 = {
|
|
|
657
672
|
function: GetAllToolsDataFunction;
|
|
658
673
|
};
|
|
659
674
|
|
|
660
|
-
export type GetAllToolsData =
|
|
675
|
+
export type GetAllToolsData =
|
|
676
|
+
| DataFunctionTool
|
|
677
|
+
| DataJSONSchemaTool
|
|
678
|
+
| DataHTTPTool
|
|
679
|
+
| DataMCPTool
|
|
680
|
+
| DataCodeExecutionTool;
|
|
661
681
|
|
|
662
682
|
/**
|
|
663
683
|
* Successfully retrieved the list of tools.
|
|
664
684
|
*/
|
|
665
685
|
export type GetAllToolsResponseBody = {
|
|
666
686
|
object: GetAllToolsObject;
|
|
667
|
-
data: Array<
|
|
687
|
+
data: Array<
|
|
688
|
+
| DataFunctionTool
|
|
689
|
+
| DataJSONSchemaTool
|
|
690
|
+
| DataHTTPTool
|
|
691
|
+
| DataMCPTool
|
|
692
|
+
| DataCodeExecutionTool
|
|
693
|
+
>;
|
|
668
694
|
hasMore: boolean;
|
|
669
695
|
};
|
|
670
696
|
|
|
@@ -874,37 +900,40 @@ export function dataCodeToolFromJSON(
|
|
|
874
900
|
}
|
|
875
901
|
|
|
876
902
|
/** @internal */
|
|
877
|
-
export const
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
903
|
+
export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
904
|
+
DataCodeExecutionTool,
|
|
905
|
+
z.ZodTypeDef,
|
|
906
|
+
unknown
|
|
907
|
+
> = z.object({
|
|
908
|
+
_id: z.string().default("tool_01KAJP98ABMJBFKBF9Q5XMWTPW"),
|
|
909
|
+
path: z.string(),
|
|
910
|
+
key: z.string(),
|
|
911
|
+
display_name: z.string().optional(),
|
|
912
|
+
description: z.string(),
|
|
913
|
+
created_by_id: z.string().optional(),
|
|
914
|
+
updated_by_id: z.string().optional(),
|
|
915
|
+
project_id: z.string(),
|
|
916
|
+
workspace_id: z.string(),
|
|
917
|
+
created: z.string(),
|
|
918
|
+
updated: z.string(),
|
|
919
|
+
status: GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
|
|
920
|
+
version_hash: z.string().optional(),
|
|
921
|
+
type: GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema,
|
|
922
|
+
code_tool: z.lazy(() => DataCodeTool$inboundSchema),
|
|
923
|
+
}).transform((v) => {
|
|
924
|
+
return remap$(v, {
|
|
925
|
+
"_id": "id",
|
|
926
|
+
"display_name": "displayName",
|
|
927
|
+
"created_by_id": "createdById",
|
|
928
|
+
"updated_by_id": "updatedById",
|
|
929
|
+
"project_id": "projectId",
|
|
930
|
+
"workspace_id": "workspaceId",
|
|
931
|
+
"version_hash": "versionHash",
|
|
932
|
+
"code_tool": "codeTool",
|
|
905
933
|
});
|
|
934
|
+
});
|
|
906
935
|
/** @internal */
|
|
907
|
-
export type
|
|
936
|
+
export type DataCodeExecutionTool$Outbound = {
|
|
908
937
|
_id: string;
|
|
909
938
|
path: string;
|
|
910
939
|
key: string;
|
|
@@ -923,12 +952,12 @@ export type Data5$Outbound = {
|
|
|
923
952
|
};
|
|
924
953
|
|
|
925
954
|
/** @internal */
|
|
926
|
-
export const
|
|
927
|
-
|
|
955
|
+
export const DataCodeExecutionTool$outboundSchema: z.ZodType<
|
|
956
|
+
DataCodeExecutionTool$Outbound,
|
|
928
957
|
z.ZodTypeDef,
|
|
929
|
-
|
|
958
|
+
DataCodeExecutionTool
|
|
930
959
|
> = z.object({
|
|
931
|
-
id: z.string().default("
|
|
960
|
+
id: z.string().default("tool_01KAJP98ABMJBFKBF9Q5XMWTPW"),
|
|
932
961
|
path: z.string(),
|
|
933
962
|
key: z.string(),
|
|
934
963
|
displayName: z.string().optional(),
|
|
@@ -956,16 +985,20 @@ export const Data5$outboundSchema: z.ZodType<
|
|
|
956
985
|
});
|
|
957
986
|
});
|
|
958
987
|
|
|
959
|
-
export function
|
|
960
|
-
|
|
988
|
+
export function dataCodeExecutionToolToJSON(
|
|
989
|
+
dataCodeExecutionTool: DataCodeExecutionTool,
|
|
990
|
+
): string {
|
|
991
|
+
return JSON.stringify(
|
|
992
|
+
DataCodeExecutionTool$outboundSchema.parse(dataCodeExecutionTool),
|
|
993
|
+
);
|
|
961
994
|
}
|
|
962
|
-
export function
|
|
995
|
+
export function dataCodeExecutionToolFromJSON(
|
|
963
996
|
jsonString: string,
|
|
964
|
-
): SafeParseResult<
|
|
997
|
+
): SafeParseResult<DataCodeExecutionTool, SDKValidationError> {
|
|
965
998
|
return safeParse(
|
|
966
999
|
jsonString,
|
|
967
|
-
(x) =>
|
|
968
|
-
`Failed to parse '
|
|
1000
|
+
(x) => DataCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
|
|
1001
|
+
`Failed to parse 'DataCodeExecutionTool' from JSON`,
|
|
969
1002
|
);
|
|
970
1003
|
}
|
|
971
1004
|
|
|
@@ -1092,7 +1125,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
1092
1125
|
z.ZodTypeDef,
|
|
1093
1126
|
unknown
|
|
1094
1127
|
> = z.object({
|
|
1095
|
-
id: z.string().default("
|
|
1128
|
+
id: z.string().default("01KAJP98AAGEQVTXMV6B8X0PR5"),
|
|
1096
1129
|
name: z.string(),
|
|
1097
1130
|
description: z.string().optional(),
|
|
1098
1131
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -1111,7 +1144,7 @@ export const DataTools$outboundSchema: z.ZodType<
|
|
|
1111
1144
|
z.ZodTypeDef,
|
|
1112
1145
|
DataTools
|
|
1113
1146
|
> = z.object({
|
|
1114
|
-
id: z.string().default("
|
|
1147
|
+
id: z.string().default("01KAJP98AAGEQVTXMV6B8X0PR5"),
|
|
1115
1148
|
name: z.string(),
|
|
1116
1149
|
description: z.string().optional(),
|
|
1117
1150
|
schema: z.lazy(() => GetAllToolsDataSchema$outboundSchema),
|
|
@@ -1191,36 +1224,39 @@ export function dataMcpFromJSON(
|
|
|
1191
1224
|
}
|
|
1192
1225
|
|
|
1193
1226
|
/** @internal */
|
|
1194
|
-
export const
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1227
|
+
export const DataMCPTool$inboundSchema: z.ZodType<
|
|
1228
|
+
DataMCPTool,
|
|
1229
|
+
z.ZodTypeDef,
|
|
1230
|
+
unknown
|
|
1231
|
+
> = z.object({
|
|
1232
|
+
_id: z.string().default("tool_01KAJP98A9GSBWNS4MK7PNYK71"),
|
|
1233
|
+
path: z.string(),
|
|
1234
|
+
key: z.string(),
|
|
1235
|
+
display_name: z.string().optional(),
|
|
1236
|
+
description: z.string(),
|
|
1237
|
+
created_by_id: z.string().optional(),
|
|
1238
|
+
updated_by_id: z.string().optional(),
|
|
1239
|
+
project_id: z.string(),
|
|
1240
|
+
workspace_id: z.string(),
|
|
1241
|
+
created: z.string(),
|
|
1242
|
+
updated: z.string(),
|
|
1243
|
+
status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
|
|
1244
|
+
version_hash: z.string().optional(),
|
|
1245
|
+
type: GetAllToolsDataToolsResponse200Type$inboundSchema,
|
|
1246
|
+
mcp: z.lazy(() => DataMcp$inboundSchema),
|
|
1247
|
+
}).transform((v) => {
|
|
1248
|
+
return remap$(v, {
|
|
1249
|
+
"_id": "id",
|
|
1250
|
+
"display_name": "displayName",
|
|
1251
|
+
"created_by_id": "createdById",
|
|
1252
|
+
"updated_by_id": "updatedById",
|
|
1253
|
+
"project_id": "projectId",
|
|
1254
|
+
"workspace_id": "workspaceId",
|
|
1255
|
+
"version_hash": "versionHash",
|
|
1221
1256
|
});
|
|
1257
|
+
});
|
|
1222
1258
|
/** @internal */
|
|
1223
|
-
export type
|
|
1259
|
+
export type DataMCPTool$Outbound = {
|
|
1224
1260
|
_id: string;
|
|
1225
1261
|
path: string;
|
|
1226
1262
|
key: string;
|
|
@@ -1239,12 +1275,12 @@ export type Data4$Outbound = {
|
|
|
1239
1275
|
};
|
|
1240
1276
|
|
|
1241
1277
|
/** @internal */
|
|
1242
|
-
export const
|
|
1243
|
-
|
|
1278
|
+
export const DataMCPTool$outboundSchema: z.ZodType<
|
|
1279
|
+
DataMCPTool$Outbound,
|
|
1244
1280
|
z.ZodTypeDef,
|
|
1245
|
-
|
|
1281
|
+
DataMCPTool
|
|
1246
1282
|
> = z.object({
|
|
1247
|
-
id: z.string().default("
|
|
1283
|
+
id: z.string().default("tool_01KAJP98A9GSBWNS4MK7PNYK71"),
|
|
1248
1284
|
path: z.string(),
|
|
1249
1285
|
key: z.string(),
|
|
1250
1286
|
displayName: z.string().optional(),
|
|
@@ -1271,16 +1307,16 @@ export const Data4$outboundSchema: z.ZodType<
|
|
|
1271
1307
|
});
|
|
1272
1308
|
});
|
|
1273
1309
|
|
|
1274
|
-
export function
|
|
1275
|
-
return JSON.stringify(
|
|
1310
|
+
export function dataMCPToolToJSON(dataMCPTool: DataMCPTool): string {
|
|
1311
|
+
return JSON.stringify(DataMCPTool$outboundSchema.parse(dataMCPTool));
|
|
1276
1312
|
}
|
|
1277
|
-
export function
|
|
1313
|
+
export function dataMCPToolFromJSON(
|
|
1278
1314
|
jsonString: string,
|
|
1279
|
-
): SafeParseResult<
|
|
1315
|
+
): SafeParseResult<DataMCPTool, SDKValidationError> {
|
|
1280
1316
|
return safeParse(
|
|
1281
1317
|
jsonString,
|
|
1282
|
-
(x) =>
|
|
1283
|
-
`Failed to parse '
|
|
1318
|
+
(x) => DataMCPTool$inboundSchema.parse(JSON.parse(x)),
|
|
1319
|
+
`Failed to parse 'DataMCPTool' from JSON`,
|
|
1284
1320
|
);
|
|
1285
1321
|
}
|
|
1286
1322
|
|
|
@@ -1582,36 +1618,39 @@ export function getAllToolsDataHttpFromJSON(
|
|
|
1582
1618
|
}
|
|
1583
1619
|
|
|
1584
1620
|
/** @internal */
|
|
1585
|
-
export const
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1621
|
+
export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
1622
|
+
DataHTTPTool,
|
|
1623
|
+
z.ZodTypeDef,
|
|
1624
|
+
unknown
|
|
1625
|
+
> = z.object({
|
|
1626
|
+
_id: z.string().default("tool_01KAJP98A72K9FNYCHBVC5ZRZS"),
|
|
1627
|
+
path: z.string(),
|
|
1628
|
+
key: z.string(),
|
|
1629
|
+
display_name: z.string().optional(),
|
|
1630
|
+
description: z.string(),
|
|
1631
|
+
created_by_id: z.string().optional(),
|
|
1632
|
+
updated_by_id: z.string().optional(),
|
|
1633
|
+
project_id: z.string(),
|
|
1634
|
+
workspace_id: z.string(),
|
|
1635
|
+
created: z.string(),
|
|
1636
|
+
updated: z.string(),
|
|
1637
|
+
status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
|
|
1638
|
+
version_hash: z.string().optional(),
|
|
1639
|
+
type: GetAllToolsDataToolsResponseType$inboundSchema,
|
|
1640
|
+
http: z.lazy(() => GetAllToolsDataHttp$inboundSchema),
|
|
1641
|
+
}).transform((v) => {
|
|
1642
|
+
return remap$(v, {
|
|
1643
|
+
"_id": "id",
|
|
1644
|
+
"display_name": "displayName",
|
|
1645
|
+
"created_by_id": "createdById",
|
|
1646
|
+
"updated_by_id": "updatedById",
|
|
1647
|
+
"project_id": "projectId",
|
|
1648
|
+
"workspace_id": "workspaceId",
|
|
1649
|
+
"version_hash": "versionHash",
|
|
1612
1650
|
});
|
|
1651
|
+
});
|
|
1613
1652
|
/** @internal */
|
|
1614
|
-
export type
|
|
1653
|
+
export type DataHTTPTool$Outbound = {
|
|
1615
1654
|
_id: string;
|
|
1616
1655
|
path: string;
|
|
1617
1656
|
key: string;
|
|
@@ -1630,12 +1669,12 @@ export type Data3$Outbound = {
|
|
|
1630
1669
|
};
|
|
1631
1670
|
|
|
1632
1671
|
/** @internal */
|
|
1633
|
-
export const
|
|
1634
|
-
|
|
1672
|
+
export const DataHTTPTool$outboundSchema: z.ZodType<
|
|
1673
|
+
DataHTTPTool$Outbound,
|
|
1635
1674
|
z.ZodTypeDef,
|
|
1636
|
-
|
|
1675
|
+
DataHTTPTool
|
|
1637
1676
|
> = z.object({
|
|
1638
|
-
id: z.string().default("
|
|
1677
|
+
id: z.string().default("tool_01KAJP98A72K9FNYCHBVC5ZRZS"),
|
|
1639
1678
|
path: z.string(),
|
|
1640
1679
|
key: z.string(),
|
|
1641
1680
|
displayName: z.string().optional(),
|
|
@@ -1662,16 +1701,16 @@ export const Data3$outboundSchema: z.ZodType<
|
|
|
1662
1701
|
});
|
|
1663
1702
|
});
|
|
1664
1703
|
|
|
1665
|
-
export function
|
|
1666
|
-
return JSON.stringify(
|
|
1704
|
+
export function dataHTTPToolToJSON(dataHTTPTool: DataHTTPTool): string {
|
|
1705
|
+
return JSON.stringify(DataHTTPTool$outboundSchema.parse(dataHTTPTool));
|
|
1667
1706
|
}
|
|
1668
|
-
export function
|
|
1707
|
+
export function dataHTTPToolFromJSON(
|
|
1669
1708
|
jsonString: string,
|
|
1670
|
-
): SafeParseResult<
|
|
1709
|
+
): SafeParseResult<DataHTTPTool, SDKValidationError> {
|
|
1671
1710
|
return safeParse(
|
|
1672
1711
|
jsonString,
|
|
1673
|
-
(x) =>
|
|
1674
|
-
`Failed to parse '
|
|
1712
|
+
(x) => DataHTTPTool$inboundSchema.parse(JSON.parse(x)),
|
|
1713
|
+
`Failed to parse 'DataHTTPTool' from JSON`,
|
|
1675
1714
|
);
|
|
1676
1715
|
}
|
|
1677
1716
|
|
|
@@ -1792,37 +1831,40 @@ export function dataJsonSchemaFromJSON(
|
|
|
1792
1831
|
}
|
|
1793
1832
|
|
|
1794
1833
|
/** @internal */
|
|
1795
|
-
export const
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1834
|
+
export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
1835
|
+
DataJSONSchemaTool,
|
|
1836
|
+
z.ZodTypeDef,
|
|
1837
|
+
unknown
|
|
1838
|
+
> = z.object({
|
|
1839
|
+
_id: z.string().default("tool_01KAJP98A55P7S4HCHVTKQH70K"),
|
|
1840
|
+
path: z.string(),
|
|
1841
|
+
key: z.string(),
|
|
1842
|
+
display_name: z.string().optional(),
|
|
1843
|
+
description: z.string(),
|
|
1844
|
+
created_by_id: z.string().optional(),
|
|
1845
|
+
updated_by_id: z.string().optional(),
|
|
1846
|
+
project_id: z.string(),
|
|
1847
|
+
workspace_id: z.string(),
|
|
1848
|
+
created: z.string(),
|
|
1849
|
+
updated: z.string(),
|
|
1850
|
+
status: GetAllToolsDataStatus$inboundSchema.default("live"),
|
|
1851
|
+
version_hash: z.string().optional(),
|
|
1852
|
+
type: GetAllToolsDataToolsType$inboundSchema,
|
|
1853
|
+
json_schema: z.lazy(() => DataJsonSchema$inboundSchema),
|
|
1854
|
+
}).transform((v) => {
|
|
1855
|
+
return remap$(v, {
|
|
1856
|
+
"_id": "id",
|
|
1857
|
+
"display_name": "displayName",
|
|
1858
|
+
"created_by_id": "createdById",
|
|
1859
|
+
"updated_by_id": "updatedById",
|
|
1860
|
+
"project_id": "projectId",
|
|
1861
|
+
"workspace_id": "workspaceId",
|
|
1862
|
+
"version_hash": "versionHash",
|
|
1863
|
+
"json_schema": "jsonSchema",
|
|
1823
1864
|
});
|
|
1865
|
+
});
|
|
1824
1866
|
/** @internal */
|
|
1825
|
-
export type
|
|
1867
|
+
export type DataJSONSchemaTool$Outbound = {
|
|
1826
1868
|
_id: string;
|
|
1827
1869
|
path: string;
|
|
1828
1870
|
key: string;
|
|
@@ -1841,12 +1883,12 @@ export type Data2$Outbound = {
|
|
|
1841
1883
|
};
|
|
1842
1884
|
|
|
1843
1885
|
/** @internal */
|
|
1844
|
-
export const
|
|
1845
|
-
|
|
1886
|
+
export const DataJSONSchemaTool$outboundSchema: z.ZodType<
|
|
1887
|
+
DataJSONSchemaTool$Outbound,
|
|
1846
1888
|
z.ZodTypeDef,
|
|
1847
|
-
|
|
1889
|
+
DataJSONSchemaTool
|
|
1848
1890
|
> = z.object({
|
|
1849
|
-
id: z.string().default("
|
|
1891
|
+
id: z.string().default("tool_01KAJP98A55P7S4HCHVTKQH70K"),
|
|
1850
1892
|
path: z.string(),
|
|
1851
1893
|
key: z.string(),
|
|
1852
1894
|
displayName: z.string().optional(),
|
|
@@ -1874,16 +1916,20 @@ export const Data2$outboundSchema: z.ZodType<
|
|
|
1874
1916
|
});
|
|
1875
1917
|
});
|
|
1876
1918
|
|
|
1877
|
-
export function
|
|
1878
|
-
|
|
1919
|
+
export function dataJSONSchemaToolToJSON(
|
|
1920
|
+
dataJSONSchemaTool: DataJSONSchemaTool,
|
|
1921
|
+
): string {
|
|
1922
|
+
return JSON.stringify(
|
|
1923
|
+
DataJSONSchemaTool$outboundSchema.parse(dataJSONSchemaTool),
|
|
1924
|
+
);
|
|
1879
1925
|
}
|
|
1880
|
-
export function
|
|
1926
|
+
export function dataJSONSchemaToolFromJSON(
|
|
1881
1927
|
jsonString: string,
|
|
1882
|
-
): SafeParseResult<
|
|
1928
|
+
): SafeParseResult<DataJSONSchemaTool, SDKValidationError> {
|
|
1883
1929
|
return safeParse(
|
|
1884
1930
|
jsonString,
|
|
1885
|
-
(x) =>
|
|
1886
|
-
`Failed to parse '
|
|
1931
|
+
(x) => DataJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
|
|
1932
|
+
`Failed to parse 'DataJSONSchemaTool' from JSON`,
|
|
1887
1933
|
);
|
|
1888
1934
|
}
|
|
1889
1935
|
|
|
@@ -2022,36 +2068,39 @@ export function getAllToolsDataFunctionFromJSON(
|
|
|
2022
2068
|
}
|
|
2023
2069
|
|
|
2024
2070
|
/** @internal */
|
|
2025
|
-
export const
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2071
|
+
export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
2072
|
+
DataFunctionTool,
|
|
2073
|
+
z.ZodTypeDef,
|
|
2074
|
+
unknown
|
|
2075
|
+
> = z.object({
|
|
2076
|
+
_id: z.string().default("tool_01KAJP98A3CK61H9F3FXA0ZYHG"),
|
|
2077
|
+
path: z.string(),
|
|
2078
|
+
key: z.string(),
|
|
2079
|
+
display_name: z.string().optional(),
|
|
2080
|
+
description: z.string(),
|
|
2081
|
+
created_by_id: z.string().optional(),
|
|
2082
|
+
updated_by_id: z.string().optional(),
|
|
2083
|
+
project_id: z.string(),
|
|
2084
|
+
workspace_id: z.string(),
|
|
2085
|
+
created: z.string(),
|
|
2086
|
+
updated: z.string(),
|
|
2087
|
+
status: DataStatus$inboundSchema.default("live"),
|
|
2088
|
+
version_hash: z.string().optional(),
|
|
2089
|
+
type: GetAllToolsDataType$inboundSchema,
|
|
2090
|
+
function: z.lazy(() => GetAllToolsDataFunction$inboundSchema),
|
|
2091
|
+
}).transform((v) => {
|
|
2092
|
+
return remap$(v, {
|
|
2093
|
+
"_id": "id",
|
|
2094
|
+
"display_name": "displayName",
|
|
2095
|
+
"created_by_id": "createdById",
|
|
2096
|
+
"updated_by_id": "updatedById",
|
|
2097
|
+
"project_id": "projectId",
|
|
2098
|
+
"workspace_id": "workspaceId",
|
|
2099
|
+
"version_hash": "versionHash",
|
|
2052
2100
|
});
|
|
2101
|
+
});
|
|
2053
2102
|
/** @internal */
|
|
2054
|
-
export type
|
|
2103
|
+
export type DataFunctionTool$Outbound = {
|
|
2055
2104
|
_id: string;
|
|
2056
2105
|
path: string;
|
|
2057
2106
|
key: string;
|
|
@@ -2070,12 +2119,12 @@ export type Data1$Outbound = {
|
|
|
2070
2119
|
};
|
|
2071
2120
|
|
|
2072
2121
|
/** @internal */
|
|
2073
|
-
export const
|
|
2074
|
-
|
|
2122
|
+
export const DataFunctionTool$outboundSchema: z.ZodType<
|
|
2123
|
+
DataFunctionTool$Outbound,
|
|
2075
2124
|
z.ZodTypeDef,
|
|
2076
|
-
|
|
2125
|
+
DataFunctionTool
|
|
2077
2126
|
> = z.object({
|
|
2078
|
-
id: z.string().default("
|
|
2127
|
+
id: z.string().default("tool_01KAJP98A3CK61H9F3FXA0ZYHG"),
|
|
2079
2128
|
path: z.string(),
|
|
2080
2129
|
key: z.string(),
|
|
2081
2130
|
displayName: z.string().optional(),
|
|
@@ -2102,16 +2151,20 @@ export const Data1$outboundSchema: z.ZodType<
|
|
|
2102
2151
|
});
|
|
2103
2152
|
});
|
|
2104
2153
|
|
|
2105
|
-
export function
|
|
2106
|
-
|
|
2154
|
+
export function dataFunctionToolToJSON(
|
|
2155
|
+
dataFunctionTool: DataFunctionTool,
|
|
2156
|
+
): string {
|
|
2157
|
+
return JSON.stringify(
|
|
2158
|
+
DataFunctionTool$outboundSchema.parse(dataFunctionTool),
|
|
2159
|
+
);
|
|
2107
2160
|
}
|
|
2108
|
-
export function
|
|
2161
|
+
export function dataFunctionToolFromJSON(
|
|
2109
2162
|
jsonString: string,
|
|
2110
|
-
): SafeParseResult<
|
|
2163
|
+
): SafeParseResult<DataFunctionTool, SDKValidationError> {
|
|
2111
2164
|
return safeParse(
|
|
2112
2165
|
jsonString,
|
|
2113
|
-
(x) =>
|
|
2114
|
-
`Failed to parse '
|
|
2166
|
+
(x) => DataFunctionTool$inboundSchema.parse(JSON.parse(x)),
|
|
2167
|
+
`Failed to parse 'DataFunctionTool' from JSON`,
|
|
2115
2168
|
);
|
|
2116
2169
|
}
|
|
2117
2170
|
|
|
@@ -2121,19 +2174,19 @@ export const GetAllToolsData$inboundSchema: z.ZodType<
|
|
|
2121
2174
|
z.ZodTypeDef,
|
|
2122
2175
|
unknown
|
|
2123
2176
|
> = z.union([
|
|
2124
|
-
z.lazy(() =>
|
|
2125
|
-
z.lazy(() =>
|
|
2126
|
-
z.lazy(() =>
|
|
2127
|
-
z.lazy(() =>
|
|
2128
|
-
z.lazy(() =>
|
|
2177
|
+
z.lazy(() => DataFunctionTool$inboundSchema),
|
|
2178
|
+
z.lazy(() => DataJSONSchemaTool$inboundSchema),
|
|
2179
|
+
z.lazy(() => DataHTTPTool$inboundSchema),
|
|
2180
|
+
z.lazy(() => DataMCPTool$inboundSchema),
|
|
2181
|
+
z.lazy(() => DataCodeExecutionTool$inboundSchema),
|
|
2129
2182
|
]);
|
|
2130
2183
|
/** @internal */
|
|
2131
2184
|
export type GetAllToolsData$Outbound =
|
|
2132
|
-
|
|
|
2133
|
-
|
|
|
2134
|
-
|
|
|
2135
|
-
|
|
|
2136
|
-
|
|
|
2185
|
+
| DataFunctionTool$Outbound
|
|
2186
|
+
| DataJSONSchemaTool$Outbound
|
|
2187
|
+
| DataHTTPTool$Outbound
|
|
2188
|
+
| DataMCPTool$Outbound
|
|
2189
|
+
| DataCodeExecutionTool$Outbound;
|
|
2137
2190
|
|
|
2138
2191
|
/** @internal */
|
|
2139
2192
|
export const GetAllToolsData$outboundSchema: z.ZodType<
|
|
@@ -2141,11 +2194,11 @@ export const GetAllToolsData$outboundSchema: z.ZodType<
|
|
|
2141
2194
|
z.ZodTypeDef,
|
|
2142
2195
|
GetAllToolsData
|
|
2143
2196
|
> = z.union([
|
|
2144
|
-
z.lazy(() =>
|
|
2145
|
-
z.lazy(() =>
|
|
2146
|
-
z.lazy(() =>
|
|
2147
|
-
z.lazy(() =>
|
|
2148
|
-
z.lazy(() =>
|
|
2197
|
+
z.lazy(() => DataFunctionTool$outboundSchema),
|
|
2198
|
+
z.lazy(() => DataJSONSchemaTool$outboundSchema),
|
|
2199
|
+
z.lazy(() => DataHTTPTool$outboundSchema),
|
|
2200
|
+
z.lazy(() => DataMCPTool$outboundSchema),
|
|
2201
|
+
z.lazy(() => DataCodeExecutionTool$outboundSchema),
|
|
2149
2202
|
]);
|
|
2150
2203
|
|
|
2151
2204
|
export function getAllToolsDataToJSON(
|
|
@@ -2172,11 +2225,11 @@ export const GetAllToolsResponseBody$inboundSchema: z.ZodType<
|
|
|
2172
2225
|
object: GetAllToolsObject$inboundSchema,
|
|
2173
2226
|
data: z.array(
|
|
2174
2227
|
z.union([
|
|
2175
|
-
z.lazy(() =>
|
|
2176
|
-
z.lazy(() =>
|
|
2177
|
-
z.lazy(() =>
|
|
2178
|
-
z.lazy(() =>
|
|
2179
|
-
z.lazy(() =>
|
|
2228
|
+
z.lazy(() => DataFunctionTool$inboundSchema),
|
|
2229
|
+
z.lazy(() => DataJSONSchemaTool$inboundSchema),
|
|
2230
|
+
z.lazy(() => DataHTTPTool$inboundSchema),
|
|
2231
|
+
z.lazy(() => DataMCPTool$inboundSchema),
|
|
2232
|
+
z.lazy(() => DataCodeExecutionTool$inboundSchema),
|
|
2180
2233
|
]),
|
|
2181
2234
|
),
|
|
2182
2235
|
has_more: z.boolean(),
|
|
@@ -2189,11 +2242,11 @@ export const GetAllToolsResponseBody$inboundSchema: z.ZodType<
|
|
|
2189
2242
|
export type GetAllToolsResponseBody$Outbound = {
|
|
2190
2243
|
object: string;
|
|
2191
2244
|
data: Array<
|
|
2192
|
-
|
|
|
2193
|
-
|
|
|
2194
|
-
|
|
|
2195
|
-
|
|
|
2196
|
-
|
|
|
2245
|
+
| DataFunctionTool$Outbound
|
|
2246
|
+
| DataJSONSchemaTool$Outbound
|
|
2247
|
+
| DataHTTPTool$Outbound
|
|
2248
|
+
| DataMCPTool$Outbound
|
|
2249
|
+
| DataCodeExecutionTool$Outbound
|
|
2197
2250
|
>;
|
|
2198
2251
|
has_more: boolean;
|
|
2199
2252
|
};
|
|
@@ -2207,11 +2260,11 @@ export const GetAllToolsResponseBody$outboundSchema: z.ZodType<
|
|
|
2207
2260
|
object: GetAllToolsObject$outboundSchema,
|
|
2208
2261
|
data: z.array(
|
|
2209
2262
|
z.union([
|
|
2210
|
-
z.lazy(() =>
|
|
2211
|
-
z.lazy(() =>
|
|
2212
|
-
z.lazy(() =>
|
|
2213
|
-
z.lazy(() =>
|
|
2214
|
-
z.lazy(() =>
|
|
2263
|
+
z.lazy(() => DataFunctionTool$outboundSchema),
|
|
2264
|
+
z.lazy(() => DataJSONSchemaTool$outboundSchema),
|
|
2265
|
+
z.lazy(() => DataHTTPTool$outboundSchema),
|
|
2266
|
+
z.lazy(() => DataMCPTool$outboundSchema),
|
|
2267
|
+
z.lazy(() => DataCodeExecutionTool$outboundSchema),
|
|
2215
2268
|
]),
|
|
2216
2269
|
),
|
|
2217
2270
|
hasMore: z.boolean(),
|