@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
|
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
118
118
|
z.ZodTypeDef,
|
|
119
119
|
unknown
|
|
120
120
|
> = z.object({
|
|
121
|
-
_id: z.string().default("
|
|
121
|
+
_id: z.string().default("01KVAQ6ZXH3234HF2C692C58RG"),
|
|
122
122
|
display_name: z.string(),
|
|
123
123
|
description: z.nullable(z.string()).optional(),
|
|
124
124
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -753,7 +753,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
753
753
|
z.ZodTypeDef,
|
|
754
754
|
unknown
|
|
755
755
|
> = z.object({
|
|
756
|
-
_id: z.string().default("
|
|
756
|
+
_id: z.string().default("tool_01KVAQ6ZTTSNASA9XET0VFQKAT"),
|
|
757
757
|
path: z.string(),
|
|
758
758
|
key: z.string(),
|
|
759
759
|
display_name: z.string().optional(),
|
|
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
859
859
|
z.ZodTypeDef,
|
|
860
860
|
unknown
|
|
861
861
|
> = z.object({
|
|
862
|
-
id: z.string().default("
|
|
862
|
+
id: z.string().default("01KVAQ6ZTSYDS7ARRKZP1AX9MK"),
|
|
863
863
|
name: z.string(),
|
|
864
864
|
description: z.string().optional(),
|
|
865
865
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const RetrieveToolResponseBodyMCPTool$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_01KVAQ6ZTRJH3GBFNM34Q0Q7DY"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1108,7 +1108,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1108
1108
|
z.ZodTypeDef,
|
|
1109
1109
|
unknown
|
|
1110
1110
|
> = z.object({
|
|
1111
|
-
_id: z.string().default("
|
|
1111
|
+
_id: z.string().default("tool_01KVAQ6ZTPZ56847F2D87S8Y2H"),
|
|
1112
1112
|
path: z.string(),
|
|
1113
1113
|
key: z.string(),
|
|
1114
1114
|
display_name: z.string().optional(),
|
|
@@ -1204,7 +1204,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1204
1204
|
z.ZodTypeDef,
|
|
1205
1205
|
unknown
|
|
1206
1206
|
> = z.object({
|
|
1207
|
-
_id: z.string().default("
|
|
1207
|
+
_id: z.string().default("tool_01KVAQ6ZTMYAY9X47AS24GYER2"),
|
|
1208
1208
|
path: z.string(),
|
|
1209
1209
|
key: z.string(),
|
|
1210
1210
|
display_name: z.string().optional(),
|
|
@@ -1310,7 +1310,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1310
1310
|
z.ZodTypeDef,
|
|
1311
1311
|
unknown
|
|
1312
1312
|
> = z.object({
|
|
1313
|
-
_id: z.string().default("
|
|
1313
|
+
_id: z.string().default("tool_01KVAQ6ZTK8SX98TYTWNTQ4HE3"),
|
|
1314
1314
|
path: z.string(),
|
|
1315
1315
|
key: z.string(),
|
|
1316
1316
|
display_name: z.string().optional(),
|
|
@@ -3861,7 +3861,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3861
3861
|
z.ZodTypeDef,
|
|
3862
3862
|
Tools
|
|
3863
3863
|
> = z.object({
|
|
3864
|
-
id: z.string().default("
|
|
3864
|
+
id: z.string().default("01KVAQ6ZJJTXWXWT8XF2YMKXEM"),
|
|
3865
3865
|
name: z.string(),
|
|
3866
3866
|
description: z.string().optional(),
|
|
3867
3867
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -184,7 +184,10 @@ export type StreamAgentConfiguration = {
|
|
|
184
184
|
blocking?: boolean | undefined;
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
|
|
187
|
+
/**
|
|
188
|
+
* Request body for invoking an existing agent (stream-task endpoint). Used to start a new task or continue an existing conversation.
|
|
189
|
+
*/
|
|
190
|
+
export type StreamAgentA2AInvokeRequest = {
|
|
188
191
|
/**
|
|
189
192
|
* Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
|
|
190
193
|
*/
|
|
@@ -238,7 +241,7 @@ export type StreamAgentRequest = {
|
|
|
238
241
|
* The key or ID of the agent to invoke
|
|
239
242
|
*/
|
|
240
243
|
key: string;
|
|
241
|
-
requestBody:
|
|
244
|
+
requestBody: StreamAgentA2AInvokeRequest;
|
|
242
245
|
};
|
|
243
246
|
|
|
244
247
|
export type StreamAgentData =
|
|
@@ -535,7 +538,7 @@ export function streamAgentConfigurationToJSON(
|
|
|
535
538
|
}
|
|
536
539
|
|
|
537
540
|
/** @internal */
|
|
538
|
-
export type
|
|
541
|
+
export type StreamAgentA2AInvokeRequest$Outbound = {
|
|
539
542
|
task_id?: string | undefined;
|
|
540
543
|
message: StreamAgentA2AMessage$Outbound;
|
|
541
544
|
variables?: { [k: string]: any } | undefined;
|
|
@@ -550,10 +553,10 @@ export type StreamAgentRequestBody$Outbound = {
|
|
|
550
553
|
};
|
|
551
554
|
|
|
552
555
|
/** @internal */
|
|
553
|
-
export const
|
|
554
|
-
|
|
556
|
+
export const StreamAgentA2AInvokeRequest$outboundSchema: z.ZodType<
|
|
557
|
+
StreamAgentA2AInvokeRequest$Outbound,
|
|
555
558
|
z.ZodTypeDef,
|
|
556
|
-
|
|
559
|
+
StreamAgentA2AInvokeRequest
|
|
557
560
|
> = z.object({
|
|
558
561
|
taskId: z.string().optional(),
|
|
559
562
|
message: z.lazy(() => StreamAgentA2AMessage$outboundSchema),
|
|
@@ -574,18 +577,20 @@ export const StreamAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
574
577
|
});
|
|
575
578
|
});
|
|
576
579
|
|
|
577
|
-
export function
|
|
578
|
-
|
|
580
|
+
export function streamAgentA2AInvokeRequestToJSON(
|
|
581
|
+
streamAgentA2AInvokeRequest: StreamAgentA2AInvokeRequest,
|
|
579
582
|
): string {
|
|
580
583
|
return JSON.stringify(
|
|
581
|
-
|
|
584
|
+
StreamAgentA2AInvokeRequest$outboundSchema.parse(
|
|
585
|
+
streamAgentA2AInvokeRequest,
|
|
586
|
+
),
|
|
582
587
|
);
|
|
583
588
|
}
|
|
584
589
|
|
|
585
590
|
/** @internal */
|
|
586
591
|
export type StreamAgentRequest$Outbound = {
|
|
587
592
|
key: string;
|
|
588
|
-
RequestBody:
|
|
593
|
+
RequestBody: StreamAgentA2AInvokeRequest$Outbound;
|
|
589
594
|
};
|
|
590
595
|
|
|
591
596
|
/** @internal */
|
|
@@ -595,7 +600,7 @@ export const StreamAgentRequest$outboundSchema: z.ZodType<
|
|
|
595
600
|
StreamAgentRequest
|
|
596
601
|
> = z.object({
|
|
597
602
|
key: z.string(),
|
|
598
|
-
requestBody: z.lazy(() =>
|
|
603
|
+
requestBody: z.lazy(() => StreamAgentA2AInvokeRequest$outboundSchema),
|
|
599
604
|
}).transform((v) => {
|
|
600
605
|
return remap$(v, {
|
|
601
606
|
requestBody: "RequestBody",
|
|
@@ -3916,7 +3916,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3916
3916
|
z.ZodTypeDef,
|
|
3917
3917
|
AgentToolInputRunTools
|
|
3918
3918
|
> = z.object({
|
|
3919
|
-
id: z.string().default("
|
|
3919
|
+
id: z.string().default("01KVAQ6ZMBM10S1C3T7A5ZTNG4"),
|
|
3920
3920
|
name: z.string(),
|
|
3921
3921
|
description: z.string().optional(),
|
|
3922
3922
|
schema: z.lazy(() =>
|
|
@@ -770,6 +770,52 @@ export type UpdateDatapointEvaluationsDatasetsResponseSource = ClosedEnum<
|
|
|
770
770
|
typeof UpdateDatapointEvaluationsDatasetsResponseSource
|
|
771
771
|
>;
|
|
772
772
|
|
|
773
|
+
/**
|
|
774
|
+
* The kind of annotator that produced the evaluation
|
|
775
|
+
*/
|
|
776
|
+
export const UpdateDatapointEvaluationsDatasetsResponseKind = {
|
|
777
|
+
Llm: "llm",
|
|
778
|
+
Code: "code",
|
|
779
|
+
Human: "human",
|
|
780
|
+
Automation: "automation",
|
|
781
|
+
} as const;
|
|
782
|
+
/**
|
|
783
|
+
* The kind of annotator that produced the evaluation
|
|
784
|
+
*/
|
|
785
|
+
export type UpdateDatapointEvaluationsDatasetsResponseKind = ClosedEnum<
|
|
786
|
+
typeof UpdateDatapointEvaluationsDatasetsResponseKind
|
|
787
|
+
>;
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
791
|
+
*/
|
|
792
|
+
export type UpdateDatapointEvaluationsDatasetsResponseAnnotator = {
|
|
793
|
+
/**
|
|
794
|
+
* The kind of annotator that produced the evaluation
|
|
795
|
+
*/
|
|
796
|
+
kind: UpdateDatapointEvaluationsDatasetsResponseKind;
|
|
797
|
+
/**
|
|
798
|
+
* Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
|
|
799
|
+
*/
|
|
800
|
+
actorId: string;
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
805
|
+
*/
|
|
806
|
+
export const UpdateDatapointEvaluationsDatasetsResponseOutputSchema = {
|
|
807
|
+
Boolean: "boolean",
|
|
808
|
+
Number: "number",
|
|
809
|
+
Categorical: "categorical",
|
|
810
|
+
String: "string",
|
|
811
|
+
} as const;
|
|
812
|
+
/**
|
|
813
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
814
|
+
*/
|
|
815
|
+
export type UpdateDatapointEvaluationsDatasetsResponseOutputSchema = ClosedEnum<
|
|
816
|
+
typeof UpdateDatapointEvaluationsDatasetsResponseOutputSchema
|
|
817
|
+
>;
|
|
818
|
+
|
|
773
819
|
export type UpdateDatapointEvaluations3 = {
|
|
774
820
|
/**
|
|
775
821
|
* The unique identifier of the human evaluation
|
|
@@ -780,16 +826,38 @@ export type UpdateDatapointEvaluations3 = {
|
|
|
780
826
|
*/
|
|
781
827
|
evaluationType: UpdateDatapointEvaluationsDatasetsResponseEvaluationType;
|
|
782
828
|
/**
|
|
783
|
-
* The unique identifier of the human review
|
|
829
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
784
830
|
*/
|
|
785
|
-
humanReviewId
|
|
831
|
+
humanReviewId?: string | undefined;
|
|
786
832
|
source: UpdateDatapointEvaluationsDatasetsResponseSource;
|
|
787
833
|
/**
|
|
788
|
-
* The
|
|
834
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
835
|
+
*/
|
|
836
|
+
annotator?: UpdateDatapointEvaluationsDatasetsResponseAnnotator | undefined;
|
|
837
|
+
/**
|
|
838
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
839
|
+
*/
|
|
840
|
+
outputSchema?:
|
|
841
|
+
| UpdateDatapointEvaluationsDatasetsResponseOutputSchema
|
|
842
|
+
| undefined;
|
|
843
|
+
/**
|
|
844
|
+
* When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
|
|
845
|
+
*/
|
|
846
|
+
parentAnnotationId?: string | undefined;
|
|
847
|
+
/**
|
|
848
|
+
* Optional free-text explanation of the value
|
|
849
|
+
*/
|
|
850
|
+
explanation?: string | undefined;
|
|
851
|
+
/**
|
|
852
|
+
* Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
|
|
853
|
+
*
|
|
854
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
789
855
|
*/
|
|
790
856
|
reviewedById: string;
|
|
791
857
|
/**
|
|
792
|
-
* The date and time the item was reviewed
|
|
858
|
+
* Deprecated. The date and time the item was reviewed
|
|
859
|
+
*
|
|
860
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
793
861
|
*/
|
|
794
862
|
reviewedAt: Date;
|
|
795
863
|
type: "string_array";
|
|
@@ -817,6 +885,52 @@ export type UpdateDatapointEvaluationsDatasetsSource = ClosedEnum<
|
|
|
817
885
|
typeof UpdateDatapointEvaluationsDatasetsSource
|
|
818
886
|
>;
|
|
819
887
|
|
|
888
|
+
/**
|
|
889
|
+
* The kind of annotator that produced the evaluation
|
|
890
|
+
*/
|
|
891
|
+
export const UpdateDatapointEvaluationsDatasetsKind = {
|
|
892
|
+
Llm: "llm",
|
|
893
|
+
Code: "code",
|
|
894
|
+
Human: "human",
|
|
895
|
+
Automation: "automation",
|
|
896
|
+
} as const;
|
|
897
|
+
/**
|
|
898
|
+
* The kind of annotator that produced the evaluation
|
|
899
|
+
*/
|
|
900
|
+
export type UpdateDatapointEvaluationsDatasetsKind = ClosedEnum<
|
|
901
|
+
typeof UpdateDatapointEvaluationsDatasetsKind
|
|
902
|
+
>;
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
906
|
+
*/
|
|
907
|
+
export type UpdateDatapointEvaluationsDatasetsAnnotator = {
|
|
908
|
+
/**
|
|
909
|
+
* The kind of annotator that produced the evaluation
|
|
910
|
+
*/
|
|
911
|
+
kind: UpdateDatapointEvaluationsDatasetsKind;
|
|
912
|
+
/**
|
|
913
|
+
* Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
|
|
914
|
+
*/
|
|
915
|
+
actorId: string;
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
920
|
+
*/
|
|
921
|
+
export const UpdateDatapointEvaluationsDatasetsOutputSchema = {
|
|
922
|
+
Boolean: "boolean",
|
|
923
|
+
Number: "number",
|
|
924
|
+
Categorical: "categorical",
|
|
925
|
+
String: "string",
|
|
926
|
+
} as const;
|
|
927
|
+
/**
|
|
928
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
929
|
+
*/
|
|
930
|
+
export type UpdateDatapointEvaluationsDatasetsOutputSchema = ClosedEnum<
|
|
931
|
+
typeof UpdateDatapointEvaluationsDatasetsOutputSchema
|
|
932
|
+
>;
|
|
933
|
+
|
|
820
934
|
export type UpdateDatapointEvaluations2 = {
|
|
821
935
|
/**
|
|
822
936
|
* The unique identifier of the human evaluation
|
|
@@ -827,16 +941,36 @@ export type UpdateDatapointEvaluations2 = {
|
|
|
827
941
|
*/
|
|
828
942
|
evaluationType: UpdateDatapointEvaluationsDatasetsEvaluationType;
|
|
829
943
|
/**
|
|
830
|
-
* The unique identifier of the human review
|
|
944
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
831
945
|
*/
|
|
832
|
-
humanReviewId
|
|
946
|
+
humanReviewId?: string | undefined;
|
|
833
947
|
source: UpdateDatapointEvaluationsDatasetsSource;
|
|
834
948
|
/**
|
|
835
|
-
* The
|
|
949
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
950
|
+
*/
|
|
951
|
+
annotator?: UpdateDatapointEvaluationsDatasetsAnnotator | undefined;
|
|
952
|
+
/**
|
|
953
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
954
|
+
*/
|
|
955
|
+
outputSchema?: UpdateDatapointEvaluationsDatasetsOutputSchema | undefined;
|
|
956
|
+
/**
|
|
957
|
+
* When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
|
|
958
|
+
*/
|
|
959
|
+
parentAnnotationId?: string | undefined;
|
|
960
|
+
/**
|
|
961
|
+
* Optional free-text explanation of the value
|
|
962
|
+
*/
|
|
963
|
+
explanation?: string | undefined;
|
|
964
|
+
/**
|
|
965
|
+
* Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
|
|
966
|
+
*
|
|
967
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
836
968
|
*/
|
|
837
969
|
reviewedById: string;
|
|
838
970
|
/**
|
|
839
|
-
* The date and time the item was reviewed
|
|
971
|
+
* Deprecated. The date and time the item was reviewed
|
|
972
|
+
*
|
|
973
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
840
974
|
*/
|
|
841
975
|
reviewedAt: Date;
|
|
842
976
|
type: "number";
|
|
@@ -864,6 +998,52 @@ export type UpdateDatapointEvaluationsSource = ClosedEnum<
|
|
|
864
998
|
typeof UpdateDatapointEvaluationsSource
|
|
865
999
|
>;
|
|
866
1000
|
|
|
1001
|
+
/**
|
|
1002
|
+
* The kind of annotator that produced the evaluation
|
|
1003
|
+
*/
|
|
1004
|
+
export const UpdateDatapointEvaluationsKind = {
|
|
1005
|
+
Llm: "llm",
|
|
1006
|
+
Code: "code",
|
|
1007
|
+
Human: "human",
|
|
1008
|
+
Automation: "automation",
|
|
1009
|
+
} as const;
|
|
1010
|
+
/**
|
|
1011
|
+
* The kind of annotator that produced the evaluation
|
|
1012
|
+
*/
|
|
1013
|
+
export type UpdateDatapointEvaluationsKind = ClosedEnum<
|
|
1014
|
+
typeof UpdateDatapointEvaluationsKind
|
|
1015
|
+
>;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
1019
|
+
*/
|
|
1020
|
+
export type UpdateDatapointEvaluationsAnnotator = {
|
|
1021
|
+
/**
|
|
1022
|
+
* The kind of annotator that produced the evaluation
|
|
1023
|
+
*/
|
|
1024
|
+
kind: UpdateDatapointEvaluationsKind;
|
|
1025
|
+
/**
|
|
1026
|
+
* Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
|
|
1027
|
+
*/
|
|
1028
|
+
actorId: string;
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
1033
|
+
*/
|
|
1034
|
+
export const UpdateDatapointEvaluationsOutputSchema = {
|
|
1035
|
+
Boolean: "boolean",
|
|
1036
|
+
Number: "number",
|
|
1037
|
+
Categorical: "categorical",
|
|
1038
|
+
String: "string",
|
|
1039
|
+
} as const;
|
|
1040
|
+
/**
|
|
1041
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
1042
|
+
*/
|
|
1043
|
+
export type UpdateDatapointEvaluationsOutputSchema = ClosedEnum<
|
|
1044
|
+
typeof UpdateDatapointEvaluationsOutputSchema
|
|
1045
|
+
>;
|
|
1046
|
+
|
|
867
1047
|
export type UpdateDatapointEvaluations1 = {
|
|
868
1048
|
/**
|
|
869
1049
|
* The unique identifier of the human evaluation
|
|
@@ -874,16 +1054,36 @@ export type UpdateDatapointEvaluations1 = {
|
|
|
874
1054
|
*/
|
|
875
1055
|
evaluationType: UpdateDatapointEvaluationsEvaluationType;
|
|
876
1056
|
/**
|
|
877
|
-
* The unique identifier of the human review
|
|
1057
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
878
1058
|
*/
|
|
879
|
-
humanReviewId
|
|
1059
|
+
humanReviewId?: string | undefined;
|
|
880
1060
|
source: UpdateDatapointEvaluationsSource;
|
|
881
1061
|
/**
|
|
882
|
-
* The
|
|
1062
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
1063
|
+
*/
|
|
1064
|
+
annotator?: UpdateDatapointEvaluationsAnnotator | undefined;
|
|
1065
|
+
/**
|
|
1066
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
1067
|
+
*/
|
|
1068
|
+
outputSchema?: UpdateDatapointEvaluationsOutputSchema | undefined;
|
|
1069
|
+
/**
|
|
1070
|
+
* When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
|
|
1071
|
+
*/
|
|
1072
|
+
parentAnnotationId?: string | undefined;
|
|
1073
|
+
/**
|
|
1074
|
+
* Optional free-text explanation of the value
|
|
1075
|
+
*/
|
|
1076
|
+
explanation?: string | undefined;
|
|
1077
|
+
/**
|
|
1078
|
+
* Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
|
|
1079
|
+
*
|
|
1080
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
883
1081
|
*/
|
|
884
1082
|
reviewedById: string;
|
|
885
1083
|
/**
|
|
886
|
-
* The date and time the item was reviewed
|
|
1084
|
+
* Deprecated. The date and time the item was reviewed
|
|
1085
|
+
*
|
|
1086
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
887
1087
|
*/
|
|
888
1088
|
reviewedAt: Date;
|
|
889
1089
|
type: "string";
|
|
@@ -2365,6 +2565,48 @@ export const UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema:
|
|
|
2365
2565
|
z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsResponseSource> = z
|
|
2366
2566
|
.nativeEnum(UpdateDatapointEvaluationsDatasetsResponseSource);
|
|
2367
2567
|
|
|
2568
|
+
/** @internal */
|
|
2569
|
+
export const UpdateDatapointEvaluationsDatasetsResponseKind$inboundSchema:
|
|
2570
|
+
z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsResponseKind> = z
|
|
2571
|
+
.nativeEnum(UpdateDatapointEvaluationsDatasetsResponseKind);
|
|
2572
|
+
|
|
2573
|
+
/** @internal */
|
|
2574
|
+
export const UpdateDatapointEvaluationsDatasetsResponseAnnotator$inboundSchema:
|
|
2575
|
+
z.ZodType<
|
|
2576
|
+
UpdateDatapointEvaluationsDatasetsResponseAnnotator,
|
|
2577
|
+
z.ZodTypeDef,
|
|
2578
|
+
unknown
|
|
2579
|
+
> = z.object({
|
|
2580
|
+
kind: UpdateDatapointEvaluationsDatasetsResponseKind$inboundSchema,
|
|
2581
|
+
actor_id: z.string(),
|
|
2582
|
+
}).transform((v) => {
|
|
2583
|
+
return remap$(v, {
|
|
2584
|
+
"actor_id": "actorId",
|
|
2585
|
+
});
|
|
2586
|
+
});
|
|
2587
|
+
|
|
2588
|
+
export function updateDatapointEvaluationsDatasetsResponseAnnotatorFromJSON(
|
|
2589
|
+
jsonString: string,
|
|
2590
|
+
): SafeParseResult<
|
|
2591
|
+
UpdateDatapointEvaluationsDatasetsResponseAnnotator,
|
|
2592
|
+
SDKValidationError
|
|
2593
|
+
> {
|
|
2594
|
+
return safeParse(
|
|
2595
|
+
jsonString,
|
|
2596
|
+
(x) =>
|
|
2597
|
+
UpdateDatapointEvaluationsDatasetsResponseAnnotator$inboundSchema.parse(
|
|
2598
|
+
JSON.parse(x),
|
|
2599
|
+
),
|
|
2600
|
+
`Failed to parse 'UpdateDatapointEvaluationsDatasetsResponseAnnotator' from JSON`,
|
|
2601
|
+
);
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
/** @internal */
|
|
2605
|
+
export const UpdateDatapointEvaluationsDatasetsResponseOutputSchema$inboundSchema:
|
|
2606
|
+
z.ZodNativeEnum<
|
|
2607
|
+
typeof UpdateDatapointEvaluationsDatasetsResponseOutputSchema
|
|
2608
|
+
> = z.nativeEnum(UpdateDatapointEvaluationsDatasetsResponseOutputSchema);
|
|
2609
|
+
|
|
2368
2610
|
/** @internal */
|
|
2369
2611
|
export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
2370
2612
|
UpdateDatapointEvaluations3,
|
|
@@ -2374,12 +2616,20 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2374
2616
|
id: z.string(),
|
|
2375
2617
|
evaluation_type:
|
|
2376
2618
|
UpdateDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema,
|
|
2377
|
-
human_review_id: z.string(),
|
|
2619
|
+
human_review_id: z.string().optional(),
|
|
2378
2620
|
source: UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema
|
|
2379
2621
|
.default("orq"),
|
|
2622
|
+
annotator: z.lazy(() =>
|
|
2623
|
+
UpdateDatapointEvaluationsDatasetsResponseAnnotator$inboundSchema
|
|
2624
|
+
).optional(),
|
|
2625
|
+
output_schema:
|
|
2626
|
+
UpdateDatapointEvaluationsDatasetsResponseOutputSchema$inboundSchema
|
|
2627
|
+
.optional(),
|
|
2628
|
+
parent_annotation_id: z.string().optional(),
|
|
2629
|
+
explanation: z.string().optional(),
|
|
2380
2630
|
reviewed_by_id: z.string(),
|
|
2381
2631
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2382
|
-
"2026-06-
|
|
2632
|
+
"2026-06-17T11:59:37.001Z",
|
|
2383
2633
|
).transform(v => new Date(v)),
|
|
2384
2634
|
type: z.literal("string_array"),
|
|
2385
2635
|
values: z.array(z.string()),
|
|
@@ -2387,6 +2637,8 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2387
2637
|
return remap$(v, {
|
|
2388
2638
|
"evaluation_type": "evaluationType",
|
|
2389
2639
|
"human_review_id": "humanReviewId",
|
|
2640
|
+
"output_schema": "outputSchema",
|
|
2641
|
+
"parent_annotation_id": "parentAnnotationId",
|
|
2390
2642
|
"reviewed_by_id": "reviewedById",
|
|
2391
2643
|
"reviewed_at": "reviewedAt",
|
|
2392
2644
|
});
|
|
@@ -2412,6 +2664,48 @@ export const UpdateDatapointEvaluationsDatasetsSource$inboundSchema:
|
|
|
2412
2664
|
z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsSource> = z
|
|
2413
2665
|
.nativeEnum(UpdateDatapointEvaluationsDatasetsSource);
|
|
2414
2666
|
|
|
2667
|
+
/** @internal */
|
|
2668
|
+
export const UpdateDatapointEvaluationsDatasetsKind$inboundSchema:
|
|
2669
|
+
z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsKind> = z.nativeEnum(
|
|
2670
|
+
UpdateDatapointEvaluationsDatasetsKind,
|
|
2671
|
+
);
|
|
2672
|
+
|
|
2673
|
+
/** @internal */
|
|
2674
|
+
export const UpdateDatapointEvaluationsDatasetsAnnotator$inboundSchema:
|
|
2675
|
+
z.ZodType<
|
|
2676
|
+
UpdateDatapointEvaluationsDatasetsAnnotator,
|
|
2677
|
+
z.ZodTypeDef,
|
|
2678
|
+
unknown
|
|
2679
|
+
> = z.object({
|
|
2680
|
+
kind: UpdateDatapointEvaluationsDatasetsKind$inboundSchema,
|
|
2681
|
+
actor_id: z.string(),
|
|
2682
|
+
}).transform((v) => {
|
|
2683
|
+
return remap$(v, {
|
|
2684
|
+
"actor_id": "actorId",
|
|
2685
|
+
});
|
|
2686
|
+
});
|
|
2687
|
+
|
|
2688
|
+
export function updateDatapointEvaluationsDatasetsAnnotatorFromJSON(
|
|
2689
|
+
jsonString: string,
|
|
2690
|
+
): SafeParseResult<
|
|
2691
|
+
UpdateDatapointEvaluationsDatasetsAnnotator,
|
|
2692
|
+
SDKValidationError
|
|
2693
|
+
> {
|
|
2694
|
+
return safeParse(
|
|
2695
|
+
jsonString,
|
|
2696
|
+
(x) =>
|
|
2697
|
+
UpdateDatapointEvaluationsDatasetsAnnotator$inboundSchema.parse(
|
|
2698
|
+
JSON.parse(x),
|
|
2699
|
+
),
|
|
2700
|
+
`Failed to parse 'UpdateDatapointEvaluationsDatasetsAnnotator' from JSON`,
|
|
2701
|
+
);
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
/** @internal */
|
|
2705
|
+
export const UpdateDatapointEvaluationsDatasetsOutputSchema$inboundSchema:
|
|
2706
|
+
z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsOutputSchema> = z
|
|
2707
|
+
.nativeEnum(UpdateDatapointEvaluationsDatasetsOutputSchema);
|
|
2708
|
+
|
|
2415
2709
|
/** @internal */
|
|
2416
2710
|
export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
2417
2711
|
UpdateDatapointEvaluations2,
|
|
@@ -2421,11 +2715,18 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2421
2715
|
id: z.string(),
|
|
2422
2716
|
evaluation_type:
|
|
2423
2717
|
UpdateDatapointEvaluationsDatasetsEvaluationType$inboundSchema,
|
|
2424
|
-
human_review_id: z.string(),
|
|
2718
|
+
human_review_id: z.string().optional(),
|
|
2425
2719
|
source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
2720
|
+
annotator: z.lazy(() =>
|
|
2721
|
+
UpdateDatapointEvaluationsDatasetsAnnotator$inboundSchema
|
|
2722
|
+
).optional(),
|
|
2723
|
+
output_schema: UpdateDatapointEvaluationsDatasetsOutputSchema$inboundSchema
|
|
2724
|
+
.optional(),
|
|
2725
|
+
parent_annotation_id: z.string().optional(),
|
|
2726
|
+
explanation: z.string().optional(),
|
|
2426
2727
|
reviewed_by_id: z.string(),
|
|
2427
2728
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2428
|
-
"2026-06-
|
|
2729
|
+
"2026-06-17T11:59:37.000Z",
|
|
2429
2730
|
).transform(v => new Date(v)),
|
|
2430
2731
|
type: z.literal("number"),
|
|
2431
2732
|
value: z.number(),
|
|
@@ -2433,6 +2734,8 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2433
2734
|
return remap$(v, {
|
|
2434
2735
|
"evaluation_type": "evaluationType",
|
|
2435
2736
|
"human_review_id": "humanReviewId",
|
|
2737
|
+
"output_schema": "outputSchema",
|
|
2738
|
+
"parent_annotation_id": "parentAnnotationId",
|
|
2436
2739
|
"reviewed_by_id": "reviewedById",
|
|
2437
2740
|
"reviewed_at": "reviewedAt",
|
|
2438
2741
|
});
|
|
@@ -2458,6 +2761,42 @@ export const UpdateDatapointEvaluationsSource$inboundSchema: z.ZodNativeEnum<
|
|
|
2458
2761
|
typeof UpdateDatapointEvaluationsSource
|
|
2459
2762
|
> = z.nativeEnum(UpdateDatapointEvaluationsSource);
|
|
2460
2763
|
|
|
2764
|
+
/** @internal */
|
|
2765
|
+
export const UpdateDatapointEvaluationsKind$inboundSchema: z.ZodNativeEnum<
|
|
2766
|
+
typeof UpdateDatapointEvaluationsKind
|
|
2767
|
+
> = z.nativeEnum(UpdateDatapointEvaluationsKind);
|
|
2768
|
+
|
|
2769
|
+
/** @internal */
|
|
2770
|
+
export const UpdateDatapointEvaluationsAnnotator$inboundSchema: z.ZodType<
|
|
2771
|
+
UpdateDatapointEvaluationsAnnotator,
|
|
2772
|
+
z.ZodTypeDef,
|
|
2773
|
+
unknown
|
|
2774
|
+
> = z.object({
|
|
2775
|
+
kind: UpdateDatapointEvaluationsKind$inboundSchema,
|
|
2776
|
+
actor_id: z.string(),
|
|
2777
|
+
}).transform((v) => {
|
|
2778
|
+
return remap$(v, {
|
|
2779
|
+
"actor_id": "actorId",
|
|
2780
|
+
});
|
|
2781
|
+
});
|
|
2782
|
+
|
|
2783
|
+
export function updateDatapointEvaluationsAnnotatorFromJSON(
|
|
2784
|
+
jsonString: string,
|
|
2785
|
+
): SafeParseResult<UpdateDatapointEvaluationsAnnotator, SDKValidationError> {
|
|
2786
|
+
return safeParse(
|
|
2787
|
+
jsonString,
|
|
2788
|
+
(x) =>
|
|
2789
|
+
UpdateDatapointEvaluationsAnnotator$inboundSchema.parse(JSON.parse(x)),
|
|
2790
|
+
`Failed to parse 'UpdateDatapointEvaluationsAnnotator' from JSON`,
|
|
2791
|
+
);
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
/** @internal */
|
|
2795
|
+
export const UpdateDatapointEvaluationsOutputSchema$inboundSchema:
|
|
2796
|
+
z.ZodNativeEnum<typeof UpdateDatapointEvaluationsOutputSchema> = z.nativeEnum(
|
|
2797
|
+
UpdateDatapointEvaluationsOutputSchema,
|
|
2798
|
+
);
|
|
2799
|
+
|
|
2461
2800
|
/** @internal */
|
|
2462
2801
|
export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
2463
2802
|
UpdateDatapointEvaluations1,
|
|
@@ -2466,11 +2805,17 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2466
2805
|
> = z.object({
|
|
2467
2806
|
id: z.string(),
|
|
2468
2807
|
evaluation_type: UpdateDatapointEvaluationsEvaluationType$inboundSchema,
|
|
2469
|
-
human_review_id: z.string(),
|
|
2808
|
+
human_review_id: z.string().optional(),
|
|
2470
2809
|
source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2810
|
+
annotator: z.lazy(() => UpdateDatapointEvaluationsAnnotator$inboundSchema)
|
|
2811
|
+
.optional(),
|
|
2812
|
+
output_schema: UpdateDatapointEvaluationsOutputSchema$inboundSchema
|
|
2813
|
+
.optional(),
|
|
2814
|
+
parent_annotation_id: z.string().optional(),
|
|
2815
|
+
explanation: z.string().optional(),
|
|
2471
2816
|
reviewed_by_id: z.string(),
|
|
2472
2817
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2473
|
-
"2026-06-
|
|
2818
|
+
"2026-06-17T11:59:36.999Z",
|
|
2474
2819
|
).transform(v => new Date(v)),
|
|
2475
2820
|
type: z.literal("string"),
|
|
2476
2821
|
value: z.string(),
|
|
@@ -2478,6 +2823,8 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2478
2823
|
return remap$(v, {
|
|
2479
2824
|
"evaluation_type": "evaluationType",
|
|
2480
2825
|
"human_review_id": "humanReviewId",
|
|
2826
|
+
"output_schema": "outputSchema",
|
|
2827
|
+
"parent_annotation_id": "parentAnnotationId",
|
|
2481
2828
|
"reviewed_by_id": "reviewedById",
|
|
2482
2829
|
"reviewed_at": "reviewedAt",
|
|
2483
2830
|
});
|
|
@@ -2551,7 +2898,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2551
2898
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2552
2899
|
.optional(),
|
|
2553
2900
|
updated: z.string().datetime({ offset: true }).default(
|
|
2554
|
-
"2026-06-
|
|
2901
|
+
"2026-06-17T11:59:16.603Z",
|
|
2555
2902
|
).transform(v => new Date(v)),
|
|
2556
2903
|
}).transform((v) => {
|
|
2557
2904
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-06-
|
|
185
|
+
"2026-06-17T11:59:16.603Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|