@nakafa/aksara-contracts 8.8.0 → 8.10.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.
Files changed (110) hide show
  1. package/dist/assessment/answer.d.ts +2 -0
  2. package/dist/assessment/answer.js +5 -3
  3. package/dist/assessment/choice.d.ts +26 -0
  4. package/dist/assessment/closure.js +2 -1
  5. package/dist/assessment/document.d.ts +39 -0
  6. package/dist/assessment/figure.d.ts +13 -0
  7. package/dist/assessment/fit.d.ts +16 -2
  8. package/dist/assessment/fit.js +23 -5
  9. package/dist/assessment/graphic.d.ts +27 -0
  10. package/dist/assessment/graphic.js +17 -1
  11. package/dist/assessment/hash.d.ts +777 -109
  12. package/dist/assessment/inline.d.ts +53 -0
  13. package/dist/assessment/inline.js +1 -0
  14. package/dist/assessment/interaction.d.ts +44 -1
  15. package/dist/assessment/interaction.js +2 -1
  16. package/dist/assessment/item.d.ts +500 -37
  17. package/dist/assessment/item.js +1 -1
  18. package/dist/assessment/joint.d.ts +4 -3
  19. package/dist/assessment/joint.js +4 -3
  20. package/dist/assessment/key.d.ts +138 -0
  21. package/dist/assessment/key.js +6 -0
  22. package/dist/assessment/paper.d.ts +1006 -90
  23. package/dist/assessment/part.d.ts +13 -0
  24. package/dist/assessment/profile.d.ts +3 -3
  25. package/dist/assessment/profile.js +4 -4
  26. package/dist/assessment/rows.d.ts +621 -39
  27. package/dist/assessment/scoring.d.ts +12 -6
  28. package/dist/assessment/scoring.js +25 -8
  29. package/dist/assessment/sketch.d.ts +125 -0
  30. package/dist/assessment/sketch.js +175 -0
  31. package/dist/assessment/snapshot.d.ts +1479 -91
  32. package/dist/assessment/structure.js +4 -4
  33. package/dist/release/snapshot/data.d.ts +114 -2
  34. package/dist/release/snapshot/verify.d.ts +621 -39
  35. package/dist/transport/group.d.ts +342 -6
  36. package/dist/transport/request.d.ts +4032 -316
  37. package/dist/transport/snapshot.d.ts +228 -4
  38. package/dist/visual/base/math.d.ts +56 -6
  39. package/dist/visual/base/media.d.ts +56 -6
  40. package/dist/visual/biology/bacteria.d.ts +224 -24
  41. package/dist/visual/biology/blood.d.ts +56 -6
  42. package/dist/visual/biology/cell.d.ts +168 -18
  43. package/dist/visual/biology/climate.d.ts +168 -18
  44. package/dist/visual/biology/ecology.d.ts +224 -24
  45. package/dist/visual/biology/heart.d.ts +56 -6
  46. package/dist/visual/biology/mitochondrion.d.ts +56 -6
  47. package/dist/visual/biology/muscle.d.ts +56 -6
  48. package/dist/visual/biology/neuron.d.ts +56 -6
  49. package/dist/visual/biology/paddy.d.ts +56 -6
  50. package/dist/visual/biology/physiology.d.ts +168 -18
  51. package/dist/visual/biology/plant.d.ts +280 -30
  52. package/dist/visual/biology/synapse.d.ts +56 -6
  53. package/dist/visual/biology/vessel.d.ts +56 -6
  54. package/dist/visual/biology/yeast.d.ts +56 -6
  55. package/dist/visual/card.d.ts +56 -6
  56. package/dist/visual/catalog.d.ts +16734 -5484
  57. package/dist/visual/chemistry/atom.d.ts +168 -18
  58. package/dist/visual/chemistry/balance.d.ts +280 -30
  59. package/dist/visual/chemistry/bonding.d.ts +280 -30
  60. package/dist/visual/chemistry/discovery.d.ts +392 -42
  61. package/dist/visual/chemistry/electrochemistry.d.ts +112 -12
  62. package/dist/visual/chemistry/electron.d.ts +112 -12
  63. package/dist/visual/chemistry/laws.d.ts +224 -24
  64. package/dist/visual/chemistry/particles.d.ts +280 -30
  65. package/dist/visual/chemistry/periodic.d.ts +112 -12
  66. package/dist/visual/chemistry/rate.d.ts +56 -6
  67. package/dist/visual/chemistry/reaction.d.ts +168 -18
  68. package/dist/visual/chemistry/titration.d.ts +56 -6
  69. package/dist/visual/length.d.ts +56 -6
  70. package/dist/visual/mathematics/chance.d.ts +168 -18
  71. package/dist/visual/mathematics/chart.d.ts +56 -6
  72. package/dist/visual/mathematics/charts.d.ts +280 -30
  73. package/dist/visual/mathematics/function.d.ts +168 -18
  74. package/dist/visual/mathematics/journey.d.ts +56 -6
  75. package/dist/visual/mathematics/logic.d.ts +56 -6
  76. package/dist/visual/mathematics/network.d.ts +56 -6
  77. package/dist/visual/mathematics/numeral.d.ts +168 -18
  78. package/dist/visual/mathematics/sets.d.ts +56 -6
  79. package/dist/visual/physics/braking.d.ts +224 -24
  80. package/dist/visual/physics/circuit.d.ts +224 -24
  81. package/dist/visual/physics/circular.d.ts +112 -12
  82. package/dist/visual/physics/dynamics.d.ts +392 -42
  83. package/dist/visual/physics/efficiency.d.ts +336 -36
  84. package/dist/visual/physics/electronics.d.ts +168 -18
  85. package/dist/visual/physics/falling.d.ts +224 -24
  86. package/dist/visual/physics/field.d.ts +168 -18
  87. package/dist/visual/physics/fluid.d.ts +224 -24
  88. package/dist/visual/physics/force.d.ts +280 -30
  89. package/dist/visual/physics/gravity.d.ts +112 -12
  90. package/dist/visual/physics/heat.d.ts +168 -18
  91. package/dist/visual/physics/instrument.d.ts +392 -42
  92. package/dist/visual/physics/light.d.ts +224 -24
  93. package/dist/visual/physics/measurement.d.ts +224 -24
  94. package/dist/visual/physics/motion.d.ts +336 -36
  95. package/dist/visual/physics/nuclear.d.ts +168 -18
  96. package/dist/visual/physics/parabolic.d.ts +56 -6
  97. package/dist/visual/physics/position.d.ts +336 -36
  98. package/dist/visual/physics/power.d.ts +448 -48
  99. package/dist/visual/physics/precision.d.ts +392 -42
  100. package/dist/visual/physics/product.d.ts +224 -24
  101. package/dist/visual/physics/reading.d.ts +168 -18
  102. package/dist/visual/physics/record.d.ts +112 -12
  103. package/dist/visual/physics/relative.d.ts +168 -18
  104. package/dist/visual/physics/solar.d.ts +336 -36
  105. package/dist/visual/physics/thermodynamics.d.ts +56 -6
  106. package/dist/visual/physics/vector.d.ts +280 -30
  107. package/dist/visual/physics/velocity.d.ts +392 -42
  108. package/dist/visual/physics/wave.d.ts +224 -24
  109. package/dist/visual/politics.d.ts +336 -36
  110. package/package.json +2 -2
