@orq-ai/node 4.2.0-rc.27 → 4.2.0-rc.29
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 +458 -268
- package/bin/mcp-server.js.map +43 -43
- 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/components/conversationresponse.js +2 -2
- package/models/components/conversationwithmessagesresponse.js +2 -2
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/operations/createagentrequest.d.ts +58 -10
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +59 -13
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.js +2 -2
- package/models/operations/createconversationresponse.js +4 -4
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.d.ts +8 -8
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +23 -23
- 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/generateconversationname.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getevals.js +28 -28
- 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.d.ts +120 -18
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +117 -22
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +120 -18
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +117 -20
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +58 -10
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +59 -13
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.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/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/components/conversationresponse.ts +2 -2
- package/src/models/components/conversationwithmessagesresponse.ts +2 -2
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/operations/createagentrequest.ts +132 -15
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +2 -2
- package/src/models/operations/createconversationresponse.ts +4 -4
- 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 +33 -29
- 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/generateconversationname.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getevals.ts +28 -28
- 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 +280 -36
- package/src/models/operations/streamrunagent.ts +323 -46
- package/src/models/operations/updateagent.ts +138 -15
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.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
|
@@ -224,7 +224,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
224
224
|
z.ZodTypeDef,
|
|
225
225
|
unknown
|
|
226
226
|
> = z.object({
|
|
227
|
-
_id: z.string().default("
|
|
227
|
+
_id: z.string().default("01KEYB6FPAYQMZ6EWRP57N6CMK"),
|
|
228
228
|
display_name: z.string(),
|
|
229
229
|
description: z.string().optional(),
|
|
230
230
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -267,7 +267,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
|
|
|
267
267
|
z.ZodTypeDef,
|
|
268
268
|
ListDatasourcesData
|
|
269
269
|
> = z.object({
|
|
270
|
-
id: z.string().default("
|
|
270
|
+
id: z.string().default("01KEYB6FPAYQMZ6EWRP57N6CMK"),
|
|
271
271
|
displayName: z.string(),
|
|
272
272
|
description: z.string().optional(),
|
|
273
273
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -112,7 +112,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
|
|
|
112
112
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
113
113
|
.optional(),
|
|
114
114
|
updated: z.string().datetime({ offset: true }).default(
|
|
115
|
-
"2026-01-
|
|
115
|
+
"2026-01-14T13:30:08.520Z",
|
|
116
116
|
).transform(v => new Date(v)),
|
|
117
117
|
}).transform((v) => {
|
|
118
118
|
return remap$(v, {
|
|
@@ -149,7 +149,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
|
|
|
149
149
|
tags: z.array(z.string()).optional(),
|
|
150
150
|
metadata: z.record(z.any()).optional(),
|
|
151
151
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
152
|
-
updated: z.date().default(() => new Date("2026-01-
|
|
152
|
+
updated: z.date().default(() => new Date("2026-01-14T13:30:08.520Z"))
|
|
153
153
|
.transform(v => v.toISOString()),
|
|
154
154
|
}).transform((v) => {
|
|
155
155
|
return remap$(v, {
|
|
@@ -1878,7 +1878,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1878
1878
|
.default("orq"),
|
|
1879
1879
|
reviewed_by_id: z.string(),
|
|
1880
1880
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1881
|
-
"2026-01-
|
|
1881
|
+
"2026-01-14T13:30:22.662Z",
|
|
1882
1882
|
).transform(v => new Date(v)),
|
|
1883
1883
|
type: z.literal("string_array"),
|
|
1884
1884
|
values: z.array(z.string()),
|
|
@@ -1915,7 +1915,7 @@ export const RetrieveDatapointEvaluations3$outboundSchema: z.ZodType<
|
|
|
1915
1915
|
source: RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema
|
|
1916
1916
|
.default("orq"),
|
|
1917
1917
|
reviewedById: z.string(),
|
|
1918
|
-
reviewedAt: z.date().default(() => new Date("2026-01-
|
|
1918
|
+
reviewedAt: z.date().default(() => new Date("2026-01-14T13:30:22.662Z"))
|
|
1919
1919
|
.transform(v => v.toISOString()),
|
|
1920
1920
|
type: z.literal("string_array"),
|
|
1921
1921
|
values: z.array(z.string()),
|
|
@@ -1980,7 +1980,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1980
1980
|
),
|
|
1981
1981
|
reviewed_by_id: z.string(),
|
|
1982
1982
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1983
|
-
"2026-01-
|
|
1983
|
+
"2026-01-14T13:30:22.660Z",
|
|
1984
1984
|
).transform(v => new Date(v)),
|
|
1985
1985
|
type: z.literal("number"),
|
|
1986
1986
|
value: z.number(),
|
|
@@ -2018,7 +2018,7 @@ export const RetrieveDatapointEvaluations2$outboundSchema: z.ZodType<
|
|
|
2018
2018
|
"orq",
|
|
2019
2019
|
),
|
|
2020
2020
|
reviewedById: z.string(),
|
|
2021
|
-
reviewedAt: z.date().default(() => new Date("2026-01-
|
|
2021
|
+
reviewedAt: z.date().default(() => new Date("2026-01-14T13:30:22.660Z"))
|
|
2022
2022
|
.transform(v => v.toISOString()),
|
|
2023
2023
|
type: z.literal("number"),
|
|
2024
2024
|
value: z.number(),
|
|
@@ -2080,7 +2080,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2080
2080
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2081
2081
|
reviewed_by_id: z.string(),
|
|
2082
2082
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2083
|
-
"2026-01-
|
|
2083
|
+
"2026-01-14T13:30:22.655Z",
|
|
2084
2084
|
).transform(v => new Date(v)),
|
|
2085
2085
|
type: z.literal("string"),
|
|
2086
2086
|
value: z.string(),
|
|
@@ -2115,7 +2115,7 @@ export const RetrieveDatapointEvaluations1$outboundSchema: z.ZodType<
|
|
|
2115
2115
|
humanReviewId: z.string(),
|
|
2116
2116
|
source: RetrieveDatapointEvaluationsSource$outboundSchema.default("orq"),
|
|
2117
2117
|
reviewedById: z.string(),
|
|
2118
|
-
reviewedAt: z.date().default(() => new Date("2026-01-
|
|
2118
|
+
reviewedAt: z.date().default(() => new Date("2026-01-14T13:30:22.655Z"))
|
|
2119
2119
|
.transform(v => v.toISOString()),
|
|
2120
2120
|
type: z.literal("string"),
|
|
2121
2121
|
value: z.string(),
|
|
@@ -2226,7 +2226,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2226
2226
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2227
2227
|
.optional(),
|
|
2228
2228
|
updated: z.string().datetime({ offset: true }).default(
|
|
2229
|
-
"2026-01-
|
|
2229
|
+
"2026-01-14T13:30:08.520Z",
|
|
2230
2230
|
).transform(v => new Date(v)),
|
|
2231
2231
|
}).transform((v) => {
|
|
2232
2232
|
return remap$(v, {
|
|
@@ -2300,7 +2300,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
2300
2300
|
createdById: z.string().optional(),
|
|
2301
2301
|
updatedById: z.string().optional(),
|
|
2302
2302
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2303
|
-
updated: z.date().default(() => new Date("2026-01-
|
|
2303
|
+
updated: z.date().default(() => new Date("2026-01-14T13:30:08.520Z"))
|
|
2304
2304
|
.transform(v => v.toISOString()),
|
|
2305
2305
|
}).transform((v) => {
|
|
2306
2306
|
return remap$(v, {
|
|
@@ -174,7 +174,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
174
174
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
175
175
|
.optional(),
|
|
176
176
|
updated: z.string().datetime({ offset: true }).default(
|
|
177
|
-
"2026-01-
|
|
177
|
+
"2026-01-14T13:30:08.520Z",
|
|
178
178
|
).transform(v => new Date(v)),
|
|
179
179
|
}).transform((v) => {
|
|
180
180
|
return remap$(v, {
|
|
@@ -213,7 +213,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
213
213
|
createdById: z.string().optional(),
|
|
214
214
|
updatedById: z.string().optional(),
|
|
215
215
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
216
|
-
updated: z.date().default(() => new Date("2026-01-
|
|
216
|
+
updated: z.date().default(() => new Date("2026-01-14T13:30:08.520Z"))
|
|
217
217
|
.transform(v => v.toISOString()),
|
|
218
218
|
}).transform((v) => {
|
|
219
219
|
return remap$(v, {
|
|
@@ -145,7 +145,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
145
145
|
z.ZodTypeDef,
|
|
146
146
|
unknown
|
|
147
147
|
> = z.object({
|
|
148
|
-
_id: z.string().default("
|
|
148
|
+
_id: z.string().default("01KEYB6FPEFR0VY2NTH5C1QNJS"),
|
|
149
149
|
display_name: z.string(),
|
|
150
150
|
description: z.string().optional(),
|
|
151
151
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -188,7 +188,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
188
188
|
z.ZodTypeDef,
|
|
189
189
|
RetrieveDatasourceResponseBody
|
|
190
190
|
> = z.object({
|
|
191
|
-
id: z.string().default("
|
|
191
|
+
id: z.string().default("01KEYB6FPEFR0VY2NTH5C1QNJS"),
|
|
192
192
|
displayName: z.string(),
|
|
193
193
|
description: z.string().optional(),
|
|
194
194
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -858,7 +858,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
858
858
|
z.ZodTypeDef,
|
|
859
859
|
unknown
|
|
860
860
|
> = z.object({
|
|
861
|
-
_id: z.string().default("
|
|
861
|
+
_id: z.string().default("tool_01KEYB6FJBEYWZD6KPYW5V8SWJ"),
|
|
862
862
|
path: z.string(),
|
|
863
863
|
key: z.string(),
|
|
864
864
|
display_name: z.string().optional(),
|
|
@@ -913,7 +913,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$outboundSchema:
|
|
|
913
913
|
z.ZodTypeDef,
|
|
914
914
|
RetrieveToolResponseBodyCodeExecutionTool
|
|
915
915
|
> = z.object({
|
|
916
|
-
id: z.string().default("
|
|
916
|
+
id: z.string().default("tool_01KEYB6FJBEYWZD6KPYW5V8SWJ"),
|
|
917
917
|
path: z.string(),
|
|
918
918
|
key: z.string(),
|
|
919
919
|
displayName: z.string().optional(),
|
|
@@ -1092,7 +1092,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1092
1092
|
z.ZodTypeDef,
|
|
1093
1093
|
unknown
|
|
1094
1094
|
> = z.object({
|
|
1095
|
-
id: z.string().default("
|
|
1095
|
+
id: z.string().default("01KEYB6FJADTPMVFVG6HTG6SRS"),
|
|
1096
1096
|
name: z.string(),
|
|
1097
1097
|
description: z.string().optional(),
|
|
1098
1098
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -1111,7 +1111,7 @@ export const RetrieveToolResponseBodyTools$outboundSchema: z.ZodType<
|
|
|
1111
1111
|
z.ZodTypeDef,
|
|
1112
1112
|
RetrieveToolResponseBodyTools
|
|
1113
1113
|
> = z.object({
|
|
1114
|
-
id: z.string().default("
|
|
1114
|
+
id: z.string().default("01KEYB6FJADTPMVFVG6HTG6SRS"),
|
|
1115
1115
|
name: z.string(),
|
|
1116
1116
|
description: z.string().optional(),
|
|
1117
1117
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$outboundSchema),
|
|
@@ -1217,7 +1217,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
1217
1217
|
z.ZodTypeDef,
|
|
1218
1218
|
unknown
|
|
1219
1219
|
> = z.object({
|
|
1220
|
-
_id: z.string().default("
|
|
1220
|
+
_id: z.string().default("tool_01KEYB6FJ18GZ1EFAG8AZPMAH8"),
|
|
1221
1221
|
path: z.string(),
|
|
1222
1222
|
key: z.string(),
|
|
1223
1223
|
display_name: z.string().optional(),
|
|
@@ -1270,7 +1270,7 @@ export const RetrieveToolResponseBodyMCPTool$outboundSchema: z.ZodType<
|
|
|
1270
1270
|
z.ZodTypeDef,
|
|
1271
1271
|
RetrieveToolResponseBodyMCPTool
|
|
1272
1272
|
> = z.object({
|
|
1273
|
-
id: z.string().default("
|
|
1273
|
+
id: z.string().default("tool_01KEYB6FJ18GZ1EFAG8AZPMAH8"),
|
|
1274
1274
|
path: z.string(),
|
|
1275
1275
|
key: z.string(),
|
|
1276
1276
|
displayName: z.string().optional(),
|
|
@@ -1641,7 +1641,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1641
1641
|
z.ZodTypeDef,
|
|
1642
1642
|
unknown
|
|
1643
1643
|
> = z.object({
|
|
1644
|
-
_id: z.string().default("
|
|
1644
|
+
_id: z.string().default("tool_01KEYB6FHZ748DMV14AX404BNE"),
|
|
1645
1645
|
path: z.string(),
|
|
1646
1646
|
key: z.string(),
|
|
1647
1647
|
display_name: z.string().optional(),
|
|
@@ -1694,7 +1694,7 @@ export const RetrieveToolResponseBodyHTTPTool$outboundSchema: z.ZodType<
|
|
|
1694
1694
|
z.ZodTypeDef,
|
|
1695
1695
|
RetrieveToolResponseBodyHTTPTool
|
|
1696
1696
|
> = z.object({
|
|
1697
|
-
id: z.string().default("
|
|
1697
|
+
id: z.string().default("tool_01KEYB6FHZ748DMV14AX404BNE"),
|
|
1698
1698
|
path: z.string(),
|
|
1699
1699
|
key: z.string(),
|
|
1700
1700
|
displayName: z.string().optional(),
|
|
@@ -1868,7 +1868,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1868
1868
|
z.ZodTypeDef,
|
|
1869
1869
|
unknown
|
|
1870
1870
|
> = z.object({
|
|
1871
|
-
_id: z.string().default("
|
|
1871
|
+
_id: z.string().default("tool_01KEYB6FHYMA1C9JJT7R65EG5R"),
|
|
1872
1872
|
path: z.string(),
|
|
1873
1873
|
key: z.string(),
|
|
1874
1874
|
display_name: z.string().optional(),
|
|
@@ -1920,7 +1920,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$outboundSchema: z.ZodType<
|
|
|
1920
1920
|
z.ZodTypeDef,
|
|
1921
1921
|
RetrieveToolResponseBodyJSONSchemaTool
|
|
1922
1922
|
> = z.object({
|
|
1923
|
-
id: z.string().default("
|
|
1923
|
+
id: z.string().default("tool_01KEYB6FHYMA1C9JJT7R65EG5R"),
|
|
1924
1924
|
path: z.string(),
|
|
1925
1925
|
key: z.string(),
|
|
1926
1926
|
displayName: z.string().optional(),
|
|
@@ -2113,7 +2113,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2113
2113
|
z.ZodTypeDef,
|
|
2114
2114
|
unknown
|
|
2115
2115
|
> = z.object({
|
|
2116
|
-
_id: z.string().default("
|
|
2116
|
+
_id: z.string().default("tool_01KEYB6FHXBW5MR9WF1D9P621N"),
|
|
2117
2117
|
path: z.string(),
|
|
2118
2118
|
key: z.string(),
|
|
2119
2119
|
display_name: z.string().optional(),
|
|
@@ -2164,7 +2164,7 @@ export const RetrieveToolResponseBodyFunctionTool$outboundSchema: z.ZodType<
|
|
|
2164
2164
|
z.ZodTypeDef,
|
|
2165
2165
|
RetrieveToolResponseBodyFunctionTool
|
|
2166
2166
|
> = z.object({
|
|
2167
|
-
id: z.string().default("
|
|
2167
|
+
id: z.string().default("tool_01KEYB6FHXBW5MR9WF1D9P621N"),
|
|
2168
2168
|
path: z.string(),
|
|
2169
2169
|
key: z.string(),
|
|
2170
2170
|
displayName: z.string().optional(),
|