@orq-ai/node 4.5.10 → 4.5.12
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.d.ts +2 -44
- package/models/components/partdoneevent.d.ts.map +1 -1
- package/models/components/partdoneevent.js +3 -28
- package/models/components/partdoneevent.js.map +1 -1
- package/models/components/reasoningpart.js +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/createtool.js +6 -6
- package/models/operations/deleteannotation.d.ts +3 -0
- package/models/operations/deleteannotation.d.ts.map +1 -1
- package/models/operations/deleteannotation.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/src/lib/config.ts +2 -2
- package/src/models/components/partdoneevent.ts +3 -72
- package/src/models/components/reasoningpart.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/createtool.ts +6 -6
- package/src/models/operations/deleteannotation.ts +3 -0
- 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
|
@@ -87,7 +87,7 @@ exports.ListDatasetsData$inboundSchema = z.object({
|
|
|
87
87
|
updated_by_id: z.string().optional(),
|
|
88
88
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
89
89
|
.optional(),
|
|
90
|
-
updated: z.string().datetime({ offset: true }).default("2026-03-
|
|
90
|
+
updated: z.string().datetime({ offset: true }).default("2026-03-12T17:14:03.720Z").transform(v => new Date(v)),
|
|
91
91
|
}).transform((v) => {
|
|
92
92
|
return (0, primitives_js_1.remap)(v, {
|
|
93
93
|
"_id": "id",
|
|
@@ -83,7 +83,7 @@ exports.ListDatasourcesObject$inboundSchema = z.nativeEnum(exports.ListDatasourc
|
|
|
83
83
|
exports.ListDatasourcesStatus$inboundSchema = z.nativeEnum(exports.ListDatasourcesStatus);
|
|
84
84
|
/** @internal */
|
|
85
85
|
exports.ListDatasourcesData$inboundSchema = z.object({
|
|
86
|
-
_id: z.string().default("
|
|
86
|
+
_id: z.string().default("01KKHGNKTWQKRC25T708RWTYDJ"),
|
|
87
87
|
display_name: z.string(),
|
|
88
88
|
description: z.string().optional(),
|
|
89
89
|
status: exports.ListDatasourcesStatus$inboundSchema,
|
|
@@ -104,7 +104,7 @@ exports.ListIdentitiesData$inboundSchema = z.object({
|
|
|
104
104
|
metadata: z.record(z.any()).optional(),
|
|
105
105
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
106
106
|
.optional(),
|
|
107
|
-
updated: z.string().datetime({ offset: true }).default("2026-03-
|
|
107
|
+
updated: z.string().datetime({ offset: true }).default("2026-03-12T17:14:03.720Z").transform(v => new Date(v)),
|
|
108
108
|
metrics: z.lazy(() => exports.ListIdentitiesMetrics$inboundSchema),
|
|
109
109
|
}).transform((v) => {
|
|
110
110
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -409,7 +409,7 @@ exports.RetrieveDatapointEvaluations3$inboundSchema = z.object({
|
|
|
409
409
|
source: exports.RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema
|
|
410
410
|
.default("orq"),
|
|
411
411
|
reviewed_by_id: z.string(),
|
|
412
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-03-
|
|
412
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-03-12T17:14:22.494Z").transform(v => new Date(v)),
|
|
413
413
|
type: z.literal("string_array"),
|
|
414
414
|
values: z.array(z.string()),
|
|
415
415
|
}).transform((v) => {
|
|
@@ -436,7 +436,7 @@ exports.RetrieveDatapointEvaluations2$inboundSchema = z.object({
|
|
|
436
436
|
human_review_id: z.string(),
|
|
437
437
|
source: exports.RetrieveDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
438
438
|
reviewed_by_id: z.string(),
|
|
439
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-03-
|
|
439
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-03-12T17:14:22.493Z").transform(v => new Date(v)),
|
|
440
440
|
type: z.literal("number"),
|
|
441
441
|
value: z.number(),
|
|
442
442
|
}).transform((v) => {
|
|
@@ -462,7 +462,7 @@ exports.RetrieveDatapointEvaluations1$inboundSchema = z.object({
|
|
|
462
462
|
human_review_id: z.string(),
|
|
463
463
|
source: exports.RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
464
464
|
reviewed_by_id: z.string(),
|
|
465
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-03-
|
|
465
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-03-12T17:14:22.493Z").transform(v => new Date(v)),
|
|
466
466
|
type: z.literal("string"),
|
|
467
467
|
value: z.string(),
|
|
468
468
|
}).transform((v) => {
|
|
@@ -509,7 +509,7 @@ exports.RetrieveDatapointResponseBody$inboundSchema = z.object({
|
|
|
509
509
|
updated_by_id: z.string().optional(),
|
|
510
510
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
511
511
|
.optional(),
|
|
512
|
-
updated: z.string().datetime({ offset: true }).default("2026-03-
|
|
512
|
+
updated: z.string().datetime({ offset: true }).default("2026-03-12T17:14:03.720Z").transform(v => new Date(v)),
|
|
513
513
|
}).transform((v) => {
|
|
514
514
|
return (0, primitives_js_1.remap)(v, {
|
|
515
515
|
"_id": "id",
|
|
@@ -78,7 +78,7 @@ exports.RetrieveDatasetResponseBody$inboundSchema = z.object({
|
|
|
78
78
|
updated_by_id: z.string().optional(),
|
|
79
79
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
80
80
|
.optional(),
|
|
81
|
-
updated: z.string().datetime({ offset: true }).default("2026-03-
|
|
81
|
+
updated: z.string().datetime({ offset: true }).default("2026-03-12T17:14:03.720Z").transform(v => new Date(v)),
|
|
82
82
|
}).transform((v) => {
|
|
83
83
|
return (0, primitives_js_1.remap)(v, {
|
|
84
84
|
"_id": "id",
|
|
@@ -66,7 +66,7 @@ function retrieveDatasourceRequestToJSON(retrieveDatasourceRequest) {
|
|
|
66
66
|
exports.RetrieveDatasourceStatus$inboundSchema = z.nativeEnum(exports.RetrieveDatasourceStatus);
|
|
67
67
|
/** @internal */
|
|
68
68
|
exports.RetrieveDatasourceResponseBody$inboundSchema = z.object({
|
|
69
|
-
_id: z.string().default("
|
|
69
|
+
_id: z.string().default("01KKHGNKTYN87HYRCGQJ9WGDAZ"),
|
|
70
70
|
display_name: z.string(),
|
|
71
71
|
description: z.string().optional(),
|
|
72
72
|
status: exports.RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -60,7 +60,7 @@ exports.RetrieveIdentityResponseBody$inboundSchema = z.object({
|
|
|
60
60
|
metadata: z.record(z.any()).optional(),
|
|
61
61
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
62
62
|
.optional(),
|
|
63
|
-
updated: z.string().datetime({ offset: true }).default("2026-03-
|
|
63
|
+
updated: z.string().datetime({ offset: true }).default("2026-03-12T17:14:03.720Z").transform(v => new Date(v)),
|
|
64
64
|
}).transform((v) => {
|
|
65
65
|
return (0, primitives_js_1.remap)(v, {
|
|
66
66
|
"_id": "id",
|
|
@@ -187,7 +187,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
187
187
|
}
|
|
188
188
|
/** @internal */
|
|
189
189
|
exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
190
|
-
_id: z.string().default("
|
|
190
|
+
_id: z.string().default("tool_01KKHGNKQPFAXHEB1YTRRTDQJ5"),
|
|
191
191
|
path: z.string(),
|
|
192
192
|
key: z.string(),
|
|
193
193
|
display_name: z.string().optional(),
|
|
@@ -242,7 +242,7 @@ function retrieveToolResponseBodyToolsSchemaFromJSON(jsonString) {
|
|
|
242
242
|
}
|
|
243
243
|
/** @internal */
|
|
244
244
|
exports.RetrieveToolResponseBodyTools$inboundSchema = z.object({
|
|
245
|
-
id: z.string().default("
|
|
245
|
+
id: z.string().default("01KKHGNKQN7MQPRZB0WG1Z3QGG"),
|
|
246
246
|
name: z.string(),
|
|
247
247
|
description: z.string().optional(),
|
|
248
248
|
schema: z.lazy(() => exports.RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -270,7 +270,7 @@ function retrieveToolResponseBodyMcpFromJSON(jsonString) {
|
|
|
270
270
|
}
|
|
271
271
|
/** @internal */
|
|
272
272
|
exports.RetrieveToolResponseBodyMCPTool$inboundSchema = z.object({
|
|
273
|
-
_id: z.string().default("
|
|
273
|
+
_id: z.string().default("tool_01KKHGNKQMTG4ZBPP7HC0FWT7P"),
|
|
274
274
|
path: z.string(),
|
|
275
275
|
key: z.string(),
|
|
276
276
|
display_name: z.string().optional(),
|
|
@@ -359,7 +359,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
359
359
|
}
|
|
360
360
|
/** @internal */
|
|
361
361
|
exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
362
|
-
_id: z.string().default("
|
|
362
|
+
_id: z.string().default("tool_01KKHGNKQJ56BDFWEX6806QR7J"),
|
|
363
363
|
path: z.string(),
|
|
364
364
|
key: z.string(),
|
|
365
365
|
display_name: z.string().optional(),
|
|
@@ -411,7 +411,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
411
411
|
}
|
|
412
412
|
/** @internal */
|
|
413
413
|
exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
414
|
-
_id: z.string().default("
|
|
414
|
+
_id: z.string().default("tool_01KKHGNKQHF9T37SQKVZAGBS6P"),
|
|
415
415
|
path: z.string(),
|
|
416
416
|
key: z.string(),
|
|
417
417
|
display_name: z.string().optional(),
|
|
@@ -467,7 +467,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
467
467
|
}
|
|
468
468
|
/** @internal */
|
|
469
469
|
exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
470
|
-
_id: z.string().default("
|
|
470
|
+
_id: z.string().default("tool_01KKHGNKQFQMEM738CPT5H1YME"),
|
|
471
471
|
path: z.string(),
|
|
472
472
|
key: z.string(),
|
|
473
473
|
display_name: z.string().optional(),
|
|
@@ -988,7 +988,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
|
|
|
988
988
|
}
|
|
989
989
|
/** @internal */
|
|
990
990
|
exports.Tools$outboundSchema = z.object({
|
|
991
|
-
id: z.string().default("
|
|
991
|
+
id: z.string().default("01KKHGNKCRVAHPVW60043VY1S7"),
|
|
992
992
|
name: z.string(),
|
|
993
993
|
description: z.string().optional(),
|
|
994
994
|
schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
|
|
@@ -951,7 +951,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
|
|
|
951
951
|
}
|
|
952
952
|
/** @internal */
|
|
953
953
|
exports.AgentToolInputRunTools$outboundSchema = z.object({
|
|
954
|
-
id: z.string().default("
|
|
954
|
+
id: z.string().default("01KKHGNKEGZN5BJFCH5T2TNNME"),
|
|
955
955
|
name: z.string(),
|
|
956
956
|
description: z.string().optional(),
|
|
957
957
|
schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
|
|
@@ -745,7 +745,7 @@ exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
|
|
|
745
745
|
source: exports.UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema
|
|
746
746
|
.default("orq"),
|
|
747
747
|
reviewed_by_id: z.string(),
|
|
748
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-03-
|
|
748
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-03-12T17:14:22.526Z").transform(v => new Date(v)),
|
|
749
749
|
type: z.literal("string_array"),
|
|
750
750
|
values: z.array(z.string()),
|
|
751
751
|
}).transform((v) => {
|
|
@@ -772,7 +772,7 @@ exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
|
|
|
772
772
|
human_review_id: z.string(),
|
|
773
773
|
source: exports.UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
774
774
|
reviewed_by_id: z.string(),
|
|
775
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-03-
|
|
775
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-03-12T17:14:22.526Z").transform(v => new Date(v)),
|
|
776
776
|
type: z.literal("number"),
|
|
777
777
|
value: z.number(),
|
|
778
778
|
}).transform((v) => {
|
|
@@ -798,7 +798,7 @@ exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
|
|
|
798
798
|
human_review_id: z.string(),
|
|
799
799
|
source: exports.UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
800
800
|
reviewed_by_id: z.string(),
|
|
801
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-03-
|
|
801
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-03-12T17:14:22.525Z").transform(v => new Date(v)),
|
|
802
802
|
type: z.literal("string"),
|
|
803
803
|
value: z.string(),
|
|
804
804
|
}).transform((v) => {
|
|
@@ -845,7 +845,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
|
|
|
845
845
|
updated_by_id: z.string().optional(),
|
|
846
846
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
847
847
|
.optional(),
|
|
848
|
-
updated: z.string().datetime({ offset: true }).default("2026-03-
|
|
848
|
+
updated: z.string().datetime({ offset: true }).default("2026-03-12T17:14:03.720Z").transform(v => new Date(v)),
|
|
849
849
|
}).transform((v) => {
|
|
850
850
|
return (0, primitives_js_1.remap)(v, {
|
|
851
851
|
"_id": "id",
|
|
@@ -95,7 +95,7 @@ exports.UpdateDatasetResponseBody$inboundSchema = z.object({
|
|
|
95
95
|
updated_by_id: z.string().optional(),
|
|
96
96
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
97
97
|
.optional(),
|
|
98
|
-
updated: z.string().datetime({ offset: true }).default("2026-03-
|
|
98
|
+
updated: z.string().datetime({ offset: true }).default("2026-03-12T17:14:03.720Z").transform(v => new Date(v)),
|
|
99
99
|
}).transform((v) => {
|
|
100
100
|
return (0, primitives_js_1.remap)(v, {
|
|
101
101
|
"_id": "id",
|
|
@@ -80,7 +80,7 @@ function updateDatasourceRequestToJSON(updateDatasourceRequest) {
|
|
|
80
80
|
exports.UpdateDatasourceStatus$inboundSchema = z.nativeEnum(exports.UpdateDatasourceStatus);
|
|
81
81
|
/** @internal */
|
|
82
82
|
exports.UpdateDatasourceResponseBody$inboundSchema = z.object({
|
|
83
|
-
_id: z.string().default("
|
|
83
|
+
_id: z.string().default("01KKHGNKV151AKEE67PAAABTB0"),
|
|
84
84
|
display_name: z.string(),
|
|
85
85
|
description: z.string().optional(),
|
|
86
86
|
status: exports.UpdateDatasourceStatus$inboundSchema,
|
|
@@ -776,8 +776,8 @@ exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type$inboundSchema
|
|
|
776
776
|
exports.ResponseBodyTypescript$inboundSchema = z.object({
|
|
777
777
|
_id: z.string(),
|
|
778
778
|
description: z.string(),
|
|
779
|
-
created: z.string().default("2026-03-
|
|
780
|
-
updated: z.string().default("2026-03-
|
|
779
|
+
created: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
780
|
+
updated: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
781
781
|
guardrail_config: z.union([
|
|
782
782
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema),
|
|
783
783
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema),
|
|
@@ -844,8 +844,8 @@ exports.ResponseBodyRagasMetric$inboundSchema = z.nativeEnum(exports.ResponseBod
|
|
|
844
844
|
exports.ResponseBodyRagas$inboundSchema = z.object({
|
|
845
845
|
_id: z.string(),
|
|
846
846
|
description: z.string(),
|
|
847
|
-
created: z.string().default("2026-03-
|
|
848
|
-
updated: z.string().default("2026-03-
|
|
847
|
+
created: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
848
|
+
updated: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
849
849
|
guardrail_config: z.union([
|
|
850
850
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema),
|
|
851
851
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema),
|
|
@@ -1186,8 +1186,8 @@ function responseBodyFunctionParamsFromJSON(jsonString) {
|
|
|
1186
1186
|
exports.ResponseBodyFunction$inboundSchema = z.object({
|
|
1187
1187
|
_id: z.string(),
|
|
1188
1188
|
description: z.string(),
|
|
1189
|
-
created: z.string().default("2026-03-
|
|
1190
|
-
updated: z.string().default("2026-03-
|
|
1189
|
+
created: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
1190
|
+
updated: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
1191
1191
|
guardrail_config: z.union([
|
|
1192
1192
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
|
|
1193
1193
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
@@ -1286,8 +1286,8 @@ exports.UpdateEvalResponseBodyEvalsResponseType$inboundSchema = z
|
|
|
1286
1286
|
exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
|
|
1287
1287
|
_id: z.string(),
|
|
1288
1288
|
description: z.string(),
|
|
1289
|
-
created: z.string().default("2026-03-
|
|
1290
|
-
updated: z.string().default("2026-03-
|
|
1289
|
+
created: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
1290
|
+
updated: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
1291
1291
|
guardrail_config: z.union([
|
|
1292
1292
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
|
|
1293
1293
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
@@ -1352,8 +1352,8 @@ exports.UpdateEvalResponseBodyMethod$inboundSchema = z.nativeEnum(exports.Update
|
|
|
1352
1352
|
exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
|
|
1353
1353
|
_id: z.string(),
|
|
1354
1354
|
description: z.string(),
|
|
1355
|
-
created: z.string().default("2026-03-
|
|
1356
|
-
updated: z.string().default("2026-03-
|
|
1355
|
+
created: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
1356
|
+
updated: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
1357
1357
|
guardrail_config: z.union([
|
|
1358
1358
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
1359
1359
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
@@ -1419,8 +1419,8 @@ exports.UpdateEvalResponseBodyType$inboundSchema = z.nativeEnum(exports.UpdateEv
|
|
|
1419
1419
|
exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
|
|
1420
1420
|
_id: z.string(),
|
|
1421
1421
|
description: z.string(),
|
|
1422
|
-
created: z.string().default("2026-03-
|
|
1423
|
-
updated: z.string().default("2026-03-
|
|
1422
|
+
created: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
1423
|
+
updated: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
1424
1424
|
guardrail_config: z.union([
|
|
1425
1425
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
1426
1426
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -1560,8 +1560,8 @@ function updateEvalLLMJuryFromJSON(jsonString) {
|
|
|
1560
1560
|
exports.UpdateEvalLlm2$inboundSchema = z.object({
|
|
1561
1561
|
_id: z.string(),
|
|
1562
1562
|
description: z.string(),
|
|
1563
|
-
created: z.string().default("2026-03-
|
|
1564
|
-
updated: z.string().default("2026-03-
|
|
1563
|
+
created: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
1564
|
+
updated: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
1565
1565
|
guardrail_config: z.union([
|
|
1566
1566
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema),
|
|
1567
1567
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema),
|
|
@@ -1628,8 +1628,8 @@ exports.UpdateEvalLLMType$inboundSchema = z.nativeEnum(exports.UpdateEvalLLMType
|
|
|
1628
1628
|
exports.UpdateEvalLlm1$inboundSchema = z.object({
|
|
1629
1629
|
_id: z.string(),
|
|
1630
1630
|
description: z.string(),
|
|
1631
|
-
created: z.string().default("2026-03-
|
|
1632
|
-
updated: z.string().default("2026-03-
|
|
1631
|
+
created: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
1632
|
+
updated: z.string().default("2026-03-12T17:14:05.082Z"),
|
|
1633
1633
|
guardrail_config: z.union([
|
|
1634
1634
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema),
|
|
1635
1635
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema),
|
|
@@ -83,7 +83,7 @@ exports.UpdateIdentityResponseBody$inboundSchema = z.object({
|
|
|
83
83
|
metadata: z.record(z.any()).optional(),
|
|
84
84
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
85
85
|
.optional(),
|
|
86
|
-
updated: z.string().datetime({ offset: true }).default("2026-03-
|
|
86
|
+
updated: z.string().datetime({ offset: true }).default("2026-03-12T17:14:03.720Z").transform(v => new Date(v)),
|
|
87
87
|
}).transform((v) => {
|
|
88
88
|
return (0, primitives_js_1.remap)(v, {
|
|
89
89
|
"_id": "id",
|
|
@@ -371,7 +371,7 @@ function updateToolRequestBodyToolsSchemaToJSON(updateToolRequestBodyToolsSchema
|
|
|
371
371
|
}
|
|
372
372
|
/** @internal */
|
|
373
373
|
exports.RequestBodyTools$outboundSchema = z.object({
|
|
374
|
-
id: z.string().default("
|
|
374
|
+
id: z.string().default("01KKHGNKQ54SVYP5G1W6CKECMW"),
|
|
375
375
|
name: z.string(),
|
|
376
376
|
description: z.string().optional(),
|
|
377
377
|
schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -666,7 +666,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
666
666
|
}
|
|
667
667
|
/** @internal */
|
|
668
668
|
exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
669
|
-
_id: z.string().default("
|
|
669
|
+
_id: z.string().default("tool_01KKHGNKPYEWV30JKSX42PH1NH"),
|
|
670
670
|
path: z.string(),
|
|
671
671
|
key: z.string(),
|
|
672
672
|
display_name: z.string().optional(),
|
|
@@ -721,7 +721,7 @@ function updateToolResponseBodyToolsSchemaFromJSON(jsonString) {
|
|
|
721
721
|
}
|
|
722
722
|
/** @internal */
|
|
723
723
|
exports.UpdateToolResponseBodyTools$inboundSchema = z.object({
|
|
724
|
-
id: z.string().default("
|
|
724
|
+
id: z.string().default("01KKHGNKPXRFG7PE0BY5HNNASQ"),
|
|
725
725
|
name: z.string(),
|
|
726
726
|
description: z.string().optional(),
|
|
727
727
|
schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -749,7 +749,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
|
|
|
749
749
|
}
|
|
750
750
|
/** @internal */
|
|
751
751
|
exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
|
|
752
|
-
_id: z.string().default("
|
|
752
|
+
_id: z.string().default("tool_01KKHGNKPWEBSGX84F9ZARAF8W"),
|
|
753
753
|
path: z.string(),
|
|
754
754
|
key: z.string(),
|
|
755
755
|
display_name: z.string().optional(),
|
|
@@ -838,7 +838,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
838
838
|
}
|
|
839
839
|
/** @internal */
|
|
840
840
|
exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
841
|
-
_id: z.string().default("
|
|
841
|
+
_id: z.string().default("tool_01KKHGNKPKQQRTQ8T101WZ88FT"),
|
|
842
842
|
path: z.string(),
|
|
843
843
|
key: z.string(),
|
|
844
844
|
display_name: z.string().optional(),
|
|
@@ -890,7 +890,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
890
890
|
}
|
|
891
891
|
/** @internal */
|
|
892
892
|
exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
893
|
-
_id: z.string().default("
|
|
893
|
+
_id: z.string().default("tool_01KKHGNKPHR75GMR2C829ARPRQ"),
|
|
894
894
|
path: z.string(),
|
|
895
895
|
key: z.string(),
|
|
896
896
|
display_name: z.string().optional(),
|
|
@@ -946,7 +946,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
946
946
|
}
|
|
947
947
|
/** @internal */
|
|
948
948
|
exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
949
|
-
_id: z.string().default("
|
|
949
|
+
_id: z.string().default("tool_01KKHGNKPG5FMZC3J66JAE6GDT"),
|
|
950
950
|
path: z.string(),
|
|
951
951
|
key: z.string(),
|
|
952
952
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
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.
|
|
71
|
+
sdkVersion: "4.5.12",
|
|
72
72
|
genVersion: "2.859.2",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.5.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.5.12 2.859.2 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -3,55 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Type discriminator indicating this is a reasoning part
|
|
14
|
-
*/
|
|
15
|
-
export const PartKind = {
|
|
16
|
-
Reasoning: "reasoning",
|
|
17
|
-
} as const;
|
|
18
|
-
/**
|
|
19
|
-
* Type discriminator indicating this is a reasoning part
|
|
20
|
-
*/
|
|
21
|
-
export type PartKind = ClosedEnum<typeof PartKind>;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* A message part containing reasoning or chain-of-thought content
|
|
25
|
-
*/
|
|
26
|
-
export type PartReasoningPart = {
|
|
27
|
-
/**
|
|
28
|
-
* Unique identifier for the part. Format: reasoning_{ulid} (e.g., reasoning_01hxyz...)
|
|
29
|
-
*/
|
|
30
|
-
id: string;
|
|
31
|
-
/**
|
|
32
|
-
* Optional metadata associated with the message part. Can store arbitrary key-value pairs for custom data. Maximum size of 50KB and maximum of 20 keys.
|
|
33
|
-
*/
|
|
34
|
-
metadata?: { [k: string]: any } | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* Type discriminator indicating this is a reasoning part
|
|
37
|
-
*/
|
|
38
|
-
kind: PartKind;
|
|
39
|
-
/**
|
|
40
|
-
* The reasoning or thought process behind the response. Used for chain-of-thought or extended thinking.
|
|
41
|
-
*/
|
|
42
|
-
reasoning: string;
|
|
43
|
-
/**
|
|
44
|
-
* Optional cryptographic signature to verify the authenticity and integrity of the reasoning content
|
|
45
|
-
*/
|
|
46
|
-
signature?: string | undefined;
|
|
47
|
-
};
|
|
9
|
+
import { PartDelta, PartDelta$inboundSchema } from "./partdelta.js";
|
|
48
10
|
|
|
49
11
|
export type PartDoneEventData = {
|
|
50
12
|
/**
|
|
51
13
|
* Unique identifier for this part. Matches the partId from part.delta events.
|
|
52
14
|
*/
|
|
53
15
|
partId: string;
|
|
54
|
-
part
|
|
16
|
+
part: PartDelta;
|
|
55
17
|
};
|
|
56
18
|
|
|
57
19
|
/**
|
|
@@ -66,37 +28,6 @@ export type PartDoneEvent = {
|
|
|
66
28
|
data: PartDoneEventData;
|
|
67
29
|
};
|
|
68
30
|
|
|
69
|
-
/** @internal */
|
|
70
|
-
export const PartKind$inboundSchema: z.ZodNativeEnum<typeof PartKind> = z
|
|
71
|
-
.nativeEnum(PartKind);
|
|
72
|
-
|
|
73
|
-
/** @internal */
|
|
74
|
-
export const PartReasoningPart$inboundSchema: z.ZodType<
|
|
75
|
-
PartReasoningPart,
|
|
76
|
-
z.ZodTypeDef,
|
|
77
|
-
unknown
|
|
78
|
-
> = z.object({
|
|
79
|
-
_id: z.string().default("reasoning_01kkh3amxzgzckh10n43x2n4sq"),
|
|
80
|
-
metadata: z.record(z.any()).optional(),
|
|
81
|
-
kind: PartKind$inboundSchema,
|
|
82
|
-
reasoning: z.string(),
|
|
83
|
-
signature: z.string().optional(),
|
|
84
|
-
}).transform((v) => {
|
|
85
|
-
return remap$(v, {
|
|
86
|
-
"_id": "id",
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
export function partReasoningPartFromJSON(
|
|
91
|
-
jsonString: string,
|
|
92
|
-
): SafeParseResult<PartReasoningPart, SDKValidationError> {
|
|
93
|
-
return safeParse(
|
|
94
|
-
jsonString,
|
|
95
|
-
(x) => PartReasoningPart$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
-
`Failed to parse 'PartReasoningPart' from JSON`,
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
31
|
/** @internal */
|
|
101
32
|
export const PartDoneEventData$inboundSchema: z.ZodType<
|
|
102
33
|
PartDoneEventData,
|
|
@@ -104,7 +35,7 @@ export const PartDoneEventData$inboundSchema: z.ZodType<
|
|
|
104
35
|
unknown
|
|
105
36
|
> = z.object({
|
|
106
37
|
partId: z.string(),
|
|
107
|
-
part:
|
|
38
|
+
part: PartDelta$inboundSchema,
|
|
108
39
|
});
|
|
109
40
|
|
|
110
41
|
export function partDoneEventDataFromJSON(
|
|
@@ -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_01kkhgnk8ny83gkb6kmdpp4vvp"),
|
|
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-12T17:14:03.720Z",
|
|
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-12T17:14:03.720Z",
|
|
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-12T17:14:22.500Z",
|
|
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-12T17:14:22.499Z",
|
|
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-12T17:14:22.499Z",
|
|
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-12T17:14:03.720Z",
|
|
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("01KKHGNKTZZNW47B1HK8MJ0735"),
|
|
407
407
|
display_name: z.string(),
|
|
408
408
|
description: z.string().optional(),
|
|
409
409
|
status: CreateDatasourceStatus$inboundSchema,
|