@@ -277,7 +277,7 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
277
277
  readonly seconds: Schema.Int;
278
278
  }>>;
279
279
  readonly defaults: Schema.$Array<Schema.Struct<{
280
- readonly interaction: Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">)[]]>;
280
+ readonly interaction: Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">)[]]>;
281
281
  readonly rule: Schema.Union<readonly [Schema.Struct<{
282
282
  readonly kind: Schema.Literal<"allOrNothing">;
283
283
  }>, Schema.Struct<{
@@ -323,7 +323,7 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
323
323
  }>]>;
324
324
  readonly sections: Schema.NonEmptyArray<Schema.Struct<{
325
325
  readonly id: Schema.String;
326
- readonly interactions: Schema.NonEmptyArray<Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">)[]]>>;
326
+ readonly interactions: Schema.NonEmptyArray<Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">)[]]>>;
327
327
  readonly items: Schema.Int;
328
328
  readonly names: Schema.$Record<Schema.Literals<readonly ["en", "id", "de", "ms"]>, Schema.Trimmed>;
329
329
  readonly navigation: Schema.Literals<readonly ["free", "linear"]>;
@@ -468,6 +468,19 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
468
468
  readonly attrs: Schema.Struct<{
469
469
  readonly latex: Schema.Trimmed;
470
470
  }>;
471
+ readonly marks: Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
472
+ readonly type: Schema.Literals<readonly ["bold", "italic", "underline", "code", "subscript", "superscript"]>;
473
+ }>, Schema.Struct<{
474
+ readonly attrs: Schema.Struct<{
475
+ readonly variant: Schema.NullOr<Schema.Literals<readonly ["success", "warning"]>>;
476
+ }>;
477
+ readonly type: Schema.Literal<"highlight">;
478
+ }>, Schema.Struct<{
479
+ readonly attrs: Schema.Struct<{
480
+ readonly href: Schema.String;
481
+ }>;
482
+ readonly type: Schema.Literal<"link">;
483
+ }>]>>>;
471
484
  readonly type: Schema.Literal<"mathInline">;
