@orq-ai/node 3.6.10 → 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/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +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
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { evalsAgeAppropriate } from "../funcs/evalsAgeAppropriate.js";
|
|
6
|
+
import { evalsAll } from "../funcs/evalsAll.js";
|
|
7
|
+
import { evalsBertScore } from "../funcs/evalsBertScore.js";
|
|
6
8
|
import { evalsBleuScore } from "../funcs/evalsBleuScore.js";
|
|
7
9
|
import { evalsBotDetection } from "../funcs/evalsBotDetection.js";
|
|
8
10
|
import { evalsContains } from "../funcs/evalsContains.js";
|
|
@@ -13,10 +15,12 @@ import { evalsContainsNone } from "../funcs/evalsContainsNone.js";
|
|
|
13
15
|
import { evalsContainsUrl } from "../funcs/evalsContainsUrl.js";
|
|
14
16
|
import { evalsContainsValidLink } from "../funcs/evalsContainsValidLink.js";
|
|
15
17
|
import { evalsCreate } from "../funcs/evalsCreate.js";
|
|
18
|
+
import { evalsDelete } from "../funcs/evalsDelete.js";
|
|
16
19
|
import { evalsEndsWith } from "../funcs/evalsEndsWith.js";
|
|
17
20
|
import { evalsExactMatch } from "../funcs/evalsExactMatch.js";
|
|
18
21
|
import { evalsFactCheckingKnowledgeBase } from "../funcs/evalsFactCheckingKnowledgeBase.js";
|
|
19
22
|
import { evalsGrammar } from "../funcs/evalsGrammar.js";
|
|
23
|
+
import { evalsInvoke } from "../funcs/evalsInvoke.js";
|
|
20
24
|
import { evalsLengthBetween } from "../funcs/evalsLengthBetween.js";
|
|
21
25
|
import { evalsLengthGreaterThan } from "../funcs/evalsLengthGreaterThan.js";
|
|
22
26
|
import { evalsLengthLessThan } from "../funcs/evalsLengthLessThan.js";
|
|
@@ -31,17 +35,31 @@ import { evalsRagasHarmfulness } from "../funcs/evalsRagasHarmfulness.js";
|
|
|
31
35
|
import { evalsRagasMaliciousness } from "../funcs/evalsRagasMaliciousness.js";
|
|
32
36
|
import { evalsRagasResponseRelevancy } from "../funcs/evalsRagasResponseRelevancy.js";
|
|
33
37
|
import { evalsRagasSummarization } from "../funcs/evalsRagasSummarization.js";
|
|
34
|
-
import { evalsRunBertScore } from "../funcs/evalsRunBertScore.js";
|
|
35
38
|
import { evalsSentimentClassification } from "../funcs/evalsSentimentClassification.js";
|
|
36
39
|
import { evalsSummarization } from "../funcs/evalsSummarization.js";
|
|
37
40
|
import { evalsToneOfVoice } from "../funcs/evalsToneOfVoice.js";
|
|
38
41
|
import { evalsTranslation } from "../funcs/evalsTranslation.js";
|
|
42
|
+
import { evalsUpdate } from "../funcs/evalsUpdate.js";
|
|
39
43
|
import { evalsValidJson } from "../funcs/evalsValidJson.js";
|
|
40
44
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
41
45
|
import * as operations from "../models/operations/index.js";
|
|
42
46
|
import { unwrapAsync } from "../types/fp.js";
|
|
43
47
|
|
|
44
48
|
export class Evals extends ClientSDK {
|
|
49
|
+
/**
|
|
50
|
+
* Get all Evaluators
|
|
51
|
+
*/
|
|
52
|
+
async all(
|
|
53
|
+
request?: operations.GetEvalsRequest | undefined,
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): Promise<operations.GetEvalsResponseBody> {
|
|
56
|
+
return unwrapAsync(evalsAll(
|
|
57
|
+
this,
|
|
58
|
+
request,
|
|
59
|
+
options,
|
|
60
|
+
));
|
|
61
|
+
}
|
|
62
|
+
|
|
45
63
|
/**
|
|
46
64
|
* Create an Evaluator
|
|
47
65
|
*/
|
|
@@ -56,14 +74,42 @@ export class Evals extends ClientSDK {
|
|
|
56
74
|
));
|
|
57
75
|
}
|
|
58
76
|
|
|
77
|
+
/**
|
|
78
|
+
* Update an Evaluator
|
|
79
|
+
*/
|
|
80
|
+
async update(
|
|
81
|
+
request: operations.UpdateEvalRequest,
|
|
82
|
+
options?: RequestOptions,
|
|
83
|
+
): Promise<operations.UpdateEvalResponseBody> {
|
|
84
|
+
return unwrapAsync(evalsUpdate(
|
|
85
|
+
this,
|
|
86
|
+
request,
|
|
87
|
+
options,
|
|
88
|
+
));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Delete an Evaluator
|
|
93
|
+
*/
|
|
94
|
+
async delete(
|
|
95
|
+
request: operations.DeleteEvalRequest,
|
|
96
|
+
options?: RequestOptions,
|
|
97
|
+
): Promise<void> {
|
|
98
|
+
return unwrapAsync(evalsDelete(
|
|
99
|
+
this,
|
|
100
|
+
request,
|
|
101
|
+
options,
|
|
102
|
+
));
|
|
103
|
+
}
|
|
104
|
+
|
|
59
105
|
/**
|
|
60
106
|
* Run BertScore Evaluator
|
|
61
107
|
*/
|
|
62
|
-
async
|
|
63
|
-
request?: operations.
|
|
108
|
+
async bertScore(
|
|
109
|
+
request?: operations.EvalsBertScoreRequestBody | undefined,
|
|
64
110
|
options?: RequestOptions,
|
|
65
|
-
): Promise<operations.
|
|
66
|
-
return unwrapAsync(
|
|
111
|
+
): Promise<operations.EvalsBertScoreResponseBody> {
|
|
112
|
+
return unwrapAsync(evalsBertScore(
|
|
67
113
|
this,
|
|
68
114
|
request,
|
|
69
115
|
options,
|
|
@@ -531,4 +577,18 @@ export class Evals extends ClientSDK {
|
|
|
531
577
|
options,
|
|
532
578
|
));
|
|
533
579
|
}
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Invoke a Custom Evaluator
|
|
583
|
+
*/
|
|
584
|
+
async invoke(
|
|
585
|
+
request: operations.InvokeEvalRequest,
|
|
586
|
+
options?: RequestOptions,
|
|
587
|
+
): Promise<operations.InvokeEvalResponseBody> {
|
|
588
|
+
return unwrapAsync(evalsInvoke(
|
|
589
|
+
this,
|
|
590
|
+
request,
|
|
591
|
+
options,
|
|
592
|
+
));
|
|
593
|
+
}
|
|
534
594
|
}
|
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "3.6.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 3.6.
|
|
71
|
+
sdkVersion: "3.6.11",
|
|
72
|
+
genVersion: "2.621.3",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 3.6.11 2.621.3 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -2147,7 +2147,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
2147
2147
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2148
2148
|
.optional(),
|
|
2149
2149
|
updated: z.string().datetime({ offset: true }).default(
|
|
2150
|
-
"2025-06-
|
|
2150
|
+
"2025-06-05T22:08:08.052Z",
|
|
2151
2151
|
).transform(v => new Date(v)),
|
|
2152
2152
|
}).transform((v) => {
|
|
2153
2153
|
return remap$(v, {
|
|
@@ -2191,7 +2191,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
2191
2191
|
createdById: z.string().optional(),
|
|
2192
2192
|
updatedById: z.string().optional(),
|
|
2193
2193
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2194
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
2194
|
+
updated: z.date().default(() => new Date("2025-06-05T22:08:08.052Z"))
|
|
2195
2195
|
.transform(v => v.toISOString()),
|
|
2196
2196
|
}).transform((v) => {
|
|
2197
2197
|
return remap$(v, {
|
|
@@ -177,7 +177,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
177
177
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
178
178
|
.optional(),
|
|
179
179
|
updated: z.string().datetime({ offset: true }).default(
|
|
180
|
-
"2025-06-
|
|
180
|
+
"2025-06-05T22:08:08.052Z",
|
|
181
181
|
).transform(v => new Date(v)),
|
|
182
182
|
}).transform((v) => {
|
|
183
183
|
return remap$(v, {
|
|
@@ -214,7 +214,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
214
214
|
tags: z.array(z.string()).optional(),
|
|
215
215
|
metadata: z.record(z.any()).optional(),
|
|
216
216
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
217
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
217
|
+
updated: z.date().default(() => new Date("2025-06-05T22:08:08.052Z"))
|
|
218
218
|
.transform(v => v.toISOString()),
|
|
219
219
|
}).transform((v) => {
|
|
220
220
|
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-05T22:08:08.052Z",
|
|
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-05T22:08:08.052Z"))
|
|
255
255
|
.transform(v => v.toISOString()),
|
|
256
256
|
}).transform((v) => {
|
|
257
257
|
return remap$(v, {
|
|
@@ -2058,7 +2058,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2058
2058
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2059
2059
|
.optional(),
|
|
2060
2060
|
updated: z.string().datetime({ offset: true }).default(
|
|
2061
|
-
"2025-06-
|
|
2061
|
+
"2025-06-05T22:08:08.052Z",
|
|
2062
2062
|
).transform(v => new Date(v)),
|
|
2063
2063
|
}).transform((v) => {
|
|
2064
2064
|
return remap$(v, {
|
|
@@ -2102,7 +2102,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
|
|
|
2102
2102
|
createdById: z.string().optional(),
|
|
2103
2103
|
updatedById: z.string().optional(),
|
|
2104
2104
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2105
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
2105
|
+
updated: z.date().default(() => new Date("2025-06-05T22:08:08.052Z"))
|
|
2106
2106
|
.transform(v => v.toISOString()),
|
|
2107
2107
|
}).transform((v) => {
|
|
2108
2108
|
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("01JX126FMWDFPHVEHKJJVQK9GS"),
|
|
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("01JX126FMWDFPHVEHKJJVQK9GS"),
|
|
799
799
|
displayName: z.string(),
|
|
800
800
|
description: z.string().optional(),
|
|
801
801
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -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-05T22:08:11.074Z",
|
|
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-05T22:08:11.074Z"))
|
|
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-05T22:08:11.074Z",
|
|
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-05T22:08:11.074Z"))
|
|
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-05T22:08:11.074Z",
|
|
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-05T22:08:11.074Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|
|
@@ -1117,7 +1117,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1117
1117
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1118
1118
|
.optional(),
|
|
1119
1119
|
updated: z.string().datetime({ offset: true }).default(
|
|
1120
|
-
"2025-06-
|
|
1120
|
+
"2025-06-05T22:08:08.052Z",
|
|
1121
1121
|
).transform(v => new Date(v)),
|
|
1122
1122
|
}).transform((v) => {
|
|
1123
1123
|
return remap$(v, {
|
|
@@ -1160,7 +1160,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
1160
1160
|
createdById: z.string().optional(),
|
|
1161
1161
|
updatedById: z.string().optional(),
|
|
1162
1162
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
1163
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
1163
|
+
updated: z.date().default(() => new Date("2025-06-05T22:08:08.052Z"))
|
|
1164
1164
|
.transform(v => v.toISOString()),
|
|
1165
1165
|
}).transform((v) => {
|
|
1166
1166
|
return remap$(v, {
|
|
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
253
253
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
254
254
|
.optional(),
|
|
255
255
|
updated: z.string().datetime({ offset: true }).default(
|
|
256
|
-
"2025-06-
|
|
256
|
+
"2025-06-05T22:08:08.052Z",
|
|
257
257
|
).transform(v => new Date(v)),
|
|
258
258
|
}).transform((v) => {
|
|
259
259
|
return remap$(v, {
|
|
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
|
|
|
293
293
|
updatedById: z.string().optional(),
|
|
294
294
|
metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
|
|
295
295
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
296
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-06-05T22:08:08.052Z"))
|
|
297
297
|
.transform(v => v.toISOString()),
|
|
298
298
|
}).transform((v) => {
|
|
299
299
|
return remap$(v, {
|
|
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
278
278
|
z.ZodTypeDef,
|
|
279
279
|
unknown
|
|
280
280
|
> = z.object({
|
|
281
|
-
_id: z.string().default("
|
|
281
|
+
_id: z.string().default("01JX126FMTD0WYSE0X3BDVH4CQ"),
|
|
282
282
|
display_name: z.string(),
|
|
283
283
|
description: z.string().optional(),
|
|
284
284
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
|
|
|
322
322
|
z.ZodTypeDef,
|
|
323
323
|
ListDatasourcesData
|
|
324
324
|
> = z.object({
|
|
325
|
-
id: z.string().default("
|
|
325
|
+
id: z.string().default("01JX126FMTD0WYSE0X3BDVH4CQ"),
|
|
326
326
|
displayName: z.string(),
|
|
327
327
|
description: z.string().optional(),
|
|
328
328
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -1036,7 +1036,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1036
1036
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1037
1037
|
.optional(),
|
|
1038
1038
|
updated: z.string().datetime({ offset: true }).default(
|
|
1039
|
-
"2025-06-
|
|
1039
|
+
"2025-06-05T22:08:08.052Z",
|
|
1040
1040
|
).transform(v => new Date(v)),
|
|
1041
1041
|
}).transform((v) => {
|
|
1042
1042
|
return remap$(v, {
|
|
@@ -1079,7 +1079,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
1079
1079
|
createdById: z.string().optional(),
|
|
1080
1080
|
updatedById: z.string().optional(),
|
|
1081
1081
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
1082
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
1082
|
+
updated: z.date().default(() => new Date("2025-06-05T22:08:08.052Z"))
|
|
1083
1083
|
.transform(v => v.toISOString()),
|
|
1084
1084
|
}).transform((v) => {
|
|
1085
1085
|
return remap$(v, {
|
|
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
201
201
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
202
202
|
.optional(),
|
|
203
203
|
updated: z.string().datetime({ offset: true }).default(
|
|
204
|
-
"2025-06-
|
|
204
|
+
"2025-06-05T22:08:08.052Z",
|
|
205
205
|
).transform(v => new Date(v)),
|
|
206
206
|
}).transform((v) => {
|
|
207
207
|
return remap$(v, {
|
|
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
241
241
|
updatedById: z.string().optional(),
|
|
242
242
|
metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
|
|
243
243
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
244
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
244
|
+
updated: z.date().default(() => new Date("2025-06-05T22:08:08.052Z"))
|
|
245
245
|
.transform(v => v.toISOString()),
|
|
246
246
|
}).transform((v) => {
|
|
247
247
|
return remap$(v, {
|
|
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
172
172
|
z.ZodTypeDef,
|
|
173
173
|
unknown
|
|
174
174
|
> = z.object({
|
|
175
|
-
_id: z.string().default("
|
|
175
|
+
_id: z.string().default("01JX126FMVGBD6183BB2JZ79H5"),
|
|
176
176
|
display_name: z.string(),
|
|
177
177
|
description: z.string().optional(),
|
|
178
178
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
216
216
|
z.ZodTypeDef,
|
|
217
217
|
RetrieveDatasourceResponseBody
|
|
218
218
|
> = z.object({
|
|
219
|
-
id: z.string().default("
|
|
219
|
+
id: z.string().default("01JX126FMVGBD6183BB2JZ79H5"),
|
|
220
220
|
displayName: z.string(),
|
|
221
221
|
description: z.string().optional(),
|
|
222
222
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -2048,7 +2048,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2048
2048
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2049
2049
|
.optional(),
|
|
2050
2050
|
updated: z.string().datetime({ offset: true }).default(
|
|
2051
|
-
"2025-06-
|
|
2051
|
+
"2025-06-05T22:08:08.052Z",
|
|
2052
2052
|
).transform(v => new Date(v)),
|
|
2053
2053
|
}).transform((v) => {
|
|
2054
2054
|
return remap$(v, {
|
|
@@ -2092,7 +2092,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
2092
2092
|
createdById: z.string().optional(),
|
|
2093
2093
|
updatedById: z.string().optional(),
|
|
2094
2094
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2095
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
2095
|
+
updated: z.date().default(() => new Date("2025-06-05T22:08:08.052Z"))
|
|
2096
2096
|
.transform(v => v.toISOString()),
|
|
2097
2097
|
}).transform((v) => {
|
|
2098
2098
|
return remap$(v, {
|
|
@@ -302,7 +302,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
302
302
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
303
303
|
.optional(),
|
|
304
304
|
updated: z.string().datetime({ offset: true }).default(
|
|
305
|
-
"2025-06-
|
|
305
|
+
"2025-06-05T22:08:08.052Z",
|
|
306
306
|
).transform(v => new Date(v)),
|
|
307
307
|
}).transform((v) => {
|
|
308
308
|
return remap$(v, {
|
|
@@ -347,7 +347,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
347
347
|
parentId: z.string().optional(),
|
|
348
348
|
version: z.string().optional(),
|
|
349
349
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
350
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
350
|
+
updated: z.date().default(() => new Date("2025-06-05T22:08:08.052Z"))
|
|
351
351
|
.transform(v => v.toISOString()),
|
|
352
352
|
}).transform((v) => {
|
|
353
353
|
return remap$(v, {
|
|
@@ -244,7 +244,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
244
244
|
z.ZodTypeDef,
|
|
245
245
|
unknown
|
|
246
246
|
> = z.object({
|
|
247
|
-
_id: z.string().default("
|
|
247
|
+
_id: z.string().default("01JX126FMX3WE2Z5HDBMDGCZTB"),
|
|
248
248
|
display_name: z.string(),
|
|
249
249
|
description: z.string().optional(),
|
|
250
250
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -288,7 +288,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
288
288
|
z.ZodTypeDef,
|
|
289
289
|
UpdateDatasourceResponseBody
|
|
290
290
|
> = z.object({
|
|
291
|
-
id: z.string().default("
|
|
291
|
+
id: z.string().default("01JX126FMX3WE2Z5HDBMDGCZTB"),
|
|
292
292
|
displayName: z.string(),
|
|
293
293
|
description: z.string().optional(),
|
|
294
294
|
status: UpdateDatasourceStatus$outboundSchema,
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Internal server error
|
|
9
|
-
*/
|
|
10
|
-
export type RunBertScoreEvalsResponseBodyData = {
|
|
11
|
-
message: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Internal server error
|
|
16
|
-
*/
|
|
17
|
-
export class RunBertScoreEvalsResponseBody extends Error {
|
|
18
|
-
/** The original data that was passed to this error instance. */
|
|
19
|
-
data$: RunBertScoreEvalsResponseBodyData;
|
|
20
|
-
|
|
21
|
-
constructor(err: RunBertScoreEvalsResponseBodyData) {
|
|
22
|
-
const message = "message" in err && typeof err.message === "string"
|
|
23
|
-
? err.message
|
|
24
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
25
|
-
super(message);
|
|
26
|
-
this.data$ = err;
|
|
27
|
-
|
|
28
|
-
this.name = "RunBertScoreEvalsResponseBody";
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Evaluator not found
|
|
34
|
-
*/
|
|
35
|
-
export type RunBertScoreResponseBodyData = {
|
|
36
|
-
message: string;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Evaluator not found
|
|
41
|
-
*/
|
|
42
|
-
export class RunBertScoreResponseBody extends Error {
|
|
43
|
-
/** The original data that was passed to this error instance. */
|
|
44
|
-
data$: RunBertScoreResponseBodyData;
|
|
45
|
-
|
|
46
|
-
constructor(err: RunBertScoreResponseBodyData) {
|
|
47
|
-
const message = "message" in err && typeof err.message === "string"
|
|
48
|
-
? err.message
|
|
49
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
50
|
-
super(message);
|
|
51
|
-
this.data$ = err;
|
|
52
|
-
|
|
53
|
-
this.name = "RunBertScoreResponseBody";
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/** @internal */
|
|
58
|
-
export const RunBertScoreEvalsResponseBody$inboundSchema: z.ZodType<
|
|
59
|
-
RunBertScoreEvalsResponseBody,
|
|
60
|
-
z.ZodTypeDef,
|
|
61
|
-
unknown
|
|
62
|
-
> = z.object({
|
|
63
|
-
message: z.string(),
|
|
64
|
-
})
|
|
65
|
-
.transform((v) => {
|
|
66
|
-
return new RunBertScoreEvalsResponseBody(v);
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
/** @internal */
|
|
70
|
-
export type RunBertScoreEvalsResponseBody$Outbound = {
|
|
71
|
-
message: string;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/** @internal */
|
|
75
|
-
export const RunBertScoreEvalsResponseBody$outboundSchema: z.ZodType<
|
|
76
|
-
RunBertScoreEvalsResponseBody$Outbound,
|
|
77
|
-
z.ZodTypeDef,
|
|
78
|
-
RunBertScoreEvalsResponseBody
|
|
79
|
-
> = z.instanceof(RunBertScoreEvalsResponseBody)
|
|
80
|
-
.transform(v => v.data$)
|
|
81
|
-
.pipe(z.object({
|
|
82
|
-
message: z.string(),
|
|
83
|
-
}));
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
-
*/
|
|
89
|
-
export namespace RunBertScoreEvalsResponseBody$ {
|
|
90
|
-
/** @deprecated use `RunBertScoreEvalsResponseBody$inboundSchema` instead. */
|
|
91
|
-
export const inboundSchema = RunBertScoreEvalsResponseBody$inboundSchema;
|
|
92
|
-
/** @deprecated use `RunBertScoreEvalsResponseBody$outboundSchema` instead. */
|
|
93
|
-
export const outboundSchema = RunBertScoreEvalsResponseBody$outboundSchema;
|
|
94
|
-
/** @deprecated use `RunBertScoreEvalsResponseBody$Outbound` instead. */
|
|
95
|
-
export type Outbound = RunBertScoreEvalsResponseBody$Outbound;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** @internal */
|
|
99
|
-
export const RunBertScoreResponseBody$inboundSchema: z.ZodType<
|
|
100
|
-
RunBertScoreResponseBody,
|
|
101
|
-
z.ZodTypeDef,
|
|
102
|
-
unknown
|
|
103
|
-
> = z.object({
|
|
104
|
-
message: z.string(),
|
|
105
|
-
})
|
|
106
|
-
.transform((v) => {
|
|
107
|
-
return new RunBertScoreResponseBody(v);
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
/** @internal */
|
|
111
|
-
export type RunBertScoreResponseBody$Outbound = {
|
|
112
|
-
message: string;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
/** @internal */
|
|
116
|
-
export const RunBertScoreResponseBody$outboundSchema: z.ZodType<
|
|
117
|
-
RunBertScoreResponseBody$Outbound,
|
|
118
|
-
z.ZodTypeDef,
|
|
119
|
-
RunBertScoreResponseBody
|
|
120
|
-
> = z.instanceof(RunBertScoreResponseBody)
|
|
121
|
-
.transform(v => v.data$)
|
|
122
|
-
.pipe(z.object({
|
|
123
|
-
message: z.string(),
|
|
124
|
-
}));
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @internal
|
|
128
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
129
|
-
*/
|
|
130
|
-
export namespace RunBertScoreResponseBody$ {
|
|
131
|
-
/** @deprecated use `RunBertScoreResponseBody$inboundSchema` instead. */
|
|
132
|
-
export const inboundSchema = RunBertScoreResponseBody$inboundSchema;
|
|
133
|
-
/** @deprecated use `RunBertScoreResponseBody$outboundSchema` instead. */
|
|
134
|
-
export const outboundSchema = RunBertScoreResponseBody$outboundSchema;
|
|
135
|
-
/** @deprecated use `RunBertScoreResponseBody$Outbound` instead. */
|
|
136
|
-
export type Outbound = RunBertScoreResponseBody$Outbound;
|
|
137
|
-
}
|