@nakafa/aksara-contracts 0.42.0 → 0.44.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/README.md +20 -1
- package/dist/math/resolution.js +1 -1
- package/dist/math/scene.js +1 -1
- package/dist/preview/artifact.d.ts +44 -0
- package/dist/preview/document.d.ts +36 -12
- package/dist/preview/spec.d.ts +196 -36
- package/dist/preview/target.d.ts +10 -3
- package/dist/program/snapshot/digest.d.ts +1 -1
- package/dist/program/snapshot/digest.js +1 -1
- package/dist/program/snapshot/hash.d.ts +153 -0
- package/dist/program/snapshot/hash.js +31 -0
- package/dist/projection/digest.d.ts +74 -22
- package/dist/projection/material.d.ts +10 -0
- package/dist/projection/material.js +15 -0
- package/dist/projection/question.d.ts +188 -0
- package/dist/projection/spec.d.ts +45 -0
- package/dist/projection/verify.d.ts +127 -75
- package/dist/question/answer.d.ts +141 -0
- package/dist/question/answer.js +238 -0
- package/dist/question/item.d.ts +276 -1
- package/dist/question/item.js +63 -38
- package/dist/question/label.d.ts +3 -0
- package/dist/question/label.js +3 -0
- package/dist/question/points.d.ts +18 -0
- package/dist/question/points.js +22 -0
- package/dist/question/response.d.ts +187 -5
- package/dist/question/response.js +41 -4
- package/dist/question/rubric.d.ts +234 -0
- package/dist/question/rubric.js +182 -0
- package/dist/release/rollback/spec.d.ts +264 -0
- package/dist/release/snapshot/data.d.ts +52 -3
- package/dist/release/snapshot/{program-evidence.d.ts → evidence/program.d.ts} +2 -2
- package/dist/release/snapshot/{program-evidence.js → evidence/program.js} +1 -1
- package/dist/release/snapshot/{quran-evidence.d.ts → evidence/quran.d.ts} +2 -2
- package/dist/release/snapshot/{quran-evidence.js → evidence/quran.js} +1 -1
- package/dist/release/snapshot/{tryout-evidence.d.ts → evidence/tryout.d.ts} +2 -2
- package/dist/release/snapshot/{tryout-evidence.js → evidence/tryout.js} +4 -4
- package/dist/release/snapshot/evidence.d.ts +2 -2
- package/dist/release/snapshot/evidence.js +3 -3
- package/dist/release/snapshot/verify.d.ts +88 -31
- package/dist/runtime/spec.d.ts +25 -22
- package/dist/runtime/verify.d.ts +46 -44
- package/dist/transport/batch.d.ts +88 -0
- package/dist/transport/group.d.ts +288 -9
- package/dist/transport/request.d.ts +1858 -1018
- package/dist/transport/response.d.ts +499 -131
- package/dist/transport/snapshot.d.ts +104 -6
- package/dist/tryout/catalog.d.ts +28 -10
- package/dist/tryout/catalog.js +6 -2
- package/dist/tryout/closure/accounting.d.ts +16 -0
- package/dist/tryout/closure/accounting.js +68 -0
- package/dist/tryout/closure/locale.d.ts +14 -0
- package/dist/tryout/{locale-closure.js → closure/locale.js} +13 -72
- package/dist/tryout/{placement-closure.js → closure/placement.js} +1 -0
- package/dist/tryout/{catalog-hash.d.ts → hash/catalog.d.ts} +25 -20
- package/dist/tryout/{catalog-hash.js → hash/catalog.js} +8 -1
- package/dist/tryout/{content-hash.d.ts → hash/content.d.ts} +43 -0
- package/dist/tryout/{placement-hash.d.ts → hash/placement.d.ts} +1 -1
- package/dist/tryout/{placement-hash.js → hash/placement.js} +2 -1
- package/dist/tryout/placement.d.ts +136 -1
- package/dist/tryout/placement.js +16 -2
- package/dist/tryout/scoring.d.ts +37 -0
- package/dist/tryout/scoring.js +89 -0
- package/dist/tryout/spec.d.ts +32 -4
- package/dist/tryout/spec.js +35 -4
- package/package.json +29 -21
- package/dist/program/snapshot/row-hash.d.ts +0 -155
- package/dist/program/snapshot/row-hash.js +0 -34
- package/dist/tryout/locale-closure.d.ts +0 -20
- /package/dist/math/{arc-precision.d.ts → arc.d.ts} +0 -0
- /package/dist/math/{arc-precision.js → arc.js} +0 -0
- /package/dist/release/snapshot/{evidence-requirement.d.ts → evidence/requirement.d.ts} +0 -0
- /package/dist/release/snapshot/{evidence-requirement.js → evidence/requirement.js} +0 -0
- /package/dist/tryout/{placement-closure.d.ts → closure/placement.d.ts} +0 -0
- /package/dist/tryout/{row-hash.d.ts → digest.d.ts} +0 -0
- /package/dist/tryout/{row-hash.js → digest.js} +0 -0
- /package/dist/tryout/{content-hash.js → hash/content.js} +0 -0
|
@@ -319,6 +319,7 @@ export declare const RollbackUpsertStateSchema: Schema.Struct<{
|
|
|
319
319
|
readonly name: Schema.String;
|
|
320
320
|
}>>;
|
|
321
321
|
readonly description: Schema.optional<Schema.String>;
|
|
322
|
+
readonly searchTitle: Schema.optionalKey<Schema.Trimmed>;
|
|
322
323
|
readonly subject: Schema.optional<Schema.String>;
|
|
323
324
|
readonly title: Schema.String;
|
|
324
325
|
}>;
|
|
@@ -384,6 +385,49 @@ export declare const RollbackUpsertStateSchema: Schema.Struct<{
|
|
|
384
385
|
readonly optionKey: Schema.String;
|
|
385
386
|
readonly order: Schema.Int;
|
|
386
387
|
}>>;
|
|
388
|
+
}>, Schema.Struct<{
|
|
389
|
+
readonly criteria: Schema.$Array<Schema.Struct<{
|
|
390
|
+
readonly criterionKey: Schema.String;
|
|
391
|
+
readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
392
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
393
|
+
readonly kind: Schema.Literal<"number">;
|
|
394
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
395
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
396
|
+
readonly value: Schema.String;
|
|
397
|
+
}>>;
|
|
398
|
+
readonly value: Schema.String;
|
|
399
|
+
}>, Schema.Struct<{
|
|
400
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
401
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
402
|
+
readonly ignoreCase: Schema.Boolean;
|
|
403
|
+
readonly kind: Schema.Literal<"text">;
|
|
404
|
+
}>]>>;
|
|
405
|
+
readonly order: Schema.Int;
|
|
406
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
407
|
+
readonly levels: Schema.$Array<Schema.Struct<{
|
|
408
|
+
readonly levelKey: Schema.String;
|
|
409
|
+
readonly order: Schema.Int;
|
|
410
|
+
readonly points: Schema.Int;
|
|
411
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
412
|
+
}>>;
|
|
413
|
+
}>>;
|
|
414
|
+
readonly kind: Schema.Literal<"rubric">;
|
|
415
|
+
}>, Schema.Struct<{
|
|
416
|
+
readonly key: Schema.Union<readonly [Schema.Struct<{
|
|
417
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
418
|
+
readonly kind: Schema.Literal<"number">;
|
|
419
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
420
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
421
|
+
readonly value: Schema.String;
|
|
422
|
+
}>>;
|
|
423
|
+
readonly value: Schema.String;
|
|
424
|
+
}>, Schema.Struct<{
|
|
425
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
426
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
427
|
+
readonly ignoreCase: Schema.Boolean;
|
|
428
|
+
readonly kind: Schema.Literal<"text">;
|
|
429
|
+
}>]>;
|
|
430
|
+
readonly kind: Schema.Literal<"short-answer">;
|
|
387
431
|
}>, Schema.Struct<{
|
|
388
432
|
readonly kind: Schema.Literal<"single-choice">;
|
|
389
433
|
readonly options: Schema.$Array<Schema.Struct<{
|
|
@@ -523,6 +567,7 @@ export declare const RollbackStateSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
523
567
|
readonly name: Schema.String;
|
|
524
568
|
}>>;
|
|
525
569
|
readonly description: Schema.optional<Schema.String>;
|
|
570
|
+
readonly searchTitle: Schema.optionalKey<Schema.Trimmed>;
|
|
526
571
|
readonly subject: Schema.optional<Schema.String>;
|
|
527
572
|
readonly title: Schema.String;
|
|
528
573
|
}>;
|
|
@@ -588,6 +633,49 @@ export declare const RollbackStateSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
588
633
|
readonly optionKey: Schema.String;
|
|
589
634
|
readonly order: Schema.Int;
|
|
590
635
|
}>>;
|
|
636
|
+
}>, Schema.Struct<{
|
|
637
|
+
readonly criteria: Schema.$Array<Schema.Struct<{
|
|
638
|
+
readonly criterionKey: Schema.String;
|
|
639
|
+
readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
640
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
641
|
+
readonly kind: Schema.Literal<"number">;
|
|
642
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
643
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
644
|
+
readonly value: Schema.String;
|
|
645
|
+
}>>;
|
|
646
|
+
readonly value: Schema.String;
|
|
647
|
+
}>, Schema.Struct<{
|
|
648
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
649
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
650
|
+
readonly ignoreCase: Schema.Boolean;
|
|
651
|
+
readonly kind: Schema.Literal<"text">;
|
|
652
|
+
}>]>>;
|
|
653
|
+
readonly order: Schema.Int;
|
|
654
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
655
|
+
readonly levels: Schema.$Array<Schema.Struct<{
|
|
656
|
+
readonly levelKey: Schema.String;
|
|
657
|
+
readonly order: Schema.Int;
|
|
658
|
+
readonly points: Schema.Int;
|
|
659
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
660
|
+
}>>;
|
|
661
|
+
}>>;
|
|
662
|
+
readonly kind: Schema.Literal<"rubric">;
|
|
663
|
+
}>, Schema.Struct<{
|
|
664
|
+
readonly key: Schema.Union<readonly [Schema.Struct<{
|
|
665
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
666
|
+
readonly kind: Schema.Literal<"number">;
|
|
667
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
668
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
669
|
+
readonly value: Schema.String;
|
|
670
|
+
}>>;
|
|
671
|
+
readonly value: Schema.String;
|
|
672
|
+
}>, Schema.Struct<{
|
|
673
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
674
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
675
|
+
readonly ignoreCase: Schema.Boolean;
|
|
676
|
+
readonly kind: Schema.Literal<"text">;
|
|
677
|
+
}>]>;
|
|
678
|
+
readonly kind: Schema.Literal<"short-answer">;
|
|
591
679
|
}>, Schema.Struct<{
|
|
592
680
|
readonly kind: Schema.Literal<"single-choice">;
|
|
593
681
|
readonly options: Schema.$Array<Schema.Struct<{
|
|
@@ -725,6 +813,7 @@ export declare const RollbackRecordSchema: Schema.Struct<{
|
|
|
725
813
|
readonly name: Schema.String;
|
|
726
814
|
}>>;
|
|
727
815
|
readonly description: Schema.optional<Schema.String>;
|
|
816
|
+
readonly searchTitle: Schema.optionalKey<Schema.Trimmed>;
|
|
728
817
|
readonly subject: Schema.optional<Schema.String>;
|
|
729
818
|
readonly title: Schema.String;
|
|
730
819
|
}>;
|
|
@@ -790,6 +879,49 @@ export declare const RollbackRecordSchema: Schema.Struct<{
|
|
|
790
879
|
readonly optionKey: Schema.String;
|
|
791
880
|
readonly order: Schema.Int;
|
|
792
881
|
}>>;
|
|
882
|
+
}>, Schema.Struct<{
|
|
883
|
+
readonly criteria: Schema.$Array<Schema.Struct<{
|
|
884
|
+
readonly criterionKey: Schema.String;
|
|
885
|
+
readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
886
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
887
|
+
readonly kind: Schema.Literal<"number">;
|
|
888
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
889
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
890
|
+
readonly value: Schema.String;
|
|
891
|
+
}>>;
|
|
892
|
+
readonly value: Schema.String;
|
|
893
|
+
}>, Schema.Struct<{
|
|
894
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
895
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
896
|
+
readonly ignoreCase: Schema.Boolean;
|
|
897
|
+
readonly kind: Schema.Literal<"text">;
|
|
898
|
+
}>]>>;
|
|
899
|
+
readonly order: Schema.Int;
|
|
900
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
901
|
+
readonly levels: Schema.$Array<Schema.Struct<{
|
|
902
|
+
readonly levelKey: Schema.String;
|
|
903
|
+
readonly order: Schema.Int;
|
|
904
|
+
readonly points: Schema.Int;
|
|
905
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
906
|
+
}>>;
|
|
907
|
+
}>>;
|
|
908
|
+
readonly kind: Schema.Literal<"rubric">;
|
|
909
|
+
}>, Schema.Struct<{
|
|
910
|
+
readonly key: Schema.Union<readonly [Schema.Struct<{
|
|
911
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
912
|
+
readonly kind: Schema.Literal<"number">;
|
|
913
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
914
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
915
|
+
readonly value: Schema.String;
|
|
916
|
+
}>>;
|
|
917
|
+
readonly value: Schema.String;
|
|
918
|
+
}>, Schema.Struct<{
|
|
919
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
920
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
921
|
+
readonly ignoreCase: Schema.Boolean;
|
|
922
|
+
readonly kind: Schema.Literal<"text">;
|
|
923
|
+
}>]>;
|
|
924
|
+
readonly kind: Schema.Literal<"short-answer">;
|
|
793
925
|
}>, Schema.Struct<{
|
|
794
926
|
readonly kind: Schema.Literal<"single-choice">;
|
|
795
927
|
readonly options: Schema.$Array<Schema.Struct<{
|
|
@@ -925,6 +1057,7 @@ export declare const RollbackRecordSchema: Schema.Struct<{
|
|
|
925
1057
|
readonly name: Schema.String;
|
|
926
1058
|
}>>;
|
|
927
1059
|
readonly description: Schema.optional<Schema.String>;
|
|
1060
|
+
readonly searchTitle: Schema.optionalKey<Schema.Trimmed>;
|
|
928
1061
|
readonly subject: Schema.optional<Schema.String>;
|
|
929
1062
|
readonly title: Schema.String;
|
|
930
1063
|
}>;
|
|
@@ -990,6 +1123,49 @@ export declare const RollbackRecordSchema: Schema.Struct<{
|
|
|
990
1123
|
readonly optionKey: Schema.String;
|
|
991
1124
|
readonly order: Schema.Int;
|
|
992
1125
|
}>>;
|
|
1126
|
+
}>, Schema.Struct<{
|
|
1127
|
+
readonly criteria: Schema.$Array<Schema.Struct<{
|
|
1128
|
+
readonly criterionKey: Schema.String;
|
|
1129
|
+
readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1130
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
1131
|
+
readonly kind: Schema.Literal<"number">;
|
|
1132
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
1133
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
1134
|
+
readonly value: Schema.String;
|
|
1135
|
+
}>>;
|
|
1136
|
+
readonly value: Schema.String;
|
|
1137
|
+
}>, Schema.Struct<{
|
|
1138
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
1139
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
1140
|
+
readonly ignoreCase: Schema.Boolean;
|
|
1141
|
+
readonly kind: Schema.Literal<"text">;
|
|
1142
|
+
}>]>>;
|
|
1143
|
+
readonly order: Schema.Int;
|
|
1144
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
1145
|
+
readonly levels: Schema.$Array<Schema.Struct<{
|
|
1146
|
+
readonly levelKey: Schema.String;
|
|
1147
|
+
readonly order: Schema.Int;
|
|
1148
|
+
readonly points: Schema.Int;
|
|
1149
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
1150
|
+
}>>;
|
|
1151
|
+
}>>;
|
|
1152
|
+
readonly kind: Schema.Literal<"rubric">;
|
|
1153
|
+
}>, Schema.Struct<{
|
|
1154
|
+
readonly key: Schema.Union<readonly [Schema.Struct<{
|
|
1155
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
1156
|
+
readonly kind: Schema.Literal<"number">;
|
|
1157
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
1158
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
1159
|
+
readonly value: Schema.String;
|
|
1160
|
+
}>>;
|
|
1161
|
+
readonly value: Schema.String;
|
|
1162
|
+
}>, Schema.Struct<{
|
|
1163
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
1164
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
1165
|
+
readonly ignoreCase: Schema.Boolean;
|
|
1166
|
+
readonly kind: Schema.Literal<"text">;
|
|
1167
|
+
}>]>;
|
|
1168
|
+
readonly kind: Schema.Literal<"short-answer">;
|
|
993
1169
|
}>, Schema.Struct<{
|
|
994
1170
|
readonly kind: Schema.Literal<"single-choice">;
|
|
995
1171
|
readonly options: Schema.$Array<Schema.Struct<{
|
|
@@ -1139,6 +1315,7 @@ export declare const RollbackPageSchema: Schema.Struct<{
|
|
|
1139
1315
|
readonly name: Schema.String;
|
|
1140
1316
|
}>>;
|
|
1141
1317
|
readonly description: Schema.optional<Schema.String>;
|
|
1318
|
+
readonly searchTitle: Schema.optionalKey<Schema.Trimmed>;
|
|
1142
1319
|
readonly subject: Schema.optional<Schema.String>;
|
|
1143
1320
|
readonly title: Schema.String;
|
|
1144
1321
|
}>;
|
|
@@ -1204,6 +1381,49 @@ export declare const RollbackPageSchema: Schema.Struct<{
|
|
|
1204
1381
|
readonly optionKey: Schema.String;
|
|
1205
1382
|
readonly order: Schema.Int;
|
|
1206
1383
|
}>>;
|
|
1384
|
+
}>, Schema.Struct<{
|
|
1385
|
+
readonly criteria: Schema.$Array<Schema.Struct<{
|
|
1386
|
+
readonly criterionKey: Schema.String;
|
|
1387
|
+
readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1388
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
1389
|
+
readonly kind: Schema.Literal<"number">;
|
|
1390
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
1391
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
1392
|
+
readonly value: Schema.String;
|
|
1393
|
+
}>>;
|
|
1394
|
+
readonly value: Schema.String;
|
|
1395
|
+
}>, Schema.Struct<{
|
|
1396
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
1397
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
1398
|
+
readonly ignoreCase: Schema.Boolean;
|
|
1399
|
+
readonly kind: Schema.Literal<"text">;
|
|
1400
|
+
}>]>>;
|
|
1401
|
+
readonly order: Schema.Int;
|
|
1402
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
1403
|
+
readonly levels: Schema.$Array<Schema.Struct<{
|
|
1404
|
+
readonly levelKey: Schema.String;
|
|
1405
|
+
readonly order: Schema.Int;
|
|
1406
|
+
readonly points: Schema.Int;
|
|
1407
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
1408
|
+
}>>;
|
|
1409
|
+
}>>;
|
|
1410
|
+
readonly kind: Schema.Literal<"rubric">;
|
|
1411
|
+
}>, Schema.Struct<{
|
|
1412
|
+
readonly key: Schema.Union<readonly [Schema.Struct<{
|
|
1413
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
1414
|
+
readonly kind: Schema.Literal<"number">;
|
|
1415
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
1416
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
1417
|
+
readonly value: Schema.String;
|
|
1418
|
+
}>>;
|
|
1419
|
+
readonly value: Schema.String;
|
|
1420
|
+
}>, Schema.Struct<{
|
|
1421
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
1422
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
1423
|
+
readonly ignoreCase: Schema.Boolean;
|
|
1424
|
+
readonly kind: Schema.Literal<"text">;
|
|
1425
|
+
}>]>;
|
|
1426
|
+
readonly kind: Schema.Literal<"short-answer">;
|
|
1207
1427
|
}>, Schema.Struct<{
|
|
1208
1428
|
readonly kind: Schema.Literal<"single-choice">;
|
|
1209
1429
|
readonly options: Schema.$Array<Schema.Struct<{
|
|
@@ -1339,6 +1559,7 @@ export declare const RollbackPageSchema: Schema.Struct<{
|
|
|
1339
1559
|
readonly name: Schema.String;
|
|
1340
1560
|
}>>;
|
|
1341
1561
|
readonly description: Schema.optional<Schema.String>;
|
|
1562
|
+
readonly searchTitle: Schema.optionalKey<Schema.Trimmed>;
|
|
1342
1563
|
readonly subject: Schema.optional<Schema.String>;
|
|
1343
1564
|
readonly title: Schema.String;
|
|
1344
1565
|
}>;
|
|
@@ -1404,6 +1625,49 @@ export declare const RollbackPageSchema: Schema.Struct<{
|
|
|
1404
1625
|
readonly optionKey: Schema.String;
|
|
1405
1626
|
readonly order: Schema.Int;
|
|
1406
1627
|
}>>;
|
|
1628
|
+
}>, Schema.Struct<{
|
|
1629
|
+
readonly criteria: Schema.$Array<Schema.Struct<{
|
|
1630
|
+
readonly criterionKey: Schema.String;
|
|
1631
|
+
readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1632
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
1633
|
+
readonly kind: Schema.Literal<"number">;
|
|
1634
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
1635
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
1636
|
+
readonly value: Schema.String;
|
|
1637
|
+
}>>;
|
|
1638
|
+
readonly value: Schema.String;
|
|
1639
|
+
}>, Schema.Struct<{
|
|
1640
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
1641
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
1642
|
+
readonly ignoreCase: Schema.Boolean;
|
|
1643
|
+
readonly kind: Schema.Literal<"text">;
|
|
1644
|
+
}>]>>;
|
|
1645
|
+
readonly order: Schema.Int;
|
|
1646
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
1647
|
+
readonly levels: Schema.$Array<Schema.Struct<{
|
|
1648
|
+
readonly levelKey: Schema.String;
|
|
1649
|
+
readonly order: Schema.Int;
|
|
1650
|
+
readonly points: Schema.Int;
|
|
1651
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
1652
|
+
}>>;
|
|
1653
|
+
}>>;
|
|
1654
|
+
readonly kind: Schema.Literal<"rubric">;
|
|
1655
|
+
}>, Schema.Struct<{
|
|
1656
|
+
readonly key: Schema.Union<readonly [Schema.Struct<{
|
|
1657
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
1658
|
+
readonly kind: Schema.Literal<"number">;
|
|
1659
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
1660
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
1661
|
+
readonly value: Schema.String;
|
|
1662
|
+
}>>;
|
|
1663
|
+
readonly value: Schema.String;
|
|
1664
|
+
}>, Schema.Struct<{
|
|
1665
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
1666
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
1667
|
+
readonly ignoreCase: Schema.Boolean;
|
|
1668
|
+
readonly kind: Schema.Literal<"text">;
|
|
1669
|
+
}>]>;
|
|
1670
|
+
readonly kind: Schema.Literal<"short-answer">;
|
|
1407
1671
|
}>, Schema.Struct<{
|
|
1408
1672
|
readonly kind: Schema.Literal<"single-choice">;
|
|
1409
1673
|
readonly options: Schema.$Array<Schema.Struct<{
|
|
@@ -294,7 +294,7 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
|
|
|
294
294
|
readonly kind: Schema.Literal<"exam">;
|
|
295
295
|
readonly order: Schema.Finite;
|
|
296
296
|
readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
|
|
297
|
-
readonly scoringStrategy: Schema.Literals<readonly ["irt", "raw"]>;
|
|
297
|
+
readonly scoringStrategy: Schema.Literals<readonly ["irt", "penalized", "raw"]>;
|
|
298
298
|
}>, Schema.Struct<{
|
|
299
299
|
readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
|
|
300
300
|
readonly description: Schema.optional<Schema.String>;
|
|
@@ -316,7 +316,7 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
|
|
|
316
316
|
readonly sectionCount: Schema.Finite;
|
|
317
317
|
readonly setCount: Schema.Finite;
|
|
318
318
|
readonly trackKey: Schema.String;
|
|
319
|
-
readonly trackKind: Schema.Literals<readonly ["subject", "year"]>;
|
|
319
|
+
readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
|
|
320
320
|
readonly visibleSectionCount: Schema.Finite;
|
|
321
321
|
}>, Schema.Struct<{
|
|
322
322
|
readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
|
|
@@ -337,7 +337,7 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
|
|
|
337
337
|
readonly order: Schema.Finite;
|
|
338
338
|
readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
|
|
339
339
|
readonly questionCount: Schema.Finite;
|
|
340
|
-
readonly scoringStrategy: Schema.Literals<readonly ["irt", "raw"]>;
|
|
340
|
+
readonly scoringStrategy: Schema.Literals<readonly ["irt", "penalized", "raw"]>;
|
|
341
341
|
readonly sectionCount: Schema.Finite;
|
|
342
342
|
readonly setKey: Schema.String;
|
|
343
343
|
readonly trackKey: Schema.String;
|
|
@@ -357,6 +357,11 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
|
|
|
357
357
|
readonly countryKey: Schema.String;
|
|
358
358
|
readonly examKey: Schema.String;
|
|
359
359
|
readonly kind: Schema.Literal<"section">;
|
|
360
|
+
readonly marks: Schema.optionalKey<Schema.Struct<{
|
|
361
|
+
readonly blank: Schema.Int;
|
|
362
|
+
readonly correct: Schema.Int;
|
|
363
|
+
readonly wrong: Schema.Int;
|
|
364
|
+
}>>;
|
|
360
365
|
readonly order: Schema.Finite;
|
|
361
366
|
readonly publicPath: Schema.optional<Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">>;
|
|
362
367
|
readonly questionCount: Schema.Finite;
|
|
@@ -391,6 +396,7 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
|
|
|
391
396
|
readonly kind: Schema.Literal<"fixed">;
|
|
392
397
|
readonly language: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraDeliveryLanguage">;
|
|
393
398
|
}>]>;
|
|
399
|
+
readonly points: Schema.optionalKey<Schema.Int>;
|
|
394
400
|
readonly questionArtifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
395
401
|
readonly questionContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
396
402
|
readonly questionOrder: Schema.Finite;
|
|
@@ -417,6 +423,49 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
|
|
|
417
423
|
readonly optionKey: Schema.String;
|
|
418
424
|
readonly order: Schema.Int;
|
|
419
425
|
}>>;
|
|
426
|
+
}>, Schema.Struct<{
|
|
427
|
+
readonly criteria: Schema.$Array<Schema.Struct<{
|
|
428
|
+
readonly criterionKey: Schema.String;
|
|
429
|
+
readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
430
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
431
|
+
readonly kind: Schema.Literal<"number">;
|
|
432
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
433
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
434
|
+
readonly value: Schema.String;
|
|
435
|
+
}>>;
|
|
436
|
+
readonly value: Schema.String;
|
|
437
|
+
}>, Schema.Struct<{
|
|
438
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
439
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
440
|
+
readonly ignoreCase: Schema.Boolean;
|
|
441
|
+
readonly kind: Schema.Literal<"text">;
|
|
442
|
+
}>]>>;
|
|
443
|
+
readonly order: Schema.Int;
|
|
444
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
445
|
+
readonly levels: Schema.$Array<Schema.Struct<{
|
|
446
|
+
readonly levelKey: Schema.String;
|
|
447
|
+
readonly order: Schema.Int;
|
|
448
|
+
readonly points: Schema.Int;
|
|
449
|
+
readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
|
|
450
|
+
}>>;
|
|
451
|
+
}>>;
|
|
452
|
+
readonly kind: Schema.Literal<"rubric">;
|
|
453
|
+
}>, Schema.Struct<{
|
|
454
|
+
readonly key: Schema.Union<readonly [Schema.Struct<{
|
|
455
|
+
readonly acceptsFractions: Schema.Boolean;
|
|
456
|
+
readonly kind: Schema.Literal<"number">;
|
|
457
|
+
readonly tolerance: Schema.optionalKey<Schema.Struct<{
|
|
458
|
+
readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
|
|
459
|
+
readonly value: Schema.String;
|
|
460
|
+
}>>;
|
|
461
|
+
readonly value: Schema.String;
|
|
462
|
+
}>, Schema.Struct<{
|
|
463
|
+
readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
|
|
464
|
+
readonly collapseWhitespace: Schema.Boolean;
|
|
465
|
+
readonly ignoreCase: Schema.Boolean;
|
|
466
|
+
readonly kind: Schema.Literal<"text">;
|
|
467
|
+
}>]>;
|
|
468
|
+
readonly kind: Schema.Literal<"short-answer">;
|
|
420
469
|
}>, Schema.Struct<{
|
|
421
470
|
readonly kind: Schema.Literal<"single-choice">;
|
|
422
471
|
readonly options: Schema.$Array<Schema.Struct<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
-
import { type SnapshotRowSource } from "#contracts/release/snapshot/evidence
|
|
2
|
+
import { type SnapshotRowSource } from "#contracts/release/snapshot/evidence/requirement";
|
|
3
3
|
/** Verifies all program row and snapshot identity evidence. */
|
|
4
4
|
export declare const verifyProgramSnapshotRows: <E, R>(snapshot: {
|
|
5
5
|
readonly family: "program";
|
|
@@ -14,4 +14,4 @@ export declare const verifyProgramSnapshotRows: <E, R>(snapshot: {
|
|
|
14
14
|
readonly format: "localized-program-snapshot";
|
|
15
15
|
readonly snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
16
16
|
};
|
|
17
|
-
}, rows: SnapshotRowSource<E, R>) => Effect.Effect<number, E | import("#contracts/program/snapshot/digest").ProgramDigestError | import("
|
|
17
|
+
}, rows: SnapshotRowSource<E, R>) => Effect.Effect<number, E | import("#contracts/program/snapshot/digest").ProgramDigestError | import("#contracts/program/snapshot/hash").ProgramRowHashError | import("#contracts/program/snapshot/hash").ProgramSnapshotHashError | import("#contracts/release/snapshot/evidence/requirement").SnapshotEvidenceError, R>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect, Result, Stream } from "effect";
|
|
2
2
|
import { digestProgramRows } from "#contracts/program/snapshot/digest";
|
|
3
3
|
import { verifyProgramSnapshotHash } from "#contracts/program/snapshot/hash";
|
|
4
|
-
import { requireSnapshotEvidence, } from "#contracts/release/snapshot/evidence
|
|
4
|
+
import { requireSnapshotEvidence, } from "#contracts/release/snapshot/evidence/requirement";
|
|
5
5
|
/** Selects current program rows while preserving source failures. */
|
|
6
6
|
function programRows(rows) {
|
|
7
7
|
return rows.pipe(Stream.filterMap((row) => row.family === "program" ? Result.succeed(row.record) : Result.failVoid));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
-
import { type SnapshotRowSource } from "#contracts/release/snapshot/evidence
|
|
2
|
+
import { type SnapshotRowSource } from "#contracts/release/snapshot/evidence/requirement";
|
|
3
3
|
/** Verifies all Quran row, digest, binding, and snapshot evidence. */
|
|
4
4
|
export declare const verifyQuranSnapshotRows: <E, R>(snapshot: {
|
|
5
5
|
readonly family: "quran";
|
|
@@ -24,4 +24,4 @@ export declare const verifyQuranSnapshotRows: <E, R>(snapshot: {
|
|
|
24
24
|
readonly format: "localized-quran-snapshot";
|
|
25
25
|
readonly snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
26
26
|
};
|
|
27
|
-
}, rows: SnapshotRowSource<E, R>) => Effect.Effect<number, E | import("
|
|
27
|
+
}, rows: SnapshotRowSource<E, R>) => Effect.Effect<number, E | import("../../../quran/snapshot/row/hash.js").QuranRowHashError | import("#contracts/quran/snapshot/digest").QuranRowIntegrityError | import("#contracts/quran/snapshot/digest").QuranRowOrderError | import("#contracts/quran/snapshot/hash").QuranSnapshotHashError | import("#contracts/release/snapshot/evidence/requirement").SnapshotEvidenceError, R>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect, Result, Stream } from "effect";
|
|
2
2
|
import { digestQuranRows } from "#contracts/quran/snapshot/digest";
|
|
3
3
|
import { verifyQuranSnapshotHash } from "#contracts/quran/snapshot/hash";
|
|
4
|
-
import { requireSnapshotEvidence, } from "#contracts/release/snapshot/evidence
|
|
4
|
+
import { requireSnapshotEvidence, } from "#contracts/release/snapshot/evidence/requirement";
|
|
5
5
|
/** Selects and binds current Quran rows to the manifest identity. */
|
|
6
6
|
function quranRows(rows, snapshotId) {
|
|
7
7
|
return rows.pipe(Stream.filterMap((row) => row.family === "quran" ? Result.succeed(row.record) : Result.failVoid), Stream.mapEffect((record) => requireSnapshotEvidence({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
-
import { type SnapshotRowSource } from "#contracts/release/snapshot/evidence
|
|
2
|
+
import { type SnapshotRowSource } from "#contracts/release/snapshot/evidence/requirement";
|
|
3
3
|
/** Verifies all try-out hashes, digests, counts, routes, and identity. */
|
|
4
4
|
export declare const verifyTryoutSnapshotRows: <E, R>(snapshot: {
|
|
5
5
|
readonly family: "tryout";
|
|
@@ -19,4 +19,4 @@ export declare const verifyTryoutSnapshotRows: <E, R>(snapshot: {
|
|
|
19
19
|
readonly format: "localized-tryout-snapshot";
|
|
20
20
|
readonly snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
21
21
|
};
|
|
22
|
-
}, rows: SnapshotRowSource<E, R>) => Effect.Effect<number, E | import("#contracts/release/snapshot/evidence
|
|
22
|
+
}, rows: SnapshotRowSource<E, R>) => Effect.Effect<number, E | import("#contracts/release/snapshot/evidence/requirement").SnapshotEvidenceError | import("../../../tryout/closure/accounting.js").TryoutClosureError | import("../../../tryout/digest.js").TryoutDigestError | import("../../../tryout/scoring.js").TryoutScoringError, R>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Effect, Result, Stream } from "effect";
|
|
2
|
-
import { requireSnapshotEvidence, } from "#contracts/release/snapshot/evidence
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { digestTryoutPlacements } from "#contracts/tryout/placement
|
|
2
|
+
import { requireSnapshotEvidence, } from "#contracts/release/snapshot/evidence/requirement";
|
|
3
|
+
import { verifyTryoutLocaleClosure } from "#contracts/tryout/closure/locale";
|
|
4
|
+
import { digestTryoutCatalog } from "#contracts/tryout/hash/catalog";
|
|
5
|
+
import { digestTryoutPlacements } from "#contracts/tryout/hash/placement";
|
|
6
6
|
import { makeTryoutSnapshot } from "#contracts/tryout/snapshot/hash";
|
|
7
7
|
/** Selects current hierarchy rows while preserving source failures. */
|
|
8
8
|
function currentTryoutCatalog(rows) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
-
import type { SnapshotRowSource } from "#contracts/release/snapshot/evidence
|
|
2
|
+
import type { SnapshotRowSource } from "#contracts/release/snapshot/evidence/requirement";
|
|
3
3
|
/** Authenticates one replacement manifest through fresh structured-row replays. */
|
|
4
4
|
export declare const verifySnapshotRows: <E, R>(snapshot: {
|
|
5
5
|
readonly family: "program";
|
|
@@ -55,4 +55,4 @@ export declare const verifySnapshotRows: <E, R>(snapshot: {
|
|
|
55
55
|
readonly format: "localized-tryout-snapshot";
|
|
56
56
|
readonly snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
57
57
|
};
|
|
58
|
-
}, rows: SnapshotRowSource<E, R>) => Effect.Effect<number, E | import("../../program/snapshot/digest.js").ProgramDigestError | import("../../program/snapshot/
|
|
58
|
+
}, rows: SnapshotRowSource<E, R>) => Effect.Effect<number, E | import("../../program/snapshot/digest.js").ProgramDigestError | import("../../program/snapshot/hash.js").ProgramRowHashError | import("../../program/snapshot/hash.js").ProgramSnapshotHashError | import("../../quran/snapshot/row/hash.js").QuranRowHashError | import("../../quran/snapshot/digest.js").QuranRowIntegrityError | import("../../quran/snapshot/digest.js").QuranRowOrderError | import("../../quran/snapshot/hash.js").QuranSnapshotHashError | import("#contracts/release/snapshot/evidence/requirement").SnapshotEvidenceError | import("../../tryout/closure/accounting.js").TryoutClosureError | import("../../tryout/digest.js").TryoutDigestError | import("../../tryout/scoring.js").TryoutScoringError, R>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
-
import { verifyProgramSnapshotRows } from "#contracts/release/snapshot/program
|
|
3
|
-
import { verifyQuranSnapshotRows } from "#contracts/release/snapshot/quran
|
|
4
|
-
import { verifyTryoutSnapshotRows } from "#contracts/release/snapshot/tryout
|
|
2
|
+
import { verifyProgramSnapshotRows } from "#contracts/release/snapshot/evidence/program";
|
|
3
|
+
import { verifyQuranSnapshotRows } from "#contracts/release/snapshot/evidence/quran";
|
|
4
|
+
import { verifyTryoutSnapshotRows } from "#contracts/release/snapshot/evidence/tryout";
|
|
5
5
|
/** Authenticates one replacement manifest through fresh structured-row replays. */
|
|
6
6
|
export const verifySnapshotRows = Effect.fn("AksaraContracts.verifySnapshotRows")(function* (snapshot, rows) {
|
|
7
7
|
if (snapshot.family === "program") {
|