472
485
  }>]>>;
473
486
  }>>;
@@ -549,6 +562,19 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
549
562
  readonly attrs: Schema.Struct<{
550
563
  readonly latex: Schema.Trimmed;
551
564
  }>;
565
+ readonly marks: Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
566
+ readonly type: Schema.Literals<readonly ["bold", "italic", "underline", "code", "subscript", "superscript"]>;
567
+ }>, Schema.Struct<{
568
+ readonly attrs: Schema.Struct<{
569
+ readonly variant: Schema.NullOr<Schema.Literals<readonly ["success", "warning"]>>;
570
+ }>;
571
+ readonly type: Schema.Literal<"highlight">;
572
+ }>, Schema.Struct<{
573
+ readonly attrs: Schema.Struct<{
574
+ readonly href: Schema.String;
575
+ }>;
576
+ readonly type: Schema.Literal<"link">;
577
+ }>]>>>;
552
578
  readonly type: Schema.Literal<"mathInline">;
553
579
  }>]>>;
554
580
  readonly maxMatches: Schema.Int;
@@ -581,6 +607,23 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
581
607
  readonly label: Schema.Trimmed;
582
608
  readonly expectedLines: Schema.optionalKey<Schema.Int>;
583
609
  readonly kind: Schema.Literal<"extendedText">;
610
+ }>, Schema.Struct<{
611
+ readonly id: Schema.String;
612
+ readonly label: Schema.Trimmed;
613
+ readonly frame: Schema.Struct<{
614
+ readonly kind: Schema.Literal<"cartesian">;
615
+ readonly x: Schema.Struct<{
616
+ readonly max: Schema.Finite;
617
+ readonly min: Schema.Finite;
618
+ }>;
619
+ readonly y: Schema.Struct<{
620
+ readonly max: Schema.Finite;
621
+ readonly min: Schema.Finite;
622
+ }>;
623
+ }>;
624
+ readonly grid: Schema.optionalKey<Schema.Finite>;
625
+ readonly kind: Schema.Literal<"sketch">;
626
+ readonly marks: Schema.$Array<Schema.Literals<readonly ["asymptote", "point"]>>;
584
627
  }>]>>;
