@orq-ai/node 4.5.3 → 4.5.5
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/funcs/deploymentsStream.js +1 -1
- package/funcs/deploymentsStream.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/event-streams.d.ts +3 -1
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js +6 -3
- package/lib/event-streams.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentresponserequest.js +1 -1
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createchatcompletion.js +1 -1
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.js +1 -1
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createresponse.js +1 -1
- package/models/operations/createresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deployments.d.ts +1 -1
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +1 -1
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
- package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
- package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/src/funcs/deploymentsStream.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +5 -1
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentresponserequest.ts +1 -1
- package/src/models/operations/createchatcompletion.ts +1 -1
- package/src/models/operations/createcompletion.ts +1 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createresponse.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deployments.ts +2 -2
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -176,7 +176,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
176
176
|
z.ZodTypeDef,
|
|
177
177
|
unknown
|
|
178
178
|
> = z.object({
|
|
179
|
-
_id: z.string().default("
|
|
179
|
+
_id: z.string().default("01KKEEKG1P7QE4J97N2G7G9MB6"),
|
|
180
180
|
display_name: z.string(),
|
|
181
181
|
description: z.string().optional(),
|
|
182
182
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -227,7 +227,7 @@ export const ListIdentitiesData$inboundSchema: z.ZodType<
|
|
|
227
227
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
228
228
|
.optional(),
|
|
229
229
|
updated: z.string().datetime({ offset: true }).default(
|
|
230
|
-
"2026-03-
|
|
230
|
+
"2026-03-11T12:40:16.356Z",
|
|
231
231
|
).transform(v => new Date(v)),
|
|
232
232
|
metrics: z.lazy(() => ListIdentitiesMetrics$inboundSchema),
|
|
233
233
|
}).transform((v) => {
|
|
@@ -1207,7 +1207,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1207
1207
|
.default("orq"),
|
|
1208
1208
|
reviewed_by_id: z.string(),
|
|
1209
1209
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1210
|
-
"2026-03-
|
|
1210
|
+
"2026-03-11T12:40:32.674Z",
|
|
1211
1211
|
).transform(v => new Date(v)),
|
|
1212
1212
|
type: z.literal("string_array"),
|
|
1213
1213
|
values: z.array(z.string()),
|
|
@@ -1255,7 +1255,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1255
1255
|
),
|
|
1256
1256
|
reviewed_by_id: z.string(),
|
|
1257
1257
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1258
|
-
"2026-03-
|
|
1258
|
+
"2026-03-11T12:40:32.673Z",
|
|
1259
1259
|
).transform(v => new Date(v)),
|
|
1260
1260
|
type: z.literal("number"),
|
|
1261
1261
|
value: z.number(),
|
|
@@ -1300,7 +1300,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1300
1300
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
1301
1301
|
reviewed_by_id: z.string(),
|
|
1302
1302
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1303
|
-
"2026-03-
|
|
1303
|
+
"2026-03-11T12:40:32.673Z",
|
|
1304
1304
|
).transform(v => new Date(v)),
|
|
1305
1305
|
type: z.literal("string"),
|
|
1306
1306
|
value: z.string(),
|
|
@@ -1377,7 +1377,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1377
1377
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1378
1378
|
.optional(),
|
|
1379
1379
|
updated: z.string().datetime({ offset: true }).default(
|
|
1380
|
-
"2026-03-
|
|
1380
|
+
"2026-03-11T12:40:16.356Z",
|
|
1381
1381
|
).transform(v => new Date(v)),
|
|
1382
1382
|
}).transform((v) => {
|
|
1383
1383
|
return remap$(v, {
|
|
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
126
126
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
127
|
.optional(),
|
|
128
128
|
updated: z.string().datetime({ offset: true }).default(
|
|
129
|
-
"2026-03-
|
|
129
|
+
"2026-03-11T12:40:16.356Z",
|
|
130
130
|
).transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
118
118
|
z.ZodTypeDef,
|
|
119
119
|
unknown
|
|
120
120
|
> = z.object({
|
|
121
|
-
_id: z.string().default("
|
|
121
|
+
_id: z.string().default("01KKEEKG1QG3FECPGW9H6AM3VH"),
|
|
122
122
|
display_name: z.string(),
|
|
123
123
|
description: z.string().optional(),
|
|
124
124
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -95,7 +95,7 @@ export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
95
95
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
96
96
|
.optional(),
|
|
97
97
|
updated: z.string().datetime({ offset: true }).default(
|
|
98
|
-
"2026-03-
|
|
98
|
+
"2026-03-11T12:40:16.356Z",
|
|
99
99
|
).transform(v => new Date(v)),
|
|
100
100
|
}).transform((v) => {
|
|
101
101
|
return remap$(v, {
|
|
@@ -754,7 +754,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
754
754
|
z.ZodTypeDef,
|
|
755
755
|
unknown
|
|
756
756
|
> = z.object({
|
|
757
|
-
_id: z.string().default("
|
|
757
|
+
_id: z.string().default("tool_01KKEEKFXXP86VGMVQZSJ1P6F4"),
|
|
758
758
|
path: z.string(),
|
|
759
759
|
key: z.string(),
|
|
760
760
|
display_name: z.string().optional(),
|
|
@@ -862,7 +862,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
862
862
|
z.ZodTypeDef,
|
|
863
863
|
unknown
|
|
864
864
|
> = z.object({
|
|
865
|
-
id: z.string().default("
|
|
865
|
+
id: z.string().default("01KKEEKFXW7TCZR8D63VH5EZJA"),
|
|
866
866
|
name: z.string(),
|
|
867
867
|
description: z.string().optional(),
|
|
868
868
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -918,7 +918,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
918
918
|
z.ZodTypeDef,
|
|
919
919
|
unknown
|
|
920
920
|
> = z.object({
|
|
921
|
-
_id: z.string().default("
|
|
921
|
+
_id: z.string().default("tool_01KKEEKFXT9Y2AQ41GG037DFBW"),
|
|
922
922
|
path: z.string(),
|
|
923
923
|
key: z.string(),
|
|
924
924
|
display_name: z.string().optional(),
|
|
@@ -1111,7 +1111,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1111
1111
|
z.ZodTypeDef,
|
|
1112
1112
|
unknown
|
|
1113
1113
|
> = z.object({
|
|
1114
|
-
_id: z.string().default("
|
|
1114
|
+
_id: z.string().default("tool_01KKEEKFXR9SYR6QMA2EPVTYB1"),
|
|
1115
1115
|
path: z.string(),
|
|
1116
1116
|
key: z.string(),
|
|
1117
1117
|
display_name: z.string().optional(),
|
|
@@ -1209,7 +1209,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1209
1209
|
z.ZodTypeDef,
|
|
1210
1210
|
unknown
|
|
1211
1211
|
> = z.object({
|
|
1212
|
-
_id: z.string().default("
|
|
1212
|
+
_id: z.string().default("tool_01KKEEKFXPY0TBGK1T9NYMW4ZJ"),
|
|
1213
1213
|
path: z.string(),
|
|
1214
1214
|
key: z.string(),
|
|
1215
1215
|
display_name: z.string().optional(),
|
|
@@ -1317,7 +1317,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1317
1317
|
z.ZodTypeDef,
|
|
1318
1318
|
unknown
|
|
1319
1319
|
> = z.object({
|
|
1320
|
-
_id: z.string().default("
|
|
1320
|
+
_id: z.string().default("tool_01KKEEKFXKAY8HZSHTAVW0SJ12"),
|
|
1321
1321
|
path: z.string(),
|
|
1322
1322
|
key: z.string(),
|
|
1323
1323
|
display_name: z.string().optional(),
|
|
@@ -3599,7 +3599,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3599
3599
|
z.ZodTypeDef,
|
|
3600
3600
|
Tools
|
|
3601
3601
|
> = z.object({
|
|
3602
|
-
id: z.string().default("
|
|
3602
|
+
id: z.string().default("01KKEEKFEP1KAY3BTGES1BV0HV"),
|
|
3603
3603
|
name: z.string(),
|
|
3604
3604
|
description: z.string().optional(),
|
|
3605
3605
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3646,7 +3646,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3646
3646
|
z.ZodTypeDef,
|
|
3647
3647
|
AgentToolInputRunTools
|
|
3648
3648
|
> = z.object({
|
|
3649
|
-
id: z.string().default("
|
|
3649
|
+
id: z.string().default("01KKEEKFHCY318MXC1KZ08BSSW"),
|
|
3650
3650
|
name: z.string(),
|
|
3651
3651
|
description: z.string().optional(),
|
|
3652
3652
|
schema: z.lazy(() =>
|
|
@@ -2358,7 +2358,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2358
2358
|
.default("orq"),
|
|
2359
2359
|
reviewed_by_id: z.string(),
|
|
2360
2360
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2361
|
-
"2026-03-
|
|
2361
|
+
"2026-03-11T12:40:32.731Z",
|
|
2362
2362
|
).transform(v => new Date(v)),
|
|
2363
2363
|
type: z.literal("string_array"),
|
|
2364
2364
|
values: z.array(z.string()),
|
|
@@ -2404,7 +2404,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2404
2404
|
source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
2405
2405
|
reviewed_by_id: z.string(),
|
|
2406
2406
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2407
|
-
"2026-03-
|
|
2407
|
+
"2026-03-11T12:40:32.717Z",
|
|
2408
2408
|
).transform(v => new Date(v)),
|
|
2409
2409
|
type: z.literal("number"),
|
|
2410
2410
|
value: z.number(),
|
|
@@ -2449,7 +2449,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2449
2449
|
source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2450
2450
|
reviewed_by_id: z.string(),
|
|
2451
2451
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2452
|
-
"2026-03-
|
|
2452
|
+
"2026-03-11T12:40:32.716Z",
|
|
2453
2453
|
).transform(v => new Date(v)),
|
|
2454
2454
|
type: z.literal("string"),
|
|
2455
2455
|
value: z.string(),
|
|
@@ -2530,7 +2530,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2530
2530
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2531
2531
|
.optional(),
|
|
2532
2532
|
updated: z.string().datetime({ offset: true }).default(
|
|
2533
|
-
"2026-03-
|
|
2533
|
+
"2026-03-11T12:40:16.356Z",
|
|
2534
2534
|
).transform(v => new Date(v)),
|
|
2535
2535
|
}).transform((v) => {
|
|
2536
2536
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-03-
|
|
185
|
+
"2026-03-11T12:40:16.356Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
152
152
|
z.ZodTypeDef,
|
|
153
153
|
unknown
|
|
154
154
|
> = z.object({
|
|
155
|
-
_id: z.string().default("
|
|
155
|
+
_id: z.string().default("01KKEEKG1VNZCTJ5BAN7KJTM8B"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.string().optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -2183,8 +2183,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
2183
2183
|
> = z.object({
|
|
2184
2184
|
_id: z.string(),
|
|
2185
2185
|
description: z.string(),
|
|
2186
|
-
created: z.string().default("2026-03-
|
|
2187
|
-
updated: z.string().default("2026-03-
|
|
2186
|
+
created: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
2187
|
+
updated: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
2188
2188
|
guardrail_config: z.union([
|
|
2189
2189
|
z.lazy(() =>
|
|
2190
2190
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
|
|
@@ -2337,8 +2337,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
2337
2337
|
> = z.object({
|
|
2338
2338
|
_id: z.string(),
|
|
2339
2339
|
description: z.string(),
|
|
2340
|
-
created: z.string().default("2026-03-
|
|
2341
|
-
updated: z.string().default("2026-03-
|
|
2340
|
+
created: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
2341
|
+
updated: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
2342
2342
|
guardrail_config: z.union([
|
|
2343
2343
|
z.lazy(() =>
|
|
2344
2344
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
|
|
@@ -3157,8 +3157,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3157
3157
|
> = z.object({
|
|
3158
3158
|
_id: z.string(),
|
|
3159
3159
|
description: z.string(),
|
|
3160
|
-
created: z.string().default("2026-03-
|
|
3161
|
-
updated: z.string().default("2026-03-
|
|
3160
|
+
created: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
3161
|
+
updated: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
3162
3162
|
guardrail_config: z.union([
|
|
3163
3163
|
z.lazy(() =>
|
|
3164
3164
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
@@ -3339,8 +3339,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
3339
3339
|
> = z.object({
|
|
3340
3340
|
_id: z.string(),
|
|
3341
3341
|
description: z.string(),
|
|
3342
|
-
created: z.string().default("2026-03-
|
|
3343
|
-
updated: z.string().default("2026-03-
|
|
3342
|
+
created: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
3343
|
+
updated: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
3344
3344
|
guardrail_config: z.union([
|
|
3345
3345
|
z.lazy(() =>
|
|
3346
3346
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
@@ -3487,8 +3487,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3487
3487
|
> = z.object({
|
|
3488
3488
|
_id: z.string(),
|
|
3489
3489
|
description: z.string(),
|
|
3490
|
-
created: z.string().default("2026-03-
|
|
3491
|
-
updated: z.string().default("2026-03-
|
|
3490
|
+
created: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
3491
|
+
updated: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
3492
3492
|
guardrail_config: z.union([
|
|
3493
3493
|
z.lazy(() =>
|
|
3494
3494
|
UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
@@ -3624,8 +3624,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3624
3624
|
> = z.object({
|
|
3625
3625
|
_id: z.string(),
|
|
3626
3626
|
description: z.string(),
|
|
3627
|
-
created: z.string().default("2026-03-
|
|
3628
|
-
updated: z.string().default("2026-03-
|
|
3627
|
+
created: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
3628
|
+
updated: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
3629
3629
|
guardrail_config: z.union([
|
|
3630
3630
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
3631
3631
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -3926,8 +3926,8 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3926
3926
|
> = z.object({
|
|
3927
3927
|
_id: z.string(),
|
|
3928
3928
|
description: z.string(),
|
|
3929
|
-
created: z.string().default("2026-03-
|
|
3930
|
-
updated: z.string().default("2026-03-
|
|
3929
|
+
created: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
3930
|
+
updated: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
3931
3931
|
guardrail_config: z.union([
|
|
3932
3932
|
z.lazy(() =>
|
|
3933
3933
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
|
|
@@ -4070,8 +4070,8 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4070
4070
|
> = z.object({
|
|
4071
4071
|
_id: z.string(),
|
|
4072
4072
|
description: z.string(),
|
|
4073
|
-
created: z.string().default("2026-03-
|
|
4074
|
-
updated: z.string().default("2026-03-
|
|
4073
|
+
created: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
4074
|
+
updated: z.string().default("2026-03-11T12:40:17.725Z"),
|
|
4075
4075
|
guardrail_config: z.union([
|
|
4076
4076
|
z.lazy(() =>
|
|
4077
4077
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
|
|
@@ -167,7 +167,7 @@ export const UpdateIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
167
167
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
168
168
|
.optional(),
|
|
169
169
|
updated: z.string().datetime({ offset: true }).default(
|
|
170
|
-
"2026-03-
|
|
170
|
+
"2026-03-11T12:40:16.356Z",
|
|
171
171
|
).transform(v => new Date(v)),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -1474,7 +1474,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
|
1474
1474
|
z.ZodTypeDef,
|
|
1475
1475
|
RequestBodyTools
|
|
1476
1476
|
> = z.object({
|
|
1477
|
-
id: z.string().default("
|
|
1477
|
+
id: z.string().default("01KKEEKFX7E3YYWFDHMC4MJP8S"),
|
|
1478
1478
|
name: z.string(),
|
|
1479
1479
|
description: z.string().optional(),
|
|
1480
1480
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -2194,7 +2194,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2194
2194
|
z.ZodTypeDef,
|
|
2195
2195
|
unknown
|
|
2196
2196
|
> = z.object({
|
|
2197
|
-
_id: z.string().default("
|
|
2197
|
+
_id: z.string().default("tool_01KKEEKFX1FT1S50SSDZTWJF45"),
|
|
2198
2198
|
path: z.string(),
|
|
2199
2199
|
key: z.string(),
|
|
2200
2200
|
display_name: z.string().optional(),
|
|
@@ -2299,7 +2299,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2299
2299
|
z.ZodTypeDef,
|
|
2300
2300
|
unknown
|
|
2301
2301
|
> = z.object({
|
|
2302
|
-
id: z.string().default("
|
|
2302
|
+
id: z.string().default("01KKEEKFX03J9R436DS60X0KNW"),
|
|
2303
2303
|
name: z.string(),
|
|
2304
2304
|
description: z.string().optional(),
|
|
2305
2305
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -2355,7 +2355,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2355
2355
|
z.ZodTypeDef,
|
|
2356
2356
|
unknown
|
|
2357
2357
|
> = z.object({
|
|
2358
|
-
_id: z.string().default("
|
|
2358
|
+
_id: z.string().default("tool_01KKEEKFWZ3B8CPJEMF2RYRY4M"),
|
|
2359
2359
|
path: z.string(),
|
|
2360
2360
|
key: z.string(),
|
|
2361
2361
|
display_name: z.string().optional(),
|
|
@@ -2546,7 +2546,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2546
2546
|
z.ZodTypeDef,
|
|
2547
2547
|
unknown
|
|
2548
2548
|
> = z.object({
|
|
2549
|
-
_id: z.string().default("
|
|
2549
|
+
_id: z.string().default("tool_01KKEEKFWX0JYJX8FDZWS4746R"),
|
|
2550
2550
|
path: z.string(),
|
|
2551
2551
|
key: z.string(),
|
|
2552
2552
|
display_name: z.string().optional(),
|
|
@@ -2643,7 +2643,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2643
2643
|
z.ZodTypeDef,
|
|
2644
2644
|
unknown
|
|
2645
2645
|
> = z.object({
|
|
2646
|
-
_id: z.string().default("
|
|
2646
|
+
_id: z.string().default("tool_01KKEEKFWWAMDKNF9MS6PJRTPD"),
|
|
2647
2647
|
path: z.string(),
|
|
2648
2648
|
key: z.string(),
|
|
2649
2649
|
display_name: z.string().optional(),
|
|
@@ -2748,7 +2748,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2748
2748
|
z.ZodTypeDef,
|
|
2749
2749
|
unknown
|
|
2750
2750
|
> = z.object({
|
|
2751
|
-
_id: z.string().default("
|
|
2751
|
+
_id: z.string().default("tool_01KKEEKFWVYERZ4KK0MHKS31HC"),
|
|
2752
2752
|
path: z.string(),
|
|
2753
2753
|
key: z.string(),
|
|
2754
2754
|
display_name: z.string().optional(),
|
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "4.5.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.5.
|
|
71
|
+
sdkVersion: "4.5.5",
|
|
72
|
+
genVersion: "2.859.2",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.5.5 2.859.2 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
package/src/lib/event-streams.ts
CHANGED
|
@@ -23,10 +23,12 @@ export class EventStream<T extends SseMessage<unknown>>
|
|
|
23
23
|
constructor(
|
|
24
24
|
responseBody: ReadableStream<Uint8Array>,
|
|
25
25
|
parse: (x: SseMessage<string>) => IteratorResult<T, undefined>,
|
|
26
|
+
opts?: { dataRequired?: boolean },
|
|
26
27
|
) {
|
|
27
28
|
const upstream = responseBody.getReader();
|
|
28
29
|
let buffer: Uint8Array = new Uint8Array();
|
|
29
30
|
const state = { eventId: undefined as string | undefined };
|
|
31
|
+
const dataRequired = opts?.dataRequired ?? true;
|
|
30
32
|
super({
|
|
31
33
|
async pull(downstream) {
|
|
32
34
|
try {
|
|
@@ -40,7 +42,7 @@ export class EventStream<T extends SseMessage<unknown>>
|
|
|
40
42
|
}
|
|
41
43
|
const message = buffer.slice(0, match.index);
|
|
42
44
|
buffer = buffer.slice(match.index + match.length);
|
|
43
|
-
const item = parseMessage(message, parse, state);
|
|
45
|
+
const item = parseMessage(message, parse, state, dataRequired);
|
|
44
46
|
if (item && !item.done) return downstream.enqueue(item.value);
|
|
45
47
|
if (item?.done) {
|
|
46
48
|
await upstream.cancel("done");
|
|
@@ -131,6 +133,7 @@ function parseMessage<T extends SseMessage<unknown>>(
|
|
|
131
133
|
chunk: Uint8Array,
|
|
132
134
|
parse: (x: SseMessage<string>) => IteratorResult<T, undefined>,
|
|
133
135
|
state: { eventId: string | undefined },
|
|
136
|
+
dataRequired: boolean,
|
|
134
137
|
) {
|
|
135
138
|
const text = new TextDecoder().decode(chunk);
|
|
136
139
|
const lines = text.split(/\r\n|\r|\n/);
|
|
@@ -157,5 +160,6 @@ function parseMessage<T extends SseMessage<unknown>>(
|
|
|
157
160
|
if (ignore) return;
|
|
158
161
|
ret.id = state.eventId;
|
|
159
162
|
if (dataLines.length) ret.data = dataLines.join("\n");
|
|
163
|
+
else if (dataRequired) return; // skip data-less events when data is required
|
|
160
164
|
return parse(ret);
|
|
161
165
|
}
|
|
@@ -76,7 +76,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
|
|
|
76
76
|
z.ZodTypeDef,
|
|
77
77
|
unknown
|
|
78
78
|
> = z.object({
|
|
79
|
-
_id: z.string().default("
|
|
79
|
+
_id: z.string().default("reasoning_01kkfa48rkkb23djvc95jjt8av"),
|
|
80
80
|
metadata: z.record(z.any()).optional(),
|
|
81
81
|
kind: PartKind$inboundSchema,
|
|
82
82
|
reasoning: z.string(),
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01kkfa48rafmbdwtq052hpnad8"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -134,7 +134,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
134
134
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
135
135
|
.optional(),
|
|
136
136
|
updated: z.string().datetime({ offset: true }).default(
|
|
137
|
-
"2026-03-
|
|
137
|
+
"2026-03-11T20:41:18.835Z",
|
|
138
138
|
).transform(v => new Date(v)),
|
|
139
139
|
}).transform((v) => {
|
|
140
140
|
return remap$(v, {
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-03-
|
|
141
|
+
"2026-03-11T20:41:18.835Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2353,7 +2353,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2353
2353
|
),
|
|
2354
2354
|
reviewed_by_id: z.string(),
|
|
2355
2355
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2356
|
-
"2026-03-
|
|
2356
|
+
"2026-03-11T20:41:36.344Z",
|
|
2357
2357
|
).transform(v => new Date(v)),
|
|
2358
2358
|
type: z.literal("string_array"),
|
|
2359
2359
|
values: z.array(z.string()),
|
|
@@ -2398,7 +2398,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2398
2398
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2399
2399
|
reviewed_by_id: z.string(),
|
|
2400
2400
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2401
|
-
"2026-03-
|
|
2401
|
+
"2026-03-11T20:41:36.343Z",
|
|
2402
2402
|
).transform(v => new Date(v)),
|
|
2403
2403
|
type: z.literal("number"),
|
|
2404
2404
|
value: z.number(),
|
|
@@ -2443,7 +2443,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2443
2443
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2444
2444
|
reviewed_by_id: z.string(),
|
|
2445
2445
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2446
|
-
"2026-03-
|
|
2446
|
+
"2026-03-11T20:41:36.343Z",
|
|
2447
2447
|
).transform(v => new Date(v)),
|
|
2448
2448
|
type: z.literal("string"),
|
|
2449
2449
|
value: z.string(),
|
|
@@ -2526,7 +2526,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2526
2526
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2527
2527
|
.optional(),
|
|
2528
2528
|
updated: z.string().datetime({ offset: true }).default(
|
|
2529
|
-
"2026-03-
|
|
2529
|
+
"2026-03-11T20:41:18.835Z",
|
|
2530
2530
|
).transform(v => new Date(v)),
|
|
2531
2531
|
}).transform((v) => {
|
|
2532
2532
|
return remap$(v, {
|
|
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
403
403
|
z.ZodTypeDef,
|
|
404
404
|
unknown
|
|
405
405
|
> = z.object({
|
|
406
|
-
_id: z.string().default("
|
|
406
|
+
_id: z.string().default("01KKFA4B41JPHMGKPSG8Z5RFPZ"),
|
|
407
407
|
display_name: z.string(),
|
|
408
408
|
description: z.string().optional(),
|
|
409
409
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -2245,8 +2245,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2245
2245
|
> = z.object({
|
|
2246
2246
|
_id: z.string(),
|
|
2247
2247
|
description: z.string(),
|
|
2248
|
-
created: z.string().default("2026-03-
|
|
2249
|
-
updated: z.string().default("2026-03-
|
|
2248
|
+
created: z.string().default("2026-03-11T20:41:20.077Z"),
|
|
2249
|
+
updated: z.string().default("2026-03-11T20:41:20.078Z"),
|
|
2250
2250
|
guardrail_config: z.union([
|
|
2251
2251
|
z.lazy(() =>
|
|
2252
2252
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
|
|
@@ -2394,8 +2394,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2394
2394
|
.object({
|
|
2395
2395
|
_id: z.string(),
|
|
2396
2396
|
description: z.string(),
|
|
2397
|
-
created: z.string().default("2026-03-
|
|
2398
|
-
updated: z.string().default("2026-03-
|
|
2397
|
+
created: z.string().default("2026-03-11T20:41:20.077Z"),
|
|
2398
|
+
updated: z.string().default("2026-03-11T20:41:20.078Z"),
|
|
2399
2399
|
guardrail_config: z.union([
|
|
2400
2400
|
z.lazy(() =>
|
|
2401
2401
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
|
|
@@ -3178,8 +3178,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3178
3178
|
> = z.object({
|
|
3179
3179
|
_id: z.string(),
|
|
3180
3180
|
description: z.string(),
|
|
3181
|
-
created: z.string().default("2026-03-
|
|
3182
|
-
updated: z.string().default("2026-03-
|
|
3181
|
+
created: z.string().default("2026-03-11T20:41:20.077Z"),
|
|
3182
|
+
updated: z.string().default("2026-03-11T20:41:20.078Z"),
|
|
3183
3183
|
guardrail_config: z.union([
|
|
3184
3184
|
z.lazy(() =>
|
|
3185
3185
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
@@ -3357,8 +3357,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
3357
3357
|
> = z.object({
|
|
3358
3358
|
_id: z.string(),
|
|
3359
3359
|
description: z.string(),
|
|
3360
|
-
created: z.string().default("2026-03-
|
|
3361
|
-
updated: z.string().default("2026-03-
|
|
3360
|
+
created: z.string().default("2026-03-11T20:41:20.077Z"),
|
|
3361
|
+
updated: z.string().default("2026-03-11T20:41:20.078Z"),
|
|
3362
3362
|
guardrail_config: z.union([
|
|
3363
3363
|
z.lazy(() =>
|
|
3364
3364
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
@@ -3498,8 +3498,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3498
3498
|
> = z.object({
|
|
3499
3499
|
_id: z.string(),
|
|
3500
3500
|
description: z.string(),
|
|
3501
|
-
created: z.string().default("2026-03-
|
|
3502
|
-
updated: z.string().default("2026-03-
|
|
3501
|
+
created: z.string().default("2026-03-11T20:41:20.077Z"),
|
|
3502
|
+
updated: z.string().default("2026-03-11T20:41:20.078Z"),
|
|
3503
3503
|
guardrail_config: z.union([
|
|
3504
3504
|
z.lazy(() =>
|
|
3505
3505
|
CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
@@ -3634,8 +3634,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3634
3634
|
> = z.object({
|
|
3635
3635
|
_id: z.string(),
|
|
3636
3636
|
description: z.string(),
|
|
3637
|
-
created: z.string().default("2026-03-
|
|
3638
|
-
updated: z.string().default("2026-03-
|
|
3637
|
+
created: z.string().default("2026-03-11T20:41:20.077Z"),
|
|
3638
|
+
updated: z.string().default("2026-03-11T20:41:20.078Z"),
|
|
3639
3639
|
guardrail_config: z.union([
|
|
3640
3640
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
3641
3641
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -3944,8 +3944,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3944
3944
|
> = z.object({
|
|
3945
3945
|
_id: z.string(),
|
|
3946
3946
|
description: z.string(),
|
|
3947
|
-
created: z.string().default("2026-03-
|
|
3948
|
-
updated: z.string().default("2026-03-
|
|
3947
|
+
created: z.string().default("2026-03-11T20:41:20.077Z"),
|
|
3948
|
+
updated: z.string().default("2026-03-11T20:41:20.078Z"),
|
|
3949
3949
|
guardrail_config: z.union([
|
|
3950
3950
|
z.lazy(() =>
|
|
3951
3951
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
|
|
@@ -4088,8 +4088,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4088
4088
|
> = z.object({
|
|
4089
4089
|
_id: z.string(),
|
|
4090
4090
|
description: z.string(),
|
|
4091
|
-
created: z.string().default("2026-03-
|
|
4092
|
-
updated: z.string().default("2026-03-
|
|
4091
|
+
created: z.string().default("2026-03-11T20:41:20.077Z"),
|
|
4092
|
+
updated: z.string().default("2026-03-11T20:41:20.078Z"),
|
|
4093
4093
|
guardrail_config: z.union([
|
|
4094
4094
|
z.lazy(() =>
|
|
4095
4095
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
|