@orq-ai/node 4.8.0-rc.8 → 4.8.0-rc.9
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/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.d.ts +42 -42
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +64 -63
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevals.js +6 -6
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/getv2humanevalsid.js +6 -6
- 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/patchv2humanevalsetsid.js +2 -2
- package/models/operations/patchv2humanevalsid.js +12 -12
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevals.js +12 -12
- package/models/operations/postv2humanevalsets.js +2 -2
- 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.d.ts +69 -0
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +92 -19
- package/models/operations/updateeval.js.map +1 -1
- 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/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 +213 -160
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevals.ts +6 -6
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/getv2humanevalsid.ts +6 -6
- 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/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/patchv2humanevalsid.ts +12 -12
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevals.ts +12 -12
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- 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 +178 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-04-
|
|
274
|
+
"2026-04-13T13:17:01.083Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-04-
|
|
319
|
+
"2026-04-13T13:17:01.083Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -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-04-
|
|
1210
|
+
"2026-04-13T13:17:17.940Z",
|
|
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-04-
|
|
1258
|
+
"2026-04-13T13:17:17.940Z",
|
|
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-04-
|
|
1303
|
+
"2026-04-13T13:17:17.939Z",
|
|
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-04-
|
|
1380
|
+
"2026-04-13T13:17:01.083Z",
|
|
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-04-
|
|
129
|
+
"2026-04-13T13:17:01.083Z",
|
|
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("01KP3FTGNYDNP3D9R0Q65HY8H0"),
|
|
122
122
|
display_name: z.string(),
|
|
123
123
|
description: z.string().optional(),
|
|
124
124
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -151,7 +151,7 @@ export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
151
151
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
152
152
|
.optional(),
|
|
153
153
|
updated: z.string().datetime({ offset: true }).default(
|
|
154
|
-
"2026-04-
|
|
154
|
+
"2026-04-13T13:17:01.083Z",
|
|
155
155
|
).transform(v => new Date(v)),
|
|
156
156
|
metrics: z.nullable(z.lazy(() => Metrics$inboundSchema)).optional(),
|
|
157
157
|
}).transform((v) => {
|
|
@@ -753,7 +753,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
753
753
|
z.ZodTypeDef,
|
|
754
754
|
unknown
|
|
755
755
|
> = z.object({
|
|
756
|
-
_id: z.string().default("
|
|
756
|
+
_id: z.string().default("tool_01KP3FTGHQEFB5CPVQY7JY1651"),
|
|
757
757
|
path: z.string(),
|
|
758
758
|
key: z.string(),
|
|
759
759
|
display_name: z.string().optional(),
|
|
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
859
859
|
z.ZodTypeDef,
|
|
860
860
|
unknown
|
|
861
861
|
> = z.object({
|
|
862
|
-
id: z.string().default("
|
|
862
|
+
id: z.string().default("01KP3FTGHPS1GHRPVVZ2BYHFAH"),
|
|
863
863
|
name: z.string(),
|
|
864
864
|
description: z.string().optional(),
|
|
865
865
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KP3FTGHMNB7H5C1NDZGFZFMR"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1108,7 +1108,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1108
1108
|
z.ZodTypeDef,
|
|
1109
1109
|
unknown
|
|
1110
1110
|
> = z.object({
|
|
1111
|
-
_id: z.string().default("
|
|
1111
|
+
_id: z.string().default("tool_01KP3FTGHJE1P8X4HTP01GPAJA"),
|
|
1112
1112
|
path: z.string(),
|
|
1113
1113
|
key: z.string(),
|
|
1114
1114
|
display_name: z.string().optional(),
|
|
@@ -1204,7 +1204,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1204
1204
|
z.ZodTypeDef,
|
|
1205
1205
|
unknown
|
|
1206
1206
|
> = z.object({
|
|
1207
|
-
_id: z.string().default("
|
|
1207
|
+
_id: z.string().default("tool_01KP3FTGHGRSCJEP08KXSA2K2D"),
|
|
1208
1208
|
path: z.string(),
|
|
1209
1209
|
key: z.string(),
|
|
1210
1210
|
display_name: z.string().optional(),
|
|
@@ -1310,7 +1310,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1310
1310
|
z.ZodTypeDef,
|
|
1311
1311
|
unknown
|
|
1312
1312
|
> = z.object({
|
|
1313
|
-
_id: z.string().default("
|
|
1313
|
+
_id: z.string().default("tool_01KP3FTGHEXW4JHZD8W0M1P96M"),
|
|
1314
1314
|
path: z.string(),
|
|
1315
1315
|
key: z.string(),
|
|
1316
1316
|
display_name: z.string().optional(),
|
|
@@ -3628,7 +3628,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3628
3628
|
z.ZodTypeDef,
|
|
3629
3629
|
Tools
|
|
3630
3630
|
> = z.object({
|
|
3631
|
-
id: z.string().default("
|
|
3631
|
+
id: z.string().default("01KP3FTFQV26SMA19A486DVQ7K"),
|
|
3632
3632
|
name: z.string(),
|
|
3633
3633
|
description: z.string().optional(),
|
|
3634
3634
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3675,7 +3675,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3675
3675
|
z.ZodTypeDef,
|
|
3676
3676
|
AgentToolInputRunTools
|
|
3677
3677
|
> = z.object({
|
|
3678
|
-
id: z.string().default("
|
|
3678
|
+
id: z.string().default("01KP3FTFSP3384CH4BK98Y8J5J"),
|
|
3679
3679
|
name: z.string(),
|
|
3680
3680
|
description: z.string().optional(),
|
|
3681
3681
|
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-04-
|
|
2361
|
+
"2026-04-13T13:17:17.966Z",
|
|
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-04-
|
|
2407
|
+
"2026-04-13T13:17:17.966Z",
|
|
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-04-
|
|
2452
|
+
"2026-04-13T13:17:17.966Z",
|
|
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-04-
|
|
2533
|
+
"2026-04-13T13:17:01.083Z",
|
|
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-04-
|
|
185
|
+
"2026-04-13T13:17:01.083Z",
|
|
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("01KP3FTGP114CDG611N20QDNK3"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.string().optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -62,6 +62,40 @@ export type Jury = {
|
|
|
62
62
|
tieValue?: TieValue | undefined;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
+
export const Operator = {
|
|
66
|
+
Eq: "eq",
|
|
67
|
+
Ne: "ne",
|
|
68
|
+
Gt: "gt",
|
|
69
|
+
Gte: "gte",
|
|
70
|
+
Lt: "lt",
|
|
71
|
+
Lte: "lte",
|
|
72
|
+
} as const;
|
|
73
|
+
export type Operator = ClosedEnum<typeof Operator>;
|
|
74
|
+
|
|
75
|
+
export type NumberT = {
|
|
76
|
+
enabled: boolean;
|
|
77
|
+
alertOnFailure?: boolean | undefined;
|
|
78
|
+
type: "number";
|
|
79
|
+
value: number;
|
|
80
|
+
operator: Operator;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export type Categorical = {
|
|
84
|
+
enabled: boolean;
|
|
85
|
+
alertOnFailure?: boolean | undefined;
|
|
86
|
+
type: "categorical";
|
|
87
|
+
values: Array<string>;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export type Boolean = {
|
|
91
|
+
enabled: boolean;
|
|
92
|
+
alertOnFailure?: boolean | undefined;
|
|
93
|
+
type: "boolean";
|
|
94
|
+
value: boolean;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export type GuardrailConfig = Boolean | Categorical | NumberT;
|
|
98
|
+
|
|
65
99
|
export const VersionIncrement = {
|
|
66
100
|
Major: "major",
|
|
67
101
|
Minor: "minor",
|
|
@@ -94,6 +128,7 @@ export type UpdateEvalRequestBody = {
|
|
|
94
128
|
headers?: { [k: string]: string } | undefined;
|
|
95
129
|
payload?: { [k: string]: any } | undefined;
|
|
96
130
|
code?: string | undefined;
|
|
131
|
+
guardrailConfig?: Boolean | Categorical | NumberT | null | undefined;
|
|
97
132
|
versionIncrement?: VersionIncrement | undefined;
|
|
98
133
|
versionDescription?: string | undefined;
|
|
99
134
|
};
|
|
@@ -1127,6 +1162,119 @@ export function juryToJSON(jury: Jury): string {
|
|
|
1127
1162
|
return JSON.stringify(Jury$outboundSchema.parse(jury));
|
|
1128
1163
|
}
|
|
1129
1164
|
|
|
1165
|
+
/** @internal */
|
|
1166
|
+
export const Operator$outboundSchema: z.ZodNativeEnum<typeof Operator> = z
|
|
1167
|
+
.nativeEnum(Operator);
|
|
1168
|
+
|
|
1169
|
+
/** @internal */
|
|
1170
|
+
export type NumberT$Outbound = {
|
|
1171
|
+
enabled: boolean;
|
|
1172
|
+
alert_on_failure: boolean;
|
|
1173
|
+
type: "number";
|
|
1174
|
+
value: number;
|
|
1175
|
+
operator: string;
|
|
1176
|
+
};
|
|
1177
|
+
|
|
1178
|
+
/** @internal */
|
|
1179
|
+
export const NumberT$outboundSchema: z.ZodType<
|
|
1180
|
+
NumberT$Outbound,
|
|
1181
|
+
z.ZodTypeDef,
|
|
1182
|
+
NumberT
|
|
1183
|
+
> = z.object({
|
|
1184
|
+
enabled: z.boolean(),
|
|
1185
|
+
alertOnFailure: z.boolean().default(false),
|
|
1186
|
+
type: z.literal("number"),
|
|
1187
|
+
value: z.number(),
|
|
1188
|
+
operator: Operator$outboundSchema,
|
|
1189
|
+
}).transform((v) => {
|
|
1190
|
+
return remap$(v, {
|
|
1191
|
+
alertOnFailure: "alert_on_failure",
|
|
1192
|
+
});
|
|
1193
|
+
});
|
|
1194
|
+
|
|
1195
|
+
export function numberToJSON(numberT: NumberT): string {
|
|
1196
|
+
return JSON.stringify(NumberT$outboundSchema.parse(numberT));
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
/** @internal */
|
|
1200
|
+
export type Categorical$Outbound = {
|
|
1201
|
+
enabled: boolean;
|
|
1202
|
+
alert_on_failure: boolean;
|
|
1203
|
+
type: "categorical";
|
|
1204
|
+
values: Array<string>;
|
|
1205
|
+
};
|
|
1206
|
+
|
|
1207
|
+
/** @internal */
|
|
1208
|
+
export const Categorical$outboundSchema: z.ZodType<
|
|
1209
|
+
Categorical$Outbound,
|
|
1210
|
+
z.ZodTypeDef,
|
|
1211
|
+
Categorical
|
|
1212
|
+
> = z.object({
|
|
1213
|
+
enabled: z.boolean(),
|
|
1214
|
+
alertOnFailure: z.boolean().default(false),
|
|
1215
|
+
type: z.literal("categorical"),
|
|
1216
|
+
values: z.array(z.string()),
|
|
1217
|
+
}).transform((v) => {
|
|
1218
|
+
return remap$(v, {
|
|
1219
|
+
alertOnFailure: "alert_on_failure",
|
|
1220
|
+
});
|
|
1221
|
+
});
|
|
1222
|
+
|
|
1223
|
+
export function categoricalToJSON(categorical: Categorical): string {
|
|
1224
|
+
return JSON.stringify(Categorical$outboundSchema.parse(categorical));
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/** @internal */
|
|
1228
|
+
export type Boolean$Outbound = {
|
|
1229
|
+
enabled: boolean;
|
|
1230
|
+
alert_on_failure: boolean;
|
|
1231
|
+
type: "boolean";
|
|
1232
|
+
value: boolean;
|
|
1233
|
+
};
|
|
1234
|
+
|
|
1235
|
+
/** @internal */
|
|
1236
|
+
export const Boolean$outboundSchema: z.ZodType<
|
|
1237
|
+
Boolean$Outbound,
|
|
1238
|
+
z.ZodTypeDef,
|
|
1239
|
+
Boolean
|
|
1240
|
+
> = z.object({
|
|
1241
|
+
enabled: z.boolean(),
|
|
1242
|
+
alertOnFailure: z.boolean().default(false),
|
|
1243
|
+
type: z.literal("boolean"),
|
|
1244
|
+
value: z.boolean(),
|
|
1245
|
+
}).transform((v) => {
|
|
1246
|
+
return remap$(v, {
|
|
1247
|
+
alertOnFailure: "alert_on_failure",
|
|
1248
|
+
});
|
|
1249
|
+
});
|
|
1250
|
+
|
|
1251
|
+
export function booleanToJSON(value: Boolean): string {
|
|
1252
|
+
return JSON.stringify(Boolean$outboundSchema.parse(value));
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
/** @internal */
|
|
1256
|
+
export type GuardrailConfig$Outbound =
|
|
1257
|
+
| Boolean$Outbound
|
|
1258
|
+
| Categorical$Outbound
|
|
1259
|
+
| NumberT$Outbound;
|
|
1260
|
+
|
|
1261
|
+
/** @internal */
|
|
1262
|
+
export const GuardrailConfig$outboundSchema: z.ZodType<
|
|
1263
|
+
GuardrailConfig$Outbound,
|
|
1264
|
+
z.ZodTypeDef,
|
|
1265
|
+
GuardrailConfig
|
|
1266
|
+
> = z.union([
|
|
1267
|
+
z.lazy(() => Boolean$outboundSchema),
|
|
1268
|
+
z.lazy(() => Categorical$outboundSchema),
|
|
1269
|
+
z.lazy(() => NumberT$outboundSchema),
|
|
1270
|
+
]);
|
|
1271
|
+
|
|
1272
|
+
export function guardrailConfigToJSON(
|
|
1273
|
+
guardrailConfig: GuardrailConfig,
|
|
1274
|
+
): string {
|
|
1275
|
+
return JSON.stringify(GuardrailConfig$outboundSchema.parse(guardrailConfig));
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1130
1278
|
/** @internal */
|
|
1131
1279
|
export const VersionIncrement$outboundSchema: z.ZodNativeEnum<
|
|
1132
1280
|
typeof VersionIncrement
|
|
@@ -1152,6 +1300,12 @@ export type UpdateEvalRequestBody$Outbound = {
|
|
|
1152
1300
|
headers?: { [k: string]: string } | undefined;
|
|
1153
1301
|
payload?: { [k: string]: any } | undefined;
|
|
1154
1302
|
code?: string | undefined;
|
|
1303
|
+
guardrail_config?:
|
|
1304
|
+
| Boolean$Outbound
|
|
1305
|
+
| Categorical$Outbound
|
|
1306
|
+
| NumberT$Outbound
|
|
1307
|
+
| null
|
|
1308
|
+
| undefined;
|
|
1155
1309
|
versionIncrement?: string | undefined;
|
|
1156
1310
|
versionDescription?: string | undefined;
|
|
1157
1311
|
};
|
|
@@ -1181,12 +1335,20 @@ export const UpdateEvalRequestBody$outboundSchema: z.ZodType<
|
|
|
1181
1335
|
headers: z.record(z.string()).optional(),
|
|
1182
1336
|
payload: z.record(z.any()).optional(),
|
|
1183
1337
|
code: z.string().optional(),
|
|
1338
|
+
guardrailConfig: z.nullable(
|
|
1339
|
+
z.union([
|
|
1340
|
+
z.lazy(() => Boolean$outboundSchema),
|
|
1341
|
+
z.lazy(() => Categorical$outboundSchema),
|
|
1342
|
+
z.lazy(() => NumberT$outboundSchema),
|
|
1343
|
+
]),
|
|
1344
|
+
).optional(),
|
|
1184
1345
|
versionIncrement: VersionIncrement$outboundSchema.optional(),
|
|
1185
1346
|
versionDescription: z.string().optional(),
|
|
1186
1347
|
}).transform((v) => {
|
|
1187
1348
|
return remap$(v, {
|
|
1188
1349
|
outputType: "output_type",
|
|
1189
1350
|
categoricalLabels: "categorical_labels",
|
|
1351
|
+
guardrailConfig: "guardrail_config",
|
|
1190
1352
|
});
|
|
1191
1353
|
});
|
|
1192
1354
|
|
|
@@ -1379,8 +1541,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
1379
1541
|
> = z.object({
|
|
1380
1542
|
_id: z.string(),
|
|
1381
1543
|
description: z.string(),
|
|
1382
|
-
created: z.string().default("2026-04-
|
|
1383
|
-
updated: z.string().default("2026-04-
|
|
1544
|
+
created: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
1545
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
1384
1546
|
guardrail_config: z.nullable(
|
|
1385
1547
|
z.union([
|
|
1386
1548
|
z.lazy(() =>
|
|
@@ -1573,8 +1735,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
1573
1735
|
> = z.object({
|
|
1574
1736
|
_id: z.string(),
|
|
1575
1737
|
description: z.string(),
|
|
1576
|
-
created: z.string().default("2026-04-
|
|
1577
|
-
updated: z.string().default("2026-04-
|
|
1738
|
+
created: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
1739
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
1578
1740
|
guardrail_config: z.nullable(
|
|
1579
1741
|
z.union([
|
|
1580
1742
|
z.lazy(() =>
|
|
@@ -2430,8 +2592,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
2430
2592
|
> = z.object({
|
|
2431
2593
|
_id: z.string(),
|
|
2432
2594
|
description: z.string(),
|
|
2433
|
-
created: z.string().default("2026-04-
|
|
2434
|
-
updated: z.string().default("2026-04-
|
|
2595
|
+
created: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
2596
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
2435
2597
|
guardrail_config: z.nullable(
|
|
2436
2598
|
z.union([
|
|
2437
2599
|
z.lazy(() =>
|
|
@@ -2647,8 +2809,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2647
2809
|
> = z.object({
|
|
2648
2810
|
_id: z.string(),
|
|
2649
2811
|
description: z.string(),
|
|
2650
|
-
created: z.string().default("2026-04-
|
|
2651
|
-
updated: z.string().default("2026-04-
|
|
2812
|
+
created: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
2813
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
2652
2814
|
guardrail_config: z.nullable(
|
|
2653
2815
|
z.union([
|
|
2654
2816
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -2814,8 +2976,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2814
2976
|
> = z.object({
|
|
2815
2977
|
_id: z.string(),
|
|
2816
2978
|
description: z.string(),
|
|
2817
|
-
created: z.string().default("2026-04-
|
|
2818
|
-
updated: z.string().default("2026-04-
|
|
2979
|
+
created: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
2980
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
2819
2981
|
guardrail_config: z.nullable(
|
|
2820
2982
|
z.union([
|
|
2821
2983
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -2966,8 +3128,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
2966
3128
|
> = z.object({
|
|
2967
3129
|
_id: z.string(),
|
|
2968
3130
|
description: z.string(),
|
|
2969
|
-
created: z.string().default("2026-04-
|
|
2970
|
-
updated: z.string().default("2026-04-
|
|
3131
|
+
created: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
3132
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
2971
3133
|
guardrail_config: z.nullable(
|
|
2972
3134
|
z.union([
|
|
2973
3135
|
z.lazy(() => UpdateEvalGuardrailConfigBoolean$inboundSchema),
|
|
@@ -3327,8 +3489,8 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3327
3489
|
> = z.object({
|
|
3328
3490
|
_id: z.string(),
|
|
3329
3491
|
description: z.string(),
|
|
3330
|
-
created: z.string().default("2026-04-
|
|
3331
|
-
updated: z.string().default("2026-04-
|
|
3492
|
+
created: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
3493
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
3332
3494
|
guardrail_config: z.nullable(
|
|
3333
3495
|
z.union([
|
|
3334
3496
|
z.lazy(() =>
|
|
@@ -3536,8 +3698,8 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
3536
3698
|
> = z.object({
|
|
3537
3699
|
_id: z.string(),
|
|
3538
3700
|
description: z.string(),
|
|
3539
|
-
created: z.string().default("2026-04-
|
|
3540
|
-
updated: z.string().default("2026-04-
|
|
3701
|
+
created: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
3702
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
3541
3703
|
guardrail_config: z.nullable(
|
|
3542
3704
|
z.union([
|
|
3543
3705
|
z.lazy(() =>
|
|
@@ -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-04-
|
|
170
|
+
"2026-04-13T13:17:01.083Z",
|
|
171
171
|
).transform(v => new Date(v)),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -1472,7 +1472,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
|
1472
1472
|
z.ZodTypeDef,
|
|
1473
1473
|
RequestBodyTools
|
|
1474
1474
|
> = z.object({
|
|
1475
|
-
id: z.string().default("
|
|
1475
|
+
id: z.string().default("01KP3FTGFWKR1KBD8SM63CAZWC"),
|
|
1476
1476
|
name: z.string(),
|
|
1477
1477
|
description: z.string().optional(),
|
|
1478
1478
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -2193,7 +2193,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2193
2193
|
z.ZodTypeDef,
|
|
2194
2194
|
unknown
|
|
2195
2195
|
> = z.object({
|
|
2196
|
-
_id: z.string().default("
|
|
2196
|
+
_id: z.string().default("tool_01KP3FTGDWD36ZPARPT1J7WFBQ"),
|
|
2197
2197
|
path: z.string(),
|
|
2198
2198
|
key: z.string(),
|
|
2199
2199
|
display_name: z.string().optional(),
|
|
@@ -2296,7 +2296,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2296
2296
|
z.ZodTypeDef,
|
|
2297
2297
|
unknown
|
|
2298
2298
|
> = z.object({
|
|
2299
|
-
id: z.string().default("
|
|
2299
|
+
id: z.string().default("01KP3FTGDRD0JBMPMF2CBH59XC"),
|
|
2300
2300
|
name: z.string(),
|
|
2301
2301
|
description: z.string().optional(),
|
|
2302
2302
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -2354,7 +2354,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2354
2354
|
z.ZodTypeDef,
|
|
2355
2355
|
unknown
|
|
2356
2356
|
> = z.object({
|
|
2357
|
-
_id: z.string().default("
|
|
2357
|
+
_id: z.string().default("tool_01KP3FTGDKHFWFCZ0DDJ3A8R1C"),
|
|
2358
2358
|
path: z.string(),
|
|
2359
2359
|
key: z.string(),
|
|
2360
2360
|
display_name: z.string().optional(),
|
|
@@ -2543,7 +2543,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2543
2543
|
z.ZodTypeDef,
|
|
2544
2544
|
unknown
|
|
2545
2545
|
> = z.object({
|
|
2546
|
-
_id: z.string().default("
|
|
2546
|
+
_id: z.string().default("tool_01KP3FTGD80VNJNT54TE69464T"),
|
|
2547
2547
|
path: z.string(),
|
|
2548
2548
|
key: z.string(),
|
|
2549
2549
|
display_name: z.string().optional(),
|
|
@@ -2638,7 +2638,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2638
2638
|
z.ZodTypeDef,
|
|
2639
2639
|
unknown
|
|
2640
2640
|
> = z.object({
|
|
2641
|
-
_id: z.string().default("
|
|
2641
|
+
_id: z.string().default("tool_01KP3FTGD2CR9YJ4YC6NTAJP62"),
|
|
2642
2642
|
path: z.string(),
|
|
2643
2643
|
key: z.string(),
|
|
2644
2644
|
display_name: z.string().optional(),
|
|
@@ -2741,7 +2741,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2741
2741
|
z.ZodTypeDef,
|
|
2742
2742
|
unknown
|
|
2743
2743
|
> = z.object({
|
|
2744
|
-
_id: z.string().default("
|
|
2744
|
+
_id: z.string().default("tool_01KP3FTGCVT4D4XQK6PXYGESCZ"),
|
|
2745
2745
|
path: z.string(),
|
|
2746
2746
|
key: z.string(),
|
|
2747
2747
|
display_name: z.string().optional(),
|