585
628
  readonly joint: Schema.optionalKey<Schema.Struct<{
586
629
  readonly levels: Schema.NonEmptyArray<Schema.Struct<{
@@ -723,12 +766,81 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
723
766
  readonly interaction: Schema.String;
724
767
  readonly criteria: Schema.NonEmptyArray<Schema.Struct<{
725
768
  readonly criterion: Schema.String;
769
+ readonly feedback: Schema.optionalKey<Schema.Struct<{
770
+ readonly earned: Schema.Trimmed;
771
+ readonly missed: Schema.Trimmed;
772
+ }>>;
726
773
  readonly levels: Schema.NonEmptyArray<Schema.Struct<{
727
774
  readonly descriptor: Schema.Trimmed;
728
775
  readonly level: Schema.String;
729
776
  }>>;
730
777
  }>>;
731
778
  readonly kind: Schema.Literal<"extendedText">;
779
+ }>, Schema.Struct<{
780
+ readonly criteria: Schema.NonEmptyArray<Schema.Struct<{
781
+ readonly check: Schema.Struct<{
782
+ readonly feature: Schema.Union<readonly [Schema.Struct<{
783
+ readonly contact: Schema.Literals<readonly ["cross", "touch"]>;
784
+ readonly kind: Schema.Literal<"zero">;
785
+ readonly x: Schema.String;
786
+ }>, Schema.Struct<{
787
+ readonly kind: Schema.Literal<"yIntercept">;
788
+ readonly y: Schema.String;
789
+ }>, Schema.Struct<{
790
+ readonly kind: Schema.Literal<"extremum">;
791
+ readonly turn: Schema.Literals<readonly ["maximum", "minimum"]>;
792
+ readonly x: Schema.String;
793
+ readonly y: Schema.String;
794
+ }>, Schema.Struct<{
795
+ readonly kind: Schema.Literal<"asymptote">;
796
+ readonly line: Schema.Union<readonly [Schema.Struct<{
797
+ readonly kind: Schema.Literal<"vertical">;
798
+ readonly x: Schema.String;
799
+ }>, Schema.Struct<{
800
+ readonly intercept: Schema.String;
801
+ readonly kind: Schema.Literal<"sloped">;
802
+ readonly slope: Schema.String;
803
+ }>]>;
804
+ }>, Schema.Struct<{
805
+ readonly direction: Schema.Literals<readonly ["falling", "rising"]>;
806
+ readonly from: Schema.NullOr<Schema.String>;
807
+ readonly kind: Schema.Literal<"interval">;
808
+ readonly to: Schema.NullOr<Schema.String>;
809
+ }>, Schema.Struct<{
810
+ readonly kind: Schema.Literal<"end">;
811
+ readonly limit: Schema.Union<readonly [Schema.Literals<readonly ["negativeInfinity", "positiveInfinity"]>, Schema.String]>;
812
+ readonly side: Schema.Literals<readonly ["left", "right"]>;
813
+ }>, Schema.Struct<{
814
+ readonly kind: Schema.Literal<"inflection">;
815
+ readonly x: Schema.String;
816
+ readonly y: Schema.String;
817
+ }>, Schema.Struct<{
818
+ readonly end: Schema.optionalKey<Schema.Literals<readonly ["closed", "open"]>>;
819
+ readonly kind: Schema.Literal<"point">;
820
+ readonly x: Schema.String;
821
+ readonly y: Schema.String;
822
+ }>]>;
823
+ readonly kind: Schema.Literal<"feature">;
824
+ }>;
825
+ readonly criterion: Schema.String;
826
+ readonly feedback: Schema.Struct<{
827
+ readonly earned: Schema.Trimmed;
828
+ readonly missed: Schema.Trimmed;
829
+ }>;
830
+ readonly requires: Schema.optionalKey<Schema.NonEmptyArray<Schema.String>>;
831
+ }>>;
832
+ readonly interaction: Schema.String;
833
+ readonly kind: Schema.Literal<"sketch">;
834
+ readonly tolerances: Schema.Struct<{
835
+ readonly asymptote: Schema.optionalKey<Schema.String>;
836
+ readonly end: Schema.optionalKey<Schema.String>;
837
+ readonly extremum: Schema.optionalKey<Schema.String>;
838
+ readonly inflection: Schema.optionalKey<Schema.String>;
839
+ readonly interval: Schema.optionalKey<Schema.String>;
840
+ readonly point: Schema.optionalKey<Schema.String>;
841
+ readonly yIntercept: Schema.optionalKey<Schema.String>;
842
+ readonly zero: Schema.optionalKey<Schema.String>;
843
+ }>;
732
844
  }>]>>;
