@orq-ai/node 4.0.0-rc.52 → 4.0.0-rc.53
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 +5274 -1578
- package/bin/mcp-server.js.map +44 -44
- package/docs/sdks/agents/README.md +40 -2
- package/examples/package-lock.json +1 -1
- package/funcs/agentsStream.js +2 -0
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.js +2 -0
- package/funcs/agentsStreamRun.js.map +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/createagent.d.ts +17 -7
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +12 -4
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +70 -70
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +162 -169
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +5 -0
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +4 -0
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.d.ts +34 -34
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +74 -79
- 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/listagents.d.ts +5 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +4 -0
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamagent.d.ts +2658 -106
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +2936 -5
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +3268 -716
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +2936 -12
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +17 -7
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +12 -4
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/src/funcs/agentsStream.ts +1 -0
- package/src/funcs/agentsStreamRun.ts +1 -0
- 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/createagent.ts +31 -13
- 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 +368 -294
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagent.ts +9 -0
- package/src/models/operations/getalltools.ts +277 -231
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listagents.ts +9 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/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 +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamagent.ts +7595 -380
- package/src/models/operations/streamrunagent.ts +10703 -3540
- package/src/models/operations/updateagent.ts +31 -13
- 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 +14 -14
|
@@ -2571,7 +2571,7 @@ export const ResponseBody5$inboundSchema: z.ZodType<
|
|
|
2571
2571
|
z.ZodTypeDef,
|
|
2572
2572
|
unknown
|
|
2573
2573
|
> = z.object({
|
|
2574
|
-
_id: z.string().default("
|
|
2574
|
+
_id: z.string().default("tool_01KAG5HRAENFTM82GE01AWY7ME"),
|
|
2575
2575
|
path: z.string(),
|
|
2576
2576
|
key: z.string(),
|
|
2577
2577
|
display_name: z.string().optional(),
|
|
@@ -2625,7 +2625,7 @@ export const ResponseBody5$outboundSchema: z.ZodType<
|
|
|
2625
2625
|
z.ZodTypeDef,
|
|
2626
2626
|
ResponseBody5
|
|
2627
2627
|
> = z.object({
|
|
2628
|
-
id: z.string().default("
|
|
2628
|
+
id: z.string().default("tool_01KAG5HRAENFTM82GE01AWY7ME"),
|
|
2629
2629
|
path: z.string(),
|
|
2630
2630
|
key: z.string(),
|
|
2631
2631
|
displayName: z.string().optional(),
|
|
@@ -2795,7 +2795,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2795
2795
|
z.ZodTypeDef,
|
|
2796
2796
|
unknown
|
|
2797
2797
|
> = z.object({
|
|
2798
|
-
id: z.string().default("
|
|
2798
|
+
id: z.string().default("01KAG5HRAAYQPZAM003Q1VJCWT"),
|
|
2799
2799
|
name: z.string(),
|
|
2800
2800
|
description: z.string().optional(),
|
|
2801
2801
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2814,7 +2814,7 @@ export const ResponseBodyTools$outboundSchema: z.ZodType<
|
|
|
2814
2814
|
z.ZodTypeDef,
|
|
2815
2815
|
ResponseBodyTools
|
|
2816
2816
|
> = z.object({
|
|
2817
|
-
id: z.string().default("
|
|
2817
|
+
id: z.string().default("01KAG5HRAAYQPZAM003Q1VJCWT"),
|
|
2818
2818
|
name: z.string(),
|
|
2819
2819
|
description: z.string().optional(),
|
|
2820
2820
|
schema: z.lazy(() => CreateToolResponseBodySchema$outboundSchema),
|
|
@@ -2909,7 +2909,7 @@ export const ResponseBody4$inboundSchema: z.ZodType<
|
|
|
2909
2909
|
z.ZodTypeDef,
|
|
2910
2910
|
unknown
|
|
2911
2911
|
> = z.object({
|
|
2912
|
-
_id: z.string().default("
|
|
2912
|
+
_id: z.string().default("tool_01KAG5HRA8QVKHMQHKF2EH229B"),
|
|
2913
2913
|
path: z.string(),
|
|
2914
2914
|
key: z.string(),
|
|
2915
2915
|
display_name: z.string().optional(),
|
|
@@ -2962,7 +2962,7 @@ export const ResponseBody4$outboundSchema: z.ZodType<
|
|
|
2962
2962
|
z.ZodTypeDef,
|
|
2963
2963
|
ResponseBody4
|
|
2964
2964
|
> = z.object({
|
|
2965
|
-
id: z.string().default("
|
|
2965
|
+
id: z.string().default("tool_01KAG5HRA8QVKHMQHKF2EH229B"),
|
|
2966
2966
|
path: z.string(),
|
|
2967
2967
|
key: z.string(),
|
|
2968
2968
|
displayName: z.string().optional(),
|
|
@@ -3318,7 +3318,7 @@ export const ResponseBody3$inboundSchema: z.ZodType<
|
|
|
3318
3318
|
z.ZodTypeDef,
|
|
3319
3319
|
unknown
|
|
3320
3320
|
> = z.object({
|
|
3321
|
-
_id: z.string().default("
|
|
3321
|
+
_id: z.string().default("tool_01KAG5HRA459P8D8CZ89Z81WHY"),
|
|
3322
3322
|
path: z.string(),
|
|
3323
3323
|
key: z.string(),
|
|
3324
3324
|
display_name: z.string().optional(),
|
|
@@ -3369,7 +3369,7 @@ export const ResponseBody3$outboundSchema: z.ZodType<
|
|
|
3369
3369
|
z.ZodTypeDef,
|
|
3370
3370
|
ResponseBody3
|
|
3371
3371
|
> = z.object({
|
|
3372
|
-
id: z.string().default("
|
|
3372
|
+
id: z.string().default("tool_01KAG5HRA459P8D8CZ89Z81WHY"),
|
|
3373
3373
|
path: z.string(),
|
|
3374
3374
|
key: z.string(),
|
|
3375
3375
|
displayName: z.string().optional(),
|
|
@@ -3539,7 +3539,7 @@ export const ResponseBody2$inboundSchema: z.ZodType<
|
|
|
3539
3539
|
z.ZodTypeDef,
|
|
3540
3540
|
unknown
|
|
3541
3541
|
> = z.object({
|
|
3542
|
-
_id: z.string().default("
|
|
3542
|
+
_id: z.string().default("tool_01KAG5HRA22WZGSGX56C12M5K0"),
|
|
3543
3543
|
path: z.string(),
|
|
3544
3544
|
key: z.string(),
|
|
3545
3545
|
display_name: z.string().optional(),
|
|
@@ -3591,7 +3591,7 @@ export const ResponseBody2$outboundSchema: z.ZodType<
|
|
|
3591
3591
|
z.ZodTypeDef,
|
|
3592
3592
|
ResponseBody2
|
|
3593
3593
|
> = z.object({
|
|
3594
|
-
id: z.string().default("
|
|
3594
|
+
id: z.string().default("tool_01KAG5HRA22WZGSGX56C12M5K0"),
|
|
3595
3595
|
path: z.string(),
|
|
3596
3596
|
key: z.string(),
|
|
3597
3597
|
displayName: z.string().optional(),
|
|
@@ -3777,7 +3777,7 @@ export const ResponseBody1$inboundSchema: z.ZodType<
|
|
|
3777
3777
|
z.ZodTypeDef,
|
|
3778
3778
|
unknown
|
|
3779
3779
|
> = z.object({
|
|
3780
|
-
_id: z.string().default("
|
|
3780
|
+
_id: z.string().default("tool_01KAG5HRA00AXPVY1A96W3970T"),
|
|
3781
3781
|
path: z.string(),
|
|
3782
3782
|
key: z.string(),
|
|
3783
3783
|
display_name: z.string().optional(),
|
|
@@ -3828,7 +3828,7 @@ export const ResponseBody1$outboundSchema: z.ZodType<
|
|
|
3828
3828
|
z.ZodTypeDef,
|
|
3829
3829
|
ResponseBody1
|
|
3830
3830
|
> = z.object({
|
|
3831
|
-
id: z.string().default("
|
|
3831
|
+
id: z.string().default("tool_01KAG5HRA00AXPVY1A96W3970T"),
|
|
3832
3832
|
path: z.string(),
|
|
3833
3833
|
key: z.string(),
|
|
3834
3834
|
displayName: z.string().optional(),
|
|
@@ -119,7 +119,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
119
119
|
file_name: z.string(),
|
|
120
120
|
workspace_id: z.string(),
|
|
121
121
|
created: z.string().datetime({ offset: true }).default(
|
|
122
|
-
"2025-11-
|
|
122
|
+
"2025-11-20T08:19:20.486Z",
|
|
123
123
|
).transform(v => new Date(v)),
|
|
124
124
|
}).transform((v) => {
|
|
125
125
|
return remap$(v, {
|
|
@@ -152,7 +152,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
152
152
|
bytes: z.number(),
|
|
153
153
|
fileName: z.string(),
|
|
154
154
|
workspaceId: z.string(),
|
|
155
|
-
created: z.date().default(() => new Date("2025-11-
|
|
155
|
+
created: z.date().default(() => new Date("2025-11-20T08:19:20.486Z"))
|
|
156
156
|
.transform(v => v.toISOString()),
|
|
157
157
|
}).transform((v) => {
|
|
158
158
|
return remap$(v, {
|
|
@@ -157,7 +157,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
157
157
|
file_name: z.string(),
|
|
158
158
|
workspace_id: z.string(),
|
|
159
159
|
created: z.string().datetime({ offset: true }).default(
|
|
160
|
-
"2025-11-
|
|
160
|
+
"2025-11-20T08:19:20.486Z",
|
|
161
161
|
).transform(v => new Date(v)),
|
|
162
162
|
}).transform((v) => {
|
|
163
163
|
return remap$(v, {
|
|
@@ -190,7 +190,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
190
190
|
bytes: z.number(),
|
|
191
191
|
fileName: z.string(),
|
|
192
192
|
workspaceId: z.string(),
|
|
193
|
-
created: z.date().default(() => new Date("2025-11-
|
|
193
|
+
created: z.date().default(() => new Date("2025-11-20T08:19:20.486Z"))
|
|
194
194
|
.transform(v => v.toISOString()),
|
|
195
195
|
}).transform((v) => {
|
|
196
196
|
return remap$(v, {
|
|
@@ -196,7 +196,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-11-
|
|
199
|
+
"2025-11-20T08:19:20.486Z",
|
|
200
200
|
).transform(v => new Date(v)),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
@@ -229,7 +229,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
229
229
|
bytes: z.number(),
|
|
230
230
|
fileName: z.string(),
|
|
231
231
|
workspaceId: z.string(),
|
|
232
|
-
created: z.date().default(() => new Date("2025-11-
|
|
232
|
+
created: z.date().default(() => new Date("2025-11-20T08:19:20.486Z"))
|
|
233
233
|
.transform(v => v.toISOString()),
|
|
234
234
|
}).transform((v) => {
|
|
235
235
|
return remap$(v, {
|
|
@@ -76,6 +76,10 @@ export type GetAgentTools = {
|
|
|
76
76
|
*/
|
|
77
77
|
description?: string | undefined;
|
|
78
78
|
requiresApproval?: boolean | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
81
|
+
*/
|
|
82
|
+
toolId?: string | undefined;
|
|
79
83
|
conditions?: Array<GetAgentConditions> | undefined;
|
|
80
84
|
/**
|
|
81
85
|
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
@@ -1073,6 +1077,7 @@ export const GetAgentTools$inboundSchema: z.ZodType<
|
|
|
1073
1077
|
display_name: z.string().optional(),
|
|
1074
1078
|
description: z.string().optional(),
|
|
1075
1079
|
requires_approval: z.boolean().default(false),
|
|
1080
|
+
tool_id: z.string().optional(),
|
|
1076
1081
|
conditions: z.array(z.lazy(() => GetAgentConditions$inboundSchema))
|
|
1077
1082
|
.optional(),
|
|
1078
1083
|
timeout: z.number().default(120),
|
|
@@ -1081,6 +1086,7 @@ export const GetAgentTools$inboundSchema: z.ZodType<
|
|
|
1081
1086
|
"action_type": "actionType",
|
|
1082
1087
|
"display_name": "displayName",
|
|
1083
1088
|
"requires_approval": "requiresApproval",
|
|
1089
|
+
"tool_id": "toolId",
|
|
1084
1090
|
});
|
|
1085
1091
|
});
|
|
1086
1092
|
/** @internal */
|
|
@@ -1091,6 +1097,7 @@ export type GetAgentTools$Outbound = {
|
|
|
1091
1097
|
display_name?: string | undefined;
|
|
1092
1098
|
description?: string | undefined;
|
|
1093
1099
|
requires_approval: boolean;
|
|
1100
|
+
tool_id?: string | undefined;
|
|
1094
1101
|
conditions?: Array<GetAgentConditions$Outbound> | undefined;
|
|
1095
1102
|
timeout: number;
|
|
1096
1103
|
};
|
|
@@ -1107,6 +1114,7 @@ export const GetAgentTools$outboundSchema: z.ZodType<
|
|
|
1107
1114
|
displayName: z.string().optional(),
|
|
1108
1115
|
description: z.string().optional(),
|
|
1109
1116
|
requiresApproval: z.boolean().default(false),
|
|
1117
|
+
toolId: z.string().optional(),
|
|
1110
1118
|
conditions: z.array(z.lazy(() => GetAgentConditions$outboundSchema))
|
|
1111
1119
|
.optional(),
|
|
1112
1120
|
timeout: z.number().default(120),
|
|
@@ -1115,6 +1123,7 @@ export const GetAgentTools$outboundSchema: z.ZodType<
|
|
|
1115
1123
|
actionType: "action_type",
|
|
1116
1124
|
displayName: "display_name",
|
|
1117
1125
|
requiresApproval: "requires_approval",
|
|
1126
|
+
toolId: "tool_id",
|
|
1118
1127
|
});
|
|
1119
1128
|
});
|
|
1120
1129
|
|