@orq-ai/node 3.6.15 → 3.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +188 -188
- package/bin/mcp-server.js.map +35 -35
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/deployments.d.ts +8 -8
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +8 -8
- package/models/components/deployments.js.map +1 -1
- package/models/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createprompt.d.ts +12 -12
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +12 -12
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentcreatemetric.d.ts +8 -8
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +8 -8
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +14 -14
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +14 -14
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +4 -4
- package/models/operations/deploymentinvoke.js +8 -8
- package/models/operations/deployments.d.ts +6 -6
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +6 -6
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +12 -12
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +12 -12
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +6 -6
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +6 -6
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +6 -6
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +6 -6
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +6 -6
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +6 -6
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +6 -6
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +6 -6
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateprompt.d.ts +12 -12
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +12 -12
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/security.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/models/components/deployments.ts +16 -16
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +18 -18
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +121 -121
- package/packages/orq-rc/src/models/operations/createfeedback.ts +16 -16
- package/packages/orq-rc/src/models/operations/createprompt.ts +39 -39
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +22 -18
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +30 -30
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +13 -13
- package/packages/orq-rc/src/models/operations/deployments.ts +14 -14
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +26 -26
- package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsgrammar.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalslocalization.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalspii.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalssummarization.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +4 -4
- package/packages/orq-rc/src/models/operations/evalstranslation.ts +4 -4
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +22 -22
- package/packages/orq-rc/src/models/operations/getevals.ts +339 -364
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +22 -22
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +22 -22
- package/packages/orq-rc/src/models/operations/invokeeval.ts +251 -223
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +16 -12
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +22 -22
- package/packages/orq-rc/src/models/operations/postv2modelslitellmimport.ts +18 -18
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +10 -10
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +21 -19
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +139 -139
- package/packages/orq-rc/src/models/operations/updateprompt.ts +61 -106
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/deployments.ts +16 -16
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createprompt.ts +27 -27
- package/src/models/operations/deploymentcreatemetric.ts +22 -18
- package/src/models/operations/deploymentgetconfig.ts +30 -30
- package/src/models/operations/deploymentinvoke.ts +13 -13
- package/src/models/operations/deployments.ts +14 -14
- package/src/models/operations/deploymentstream.ts +26 -26
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +14 -14
- package/src/models/operations/getoneprompt.ts +14 -14
- package/src/models/operations/getpromptversion.ts +14 -14
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +14 -14
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateprompt.ts +28 -28
|
@@ -142,7 +142,7 @@ export type InvokeEvalRequestBody = {
|
|
|
142
142
|
/**
|
|
143
143
|
* Latest user message
|
|
144
144
|
*/
|
|
145
|
-
|
|
145
|
+
query?: string | undefined;
|
|
146
146
|
/**
|
|
147
147
|
* The generated response from the model
|
|
148
148
|
*/
|
|
@@ -184,7 +184,7 @@ export type InvokeEvalResponseBodyEvalsResponse200Value = {
|
|
|
184
184
|
value: number | boolean;
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export type
|
|
187
|
+
export type InvokeEvalResponseBodyHTTP = {
|
|
188
188
|
type: InvokeEvalResponseBodyEvalsResponse200ApplicationJson8Type;
|
|
189
189
|
value?: InvokeEvalResponseBodyEvalsResponse200Value | null | undefined;
|
|
190
190
|
};
|
|
@@ -206,7 +206,7 @@ export type InvokeEvalResponseBodyEvalsResponseValue = {
|
|
|
206
206
|
explanation?: string | null | undefined;
|
|
207
207
|
};
|
|
208
208
|
|
|
209
|
-
export type
|
|
209
|
+
export type InvokeEvalResponseBodyLLM = {
|
|
210
210
|
type: InvokeEvalResponseBodyEvalsResponse200ApplicationJson7Type;
|
|
211
211
|
value: InvokeEvalResponseBodyEvalsResponseValue | null;
|
|
212
212
|
};
|
|
@@ -223,7 +223,7 @@ export type InvokeEvalResponseBodyEvalsValue = {
|
|
|
223
223
|
recall: number;
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
-
export type
|
|
226
|
+
export type BERTScore = {
|
|
227
227
|
type: InvokeEvalResponseBodyEvalsResponse200ApplicationJson6Type;
|
|
228
228
|
value: InvokeEvalResponseBodyEvalsValue;
|
|
229
229
|
};
|
|
@@ -258,7 +258,7 @@ export type InvokeEvalResponseBodyValue = {
|
|
|
258
258
|
rougeL: RougeL;
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
export type
|
|
261
|
+
export type RougeN = {
|
|
262
262
|
type: InvokeEvalResponseBodyEvalsResponse200ApplicationJSONType;
|
|
263
263
|
value: InvokeEvalResponseBodyValue;
|
|
264
264
|
};
|
|
@@ -270,7 +270,7 @@ export type InvokeEvalResponseBodyEvalsResponse200Type = ClosedEnum<
|
|
|
270
270
|
typeof InvokeEvalResponseBodyEvalsResponse200Type
|
|
271
271
|
>;
|
|
272
272
|
|
|
273
|
-
export type
|
|
273
|
+
export type StringArray = {
|
|
274
274
|
type: InvokeEvalResponseBodyEvalsResponse200Type;
|
|
275
275
|
values: Array<string | null>;
|
|
276
276
|
};
|
|
@@ -284,7 +284,7 @@ export type InvokeEvalResponseBodyEvalsResponseType = ClosedEnum<
|
|
|
284
284
|
|
|
285
285
|
export type ResponseBodyValue = boolean | string | number;
|
|
286
286
|
|
|
287
|
-
export type
|
|
287
|
+
export type ResponseBodyBoolean = {
|
|
288
288
|
type: InvokeEvalResponseBodyEvalsResponseType;
|
|
289
289
|
value: boolean | string | number | null;
|
|
290
290
|
};
|
|
@@ -296,7 +296,7 @@ export type InvokeEvalResponseBodyEvalsType = ClosedEnum<
|
|
|
296
296
|
typeof InvokeEvalResponseBodyEvalsType
|
|
297
297
|
>;
|
|
298
298
|
|
|
299
|
-
export type
|
|
299
|
+
export type ResponseBodyNumber = {
|
|
300
300
|
type: InvokeEvalResponseBodyEvalsType;
|
|
301
301
|
value: number | null;
|
|
302
302
|
};
|
|
@@ -308,7 +308,7 @@ export type InvokeEvalResponseBodyType = ClosedEnum<
|
|
|
308
308
|
typeof InvokeEvalResponseBodyType
|
|
309
309
|
>;
|
|
310
310
|
|
|
311
|
-
export type
|
|
311
|
+
export type String = {
|
|
312
312
|
type: InvokeEvalResponseBodyType;
|
|
313
313
|
value: string | null;
|
|
314
314
|
};
|
|
@@ -317,14 +317,14 @@ export type ResponseBody1 = {
|
|
|
317
317
|
* Returns the result of the evaluator run
|
|
318
318
|
*/
|
|
319
319
|
export type InvokeEvalResponseBody =
|
|
320
|
-
|
|
|
321
|
-
|
|
|
322
|
-
|
|
|
323
|
-
|
|
|
324
|
-
|
|
|
325
|
-
|
|
|
326
|
-
|
|
|
327
|
-
|
|
|
320
|
+
| String
|
|
321
|
+
| ResponseBodyNumber
|
|
322
|
+
| ResponseBodyBoolean
|
|
323
|
+
| StringArray
|
|
324
|
+
| RougeN
|
|
325
|
+
| BERTScore
|
|
326
|
+
| InvokeEvalResponseBodyLLM
|
|
327
|
+
| InvokeEvalResponseBodyHTTP;
|
|
328
328
|
|
|
329
329
|
/** @internal */
|
|
330
330
|
export const InvokeEvalRole$inboundSchema: z.ZodNativeEnum<
|
|
@@ -1062,7 +1062,7 @@ export const InvokeEvalRequestBody$inboundSchema: z.ZodType<
|
|
|
1062
1062
|
z.ZodTypeDef,
|
|
1063
1063
|
unknown
|
|
1064
1064
|
> = z.object({
|
|
1065
|
-
|
|
1065
|
+
query: z.string().optional(),
|
|
1066
1066
|
output: z.string().optional(),
|
|
1067
1067
|
reference: z.string().optional(),
|
|
1068
1068
|
retrievals: z.array(z.string()).optional(),
|
|
@@ -1071,7 +1071,7 @@ export const InvokeEvalRequestBody$inboundSchema: z.ZodType<
|
|
|
1071
1071
|
|
|
1072
1072
|
/** @internal */
|
|
1073
1073
|
export type InvokeEvalRequestBody$Outbound = {
|
|
1074
|
-
|
|
1074
|
+
query?: string | undefined;
|
|
1075
1075
|
output?: string | undefined;
|
|
1076
1076
|
reference?: string | undefined;
|
|
1077
1077
|
retrievals?: Array<string> | undefined;
|
|
@@ -1084,7 +1084,7 @@ export const InvokeEvalRequestBody$outboundSchema: z.ZodType<
|
|
|
1084
1084
|
z.ZodTypeDef,
|
|
1085
1085
|
InvokeEvalRequestBody
|
|
1086
1086
|
> = z.object({
|
|
1087
|
-
|
|
1087
|
+
query: z.string().optional(),
|
|
1088
1088
|
output: z.string().optional(),
|
|
1089
1089
|
reference: z.string().optional(),
|
|
1090
1090
|
retrievals: z.array(z.string()).optional(),
|
|
@@ -1345,17 +1345,20 @@ export function invokeEvalResponseBodyEvalsResponse200ValueFromJSON(
|
|
|
1345
1345
|
}
|
|
1346
1346
|
|
|
1347
1347
|
/** @internal */
|
|
1348
|
-
export const
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1348
|
+
export const InvokeEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
1349
|
+
InvokeEvalResponseBodyHTTP,
|
|
1350
|
+
z.ZodTypeDef,
|
|
1351
|
+
unknown
|
|
1352
|
+
> = z.object({
|
|
1353
|
+
type:
|
|
1354
|
+
InvokeEvalResponseBodyEvalsResponse200ApplicationJson8Type$inboundSchema,
|
|
1355
|
+
value: z.nullable(
|
|
1356
|
+
z.lazy(() => InvokeEvalResponseBodyEvalsResponse200Value$inboundSchema),
|
|
1357
|
+
).optional(),
|
|
1358
|
+
});
|
|
1356
1359
|
|
|
1357
1360
|
/** @internal */
|
|
1358
|
-
export type
|
|
1361
|
+
export type InvokeEvalResponseBodyHTTP$Outbound = {
|
|
1359
1362
|
type: string;
|
|
1360
1363
|
value?:
|
|
1361
1364
|
| InvokeEvalResponseBodyEvalsResponse200Value$Outbound
|
|
@@ -1364,10 +1367,10 @@ export type Eight$Outbound = {
|
|
|
1364
1367
|
};
|
|
1365
1368
|
|
|
1366
1369
|
/** @internal */
|
|
1367
|
-
export const
|
|
1368
|
-
|
|
1370
|
+
export const InvokeEvalResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
1371
|
+
InvokeEvalResponseBodyHTTP$Outbound,
|
|
1369
1372
|
z.ZodTypeDef,
|
|
1370
|
-
|
|
1373
|
+
InvokeEvalResponseBodyHTTP
|
|
1371
1374
|
> = z.object({
|
|
1372
1375
|
type:
|
|
1373
1376
|
InvokeEvalResponseBodyEvalsResponse200ApplicationJson8Type$outboundSchema,
|
|
@@ -1380,26 +1383,30 @@ export const Eight$outboundSchema: z.ZodType<
|
|
|
1380
1383
|
* @internal
|
|
1381
1384
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1382
1385
|
*/
|
|
1383
|
-
export namespace
|
|
1384
|
-
/** @deprecated use `
|
|
1385
|
-
export const inboundSchema =
|
|
1386
|
-
/** @deprecated use `
|
|
1387
|
-
export const outboundSchema =
|
|
1388
|
-
/** @deprecated use `
|
|
1389
|
-
export type Outbound =
|
|
1386
|
+
export namespace InvokeEvalResponseBodyHTTP$ {
|
|
1387
|
+
/** @deprecated use `InvokeEvalResponseBodyHTTP$inboundSchema` instead. */
|
|
1388
|
+
export const inboundSchema = InvokeEvalResponseBodyHTTP$inboundSchema;
|
|
1389
|
+
/** @deprecated use `InvokeEvalResponseBodyHTTP$outboundSchema` instead. */
|
|
1390
|
+
export const outboundSchema = InvokeEvalResponseBodyHTTP$outboundSchema;
|
|
1391
|
+
/** @deprecated use `InvokeEvalResponseBodyHTTP$Outbound` instead. */
|
|
1392
|
+
export type Outbound = InvokeEvalResponseBodyHTTP$Outbound;
|
|
1390
1393
|
}
|
|
1391
1394
|
|
|
1392
|
-
export function
|
|
1393
|
-
|
|
1395
|
+
export function invokeEvalResponseBodyHTTPToJSON(
|
|
1396
|
+
invokeEvalResponseBodyHTTP: InvokeEvalResponseBodyHTTP,
|
|
1397
|
+
): string {
|
|
1398
|
+
return JSON.stringify(
|
|
1399
|
+
InvokeEvalResponseBodyHTTP$outboundSchema.parse(invokeEvalResponseBodyHTTP),
|
|
1400
|
+
);
|
|
1394
1401
|
}
|
|
1395
1402
|
|
|
1396
|
-
export function
|
|
1403
|
+
export function invokeEvalResponseBodyHTTPFromJSON(
|
|
1397
1404
|
jsonString: string,
|
|
1398
|
-
): SafeParseResult<
|
|
1405
|
+
): SafeParseResult<InvokeEvalResponseBodyHTTP, SDKValidationError> {
|
|
1399
1406
|
return safeParse(
|
|
1400
1407
|
jsonString,
|
|
1401
|
-
(x) =>
|
|
1402
|
-
`Failed to parse '
|
|
1408
|
+
(x) => InvokeEvalResponseBodyHTTP$inboundSchema.parse(JSON.parse(x)),
|
|
1409
|
+
`Failed to parse 'InvokeEvalResponseBodyHTTP' from JSON`,
|
|
1403
1410
|
);
|
|
1404
1411
|
}
|
|
1405
1412
|
|
|
@@ -1571,26 +1578,29 @@ export function invokeEvalResponseBodyEvalsResponseValueFromJSON(
|
|
|
1571
1578
|
}
|
|
1572
1579
|
|
|
1573
1580
|
/** @internal */
|
|
1574
|
-
export const
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1581
|
+
export const InvokeEvalResponseBodyLLM$inboundSchema: z.ZodType<
|
|
1582
|
+
InvokeEvalResponseBodyLLM,
|
|
1583
|
+
z.ZodTypeDef,
|
|
1584
|
+
unknown
|
|
1585
|
+
> = z.object({
|
|
1586
|
+
type:
|
|
1587
|
+
InvokeEvalResponseBodyEvalsResponse200ApplicationJson7Type$inboundSchema,
|
|
1588
|
+
value: z.nullable(
|
|
1589
|
+
z.lazy(() => InvokeEvalResponseBodyEvalsResponseValue$inboundSchema),
|
|
1590
|
+
),
|
|
1591
|
+
});
|
|
1582
1592
|
|
|
1583
1593
|
/** @internal */
|
|
1584
|
-
export type
|
|
1594
|
+
export type InvokeEvalResponseBodyLLM$Outbound = {
|
|
1585
1595
|
type: string;
|
|
1586
1596
|
value: InvokeEvalResponseBodyEvalsResponseValue$Outbound | null;
|
|
1587
1597
|
};
|
|
1588
1598
|
|
|
1589
1599
|
/** @internal */
|
|
1590
|
-
export const
|
|
1591
|
-
|
|
1600
|
+
export const InvokeEvalResponseBodyLLM$outboundSchema: z.ZodType<
|
|
1601
|
+
InvokeEvalResponseBodyLLM$Outbound,
|
|
1592
1602
|
z.ZodTypeDef,
|
|
1593
|
-
|
|
1603
|
+
InvokeEvalResponseBodyLLM
|
|
1594
1604
|
> = z.object({
|
|
1595
1605
|
type:
|
|
1596
1606
|
InvokeEvalResponseBodyEvalsResponse200ApplicationJson7Type$outboundSchema,
|
|
@@ -1603,26 +1613,30 @@ export const Seven$outboundSchema: z.ZodType<
|
|
|
1603
1613
|
* @internal
|
|
1604
1614
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1605
1615
|
*/
|
|
1606
|
-
export namespace
|
|
1607
|
-
/** @deprecated use `
|
|
1608
|
-
export const inboundSchema =
|
|
1609
|
-
/** @deprecated use `
|
|
1610
|
-
export const outboundSchema =
|
|
1611
|
-
/** @deprecated use `
|
|
1612
|
-
export type Outbound =
|
|
1616
|
+
export namespace InvokeEvalResponseBodyLLM$ {
|
|
1617
|
+
/** @deprecated use `InvokeEvalResponseBodyLLM$inboundSchema` instead. */
|
|
1618
|
+
export const inboundSchema = InvokeEvalResponseBodyLLM$inboundSchema;
|
|
1619
|
+
/** @deprecated use `InvokeEvalResponseBodyLLM$outboundSchema` instead. */
|
|
1620
|
+
export const outboundSchema = InvokeEvalResponseBodyLLM$outboundSchema;
|
|
1621
|
+
/** @deprecated use `InvokeEvalResponseBodyLLM$Outbound` instead. */
|
|
1622
|
+
export type Outbound = InvokeEvalResponseBodyLLM$Outbound;
|
|
1613
1623
|
}
|
|
1614
1624
|
|
|
1615
|
-
export function
|
|
1616
|
-
|
|
1625
|
+
export function invokeEvalResponseBodyLLMToJSON(
|
|
1626
|
+
invokeEvalResponseBodyLLM: InvokeEvalResponseBodyLLM,
|
|
1627
|
+
): string {
|
|
1628
|
+
return JSON.stringify(
|
|
1629
|
+
InvokeEvalResponseBodyLLM$outboundSchema.parse(invokeEvalResponseBodyLLM),
|
|
1630
|
+
);
|
|
1617
1631
|
}
|
|
1618
1632
|
|
|
1619
|
-
export function
|
|
1633
|
+
export function invokeEvalResponseBodyLLMFromJSON(
|
|
1620
1634
|
jsonString: string,
|
|
1621
|
-
): SafeParseResult<
|
|
1635
|
+
): SafeParseResult<InvokeEvalResponseBodyLLM, SDKValidationError> {
|
|
1622
1636
|
return safeParse(
|
|
1623
1637
|
jsonString,
|
|
1624
|
-
(x) =>
|
|
1625
|
-
`Failed to parse '
|
|
1638
|
+
(x) => InvokeEvalResponseBodyLLM$inboundSchema.parse(JSON.parse(x)),
|
|
1639
|
+
`Failed to parse 'InvokeEvalResponseBodyLLM' from JSON`,
|
|
1626
1640
|
);
|
|
1627
1641
|
}
|
|
1628
1642
|
|
|
@@ -1714,51 +1728,57 @@ export function invokeEvalResponseBodyEvalsValueFromJSON(
|
|
|
1714
1728
|
}
|
|
1715
1729
|
|
|
1716
1730
|
/** @internal */
|
|
1717
|
-
export const
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1731
|
+
export const BERTScore$inboundSchema: z.ZodType<
|
|
1732
|
+
BERTScore,
|
|
1733
|
+
z.ZodTypeDef,
|
|
1734
|
+
unknown
|
|
1735
|
+
> = z.object({
|
|
1736
|
+
type:
|
|
1737
|
+
InvokeEvalResponseBodyEvalsResponse200ApplicationJson6Type$inboundSchema,
|
|
1738
|
+
value: z.lazy(() => InvokeEvalResponseBodyEvalsValue$inboundSchema),
|
|
1739
|
+
});
|
|
1723
1740
|
|
|
1724
1741
|
/** @internal */
|
|
1725
|
-
export type
|
|
1742
|
+
export type BERTScore$Outbound = {
|
|
1726
1743
|
type: string;
|
|
1727
1744
|
value: InvokeEvalResponseBodyEvalsValue$Outbound;
|
|
1728
1745
|
};
|
|
1729
1746
|
|
|
1730
1747
|
/** @internal */
|
|
1731
|
-
export const
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1748
|
+
export const BERTScore$outboundSchema: z.ZodType<
|
|
1749
|
+
BERTScore$Outbound,
|
|
1750
|
+
z.ZodTypeDef,
|
|
1751
|
+
BERTScore
|
|
1752
|
+
> = z.object({
|
|
1753
|
+
type:
|
|
1754
|
+
InvokeEvalResponseBodyEvalsResponse200ApplicationJson6Type$outboundSchema,
|
|
1755
|
+
value: z.lazy(() => InvokeEvalResponseBodyEvalsValue$outboundSchema),
|
|
1756
|
+
});
|
|
1737
1757
|
|
|
1738
1758
|
/**
|
|
1739
1759
|
* @internal
|
|
1740
1760
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1741
1761
|
*/
|
|
1742
|
-
export namespace
|
|
1743
|
-
/** @deprecated use `
|
|
1744
|
-
export const inboundSchema =
|
|
1745
|
-
/** @deprecated use `
|
|
1746
|
-
export const outboundSchema =
|
|
1747
|
-
/** @deprecated use `
|
|
1748
|
-
export type Outbound =
|
|
1762
|
+
export namespace BERTScore$ {
|
|
1763
|
+
/** @deprecated use `BERTScore$inboundSchema` instead. */
|
|
1764
|
+
export const inboundSchema = BERTScore$inboundSchema;
|
|
1765
|
+
/** @deprecated use `BERTScore$outboundSchema` instead. */
|
|
1766
|
+
export const outboundSchema = BERTScore$outboundSchema;
|
|
1767
|
+
/** @deprecated use `BERTScore$Outbound` instead. */
|
|
1768
|
+
export type Outbound = BERTScore$Outbound;
|
|
1749
1769
|
}
|
|
1750
1770
|
|
|
1751
|
-
export function
|
|
1752
|
-
return JSON.stringify(
|
|
1771
|
+
export function bertScoreToJSON(bertScore: BERTScore): string {
|
|
1772
|
+
return JSON.stringify(BERTScore$outboundSchema.parse(bertScore));
|
|
1753
1773
|
}
|
|
1754
1774
|
|
|
1755
|
-
export function
|
|
1775
|
+
export function bertScoreFromJSON(
|
|
1756
1776
|
jsonString: string,
|
|
1757
|
-
): SafeParseResult<
|
|
1777
|
+
): SafeParseResult<BERTScore, SDKValidationError> {
|
|
1758
1778
|
return safeParse(
|
|
1759
1779
|
jsonString,
|
|
1760
|
-
(x) =>
|
|
1761
|
-
`Failed to parse '
|
|
1780
|
+
(x) => BERTScore$inboundSchema.parse(JSON.parse(x)),
|
|
1781
|
+
`Failed to parse 'BERTScore' from JSON`,
|
|
1762
1782
|
);
|
|
1763
1783
|
}
|
|
1764
1784
|
|
|
@@ -2021,7 +2041,7 @@ export function invokeEvalResponseBodyValueFromJSON(
|
|
|
2021
2041
|
}
|
|
2022
2042
|
|
|
2023
2043
|
/** @internal */
|
|
2024
|
-
export const
|
|
2044
|
+
export const RougeN$inboundSchema: z.ZodType<RougeN, z.ZodTypeDef, unknown> = z
|
|
2025
2045
|
.object({
|
|
2026
2046
|
type:
|
|
2027
2047
|
InvokeEvalResponseBodyEvalsResponse200ApplicationJSONType$inboundSchema,
|
|
@@ -2029,43 +2049,46 @@ export const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown> = z
|
|
|
2029
2049
|
});
|
|
2030
2050
|
|
|
2031
2051
|
/** @internal */
|
|
2032
|
-
export type
|
|
2052
|
+
export type RougeN$Outbound = {
|
|
2033
2053
|
type: string;
|
|
2034
2054
|
value: InvokeEvalResponseBodyValue$Outbound;
|
|
2035
2055
|
};
|
|
2036
2056
|
|
|
2037
2057
|
/** @internal */
|
|
2038
|
-
export const
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2058
|
+
export const RougeN$outboundSchema: z.ZodType<
|
|
2059
|
+
RougeN$Outbound,
|
|
2060
|
+
z.ZodTypeDef,
|
|
2061
|
+
RougeN
|
|
2062
|
+
> = z.object({
|
|
2063
|
+
type:
|
|
2064
|
+
InvokeEvalResponseBodyEvalsResponse200ApplicationJSONType$outboundSchema,
|
|
2065
|
+
value: z.lazy(() => InvokeEvalResponseBodyValue$outboundSchema),
|
|
2066
|
+
});
|
|
2044
2067
|
|
|
2045
2068
|
/**
|
|
2046
2069
|
* @internal
|
|
2047
2070
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2048
2071
|
*/
|
|
2049
|
-
export namespace
|
|
2050
|
-
/** @deprecated use `
|
|
2051
|
-
export const inboundSchema =
|
|
2052
|
-
/** @deprecated use `
|
|
2053
|
-
export const outboundSchema =
|
|
2054
|
-
/** @deprecated use `
|
|
2055
|
-
export type Outbound =
|
|
2072
|
+
export namespace RougeN$ {
|
|
2073
|
+
/** @deprecated use `RougeN$inboundSchema` instead. */
|
|
2074
|
+
export const inboundSchema = RougeN$inboundSchema;
|
|
2075
|
+
/** @deprecated use `RougeN$outboundSchema` instead. */
|
|
2076
|
+
export const outboundSchema = RougeN$outboundSchema;
|
|
2077
|
+
/** @deprecated use `RougeN$Outbound` instead. */
|
|
2078
|
+
export type Outbound = RougeN$Outbound;
|
|
2056
2079
|
}
|
|
2057
2080
|
|
|
2058
|
-
export function
|
|
2059
|
-
return JSON.stringify(
|
|
2081
|
+
export function rougeNToJSON(rougeN: RougeN): string {
|
|
2082
|
+
return JSON.stringify(RougeN$outboundSchema.parse(rougeN));
|
|
2060
2083
|
}
|
|
2061
2084
|
|
|
2062
|
-
export function
|
|
2085
|
+
export function rougeNFromJSON(
|
|
2063
2086
|
jsonString: string,
|
|
2064
|
-
): SafeParseResult<
|
|
2087
|
+
): SafeParseResult<RougeN, SDKValidationError> {
|
|
2065
2088
|
return safeParse(
|
|
2066
2089
|
jsonString,
|
|
2067
|
-
(x) =>
|
|
2068
|
-
`Failed to parse '
|
|
2090
|
+
(x) => RougeN$inboundSchema.parse(JSON.parse(x)),
|
|
2091
|
+
`Failed to parse 'RougeN' from JSON`,
|
|
2069
2092
|
);
|
|
2070
2093
|
}
|
|
2071
2094
|
|
|
@@ -2093,8 +2116,8 @@ export namespace InvokeEvalResponseBodyEvalsResponse200Type$ {
|
|
|
2093
2116
|
}
|
|
2094
2117
|
|
|
2095
2118
|
/** @internal */
|
|
2096
|
-
export const
|
|
2097
|
-
|
|
2119
|
+
export const StringArray$inboundSchema: z.ZodType<
|
|
2120
|
+
StringArray,
|
|
2098
2121
|
z.ZodTypeDef,
|
|
2099
2122
|
unknown
|
|
2100
2123
|
> = z.object({
|
|
@@ -2103,16 +2126,16 @@ export const ResponseBody4$inboundSchema: z.ZodType<
|
|
|
2103
2126
|
});
|
|
2104
2127
|
|
|
2105
2128
|
/** @internal */
|
|
2106
|
-
export type
|
|
2129
|
+
export type StringArray$Outbound = {
|
|
2107
2130
|
type: string;
|
|
2108
2131
|
values: Array<string | null>;
|
|
2109
2132
|
};
|
|
2110
2133
|
|
|
2111
2134
|
/** @internal */
|
|
2112
|
-
export const
|
|
2113
|
-
|
|
2135
|
+
export const StringArray$outboundSchema: z.ZodType<
|
|
2136
|
+
StringArray$Outbound,
|
|
2114
2137
|
z.ZodTypeDef,
|
|
2115
|
-
|
|
2138
|
+
StringArray
|
|
2116
2139
|
> = z.object({
|
|
2117
2140
|
type: InvokeEvalResponseBodyEvalsResponse200Type$outboundSchema,
|
|
2118
2141
|
values: z.array(z.nullable(z.string())),
|
|
@@ -2122,26 +2145,26 @@ export const ResponseBody4$outboundSchema: z.ZodType<
|
|
|
2122
2145
|
* @internal
|
|
2123
2146
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2124
2147
|
*/
|
|
2125
|
-
export namespace
|
|
2126
|
-
/** @deprecated use `
|
|
2127
|
-
export const inboundSchema =
|
|
2128
|
-
/** @deprecated use `
|
|
2129
|
-
export const outboundSchema =
|
|
2130
|
-
/** @deprecated use `
|
|
2131
|
-
export type Outbound =
|
|
2148
|
+
export namespace StringArray$ {
|
|
2149
|
+
/** @deprecated use `StringArray$inboundSchema` instead. */
|
|
2150
|
+
export const inboundSchema = StringArray$inboundSchema;
|
|
2151
|
+
/** @deprecated use `StringArray$outboundSchema` instead. */
|
|
2152
|
+
export const outboundSchema = StringArray$outboundSchema;
|
|
2153
|
+
/** @deprecated use `StringArray$Outbound` instead. */
|
|
2154
|
+
export type Outbound = StringArray$Outbound;
|
|
2132
2155
|
}
|
|
2133
2156
|
|
|
2134
|
-
export function
|
|
2135
|
-
return JSON.stringify(
|
|
2157
|
+
export function stringArrayToJSON(stringArray: StringArray): string {
|
|
2158
|
+
return JSON.stringify(StringArray$outboundSchema.parse(stringArray));
|
|
2136
2159
|
}
|
|
2137
2160
|
|
|
2138
|
-
export function
|
|
2161
|
+
export function stringArrayFromJSON(
|
|
2139
2162
|
jsonString: string,
|
|
2140
|
-
): SafeParseResult<
|
|
2163
|
+
): SafeParseResult<StringArray, SDKValidationError> {
|
|
2141
2164
|
return safeParse(
|
|
2142
2165
|
jsonString,
|
|
2143
|
-
(x) =>
|
|
2144
|
-
`Failed to parse '
|
|
2166
|
+
(x) => StringArray$inboundSchema.parse(JSON.parse(x)),
|
|
2167
|
+
`Failed to parse 'StringArray' from JSON`,
|
|
2145
2168
|
);
|
|
2146
2169
|
}
|
|
2147
2170
|
|
|
@@ -2217,8 +2240,8 @@ export function responseBodyValueFromJSON(
|
|
|
2217
2240
|
}
|
|
2218
2241
|
|
|
2219
2242
|
/** @internal */
|
|
2220
|
-
export const
|
|
2221
|
-
|
|
2243
|
+
export const ResponseBodyBoolean$inboundSchema: z.ZodType<
|
|
2244
|
+
ResponseBodyBoolean,
|
|
2222
2245
|
z.ZodTypeDef,
|
|
2223
2246
|
unknown
|
|
2224
2247
|
> = z.object({
|
|
@@ -2227,16 +2250,16 @@ export const ResponseBody3$inboundSchema: z.ZodType<
|
|
|
2227
2250
|
});
|
|
2228
2251
|
|
|
2229
2252
|
/** @internal */
|
|
2230
|
-
export type
|
|
2253
|
+
export type ResponseBodyBoolean$Outbound = {
|
|
2231
2254
|
type: string;
|
|
2232
2255
|
value: boolean | string | number | null;
|
|
2233
2256
|
};
|
|
2234
2257
|
|
|
2235
2258
|
/** @internal */
|
|
2236
|
-
export const
|
|
2237
|
-
|
|
2259
|
+
export const ResponseBodyBoolean$outboundSchema: z.ZodType<
|
|
2260
|
+
ResponseBodyBoolean$Outbound,
|
|
2238
2261
|
z.ZodTypeDef,
|
|
2239
|
-
|
|
2262
|
+
ResponseBodyBoolean
|
|
2240
2263
|
> = z.object({
|
|
2241
2264
|
type: InvokeEvalResponseBodyEvalsResponseType$outboundSchema,
|
|
2242
2265
|
value: z.nullable(z.union([z.boolean(), z.string(), z.number()])),
|
|
@@ -2246,26 +2269,30 @@ export const ResponseBody3$outboundSchema: z.ZodType<
|
|
|
2246
2269
|
* @internal
|
|
2247
2270
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2248
2271
|
*/
|
|
2249
|
-
export namespace
|
|
2250
|
-
/** @deprecated use `
|
|
2251
|
-
export const inboundSchema =
|
|
2252
|
-
/** @deprecated use `
|
|
2253
|
-
export const outboundSchema =
|
|
2254
|
-
/** @deprecated use `
|
|
2255
|
-
export type Outbound =
|
|
2272
|
+
export namespace ResponseBodyBoolean$ {
|
|
2273
|
+
/** @deprecated use `ResponseBodyBoolean$inboundSchema` instead. */
|
|
2274
|
+
export const inboundSchema = ResponseBodyBoolean$inboundSchema;
|
|
2275
|
+
/** @deprecated use `ResponseBodyBoolean$outboundSchema` instead. */
|
|
2276
|
+
export const outboundSchema = ResponseBodyBoolean$outboundSchema;
|
|
2277
|
+
/** @deprecated use `ResponseBodyBoolean$Outbound` instead. */
|
|
2278
|
+
export type Outbound = ResponseBodyBoolean$Outbound;
|
|
2256
2279
|
}
|
|
2257
2280
|
|
|
2258
|
-
export function
|
|
2259
|
-
|
|
2281
|
+
export function responseBodyBooleanToJSON(
|
|
2282
|
+
responseBodyBoolean: ResponseBodyBoolean,
|
|
2283
|
+
): string {
|
|
2284
|
+
return JSON.stringify(
|
|
2285
|
+
ResponseBodyBoolean$outboundSchema.parse(responseBodyBoolean),
|
|
2286
|
+
);
|
|
2260
2287
|
}
|
|
2261
2288
|
|
|
2262
|
-
export function
|
|
2289
|
+
export function responseBodyBooleanFromJSON(
|
|
2263
2290
|
jsonString: string,
|
|
2264
|
-
): SafeParseResult<
|
|
2291
|
+
): SafeParseResult<ResponseBodyBoolean, SDKValidationError> {
|
|
2265
2292
|
return safeParse(
|
|
2266
2293
|
jsonString,
|
|
2267
|
-
(x) =>
|
|
2268
|
-
`Failed to parse '
|
|
2294
|
+
(x) => ResponseBodyBoolean$inboundSchema.parse(JSON.parse(x)),
|
|
2295
|
+
`Failed to parse 'ResponseBodyBoolean' from JSON`,
|
|
2269
2296
|
);
|
|
2270
2297
|
}
|
|
2271
2298
|
|
|
@@ -2291,8 +2318,8 @@ export namespace InvokeEvalResponseBodyEvalsType$ {
|
|
|
2291
2318
|
}
|
|
2292
2319
|
|
|
2293
2320
|
/** @internal */
|
|
2294
|
-
export const
|
|
2295
|
-
|
|
2321
|
+
export const ResponseBodyNumber$inboundSchema: z.ZodType<
|
|
2322
|
+
ResponseBodyNumber,
|
|
2296
2323
|
z.ZodTypeDef,
|
|
2297
2324
|
unknown
|
|
2298
2325
|
> = z.object({
|
|
@@ -2301,16 +2328,16 @@ export const ResponseBody2$inboundSchema: z.ZodType<
|
|
|
2301
2328
|
});
|
|
2302
2329
|
|
|
2303
2330
|
/** @internal */
|
|
2304
|
-
export type
|
|
2331
|
+
export type ResponseBodyNumber$Outbound = {
|
|
2305
2332
|
type: string;
|
|
2306
2333
|
value: number | null;
|
|
2307
2334
|
};
|
|
2308
2335
|
|
|
2309
2336
|
/** @internal */
|
|
2310
|
-
export const
|
|
2311
|
-
|
|
2337
|
+
export const ResponseBodyNumber$outboundSchema: z.ZodType<
|
|
2338
|
+
ResponseBodyNumber$Outbound,
|
|
2312
2339
|
z.ZodTypeDef,
|
|
2313
|
-
|
|
2340
|
+
ResponseBodyNumber
|
|
2314
2341
|
> = z.object({
|
|
2315
2342
|
type: InvokeEvalResponseBodyEvalsType$outboundSchema,
|
|
2316
2343
|
value: z.nullable(z.number()),
|
|
@@ -2320,26 +2347,30 @@ export const ResponseBody2$outboundSchema: z.ZodType<
|
|
|
2320
2347
|
* @internal
|
|
2321
2348
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2322
2349
|
*/
|
|
2323
|
-
export namespace
|
|
2324
|
-
/** @deprecated use `
|
|
2325
|
-
export const inboundSchema =
|
|
2326
|
-
/** @deprecated use `
|
|
2327
|
-
export const outboundSchema =
|
|
2328
|
-
/** @deprecated use `
|
|
2329
|
-
export type Outbound =
|
|
2350
|
+
export namespace ResponseBodyNumber$ {
|
|
2351
|
+
/** @deprecated use `ResponseBodyNumber$inboundSchema` instead. */
|
|
2352
|
+
export const inboundSchema = ResponseBodyNumber$inboundSchema;
|
|
2353
|
+
/** @deprecated use `ResponseBodyNumber$outboundSchema` instead. */
|
|
2354
|
+
export const outboundSchema = ResponseBodyNumber$outboundSchema;
|
|
2355
|
+
/** @deprecated use `ResponseBodyNumber$Outbound` instead. */
|
|
2356
|
+
export type Outbound = ResponseBodyNumber$Outbound;
|
|
2330
2357
|
}
|
|
2331
2358
|
|
|
2332
|
-
export function
|
|
2333
|
-
|
|
2359
|
+
export function responseBodyNumberToJSON(
|
|
2360
|
+
responseBodyNumber: ResponseBodyNumber,
|
|
2361
|
+
): string {
|
|
2362
|
+
return JSON.stringify(
|
|
2363
|
+
ResponseBodyNumber$outboundSchema.parse(responseBodyNumber),
|
|
2364
|
+
);
|
|
2334
2365
|
}
|
|
2335
2366
|
|
|
2336
|
-
export function
|
|
2367
|
+
export function responseBodyNumberFromJSON(
|
|
2337
2368
|
jsonString: string,
|
|
2338
|
-
): SafeParseResult<
|
|
2369
|
+
): SafeParseResult<ResponseBodyNumber, SDKValidationError> {
|
|
2339
2370
|
return safeParse(
|
|
2340
2371
|
jsonString,
|
|
2341
|
-
(x) =>
|
|
2342
|
-
`Failed to parse '
|
|
2372
|
+
(x) => ResponseBodyNumber$inboundSchema.parse(JSON.parse(x)),
|
|
2373
|
+
`Failed to parse 'ResponseBodyNumber' from JSON`,
|
|
2343
2374
|
);
|
|
2344
2375
|
}
|
|
2345
2376
|
|
|
@@ -2365,26 +2396,23 @@ export namespace InvokeEvalResponseBodyType$ {
|
|
|
2365
2396
|
}
|
|
2366
2397
|
|
|
2367
2398
|
/** @internal */
|
|
2368
|
-
export const
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
type: InvokeEvalResponseBodyType$inboundSchema,
|
|
2374
|
-
value: z.nullable(z.string()),
|
|
2375
|
-
});
|
|
2399
|
+
export const String$inboundSchema: z.ZodType<String, z.ZodTypeDef, unknown> = z
|
|
2400
|
+
.object({
|
|
2401
|
+
type: InvokeEvalResponseBodyType$inboundSchema,
|
|
2402
|
+
value: z.nullable(z.string()),
|
|
2403
|
+
});
|
|
2376
2404
|
|
|
2377
2405
|
/** @internal */
|
|
2378
|
-
export type
|
|
2406
|
+
export type String$Outbound = {
|
|
2379
2407
|
type: string;
|
|
2380
2408
|
value: string | null;
|
|
2381
2409
|
};
|
|
2382
2410
|
|
|
2383
2411
|
/** @internal */
|
|
2384
|
-
export const
|
|
2385
|
-
|
|
2412
|
+
export const String$outboundSchema: z.ZodType<
|
|
2413
|
+
String$Outbound,
|
|
2386
2414
|
z.ZodTypeDef,
|
|
2387
|
-
|
|
2415
|
+
String
|
|
2388
2416
|
> = z.object({
|
|
2389
2417
|
type: InvokeEvalResponseBodyType$outboundSchema,
|
|
2390
2418
|
value: z.nullable(z.string()),
|
|
@@ -2394,26 +2422,26 @@ export const ResponseBody1$outboundSchema: z.ZodType<
|
|
|
2394
2422
|
* @internal
|
|
2395
2423
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2396
2424
|
*/
|
|
2397
|
-
export namespace
|
|
2398
|
-
/** @deprecated use `
|
|
2399
|
-
export const inboundSchema =
|
|
2400
|
-
/** @deprecated use `
|
|
2401
|
-
export const outboundSchema =
|
|
2402
|
-
/** @deprecated use `
|
|
2403
|
-
export type Outbound =
|
|
2425
|
+
export namespace String$ {
|
|
2426
|
+
/** @deprecated use `String$inboundSchema` instead. */
|
|
2427
|
+
export const inboundSchema = String$inboundSchema;
|
|
2428
|
+
/** @deprecated use `String$outboundSchema` instead. */
|
|
2429
|
+
export const outboundSchema = String$outboundSchema;
|
|
2430
|
+
/** @deprecated use `String$Outbound` instead. */
|
|
2431
|
+
export type Outbound = String$Outbound;
|
|
2404
2432
|
}
|
|
2405
2433
|
|
|
2406
|
-
export function
|
|
2407
|
-
return JSON.stringify(
|
|
2434
|
+
export function stringToJSON(string: String): string {
|
|
2435
|
+
return JSON.stringify(String$outboundSchema.parse(string));
|
|
2408
2436
|
}
|
|
2409
2437
|
|
|
2410
|
-
export function
|
|
2438
|
+
export function stringFromJSON(
|
|
2411
2439
|
jsonString: string,
|
|
2412
|
-
): SafeParseResult<
|
|
2440
|
+
): SafeParseResult<String, SDKValidationError> {
|
|
2413
2441
|
return safeParse(
|
|
2414
2442
|
jsonString,
|
|
2415
|
-
(x) =>
|
|
2416
|
-
`Failed to parse '
|
|
2443
|
+
(x) => String$inboundSchema.parse(JSON.parse(x)),
|
|
2444
|
+
`Failed to parse 'String' from JSON`,
|
|
2417
2445
|
);
|
|
2418
2446
|
}
|
|
2419
2447
|
|
|
@@ -2423,26 +2451,26 @@ export const InvokeEvalResponseBody$inboundSchema: z.ZodType<
|
|
|
2423
2451
|
z.ZodTypeDef,
|
|
2424
2452
|
unknown
|
|
2425
2453
|
> = z.union([
|
|
2426
|
-
z.lazy(() =>
|
|
2427
|
-
z.lazy(() =>
|
|
2428
|
-
z.lazy(() =>
|
|
2429
|
-
z.lazy(() =>
|
|
2430
|
-
z.lazy(() =>
|
|
2431
|
-
z.lazy(() =>
|
|
2432
|
-
z.lazy(() =>
|
|
2433
|
-
z.lazy(() =>
|
|
2454
|
+
z.lazy(() => String$inboundSchema),
|
|
2455
|
+
z.lazy(() => ResponseBodyNumber$inboundSchema),
|
|
2456
|
+
z.lazy(() => ResponseBodyBoolean$inboundSchema),
|
|
2457
|
+
z.lazy(() => StringArray$inboundSchema),
|
|
2458
|
+
z.lazy(() => RougeN$inboundSchema),
|
|
2459
|
+
z.lazy(() => BERTScore$inboundSchema),
|
|
2460
|
+
z.lazy(() => InvokeEvalResponseBodyLLM$inboundSchema),
|
|
2461
|
+
z.lazy(() => InvokeEvalResponseBodyHTTP$inboundSchema),
|
|
2434
2462
|
]);
|
|
2435
2463
|
|
|
2436
2464
|
/** @internal */
|
|
2437
2465
|
export type InvokeEvalResponseBody$Outbound =
|
|
2438
|
-
|
|
|
2439
|
-
|
|
|
2440
|
-
|
|
|
2441
|
-
|
|
|
2442
|
-
|
|
|
2443
|
-
|
|
|
2444
|
-
|
|
|
2445
|
-
|
|
|
2466
|
+
| String$Outbound
|
|
2467
|
+
| ResponseBodyNumber$Outbound
|
|
2468
|
+
| ResponseBodyBoolean$Outbound
|
|
2469
|
+
| StringArray$Outbound
|
|
2470
|
+
| RougeN$Outbound
|
|
2471
|
+
| BERTScore$Outbound
|
|
2472
|
+
| InvokeEvalResponseBodyLLM$Outbound
|
|
2473
|
+
| InvokeEvalResponseBodyHTTP$Outbound;
|
|
2446
2474
|
|
|
2447
2475
|
/** @internal */
|
|
2448
2476
|
export const InvokeEvalResponseBody$outboundSchema: z.ZodType<
|
|
@@ -2450,14 +2478,14 @@ export const InvokeEvalResponseBody$outboundSchema: z.ZodType<
|
|
|
2450
2478
|
z.ZodTypeDef,
|
|
2451
2479
|
InvokeEvalResponseBody
|
|
2452
2480
|
> = z.union([
|
|
2453
|
-
z.lazy(() =>
|
|
2454
|
-
z.lazy(() =>
|
|
2455
|
-
z.lazy(() =>
|
|
2456
|
-
z.lazy(() =>
|
|
2457
|
-
z.lazy(() =>
|
|
2458
|
-
z.lazy(() =>
|
|
2459
|
-
z.lazy(() =>
|
|
2460
|
-
z.lazy(() =>
|
|
2481
|
+
z.lazy(() => String$outboundSchema),
|
|
2482
|
+
z.lazy(() => ResponseBodyNumber$outboundSchema),
|
|
2483
|
+
z.lazy(() => ResponseBodyBoolean$outboundSchema),
|
|
2484
|
+
z.lazy(() => StringArray$outboundSchema),
|
|
2485
|
+
z.lazy(() => RougeN$outboundSchema),
|
|
2486
|
+
z.lazy(() => BERTScore$outboundSchema),
|
|
2487
|
+
z.lazy(() => InvokeEvalResponseBodyLLM$outboundSchema),
|
|
2488
|
+
z.lazy(() => InvokeEvalResponseBodyHTTP$outboundSchema),
|
|
2461
2489
|
]);
|
|
2462
2490
|
|
|
2463
2491
|
/**
|