@ourofoundation/ouro-js 3.4.0 → 3.5.0
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/dist/chunk-7F26V24D.js +2 -0
- package/dist/chunk-7F26V24D.js.map +1 -0
- package/dist/chunk-CONKY65O.cjs +2 -0
- package/dist/chunk-CONKY65O.cjs.map +1 -0
- package/dist/chunk-JKTQY4RU.js +2 -0
- package/dist/chunk-JKTQY4RU.js.map +1 -0
- package/dist/chunk-JW7FACNZ.cjs +2 -0
- package/dist/chunk-JW7FACNZ.cjs.map +1 -0
- package/dist/chunk-XWXLCG4E.cjs +2 -0
- package/dist/chunk-XWXLCG4E.cjs.map +1 -0
- package/dist/chunk-Z3ALIFYO.js +2 -0
- package/dist/chunk-Z3ALIFYO.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/schema/quests.cjs +1 -1
- package/dist/schema/quests.d.cts +406 -29
- package/dist/schema/quests.d.ts +406 -29
- package/dist/schema/quests.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +117 -5
- package/dist/schema/services.d.ts +117 -5
- package/dist/schema/services.js +1 -1
- package/dist/utils/quest-submission.cjs +2 -0
- package/dist/utils/quest-submission.cjs.map +1 -0
- package/dist/utils/quest-submission.d.cts +134 -0
- package/dist/utils/quest-submission.d.ts +134 -0
- package/dist/utils/quest-submission.js +2 -0
- package/dist/utils/quest-submission.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-36UOEIZN.js +0 -2
- package/dist/chunk-36UOEIZN.js.map +0 -1
- package/dist/chunk-4KDHR4VP.js +0 -2
- package/dist/chunk-4KDHR4VP.js.map +0 -1
- package/dist/chunk-IU7AKVYI.cjs +0 -2
- package/dist/chunk-IU7AKVYI.cjs.map +0 -1
- package/dist/chunk-NRZCTFCQ.cjs +0 -2
- package/dist/chunk-NRZCTFCQ.cjs.map +0 -1
|
@@ -618,6 +618,62 @@ declare const ExecutionModeSchema: z.ZodEnum<{
|
|
|
618
618
|
sync: "sync";
|
|
619
619
|
async: "async";
|
|
620
620
|
}>;
|
|
621
|
+
declare const RouteInputAssetDeclarationSchema: z.ZodObject<{
|
|
622
|
+
asset_type: z.ZodEnum<{
|
|
623
|
+
dataset: "dataset";
|
|
624
|
+
file: "file";
|
|
625
|
+
post: "post";
|
|
626
|
+
}>;
|
|
627
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
628
|
+
input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
629
|
+
audio: "audio";
|
|
630
|
+
video: "video";
|
|
631
|
+
image: "image";
|
|
632
|
+
pdf: "pdf";
|
|
633
|
+
"3d model": "3d model";
|
|
634
|
+
"atomic structure": "atomic structure";
|
|
635
|
+
}>>>;
|
|
636
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
637
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
638
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
639
|
+
declare const RouteOutputAssetDeclarationSchema: z.ZodObject<{
|
|
640
|
+
asset_type: z.ZodEnum<{
|
|
641
|
+
dataset: "dataset";
|
|
642
|
+
file: "file";
|
|
643
|
+
post: "post";
|
|
644
|
+
}>;
|
|
645
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
646
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
647
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
648
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
649
|
+
declare const RouteInputAssetsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
650
|
+
asset_type: z.ZodEnum<{
|
|
651
|
+
dataset: "dataset";
|
|
652
|
+
file: "file";
|
|
653
|
+
post: "post";
|
|
654
|
+
}>;
|
|
655
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
656
|
+
input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
657
|
+
audio: "audio";
|
|
658
|
+
video: "video";
|
|
659
|
+
image: "image";
|
|
660
|
+
pdf: "pdf";
|
|
661
|
+
"3d model": "3d model";
|
|
662
|
+
"atomic structure": "atomic structure";
|
|
663
|
+
}>>>;
|
|
664
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
665
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
666
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
667
|
+
declare const RouteOutputAssetsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
668
|
+
asset_type: z.ZodEnum<{
|
|
669
|
+
dataset: "dataset";
|
|
670
|
+
file: "file";
|
|
671
|
+
post: "post";
|
|
672
|
+
}>;
|
|
673
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
674
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
675
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
676
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
621
677
|
declare const RouteDetailSchema: z.ZodObject<{
|
|
622
678
|
id: z.ZodString;
|
|
623
679
|
user_id: z.ZodString;
|
|
@@ -634,7 +690,24 @@ declare const RouteDetailSchema: z.ZodObject<{
|
|
|
634
690
|
parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
635
691
|
request_body: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
636
692
|
responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
637
|
-
input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.
|
|
693
|
+
input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
694
|
+
asset_type: z.ZodEnum<{
|
|
695
|
+
dataset: "dataset";
|
|
696
|
+
file: "file";
|
|
697
|
+
post: "post";
|
|
698
|
+
}>;
|
|
699
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
700
|
+
input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
701
|
+
audio: "audio";
|
|
702
|
+
video: "video";
|
|
703
|
+
image: "image";
|
|
704
|
+
pdf: "pdf";
|
|
705
|
+
"3d model": "3d model";
|
|
706
|
+
"atomic structure": "atomic structure";
|
|
707
|
+
}>>>;
|
|
708
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
709
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
710
|
+
}, z.core.$catchall<z.ZodAny>>>>>;
|
|
638
711
|
input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
639
712
|
dataset: "dataset";
|
|
640
713
|
file: "file";
|
|
@@ -650,12 +723,21 @@ declare const RouteDetailSchema: z.ZodObject<{
|
|
|
650
723
|
}>>>;
|
|
651
724
|
input_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
652
725
|
input_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
726
|
+
output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
727
|
+
asset_type: z.ZodEnum<{
|
|
728
|
+
dataset: "dataset";
|
|
729
|
+
file: "file";
|
|
730
|
+
post: "post";
|
|
731
|
+
}>;
|
|
732
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
733
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
734
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
735
|
+
}, z.core.$catchall<z.ZodAny>>>>>;
|
|
653
736
|
output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
654
737
|
dataset: "dataset";
|
|
655
738
|
file: "file";
|
|
656
739
|
post: "post";
|
|
657
740
|
}>>>;
|
|
658
|
-
output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
659
741
|
output_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
660
742
|
security: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
661
743
|
rate_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -939,7 +1021,24 @@ declare const RouteSchema: z.ZodObject<{
|
|
|
939
1021
|
parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
940
1022
|
request_body: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
941
1023
|
responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
942
|
-
input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.
|
|
1024
|
+
input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1025
|
+
asset_type: z.ZodEnum<{
|
|
1026
|
+
dataset: "dataset";
|
|
1027
|
+
file: "file";
|
|
1028
|
+
post: "post";
|
|
1029
|
+
}>;
|
|
1030
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
1031
|
+
input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1032
|
+
audio: "audio";
|
|
1033
|
+
video: "video";
|
|
1034
|
+
image: "image";
|
|
1035
|
+
pdf: "pdf";
|
|
1036
|
+
"3d model": "3d model";
|
|
1037
|
+
"atomic structure": "atomic structure";
|
|
1038
|
+
}>>>;
|
|
1039
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1040
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1041
|
+
}, z.core.$catchall<z.ZodAny>>>>>;
|
|
943
1042
|
input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
944
1043
|
dataset: "dataset";
|
|
945
1044
|
file: "file";
|
|
@@ -955,12 +1054,21 @@ declare const RouteSchema: z.ZodObject<{
|
|
|
955
1054
|
}>>>;
|
|
956
1055
|
input_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
957
1056
|
input_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1057
|
+
output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1058
|
+
asset_type: z.ZodEnum<{
|
|
1059
|
+
dataset: "dataset";
|
|
1060
|
+
file: "file";
|
|
1061
|
+
post: "post";
|
|
1062
|
+
}>;
|
|
1063
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
1064
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1065
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1066
|
+
}, z.core.$catchall<z.ZodAny>>>>>;
|
|
958
1067
|
output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
959
1068
|
dataset: "dataset";
|
|
960
1069
|
file: "file";
|
|
961
1070
|
post: "post";
|
|
962
1071
|
}>>>;
|
|
963
|
-
output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
964
1072
|
output_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
965
1073
|
security: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
966
1074
|
rate_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1510,6 +1618,10 @@ type Service = z.infer<typeof ServiceSchema>;
|
|
|
1510
1618
|
type Route = z.infer<typeof RouteSchema>;
|
|
1511
1619
|
type RouteDetail = z.infer<typeof RouteDetailSchema>;
|
|
1512
1620
|
type RouteMetrics = z.infer<typeof RouteMetricsSchema>;
|
|
1621
|
+
type RouteInputAssetDeclaration = z.infer<typeof RouteInputAssetDeclarationSchema>;
|
|
1622
|
+
type RouteOutputAssetDeclaration = z.infer<typeof RouteOutputAssetDeclarationSchema>;
|
|
1623
|
+
type RouteInputAssets = z.infer<typeof RouteInputAssetsSchema>;
|
|
1624
|
+
type RouteOutputAssets = z.infer<typeof RouteOutputAssetsSchema>;
|
|
1513
1625
|
type ExecutionMode = z.infer<typeof ExecutionModeSchema>;
|
|
1514
1626
|
declare const AuthType: z.ZodEnum<{
|
|
1515
1627
|
"Personal Access Token": "Personal Access Token";
|
|
@@ -1520,4 +1632,4 @@ declare const AuthType: z.ZodEnum<{
|
|
|
1520
1632
|
type AuthType = z.infer<typeof AuthType>;
|
|
1521
1633
|
type Action = z.infer<typeof ActionSchema>;
|
|
1522
1634
|
|
|
1523
|
-
export { type Action, ActionSchema, AuthType, CreateServiceSchema, type ExecutionMode, ExecutionModeSchema, type Route, type RouteDetail, type RouteMetrics, RouteMetricsSchema, RouteSchema, type Service, ServiceSchema, UpdateServiceSchema };
|
|
1635
|
+
export { type Action, ActionSchema, AuthType, CreateServiceSchema, type ExecutionMode, ExecutionModeSchema, type Route, type RouteDetail, type RouteInputAssetDeclaration, RouteInputAssetDeclarationSchema, type RouteInputAssets, RouteInputAssetsSchema, type RouteMetrics, RouteMetricsSchema, type RouteOutputAssetDeclaration, RouteOutputAssetDeclarationSchema, type RouteOutputAssets, RouteOutputAssetsSchema, RouteSchema, type Service, ServiceSchema, UpdateServiceSchema };
|
|
@@ -618,6 +618,62 @@ declare const ExecutionModeSchema: z.ZodEnum<{
|
|
|
618
618
|
sync: "sync";
|
|
619
619
|
async: "async";
|
|
620
620
|
}>;
|
|
621
|
+
declare const RouteInputAssetDeclarationSchema: z.ZodObject<{
|
|
622
|
+
asset_type: z.ZodEnum<{
|
|
623
|
+
dataset: "dataset";
|
|
624
|
+
file: "file";
|
|
625
|
+
post: "post";
|
|
626
|
+
}>;
|
|
627
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
628
|
+
input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
629
|
+
audio: "audio";
|
|
630
|
+
video: "video";
|
|
631
|
+
image: "image";
|
|
632
|
+
pdf: "pdf";
|
|
633
|
+
"3d model": "3d model";
|
|
634
|
+
"atomic structure": "atomic structure";
|
|
635
|
+
}>>>;
|
|
636
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
637
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
638
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
639
|
+
declare const RouteOutputAssetDeclarationSchema: z.ZodObject<{
|
|
640
|
+
asset_type: z.ZodEnum<{
|
|
641
|
+
dataset: "dataset";
|
|
642
|
+
file: "file";
|
|
643
|
+
post: "post";
|
|
644
|
+
}>;
|
|
645
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
646
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
647
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
648
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
649
|
+
declare const RouteInputAssetsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
650
|
+
asset_type: z.ZodEnum<{
|
|
651
|
+
dataset: "dataset";
|
|
652
|
+
file: "file";
|
|
653
|
+
post: "post";
|
|
654
|
+
}>;
|
|
655
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
656
|
+
input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
657
|
+
audio: "audio";
|
|
658
|
+
video: "video";
|
|
659
|
+
image: "image";
|
|
660
|
+
pdf: "pdf";
|
|
661
|
+
"3d model": "3d model";
|
|
662
|
+
"atomic structure": "atomic structure";
|
|
663
|
+
}>>>;
|
|
664
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
665
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
666
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
667
|
+
declare const RouteOutputAssetsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
668
|
+
asset_type: z.ZodEnum<{
|
|
669
|
+
dataset: "dataset";
|
|
670
|
+
file: "file";
|
|
671
|
+
post: "post";
|
|
672
|
+
}>;
|
|
673
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
674
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
675
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
676
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
621
677
|
declare const RouteDetailSchema: z.ZodObject<{
|
|
622
678
|
id: z.ZodString;
|
|
623
679
|
user_id: z.ZodString;
|
|
@@ -634,7 +690,24 @@ declare const RouteDetailSchema: z.ZodObject<{
|
|
|
634
690
|
parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
635
691
|
request_body: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
636
692
|
responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
637
|
-
input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.
|
|
693
|
+
input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
694
|
+
asset_type: z.ZodEnum<{
|
|
695
|
+
dataset: "dataset";
|
|
696
|
+
file: "file";
|
|
697
|
+
post: "post";
|
|
698
|
+
}>;
|
|
699
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
700
|
+
input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
701
|
+
audio: "audio";
|
|
702
|
+
video: "video";
|
|
703
|
+
image: "image";
|
|
704
|
+
pdf: "pdf";
|
|
705
|
+
"3d model": "3d model";
|
|
706
|
+
"atomic structure": "atomic structure";
|
|
707
|
+
}>>>;
|
|
708
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
709
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
710
|
+
}, z.core.$catchall<z.ZodAny>>>>>;
|
|
638
711
|
input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
639
712
|
dataset: "dataset";
|
|
640
713
|
file: "file";
|
|
@@ -650,12 +723,21 @@ declare const RouteDetailSchema: z.ZodObject<{
|
|
|
650
723
|
}>>>;
|
|
651
724
|
input_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
652
725
|
input_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
726
|
+
output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
727
|
+
asset_type: z.ZodEnum<{
|
|
728
|
+
dataset: "dataset";
|
|
729
|
+
file: "file";
|
|
730
|
+
post: "post";
|
|
731
|
+
}>;
|
|
732
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
733
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
734
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
735
|
+
}, z.core.$catchall<z.ZodAny>>>>>;
|
|
653
736
|
output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
654
737
|
dataset: "dataset";
|
|
655
738
|
file: "file";
|
|
656
739
|
post: "post";
|
|
657
740
|
}>>>;
|
|
658
|
-
output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
659
741
|
output_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
660
742
|
security: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
661
743
|
rate_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -939,7 +1021,24 @@ declare const RouteSchema: z.ZodObject<{
|
|
|
939
1021
|
parameters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
940
1022
|
request_body: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
941
1023
|
responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
942
|
-
input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.
|
|
1024
|
+
input_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1025
|
+
asset_type: z.ZodEnum<{
|
|
1026
|
+
dataset: "dataset";
|
|
1027
|
+
file: "file";
|
|
1028
|
+
post: "post";
|
|
1029
|
+
}>;
|
|
1030
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
1031
|
+
input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1032
|
+
audio: "audio";
|
|
1033
|
+
video: "video";
|
|
1034
|
+
image: "image";
|
|
1035
|
+
pdf: "pdf";
|
|
1036
|
+
"3d model": "3d model";
|
|
1037
|
+
"atomic structure": "atomic structure";
|
|
1038
|
+
}>>>;
|
|
1039
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1040
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1041
|
+
}, z.core.$catchall<z.ZodAny>>>>>;
|
|
943
1042
|
input_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
944
1043
|
dataset: "dataset";
|
|
945
1044
|
file: "file";
|
|
@@ -955,12 +1054,21 @@ declare const RouteSchema: z.ZodObject<{
|
|
|
955
1054
|
}>>>;
|
|
956
1055
|
input_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
957
1056
|
input_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1057
|
+
output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1058
|
+
asset_type: z.ZodEnum<{
|
|
1059
|
+
dataset: "dataset";
|
|
1060
|
+
file: "file";
|
|
1061
|
+
post: "post";
|
|
1062
|
+
}>;
|
|
1063
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
1064
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1065
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1066
|
+
}, z.core.$catchall<z.ZodAny>>>>>;
|
|
958
1067
|
output_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
959
1068
|
dataset: "dataset";
|
|
960
1069
|
file: "file";
|
|
961
1070
|
post: "post";
|
|
962
1071
|
}>>>;
|
|
963
|
-
output_assets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
964
1072
|
output_file_extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
965
1073
|
security: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
966
1074
|
rate_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1510,6 +1618,10 @@ type Service = z.infer<typeof ServiceSchema>;
|
|
|
1510
1618
|
type Route = z.infer<typeof RouteSchema>;
|
|
1511
1619
|
type RouteDetail = z.infer<typeof RouteDetailSchema>;
|
|
1512
1620
|
type RouteMetrics = z.infer<typeof RouteMetricsSchema>;
|
|
1621
|
+
type RouteInputAssetDeclaration = z.infer<typeof RouteInputAssetDeclarationSchema>;
|
|
1622
|
+
type RouteOutputAssetDeclaration = z.infer<typeof RouteOutputAssetDeclarationSchema>;
|
|
1623
|
+
type RouteInputAssets = z.infer<typeof RouteInputAssetsSchema>;
|
|
1624
|
+
type RouteOutputAssets = z.infer<typeof RouteOutputAssetsSchema>;
|
|
1513
1625
|
type ExecutionMode = z.infer<typeof ExecutionModeSchema>;
|
|
1514
1626
|
declare const AuthType: z.ZodEnum<{
|
|
1515
1627
|
"Personal Access Token": "Personal Access Token";
|
|
@@ -1520,4 +1632,4 @@ declare const AuthType: z.ZodEnum<{
|
|
|
1520
1632
|
type AuthType = z.infer<typeof AuthType>;
|
|
1521
1633
|
type Action = z.infer<typeof ActionSchema>;
|
|
1522
1634
|
|
|
1523
|
-
export { type Action, ActionSchema, AuthType, CreateServiceSchema, type ExecutionMode, ExecutionModeSchema, type Route, type RouteDetail, type RouteMetrics, RouteMetricsSchema, RouteSchema, type Service, ServiceSchema, UpdateServiceSchema };
|
|
1635
|
+
export { type Action, ActionSchema, AuthType, CreateServiceSchema, type ExecutionMode, ExecutionModeSchema, type Route, type RouteDetail, type RouteInputAssetDeclaration, RouteInputAssetDeclarationSchema, type RouteInputAssets, RouteInputAssetsSchema, type RouteMetrics, RouteMetricsSchema, type RouteOutputAssetDeclaration, RouteOutputAssetDeclarationSchema, type RouteOutputAssets, RouteOutputAssetsSchema, RouteSchema, type Service, ServiceSchema, UpdateServiceSchema };
|
package/dist/schema/services.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{k as ActionSchema,b as CreateServiceSchema,d as ExecutionModeSchema,e as RouteInputAssetDeclarationSchema,g as RouteInputAssetsSchema,i as RouteMetricsSchema,f as RouteOutputAssetDeclarationSchema,h as RouteOutputAssetsSchema,j as RouteSchema,a as ServiceSchema,c as UpdateServiceSchema}from'../chunk-7F26V24D.js';import'../chunk-G2MXCB7Q.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=services.js.map
|
|
2
2
|
//# sourceMappingURL=services.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkCONKY65O_cjs=require('../chunk-CONKY65O.cjs');require('../chunk-JW7FACNZ.cjs'),require('../chunk-IP4OVRZB.cjs'),require('../chunk-UY43EQTO.cjs'),require('../chunk-VOY623ZD.cjs'),require('../chunk-GY6SLMMJ.cjs'),require('../chunk-43KB23BA.cjs'),require('../chunk-7HF5VHUN.cjs');Object.defineProperty(exports,"KeyedAssetInputSchema",{enumerable:true,get:function(){return chunkCONKY65O_cjs.c}});Object.defineProperty(exports,"KeyedAssetInputValueSchema",{enumerable:true,get:function(){return chunkCONKY65O_cjs.b}});Object.defineProperty(exports,"KeyedAssetRefsSchema",{enumerable:true,get:function(){return chunkCONKY65O_cjs.a}});Object.defineProperty(exports,"QuestSubmissionAssetDeclarationSchema",{enumerable:true,get:function(){return chunkCONKY65O_cjs.d}});Object.defineProperty(exports,"assetMatchesDeclaration",{enumerable:true,get:function(){return chunkCONKY65O_cjs.k}});Object.defineProperty(exports,"declarationToPickerFilters",{enumerable:true,get:function(){return chunkCONKY65O_cjs.j}});Object.defineProperty(exports,"declarationToSubmissionDeclaration",{enumerable:true,get:function(){return chunkCONKY65O_cjs.f}});Object.defineProperty(exports,"getPrimaryAssetRef",{enumerable:true,get:function(){return chunkCONKY65O_cjs.l}});Object.defineProperty(exports,"getPrimaryDeclarationKey",{enumerable:true,get:function(){return chunkCONKY65O_cjs.h}});Object.defineProperty(exports,"getRouteInputDeclarationsFromRoute",{enumerable:true,get:function(){return chunkCONKY65O_cjs.e}});Object.defineProperty(exports,"getSubmissionAssetShape",{enumerable:true,get:function(){return chunkCONKY65O_cjs.i}});Object.defineProperty(exports,"materializeContributorSubmissionAssets",{enumerable:true,get:function(){return chunkCONKY65O_cjs.g}});Object.defineProperty(exports,"toRouteInputAssets",{enumerable:true,get:function(){return chunkCONKY65O_cjs.m}});//# sourceMappingURL=quest-submission.cjs.map
|
|
2
|
+
//# sourceMappingURL=quest-submission.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"quest-submission.cjs"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Stored on entries and eval_static_inputs after server normalization. */
|
|
4
|
+
declare const KeyedAssetRefsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5
|
+
asset_id: z.ZodUUID;
|
|
6
|
+
asset_type: z.ZodEnum<{
|
|
7
|
+
user: "user";
|
|
8
|
+
organization: "organization";
|
|
9
|
+
team: "team";
|
|
10
|
+
dataset: "dataset";
|
|
11
|
+
file: "file";
|
|
12
|
+
service: "service";
|
|
13
|
+
route: "route";
|
|
14
|
+
post: "post";
|
|
15
|
+
quest: "quest";
|
|
16
|
+
comment: "comment";
|
|
17
|
+
conversation: "conversation";
|
|
18
|
+
}>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
/** Accepted on POST /quests/:id/entries/create — server fills asset_type. */
|
|
21
|
+
declare const KeyedAssetInputValueSchema: z.ZodUnion<readonly [z.ZodUUID, z.ZodObject<{
|
|
22
|
+
asset_id: z.ZodUUID;
|
|
23
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
user: "user";
|
|
25
|
+
organization: "organization";
|
|
26
|
+
team: "team";
|
|
27
|
+
dataset: "dataset";
|
|
28
|
+
file: "file";
|
|
29
|
+
service: "service";
|
|
30
|
+
route: "route";
|
|
31
|
+
post: "post";
|
|
32
|
+
quest: "quest";
|
|
33
|
+
comment: "comment";
|
|
34
|
+
conversation: "conversation";
|
|
35
|
+
}>>;
|
|
36
|
+
}, z.core.$strip>]>;
|
|
37
|
+
declare const KeyedAssetInputSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUUID, z.ZodObject<{
|
|
38
|
+
asset_id: z.ZodUUID;
|
|
39
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
user: "user";
|
|
41
|
+
organization: "organization";
|
|
42
|
+
team: "team";
|
|
43
|
+
dataset: "dataset";
|
|
44
|
+
file: "file";
|
|
45
|
+
service: "service";
|
|
46
|
+
route: "route";
|
|
47
|
+
post: "post";
|
|
48
|
+
quest: "quest";
|
|
49
|
+
comment: "comment";
|
|
50
|
+
conversation: "conversation";
|
|
51
|
+
}>>;
|
|
52
|
+
}, z.core.$strip>]>>;
|
|
53
|
+
declare const QuestSubmissionAssetDeclarationSchema: z.ZodObject<{
|
|
54
|
+
asset_type: z.ZodEnum<{
|
|
55
|
+
dataset: "dataset";
|
|
56
|
+
file: "file";
|
|
57
|
+
post: "post";
|
|
58
|
+
}>;
|
|
59
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
61
|
+
audio: "audio";
|
|
62
|
+
video: "video";
|
|
63
|
+
image: "image";
|
|
64
|
+
pdf: "pdf";
|
|
65
|
+
"3d model": "3d model";
|
|
66
|
+
"atomic structure": "atomic structure";
|
|
67
|
+
}>>>;
|
|
68
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
69
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
70
|
+
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
71
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
72
|
+
type KeyedAssetRefs = z.infer<typeof KeyedAssetRefsSchema>;
|
|
73
|
+
type KeyedAssetInput = z.infer<typeof KeyedAssetInputSchema>;
|
|
74
|
+
type QuestSubmissionAssetDeclaration = z.infer<typeof QuestSubmissionAssetDeclarationSchema>;
|
|
75
|
+
type AssetDeclarationPickerFilters = {
|
|
76
|
+
assetType?: string;
|
|
77
|
+
fileType?: string;
|
|
78
|
+
extensions?: string[];
|
|
79
|
+
hasConstraints: boolean;
|
|
80
|
+
};
|
|
81
|
+
type QuestSubmissionItemInput = {
|
|
82
|
+
eval_route_id?: string | null;
|
|
83
|
+
submission_assets?: Record<string, QuestSubmissionAssetDeclaration> | null;
|
|
84
|
+
eval_static_inputs?: KeyedAssetRefs | null;
|
|
85
|
+
expected_asset_type?: string | null;
|
|
86
|
+
};
|
|
87
|
+
type RouteInputDeclarationLike = {
|
|
88
|
+
asset_type?: string | null;
|
|
89
|
+
primary?: boolean;
|
|
90
|
+
input_filter?: string | null;
|
|
91
|
+
filter?: string | null;
|
|
92
|
+
file_extensions?: string[] | null;
|
|
93
|
+
input_file_extensions?: string[] | null;
|
|
94
|
+
};
|
|
95
|
+
type RouteForSubmissionShape = {
|
|
96
|
+
route?: {
|
|
97
|
+
input_assets?: Record<string, RouteInputDeclarationLike> | null;
|
|
98
|
+
input_type?: string | null;
|
|
99
|
+
input_filter?: string | null;
|
|
100
|
+
input_file_extensions?: string[] | null;
|
|
101
|
+
} | null;
|
|
102
|
+
} | null;
|
|
103
|
+
/** Route keyed inputs as a flat map (includes legacy input_type fallback). */
|
|
104
|
+
declare function getRouteInputDeclarationsFromRoute(route: RouteForSubmissionShape): Record<string, RouteInputDeclarationLike>;
|
|
105
|
+
declare function declarationToSubmissionDeclaration(declaration: RouteInputDeclarationLike): QuestSubmissionAssetDeclaration;
|
|
106
|
+
/** Materialize contributor declarations from route inputs minus pinned keys. */
|
|
107
|
+
declare function materializeContributorSubmissionAssets(routeInputs: Record<string, RouteInputDeclarationLike>, pinnedKeys: string[]): Record<string, QuestSubmissionAssetDeclaration>;
|
|
108
|
+
declare function getPrimaryDeclarationKey(declarations: Record<string, QuestSubmissionAssetDeclaration>): string | null;
|
|
109
|
+
declare function getSubmissionAssetShape(item: QuestSubmissionItemInput, route?: RouteForSubmissionShape | null): {
|
|
110
|
+
contributorKeys: string[];
|
|
111
|
+
declarations: Record<string, QuestSubmissionAssetDeclaration>;
|
|
112
|
+
pinned: KeyedAssetRefs;
|
|
113
|
+
};
|
|
114
|
+
declare function declarationToPickerFilters(declaration: RouteInputDeclarationLike | QuestSubmissionAssetDeclaration | null | undefined): AssetDeclarationPickerFilters | null;
|
|
115
|
+
declare function assetMatchesDeclaration(asset: {
|
|
116
|
+
assetType?: string | null;
|
|
117
|
+
asset_type?: string | null;
|
|
118
|
+
asset?: {
|
|
119
|
+
metadata?: Record<string, unknown>;
|
|
120
|
+
} | null;
|
|
121
|
+
} | null | undefined, declaration: RouteInputDeclarationLike | QuestSubmissionAssetDeclaration | null | undefined): boolean;
|
|
122
|
+
declare function getPrimaryAssetRef(refs: KeyedAssetRefs | null | undefined, declarations?: Record<string, QuestSubmissionAssetDeclaration> | null): {
|
|
123
|
+
key: string;
|
|
124
|
+
asset_id: string;
|
|
125
|
+
asset_type: string;
|
|
126
|
+
} | null;
|
|
127
|
+
declare function toRouteInputAssets(refs: KeyedAssetRefs | null | undefined): Record<string, {
|
|
128
|
+
assetId: string;
|
|
129
|
+
assetType: string;
|
|
130
|
+
}>;
|
|
131
|
+
/** @deprecated Use declarationToPickerFilters */
|
|
132
|
+
type EvalSubmissionFilters = AssetDeclarationPickerFilters;
|
|
133
|
+
|
|
134
|
+
export { type AssetDeclarationPickerFilters, type EvalSubmissionFilters, type KeyedAssetInput, KeyedAssetInputSchema, KeyedAssetInputValueSchema, type KeyedAssetRefs, KeyedAssetRefsSchema, type QuestSubmissionAssetDeclaration, QuestSubmissionAssetDeclarationSchema, type QuestSubmissionItemInput, type RouteForSubmissionShape, type RouteInputDeclarationLike, assetMatchesDeclaration, declarationToPickerFilters, declarationToSubmissionDeclaration, getPrimaryAssetRef, getPrimaryDeclarationKey, getRouteInputDeclarationsFromRoute, getSubmissionAssetShape, materializeContributorSubmissionAssets, toRouteInputAssets };
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Stored on entries and eval_static_inputs after server normalization. */
|
|
4
|
+
declare const KeyedAssetRefsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5
|
+
asset_id: z.ZodUUID;
|
|
6
|
+
asset_type: z.ZodEnum<{
|
|
7
|
+
user: "user";
|
|
8
|
+
organization: "organization";
|
|
9
|
+
team: "team";
|
|
10
|
+
dataset: "dataset";
|
|
11
|
+
file: "file";
|
|
12
|
+
service: "service";
|
|
13
|
+
route: "route";
|
|
14
|
+
post: "post";
|
|
15
|
+
quest: "quest";
|
|
16
|
+
comment: "comment";
|
|
17
|
+
conversation: "conversation";
|
|
18
|
+
}>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
/** Accepted on POST /quests/:id/entries/create — server fills asset_type. */
|
|
21
|
+
declare const KeyedAssetInputValueSchema: z.ZodUnion<readonly [z.ZodUUID, z.ZodObject<{
|
|
22
|
+
asset_id: z.ZodUUID;
|
|
23
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
user: "user";
|
|
25
|
+
organization: "organization";
|
|
26
|
+
team: "team";
|
|
27
|
+
dataset: "dataset";
|
|
28
|
+
file: "file";
|
|
29
|
+
service: "service";
|
|
30
|
+
route: "route";
|
|
31
|
+
post: "post";
|
|
32
|
+
quest: "quest";
|
|
33
|
+
comment: "comment";
|
|
34
|
+
conversation: "conversation";
|
|
35
|
+
}>>;
|
|
36
|
+
}, z.core.$strip>]>;
|
|
37
|
+
declare const KeyedAssetInputSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUUID, z.ZodObject<{
|
|
38
|
+
asset_id: z.ZodUUID;
|
|
39
|
+
asset_type: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
user: "user";
|
|
41
|
+
organization: "organization";
|
|
42
|
+
team: "team";
|
|
43
|
+
dataset: "dataset";
|
|
44
|
+
file: "file";
|
|
45
|
+
service: "service";
|
|
46
|
+
route: "route";
|
|
47
|
+
post: "post";
|
|
48
|
+
quest: "quest";
|
|
49
|
+
comment: "comment";
|
|
50
|
+
conversation: "conversation";
|
|
51
|
+
}>>;
|
|
52
|
+
}, z.core.$strip>]>>;
|
|
53
|
+
declare const QuestSubmissionAssetDeclarationSchema: z.ZodObject<{
|
|
54
|
+
asset_type: z.ZodEnum<{
|
|
55
|
+
dataset: "dataset";
|
|
56
|
+
file: "file";
|
|
57
|
+
post: "post";
|
|
58
|
+
}>;
|
|
59
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
input_filter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
61
|
+
audio: "audio";
|
|
62
|
+
video: "video";
|
|
63
|
+
image: "image";
|
|
64
|
+
pdf: "pdf";
|
|
65
|
+
"3d model": "3d model";
|
|
66
|
+
"atomic structure": "atomic structure";
|
|
67
|
+
}>>>;
|
|
68
|
+
file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
69
|
+
contains_file_extensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
70
|
+
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
71
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
72
|
+
type KeyedAssetRefs = z.infer<typeof KeyedAssetRefsSchema>;
|
|
73
|
+
type KeyedAssetInput = z.infer<typeof KeyedAssetInputSchema>;
|
|
74
|
+
type QuestSubmissionAssetDeclaration = z.infer<typeof QuestSubmissionAssetDeclarationSchema>;
|
|
75
|
+
type AssetDeclarationPickerFilters = {
|
|
76
|
+
assetType?: string;
|
|
77
|
+
fileType?: string;
|
|
78
|
+
extensions?: string[];
|
|
79
|
+
hasConstraints: boolean;
|
|
80
|
+
};
|
|
81
|
+
type QuestSubmissionItemInput = {
|
|
82
|
+
eval_route_id?: string | null;
|
|
83
|
+
submission_assets?: Record<string, QuestSubmissionAssetDeclaration> | null;
|
|
84
|
+
eval_static_inputs?: KeyedAssetRefs | null;
|
|
85
|
+
expected_asset_type?: string | null;
|
|
86
|
+
};
|
|
87
|
+
type RouteInputDeclarationLike = {
|
|
88
|
+
asset_type?: string | null;
|
|
89
|
+
primary?: boolean;
|
|
90
|
+
input_filter?: string | null;
|
|
91
|
+
filter?: string | null;
|
|
92
|
+
file_extensions?: string[] | null;
|
|
93
|
+
input_file_extensions?: string[] | null;
|
|
94
|
+
};
|
|
95
|
+
type RouteForSubmissionShape = {
|
|
96
|
+
route?: {
|
|
97
|
+
input_assets?: Record<string, RouteInputDeclarationLike> | null;
|
|
98
|
+
input_type?: string | null;
|
|
99
|
+
input_filter?: string | null;
|
|
100
|
+
input_file_extensions?: string[] | null;
|
|
101
|
+
} | null;
|
|
102
|
+
} | null;
|
|
103
|
+
/** Route keyed inputs as a flat map (includes legacy input_type fallback). */
|
|
104
|
+
declare function getRouteInputDeclarationsFromRoute(route: RouteForSubmissionShape): Record<string, RouteInputDeclarationLike>;
|
|
105
|
+
declare function declarationToSubmissionDeclaration(declaration: RouteInputDeclarationLike): QuestSubmissionAssetDeclaration;
|
|
106
|
+
/** Materialize contributor declarations from route inputs minus pinned keys. */
|
|
107
|
+
declare function materializeContributorSubmissionAssets(routeInputs: Record<string, RouteInputDeclarationLike>, pinnedKeys: string[]): Record<string, QuestSubmissionAssetDeclaration>;
|
|
108
|
+
declare function getPrimaryDeclarationKey(declarations: Record<string, QuestSubmissionAssetDeclaration>): string | null;
|
|
109
|
+
declare function getSubmissionAssetShape(item: QuestSubmissionItemInput, route?: RouteForSubmissionShape | null): {
|
|
110
|
+
contributorKeys: string[];
|
|
111
|
+
declarations: Record<string, QuestSubmissionAssetDeclaration>;
|
|
112
|
+
pinned: KeyedAssetRefs;
|
|
113
|
+
};
|
|
114
|
+
declare function declarationToPickerFilters(declaration: RouteInputDeclarationLike | QuestSubmissionAssetDeclaration | null | undefined): AssetDeclarationPickerFilters | null;
|
|
115
|
+
declare function assetMatchesDeclaration(asset: {
|
|
116
|
+
assetType?: string | null;
|
|
117
|
+
asset_type?: string | null;
|
|
118
|
+
asset?: {
|
|
119
|
+
metadata?: Record<string, unknown>;
|
|
120
|
+
} | null;
|
|
121
|
+
} | null | undefined, declaration: RouteInputDeclarationLike | QuestSubmissionAssetDeclaration | null | undefined): boolean;
|
|
122
|
+
declare function getPrimaryAssetRef(refs: KeyedAssetRefs | null | undefined, declarations?: Record<string, QuestSubmissionAssetDeclaration> | null): {
|
|
123
|
+
key: string;
|
|
124
|
+
asset_id: string;
|
|
125
|
+
asset_type: string;
|
|
126
|
+
} | null;
|
|
127
|
+
declare function toRouteInputAssets(refs: KeyedAssetRefs | null | undefined): Record<string, {
|
|
128
|
+
assetId: string;
|
|
129
|
+
assetType: string;
|
|
130
|
+
}>;
|
|
131
|
+
/** @deprecated Use declarationToPickerFilters */
|
|
132
|
+
type EvalSubmissionFilters = AssetDeclarationPickerFilters;
|
|
133
|
+
|
|
134
|
+
export { type AssetDeclarationPickerFilters, type EvalSubmissionFilters, type KeyedAssetInput, KeyedAssetInputSchema, KeyedAssetInputValueSchema, type KeyedAssetRefs, KeyedAssetRefsSchema, type QuestSubmissionAssetDeclaration, QuestSubmissionAssetDeclarationSchema, type QuestSubmissionItemInput, type RouteForSubmissionShape, type RouteInputDeclarationLike, assetMatchesDeclaration, declarationToPickerFilters, declarationToSubmissionDeclaration, getPrimaryAssetRef, getPrimaryDeclarationKey, getRouteInputDeclarationsFromRoute, getSubmissionAssetShape, materializeContributorSubmissionAssets, toRouteInputAssets };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{c as KeyedAssetInputSchema,b as KeyedAssetInputValueSchema,a as KeyedAssetRefsSchema,d as QuestSubmissionAssetDeclarationSchema,k as assetMatchesDeclaration,j as declarationToPickerFilters,f as declarationToSubmissionDeclaration,l as getPrimaryAssetRef,h as getPrimaryDeclarationKey,e as getRouteInputDeclarationsFromRoute,i as getSubmissionAssetShape,g as materializeContributorSubmissionAssets,m as toRouteInputAssets}from'../chunk-JKTQY4RU.js';import'../chunk-7F26V24D.js';import'../chunk-G2MXCB7Q.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=quest-submission.js.map
|
|
2
|
+
//# sourceMappingURL=quest-submission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"quest-submission.js"}
|