733
845
  readonly version: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
734
846
  }>;
@@ -1111,7 +1223,7 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
1111
1223
  readonly seconds: Schema.Int;
1112
1224
  }>>;
1113
1225
  readonly defaults: Schema.$Array<Schema.Struct<{
1114
- readonly interaction: Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">)[]]>;
1226
+ readonly interaction: Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">)[]]>;
1115
1227
  readonly rule: Schema.Union<readonly [Schema.Struct<{
1116
1228
  readonly kind: Schema.Literal<"allOrNothing">;
1117
1229
  }>, Schema.Struct<{
@@ -1157,7 +1269,7 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
1157
1269
  }>]>;
1158
1270
  readonly sections: Schema.NonEmptyArray<Schema.Struct<{
1159
1271
  readonly id: Schema.String;
1160
- readonly interactions: Schema.NonEmptyArray<Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">)[]]>>;
1272
+ readonly interactions: Schema.NonEmptyArray<Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">)[]]>>;
1161
1273
  readonly items: Schema.Int;
1162
1274
  readonly names: Schema.$Record<Schema.Literals<readonly ["en", "id", "de", "ms"]>, Schema.Trimmed>;
1163
1275
  readonly navigation: Schema.Literals<readonly ["free", "linear"]>;
@@ -1302,6 +1414,19 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
1302
1414
  readonly attrs: Schema.Struct<{
1303
1415
  readonly latex: Schema.Trimmed;
1304
1416
  }>;
1417
+ readonly marks: Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
1418
+ readonly type: Schema.Literals<readonly ["bold", "italic", "underline", "code", "subscript", "superscript"]>;
1419
+ }>, Schema.Struct<{
1420
+ readonly attrs: Schema.Struct<{
1421
+ readonly variant: Schema.NullOr<Schema.Literals<readonly ["success", "warning"]>>;
1422
+ }>;
1423
+ readonly type: Schema.Literal<"highlight">;
1424
+ }>, Schema.Struct<{
1425
+ readonly attrs: Schema.Struct<{
1426
+ readonly href: Schema.String;
1427
+ }>;
1428
+ readonly type: Schema.Literal<"link">;
1429
+ }>]>>>;
1305
1430
  readonly type: Schema.Literal<"mathInline">;
1306
1431
  }>]>>;
1307
1432
  }>>;
@@ -1383,6 +1508,19 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
1383
1508
  readonly attrs: Schema.Struct<{
1384
1509
  readonly latex: Schema.Trimmed;
1385
1510
  }>;
1511
+ readonly marks: Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
1512
+ readonly type: Schema.Literals<readonly ["bold", "italic", "underline", "code", "subscript", "superscript"]>;
1513
+ }>, Schema.Struct<{
1514
+ readonly attrs: Schema.Struct<{
1515
+ readonly variant: Schema.NullOr<Schema.Literals<readonly ["success", "warning"]>>;
1516
+ }>;
1517
+ readonly type: Schema.Literal<"highlight">;
1518
+ }>, Schema.Struct<{
1519
+ readonly attrs: Schema.Struct<{
1520
+ readonly href: Schema.String;
1521
+ }>;
1522
+ readonly type: Schema.Literal<"link">;
1523
+ }>]>>>;
1386
1524
  readonly type: Schema.Literal<"mathInline">;
1387
1525
  }>]>>;
1388
1526
  readonly maxMatches: Schema.Int;
@@ -1415,6 +1553,23 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
1415
1553
  readonly label: Schema.Trimmed;
