@orq-ai/node 3.13.4 → 3.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -93
- package/bin/mcp-server.js +1618 -1100
- package/bin/mcp-server.js.map +50 -46
- package/docs/sdks/agents/README.md +95 -20
- package/examples/package-lock.json +1 -1
- package/funcs/agentsListTasks.d.ts +18 -0
- package/funcs/agentsListTasks.d.ts.map +1 -0
- package/funcs/agentsListTasks.js +130 -0
- package/funcs/agentsListTasks.js.map +1 -0
- package/funcs/agentsRetrieve.d.ts +1 -1
- package/funcs/agentsRetrieve.js +3 -3
- package/funcs/agentsRetrieve.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +4 -2
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/agentsListTasks.d.ts +8 -0
- package/mcp-server/tools/agentsListTasks.d.ts.map +1 -0
- package/mcp-server/tools/agentsListTasks.js +64 -0
- package/mcp-server/tools/agentsListTasks.js.map +1 -0
- package/mcp-server/tools/agentsRetrieve.js +1 -1
- package/mcp-server/tools/agentsRetrieve.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/listagenttasks.d.ts +41 -0
- package/models/errors/listagenttasks.d.ts.map +1 -0
- package/models/errors/listagenttasks.js +85 -0
- package/models/errors/listagenttasks.js.map +1 -0
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +14 -14
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +7 -7
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +16 -8
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listagents.d.ts +4 -4
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +6 -6
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +523 -0
- package/models/operations/listagenttasks.d.ts.map +1 -0
- package/models/operations/listagenttasks.js +609 -0
- package/models/operations/listagenttasks.js.map +1 -0
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listchunks.d.ts +13 -13
- package/models/operations/listchunks.d.ts.map +1 -1
- package/models/operations/listchunks.js +16 -16
- package/models/operations/listchunks.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.d.ts +13 -13
- package/models/operations/listdatasources.d.ts.map +1 -1
- package/models/operations/listdatasources.js +18 -19
- package/models/operations/listdatasources.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/packages/orq-rc/README.md +96 -93
- package/packages/orq-rc/docs/sdks/agents/README.md +95 -20
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +183 -0
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +3 -3
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +4 -2
- package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +1 -1
- package/packages/orq-rc/src/models/errors/index.ts +1 -0
- package/packages/orq-rc/src/models/errors/listagenttasks.ts +80 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +6 -6
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +701 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +23 -15
- package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +1 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +10 -10
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +1099 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listchunks.ts +21 -21
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +785 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +6 -6
- package/packages/orq-rc/src/models/operations/listdatasources.ts +29 -22
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +767 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +6 -6
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +763 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +6 -22
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
- package/packages/orq-rc/src/sdk/agents.ts +25 -7
- package/sdk/agents.d.ts +11 -4
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +15 -5
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsListTasks.ts +183 -0
- package/src/funcs/agentsRetrieve.ts +3 -3
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +4 -2
- package/src/mcp-server/tools/agentsListTasks.ts +37 -0
- package/src/mcp-server/tools/agentsRetrieve.ts +1 -1
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/listagenttasks.ts +80 -0
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +14 -14
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagent.ts +23 -15
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listagents.ts +10 -10
- package/src/models/operations/listagenttasks.ts +1099 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listchunks.ts +21 -21
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +29 -22
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/agents.ts +25 -7
|
@@ -527,6 +527,175 @@ export type ListDatasetDatapointsMessages =
|
|
|
527
527
|
| ListDatasetDatapointsMessagesUserMessage
|
|
528
528
|
| ListDatasetDatapointsMessagesAssistantMessage;
|
|
529
529
|
|
|
530
|
+
/**
|
|
531
|
+
* The type of evaluation
|
|
532
|
+
*/
|
|
533
|
+
export const ListDatasetDatapointsEvaluationsEvaluationType = {
|
|
534
|
+
HumanReview: "human_review",
|
|
535
|
+
} as const;
|
|
536
|
+
/**
|
|
537
|
+
* The type of evaluation
|
|
538
|
+
*/
|
|
539
|
+
export type ListDatasetDatapointsEvaluationsEvaluationType = ClosedEnum<
|
|
540
|
+
typeof ListDatasetDatapointsEvaluationsEvaluationType
|
|
541
|
+
>;
|
|
542
|
+
|
|
543
|
+
export const ListDatasetDatapointsEvaluationsSource = {
|
|
544
|
+
Orq: "orq",
|
|
545
|
+
External: "external",
|
|
546
|
+
} as const;
|
|
547
|
+
export type ListDatasetDatapointsEvaluationsSource = ClosedEnum<
|
|
548
|
+
typeof ListDatasetDatapointsEvaluationsSource
|
|
549
|
+
>;
|
|
550
|
+
|
|
551
|
+
export const ListDatasetDatapointsEvaluationsDatasetsType = {
|
|
552
|
+
StringArray: "string_array",
|
|
553
|
+
} as const;
|
|
554
|
+
export type ListDatasetDatapointsEvaluationsDatasetsType = ClosedEnum<
|
|
555
|
+
typeof ListDatasetDatapointsEvaluationsDatasetsType
|
|
556
|
+
>;
|
|
557
|
+
|
|
558
|
+
export type ListDatasetDatapointsEvaluations3 = {
|
|
559
|
+
/**
|
|
560
|
+
* The unique identifier of the human evaluation
|
|
561
|
+
*/
|
|
562
|
+
id: string;
|
|
563
|
+
/**
|
|
564
|
+
* The type of evaluation
|
|
565
|
+
*/
|
|
566
|
+
evaluationType: ListDatasetDatapointsEvaluationsEvaluationType;
|
|
567
|
+
/**
|
|
568
|
+
* The unique identifier of the human review
|
|
569
|
+
*/
|
|
570
|
+
humanReviewId: string;
|
|
571
|
+
source?: ListDatasetDatapointsEvaluationsSource | undefined;
|
|
572
|
+
/**
|
|
573
|
+
* The unique identifier of the user who reviewed the item
|
|
574
|
+
*/
|
|
575
|
+
reviewedById: string;
|
|
576
|
+
/**
|
|
577
|
+
* The date and time the item was reviewed
|
|
578
|
+
*/
|
|
579
|
+
reviewedAt?: Date | undefined;
|
|
580
|
+
type: ListDatasetDatapointsEvaluationsDatasetsType;
|
|
581
|
+
values: Array<string>;
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* The type of evaluation
|
|
586
|
+
*/
|
|
587
|
+
export const ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType = {
|
|
588
|
+
HumanReview: "human_review",
|
|
589
|
+
} as const;
|
|
590
|
+
/**
|
|
591
|
+
* The type of evaluation
|
|
592
|
+
*/
|
|
593
|
+
export type ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType =
|
|
594
|
+
ClosedEnum<
|
|
595
|
+
typeof ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType
|
|
596
|
+
>;
|
|
597
|
+
|
|
598
|
+
export const ListDatasetDatapointsEvaluationsDatasetsResponseSource = {
|
|
599
|
+
Orq: "orq",
|
|
600
|
+
External: "external",
|
|
601
|
+
} as const;
|
|
602
|
+
export type ListDatasetDatapointsEvaluationsDatasetsResponseSource = ClosedEnum<
|
|
603
|
+
typeof ListDatasetDatapointsEvaluationsDatasetsResponseSource
|
|
604
|
+
>;
|
|
605
|
+
|
|
606
|
+
export const ListDatasetDatapointsEvaluationsType = {
|
|
607
|
+
Number: "number",
|
|
608
|
+
} as const;
|
|
609
|
+
export type ListDatasetDatapointsEvaluationsType = ClosedEnum<
|
|
610
|
+
typeof ListDatasetDatapointsEvaluationsType
|
|
611
|
+
>;
|
|
612
|
+
|
|
613
|
+
export type ListDatasetDatapointsEvaluations2 = {
|
|
614
|
+
/**
|
|
615
|
+
* The unique identifier of the human evaluation
|
|
616
|
+
*/
|
|
617
|
+
id: string;
|
|
618
|
+
/**
|
|
619
|
+
* The type of evaluation
|
|
620
|
+
*/
|
|
621
|
+
evaluationType:
|
|
622
|
+
ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType;
|
|
623
|
+
/**
|
|
624
|
+
* The unique identifier of the human review
|
|
625
|
+
*/
|
|
626
|
+
humanReviewId: string;
|
|
627
|
+
source?: ListDatasetDatapointsEvaluationsDatasetsResponseSource | undefined;
|
|
628
|
+
/**
|
|
629
|
+
* The unique identifier of the user who reviewed the item
|
|
630
|
+
*/
|
|
631
|
+
reviewedById: string;
|
|
632
|
+
/**
|
|
633
|
+
* The date and time the item was reviewed
|
|
634
|
+
*/
|
|
635
|
+
reviewedAt?: Date | undefined;
|
|
636
|
+
type: ListDatasetDatapointsEvaluationsType;
|
|
637
|
+
value: number;
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* The type of evaluation
|
|
642
|
+
*/
|
|
643
|
+
export const ListDatasetDatapointsEvaluationsDatasetsEvaluationType = {
|
|
644
|
+
HumanReview: "human_review",
|
|
645
|
+
} as const;
|
|
646
|
+
/**
|
|
647
|
+
* The type of evaluation
|
|
648
|
+
*/
|
|
649
|
+
export type ListDatasetDatapointsEvaluationsDatasetsEvaluationType = ClosedEnum<
|
|
650
|
+
typeof ListDatasetDatapointsEvaluationsDatasetsEvaluationType
|
|
651
|
+
>;
|
|
652
|
+
|
|
653
|
+
export const ListDatasetDatapointsEvaluationsDatasetsSource = {
|
|
654
|
+
Orq: "orq",
|
|
655
|
+
External: "external",
|
|
656
|
+
} as const;
|
|
657
|
+
export type ListDatasetDatapointsEvaluationsDatasetsSource = ClosedEnum<
|
|
658
|
+
typeof ListDatasetDatapointsEvaluationsDatasetsSource
|
|
659
|
+
>;
|
|
660
|
+
|
|
661
|
+
export const ListDatasetDatapointsEvaluationsDatasetsResponseType = {
|
|
662
|
+
String: "string",
|
|
663
|
+
} as const;
|
|
664
|
+
export type ListDatasetDatapointsEvaluationsDatasetsResponseType = ClosedEnum<
|
|
665
|
+
typeof ListDatasetDatapointsEvaluationsDatasetsResponseType
|
|
666
|
+
>;
|
|
667
|
+
|
|
668
|
+
export type ListDatasetDatapointsEvaluations1 = {
|
|
669
|
+
/**
|
|
670
|
+
* The unique identifier of the human evaluation
|
|
671
|
+
*/
|
|
672
|
+
id: string;
|
|
673
|
+
/**
|
|
674
|
+
* The type of evaluation
|
|
675
|
+
*/
|
|
676
|
+
evaluationType: ListDatasetDatapointsEvaluationsDatasetsEvaluationType;
|
|
677
|
+
/**
|
|
678
|
+
* The unique identifier of the human review
|
|
679
|
+
*/
|
|
680
|
+
humanReviewId: string;
|
|
681
|
+
source?: ListDatasetDatapointsEvaluationsDatasetsSource | undefined;
|
|
682
|
+
/**
|
|
683
|
+
* The unique identifier of the user who reviewed the item
|
|
684
|
+
*/
|
|
685
|
+
reviewedById: string;
|
|
686
|
+
/**
|
|
687
|
+
* The date and time the item was reviewed
|
|
688
|
+
*/
|
|
689
|
+
reviewedAt?: Date | undefined;
|
|
690
|
+
type: ListDatasetDatapointsEvaluationsDatasetsResponseType;
|
|
691
|
+
value: string;
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
export type ListDatasetDatapointsEvaluations =
|
|
695
|
+
| ListDatasetDatapointsEvaluations1
|
|
696
|
+
| ListDatasetDatapointsEvaluations2
|
|
697
|
+
| ListDatasetDatapointsEvaluations3;
|
|
698
|
+
|
|
530
699
|
export type ListDatasetDatapointsData = {
|
|
531
700
|
/**
|
|
532
701
|
* The unique identifier of the dataset item
|
|
@@ -553,10 +722,24 @@ export type ListDatasetDatapointsData = {
|
|
|
553
722
|
>
|
|
554
723
|
| undefined;
|
|
555
724
|
expectedOutput?: string | undefined;
|
|
725
|
+
/**
|
|
726
|
+
* Evaluations associated with the datapoint
|
|
727
|
+
*/
|
|
728
|
+
evaluations?:
|
|
729
|
+
| Array<
|
|
730
|
+
| ListDatasetDatapointsEvaluations1
|
|
731
|
+
| ListDatasetDatapointsEvaluations2
|
|
732
|
+
| ListDatasetDatapointsEvaluations3
|
|
733
|
+
>
|
|
734
|
+
| undefined;
|
|
556
735
|
/**
|
|
557
736
|
* The unique identifier of the dataset
|
|
558
737
|
*/
|
|
559
738
|
datasetId: string;
|
|
739
|
+
/**
|
|
740
|
+
* The version of the dataset snapshot
|
|
741
|
+
*/
|
|
742
|
+
snapshotVersion?: string | undefined;
|
|
560
743
|
/**
|
|
561
744
|
* The unique identifier of the user who created the dataset
|
|
562
745
|
*/
|
|
@@ -3074,6 +3257,580 @@ export function listDatasetDatapointsMessagesFromJSON(
|
|
|
3074
3257
|
);
|
|
3075
3258
|
}
|
|
3076
3259
|
|
|
3260
|
+
/** @internal */
|
|
3261
|
+
export const ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema:
|
|
3262
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsEvaluationType> = z
|
|
3263
|
+
.nativeEnum(ListDatasetDatapointsEvaluationsEvaluationType);
|
|
3264
|
+
|
|
3265
|
+
/** @internal */
|
|
3266
|
+
export const ListDatasetDatapointsEvaluationsEvaluationType$outboundSchema:
|
|
3267
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsEvaluationType> =
|
|
3268
|
+
ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema;
|
|
3269
|
+
|
|
3270
|
+
/**
|
|
3271
|
+
* @internal
|
|
3272
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3273
|
+
*/
|
|
3274
|
+
export namespace ListDatasetDatapointsEvaluationsEvaluationType$ {
|
|
3275
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema` instead. */
|
|
3276
|
+
export const inboundSchema =
|
|
3277
|
+
ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema;
|
|
3278
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsEvaluationType$outboundSchema` instead. */
|
|
3279
|
+
export const outboundSchema =
|
|
3280
|
+
ListDatasetDatapointsEvaluationsEvaluationType$outboundSchema;
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
/** @internal */
|
|
3284
|
+
export const ListDatasetDatapointsEvaluationsSource$inboundSchema:
|
|
3285
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsSource> = z.nativeEnum(
|
|
3286
|
+
ListDatasetDatapointsEvaluationsSource,
|
|
3287
|
+
);
|
|
3288
|
+
|
|
3289
|
+
/** @internal */
|
|
3290
|
+
export const ListDatasetDatapointsEvaluationsSource$outboundSchema:
|
|
3291
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsSource> =
|
|
3292
|
+
ListDatasetDatapointsEvaluationsSource$inboundSchema;
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
* @internal
|
|
3296
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3297
|
+
*/
|
|
3298
|
+
export namespace ListDatasetDatapointsEvaluationsSource$ {
|
|
3299
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsSource$inboundSchema` instead. */
|
|
3300
|
+
export const inboundSchema =
|
|
3301
|
+
ListDatasetDatapointsEvaluationsSource$inboundSchema;
|
|
3302
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsSource$outboundSchema` instead. */
|
|
3303
|
+
export const outboundSchema =
|
|
3304
|
+
ListDatasetDatapointsEvaluationsSource$outboundSchema;
|
|
3305
|
+
}
|
|
3306
|
+
|
|
3307
|
+
/** @internal */
|
|
3308
|
+
export const ListDatasetDatapointsEvaluationsDatasetsType$inboundSchema:
|
|
3309
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsDatasetsType> = z
|
|
3310
|
+
.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsType);
|
|
3311
|
+
|
|
3312
|
+
/** @internal */
|
|
3313
|
+
export const ListDatasetDatapointsEvaluationsDatasetsType$outboundSchema:
|
|
3314
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsDatasetsType> =
|
|
3315
|
+
ListDatasetDatapointsEvaluationsDatasetsType$inboundSchema;
|
|
3316
|
+
|
|
3317
|
+
/**
|
|
3318
|
+
* @internal
|
|
3319
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3320
|
+
*/
|
|
3321
|
+
export namespace ListDatasetDatapointsEvaluationsDatasetsType$ {
|
|
3322
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsDatasetsType$inboundSchema` instead. */
|
|
3323
|
+
export const inboundSchema =
|
|
3324
|
+
ListDatasetDatapointsEvaluationsDatasetsType$inboundSchema;
|
|
3325
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsDatasetsType$outboundSchema` instead. */
|
|
3326
|
+
export const outboundSchema =
|
|
3327
|
+
ListDatasetDatapointsEvaluationsDatasetsType$outboundSchema;
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3330
|
+
/** @internal */
|
|
3331
|
+
export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
3332
|
+
ListDatasetDatapointsEvaluations3,
|
|
3333
|
+
z.ZodTypeDef,
|
|
3334
|
+
unknown
|
|
3335
|
+
> = z.object({
|
|
3336
|
+
id: z.string(),
|
|
3337
|
+
evaluation_type: ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema,
|
|
3338
|
+
human_review_id: z.string(),
|
|
3339
|
+
source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
|
|
3340
|
+
reviewed_by_id: z.string(),
|
|
3341
|
+
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3342
|
+
"2025-10-06T13:58:43.148Z",
|
|
3343
|
+
).transform(v => new Date(v)),
|
|
3344
|
+
type: ListDatasetDatapointsEvaluationsDatasetsType$inboundSchema,
|
|
3345
|
+
values: z.array(z.string()),
|
|
3346
|
+
}).transform((v) => {
|
|
3347
|
+
return remap$(v, {
|
|
3348
|
+
"evaluation_type": "evaluationType",
|
|
3349
|
+
"human_review_id": "humanReviewId",
|
|
3350
|
+
"reviewed_by_id": "reviewedById",
|
|
3351
|
+
"reviewed_at": "reviewedAt",
|
|
3352
|
+
});
|
|
3353
|
+
});
|
|
3354
|
+
|
|
3355
|
+
/** @internal */
|
|
3356
|
+
export type ListDatasetDatapointsEvaluations3$Outbound = {
|
|
3357
|
+
id: string;
|
|
3358
|
+
evaluation_type: string;
|
|
3359
|
+
human_review_id: string;
|
|
3360
|
+
source: string;
|
|
3361
|
+
reviewed_by_id: string;
|
|
3362
|
+
reviewed_at: string;
|
|
3363
|
+
type: string;
|
|
3364
|
+
values: Array<string>;
|
|
3365
|
+
};
|
|
3366
|
+
|
|
3367
|
+
/** @internal */
|
|
3368
|
+
export const ListDatasetDatapointsEvaluations3$outboundSchema: z.ZodType<
|
|
3369
|
+
ListDatasetDatapointsEvaluations3$Outbound,
|
|
3370
|
+
z.ZodTypeDef,
|
|
3371
|
+
ListDatasetDatapointsEvaluations3
|
|
3372
|
+
> = z.object({
|
|
3373
|
+
id: z.string(),
|
|
3374
|
+
evaluationType: ListDatasetDatapointsEvaluationsEvaluationType$outboundSchema,
|
|
3375
|
+
humanReviewId: z.string(),
|
|
3376
|
+
source: ListDatasetDatapointsEvaluationsSource$outboundSchema.default("orq"),
|
|
3377
|
+
reviewedById: z.string(),
|
|
3378
|
+
reviewedAt: z.date().default(() => new Date("2025-10-06T13:58:43.148Z"))
|
|
3379
|
+
.transform(v => v.toISOString()),
|
|
3380
|
+
type: ListDatasetDatapointsEvaluationsDatasetsType$outboundSchema,
|
|
3381
|
+
values: z.array(z.string()),
|
|
3382
|
+
}).transform((v) => {
|
|
3383
|
+
return remap$(v, {
|
|
3384
|
+
evaluationType: "evaluation_type",
|
|
3385
|
+
humanReviewId: "human_review_id",
|
|
3386
|
+
reviewedById: "reviewed_by_id",
|
|
3387
|
+
reviewedAt: "reviewed_at",
|
|
3388
|
+
});
|
|
3389
|
+
});
|
|
3390
|
+
|
|
3391
|
+
/**
|
|
3392
|
+
* @internal
|
|
3393
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3394
|
+
*/
|
|
3395
|
+
export namespace ListDatasetDatapointsEvaluations3$ {
|
|
3396
|
+
/** @deprecated use `ListDatasetDatapointsEvaluations3$inboundSchema` instead. */
|
|
3397
|
+
export const inboundSchema = ListDatasetDatapointsEvaluations3$inboundSchema;
|
|
3398
|
+
/** @deprecated use `ListDatasetDatapointsEvaluations3$outboundSchema` instead. */
|
|
3399
|
+
export const outboundSchema =
|
|
3400
|
+
ListDatasetDatapointsEvaluations3$outboundSchema;
|
|
3401
|
+
/** @deprecated use `ListDatasetDatapointsEvaluations3$Outbound` instead. */
|
|
3402
|
+
export type Outbound = ListDatasetDatapointsEvaluations3$Outbound;
|
|
3403
|
+
}
|
|
3404
|
+
|
|
3405
|
+
export function listDatasetDatapointsEvaluations3ToJSON(
|
|
3406
|
+
listDatasetDatapointsEvaluations3: ListDatasetDatapointsEvaluations3,
|
|
3407
|
+
): string {
|
|
3408
|
+
return JSON.stringify(
|
|
3409
|
+
ListDatasetDatapointsEvaluations3$outboundSchema.parse(
|
|
3410
|
+
listDatasetDatapointsEvaluations3,
|
|
3411
|
+
),
|
|
3412
|
+
);
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
export function listDatasetDatapointsEvaluations3FromJSON(
|
|
3416
|
+
jsonString: string,
|
|
3417
|
+
): SafeParseResult<ListDatasetDatapointsEvaluations3, SDKValidationError> {
|
|
3418
|
+
return safeParse(
|
|
3419
|
+
jsonString,
|
|
3420
|
+
(x) => ListDatasetDatapointsEvaluations3$inboundSchema.parse(JSON.parse(x)),
|
|
3421
|
+
`Failed to parse 'ListDatasetDatapointsEvaluations3' from JSON`,
|
|
3422
|
+
);
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3425
|
+
/** @internal */
|
|
3426
|
+
export const ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema:
|
|
3427
|
+
z.ZodNativeEnum<
|
|
3428
|
+
typeof ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType
|
|
3429
|
+
> = z.nativeEnum(
|
|
3430
|
+
ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType,
|
|
3431
|
+
);
|
|
3432
|
+
|
|
3433
|
+
/** @internal */
|
|
3434
|
+
export const ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$outboundSchema:
|
|
3435
|
+
z.ZodNativeEnum<
|
|
3436
|
+
typeof ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType
|
|
3437
|
+
> =
|
|
3438
|
+
ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema;
|
|
3439
|
+
|
|
3440
|
+
/**
|
|
3441
|
+
* @internal
|
|
3442
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3443
|
+
*/
|
|
3444
|
+
export namespace ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$ {
|
|
3445
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema` instead. */
|
|
3446
|
+
export const inboundSchema =
|
|
3447
|
+
ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema;
|
|
3448
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$outboundSchema` instead. */
|
|
3449
|
+
export const outboundSchema =
|
|
3450
|
+
ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$outboundSchema;
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
/** @internal */
|
|
3454
|
+
export const ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema:
|
|
3455
|
+
z.ZodNativeEnum<
|
|
3456
|
+
typeof ListDatasetDatapointsEvaluationsDatasetsResponseSource
|
|
3457
|
+
> = z.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsResponseSource);
|
|
3458
|
+
|
|
3459
|
+
/** @internal */
|
|
3460
|
+
export const ListDatasetDatapointsEvaluationsDatasetsResponseSource$outboundSchema:
|
|
3461
|
+
z.ZodNativeEnum<
|
|
3462
|
+
typeof ListDatasetDatapointsEvaluationsDatasetsResponseSource
|
|
3463
|
+
> = ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema;
|
|
3464
|
+
|
|
3465
|
+
/**
|
|
3466
|
+
* @internal
|
|
3467
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3468
|
+
*/
|
|
3469
|
+
export namespace ListDatasetDatapointsEvaluationsDatasetsResponseSource$ {
|
|
3470
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema` instead. */
|
|
3471
|
+
export const inboundSchema =
|
|
3472
|
+
ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema;
|
|
3473
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsDatasetsResponseSource$outboundSchema` instead. */
|
|
3474
|
+
export const outboundSchema =
|
|
3475
|
+
ListDatasetDatapointsEvaluationsDatasetsResponseSource$outboundSchema;
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
/** @internal */
|
|
3479
|
+
export const ListDatasetDatapointsEvaluationsType$inboundSchema:
|
|
3480
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsType> = z.nativeEnum(
|
|
3481
|
+
ListDatasetDatapointsEvaluationsType,
|
|
3482
|
+
);
|
|
3483
|
+
|
|
3484
|
+
/** @internal */
|
|
3485
|
+
export const ListDatasetDatapointsEvaluationsType$outboundSchema:
|
|
3486
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsType> =
|
|
3487
|
+
ListDatasetDatapointsEvaluationsType$inboundSchema;
|
|
3488
|
+
|
|
3489
|
+
/**
|
|
3490
|
+
* @internal
|
|
3491
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3492
|
+
*/
|
|
3493
|
+
export namespace ListDatasetDatapointsEvaluationsType$ {
|
|
3494
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsType$inboundSchema` instead. */
|
|
3495
|
+
export const inboundSchema =
|
|
3496
|
+
ListDatasetDatapointsEvaluationsType$inboundSchema;
|
|
3497
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsType$outboundSchema` instead. */
|
|
3498
|
+
export const outboundSchema =
|
|
3499
|
+
ListDatasetDatapointsEvaluationsType$outboundSchema;
|
|
3500
|
+
}
|
|
3501
|
+
|
|
3502
|
+
/** @internal */
|
|
3503
|
+
export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
3504
|
+
ListDatasetDatapointsEvaluations2,
|
|
3505
|
+
z.ZodTypeDef,
|
|
3506
|
+
unknown
|
|
3507
|
+
> = z.object({
|
|
3508
|
+
id: z.string(),
|
|
3509
|
+
evaluation_type:
|
|
3510
|
+
ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema,
|
|
3511
|
+
human_review_id: z.string(),
|
|
3512
|
+
source: ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema
|
|
3513
|
+
.default("orq"),
|
|
3514
|
+
reviewed_by_id: z.string(),
|
|
3515
|
+
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3516
|
+
"2025-10-06T13:58:43.147Z",
|
|
3517
|
+
).transform(v => new Date(v)),
|
|
3518
|
+
type: ListDatasetDatapointsEvaluationsType$inboundSchema,
|
|
3519
|
+
value: z.number(),
|
|
3520
|
+
}).transform((v) => {
|
|
3521
|
+
return remap$(v, {
|
|
3522
|
+
"evaluation_type": "evaluationType",
|
|
3523
|
+
"human_review_id": "humanReviewId",
|
|
3524
|
+
"reviewed_by_id": "reviewedById",
|
|
3525
|
+
"reviewed_at": "reviewedAt",
|
|
3526
|
+
});
|
|
3527
|
+
});
|
|
3528
|
+
|
|
3529
|
+
/** @internal */
|
|
3530
|
+
export type ListDatasetDatapointsEvaluations2$Outbound = {
|
|
3531
|
+
id: string;
|
|
3532
|
+
evaluation_type: string;
|
|
3533
|
+
human_review_id: string;
|
|
3534
|
+
source: string;
|
|
3535
|
+
reviewed_by_id: string;
|
|
3536
|
+
reviewed_at: string;
|
|
3537
|
+
type: string;
|
|
3538
|
+
value: number;
|
|
3539
|
+
};
|
|
3540
|
+
|
|
3541
|
+
/** @internal */
|
|
3542
|
+
export const ListDatasetDatapointsEvaluations2$outboundSchema: z.ZodType<
|
|
3543
|
+
ListDatasetDatapointsEvaluations2$Outbound,
|
|
3544
|
+
z.ZodTypeDef,
|
|
3545
|
+
ListDatasetDatapointsEvaluations2
|
|
3546
|
+
> = z.object({
|
|
3547
|
+
id: z.string(),
|
|
3548
|
+
evaluationType:
|
|
3549
|
+
ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$outboundSchema,
|
|
3550
|
+
humanReviewId: z.string(),
|
|
3551
|
+
source: ListDatasetDatapointsEvaluationsDatasetsResponseSource$outboundSchema
|
|
3552
|
+
.default("orq"),
|
|
3553
|
+
reviewedById: z.string(),
|
|
3554
|
+
reviewedAt: z.date().default(() => new Date("2025-10-06T13:58:43.147Z"))
|
|
3555
|
+
.transform(v => v.toISOString()),
|
|
3556
|
+
type: ListDatasetDatapointsEvaluationsType$outboundSchema,
|
|
3557
|
+
value: z.number(),
|
|
3558
|
+
}).transform((v) => {
|
|
3559
|
+
return remap$(v, {
|
|
3560
|
+
evaluationType: "evaluation_type",
|
|
3561
|
+
humanReviewId: "human_review_id",
|
|
3562
|
+
reviewedById: "reviewed_by_id",
|
|
3563
|
+
reviewedAt: "reviewed_at",
|
|
3564
|
+
});
|
|
3565
|
+
});
|
|
3566
|
+
|
|
3567
|
+
/**
|
|
3568
|
+
* @internal
|
|
3569
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3570
|
+
*/
|
|
3571
|
+
export namespace ListDatasetDatapointsEvaluations2$ {
|
|
3572
|
+
/** @deprecated use `ListDatasetDatapointsEvaluations2$inboundSchema` instead. */
|
|
3573
|
+
export const inboundSchema = ListDatasetDatapointsEvaluations2$inboundSchema;
|
|
3574
|
+
/** @deprecated use `ListDatasetDatapointsEvaluations2$outboundSchema` instead. */
|
|
3575
|
+
export const outboundSchema =
|
|
3576
|
+
ListDatasetDatapointsEvaluations2$outboundSchema;
|
|
3577
|
+
/** @deprecated use `ListDatasetDatapointsEvaluations2$Outbound` instead. */
|
|
3578
|
+
export type Outbound = ListDatasetDatapointsEvaluations2$Outbound;
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
export function listDatasetDatapointsEvaluations2ToJSON(
|
|
3582
|
+
listDatasetDatapointsEvaluations2: ListDatasetDatapointsEvaluations2,
|
|
3583
|
+
): string {
|
|
3584
|
+
return JSON.stringify(
|
|
3585
|
+
ListDatasetDatapointsEvaluations2$outboundSchema.parse(
|
|
3586
|
+
listDatasetDatapointsEvaluations2,
|
|
3587
|
+
),
|
|
3588
|
+
);
|
|
3589
|
+
}
|
|
3590
|
+
|
|
3591
|
+
export function listDatasetDatapointsEvaluations2FromJSON(
|
|
3592
|
+
jsonString: string,
|
|
3593
|
+
): SafeParseResult<ListDatasetDatapointsEvaluations2, SDKValidationError> {
|
|
3594
|
+
return safeParse(
|
|
3595
|
+
jsonString,
|
|
3596
|
+
(x) => ListDatasetDatapointsEvaluations2$inboundSchema.parse(JSON.parse(x)),
|
|
3597
|
+
`Failed to parse 'ListDatasetDatapointsEvaluations2' from JSON`,
|
|
3598
|
+
);
|
|
3599
|
+
}
|
|
3600
|
+
|
|
3601
|
+
/** @internal */
|
|
3602
|
+
export const ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema:
|
|
3603
|
+
z.ZodNativeEnum<
|
|
3604
|
+
typeof ListDatasetDatapointsEvaluationsDatasetsEvaluationType
|
|
3605
|
+
> = z.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsEvaluationType);
|
|
3606
|
+
|
|
3607
|
+
/** @internal */
|
|
3608
|
+
export const ListDatasetDatapointsEvaluationsDatasetsEvaluationType$outboundSchema:
|
|
3609
|
+
z.ZodNativeEnum<
|
|
3610
|
+
typeof ListDatasetDatapointsEvaluationsDatasetsEvaluationType
|
|
3611
|
+
> = ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema;
|
|
3612
|
+
|
|
3613
|
+
/**
|
|
3614
|
+
* @internal
|
|
3615
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3616
|
+
*/
|
|
3617
|
+
export namespace ListDatasetDatapointsEvaluationsDatasetsEvaluationType$ {
|
|
3618
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema` instead. */
|
|
3619
|
+
export const inboundSchema =
|
|
3620
|
+
ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema;
|
|
3621
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsDatasetsEvaluationType$outboundSchema` instead. */
|
|
3622
|
+
export const outboundSchema =
|
|
3623
|
+
ListDatasetDatapointsEvaluationsDatasetsEvaluationType$outboundSchema;
|
|
3624
|
+
}
|
|
3625
|
+
|
|
3626
|
+
/** @internal */
|
|
3627
|
+
export const ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema:
|
|
3628
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsDatasetsSource> = z
|
|
3629
|
+
.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsSource);
|
|
3630
|
+
|
|
3631
|
+
/** @internal */
|
|
3632
|
+
export const ListDatasetDatapointsEvaluationsDatasetsSource$outboundSchema:
|
|
3633
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsDatasetsSource> =
|
|
3634
|
+
ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema;
|
|
3635
|
+
|
|
3636
|
+
/**
|
|
3637
|
+
* @internal
|
|
3638
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3639
|
+
*/
|
|
3640
|
+
export namespace ListDatasetDatapointsEvaluationsDatasetsSource$ {
|
|
3641
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema` instead. */
|
|
3642
|
+
export const inboundSchema =
|
|
3643
|
+
ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema;
|
|
3644
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsDatasetsSource$outboundSchema` instead. */
|
|
3645
|
+
export const outboundSchema =
|
|
3646
|
+
ListDatasetDatapointsEvaluationsDatasetsSource$outboundSchema;
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3649
|
+
/** @internal */
|
|
3650
|
+
export const ListDatasetDatapointsEvaluationsDatasetsResponseType$inboundSchema:
|
|
3651
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsDatasetsResponseType> =
|
|
3652
|
+
z.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsResponseType);
|
|
3653
|
+
|
|
3654
|
+
/** @internal */
|
|
3655
|
+
export const ListDatasetDatapointsEvaluationsDatasetsResponseType$outboundSchema:
|
|
3656
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsDatasetsResponseType> =
|
|
3657
|
+
ListDatasetDatapointsEvaluationsDatasetsResponseType$inboundSchema;
|
|
3658
|
+
|
|
3659
|
+
/**
|
|
3660
|
+
* @internal
|
|
3661
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3662
|
+
*/
|
|
3663
|
+
export namespace ListDatasetDatapointsEvaluationsDatasetsResponseType$ {
|
|
3664
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsDatasetsResponseType$inboundSchema` instead. */
|
|
3665
|
+
export const inboundSchema =
|
|
3666
|
+
ListDatasetDatapointsEvaluationsDatasetsResponseType$inboundSchema;
|
|
3667
|
+
/** @deprecated use `ListDatasetDatapointsEvaluationsDatasetsResponseType$outboundSchema` instead. */
|
|
3668
|
+
export const outboundSchema =
|
|
3669
|
+
ListDatasetDatapointsEvaluationsDatasetsResponseType$outboundSchema;
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3672
|
+
/** @internal */
|
|
3673
|
+
export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
3674
|
+
ListDatasetDatapointsEvaluations1,
|
|
3675
|
+
z.ZodTypeDef,
|
|
3676
|
+
unknown
|
|
3677
|
+
> = z.object({
|
|
3678
|
+
id: z.string(),
|
|
3679
|
+
evaluation_type:
|
|
3680
|
+
ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema,
|
|
3681
|
+
human_review_id: z.string(),
|
|
3682
|
+
source: ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema.default(
|
|
3683
|
+
"orq",
|
|
3684
|
+
),
|
|
3685
|
+
reviewed_by_id: z.string(),
|
|
3686
|
+
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3687
|
+
"2025-10-06T13:58:43.147Z",
|
|
3688
|
+
).transform(v => new Date(v)),
|
|
3689
|
+
type: ListDatasetDatapointsEvaluationsDatasetsResponseType$inboundSchema,
|
|
3690
|
+
value: z.string(),
|
|
3691
|
+
}).transform((v) => {
|
|
3692
|
+
return remap$(v, {
|
|
3693
|
+
"evaluation_type": "evaluationType",
|
|
3694
|
+
"human_review_id": "humanReviewId",
|
|
3695
|
+
"reviewed_by_id": "reviewedById",
|
|
3696
|
+
"reviewed_at": "reviewedAt",
|
|
3697
|
+
});
|
|
3698
|
+
});
|
|
3699
|
+
|
|
3700
|
+
/** @internal */
|
|
3701
|
+
export type ListDatasetDatapointsEvaluations1$Outbound = {
|
|
3702
|
+
id: string;
|
|
3703
|
+
evaluation_type: string;
|
|
3704
|
+
human_review_id: string;
|
|
3705
|
+
source: string;
|
|
3706
|
+
reviewed_by_id: string;
|
|
3707
|
+
reviewed_at: string;
|
|
3708
|
+
type: string;
|
|
3709
|
+
value: string;
|
|
3710
|
+
};
|
|
3711
|
+
|
|
3712
|
+
/** @internal */
|
|
3713
|
+
export const ListDatasetDatapointsEvaluations1$outboundSchema: z.ZodType<
|
|
3714
|
+
ListDatasetDatapointsEvaluations1$Outbound,
|
|
3715
|
+
z.ZodTypeDef,
|
|
3716
|
+
ListDatasetDatapointsEvaluations1
|
|
3717
|
+
> = z.object({
|
|
3718
|
+
id: z.string(),
|
|
3719
|
+
evaluationType:
|
|
3720
|
+
ListDatasetDatapointsEvaluationsDatasetsEvaluationType$outboundSchema,
|
|
3721
|
+
humanReviewId: z.string(),
|
|
3722
|
+
source: ListDatasetDatapointsEvaluationsDatasetsSource$outboundSchema.default(
|
|
3723
|
+
"orq",
|
|
3724
|
+
),
|
|
3725
|
+
reviewedById: z.string(),
|
|
3726
|
+
reviewedAt: z.date().default(() => new Date("2025-10-06T13:58:43.147Z"))
|
|
3727
|
+
.transform(v => v.toISOString()),
|
|
3728
|
+
type: ListDatasetDatapointsEvaluationsDatasetsResponseType$outboundSchema,
|
|
3729
|
+
value: z.string(),
|
|
3730
|
+
}).transform((v) => {
|
|
3731
|
+
return remap$(v, {
|
|
3732
|
+
evaluationType: "evaluation_type",
|
|
3733
|
+
humanReviewId: "human_review_id",
|
|
3734
|
+
reviewedById: "reviewed_by_id",
|
|
3735
|
+
reviewedAt: "reviewed_at",
|
|
3736
|
+
});
|
|
3737
|
+
});
|
|
3738
|
+
|
|
3739
|
+
/**
|
|
3740
|
+
* @internal
|
|
3741
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3742
|
+
*/
|
|
3743
|
+
export namespace ListDatasetDatapointsEvaluations1$ {
|
|
3744
|
+
/** @deprecated use `ListDatasetDatapointsEvaluations1$inboundSchema` instead. */
|
|
3745
|
+
export const inboundSchema = ListDatasetDatapointsEvaluations1$inboundSchema;
|
|
3746
|
+
/** @deprecated use `ListDatasetDatapointsEvaluations1$outboundSchema` instead. */
|
|
3747
|
+
export const outboundSchema =
|
|
3748
|
+
ListDatasetDatapointsEvaluations1$outboundSchema;
|
|
3749
|
+
/** @deprecated use `ListDatasetDatapointsEvaluations1$Outbound` instead. */
|
|
3750
|
+
export type Outbound = ListDatasetDatapointsEvaluations1$Outbound;
|
|
3751
|
+
}
|
|
3752
|
+
|
|
3753
|
+
export function listDatasetDatapointsEvaluations1ToJSON(
|
|
3754
|
+
listDatasetDatapointsEvaluations1: ListDatasetDatapointsEvaluations1,
|
|
3755
|
+
): string {
|
|
3756
|
+
return JSON.stringify(
|
|
3757
|
+
ListDatasetDatapointsEvaluations1$outboundSchema.parse(
|
|
3758
|
+
listDatasetDatapointsEvaluations1,
|
|
3759
|
+
),
|
|
3760
|
+
);
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
export function listDatasetDatapointsEvaluations1FromJSON(
|
|
3764
|
+
jsonString: string,
|
|
3765
|
+
): SafeParseResult<ListDatasetDatapointsEvaluations1, SDKValidationError> {
|
|
3766
|
+
return safeParse(
|
|
3767
|
+
jsonString,
|
|
3768
|
+
(x) => ListDatasetDatapointsEvaluations1$inboundSchema.parse(JSON.parse(x)),
|
|
3769
|
+
`Failed to parse 'ListDatasetDatapointsEvaluations1' from JSON`,
|
|
3770
|
+
);
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
/** @internal */
|
|
3774
|
+
export const ListDatasetDatapointsEvaluations$inboundSchema: z.ZodType<
|
|
3775
|
+
ListDatasetDatapointsEvaluations,
|
|
3776
|
+
z.ZodTypeDef,
|
|
3777
|
+
unknown
|
|
3778
|
+
> = z.union([
|
|
3779
|
+
z.lazy(() => ListDatasetDatapointsEvaluations1$inboundSchema),
|
|
3780
|
+
z.lazy(() => ListDatasetDatapointsEvaluations2$inboundSchema),
|
|
3781
|
+
z.lazy(() => ListDatasetDatapointsEvaluations3$inboundSchema),
|
|
3782
|
+
]);
|
|
3783
|
+
|
|
3784
|
+
/** @internal */
|
|
3785
|
+
export type ListDatasetDatapointsEvaluations$Outbound =
|
|
3786
|
+
| ListDatasetDatapointsEvaluations1$Outbound
|
|
3787
|
+
| ListDatasetDatapointsEvaluations2$Outbound
|
|
3788
|
+
| ListDatasetDatapointsEvaluations3$Outbound;
|
|
3789
|
+
|
|
3790
|
+
/** @internal */
|
|
3791
|
+
export const ListDatasetDatapointsEvaluations$outboundSchema: z.ZodType<
|
|
3792
|
+
ListDatasetDatapointsEvaluations$Outbound,
|
|
3793
|
+
z.ZodTypeDef,
|
|
3794
|
+
ListDatasetDatapointsEvaluations
|
|
3795
|
+
> = z.union([
|
|
3796
|
+
z.lazy(() => ListDatasetDatapointsEvaluations1$outboundSchema),
|
|
3797
|
+
z.lazy(() => ListDatasetDatapointsEvaluations2$outboundSchema),
|
|
3798
|
+
z.lazy(() => ListDatasetDatapointsEvaluations3$outboundSchema),
|
|
3799
|
+
]);
|
|
3800
|
+
|
|
3801
|
+
/**
|
|
3802
|
+
* @internal
|
|
3803
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3804
|
+
*/
|
|
3805
|
+
export namespace ListDatasetDatapointsEvaluations$ {
|
|
3806
|
+
/** @deprecated use `ListDatasetDatapointsEvaluations$inboundSchema` instead. */
|
|
3807
|
+
export const inboundSchema = ListDatasetDatapointsEvaluations$inboundSchema;
|
|
3808
|
+
/** @deprecated use `ListDatasetDatapointsEvaluations$outboundSchema` instead. */
|
|
3809
|
+
export const outboundSchema = ListDatasetDatapointsEvaluations$outboundSchema;
|
|
3810
|
+
/** @deprecated use `ListDatasetDatapointsEvaluations$Outbound` instead. */
|
|
3811
|
+
export type Outbound = ListDatasetDatapointsEvaluations$Outbound;
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
|
+
export function listDatasetDatapointsEvaluationsToJSON(
|
|
3815
|
+
listDatasetDatapointsEvaluations: ListDatasetDatapointsEvaluations,
|
|
3816
|
+
): string {
|
|
3817
|
+
return JSON.stringify(
|
|
3818
|
+
ListDatasetDatapointsEvaluations$outboundSchema.parse(
|
|
3819
|
+
listDatasetDatapointsEvaluations,
|
|
3820
|
+
),
|
|
3821
|
+
);
|
|
3822
|
+
}
|
|
3823
|
+
|
|
3824
|
+
export function listDatasetDatapointsEvaluationsFromJSON(
|
|
3825
|
+
jsonString: string,
|
|
3826
|
+
): SafeParseResult<ListDatasetDatapointsEvaluations, SDKValidationError> {
|
|
3827
|
+
return safeParse(
|
|
3828
|
+
jsonString,
|
|
3829
|
+
(x) => ListDatasetDatapointsEvaluations$inboundSchema.parse(JSON.parse(x)),
|
|
3830
|
+
`Failed to parse 'ListDatasetDatapointsEvaluations' from JSON`,
|
|
3831
|
+
);
|
|
3832
|
+
}
|
|
3833
|
+
|
|
3077
3834
|
/** @internal */
|
|
3078
3835
|
export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
3079
3836
|
ListDatasetDatapointsData,
|
|
@@ -3095,13 +3852,21 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
3095
3852
|
]),
|
|
3096
3853
|
).optional(),
|
|
3097
3854
|
expected_output: z.string().optional(),
|
|
3855
|
+
evaluations: z.array(
|
|
3856
|
+
z.union([
|
|
3857
|
+
z.lazy(() => ListDatasetDatapointsEvaluations1$inboundSchema),
|
|
3858
|
+
z.lazy(() => ListDatasetDatapointsEvaluations2$inboundSchema),
|
|
3859
|
+
z.lazy(() => ListDatasetDatapointsEvaluations3$inboundSchema),
|
|
3860
|
+
]),
|
|
3861
|
+
).optional(),
|
|
3098
3862
|
dataset_id: z.string(),
|
|
3863
|
+
snapshot_version: z.string().optional(),
|
|
3099
3864
|
created_by_id: z.string().optional(),
|
|
3100
3865
|
updated_by_id: z.string().optional(),
|
|
3101
3866
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3102
3867
|
.optional(),
|
|
3103
3868
|
updated: z.string().datetime({ offset: true }).default(
|
|
3104
|
-
"2025-10-
|
|
3869
|
+
"2025-10-06T13:58:33.810Z",
|
|
3105
3870
|
).transform(v => new Date(v)),
|
|
3106
3871
|
}).transform((v) => {
|
|
3107
3872
|
return remap$(v, {
|
|
@@ -3109,6 +3874,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
3109
3874
|
"workspace_id": "workspaceId",
|
|
3110
3875
|
"expected_output": "expectedOutput",
|
|
3111
3876
|
"dataset_id": "datasetId",
|
|
3877
|
+
"snapshot_version": "snapshotVersion",
|
|
3112
3878
|
"created_by_id": "createdById",
|
|
3113
3879
|
"updated_by_id": "updatedById",
|
|
3114
3880
|
});
|
|
@@ -3129,7 +3895,15 @@ export type ListDatasetDatapointsData$Outbound = {
|
|
|
3129
3895
|
>
|
|
3130
3896
|
| undefined;
|
|
3131
3897
|
expected_output?: string | undefined;
|
|
3898
|
+
evaluations?:
|
|
3899
|
+
| Array<
|
|
3900
|
+
| ListDatasetDatapointsEvaluations1$Outbound
|
|
3901
|
+
| ListDatasetDatapointsEvaluations2$Outbound
|
|
3902
|
+
| ListDatasetDatapointsEvaluations3$Outbound
|
|
3903
|
+
>
|
|
3904
|
+
| undefined;
|
|
3132
3905
|
dataset_id: string;
|
|
3906
|
+
snapshot_version?: string | undefined;
|
|
3133
3907
|
created_by_id?: string | undefined;
|
|
3134
3908
|
updated_by_id?: string | undefined;
|
|
3135
3909
|
created?: string | undefined;
|
|
@@ -3161,11 +3935,19 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
3161
3935
|
]),
|
|
3162
3936
|
).optional(),
|
|
3163
3937
|
expectedOutput: z.string().optional(),
|
|
3938
|
+
evaluations: z.array(
|
|
3939
|
+
z.union([
|
|
3940
|
+
z.lazy(() => ListDatasetDatapointsEvaluations1$outboundSchema),
|
|
3941
|
+
z.lazy(() => ListDatasetDatapointsEvaluations2$outboundSchema),
|
|
3942
|
+
z.lazy(() => ListDatasetDatapointsEvaluations3$outboundSchema),
|
|
3943
|
+
]),
|
|
3944
|
+
).optional(),
|
|
3164
3945
|
datasetId: z.string(),
|
|
3946
|
+
snapshotVersion: z.string().optional(),
|
|
3165
3947
|
createdById: z.string().optional(),
|
|
3166
3948
|
updatedById: z.string().optional(),
|
|
3167
3949
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3168
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
3950
|
+
updated: z.date().default(() => new Date("2025-10-06T13:58:33.810Z"))
|
|
3169
3951
|
.transform(v => v.toISOString()),
|
|
3170
3952
|
}).transform((v) => {
|
|
3171
3953
|
return remap$(v, {
|
|
@@ -3173,6 +3955,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
3173
3955
|
workspaceId: "workspace_id",
|
|
3174
3956
|
expectedOutput: "expected_output",
|
|
3175
3957
|
datasetId: "dataset_id",
|
|
3958
|
+
snapshotVersion: "snapshot_version",
|
|
3176
3959
|
createdById: "created_by_id",
|
|
3177
3960
|
updatedById: "updated_by_id",
|
|
3178
3961
|
});
|