@orq-ai/node 4.11.0-rc.27 → 4.11.0-rc.29
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/funcs/agentsInvoke.d.ts +1 -1
- package/funcs/agentsInvoke.d.ts.map +1 -1
- package/funcs/agentsInvoke.js.map +1 -1
- package/funcs/agentsResponsesCreate.d.ts +2 -1
- package/funcs/agentsResponsesCreate.d.ts.map +1 -1
- package/funcs/agentsResponsesCreate.js +7 -5
- package/funcs/agentsResponsesCreate.js.map +1 -1
- package/funcs/agentsStream.d.ts +1 -1
- package/funcs/agentsStream.d.ts.map +1 -1
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/annotationsCreate.d.ts +1 -1
- package/funcs/annotationsCreate.js +1 -1
- package/funcs/annotationsDelete.d.ts +1 -1
- package/funcs/annotationsDelete.js +1 -1
- package/funcs/budgetsList.js +1 -0
- package/funcs/budgetsList.js.map +1 -1
- package/funcs/deploymentsInvoke.d.ts +2 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +2 -1
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/promptsCreate.d.ts +1 -1
- package/funcs/promptsCreate.d.ts.map +1 -1
- package/funcs/promptsCreate.js +2 -1
- package/funcs/promptsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentresponserequest.d.ts +336 -0
- package/models/components/agentresponserequest.d.ts.map +1 -0
- package/models/components/agentresponserequest.js +210 -0
- package/models/components/agentresponserequest.js.map +1 -0
- package/models/components/agentthoughtstreamingevent.d.ts +12 -12
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +17 -17
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/azurefoundrydeployment.d.ts +3 -0
- package/models/components/azurefoundrydeployment.d.ts.map +1 -1
- package/models/components/azurefoundrydeployment.js +4 -0
- package/models/components/azurefoundrydeployment.js.map +1 -1
- package/models/components/budgetsortfield.d.ts +12 -0
- package/models/components/budgetsortfield.d.ts.map +1 -0
- package/models/components/budgetsortfield.js +49 -0
- package/models/components/budgetsortfield.js.map +1 -0
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +1573 -0
- package/models/components/invokedeploymentrequest.d.ts.map +1 -0
- package/models/components/invokedeploymentrequest.js +1137 -0
- package/models/components/invokedeploymentrequest.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/toolexecutionstartedstreamingevent.d.ts +4 -4
- package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedstreamingevent.js +7 -7
- package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
- package/models/operations/budgetlist.d.ts +5 -0
- package/models/operations/budgetlist.d.ts.map +1 -1
- package/models/operations/budgetlist.js +2 -0
- package/models/operations/budgetlist.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +2 -329
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +3 -166
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createannotation.d.ts +48 -10
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +37 -5
- package/models/operations/createannotation.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.d.ts +210 -12
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +136 -9
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.d.ts +3 -0
- package/models/operations/createdatasource.d.ts.map +1 -1
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createdatasource.js.map +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createprompt.d.ts +7 -4
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +5 -5
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deleteannotation.d.ts +19 -2
- package/models/operations/deleteannotation.d.ts.map +1 -1
- package/models/operations/deleteannotation.js +20 -2
- package/models/operations/deleteannotation.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +440 -440
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +484 -479
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +0 -1560
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1 -1126
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +56 -56
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +73 -72
- package/models/operations/deploymentstream.js.map +1 -1
- 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/invokeagent.d.ts +51 -48
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +43 -46
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listdatasetdatapoints.d.ts +210 -12
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +138 -9
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.d.ts +33 -12
- package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +9 -6
- package/models/operations/postv2feedbackevaluation.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.d.ts +210 -12
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +140 -8
- package/models/operations/retrievedatapoint.js.map +1 -1
- 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/streamagent.d.ts +9 -6
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +6 -6
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.d.ts +210 -12
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +138 -9
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +9 -6
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +7 -6
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/sdk/agents.d.ts +2 -2
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js.map +1 -1
- package/sdk/annotations.d.ts +2 -2
- package/sdk/annotations.js +2 -2
- package/sdk/deployments.d.ts +2 -1
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js.map +1 -1
- package/sdk/feedback.d.ts +1 -4
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +1 -4
- package/sdk/feedback.js.map +1 -1
- package/sdk/orqresponses.d.ts +1 -1
- package/sdk/orqresponses.d.ts.map +1 -1
- package/sdk/orqresponses.js +2 -2
- package/sdk/orqresponses.js.map +1 -1
- package/sdk/prompts.d.ts +1 -1
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js.map +1 -1
- package/src/funcs/agentsInvoke.ts +2 -2
- package/src/funcs/agentsResponsesCreate.ts +8 -5
- package/src/funcs/agentsStream.ts +2 -2
- package/src/funcs/annotationsCreate.ts +1 -1
- package/src/funcs/annotationsDelete.ts +1 -1
- package/src/funcs/budgetsList.ts +1 -0
- package/src/funcs/deploymentsInvoke.ts +4 -4
- package/src/funcs/promptsCreate.ts +4 -3
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentresponserequest.ts +565 -0
- package/src/models/components/agentthoughtstreamingevent.ts +55 -43
- package/src/models/components/azurefoundrydeployment.ts +7 -0
- package/src/models/components/budgetsortfield.ts +19 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/invokedeploymentrequest.ts +3457 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/toolexecutionstartedstreamingevent.ts +24 -14
- package/src/models/operations/budgetlist.ts +7 -0
- package/src/models/operations/createagentresponserequest.ts +4 -550
- package/src/models/operations/createannotation.ts +110 -16
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +335 -19
- package/src/models/operations/createdatasource.ts +4 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createprompt.ts +13 -8
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deleteannotation.ts +46 -3
- package/src/models/operations/deploymentgetconfig.ts +1156 -1606
- package/src/models/operations/deploymentinvoke.ts +222 -3675
- package/src/models/operations/deploymentstream.ts +244 -285
- 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/invokeagent.ts +90 -116
- package/src/models/operations/listdatasetdatapoints.ts +378 -19
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +42 -18
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +363 -19
- 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/streamagent.ts +16 -11
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +366 -19
- 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/updateprompt.ts +17 -11
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/agents.ts +2 -2
- package/src/sdk/annotations.ts +2 -2
- package/src/sdk/deployments.ts +2 -1
- package/src/sdk/feedback.ts +1 -4
- package/src/sdk/orqresponses.ts +2 -2
- package/src/sdk/prompts.ts +1 -1
|
@@ -37,12 +37,18 @@ export type RequestBody3 = {
|
|
|
37
37
|
*/
|
|
38
38
|
evaluationType: PostV2FeedbackEvaluationRequestBodyEvaluationType;
|
|
39
39
|
/**
|
|
40
|
-
* The unique identifier of the human review
|
|
40
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
41
41
|
*/
|
|
42
|
-
humanReviewId
|
|
42
|
+
humanReviewId?: string | undefined;
|
|
43
43
|
source?: PostV2FeedbackEvaluationRequestBodyFeedbackSource | undefined;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Optional free-text explanation of the value
|
|
46
|
+
*/
|
|
47
|
+
explanation?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Deprecated. The date and time the item was reviewed
|
|
50
|
+
*
|
|
51
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
46
52
|
*/
|
|
47
53
|
reviewedAt?: Date | undefined;
|
|
48
54
|
type: "string_array";
|
|
@@ -81,12 +87,18 @@ export type PostV2FeedbackEvaluationRequestBody2 = {
|
|
|
81
87
|
*/
|
|
82
88
|
evaluationType: RequestBodyEvaluationType;
|
|
83
89
|
/**
|
|
84
|
-
* The unique identifier of the human review
|
|
90
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
85
91
|
*/
|
|
86
|
-
humanReviewId
|
|
92
|
+
humanReviewId?: string | undefined;
|
|
87
93
|
source?: PostV2FeedbackEvaluationRequestBodySource | undefined;
|
|
88
94
|
/**
|
|
89
|
-
*
|
|
95
|
+
* Optional free-text explanation of the value
|
|
96
|
+
*/
|
|
97
|
+
explanation?: string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Deprecated. The date and time the item was reviewed
|
|
100
|
+
*
|
|
101
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
90
102
|
*/
|
|
91
103
|
reviewedAt?: Date | undefined;
|
|
92
104
|
type: "number";
|
|
@@ -121,12 +133,18 @@ export type PostV2FeedbackEvaluationRequestBody1 = {
|
|
|
121
133
|
*/
|
|
122
134
|
evaluationType: EvaluationType;
|
|
123
135
|
/**
|
|
124
|
-
* The unique identifier of the human review
|
|
136
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
125
137
|
*/
|
|
126
|
-
humanReviewId
|
|
138
|
+
humanReviewId?: string | undefined;
|
|
127
139
|
source?: RequestBodySource | undefined;
|
|
128
140
|
/**
|
|
129
|
-
*
|
|
141
|
+
* Optional free-text explanation of the value
|
|
142
|
+
*/
|
|
143
|
+
explanation?: string | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* Deprecated. The date and time the item was reviewed
|
|
146
|
+
*
|
|
147
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
130
148
|
*/
|
|
131
149
|
reviewedAt?: Date | undefined;
|
|
132
150
|
type: "string";
|
|
@@ -153,8 +171,9 @@ export const PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema:
|
|
|
153
171
|
export type RequestBody3$Outbound = {
|
|
154
172
|
id: string;
|
|
155
173
|
evaluation_type: string;
|
|
156
|
-
human_review_id
|
|
174
|
+
human_review_id?: string | undefined;
|
|
157
175
|
source: string;
|
|
176
|
+
explanation?: string | undefined;
|
|
158
177
|
reviewed_at: string;
|
|
159
178
|
type: "string_array";
|
|
160
179
|
values: Array<string>;
|
|
@@ -170,10 +189,11 @@ export const RequestBody3$outboundSchema: z.ZodType<
|
|
|
170
189
|
id: z.string(),
|
|
171
190
|
evaluationType:
|
|
172
191
|
PostV2FeedbackEvaluationRequestBodyEvaluationType$outboundSchema,
|
|
173
|
-
humanReviewId: z.string(),
|
|
192
|
+
humanReviewId: z.string().optional(),
|
|
174
193
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
175
194
|
.default("orq"),
|
|
176
|
-
|
|
195
|
+
explanation: z.string().optional(),
|
|
196
|
+
reviewedAt: z.date().default(() => new Date("2026-06-17T11:59:37.097Z"))
|
|
177
197
|
.transform(v => v.toISOString()),
|
|
178
198
|
type: z.literal("string_array"),
|
|
179
199
|
values: z.array(z.string()),
|
|
@@ -205,8 +225,9 @@ export const PostV2FeedbackEvaluationRequestBodySource$outboundSchema:
|
|
|
205
225
|
export type PostV2FeedbackEvaluationRequestBody2$Outbound = {
|
|
206
226
|
id: string;
|
|
207
227
|
evaluation_type: string;
|
|
208
|
-
human_review_id
|
|
228
|
+
human_review_id?: string | undefined;
|
|
209
229
|
source: string;
|
|
230
|
+
explanation?: string | undefined;
|
|
210
231
|
reviewed_at: string;
|
|
211
232
|
type: "number";
|
|
212
233
|
value: number;
|
|
@@ -221,11 +242,12 @@ export const PostV2FeedbackEvaluationRequestBody2$outboundSchema: z.ZodType<
|
|
|
221
242
|
> = z.object({
|
|
222
243
|
id: z.string(),
|
|
223
244
|
evaluationType: RequestBodyEvaluationType$outboundSchema,
|
|
224
|
-
humanReviewId: z.string(),
|
|
245
|
+
humanReviewId: z.string().optional(),
|
|
225
246
|
source: PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default(
|
|
226
247
|
"orq",
|
|
227
248
|
),
|
|
228
|
-
|
|
249
|
+
explanation: z.string().optional(),
|
|
250
|
+
reviewedAt: z.date().default(() => new Date("2026-06-17T11:59:37.097Z"))
|
|
229
251
|
.transform(v => v.toISOString()),
|
|
230
252
|
type: z.literal("number"),
|
|
231
253
|
value: z.number(),
|
|
@@ -263,8 +285,9 @@ export const RequestBodySource$outboundSchema: z.ZodNativeEnum<
|
|
|
263
285
|
export type PostV2FeedbackEvaluationRequestBody1$Outbound = {
|
|
264
286
|
id: string;
|
|
265
287
|
evaluation_type: string;
|
|
266
|
-
human_review_id
|
|
288
|
+
human_review_id?: string | undefined;
|
|
267
289
|
source: string;
|
|
290
|
+
explanation?: string | undefined;
|
|
268
291
|
reviewed_at: string;
|
|
269
292
|
type: "string";
|
|
270
293
|
value: string;
|
|
@@ -279,9 +302,10 @@ export const PostV2FeedbackEvaluationRequestBody1$outboundSchema: z.ZodType<
|
|
|
279
302
|
> = z.object({
|
|
280
303
|
id: z.string(),
|
|
281
304
|
evaluationType: EvaluationType$outboundSchema,
|
|
282
|
-
humanReviewId: z.string(),
|
|
305
|
+
humanReviewId: z.string().optional(),
|
|
283
306
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
284
|
-
|
|
307
|
+
explanation: z.string().optional(),
|
|
308
|
+
reviewedAt: z.date().default(() => new Date("2026-06-17T11:59:37.096Z"))
|
|
285
309
|
.transform(v => v.toISOString()),
|
|
286
310
|
type: z.literal("string"),
|
|
287
311
|
value: z.string(),
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-06-
|
|
274
|
+
"2026-06-17T11:59:16.603Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-06-
|
|
319
|
+
"2026-06-17T11:59:16.603Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -393,6 +393,51 @@ export type RetrieveDatapointEvaluationsDatasetsResponseSource = ClosedEnum<
|
|
|
393
393
|
typeof RetrieveDatapointEvaluationsDatasetsResponseSource
|
|
394
394
|
>;
|
|
395
395
|
|
|
396
|
+
/**
|
|
397
|
+
* The kind of annotator that produced the evaluation
|
|
398
|
+
*/
|
|
399
|
+
export const RetrieveDatapointEvaluationsDatasetsResponseKind = {
|
|
400
|
+
Llm: "llm",
|
|
401
|
+
Code: "code",
|
|
402
|
+
Human: "human",
|
|
403
|
+
Automation: "automation",
|
|
404
|
+
} as const;
|
|
405
|
+
/**
|
|
406
|
+
* The kind of annotator that produced the evaluation
|
|
407
|
+
*/
|
|
408
|
+
export type RetrieveDatapointEvaluationsDatasetsResponseKind = ClosedEnum<
|
|
409
|
+
typeof RetrieveDatapointEvaluationsDatasetsResponseKind
|
|
410
|
+
>;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
414
|
+
*/
|
|
415
|
+
export type RetrieveDatapointEvaluationsDatasetsResponseAnnotator = {
|
|
416
|
+
/**
|
|
417
|
+
* The kind of annotator that produced the evaluation
|
|
418
|
+
*/
|
|
419
|
+
kind: RetrieveDatapointEvaluationsDatasetsResponseKind;
|
|
420
|
+
/**
|
|
421
|
+
* Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
|
|
422
|
+
*/
|
|
423
|
+
actorId: string;
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
428
|
+
*/
|
|
429
|
+
export const RetrieveDatapointEvaluationsDatasetsResponseOutputSchema = {
|
|
430
|
+
Boolean: "boolean",
|
|
431
|
+
Number: "number",
|
|
432
|
+
Categorical: "categorical",
|
|
433
|
+
String: "string",
|
|
434
|
+
} as const;
|
|
435
|
+
/**
|
|
436
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
437
|
+
*/
|
|
438
|
+
export type RetrieveDatapointEvaluationsDatasetsResponseOutputSchema =
|
|
439
|
+
ClosedEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseOutputSchema>;
|
|
440
|
+
|
|
396
441
|
export type RetrieveDatapointEvaluations3 = {
|
|
397
442
|
/**
|
|
398
443
|
* The unique identifier of the human evaluation
|
|
@@ -403,16 +448,38 @@ export type RetrieveDatapointEvaluations3 = {
|
|
|
403
448
|
*/
|
|
404
449
|
evaluationType: RetrieveDatapointEvaluationsDatasetsResponseEvaluationType;
|
|
405
450
|
/**
|
|
406
|
-
* The unique identifier of the human review
|
|
451
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
407
452
|
*/
|
|
408
|
-
humanReviewId
|
|
453
|
+
humanReviewId?: string | undefined;
|
|
409
454
|
source: RetrieveDatapointEvaluationsDatasetsResponseSource;
|
|
410
455
|
/**
|
|
411
|
-
* The
|
|
456
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
457
|
+
*/
|
|
458
|
+
annotator?: RetrieveDatapointEvaluationsDatasetsResponseAnnotator | undefined;
|
|
459
|
+
/**
|
|
460
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
461
|
+
*/
|
|
462
|
+
outputSchema?:
|
|
463
|
+
| RetrieveDatapointEvaluationsDatasetsResponseOutputSchema
|
|
464
|
+
| undefined;
|
|
465
|
+
/**
|
|
466
|
+
* When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
|
|
467
|
+
*/
|
|
468
|
+
parentAnnotationId?: string | undefined;
|
|
469
|
+
/**
|
|
470
|
+
* Optional free-text explanation of the value
|
|
471
|
+
*/
|
|
472
|
+
explanation?: string | undefined;
|
|
473
|
+
/**
|
|
474
|
+
* Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
|
|
475
|
+
*
|
|
476
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
412
477
|
*/
|
|
413
478
|
reviewedById: string;
|
|
414
479
|
/**
|
|
415
|
-
* The date and time the item was reviewed
|
|
480
|
+
* Deprecated. The date and time the item was reviewed
|
|
481
|
+
*
|
|
482
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
416
483
|
*/
|
|
417
484
|
reviewedAt: Date;
|
|
418
485
|
type: "string_array";
|
|
@@ -440,6 +507,52 @@ export type RetrieveDatapointEvaluationsDatasetsSource = ClosedEnum<
|
|
|
440
507
|
typeof RetrieveDatapointEvaluationsDatasetsSource
|
|
441
508
|
>;
|
|
442
509
|
|
|
510
|
+
/**
|
|
511
|
+
* The kind of annotator that produced the evaluation
|
|
512
|
+
*/
|
|
513
|
+
export const RetrieveDatapointEvaluationsDatasetsKind = {
|
|
514
|
+
Llm: "llm",
|
|
515
|
+
Code: "code",
|
|
516
|
+
Human: "human",
|
|
517
|
+
Automation: "automation",
|
|
518
|
+
} as const;
|
|
519
|
+
/**
|
|
520
|
+
* The kind of annotator that produced the evaluation
|
|
521
|
+
*/
|
|
522
|
+
export type RetrieveDatapointEvaluationsDatasetsKind = ClosedEnum<
|
|
523
|
+
typeof RetrieveDatapointEvaluationsDatasetsKind
|
|
524
|
+
>;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
528
|
+
*/
|
|
529
|
+
export type RetrieveDatapointEvaluationsDatasetsAnnotator = {
|
|
530
|
+
/**
|
|
531
|
+
* The kind of annotator that produced the evaluation
|
|
532
|
+
*/
|
|
533
|
+
kind: RetrieveDatapointEvaluationsDatasetsKind;
|
|
534
|
+
/**
|
|
535
|
+
* Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
|
|
536
|
+
*/
|
|
537
|
+
actorId: string;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
542
|
+
*/
|
|
543
|
+
export const RetrieveDatapointEvaluationsDatasetsOutputSchema = {
|
|
544
|
+
Boolean: "boolean",
|
|
545
|
+
Number: "number",
|
|
546
|
+
Categorical: "categorical",
|
|
547
|
+
String: "string",
|
|
548
|
+
} as const;
|
|
549
|
+
/**
|
|
550
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
551
|
+
*/
|
|
552
|
+
export type RetrieveDatapointEvaluationsDatasetsOutputSchema = ClosedEnum<
|
|
553
|
+
typeof RetrieveDatapointEvaluationsDatasetsOutputSchema
|
|
554
|
+
>;
|
|
555
|
+
|
|
443
556
|
export type RetrieveDatapointEvaluations2 = {
|
|
444
557
|
/**
|
|
445
558
|
* The unique identifier of the human evaluation
|
|
@@ -450,16 +563,36 @@ export type RetrieveDatapointEvaluations2 = {
|
|
|
450
563
|
*/
|
|
451
564
|
evaluationType: RetrieveDatapointEvaluationsDatasetsEvaluationType;
|
|
452
565
|
/**
|
|
453
|
-
* The unique identifier of the human review
|
|
566
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
454
567
|
*/
|
|
455
|
-
humanReviewId
|
|
568
|
+
humanReviewId?: string | undefined;
|
|
456
569
|
source: RetrieveDatapointEvaluationsDatasetsSource;
|
|
457
570
|
/**
|
|
458
|
-
* The
|
|
571
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
572
|
+
*/
|
|
573
|
+
annotator?: RetrieveDatapointEvaluationsDatasetsAnnotator | undefined;
|
|
574
|
+
/**
|
|
575
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
576
|
+
*/
|
|
577
|
+
outputSchema?: RetrieveDatapointEvaluationsDatasetsOutputSchema | undefined;
|
|
578
|
+
/**
|
|
579
|
+
* When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
|
|
580
|
+
*/
|
|
581
|
+
parentAnnotationId?: string | undefined;
|
|
582
|
+
/**
|
|
583
|
+
* Optional free-text explanation of the value
|
|
584
|
+
*/
|
|
585
|
+
explanation?: string | undefined;
|
|
586
|
+
/**
|
|
587
|
+
* Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
|
|
588
|
+
*
|
|
589
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
459
590
|
*/
|
|
460
591
|
reviewedById: string;
|
|
461
592
|
/**
|
|
462
|
-
* The date and time the item was reviewed
|
|
593
|
+
* Deprecated. The date and time the item was reviewed
|
|
594
|
+
*
|
|
595
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
463
596
|
*/
|
|
464
597
|
reviewedAt: Date;
|
|
465
598
|
type: "number";
|
|
@@ -487,6 +620,52 @@ export type RetrieveDatapointEvaluationsSource = ClosedEnum<
|
|
|
487
620
|
typeof RetrieveDatapointEvaluationsSource
|
|
488
621
|
>;
|
|
489
622
|
|
|
623
|
+
/**
|
|
624
|
+
* The kind of annotator that produced the evaluation
|
|
625
|
+
*/
|
|
626
|
+
export const RetrieveDatapointEvaluationsKind = {
|
|
627
|
+
Llm: "llm",
|
|
628
|
+
Code: "code",
|
|
629
|
+
Human: "human",
|
|
630
|
+
Automation: "automation",
|
|
631
|
+
} as const;
|
|
632
|
+
/**
|
|
633
|
+
* The kind of annotator that produced the evaluation
|
|
634
|
+
*/
|
|
635
|
+
export type RetrieveDatapointEvaluationsKind = ClosedEnum<
|
|
636
|
+
typeof RetrieveDatapointEvaluationsKind
|
|
637
|
+
>;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
641
|
+
*/
|
|
642
|
+
export type RetrieveDatapointEvaluationsAnnotator = {
|
|
643
|
+
/**
|
|
644
|
+
* The kind of annotator that produced the evaluation
|
|
645
|
+
*/
|
|
646
|
+
kind: RetrieveDatapointEvaluationsKind;
|
|
647
|
+
/**
|
|
648
|
+
* Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
|
|
649
|
+
*/
|
|
650
|
+
actorId: string;
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
655
|
+
*/
|
|
656
|
+
export const RetrieveDatapointEvaluationsOutputSchema = {
|
|
657
|
+
Boolean: "boolean",
|
|
658
|
+
Number: "number",
|
|
659
|
+
Categorical: "categorical",
|
|
660
|
+
String: "string",
|
|
661
|
+
} as const;
|
|
662
|
+
/**
|
|
663
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
664
|
+
*/
|
|
665
|
+
export type RetrieveDatapointEvaluationsOutputSchema = ClosedEnum<
|
|
666
|
+
typeof RetrieveDatapointEvaluationsOutputSchema
|
|
667
|
+
>;
|
|
668
|
+
|
|
490
669
|
export type RetrieveDatapointEvaluations1 = {
|
|
491
670
|
/**
|
|
492
671
|
* The unique identifier of the human evaluation
|
|
@@ -497,16 +676,36 @@ export type RetrieveDatapointEvaluations1 = {
|
|
|
497
676
|
*/
|
|
498
677
|
evaluationType: RetrieveDatapointEvaluationsEvaluationType;
|
|
499
678
|
/**
|
|
500
|
-
* The unique identifier of the human review
|
|
679
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
501
680
|
*/
|
|
502
|
-
humanReviewId
|
|
681
|
+
humanReviewId?: string | undefined;
|
|
503
682
|
source: RetrieveDatapointEvaluationsSource;
|
|
504
683
|
/**
|
|
505
|
-
* The
|
|
684
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
685
|
+
*/
|
|
686
|
+
annotator?: RetrieveDatapointEvaluationsAnnotator | undefined;
|
|
687
|
+
/**
|
|
688
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
689
|
+
*/
|
|
690
|
+
outputSchema?: RetrieveDatapointEvaluationsOutputSchema | undefined;
|
|
691
|
+
/**
|
|
692
|
+
* When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
|
|
693
|
+
*/
|
|
694
|
+
parentAnnotationId?: string | undefined;
|
|
695
|
+
/**
|
|
696
|
+
* Optional free-text explanation of the value
|
|
697
|
+
*/
|
|
698
|
+
explanation?: string | undefined;
|
|
699
|
+
/**
|
|
700
|
+
* Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
|
|
701
|
+
*
|
|
702
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
506
703
|
*/
|
|
507
704
|
reviewedById: string;
|
|
508
705
|
/**
|
|
509
|
-
* The date and time the item was reviewed
|
|
706
|
+
* Deprecated. The date and time the item was reviewed
|
|
707
|
+
*
|
|
708
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
510
709
|
*/
|
|
511
710
|
reviewedAt: Date;
|
|
512
711
|
type: "string";
|
|
@@ -1193,6 +1392,48 @@ export const RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema:
|
|
|
1193
1392
|
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseSource> = z
|
|
1194
1393
|
.nativeEnum(RetrieveDatapointEvaluationsDatasetsResponseSource);
|
|
1195
1394
|
|
|
1395
|
+
/** @internal */
|
|
1396
|
+
export const RetrieveDatapointEvaluationsDatasetsResponseKind$inboundSchema:
|
|
1397
|
+
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseKind> = z
|
|
1398
|
+
.nativeEnum(RetrieveDatapointEvaluationsDatasetsResponseKind);
|
|
1399
|
+
|
|
1400
|
+
/** @internal */
|
|
1401
|
+
export const RetrieveDatapointEvaluationsDatasetsResponseAnnotator$inboundSchema:
|
|
1402
|
+
z.ZodType<
|
|
1403
|
+
RetrieveDatapointEvaluationsDatasetsResponseAnnotator,
|
|
1404
|
+
z.ZodTypeDef,
|
|
1405
|
+
unknown
|
|
1406
|
+
> = z.object({
|
|
1407
|
+
kind: RetrieveDatapointEvaluationsDatasetsResponseKind$inboundSchema,
|
|
1408
|
+
actor_id: z.string(),
|
|
1409
|
+
}).transform((v) => {
|
|
1410
|
+
return remap$(v, {
|
|
1411
|
+
"actor_id": "actorId",
|
|
1412
|
+
});
|
|
1413
|
+
});
|
|
1414
|
+
|
|
1415
|
+
export function retrieveDatapointEvaluationsDatasetsResponseAnnotatorFromJSON(
|
|
1416
|
+
jsonString: string,
|
|
1417
|
+
): SafeParseResult<
|
|
1418
|
+
RetrieveDatapointEvaluationsDatasetsResponseAnnotator,
|
|
1419
|
+
SDKValidationError
|
|
1420
|
+
> {
|
|
1421
|
+
return safeParse(
|
|
1422
|
+
jsonString,
|
|
1423
|
+
(x) =>
|
|
1424
|
+
RetrieveDatapointEvaluationsDatasetsResponseAnnotator$inboundSchema.parse(
|
|
1425
|
+
JSON.parse(x),
|
|
1426
|
+
),
|
|
1427
|
+
`Failed to parse 'RetrieveDatapointEvaluationsDatasetsResponseAnnotator' from JSON`,
|
|
1428
|
+
);
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
/** @internal */
|
|
1432
|
+
export const RetrieveDatapointEvaluationsDatasetsResponseOutputSchema$inboundSchema:
|
|
1433
|
+
z.ZodNativeEnum<
|
|
1434
|
+
typeof RetrieveDatapointEvaluationsDatasetsResponseOutputSchema
|
|
1435
|
+
> = z.nativeEnum(RetrieveDatapointEvaluationsDatasetsResponseOutputSchema);
|
|
1436
|
+
|
|
1196
1437
|
/** @internal */
|
|
1197
1438
|
export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
1198
1439
|
RetrieveDatapointEvaluations3,
|
|
@@ -1202,12 +1443,20 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1202
1443
|
id: z.string(),
|
|
1203
1444
|
evaluation_type:
|
|
1204
1445
|
RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema,
|
|
1205
|
-
human_review_id: z.string(),
|
|
1446
|
+
human_review_id: z.string().optional(),
|
|
1206
1447
|
source: RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema
|
|
1207
1448
|
.default("orq"),
|
|
1449
|
+
annotator: z.lazy(() =>
|
|
1450
|
+
RetrieveDatapointEvaluationsDatasetsResponseAnnotator$inboundSchema
|
|
1451
|
+
).optional(),
|
|
1452
|
+
output_schema:
|
|
1453
|
+
RetrieveDatapointEvaluationsDatasetsResponseOutputSchema$inboundSchema
|
|
1454
|
+
.optional(),
|
|
1455
|
+
parent_annotation_id: z.string().optional(),
|
|
1456
|
+
explanation: z.string().optional(),
|
|
1208
1457
|
reviewed_by_id: z.string(),
|
|
1209
1458
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1210
|
-
"2026-06-
|
|
1459
|
+
"2026-06-17T11:59:36.968Z",
|
|
1211
1460
|
).transform(v => new Date(v)),
|
|
1212
1461
|
type: z.literal("string_array"),
|
|
1213
1462
|
values: z.array(z.string()),
|
|
@@ -1215,6 +1464,8 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1215
1464
|
return remap$(v, {
|
|
1216
1465
|
"evaluation_type": "evaluationType",
|
|
1217
1466
|
"human_review_id": "humanReviewId",
|
|
1467
|
+
"output_schema": "outputSchema",
|
|
1468
|
+
"parent_annotation_id": "parentAnnotationId",
|
|
1218
1469
|
"reviewed_by_id": "reviewedById",
|
|
1219
1470
|
"reviewed_at": "reviewedAt",
|
|
1220
1471
|
});
|
|
@@ -1240,6 +1491,47 @@ export const RetrieveDatapointEvaluationsDatasetsSource$inboundSchema:
|
|
|
1240
1491
|
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsSource> = z
|
|
1241
1492
|
.nativeEnum(RetrieveDatapointEvaluationsDatasetsSource);
|
|
1242
1493
|
|
|
1494
|
+
/** @internal */
|
|
1495
|
+
export const RetrieveDatapointEvaluationsDatasetsKind$inboundSchema:
|
|
1496
|
+
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsKind> = z
|
|
1497
|
+
.nativeEnum(RetrieveDatapointEvaluationsDatasetsKind);
|
|
1498
|
+
|
|
1499
|
+
/** @internal */
|
|
1500
|
+
export const RetrieveDatapointEvaluationsDatasetsAnnotator$inboundSchema:
|
|
1501
|
+
z.ZodType<
|
|
1502
|
+
RetrieveDatapointEvaluationsDatasetsAnnotator,
|
|
1503
|
+
z.ZodTypeDef,
|
|
1504
|
+
unknown
|
|
1505
|
+
> = z.object({
|
|
1506
|
+
kind: RetrieveDatapointEvaluationsDatasetsKind$inboundSchema,
|
|
1507
|
+
actor_id: z.string(),
|
|
1508
|
+
}).transform((v) => {
|
|
1509
|
+
return remap$(v, {
|
|
1510
|
+
"actor_id": "actorId",
|
|
1511
|
+
});
|
|
1512
|
+
});
|
|
1513
|
+
|
|
1514
|
+
export function retrieveDatapointEvaluationsDatasetsAnnotatorFromJSON(
|
|
1515
|
+
jsonString: string,
|
|
1516
|
+
): SafeParseResult<
|
|
1517
|
+
RetrieveDatapointEvaluationsDatasetsAnnotator,
|
|
1518
|
+
SDKValidationError
|
|
1519
|
+
> {
|
|
1520
|
+
return safeParse(
|
|
1521
|
+
jsonString,
|
|
1522
|
+
(x) =>
|
|
1523
|
+
RetrieveDatapointEvaluationsDatasetsAnnotator$inboundSchema.parse(
|
|
1524
|
+
JSON.parse(x),
|
|
1525
|
+
),
|
|
1526
|
+
`Failed to parse 'RetrieveDatapointEvaluationsDatasetsAnnotator' from JSON`,
|
|
1527
|
+
);
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
/** @internal */
|
|
1531
|
+
export const RetrieveDatapointEvaluationsDatasetsOutputSchema$inboundSchema:
|
|
1532
|
+
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsOutputSchema> = z
|
|
1533
|
+
.nativeEnum(RetrieveDatapointEvaluationsDatasetsOutputSchema);
|
|
1534
|
+
|
|
1243
1535
|
/** @internal */
|
|
1244
1536
|
export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
1245
1537
|
RetrieveDatapointEvaluations2,
|
|
@@ -1249,13 +1541,20 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1249
1541
|
id: z.string(),
|
|
1250
1542
|
evaluation_type:
|
|
1251
1543
|
RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema,
|
|
1252
|
-
human_review_id: z.string(),
|
|
1544
|
+
human_review_id: z.string().optional(),
|
|
1253
1545
|
source: RetrieveDatapointEvaluationsDatasetsSource$inboundSchema.default(
|
|
1254
1546
|
"orq",
|
|
1255
1547
|
),
|
|
1548
|
+
annotator: z.lazy(() =>
|
|
1549
|
+
RetrieveDatapointEvaluationsDatasetsAnnotator$inboundSchema
|
|
1550
|
+
).optional(),
|
|
1551
|
+
output_schema: RetrieveDatapointEvaluationsDatasetsOutputSchema$inboundSchema
|
|
1552
|
+
.optional(),
|
|
1553
|
+
parent_annotation_id: z.string().optional(),
|
|
1554
|
+
explanation: z.string().optional(),
|
|
1256
1555
|
reviewed_by_id: z.string(),
|
|
1257
1556
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1258
|
-
"2026-06-
|
|
1557
|
+
"2026-06-17T11:59:36.967Z",
|
|
1259
1558
|
).transform(v => new Date(v)),
|
|
1260
1559
|
type: z.literal("number"),
|
|
1261
1560
|
value: z.number(),
|
|
@@ -1263,6 +1562,8 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1263
1562
|
return remap$(v, {
|
|
1264
1563
|
"evaluation_type": "evaluationType",
|
|
1265
1564
|
"human_review_id": "humanReviewId",
|
|
1565
|
+
"output_schema": "outputSchema",
|
|
1566
|
+
"parent_annotation_id": "parentAnnotationId",
|
|
1266
1567
|
"reviewed_by_id": "reviewedById",
|
|
1267
1568
|
"reviewed_at": "reviewedAt",
|
|
1268
1569
|
});
|
|
@@ -1288,6 +1589,41 @@ export const RetrieveDatapointEvaluationsSource$inboundSchema: z.ZodNativeEnum<
|
|
|
1288
1589
|
typeof RetrieveDatapointEvaluationsSource
|
|
1289
1590
|
> = z.nativeEnum(RetrieveDatapointEvaluationsSource);
|
|
1290
1591
|
|
|
1592
|
+
/** @internal */
|
|
1593
|
+
export const RetrieveDatapointEvaluationsKind$inboundSchema: z.ZodNativeEnum<
|
|
1594
|
+
typeof RetrieveDatapointEvaluationsKind
|
|
1595
|
+
> = z.nativeEnum(RetrieveDatapointEvaluationsKind);
|
|
1596
|
+
|
|
1597
|
+
/** @internal */
|
|
1598
|
+
export const RetrieveDatapointEvaluationsAnnotator$inboundSchema: z.ZodType<
|
|
1599
|
+
RetrieveDatapointEvaluationsAnnotator,
|
|
1600
|
+
z.ZodTypeDef,
|
|
1601
|
+
unknown
|
|
1602
|
+
> = z.object({
|
|
1603
|
+
kind: RetrieveDatapointEvaluationsKind$inboundSchema,
|
|
1604
|
+
actor_id: z.string(),
|
|
1605
|
+
}).transform((v) => {
|
|
1606
|
+
return remap$(v, {
|
|
1607
|
+
"actor_id": "actorId",
|
|
1608
|
+
});
|
|
1609
|
+
});
|
|
1610
|
+
|
|
1611
|
+
export function retrieveDatapointEvaluationsAnnotatorFromJSON(
|
|
1612
|
+
jsonString: string,
|
|
1613
|
+
): SafeParseResult<RetrieveDatapointEvaluationsAnnotator, SDKValidationError> {
|
|
1614
|
+
return safeParse(
|
|
1615
|
+
jsonString,
|
|
1616
|
+
(x) =>
|
|
1617
|
+
RetrieveDatapointEvaluationsAnnotator$inboundSchema.parse(JSON.parse(x)),
|
|
1618
|
+
`Failed to parse 'RetrieveDatapointEvaluationsAnnotator' from JSON`,
|
|
1619
|
+
);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
/** @internal */
|
|
1623
|
+
export const RetrieveDatapointEvaluationsOutputSchema$inboundSchema:
|
|
1624
|
+
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsOutputSchema> = z
|
|
1625
|
+
.nativeEnum(RetrieveDatapointEvaluationsOutputSchema);
|
|
1626
|
+
|
|
1291
1627
|
/** @internal */
|
|
1292
1628
|
export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
1293
1629
|
RetrieveDatapointEvaluations1,
|
|
@@ -1296,11 +1632,17 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1296
1632
|
> = z.object({
|
|
1297
1633
|
id: z.string(),
|
|
1298
1634
|
evaluation_type: RetrieveDatapointEvaluationsEvaluationType$inboundSchema,
|
|
1299
|
-
human_review_id: z.string(),
|
|
1635
|
+
human_review_id: z.string().optional(),
|
|
1300
1636
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
1637
|
+
annotator: z.lazy(() => RetrieveDatapointEvaluationsAnnotator$inboundSchema)
|
|
1638
|
+
.optional(),
|
|
1639
|
+
output_schema: RetrieveDatapointEvaluationsOutputSchema$inboundSchema
|
|
1640
|
+
.optional(),
|
|
1641
|
+
parent_annotation_id: z.string().optional(),
|
|
1642
|
+
explanation: z.string().optional(),
|
|
1301
1643
|
reviewed_by_id: z.string(),
|
|
1302
1644
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1303
|
-
"2026-06-
|
|
1645
|
+
"2026-06-17T11:59:36.966Z",
|
|
1304
1646
|
).transform(v => new Date(v)),
|
|
1305
1647
|
type: z.literal("string"),
|
|
1306
1648
|
value: z.string(),
|
|
@@ -1308,6 +1650,8 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1308
1650
|
return remap$(v, {
|
|
1309
1651
|
"evaluation_type": "evaluationType",
|
|
1310
1652
|
"human_review_id": "humanReviewId",
|
|
1653
|
+
"output_schema": "outputSchema",
|
|
1654
|
+
"parent_annotation_id": "parentAnnotationId",
|
|
1311
1655
|
"reviewed_by_id": "reviewedById",
|
|
1312
1656
|
"reviewed_at": "reviewedAt",
|
|
1313
1657
|
});
|
|
@@ -1377,7 +1721,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1377
1721
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1378
1722
|
.optional(),
|
|
1379
1723
|
updated: z.string().datetime({ offset: true }).default(
|
|
1380
|
-
"2026-06-
|
|
1724
|
+
"2026-06-17T11:59:16.603Z",
|
|
1381
1725
|
).transform(v => new Date(v)),
|
|
1382
1726
|
}).transform((v) => {
|
|
1383
1727
|
return remap$(v, {
|
|
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
126
126
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
127
|
.optional(),
|
|
128
128
|
updated: z.string().datetime({ offset: true }).default(
|
|
129
|
-
"2026-06-
|
|
129
|
+
"2026-06-17T11:59:16.603Z",
|
|
130
130
|
).transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|