1416
1554
  readonly expectedLines: Schema.optionalKey<Schema.Int>;
1417
1555
  readonly kind: Schema.Literal<"extendedText">;
1556
+ }>, Schema.Struct<{
1557
+ readonly id: Schema.String;
1558
+ readonly label: Schema.Trimmed;
1559
+ readonly frame: Schema.Struct<{
1560
+ readonly kind: Schema.Literal<"cartesian">;
1561
+ readonly x: Schema.Struct<{
1562
+ readonly max: Schema.Finite;
1563
+ readonly min: Schema.Finite;
1564
+ }>;
1565
+ readonly y: Schema.Struct<{
1566
+ readonly max: Schema.Finite;
1567
+ readonly min: Schema.Finite;
1568
+ }>;
1569
+ }>;
1570
+ readonly grid: Schema.optionalKey<Schema.Finite>;
1571
+ readonly kind: Schema.Literal<"sketch">;
1572
+ readonly marks: Schema.$Array<Schema.Literals<readonly ["asymptote", "point"]>>;
1418
1573
  }>]>>;
1419
1574
  readonly joint: Schema.optionalKey<Schema.Struct<{
1420
1575
  readonly levels: Schema.NonEmptyArray<Schema.Struct<{
@@ -1557,12 +1712,81 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
1557
1712
  readonly interaction: Schema.String;
1558
1713
  readonly criteria: Schema.NonEmptyArray<Schema.Struct<{
1559
1714
  readonly criterion: Schema.String;
1715
+ readonly feedback: Schema.optionalKey<Schema.Struct<{
1716
+ readonly earned: Schema.Trimmed;
1717
+ readonly missed: Schema.Trimmed;
1718
+ }>>;
1560
1719
  readonly levels: Schema.NonEmptyArray<Schema.Struct<{
1561
1720
  readonly descriptor: Schema.Trimmed;
1562
1721
  readonly level: Schema.String;
1563
1722
  }>>;
1564
1723
  }>>;
1565
1724
  readonly kind: Schema.Literal<"extendedText">;
1725
+ }>, Schema.Struct<{
1726
+ readonly criteria: Schema.NonEmptyArray<Schema.Struct<{
1727
+ readonly check: Schema.Struct<{
1728
+ readonly feature: Schema.Union<readonly [Schema.Struct<{
1729
+ readonly contact: Schema.Literals<readonly ["cross", "touch"]>;
1730
+ readonly kind: Schema.Literal<"zero">;
1731
+ readonly x: Schema.String;
1732
+ }>, Schema.Struct<{
1733
+ readonly kind: Schema.Literal<"yIntercept">;
1734
+ readonly y: Schema.String;
1735
+ }>, Schema.Struct<{
1736
+ readonly kind: Schema.Literal<"extremum">;
1737
+ readonly turn: Schema.Literals<readonly ["maximum", "minimum"]>;
1738
+ readonly x: Schema.String;
1739
+ readonly y: Schema.String;
1740
+ }>, Schema.Struct<{
1741
+ readonly kind: Schema.Literal<"asymptote">;
1742
+ readonly line: Schema.Union<readonly [Schema.Struct<{
1743
+ readonly kind: Schema.Literal<"vertical">;
1744
+ readonly x: Schema.String;
1745
+ }>, Schema.Struct<{
1746
+ readonly intercept: Schema.String;
1747
+ readonly kind: Schema.Literal<"sloped">;
1748
+ readonly slope: Schema.String;
1749
+ }>]>;
1750
+ }>, Schema.Struct<{
1751
+ readonly direction: Schema.Literals<readonly ["falling", "rising"]>;
1752
+ readonly from: Schema.NullOr<Schema.String>;
1753
+ readonly kind: Schema.Literal<"interval">;
1754
+ readonly to: Schema.NullOr<Schema.String>;
1755
+ }>, Schema.Struct<{
1756
+ readonly kind: Schema.Literal<"end">;
1757
+ readonly limit: Schema.Union<readonly [Schema.Literals<readonly ["negativeInfinity", "positiveInfinity"]>, Schema.String]>;
1758
+ readonly side: Schema.Literals<readonly ["left", "right"]>;
1759
+ }>, Schema.Struct<{
1760
+ readonly kind: Schema.Literal<"inflection">;
1761
+ readonly x: Schema.String;
1762
+ readonly y: Schema.String;
1763
+ }>, Schema.Struct<{
1764
+ readonly end: Schema.optionalKey<Schema.Literals<readonly ["closed", "open"]>>;
1765
+ readonly kind: Schema.Literal<"point">;
1766
+ readonly x: Schema.String;
1767
+ readonly y: Schema.String;
1768
+ }>]>;
1769
+ readonly kind: Schema.Literal<"feature">;
1770
+ }>;
1771
+ readonly criterion: Schema.String;
1772
+ readonly feedback: Schema.Struct<{
1773
+ readonly earned: Schema.Trimmed;
1774
+ readonly missed: Schema.Trimmed;
1775
+ }>;
1776
+ readonly requires: Schema.optionalKey<Schema.NonEmptyArray<Schema.String>>;
1777
+ }>>;
1778
+ readonly interaction: Schema.String;
1779
+ readonly kind: Schema.Literal<"sketch">;
1780
+ readonly tolerances: Schema.Struct<{
1781
+ readonly asymptote: Schema.optionalKey<Schema.String>;
1782
+ readonly end: Schema.optionalKey<Schema.String>;
1783
+ readonly extremum: Schema.optionalKey<Schema.String>;
1784
+ readonly inflection: Schema.optionalKey<Schema.String>;
1785
+ readonly interval: Schema.optionalKey<Schema.String>;
1786
+ readonly point: Schema.optionalKey<Schema.String>;
1787
+ readonly yIntercept: Schema.optionalKey<Schema.String>;
1788
+ readonly zero: Schema.optionalKey<Schema.String>;
1789
+ }>;
1566
1790
  }>]>>;
