@orq-ai/node 4.14.3 → 4.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +29 -13
- package/lib/encodings.js.map +1 -1
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createannotationqueue.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listannotationqueues.js +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveannotationqueue.js +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateannotationqueue.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +3 -3
- package/packages/orq-rc/examples/{evalsAll.example.ts → deploymentsList.example.ts} +2 -2
- package/packages/orq-rc/src/funcs/annotationQueuesAddItems.ts +9 -10
- package/packages/orq-rc/src/funcs/annotationQueuesClear.ts +8 -8
- package/packages/orq-rc/src/funcs/annotationQueuesCreate.ts +10 -13
- package/packages/orq-rc/src/funcs/annotationQueuesDelete.ts +8 -8
- package/packages/orq-rc/src/funcs/annotationQueuesList.ts +6 -5
- package/packages/orq-rc/src/funcs/annotationQueuesListItems.ts +6 -5
- package/packages/orq-rc/src/funcs/annotationQueuesRemoveItems.ts +12 -10
- package/packages/orq-rc/src/funcs/annotationQueuesRetrieve.ts +6 -5
- package/packages/orq-rc/src/funcs/annotationQueuesRetrieveItem.ts +8 -6
- package/packages/orq-rc/src/funcs/annotationQueuesUpdate.ts +10 -7
- package/packages/orq-rc/src/funcs/evalsAll.ts +6 -14
- package/packages/orq-rc/src/funcs/evalsCreate.ts +10 -35
- package/packages/orq-rc/src/funcs/evalsDelete.ts +6 -19
- package/packages/orq-rc/src/funcs/evalsGet.ts +6 -14
- package/packages/orq-rc/src/funcs/evalsGetVersion.ts +174 -0
- package/packages/orq-rc/src/funcs/evalsListVersions.ts +11 -20
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +6 -14
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/encodings.ts +58 -23
- package/packages/orq-rc/src/models/components/addannotationqueueitemsrequest.ts +41 -0
- package/packages/orq-rc/src/models/components/addannotationqueueitemsresponse.ts +38 -0
- package/packages/orq-rc/src/models/components/agentresponserequest.ts +17 -10
- package/packages/orq-rc/src/models/components/annotationqueue.ts +101 -0
- package/packages/orq-rc/src/models/components/annotationqueueitem.ts +80 -0
- package/packages/orq-rc/src/models/components/annotationqueueitemref.ts +43 -0
- package/packages/orq-rc/src/models/components/annotationqueuemetadata.ts +42 -0
- package/packages/orq-rc/src/models/components/budgetmatch.ts +3 -3
- package/packages/orq-rc/src/models/components/budgetscope.ts +17 -1
- package/packages/orq-rc/src/models/components/budgetscopekind.ts +1 -0
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +13 -1
- package/packages/orq-rc/src/models/components/clearannotationqueueresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/createannotationqueuerequest.ts +54 -0
- package/packages/orq-rc/src/models/components/createapikeyrequest.ts +9 -0
- package/packages/orq-rc/src/models/components/deleteannotationqueueresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/deleteevaluatorresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatordocumentresponse.ts +50 -0
- package/packages/orq-rc/src/models/components/factorybudgetscope.ts +66 -0
- package/packages/orq-rc/src/models/components/factorybudgetscoperestresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/filesystemtoolinput.ts +63 -6
- package/packages/orq-rc/src/models/components/getevaluatorversionresponse.ts +58 -0
- package/packages/orq-rc/src/models/components/index.ts +22 -8
- package/packages/orq-rc/src/models/components/listannotationqueueitemsresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/listannotationqueuesresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/listevaluatorsresponse.ts +59 -0
- package/packages/orq-rc/src/models/components/listevaluatorversionsresponse.ts +59 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
- package/packages/orq-rc/src/models/components/modelsconfig.ts +10 -11
- package/packages/orq-rc/src/models/components/policyprofileidlist.ts +31 -0
- package/packages/orq-rc/src/models/components/pricing.ts +12 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +12 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/removeannotationqueueitemsrequest.ts +41 -0
- package/packages/orq-rc/src/models/components/removeannotationqueueitemsresponse.ts +28 -0
- package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +37 -58
- package/packages/orq-rc/src/models/components/textcontentpartschema.ts +19 -23
- package/packages/orq-rc/src/models/components/updateannotationqueuerequest.ts +61 -0
- package/packages/orq-rc/src/models/components/updateworkspacesettingsrequest.ts +9 -0
- package/packages/orq-rc/src/models/components/workspacesettings.ts +3 -0
- package/packages/orq-rc/src/models/errors/index.ts +0 -6
- package/packages/orq-rc/src/models/operations/addannotationqueueitems.ts +7 -139
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +20 -31
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
- package/packages/orq-rc/src/models/operations/createeval.ts +3 -644
- package/packages/orq-rc/src/models/operations/createprompt.ts +19 -22
- package/packages/orq-rc/src/models/operations/createtool.ts +55 -56
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +16 -18
- package/packages/orq-rc/src/models/operations/deployments.ts +43 -46
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/geteval.ts +0 -2770
- package/packages/orq-rc/src/models/operations/getevals.ts +5 -119
- package/packages/orq-rc/src/models/operations/getevalversion.ts +39 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +2 -2
- package/packages/orq-rc/src/models/operations/listannotationqueueitems.ts +5 -183
- package/packages/orq-rc/src/models/operations/listannotationqueues.ts +7 -173
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listevalversions.ts +49 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/parse.ts +7 -7
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +14 -20
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/removeannotationqueueitems.ts +8 -41
- package/packages/orq-rc/src/models/operations/retrieveannotationqueue.ts +0 -123
- package/packages/orq-rc/src/models/operations/retrieveannotationqueueitem.ts +31 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +31 -40
- package/packages/orq-rc/src/models/operations/updateannotationqueue.ts +7 -182
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +6 -404
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/annotationqueues.ts +31 -31
- package/packages/orq-rc/src/sdk/evals.ts +41 -23
- package/packages/orq-rc/src/sdk/sdk.ts +10 -10
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createannotationqueue.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listannotationqueues.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveannotationqueue.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateannotationqueue.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +0 -922
- package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +0 -77
- package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +0 -60
- package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +0 -310
- package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +0 -60
- package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +0 -84
- package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +0 -60
- package/packages/orq-rc/src/models/components/publicspan.ts +0 -135
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -96
- package/packages/orq-rc/src/models/errors/geteval.ts +0 -51
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
- package/packages/orq-rc/src/models/operations/createannotationqueue.ts +0 -176
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
|
@@ -4,75 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
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 * as components from "../components/index.js";
|
|
11
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
-
|
|
13
|
-
export const Sort = {
|
|
14
|
-
Asc: "asc",
|
|
15
|
-
Desc: "desc",
|
|
16
|
-
} as const;
|
|
17
|
-
export type Sort = ClosedEnum<typeof Sort>;
|
|
18
7
|
|
|
19
8
|
export type GetEvalsRequest = {
|
|
20
9
|
/**
|
|
21
|
-
*
|
|
10
|
+
* Page size, 1-200. Unset uses the server default (10).
|
|
22
11
|
*/
|
|
23
12
|
limit?: number | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
26
|
-
*/
|
|
27
13
|
startingAfter?: string | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
30
|
-
*/
|
|
31
14
|
endingBefore?: string | undefined;
|
|
32
15
|
search?: string | undefined;
|
|
33
|
-
sort?:
|
|
16
|
+
sort?: string | undefined;
|
|
34
17
|
projectId?: string | undefined;
|
|
35
18
|
};
|
|
36
19
|
|
|
37
|
-
export const ObjectT = {
|
|
38
|
-
List: "list",
|
|
39
|
-
} as const;
|
|
40
|
-
export type ObjectT = ClosedEnum<typeof ObjectT>;
|
|
41
|
-
|
|
42
|
-
export type Data =
|
|
43
|
-
| components.EvaluatorResponseLlm
|
|
44
|
-
| components.EvaluatorResponseJsonSchema
|
|
45
|
-
| components.EvaluatorResponseHttp
|
|
46
|
-
| components.EvaluatorResponsePython
|
|
47
|
-
| components.EvaluatorResponseFunction
|
|
48
|
-
| components.EvaluatorResponseRagas
|
|
49
|
-
| components.EvaluatorResponseTypescript;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Returns a list of evals
|
|
53
|
-
*/
|
|
54
|
-
export type GetEvalsResponseBody = {
|
|
55
|
-
object: ObjectT;
|
|
56
|
-
data: Array<
|
|
57
|
-
| components.EvaluatorResponseLlm
|
|
58
|
-
| components.EvaluatorResponseJsonSchema
|
|
59
|
-
| components.EvaluatorResponseHttp
|
|
60
|
-
| components.EvaluatorResponsePython
|
|
61
|
-
| components.EvaluatorResponseFunction
|
|
62
|
-
| components.EvaluatorResponseRagas
|
|
63
|
-
| components.EvaluatorResponseTypescript
|
|
64
|
-
>;
|
|
65
|
-
hasMore: boolean;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const Sort$outboundSchema: z.ZodNativeEnum<typeof Sort> = z.nativeEnum(
|
|
70
|
-
Sort,
|
|
71
|
-
);
|
|
72
|
-
|
|
73
20
|
/** @internal */
|
|
74
21
|
export type GetEvalsRequest$Outbound = {
|
|
75
|
-
limit
|
|
22
|
+
limit?: number | undefined;
|
|
76
23
|
starting_after?: string | undefined;
|
|
77
24
|
ending_before?: string | undefined;
|
|
78
25
|
search?: string | undefined;
|
|
@@ -86,11 +33,11 @@ export const GetEvalsRequest$outboundSchema: z.ZodType<
|
|
|
86
33
|
z.ZodTypeDef,
|
|
87
34
|
GetEvalsRequest
|
|
88
35
|
> = z.object({
|
|
89
|
-
limit: z.number().int().
|
|
36
|
+
limit: z.number().int().optional(),
|
|
90
37
|
startingAfter: z.string().optional(),
|
|
91
38
|
endingBefore: z.string().optional(),
|
|
92
39
|
search: z.string().optional(),
|
|
93
|
-
sort:
|
|
40
|
+
sort: z.string().optional(),
|
|
94
41
|
projectId: z.string().optional(),
|
|
95
42
|
}).transform((v) => {
|
|
96
43
|
return remap$(v, {
|
|
@@ -105,64 +52,3 @@ export function getEvalsRequestToJSON(
|
|
|
105
52
|
): string {
|
|
106
53
|
return JSON.stringify(GetEvalsRequest$outboundSchema.parse(getEvalsRequest));
|
|
107
54
|
}
|
|
108
|
-
|
|
109
|
-
/** @internal */
|
|
110
|
-
export const ObjectT$inboundSchema: z.ZodNativeEnum<typeof ObjectT> = z
|
|
111
|
-
.nativeEnum(ObjectT);
|
|
112
|
-
|
|
113
|
-
/** @internal */
|
|
114
|
-
export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
115
|
-
.union([
|
|
116
|
-
components.EvaluatorResponseLlm$inboundSchema,
|
|
117
|
-
components.EvaluatorResponseJsonSchema$inboundSchema,
|
|
118
|
-
components.EvaluatorResponseHttp$inboundSchema,
|
|
119
|
-
components.EvaluatorResponsePython$inboundSchema,
|
|
120
|
-
components.EvaluatorResponseFunction$inboundSchema,
|
|
121
|
-
components.EvaluatorResponseRagas$inboundSchema,
|
|
122
|
-
components.EvaluatorResponseTypescript$inboundSchema,
|
|
123
|
-
]);
|
|
124
|
-
|
|
125
|
-
export function dataFromJSON(
|
|
126
|
-
jsonString: string,
|
|
127
|
-
): SafeParseResult<Data, SDKValidationError> {
|
|
128
|
-
return safeParse(
|
|
129
|
-
jsonString,
|
|
130
|
-
(x) => Data$inboundSchema.parse(JSON.parse(x)),
|
|
131
|
-
`Failed to parse 'Data' from JSON`,
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/** @internal */
|
|
136
|
-
export const GetEvalsResponseBody$inboundSchema: z.ZodType<
|
|
137
|
-
GetEvalsResponseBody,
|
|
138
|
-
z.ZodTypeDef,
|
|
139
|
-
unknown
|
|
140
|
-
> = z.object({
|
|
141
|
-
object: ObjectT$inboundSchema,
|
|
142
|
-
data: z.array(
|
|
143
|
-
z.union([
|
|
144
|
-
components.EvaluatorResponseLlm$inboundSchema,
|
|
145
|
-
components.EvaluatorResponseJsonSchema$inboundSchema,
|
|
146
|
-
components.EvaluatorResponseHttp$inboundSchema,
|
|
147
|
-
components.EvaluatorResponsePython$inboundSchema,
|
|
148
|
-
components.EvaluatorResponseFunction$inboundSchema,
|
|
149
|
-
components.EvaluatorResponseRagas$inboundSchema,
|
|
150
|
-
components.EvaluatorResponseTypescript$inboundSchema,
|
|
151
|
-
]),
|
|
152
|
-
),
|
|
153
|
-
has_more: z.boolean(),
|
|
154
|
-
}).transform((v) => {
|
|
155
|
-
return remap$(v, {
|
|
156
|
-
"has_more": "hasMore",
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
export function getEvalsResponseBodyFromJSON(
|
|
161
|
-
jsonString: string,
|
|
162
|
-
): SafeParseResult<GetEvalsResponseBody, SDKValidationError> {
|
|
163
|
-
return safeParse(
|
|
164
|
-
jsonString,
|
|
165
|
-
(x) => GetEvalsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
-
`Failed to parse 'GetEvalsResponseBody' from JSON`,
|
|
167
|
-
);
|
|
168
|
-
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
|
|
8
|
+
export type GetEvalVersionRequest = {
|
|
9
|
+
id: string;
|
|
10
|
+
versionId: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type GetEvalVersionRequest$Outbound = {
|
|
15
|
+
id: string;
|
|
16
|
+
version_id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetEvalVersionRequest$outboundSchema: z.ZodType<
|
|
21
|
+
GetEvalVersionRequest$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
GetEvalVersionRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
versionId: z.string(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
versionId: "version_id",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function getEvalVersionRequestToJSON(
|
|
34
|
+
getEvalVersionRequest: GetEvalVersionRequest,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
GetEvalVersionRequest$outboundSchema.parse(getEvalVersionRequest),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -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-08-
|
|
143
|
+
"2026-08-27T13:21:49.218Z",
|
|
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-08-
|
|
188
|
+
"2026-08-27T13:21:49.218Z",
|
|
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-08-
|
|
144
|
+
"2026-08-27T13:21:49.218Z",
|
|
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-08-
|
|
189
|
+
"2026-08-27T13:21:49.218Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -24,7 +24,6 @@ export * from "./createagentrequest.js";
|
|
|
24
24
|
export * from "./createagentresponserequest.js";
|
|
25
25
|
export * from "./createagentschedule.js";
|
|
26
26
|
export * from "./createannotation.js";
|
|
27
|
-
export * from "./createannotationqueue.js";
|
|
28
27
|
export * from "./createchatcompletion.js";
|
|
29
28
|
export * from "./createchunk.js";
|
|
30
29
|
export * from "./createcompletion.js";
|
|
@@ -84,6 +83,7 @@ export * from "./getalltools.js";
|
|
|
84
83
|
export * from "./getchunkscount.js";
|
|
85
84
|
export * from "./geteval.js";
|
|
86
85
|
export * from "./getevals.js";
|
|
86
|
+
export * from "./getevalversion.js";
|
|
87
87
|
export * from "./getlog.js";
|
|
88
88
|
export * from "./getlogcontext.js";
|
|
89
89
|
export * from "./getonechunk.js";
|
|
@@ -92,7 +92,6 @@ export * from "./getonefileuploadurl.js";
|
|
|
92
92
|
export * from "./getoneknowledge.js";
|
|
93
93
|
export * from "./getoneprompt.js";
|
|
94
94
|
export * from "./getpromptversion.js";
|
|
95
|
-
export * from "./getv2evaluatorsidversions.js";
|
|
96
95
|
export * from "./getv2humanevalsets.js";
|
|
97
96
|
export * from "./getv2humanevalsetsid.js";
|
|
98
97
|
export * from "./getv2toolstoolidversions.js";
|
|
@@ -113,6 +112,7 @@ export * from "./listchunkspaginated.js";
|
|
|
113
112
|
export * from "./listdatasetdatapoints.js";
|
|
114
113
|
export * from "./listdatasets.js";
|
|
115
114
|
export * from "./listdatasources.js";
|
|
115
|
+
export * from "./listevalversions.js";
|
|
116
116
|
export * from "./listfiles.js";
|
|
117
117
|
export * from "./listfilesystems.js";
|
|
118
118
|
export * from "./listidentities.js";
|
|
@@ -4,89 +4,27 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
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
7
|
|
|
12
8
|
export type ListAnnotationQueueItemsRequest = {
|
|
13
9
|
annotationQueueId: string;
|
|
14
10
|
/**
|
|
15
|
-
*
|
|
11
|
+
* Optional. Number of items to return. Defaults to 10 and must be between 1 and 200.
|
|
16
12
|
*/
|
|
17
13
|
limit?: number | undefined;
|
|
18
14
|
/**
|
|
19
|
-
*
|
|
15
|
+
* Cursor for forward pagination. Set to the `_id` of the last item from the previous page.
|
|
20
16
|
*/
|
|
21
17
|
startingAfter?: string | undefined;
|
|
22
18
|
/**
|
|
23
|
-
*
|
|
19
|
+
* Cursor for backward pagination. Set to the `_id` of the first item from the previous page.
|
|
24
20
|
*/
|
|
25
21
|
endingBefore?: string | undefined;
|
|
26
22
|
};
|
|
27
23
|
|
|
28
|
-
export const ListAnnotationQueueItemsObject = {
|
|
29
|
-
List: "list",
|
|
30
|
-
} as const;
|
|
31
|
-
export type ListAnnotationQueueItemsObject = ClosedEnum<
|
|
32
|
-
typeof ListAnnotationQueueItemsObject
|
|
33
|
-
>;
|
|
34
|
-
|
|
35
|
-
export type Data2 = {
|
|
36
|
-
id: string;
|
|
37
|
-
/**
|
|
38
|
-
* The unique identifier of the annotation queue
|
|
39
|
-
*/
|
|
40
|
-
annotationQueueId: string;
|
|
41
|
-
/**
|
|
42
|
-
* The unique identifier of the workspace it belongs to
|
|
43
|
-
*/
|
|
44
|
-
workspaceId: string;
|
|
45
|
-
/**
|
|
46
|
-
* The unique identifiers of the human reviews that have been used to annotate the item
|
|
47
|
-
*/
|
|
48
|
-
usedHumanReviewIds?: Array<string> | undefined;
|
|
49
|
-
datapointId: string;
|
|
50
|
-
type: "datapoint";
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export type Data1 = {
|
|
54
|
-
id: string;
|
|
55
|
-
/**
|
|
56
|
-
* The unique identifier of the annotation queue
|
|
57
|
-
*/
|
|
58
|
-
annotationQueueId: string;
|
|
59
|
-
/**
|
|
60
|
-
* The unique identifier of the workspace it belongs to
|
|
61
|
-
*/
|
|
62
|
-
workspaceId: string;
|
|
63
|
-
/**
|
|
64
|
-
* The unique identifiers of the human reviews that have been used to annotate the item
|
|
65
|
-
*/
|
|
66
|
-
usedHumanReviewIds?: Array<string> | undefined;
|
|
67
|
-
spanId: string;
|
|
68
|
-
/**
|
|
69
|
-
* The trace identifier this span belongs to
|
|
70
|
-
*/
|
|
71
|
-
traceId?: string | undefined;
|
|
72
|
-
type: "span";
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export type ListAnnotationQueueItemsData = Data1 | Data2;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Annotation queue items retrieved.
|
|
79
|
-
*/
|
|
80
|
-
export type ListAnnotationQueueItemsResponseBody = {
|
|
81
|
-
object: ListAnnotationQueueItemsObject;
|
|
82
|
-
data: Array<Data1 | Data2>;
|
|
83
|
-
hasMore: boolean;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
24
|
/** @internal */
|
|
87
25
|
export type ListAnnotationQueueItemsRequest$Outbound = {
|
|
88
26
|
annotation_queue_id: string;
|
|
89
|
-
limit
|
|
27
|
+
limit?: number | undefined;
|
|
90
28
|
starting_after?: string | undefined;
|
|
91
29
|
ending_before?: string | undefined;
|
|
92
30
|
};
|
|
@@ -98,7 +36,7 @@ export const ListAnnotationQueueItemsRequest$outboundSchema: z.ZodType<
|
|
|
98
36
|
ListAnnotationQueueItemsRequest
|
|
99
37
|
> = z.object({
|
|
100
38
|
annotationQueueId: z.string(),
|
|
101
|
-
limit: z.number().int().
|
|
39
|
+
limit: z.number().int().optional(),
|
|
102
40
|
startingAfter: z.string().optional(),
|
|
103
41
|
endingBefore: z.string().optional(),
|
|
104
42
|
}).transform((v) => {
|
|
@@ -118,119 +56,3 @@ export function listAnnotationQueueItemsRequestToJSON(
|
|
|
118
56
|
),
|
|
119
57
|
);
|
|
120
58
|
}
|
|
121
|
-
|
|
122
|
-
/** @internal */
|
|
123
|
-
export const ListAnnotationQueueItemsObject$inboundSchema: z.ZodNativeEnum<
|
|
124
|
-
typeof ListAnnotationQueueItemsObject
|
|
125
|
-
> = z.nativeEnum(ListAnnotationQueueItemsObject);
|
|
126
|
-
|
|
127
|
-
/** @internal */
|
|
128
|
-
export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
|
|
129
|
-
.object({
|
|
130
|
-
_id: z.string(),
|
|
131
|
-
annotation_queue_id: z.string(),
|
|
132
|
-
workspace_id: z.string(),
|
|
133
|
-
used_human_review_ids: z.array(z.string()).optional(),
|
|
134
|
-
datapoint_id: z.string(),
|
|
135
|
-
type: z.literal("datapoint"),
|
|
136
|
-
}).transform((v) => {
|
|
137
|
-
return remap$(v, {
|
|
138
|
-
"_id": "id",
|
|
139
|
-
"annotation_queue_id": "annotationQueueId",
|
|
140
|
-
"workspace_id": "workspaceId",
|
|
141
|
-
"used_human_review_ids": "usedHumanReviewIds",
|
|
142
|
-
"datapoint_id": "datapointId",
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
export function data2FromJSON(
|
|
147
|
-
jsonString: string,
|
|
148
|
-
): SafeParseResult<Data2, SDKValidationError> {
|
|
149
|
-
return safeParse(
|
|
150
|
-
jsonString,
|
|
151
|
-
(x) => Data2$inboundSchema.parse(JSON.parse(x)),
|
|
152
|
-
`Failed to parse 'Data2' from JSON`,
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/** @internal */
|
|
157
|
-
export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
|
|
158
|
-
.object({
|
|
159
|
-
_id: z.string(),
|
|
160
|
-
annotation_queue_id: z.string(),
|
|
161
|
-
workspace_id: z.string(),
|
|
162
|
-
used_human_review_ids: z.array(z.string()).optional(),
|
|
163
|
-
span_id: z.string(),
|
|
164
|
-
trace_id: z.string().optional(),
|
|
165
|
-
type: z.literal("span"),
|
|
166
|
-
}).transform((v) => {
|
|
167
|
-
return remap$(v, {
|
|
168
|
-
"_id": "id",
|
|
169
|
-
"annotation_queue_id": "annotationQueueId",
|
|
170
|
-
"workspace_id": "workspaceId",
|
|
171
|
-
"used_human_review_ids": "usedHumanReviewIds",
|
|
172
|
-
"span_id": "spanId",
|
|
173
|
-
"trace_id": "traceId",
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
export function data1FromJSON(
|
|
178
|
-
jsonString: string,
|
|
179
|
-
): SafeParseResult<Data1, SDKValidationError> {
|
|
180
|
-
return safeParse(
|
|
181
|
-
jsonString,
|
|
182
|
-
(x) => Data1$inboundSchema.parse(JSON.parse(x)),
|
|
183
|
-
`Failed to parse 'Data1' from JSON`,
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/** @internal */
|
|
188
|
-
export const ListAnnotationQueueItemsData$inboundSchema: z.ZodType<
|
|
189
|
-
ListAnnotationQueueItemsData,
|
|
190
|
-
z.ZodTypeDef,
|
|
191
|
-
unknown
|
|
192
|
-
> = z.union([
|
|
193
|
-
z.lazy(() => Data1$inboundSchema),
|
|
194
|
-
z.lazy(() => Data2$inboundSchema),
|
|
195
|
-
]);
|
|
196
|
-
|
|
197
|
-
export function listAnnotationQueueItemsDataFromJSON(
|
|
198
|
-
jsonString: string,
|
|
199
|
-
): SafeParseResult<ListAnnotationQueueItemsData, SDKValidationError> {
|
|
200
|
-
return safeParse(
|
|
201
|
-
jsonString,
|
|
202
|
-
(x) => ListAnnotationQueueItemsData$inboundSchema.parse(JSON.parse(x)),
|
|
203
|
-
`Failed to parse 'ListAnnotationQueueItemsData' from JSON`,
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/** @internal */
|
|
208
|
-
export const ListAnnotationQueueItemsResponseBody$inboundSchema: z.ZodType<
|
|
209
|
-
ListAnnotationQueueItemsResponseBody,
|
|
210
|
-
z.ZodTypeDef,
|
|
211
|
-
unknown
|
|
212
|
-
> = z.object({
|
|
213
|
-
object: ListAnnotationQueueItemsObject$inboundSchema,
|
|
214
|
-
data: z.array(
|
|
215
|
-
z.union([
|
|
216
|
-
z.lazy(() => Data1$inboundSchema),
|
|
217
|
-
z.lazy(() => Data2$inboundSchema),
|
|
218
|
-
]),
|
|
219
|
-
),
|
|
220
|
-
has_more: z.boolean(),
|
|
221
|
-
}).transform((v) => {
|
|
222
|
-
return remap$(v, {
|
|
223
|
-
"has_more": "hasMore",
|
|
224
|
-
});
|
|
225
|
-
});
|
|
226
|
-
|
|
227
|
-
export function listAnnotationQueueItemsResponseBodyFromJSON(
|
|
228
|
-
jsonString: string,
|
|
229
|
-
): SafeParseResult<ListAnnotationQueueItemsResponseBody, SDKValidationError> {
|
|
230
|
-
return safeParse(
|
|
231
|
-
jsonString,
|
|
232
|
-
(x) =>
|
|
233
|
-
ListAnnotationQueueItemsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
234
|
-
`Failed to parse 'ListAnnotationQueueItemsResponseBody' from JSON`,
|
|
235
|
-
);
|
|
236
|
-
}
|