@orq-ai/node 4.5.0-rc.40 → 4.5.0-rc.42
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +161 -271
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +162 -256
- package/models/operations/createagentrequest.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/createknowledge.d.ts +7 -7
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +11 -11
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/createtool.d.ts +39 -39
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +49 -52
- package/models/operations/createtool.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.d.ts +39 -39
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +47 -49
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getevals.js +16 -16
- package/models/operations/listagents.d.ts +167 -276
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +172 -266
- package/models/operations/listagents.js.map +1 -1
- 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/listknowledgebases.d.ts +8 -8
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +15 -13
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +169 -279
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +173 -270
- package/models/operations/retrieveagentrequest.js.map +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/updateagent.d.ts +169 -279
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +174 -270
- package/models/operations/updateagent.js.map +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/src/lib/config.ts +2 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +376 -619
- 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/createknowledge.ts +17 -19
- package/src/models/operations/createtool.ts +91 -103
- 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 +87 -93
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listagents.ts +383 -611
- 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/listknowledgebases.ts +64 -72
- package/src/models/operations/retrieveagentrequest.ts +489 -884
- 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/updateagent.ts +362 -668
- 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
|
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1270
1270
|
),
|
|
1271
1271
|
reviewed_by_id: z.string(),
|
|
1272
1272
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1273
|
-
"2026-03-
|
|
1273
|
+
"2026-03-09T14:37:27.211Z",
|
|
1274
1274
|
).transform(v => new Date(v)),
|
|
1275
1275
|
type: z.literal("string_array"),
|
|
1276
1276
|
values: z.array(z.string()),
|
|
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1320
1320
|
source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
|
|
1321
1321
|
reviewed_by_id: z.string(),
|
|
1322
1322
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1323
|
-
"2026-03-
|
|
1323
|
+
"2026-03-09T14:37:27.210Z",
|
|
1324
1324
|
).transform(v => new Date(v)),
|
|
1325
1325
|
type: z.literal("number"),
|
|
1326
1326
|
value: z.number(),
|
|
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1369
1369
|
.default("orq"),
|
|
1370
1370
|
reviewed_by_id: z.string(),
|
|
1371
1371
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1372
|
-
"2026-03-
|
|
1372
|
+
"2026-03-09T14:37:27.209Z",
|
|
1373
1373
|
).transform(v => new Date(v)),
|
|
1374
1374
|
type: z.literal("string"),
|
|
1375
1375
|
value: z.string(),
|
|
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1448
1448
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1449
1449
|
.optional(),
|
|
1450
1450
|
updated: z.string().datetime({ offset: true }).default(
|
|
1451
|
-
"2026-03-
|
|
1451
|
+
"2026-03-09T14:37:11.539Z",
|
|
1452
1452
|
).transform(v => new Date(v)),
|
|
1453
1453
|
}).transform((v) => {
|
|
1454
1454
|
return remap$(v, {
|
|
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
156
156
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
157
157
|
.optional(),
|
|
158
158
|
updated: z.string().datetime({ offset: true }).default(
|
|
159
|
-
"2026-03-
|
|
159
|
+
"2026-03-09T14:37:11.539Z",
|
|
160
160
|
).transform(v => new Date(v)),
|
|
161
161
|
}).transform((v) => {
|
|
162
162
|
return remap$(v, {
|
|
@@ -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("01KK9GG4615VZXFXN1DRZR7VF5"),
|
|
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-09T14:37:11.539Z",
|
|
231
231
|
).transform(v => new Date(v)),
|
|
232
232
|
metrics: z.lazy(() => ListIdentitiesMetrics$inboundSchema),
|
|
233
233
|
}).transform((v) => {
|
|
@@ -99,7 +99,7 @@ export type DataExternalConfig = {
|
|
|
99
99
|
apiUrl: string;
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
export type
|
|
102
|
+
export type Data2 = {
|
|
103
103
|
/**
|
|
104
104
|
* The unique identifier of the knowledge base.
|
|
105
105
|
*/
|
|
@@ -218,7 +218,7 @@ export type ListKnowledgeBasesDataRetrievalSettings = {
|
|
|
218
218
|
agenticRagConfig?: ListKnowledgeBasesDataAgenticRagConfig | null | undefined;
|
|
219
219
|
};
|
|
220
220
|
|
|
221
|
-
export type
|
|
221
|
+
export type Data1 = {
|
|
222
222
|
/**
|
|
223
223
|
* The unique identifier of the knowledge base.
|
|
224
224
|
*/
|
|
@@ -266,16 +266,14 @@ export type ListKnowledgeBasesData1 = {
|
|
|
266
266
|
model: string;
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
export type ListKnowledgeBasesData =
|
|
270
|
-
| ListKnowledgeBasesData1
|
|
271
|
-
| ListKnowledgeBasesData2;
|
|
269
|
+
export type ListKnowledgeBasesData = Data1 | Data2;
|
|
272
270
|
|
|
273
271
|
/**
|
|
274
272
|
* Knowledge bases retrieved
|
|
275
273
|
*/
|
|
276
274
|
export type ListKnowledgeBasesResponseBody = {
|
|
277
275
|
object: ListKnowledgeBasesObject;
|
|
278
|
-
data: Array<
|
|
276
|
+
data: Array<Data1 | Data2>;
|
|
279
277
|
hasMore: boolean;
|
|
280
278
|
};
|
|
281
279
|
|
|
@@ -422,42 +420,39 @@ export function dataExternalConfigFromJSON(
|
|
|
422
420
|
}
|
|
423
421
|
|
|
424
422
|
/** @internal */
|
|
425
|
-
export const
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
"retrieval_settings": "retrievalSettings",
|
|
450
|
-
"external_config": "externalConfig",
|
|
423
|
+
export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
|
|
424
|
+
.object({
|
|
425
|
+
_id: z.string(),
|
|
426
|
+
created: z.string(),
|
|
427
|
+
description: z.string().optional(),
|
|
428
|
+
key: z.string(),
|
|
429
|
+
domain_id: z.string(),
|
|
430
|
+
path: z.string().optional(),
|
|
431
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
432
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
433
|
+
updated: z.string(),
|
|
434
|
+
type: ListKnowledgeBasesDataKnowledgeType$inboundSchema.default("external"),
|
|
435
|
+
retrieval_settings: z.lazy(() => DataRetrievalSettings$inboundSchema)
|
|
436
|
+
.optional(),
|
|
437
|
+
external_config: z.lazy(() => DataExternalConfig$inboundSchema),
|
|
438
|
+
}).transform((v) => {
|
|
439
|
+
return remap$(v, {
|
|
440
|
+
"_id": "id",
|
|
441
|
+
"domain_id": "domainId",
|
|
442
|
+
"created_by_id": "createdById",
|
|
443
|
+
"updated_by_id": "updatedById",
|
|
444
|
+
"retrieval_settings": "retrievalSettings",
|
|
445
|
+
"external_config": "externalConfig",
|
|
446
|
+
});
|
|
451
447
|
});
|
|
452
|
-
});
|
|
453
448
|
|
|
454
|
-
export function
|
|
449
|
+
export function data2FromJSON(
|
|
455
450
|
jsonString: string,
|
|
456
|
-
): SafeParseResult<
|
|
451
|
+
): SafeParseResult<Data2, SDKValidationError> {
|
|
457
452
|
return safeParse(
|
|
458
453
|
jsonString,
|
|
459
|
-
(x) =>
|
|
460
|
-
`Failed to parse '
|
|
454
|
+
(x) => Data2$inboundSchema.parse(JSON.parse(x)),
|
|
455
|
+
`Failed to parse 'Data2' from JSON`,
|
|
461
456
|
);
|
|
462
457
|
}
|
|
463
458
|
|
|
@@ -560,42 +555,39 @@ export function listKnowledgeBasesDataRetrievalSettingsFromJSON(
|
|
|
560
555
|
}
|
|
561
556
|
|
|
562
557
|
/** @internal */
|
|
563
|
-
export const
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
"updated_by_id": "updatedById",
|
|
588
|
-
"retrieval_settings": "retrievalSettings",
|
|
558
|
+
export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
|
|
559
|
+
.object({
|
|
560
|
+
_id: z.string(),
|
|
561
|
+
created: z.string(),
|
|
562
|
+
description: z.string().optional(),
|
|
563
|
+
key: z.string(),
|
|
564
|
+
domain_id: z.string(),
|
|
565
|
+
path: z.string().optional(),
|
|
566
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
567
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
568
|
+
updated: z.string(),
|
|
569
|
+
type: ListKnowledgeBasesDataType$inboundSchema.default("internal"),
|
|
570
|
+
retrieval_settings: z.lazy(() =>
|
|
571
|
+
ListKnowledgeBasesDataRetrievalSettings$inboundSchema
|
|
572
|
+
).optional(),
|
|
573
|
+
model: z.string(),
|
|
574
|
+
}).transform((v) => {
|
|
575
|
+
return remap$(v, {
|
|
576
|
+
"_id": "id",
|
|
577
|
+
"domain_id": "domainId",
|
|
578
|
+
"created_by_id": "createdById",
|
|
579
|
+
"updated_by_id": "updatedById",
|
|
580
|
+
"retrieval_settings": "retrievalSettings",
|
|
581
|
+
});
|
|
589
582
|
});
|
|
590
|
-
});
|
|
591
583
|
|
|
592
|
-
export function
|
|
584
|
+
export function data1FromJSON(
|
|
593
585
|
jsonString: string,
|
|
594
|
-
): SafeParseResult<
|
|
586
|
+
): SafeParseResult<Data1, SDKValidationError> {
|
|
595
587
|
return safeParse(
|
|
596
588
|
jsonString,
|
|
597
|
-
(x) =>
|
|
598
|
-
`Failed to parse '
|
|
589
|
+
(x) => Data1$inboundSchema.parse(JSON.parse(x)),
|
|
590
|
+
`Failed to parse 'Data1' from JSON`,
|
|
599
591
|
);
|
|
600
592
|
}
|
|
601
593
|
|
|
@@ -605,8 +597,8 @@ export const ListKnowledgeBasesData$inboundSchema: z.ZodType<
|
|
|
605
597
|
z.ZodTypeDef,
|
|
606
598
|
unknown
|
|
607
599
|
> = z.union([
|
|
608
|
-
z.lazy(() =>
|
|
609
|
-
z.lazy(() =>
|
|
600
|
+
z.lazy(() => Data1$inboundSchema),
|
|
601
|
+
z.lazy(() => Data2$inboundSchema),
|
|
610
602
|
]);
|
|
611
603
|
|
|
612
604
|
export function listKnowledgeBasesDataFromJSON(
|
|
@@ -628,8 +620,8 @@ export const ListKnowledgeBasesResponseBody$inboundSchema: z.ZodType<
|
|
|
628
620
|
object: ListKnowledgeBasesObject$inboundSchema,
|
|
629
621
|
data: z.array(
|
|
630
622
|
z.union([
|
|
631
|
-
z.lazy(() =>
|
|
632
|
-
z.lazy(() =>
|
|
623
|
+
z.lazy(() => Data1$inboundSchema),
|
|
624
|
+
z.lazy(() => Data2$inboundSchema),
|
|
633
625
|
]),
|
|
634
626
|
),
|
|
635
627
|
has_more: z.boolean(),
|