1567
1791
  readonly version: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
1568
1792
  }>;
@@ -18,11 +18,64 @@ export declare function mathVisuals<E>(rich: RichSlot<E>): {
18
18
  MathVisual: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
19
19
  readonly description: RichSlot<E>;
20
20
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
21
+ readonly marks?: readonly [{
22
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
23
+ } | {
24
+ readonly attrs: {
25
+ readonly href: string;
26
+ };
27
+ readonly type: "link";
28
+ } | {
29
+ readonly attrs: {
30
+ readonly variant: "success" | "warning" | null;
31
+ };
32
+ readonly type: "highlight";
33
+ }, ...({
34
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
35
+ } | {
36
+ readonly attrs: {
37
+ readonly href: string;
38
+ };
39
+ readonly type: "link";
40
+ } | {
41
+ readonly attrs: {
42
+ readonly variant: "success" | "warning" | null;
43
+ };
44
+ readonly type: "highlight";
45
+ })[]];
46
+ readonly text: string;
47
+ readonly type: "text";
48
+ } | {
21
49
  readonly attrs: {
22
50
  readonly latex: string;
23
51
  };
52
+ readonly marks?: readonly [{
53
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
54
+ } | {
55
+ readonly attrs: {
56
+ readonly href: string;
57
+ };
58
+ readonly type: "link";
59
+ } | {
60
+ readonly attrs: {
61
+ readonly variant: "success" | "warning" | null;
62
+ };
63
+ readonly type: "highlight";
64
+ }, ...({
65
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
66
+ } | {
67
+ readonly attrs: {
68
+ readonly href: string;
69
+ };
70
+ readonly type: "link";
71
+ } | {
72
+ readonly attrs: {
73
+ readonly variant: "success" | "warning" | null;
74
+ };
75
+ readonly type: "highlight";
76
+ })[]];
24
77
  readonly type: "mathInline";
25
- } | {
78
+ }, ...({
26
79
  readonly marks?: readonly [{
27
80
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
28
81
  } | {
@@ -50,12 +103,10 @@ export declare function mathVisuals<E>(rich: RichSlot<E>): {
50
103
  })[]];
51
104
  readonly text: string;
52
105
  readonly type: "text";
53
- }, ...({
106
+ } | {
54
107
  readonly attrs: {
55
108
  readonly latex: string;
56
109
  };
57
- readonly type: "mathInline";
58
- } | {
59
110
  readonly marks?: readonly [{
60
111
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
61
112
  } | {
@@ -81,8 +132,7 @@ export declare function mathVisuals<E>(rich: RichSlot<E>): {
81
132
  };
82
133
  readonly type: "highlight";
83
134
  })[]];
84
- readonly text: string;
85
- readonly type: "text";
135
+ readonly type: "mathInline";
86
136
  })[]], E, never, never>>;
