@orq-ai/node 4.10.0-rc.17 → 4.10.0-rc.19
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/README.md +43 -38
- package/funcs/modelsList.d.ts +17 -0
- package/funcs/modelsList.d.ts.map +1 -0
- package/funcs/modelsList.js +105 -0
- package/funcs/modelsList.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/publicmodelentry.d.ts +38 -0
- package/models/components/publicmodelentry.d.ts.map +1 -0
- package/models/components/publicmodelentry.js +67 -0
- package/models/components/publicmodelentry.js.map +1 -0
- package/models/components/queryreportresponse.d.ts +4 -4
- package/models/components/queryreportresponse.d.ts.map +1 -1
- package/models/components/queryreportresponse.js +4 -5
- package/models/components/queryreportresponse.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listmodels.d.ts +34 -0
- package/models/operations/listmodels.d.ts.map +1 -0
- package/models/operations/listmodels.js +60 -0
- package/models/operations/listmodels.js.map +1 -0
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/sdk/models.d.ts +12 -0
- package/sdk/models.d.ts.map +1 -0
- package/sdk/models.js +22 -0
- package/sdk/models.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/modelsList.ts +144 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +1 -0
- package/src/models/components/publicmodelentry.ts +70 -0
- package/src/models/components/queryreportresponse.ts +9 -6
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listmodels.ts +60 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/models.ts +25 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Always "model".
|
|
14
|
+
*/
|
|
15
|
+
export const ObjectT = {
|
|
16
|
+
Model: "model",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* Always "model".
|
|
20
|
+
*/
|
|
21
|
+
export type ObjectT = ClosedEnum<typeof ObjectT>;
|
|
22
|
+
|
|
23
|
+
export type PublicModelEntry = {
|
|
24
|
+
/**
|
|
25
|
+
* Unix timestamp (seconds) when the model was added.
|
|
26
|
+
*/
|
|
27
|
+
created: number;
|
|
28
|
+
/**
|
|
29
|
+
* Model identifier in provider/model format (e.g. openai/gpt-4o).
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* Always "model".
|
|
34
|
+
*/
|
|
35
|
+
object: ObjectT;
|
|
36
|
+
/**
|
|
37
|
+
* The provider that owns the model (e.g. openai, anthropic).
|
|
38
|
+
*/
|
|
39
|
+
ownedBy: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ObjectT$inboundSchema: z.ZodNativeEnum<typeof ObjectT> = z
|
|
44
|
+
.nativeEnum(ObjectT);
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const PublicModelEntry$inboundSchema: z.ZodType<
|
|
48
|
+
PublicModelEntry,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
unknown
|
|
51
|
+
> = z.object({
|
|
52
|
+
created: z.number().int(),
|
|
53
|
+
id: z.string(),
|
|
54
|
+
object: ObjectT$inboundSchema,
|
|
55
|
+
owned_by: z.string(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
"owned_by": "ownedBy",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export function publicModelEntryFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<PublicModelEntry, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => PublicModelEntry$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'PublicModelEntry' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -19,19 +19,21 @@ import { Totals, Totals$inboundSchema } from "./totals.js";
|
|
|
19
19
|
/**
|
|
20
20
|
* Object discriminator for typed SDKs and JSON parsers; always `report`.
|
|
21
21
|
*/
|
|
22
|
-
export const
|
|
22
|
+
export const QueryReportResponseObject = {
|
|
23
23
|
Report: "report",
|
|
24
24
|
} as const;
|
|
25
25
|
/**
|
|
26
26
|
* Object discriminator for typed SDKs and JSON parsers; always `report`.
|
|
27
27
|
*/
|
|
28
|
-
export type
|
|
28
|
+
export type QueryReportResponseObject = ClosedEnum<
|
|
29
|
+
typeof QueryReportResponseObject
|
|
30
|
+
>;
|
|
29
31
|
|
|
30
32
|
export type QueryReportResponse = {
|
|
31
33
|
/**
|
|
32
34
|
* Object discriminator for typed SDKs and JSON parsers; always `report`.
|
|
33
35
|
*/
|
|
34
|
-
object?:
|
|
36
|
+
object?: QueryReportResponseObject | undefined;
|
|
35
37
|
/**
|
|
36
38
|
* The request that produced this response, parroted back so caller
|
|
37
39
|
*
|
|
@@ -64,8 +66,9 @@ export type QueryReportResponse = {
|
|
|
64
66
|
};
|
|
65
67
|
|
|
66
68
|
/** @internal */
|
|
67
|
-
export const
|
|
68
|
-
|
|
69
|
+
export const QueryReportResponseObject$inboundSchema: z.ZodNativeEnum<
|
|
70
|
+
typeof QueryReportResponseObject
|
|
71
|
+
> = z.nativeEnum(QueryReportResponseObject);
|
|
69
72
|
|
|
70
73
|
/** @internal */
|
|
71
74
|
export const QueryReportResponse$inboundSchema: z.ZodType<
|
|
@@ -73,7 +76,7 @@ export const QueryReportResponse$inboundSchema: z.ZodType<
|
|
|
73
76
|
z.ZodTypeDef,
|
|
74
77
|
unknown
|
|
75
78
|
> = z.object({
|
|
76
|
-
object:
|
|
79
|
+
object: QueryReportResponseObject$inboundSchema.optional(),
|
|
77
80
|
request: QueryReportRequest$inboundSchema.optional(),
|
|
78
81
|
data: z.array(DataPoint$inboundSchema).optional(),
|
|
79
82
|
totals: Totals$inboundSchema.optional(),
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01ks1x9gvgasc416jfbmw86mc2"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-05-
|
|
141
|
+
"2026-05-20T05:21:03.322Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2355,7 +2355,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2355
2355
|
),
|
|
2356
2356
|
reviewed_by_id: z.string(),
|
|
2357
2357
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2358
|
-
"2026-05-
|
|
2358
|
+
"2026-05-20T05:21:18.407Z",
|
|
2359
2359
|
).transform(v => new Date(v)),
|
|
2360
2360
|
type: z.literal("string_array"),
|
|
2361
2361
|
values: z.array(z.string()),
|
|
@@ -2400,7 +2400,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2400
2400
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2401
2401
|
reviewed_by_id: z.string(),
|
|
2402
2402
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2403
|
-
"2026-05-
|
|
2403
|
+
"2026-05-20T05:21:18.406Z",
|
|
2404
2404
|
).transform(v => new Date(v)),
|
|
2405
2405
|
type: z.literal("number"),
|
|
2406
2406
|
value: z.number(),
|
|
@@ -2446,7 +2446,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2446
2446
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2447
2447
|
reviewed_by_id: z.string(),
|
|
2448
2448
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2449
|
-
"2026-05-
|
|
2449
|
+
"2026-05-20T05:21:18.406Z",
|
|
2450
2450
|
).transform(v => new Date(v)),
|
|
2451
2451
|
type: z.literal("string"),
|
|
2452
2452
|
value: z.string(),
|
|
@@ -2529,7 +2529,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2529
2529
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2530
2530
|
.optional(),
|
|
2531
2531
|
updated: z.string().datetime({ offset: true }).default(
|
|
2532
|
-
"2026-05-
|
|
2532
|
+
"2026-05-20T05:21:03.322Z",
|
|
2533
2533
|
).transform(v => new Date(v)),
|
|
2534
2534
|
}).transform((v) => {
|
|
2535
2535
|
return remap$(v, {
|
|
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
403
403
|
z.ZodTypeDef,
|
|
404
404
|
unknown
|
|
405
405
|
> = z.object({
|
|
406
|
-
_id: z.string().default("
|
|
406
|
+
_id: z.string().default("01KS1X9HFTEN82GK744XDDY53F"),
|
|
407
407
|
display_name: z.string(),
|
|
408
408
|
description: z.string().optional(),
|
|
409
409
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -2786,8 +2786,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2786
2786
|
> = z.object({
|
|
2787
2787
|
_id: z.string(),
|
|
2788
2788
|
description: z.string(),
|
|
2789
|
-
created: z.string().default("2026-05-
|
|
2790
|
-
updated: z.string().default("2026-05-
|
|
2789
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2790
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2791
2791
|
guardrail_config: z.nullable(
|
|
2792
2792
|
z.union([
|
|
2793
2793
|
z.lazy(() =>
|
|
@@ -2975,8 +2975,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2975
2975
|
.object({
|
|
2976
2976
|
_id: z.string(),
|
|
2977
2977
|
description: z.string(),
|
|
2978
|
-
created: z.string().default("2026-05-
|
|
2979
|
-
updated: z.string().default("2026-05-
|
|
2978
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2979
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2980
2980
|
guardrail_config: z.nullable(
|
|
2981
2981
|
z.union([
|
|
2982
2982
|
z.lazy(() =>
|
|
@@ -3799,8 +3799,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3799
3799
|
> = z.object({
|
|
3800
3800
|
_id: z.string(),
|
|
3801
3801
|
description: z.string(),
|
|
3802
|
-
created: z.string().default("2026-05-
|
|
3803
|
-
updated: z.string().default("2026-05-
|
|
3802
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
3803
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
3804
3804
|
guardrail_config: z.nullable(
|
|
3805
3805
|
z.union([
|
|
3806
3806
|
z.lazy(() =>
|
|
@@ -4018,8 +4018,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
4018
4018
|
> = z.object({
|
|
4019
4019
|
_id: z.string(),
|
|
4020
4020
|
description: z.string(),
|
|
4021
|
-
created: z.string().default("2026-05-
|
|
4022
|
-
updated: z.string().default("2026-05-
|
|
4021
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
4022
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
4023
4023
|
guardrail_config: z.nullable(
|
|
4024
4024
|
z.union([
|
|
4025
4025
|
z.lazy(() =>
|
|
@@ -4200,8 +4200,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
4200
4200
|
> = z.object({
|
|
4201
4201
|
_id: z.string(),
|
|
4202
4202
|
description: z.string(),
|
|
4203
|
-
created: z.string().default("2026-05-
|
|
4204
|
-
updated: z.string().default("2026-05-
|
|
4203
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
4204
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
4205
4205
|
guardrail_config: z.nullable(
|
|
4206
4206
|
z.union([
|
|
4207
4207
|
z.lazy(() =>
|
|
@@ -4377,8 +4377,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
4377
4377
|
> = z.object({
|
|
4378
4378
|
_id: z.string(),
|
|
4379
4379
|
description: z.string(),
|
|
4380
|
-
created: z.string().default("2026-05-
|
|
4381
|
-
updated: z.string().default("2026-05-
|
|
4380
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
4381
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
4382
4382
|
guardrail_config: z.nullable(
|
|
4383
4383
|
z.union([
|
|
4384
4384
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -4748,8 +4748,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4748
4748
|
> = z.object({
|
|
4749
4749
|
_id: z.string(),
|
|
4750
4750
|
description: z.string(),
|
|
4751
|
-
created: z.string().default("2026-05-
|
|
4752
|
-
updated: z.string().default("2026-05-
|
|
4751
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
4752
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
4753
4753
|
guardrail_config: z.nullable(
|
|
4754
4754
|
z.union([
|
|
4755
4755
|
z.lazy(() =>
|
|
@@ -4966,8 +4966,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4966
4966
|
> = z.object({
|
|
4967
4967
|
_id: z.string(),
|
|
4968
4968
|
description: z.string(),
|
|
4969
|
-
created: z.string().default("2026-05-
|
|
4970
|
-
updated: z.string().default("2026-05-
|
|
4969
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
4970
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
4971
4971
|
guardrail_config: z.nullable(
|
|
4972
4972
|
z.union([
|
|
4973
4973
|
z.lazy(() =>
|
|
@@ -1902,7 +1902,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1902
1902
|
z.ZodTypeDef,
|
|
1903
1903
|
unknown
|
|
1904
1904
|
> = z.object({
|
|
1905
|
-
_id: z.string().default("
|
|
1905
|
+
_id: z.string().default("tool_01KS1X9HBET2MKHB8MA56K8P72"),
|
|
1906
1906
|
path: z.string(),
|
|
1907
1907
|
key: z.string(),
|
|
1908
1908
|
display_name: z.string().optional(),
|
|
@@ -1999,7 +1999,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1999
1999
|
z.ZodTypeDef,
|
|
2000
2000
|
unknown
|
|
2001
2001
|
> = z.object({
|
|
2002
|
-
id: z.string().default("
|
|
2002
|
+
id: z.string().default("01KS1X9HBD442J1M7PA7QF3D35"),
|
|
2003
2003
|
name: z.string(),
|
|
2004
2004
|
description: z.string().optional(),
|
|
2005
2005
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2055,7 +2055,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2055
2055
|
z.ZodTypeDef,
|
|
2056
2056
|
unknown
|
|
2057
2057
|
> = z.object({
|
|
2058
|
-
_id: z.string().default("
|
|
2058
|
+
_id: z.string().default("tool_01KS1X9HBCPWVA4GJYMTYPGDA1"),
|
|
2059
2059
|
path: z.string(),
|
|
2060
2060
|
key: z.string(),
|
|
2061
2061
|
display_name: z.string().optional(),
|
|
@@ -2241,7 +2241,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2241
2241
|
z.ZodTypeDef,
|
|
2242
2242
|
unknown
|
|
2243
2243
|
> = z.object({
|
|
2244
|
-
_id: z.string().default("
|
|
2244
|
+
_id: z.string().default("tool_01KS1X9HBA2WYEGA3J6RMZ520T"),
|
|
2245
2245
|
path: z.string(),
|
|
2246
2246
|
key: z.string(),
|
|
2247
2247
|
display_name: z.string().optional(),
|
|
@@ -2334,7 +2334,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2334
2334
|
z.ZodTypeDef,
|
|
2335
2335
|
unknown
|
|
2336
2336
|
> = z.object({
|
|
2337
|
-
_id: z.string().default("
|
|
2337
|
+
_id: z.string().default("tool_01KS1X9HB9VQ7YRJKNZYZRW8CR"),
|
|
2338
2338
|
path: z.string(),
|
|
2339
2339
|
key: z.string(),
|
|
2340
2340
|
display_name: z.string().optional(),
|
|
@@ -2435,7 +2435,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2435
2435
|
z.ZodTypeDef,
|
|
2436
2436
|
unknown
|
|
2437
2437
|
> = z.object({
|
|
2438
|
-
_id: z.string().default("
|
|
2438
|
+
_id: z.string().default("tool_01KS1X9HB7M6G3J7N4PYN5ZRNE"),
|
|
2439
2439
|
path: z.string(),
|
|
2440
2440
|
key: z.string(),
|
|
2441
2441
|
display_name: z.string().optional(),
|
|
@@ -767,7 +767,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
767
767
|
z.ZodTypeDef,
|
|
768
768
|
unknown
|
|
769
769
|
> = z.object({
|
|
770
|
-
_id: z.string().default("
|
|
770
|
+
_id: z.string().default("tool_01KS1X9HAPHYPMTMGN8TD7624Z"),
|
|
771
771
|
path: z.string(),
|
|
772
772
|
key: z.string(),
|
|
773
773
|
display_name: z.string().optional(),
|
|
@@ -864,7 +864,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
864
864
|
z.ZodTypeDef,
|
|
865
865
|
unknown
|
|
866
866
|
> = z.object({
|
|
867
|
-
id: z.string().default("
|
|
867
|
+
id: z.string().default("01KS1X9HANYT1RZ14GFKBGFZ19"),
|
|
868
868
|
name: z.string(),
|
|
869
869
|
description: z.string().optional(),
|
|
870
870
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KS1X9HAMWCPZG6JFSTQSKCZB"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1102,7 +1102,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1102
1102
|
z.ZodTypeDef,
|
|
1103
1103
|
unknown
|
|
1104
1104
|
> = z.object({
|
|
1105
|
-
_id: z.string().default("
|
|
1105
|
+
_id: z.string().default("tool_01KS1X9HAJFWPBCFSAGS29PCR2"),
|
|
1106
1106
|
path: z.string(),
|
|
1107
1107
|
key: z.string(),
|
|
1108
1108
|
display_name: z.string().optional(),
|
|
@@ -1195,7 +1195,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1195
1195
|
z.ZodTypeDef,
|
|
1196
1196
|
unknown
|
|
1197
1197
|
> = z.object({
|
|
1198
|
-
_id: z.string().default("
|
|
1198
|
+
_id: z.string().default("tool_01KS1X9HAHTTBWHZN96S68HNRF"),
|
|
1199
1199
|
path: z.string(),
|
|
1200
1200
|
key: z.string(),
|
|
1201
1201
|
display_name: z.string().optional(),
|
|
@@ -1297,7 +1297,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1297
1297
|
z.ZodTypeDef,
|
|
1298
1298
|
unknown
|
|
1299
1299
|
> = z.object({
|
|
1300
|
-
_id: z.string().default("
|
|
1300
|
+
_id: z.string().default("tool_01KS1X9HAFJB237SYMNAQYJF9K"),
|
|
1301
1301
|
path: z.string(),
|
|
1302
1302
|
key: z.string(),
|
|
1303
1303
|
display_name: z.string().optional(),
|
|
@@ -1042,8 +1042,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
|
|
|
1042
1042
|
> = z.object({
|
|
1043
1043
|
_id: z.string(),
|
|
1044
1044
|
description: z.string(),
|
|
1045
|
-
created: z.string().default("2026-05-
|
|
1046
|
-
updated: z.string().default("2026-05-
|
|
1045
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
1046
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
1047
1047
|
guardrail_config: z.nullable(
|
|
1048
1048
|
z.union([
|
|
1049
1049
|
z.lazy(() =>
|
|
@@ -1222,8 +1222,8 @@ export const DataRagas$inboundSchema: z.ZodType<
|
|
|
1222
1222
|
> = z.object({
|
|
1223
1223
|
_id: z.string(),
|
|
1224
1224
|
description: z.string(),
|
|
1225
|
-
created: z.string().default("2026-05-
|
|
1226
|
-
updated: z.string().default("2026-05-
|
|
1225
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
1226
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
1227
1227
|
guardrail_config: z.nullable(
|
|
1228
1228
|
z.union([
|
|
1229
1229
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -2052,8 +2052,8 @@ export const DataFunction$inboundSchema: z.ZodType<
|
|
|
2052
2052
|
> = z.object({
|
|
2053
2053
|
_id: z.string(),
|
|
2054
2054
|
description: z.string(),
|
|
2055
|
-
created: z.string().default("2026-05-
|
|
2056
|
-
updated: z.string().default("2026-05-
|
|
2055
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2056
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2057
2057
|
guardrail_config: z.nullable(
|
|
2058
2058
|
z.union([
|
|
2059
2059
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -2234,8 +2234,8 @@ export const DataPython$inboundSchema: z.ZodType<
|
|
|
2234
2234
|
> = z.object({
|
|
2235
2235
|
_id: z.string(),
|
|
2236
2236
|
description: z.string(),
|
|
2237
|
-
created: z.string().default("2026-05-
|
|
2238
|
-
updated: z.string().default("2026-05-
|
|
2237
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2238
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2239
2239
|
guardrail_config: z.nullable(
|
|
2240
2240
|
z.union([
|
|
2241
2241
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
|
|
@@ -2412,8 +2412,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
|
|
|
2412
2412
|
> = z.object({
|
|
2413
2413
|
_id: z.string(),
|
|
2414
2414
|
description: z.string(),
|
|
2415
|
-
created: z.string().default("2026-05-
|
|
2416
|
-
updated: z.string().default("2026-05-
|
|
2415
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2416
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2417
2417
|
guardrail_config: z.nullable(
|
|
2418
2418
|
z.union([
|
|
2419
2419
|
z.lazy(() =>
|
|
@@ -2602,8 +2602,8 @@ export const DataJSON$inboundSchema: z.ZodType<
|
|
|
2602
2602
|
> = z.object({
|
|
2603
2603
|
_id: z.string(),
|
|
2604
2604
|
description: z.string(),
|
|
2605
|
-
created: z.string().default("2026-05-
|
|
2606
|
-
updated: z.string().default("2026-05-
|
|
2605
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2606
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2607
2607
|
guardrail_config: z.nullable(
|
|
2608
2608
|
z.union([
|
|
2609
2609
|
z.lazy(() =>
|
|
@@ -2968,8 +2968,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
|
|
|
2968
2968
|
> = z.object({
|
|
2969
2969
|
_id: z.string(),
|
|
2970
2970
|
description: z.string(),
|
|
2971
|
-
created: z.string().default("2026-05-
|
|
2972
|
-
updated: z.string().default("2026-05-
|
|
2971
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2972
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
2973
2973
|
guardrail_config: z.nullable(
|
|
2974
2974
|
z.union([
|
|
2975
2975
|
z.lazy(() =>
|
|
@@ -3179,8 +3179,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
|
|
|
3179
3179
|
> = z.object({
|
|
3180
3180
|
_id: z.string(),
|
|
3181
3181
|
description: z.string(),
|
|
3182
|
-
created: z.string().default("2026-05-
|
|
3183
|
-
updated: z.string().default("2026-05-
|
|
3182
|
+
created: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
3183
|
+
updated: z.string().default("2026-05-20T05:21:04.498Z"),
|
|
3184
3184
|
guardrail_config: z.nullable(
|
|
3185
3185
|
z.union([
|
|
3186
3186
|
z.lazy(() =>
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-05-
|
|
143
|
+
"2026-05-20T05:21:03.322Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-05-
|
|
188
|
+
"2026-05-20T05:21:03.322Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-05-
|
|
144
|
+
"2026-05-20T05:21:03.322Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-05-
|
|
189
|
+
"2026-05-20T05:21:03.322Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -90,6 +90,7 @@ export * from "./listdatasets.js";
|
|
|
90
90
|
export * from "./listdatasources.js";
|
|
91
91
|
export * from "./listidentities.js";
|
|
92
92
|
export * from "./listknowledgebases.js";
|
|
93
|
+
export * from "./listmodels.js";
|
|
93
94
|
export * from "./listpromptversions.js";
|
|
94
95
|
export * from "./parse.js";
|
|
95
96
|
export * from "./patchv2humanevalsetsid.js";
|
|
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1270
1270
|
),
|
|
1271
1271
|
reviewed_by_id: z.string(),
|
|
1272
1272
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1273
|
-
"2026-05-
|
|
1273
|
+
"2026-05-20T05:21:18.395Z",
|
|
1274
1274
|
).transform(v => new Date(v)),
|
|
1275
1275
|
type: z.literal("string_array"),
|
|
1276
1276
|
values: z.array(z.string()),
|
|
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1320
1320
|
source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
|
|
1321
1321
|
reviewed_by_id: z.string(),
|
|
1322
1322
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1323
|
-
"2026-05-
|
|
1323
|
+
"2026-05-20T05:21:18.394Z",
|
|
1324
1324
|
).transform(v => new Date(v)),
|
|
1325
1325
|
type: z.literal("number"),
|
|
1326
1326
|
value: z.number(),
|
|
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1369
1369
|
.default("orq"),
|
|
1370
1370
|
reviewed_by_id: z.string(),
|
|
1371
1371
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1372
|
-
"2026-05-
|
|
1372
|
+
"2026-05-20T05:21:18.394Z",
|
|
1373
1373
|
).transform(v => new Date(v)),
|
|
1374
1374
|
type: z.literal("string"),
|
|
1375
1375
|
value: z.string(),
|
|
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1448
1448
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1449
1449
|
.optional(),
|
|
1450
1450
|
updated: z.string().datetime({ offset: true }).default(
|
|
1451
|
-
"2026-05-
|
|
1451
|
+
"2026-05-20T05:21:03.322Z",
|
|
1452
1452
|
).transform(v => new Date(v)),
|
|
1453
1453
|
}).transform((v) => {
|
|
1454
1454
|
return remap$(v, {
|
|
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
156
156
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
157
157
|
.optional(),
|
|
158
158
|
updated: z.string().datetime({ offset: true }).default(
|
|
159
|
-
"2026-05-
|
|
159
|
+
"2026-05-20T05:21:03.322Z",
|
|
160
160
|
).transform(v => new Date(v)),
|
|
161
161
|
}).transform((v) => {
|
|
162
162
|
return remap$(v, {
|
|
@@ -176,7 +176,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
176
176
|
z.ZodTypeDef,
|
|
177
177
|
unknown
|
|
178
178
|
> = z.object({
|
|
179
|
-
_id: z.string().default("
|
|
179
|
+
_id: z.string().default("01KS1X9HFQPYTAD5PHM1E8NKCA"),
|
|
180
180
|
display_name: z.string(),
|
|
181
181
|
description: z.string().optional(),
|
|
182
182
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Always "list".
|
|
14
|
+
*/
|
|
15
|
+
export const ListModelsObject = {
|
|
16
|
+
List: "list",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* Always "list".
|
|
20
|
+
*/
|
|
21
|
+
export type ListModelsObject = ClosedEnum<typeof ListModelsObject>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Models listed.
|
|
25
|
+
*/
|
|
26
|
+
export type ListModelsResponseBody = {
|
|
27
|
+
/**
|
|
28
|
+
* Available models.
|
|
29
|
+
*/
|
|
30
|
+
data: Array<components.PublicModelEntry> | null;
|
|
31
|
+
/**
|
|
32
|
+
* Always "list".
|
|
33
|
+
*/
|
|
34
|
+
object: ListModelsObject;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ListModelsObject$inboundSchema: z.ZodNativeEnum<
|
|
39
|
+
typeof ListModelsObject
|
|
40
|
+
> = z.nativeEnum(ListModelsObject);
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ListModelsResponseBody$inboundSchema: z.ZodType<
|
|
44
|
+
ListModelsResponseBody,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
unknown
|
|
47
|
+
> = z.object({
|
|
48
|
+
data: z.nullable(z.array(components.PublicModelEntry$inboundSchema)),
|
|
49
|
+
object: ListModelsObject$inboundSchema,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function listModelsResponseBodyFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<ListModelsResponseBody, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => ListModelsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'ListModelsResponseBody' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-05-
|
|
321
|
+
"2026-05-20T05:21:03.322Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-05-
|
|
367
|
+
"2026-05-20T05:21:03.322Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|