@orq-ai/node 3.6.9 → 3.6.11
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 +40 -40
- package/bin/mcp-server.js.map +21 -21
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.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/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- 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/package.json +1 -1
- package/packages/orq-rc/README.md +92 -79
- package/packages/orq-rc/docs/sdks/evals/README.md +315 -14
- 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/funcs/evalsAll.ts +169 -0
- package/packages/orq-rc/src/funcs/{evalsRunBertScore.ts → evalsBertScore.ts} +19 -17
- package/packages/orq-rc/src/funcs/evalsDelete.ts +169 -0
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +173 -0
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +169 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +11 -3
- package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/{evalsRunBertScore.ts → evalsBertScore.ts} +5 -5
- package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +33 -0
- package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +35 -0
- package/packages/orq-rc/src/models/errors/deleteeval.ts +71 -0
- package/packages/orq-rc/src/models/errors/evalsbertscore.ts +137 -0
- package/packages/orq-rc/src/models/errors/getevals.ts +71 -0
- package/packages/orq-rc/src/models/errors/index.ts +5 -1
- package/packages/orq-rc/src/models/errors/invokeeval.ts +137 -0
- package/packages/orq-rc/src/models/errors/updateeval.ts +71 -0
- 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 +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/deleteeval.ts +66 -0
- package/packages/orq-rc/src/models/operations/evalsbertscore.ts +197 -0
- 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/getevals.ts +6187 -0
- package/packages/orq-rc/src/models/operations/index.ts +5 -1
- package/packages/orq-rc/src/models/operations/invokeeval.ts +2492 -0
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- 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/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- 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 +2 -2
- 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 +4131 -0
- package/packages/orq-rc/src/sdk/evals.ts +65 -5
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- 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/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- 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/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/packages/orq-rc/src/models/errors/runbertscore.ts +0 -137
- package/packages/orq-rc/src/models/operations/runbertscore.ts +0 -197
|
@@ -182,7 +182,7 @@ export const CreateContactResponseBody$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
|
-
"2025-06-
|
|
185
|
+
"2025-06-05T06:05:37.917Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -223,7 +223,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
223
223
|
tags: z.array(z.string()).optional(),
|
|
224
224
|
metadata: z.record(z.any()).optional(),
|
|
225
225
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
226
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
226
|
+
updated: z.date().default(() => new Date("2025-06-05T06:05:37.917Z"))
|
|
227
227
|
.transform(v => v.toISOString()),
|
|
228
228
|
}).transform((v) => {
|
|
229
229
|
return remap$(v, {
|
|
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
211
211
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
212
212
|
.optional(),
|
|
213
213
|
updated: z.string().datetime({ offset: true }).default(
|
|
214
|
-
"2025-06-
|
|
214
|
+
"2025-06-05T06:05:37.917Z",
|
|
215
215
|
).transform(v => new Date(v)),
|
|
216
216
|
}).transform((v) => {
|
|
217
217
|
return remap$(v, {
|
|
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
251
251
|
updatedById: z.string().optional(),
|
|
252
252
|
metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
|
|
253
253
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
254
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
254
|
+
updated: z.date().default(() => new Date("2025-06-05T06:05:37.917Z"))
|
|
255
255
|
.transform(v => v.toISOString()),
|
|
256
256
|
}).transform((v) => {
|
|
257
257
|
return remap$(v, {
|
|
@@ -5111,7 +5111,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
5111
5111
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
5112
5112
|
.optional(),
|
|
5113
5113
|
updated: z.string().datetime({ offset: true }).default(
|
|
5114
|
-
"2025-06-
|
|
5114
|
+
"2025-06-05T06:05:37.917Z",
|
|
5115
5115
|
).transform(v => new Date(v)),
|
|
5116
5116
|
}).transform((v) => {
|
|
5117
5117
|
return remap$(v, {
|
|
@@ -5175,7 +5175,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
|
|
|
5175
5175
|
createdById: z.string().optional(),
|
|
5176
5176
|
updatedById: z.string().optional(),
|
|
5177
5177
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
5178
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
5178
|
+
updated: z.date().default(() => new Date("2025-06-05T06:05:37.917Z"))
|
|
5179
5179
|
.transform(v => v.toISOString()),
|
|
5180
5180
|
}).transform((v) => {
|
|
5181
5181
|
return remap$(v, {
|
|
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
751
751
|
z.ZodTypeDef,
|
|
752
752
|
unknown
|
|
753
753
|
> = z.object({
|
|
754
|
-
_id: z.string().default("
|
|
754
|
+
_id: z.string().default("01JWZB42SFMH2TZGYAZ1XX96Q0"),
|
|
755
755
|
display_name: z.string(),
|
|
756
756
|
description: z.string().optional(),
|
|
757
757
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
795
795
|
z.ZodTypeDef,
|
|
796
796
|
CreateDatasourceResponseBody
|
|
797
797
|
> = z.object({
|
|
798
|
-
id: z.string().default("
|
|
798
|
+
id: z.string().default("01JWZB42SFMH2TZGYAZ1XX96Q0"),
|
|
799
799
|
displayName: z.string(),
|
|
800
800
|
description: z.string().optional(),
|
|
801
801
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -2399,8 +2399,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2399
2399
|
> = z.object({
|
|
2400
2400
|
_id: z.string(),
|
|
2401
2401
|
description: z.string(),
|
|
2402
|
-
created: z.string().default("2025-06-
|
|
2403
|
-
updated: z.string().default("2025-06-
|
|
2402
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
2403
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
2404
2404
|
guardrail_config: z.union([
|
|
2405
2405
|
z.lazy(() =>
|
|
2406
2406
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
@@ -2442,8 +2442,8 @@ export const ResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
2442
2442
|
> = z.object({
|
|
2443
2443
|
id: z.string(),
|
|
2444
2444
|
description: z.string(),
|
|
2445
|
-
created: z.string().default("2025-06-
|
|
2446
|
-
updated: z.string().default("2025-06-
|
|
2445
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
2446
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
2447
2447
|
guardrailConfig: z.union([
|
|
2448
2448
|
z.lazy(() =>
|
|
2449
2449
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema
|
|
@@ -2856,8 +2856,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2856
2856
|
> = z.object({
|
|
2857
2857
|
_id: z.string(),
|
|
2858
2858
|
description: z.string(),
|
|
2859
|
-
created: z.string().default("2025-06-
|
|
2860
|
-
updated: z.string().default("2025-06-
|
|
2859
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
2860
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
2861
2861
|
guardrail_config: z.union([
|
|
2862
2862
|
z.lazy(() =>
|
|
2863
2863
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
@@ -2905,8 +2905,8 @@ export const ResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
2905
2905
|
> = z.object({
|
|
2906
2906
|
id: z.string(),
|
|
2907
2907
|
description: z.string(),
|
|
2908
|
-
created: z.string().default("2025-06-
|
|
2909
|
-
updated: z.string().default("2025-06-
|
|
2908
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
2909
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
2910
2910
|
guardrailConfig: z.union([
|
|
2911
2911
|
z.lazy(() =>
|
|
2912
2912
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema
|
|
@@ -3283,8 +3283,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3283
3283
|
> = z.object({
|
|
3284
3284
|
_id: z.string(),
|
|
3285
3285
|
description: z.string(),
|
|
3286
|
-
created: z.string().default("2025-06-
|
|
3287
|
-
updated: z.string().default("2025-06-
|
|
3286
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
3287
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
3288
3288
|
guardrail_config: z.union([
|
|
3289
3289
|
z.lazy(() =>
|
|
3290
3290
|
CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
@@ -3324,8 +3324,8 @@ export const ResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
3324
3324
|
> = z.object({
|
|
3325
3325
|
id: z.string(),
|
|
3326
3326
|
description: z.string(),
|
|
3327
|
-
created: z.string().default("2025-06-
|
|
3328
|
-
updated: z.string().default("2025-06-
|
|
3327
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
3328
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
3329
3329
|
guardrailConfig: z.union([
|
|
3330
3330
|
z.lazy(() =>
|
|
3331
3331
|
CreateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema
|
|
@@ -3680,8 +3680,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
3680
3680
|
> = z.object({
|
|
3681
3681
|
_id: z.string(),
|
|
3682
3682
|
description: z.string(),
|
|
3683
|
-
created: z.string().default("2025-06-
|
|
3684
|
-
updated: z.string().default("2025-06-
|
|
3683
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
3684
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
3685
3685
|
guardrail_config: z.union([
|
|
3686
3686
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
3687
3687
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -3721,8 +3721,8 @@ export const ResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
3721
3721
|
> = z.object({
|
|
3722
3722
|
id: z.string(),
|
|
3723
3723
|
description: z.string(),
|
|
3724
|
-
created: z.string().default("2025-06-
|
|
3725
|
-
updated: z.string().default("2025-06-
|
|
3724
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
3725
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
3726
3726
|
guardrailConfig: z.union([
|
|
3727
3727
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
3728
3728
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type DeleteEvalRequest = {
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const DeleteEvalRequest$inboundSchema: z.ZodType<
|
|
16
|
+
DeleteEvalRequest,
|
|
17
|
+
z.ZodTypeDef,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
id: z.string(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type DeleteEvalRequest$Outbound = {
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const DeleteEvalRequest$outboundSchema: z.ZodType<
|
|
30
|
+
DeleteEvalRequest$Outbound,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
DeleteEvalRequest
|
|
33
|
+
> = z.object({
|
|
34
|
+
id: z.string(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
+
*/
|
|
41
|
+
export namespace DeleteEvalRequest$ {
|
|
42
|
+
/** @deprecated use `DeleteEvalRequest$inboundSchema` instead. */
|
|
43
|
+
export const inboundSchema = DeleteEvalRequest$inboundSchema;
|
|
44
|
+
/** @deprecated use `DeleteEvalRequest$outboundSchema` instead. */
|
|
45
|
+
export const outboundSchema = DeleteEvalRequest$outboundSchema;
|
|
46
|
+
/** @deprecated use `DeleteEvalRequest$Outbound` instead. */
|
|
47
|
+
export type Outbound = DeleteEvalRequest$Outbound;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function deleteEvalRequestToJSON(
|
|
51
|
+
deleteEvalRequest: DeleteEvalRequest,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
DeleteEvalRequest$outboundSchema.parse(deleteEvalRequest),
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function deleteEvalRequestFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<DeleteEvalRequest, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => DeleteEvalRequest$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'DeleteEvalRequest' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type EvalsBertScoreRequestBody = {
|
|
11
|
+
output: string;
|
|
12
|
+
reference: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type EvalsBertScoreValue = {
|
|
16
|
+
f1: number;
|
|
17
|
+
precision: number;
|
|
18
|
+
recall: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Returns the BERT Score evaluation result
|
|
23
|
+
*/
|
|
24
|
+
export type EvalsBertScoreResponseBody = {
|
|
25
|
+
value: EvalsBertScoreValue;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const EvalsBertScoreRequestBody$inboundSchema: z.ZodType<
|
|
30
|
+
EvalsBertScoreRequestBody,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
output: z.string(),
|
|
35
|
+
reference: z.string(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type EvalsBertScoreRequestBody$Outbound = {
|
|
40
|
+
output: string;
|
|
41
|
+
reference: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const EvalsBertScoreRequestBody$outboundSchema: z.ZodType<
|
|
46
|
+
EvalsBertScoreRequestBody$Outbound,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
EvalsBertScoreRequestBody
|
|
49
|
+
> = z.object({
|
|
50
|
+
output: z.string(),
|
|
51
|
+
reference: z.string(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace EvalsBertScoreRequestBody$ {
|
|
59
|
+
/** @deprecated use `EvalsBertScoreRequestBody$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = EvalsBertScoreRequestBody$inboundSchema;
|
|
61
|
+
/** @deprecated use `EvalsBertScoreRequestBody$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = EvalsBertScoreRequestBody$outboundSchema;
|
|
63
|
+
/** @deprecated use `EvalsBertScoreRequestBody$Outbound` instead. */
|
|
64
|
+
export type Outbound = EvalsBertScoreRequestBody$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function evalsBertScoreRequestBodyToJSON(
|
|
68
|
+
evalsBertScoreRequestBody: EvalsBertScoreRequestBody,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
EvalsBertScoreRequestBody$outboundSchema.parse(evalsBertScoreRequestBody),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function evalsBertScoreRequestBodyFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<EvalsBertScoreRequestBody, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => EvalsBertScoreRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'EvalsBertScoreRequestBody' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const EvalsBertScoreValue$inboundSchema: z.ZodType<
|
|
87
|
+
EvalsBertScoreValue,
|
|
88
|
+
z.ZodTypeDef,
|
|
89
|
+
unknown
|
|
90
|
+
> = z.object({
|
|
91
|
+
f1: z.number(),
|
|
92
|
+
precision: z.number(),
|
|
93
|
+
recall: z.number(),
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export type EvalsBertScoreValue$Outbound = {
|
|
98
|
+
f1: number;
|
|
99
|
+
precision: number;
|
|
100
|
+
recall: number;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/** @internal */
|
|
104
|
+
export const EvalsBertScoreValue$outboundSchema: z.ZodType<
|
|
105
|
+
EvalsBertScoreValue$Outbound,
|
|
106
|
+
z.ZodTypeDef,
|
|
107
|
+
EvalsBertScoreValue
|
|
108
|
+
> = z.object({
|
|
109
|
+
f1: z.number(),
|
|
110
|
+
precision: z.number(),
|
|
111
|
+
recall: z.number(),
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @internal
|
|
116
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
117
|
+
*/
|
|
118
|
+
export namespace EvalsBertScoreValue$ {
|
|
119
|
+
/** @deprecated use `EvalsBertScoreValue$inboundSchema` instead. */
|
|
120
|
+
export const inboundSchema = EvalsBertScoreValue$inboundSchema;
|
|
121
|
+
/** @deprecated use `EvalsBertScoreValue$outboundSchema` instead. */
|
|
122
|
+
export const outboundSchema = EvalsBertScoreValue$outboundSchema;
|
|
123
|
+
/** @deprecated use `EvalsBertScoreValue$Outbound` instead. */
|
|
124
|
+
export type Outbound = EvalsBertScoreValue$Outbound;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function evalsBertScoreValueToJSON(
|
|
128
|
+
evalsBertScoreValue: EvalsBertScoreValue,
|
|
129
|
+
): string {
|
|
130
|
+
return JSON.stringify(
|
|
131
|
+
EvalsBertScoreValue$outboundSchema.parse(evalsBertScoreValue),
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function evalsBertScoreValueFromJSON(
|
|
136
|
+
jsonString: string,
|
|
137
|
+
): SafeParseResult<EvalsBertScoreValue, SDKValidationError> {
|
|
138
|
+
return safeParse(
|
|
139
|
+
jsonString,
|
|
140
|
+
(x) => EvalsBertScoreValue$inboundSchema.parse(JSON.parse(x)),
|
|
141
|
+
`Failed to parse 'EvalsBertScoreValue' from JSON`,
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const EvalsBertScoreResponseBody$inboundSchema: z.ZodType<
|
|
147
|
+
EvalsBertScoreResponseBody,
|
|
148
|
+
z.ZodTypeDef,
|
|
149
|
+
unknown
|
|
150
|
+
> = z.object({
|
|
151
|
+
value: z.lazy(() => EvalsBertScoreValue$inboundSchema),
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export type EvalsBertScoreResponseBody$Outbound = {
|
|
156
|
+
value: EvalsBertScoreValue$Outbound;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const EvalsBertScoreResponseBody$outboundSchema: z.ZodType<
|
|
161
|
+
EvalsBertScoreResponseBody$Outbound,
|
|
162
|
+
z.ZodTypeDef,
|
|
163
|
+
EvalsBertScoreResponseBody
|
|
164
|
+
> = z.object({
|
|
165
|
+
value: z.lazy(() => EvalsBertScoreValue$outboundSchema),
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
171
|
+
*/
|
|
172
|
+
export namespace EvalsBertScoreResponseBody$ {
|
|
173
|
+
/** @deprecated use `EvalsBertScoreResponseBody$inboundSchema` instead. */
|
|
174
|
+
export const inboundSchema = EvalsBertScoreResponseBody$inboundSchema;
|
|
175
|
+
/** @deprecated use `EvalsBertScoreResponseBody$outboundSchema` instead. */
|
|
176
|
+
export const outboundSchema = EvalsBertScoreResponseBody$outboundSchema;
|
|
177
|
+
/** @deprecated use `EvalsBertScoreResponseBody$Outbound` instead. */
|
|
178
|
+
export type Outbound = EvalsBertScoreResponseBody$Outbound;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function evalsBertScoreResponseBodyToJSON(
|
|
182
|
+
evalsBertScoreResponseBody: EvalsBertScoreResponseBody,
|
|
183
|
+
): string {
|
|
184
|
+
return JSON.stringify(
|
|
185
|
+
EvalsBertScoreResponseBody$outboundSchema.parse(evalsBertScoreResponseBody),
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export function evalsBertScoreResponseBodyFromJSON(
|
|
190
|
+
jsonString: string,
|
|
191
|
+
): SafeParseResult<EvalsBertScoreResponseBody, SDKValidationError> {
|
|
192
|
+
return safeParse(
|
|
193
|
+
jsonString,
|
|
194
|
+
(x) => EvalsBertScoreResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
195
|
+
`Failed to parse 'EvalsBertScoreResponseBody' from JSON`,
|
|
196
|
+
);
|
|
197
|
+
}
|
|
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
146
146
|
file_name: z.string(),
|
|
147
147
|
workspace_id: z.string(),
|
|
148
148
|
created: z.string().datetime({ offset: true }).default(
|
|
149
|
-
"2025-06-
|
|
149
|
+
"2025-06-05T06:05:40.872Z",
|
|
150
150
|
).transform(v => new Date(v)),
|
|
151
151
|
}).transform((v) => {
|
|
152
152
|
return remap$(v, {
|
|
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
180
180
|
bytes: z.number(),
|
|
181
181
|
fileName: z.string(),
|
|
182
182
|
workspaceId: z.string(),
|
|
183
|
-
created: z.date().default(() => new Date("2025-06-
|
|
183
|
+
created: z.date().default(() => new Date("2025-06-05T06:05:40.872Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-06-
|
|
199
|
+
"2025-06-05T06:05:40.872Z",
|
|
200
200
|
).transform(v => new Date(v)),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
230
230
|
bytes: z.number(),
|
|
231
231
|
fileName: z.string(),
|
|
232
232
|
workspaceId: z.string(),
|
|
233
|
-
created: z.date().default(() => new Date("2025-06-
|
|
233
|
+
created: z.date().default(() => new Date("2025-06-05T06:05:40.872Z"))
|
|
234
234
|
.transform(v => v.toISOString()),
|
|
235
235
|
}).transform((v) => {
|
|
236
236
|
return remap$(v, {
|
|
@@ -250,7 +250,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
250
250
|
file_name: z.string(),
|
|
251
251
|
workspace_id: z.string(),
|
|
252
252
|
created: z.string().datetime({ offset: true }).default(
|
|
253
|
-
"2025-06-
|
|
253
|
+
"2025-06-05T06:05:40.872Z",
|
|
254
254
|
).transform(v => new Date(v)),
|
|
255
255
|
}).transform((v) => {
|
|
256
256
|
return remap$(v, {
|
|
@@ -284,7 +284,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
284
284
|
bytes: z.number(),
|
|
285
285
|
fileName: z.string(),
|
|
286
286
|
workspaceId: z.string(),
|
|
287
|
-
created: z.date().default(() => new Date("2025-06-
|
|
287
|
+
created: z.date().default(() => new Date("2025-06-05T06:05:40.872Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|