87
137
  readonly title: RichSlot<E>;
88
138
  readonly labels: Schema.optionalKey<Schema.$Record<Schema.String, RichSlot<E>>>;
@@ -5,11 +5,64 @@ export declare function mediaVisuals<E>(rich: RichSlot<E>): {
5
5
  Mermaid: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
6
6
  readonly description: RichSlot<E>;
7
7
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
8
+ readonly marks?: readonly [{
9
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
10
+ } | {
11
+ readonly attrs: {
12
+ readonly href: string;
13
+ };
14
+ readonly type: "link";
15
+ } | {
16
+ readonly attrs: {
17
+ readonly variant: "success" | "warning" | null;
18
+ };
19
+ readonly type: "highlight";
20
+ }, ...({
21
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
22
+ } | {
23
+ readonly attrs: {
24
+ readonly href: string;
25
+ };
26
+ readonly type: "link";
27
+ } | {
28
+ readonly attrs: {
29
+ readonly variant: "success" | "warning" | null;
30
+ };
31
+ readonly type: "highlight";
32
+ })[]];
33
+ readonly text: string;
34
+ readonly type: "text";
35
+ } | {
8
36
  readonly attrs: {
9
37
  readonly latex: string;
10
38
  };
39
+ readonly marks?: readonly [{
40
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
41
+ } | {
42
+ readonly attrs: {
43
+ readonly href: string;
44
+ };
45
+ readonly type: "link";
46
+ } | {
47
+ readonly attrs: {
48
+ readonly variant: "success" | "warning" | null;
49
+ };
50
+ readonly type: "highlight";
51
+ }, ...({
52
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
53
+ } | {
54
+ readonly attrs: {
55
+ readonly href: string;
56
+ };
57
+ readonly type: "link";
58
+ } | {
59
+ readonly attrs: {
60
+ readonly variant: "success" | "warning" | null;
61
+ };
62
+ readonly type: "highlight";
63
+ })[]];
11
64
  readonly type: "mathInline";
12
- } | {
65
+ }, ...({
13
66
  readonly marks?: readonly [{
14
67
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
15
68
  } | {
@@ -37,12 +90,10 @@ export declare function mediaVisuals<E>(rich: RichSlot<E>): {
37
90
  })[]];
38
91
  readonly text: string;
39
92
  readonly type: "text";
40
- }, ...({
93
+ } | {
41
94
  readonly attrs: {
42
95
  readonly latex: string;
43
96
  };
44
- readonly type: "mathInline";
45
- } | {
46
97
  readonly marks?: readonly [{
47
98
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
48
99
  } | {
@@ -68,8 +119,7 @@ export declare function mediaVisuals<E>(rich: RichSlot<E>): {
68
119
  };
69
120
  readonly type: "highlight";
70
121
  })[]];
71
- readonly text: string;
72
- readonly type: "text";
122
+ readonly type: "mathInline";
73
123
  })[]], E, never, never>>;
74
124
  readonly title: RichSlot<E>;
75
125
  readonly chart: Schema.String;