@nakafa/aksara-contracts 8.8.0 → 8.9.1

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.
@@ -24,11 +24,11 @@ function withoutFields(value, fields) {
24
24
  }
25
25
  /**
26
26
  * The fields of an answer key that hold the words of a language: the accepted
27
- * texts of a text entry and the descriptors of a rubric. Everything else in a
28
- * key, such as a choice, a number, or a tolerance, is the same in every
29
- * language of an item.
27
+ * texts of a text entry, the descriptors of a rubric, and the feedback of a
28
+ * sketch's criteria. Everything else in a key, such as a choice, a number, a
29
+ * feature, or a tolerance, is the same in every language of an item.
30
30
  */
31
- const KEY_WORD_FIELDS = HashSet.make("acceptedAnswers", "descriptor");
31
+ const KEY_WORD_FIELDS = HashSet.make("acceptedAnswers", "descriptor", "feedback");
32
32
  /**
33
33
  * Checks that every answer key has the shape of the first apart from its
34
34
  * words, so the language versions of one item agree on every answer and differ
@@ -210,7 +210,7 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
210
210
  readonly seconds: Schema.Int;
211
211
  }>>;
212
212
  readonly defaults: Schema.$Array<Schema.Struct<{
213
- 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">)[]]>;
213
+ 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">)[]]>;
214
214
  readonly rule: Schema.Union<readonly [Schema.Struct<{
215
215
  readonly kind: Schema.Literal<"allOrNothing">;
216
216
  }>, Schema.Struct<{
@@ -256,7 +256,7 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
256
256
  }>]>;
257
257
  readonly sections: Schema.NonEmptyArray<Schema.Struct<{
258
258
  readonly id: Schema.String;
259
- 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">)[]]>>;
259
+ 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">)[]]>>;
260
260
  readonly items: Schema.Int;
261
261
  readonly names: Schema.$Record<Schema.Literals<readonly ["en", "id", "de", "ms"]>, Schema.Trimmed>;
262
262
  readonly navigation: Schema.Literals<readonly ["free", "linear"]>;
@@ -514,6 +514,23 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
514
514
  readonly label: Schema.Trimmed;
515
515
  readonly expectedLines: Schema.optionalKey<Schema.Int>;
516
516
  readonly kind: Schema.Literal<"extendedText">;
517
+ }>, Schema.Struct<{
518
+ readonly id: Schema.String;
519
+ readonly label: Schema.Trimmed;
520
+ readonly frame: Schema.Struct<{
521
+ readonly kind: Schema.Literal<"cartesian">;
522
+ readonly x: Schema.Struct<{
523
+ readonly max: Schema.Finite;
524
+ readonly min: Schema.Finite;
525
+ }>;
526
+ readonly y: Schema.Struct<{
527
+ readonly max: Schema.Finite;
528
+ readonly min: Schema.Finite;
529
+ }>;
530
+ }>;
531
+ readonly grid: Schema.optionalKey<Schema.Finite>;
532
+ readonly kind: Schema.Literal<"sketch">;
533
+ readonly marks: Schema.$Array<Schema.Literals<readonly ["asymptote", "point"]>>;
517
534
  }>]>>;
518
535
  readonly joint: Schema.optionalKey<Schema.Struct<{
519
536
  readonly levels: Schema.NonEmptyArray<Schema.Struct<{
@@ -656,12 +673,81 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
656
673
  readonly interaction: Schema.String;
657
674
  readonly criteria: Schema.NonEmptyArray<Schema.Struct<{
658
675
  readonly criterion: Schema.String;
676
+ readonly feedback: Schema.optionalKey<Schema.Struct<{
677
+ readonly earned: Schema.Trimmed;
678
+ readonly missed: Schema.Trimmed;
679
+ }>>;
659
680
  readonly levels: Schema.NonEmptyArray<Schema.Struct<{
660
681
  readonly descriptor: Schema.Trimmed;
661
682
  readonly level: Schema.String;
662
683
  }>>;
663
684
  }>>;
664
685
  readonly kind: Schema.Literal<"extendedText">;
686
+ }>, Schema.Struct<{
687
+ readonly criteria: Schema.NonEmptyArray<Schema.Struct<{
688
+ readonly check: Schema.Struct<{
689
+ readonly feature: Schema.Union<readonly [Schema.Struct<{
690
+ readonly contact: Schema.Literals<readonly ["cross", "touch"]>;
691
+ readonly kind: Schema.Literal<"zero">;
692
+ readonly x: Schema.String;
693
+ }>, Schema.Struct<{
694
+ readonly kind: Schema.Literal<"yIntercept">;
695
+ readonly y: Schema.String;
696
+ }>, Schema.Struct<{
697
+ readonly kind: Schema.Literal<"extremum">;
698
+ readonly turn: Schema.Literals<readonly ["maximum", "minimum"]>;
699
+ readonly x: Schema.String;
700
+ readonly y: Schema.String;
701
+ }>, Schema.Struct<{
702
+ readonly kind: Schema.Literal<"asymptote">;
703
+ readonly line: Schema.Union<readonly [Schema.Struct<{
704
+ readonly kind: Schema.Literal<"vertical">;
705
+ readonly x: Schema.String;
706
+ }>, Schema.Struct<{
707
+ readonly intercept: Schema.String;
708
+ readonly kind: Schema.Literal<"sloped">;
709
+ readonly slope: Schema.String;
710
+ }>]>;
711
+ }>, Schema.Struct<{
712
+ readonly direction: Schema.Literals<readonly ["falling", "rising"]>;
713
+ readonly from: Schema.NullOr<Schema.String>;
714
+ readonly kind: Schema.Literal<"interval">;
715
+ readonly to: Schema.NullOr<Schema.String>;
716
+ }>, Schema.Struct<{
717
+ readonly kind: Schema.Literal<"end">;
718
+ readonly limit: Schema.Union<readonly [Schema.Literals<readonly ["negativeInfinity", "positiveInfinity"]>, Schema.String]>;
719
+ readonly side: Schema.Literals<readonly ["left", "right"]>;
720
+ }>, Schema.Struct<{
721
+ readonly kind: Schema.Literal<"inflection">;
722
+ readonly x: Schema.String;
723
+ readonly y: Schema.String;
724
+ }>, Schema.Struct<{
725
+ readonly end: Schema.optionalKey<Schema.Literals<readonly ["closed", "open"]>>;
726
+ readonly kind: Schema.Literal<"point">;
727
+ readonly x: Schema.String;
728
+ readonly y: Schema.String;
729
+ }>]>;
730
+ readonly kind: Schema.Literal<"feature">;
731
+ }>;
732
+ readonly criterion: Schema.String;
733
+ readonly feedback: Schema.Struct<{
734
+ readonly earned: Schema.Trimmed;
735
+ readonly missed: Schema.Trimmed;
736
+ }>;
737
+ readonly requires: Schema.optionalKey<Schema.NonEmptyArray<Schema.String>>;
738
+ }>>;
739
+ readonly interaction: Schema.String;
740
+ readonly kind: Schema.Literal<"sketch">;
741
+ readonly tolerances: Schema.Struct<{
742
+ readonly asymptote: Schema.optionalKey<Schema.String>;
743
+ readonly end: Schema.optionalKey<Schema.String>;
744
+ readonly extremum: Schema.optionalKey<Schema.String>;
745
+ readonly inflection: Schema.optionalKey<Schema.String>;
746
+ readonly interval: Schema.optionalKey<Schema.String>;
747
+ readonly point: Schema.optionalKey<Schema.String>;
748
+ readonly yIntercept: Schema.optionalKey<Schema.String>;
749
+ readonly zero: Schema.optionalKey<Schema.String>;
750
+ }>;
665
751
  }>]>>;
666
752
  readonly version: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
667
753
  }>;
@@ -290,7 +290,7 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
290
290
  readonly seconds: number;
291
291
  }[];
292
292
  readonly defaults: readonly {
293
- readonly interaction: "choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "textEntry";
293
+ readonly interaction: "choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "sketch" | "textEntry";
294
294
  readonly rule: {
295
295
  readonly kind: "allOrNothing";
296
296
  } | {
@@ -349,7 +349,7 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
349
349
  };
350
350
  readonly sections: readonly [{
351
351
  readonly id: string;
352
- readonly interactions: readonly ["choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "textEntry", ...("choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "textEntry")[]];
352
+ readonly interactions: readonly ["choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "sketch" | "textEntry", ...("choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "sketch" | "textEntry")[]];
353
353
  readonly items: number;
354
354
  readonly names: {
355
355
  readonly de: string;
@@ -362,7 +362,7 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
362
362
  readonly tools: readonly ("calculator-basic" | "calculator-graphing" | "calculator-scientific" | "formula-sheet" | "hide-timer" | "highlighter" | "line-reader" | "mark-for-review" | "notes" | "option-eliminator" | "text-to-speech" | "zoom")[];
363
363
  }, ...{
364
364
  readonly id: string;
365
- readonly interactions: readonly ["choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "textEntry", ...("choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "textEntry")[]];
365
+ readonly interactions: readonly ["choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "sketch" | "textEntry", ...("choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "sketch" | "textEntry")[]];
366
366
  readonly items: number;
367
367
  readonly names: {
368
368
  readonly de: string;
@@ -841,6 +841,23 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
841
841
  readonly kind: "graphPoint";
842
842
  readonly placing: "lines" | "points";
843
843
  readonly snap?: number;
844
+ } | {
845
+ readonly id: string;
846
+ readonly label: string;
847
+ readonly frame: {
848
+ readonly kind: "cartesian";
849
+ readonly x: {
850
+ readonly max: number;
851
+ readonly min: number;
852
+ };
853
+ readonly y: {
854
+ readonly max: number;
855
+ readonly min: number;
856
+ };
857
+ };
858
+ readonly grid?: number;
859
+ readonly kind: "sketch";
860
+ readonly marks: readonly ("asymptote" | "point")[];
844
861
  }, ...({
845
862
  readonly id: string;
846
863
  readonly label: string;
@@ -1230,6 +1247,23 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
1230
1247
  readonly kind: "graphPoint";
1231
1248
  readonly placing: "lines" | "points";
1232
1249
  readonly snap?: number;
1250
+ } | {
1251
+ readonly id: string;
1252
+ readonly label: string;
1253
+ readonly frame: {
1254
+ readonly kind: "cartesian";
1255
+ readonly x: {
1256
+ readonly max: number;
1257
+ readonly min: number;
1258
+ };
1259
+ readonly y: {
1260
+ readonly max: number;
1261
+ readonly min: number;
1262
+ };
1263
+ };
1264
+ readonly grid?: number;
1265
+ readonly kind: "sketch";
1266
+ readonly marks: readonly ("asymptote" | "point")[];
1233
1267
  })[]];
1234
1268
  readonly joint?: {
1235
1269
  readonly levels: readonly [{
@@ -1303,6 +1337,122 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
1303
1337
  } | {
1304
1338
  readonly key: {
1305
1339
  readonly answers: readonly [{
1340
+ readonly criteria: readonly [{
1341
+ readonly check: {
1342
+ readonly feature: {
1343
+ readonly contact: "cross" | "touch";
1344
+ readonly kind: "zero";
1345
+ readonly x: string;
1346
+ } | {
1347
+ readonly kind: "yIntercept";
1348
+ readonly y: string;
1349
+ } | {
1350
+ readonly kind: "extremum";
1351
+ readonly turn: "maximum" | "minimum";
1352
+ readonly x: string;
1353
+ readonly y: string;
1354
+ } | {
1355
+ readonly kind: "asymptote";
1356
+ readonly line: {
1357
+ readonly kind: "vertical";
1358
+ readonly x: string;
1359
+ } | {
1360
+ readonly intercept: string;
1361
+ readonly kind: "sloped";
1362
+ readonly slope: string;
1363
+ };
1364
+ } | {
1365
+ readonly direction: "falling" | "rising";
1366
+ readonly from: string | null;
1367
+ readonly kind: "interval";
1368
+ readonly to: string | null;
1369
+ } | {
1370
+ readonly kind: "end";
1371
+ readonly limit: string;
1372
+ readonly side: "left" | "right";
1373
+ } | {
1374
+ readonly kind: "inflection";
1375
+ readonly x: string;
1376
+ readonly y: string;
1377
+ } | {
1378
+ readonly end?: "closed" | "open";
1379
+ readonly kind: "point";
1380
+ readonly x: string;
1381
+ readonly y: string;
1382
+ };
1383
+ readonly kind: "feature";
1384
+ };
1385
+ readonly criterion: string;
1386
+ readonly feedback: {
1387
+ readonly earned: string;
1388
+ readonly missed: string;
1389
+ };
1390
+ readonly requires?: readonly [string, ...string[]];
1391
+ }, ...{
1392
+ readonly check: {
1393
+ readonly feature: {
1394
+ readonly contact: "cross" | "touch";
1395
+ readonly kind: "zero";
1396
+ readonly x: string;
1397
+ } | {
1398
+ readonly kind: "yIntercept";
1399
+ readonly y: string;
1400
+ } | {
1401
+ readonly kind: "extremum";
1402
+ readonly turn: "maximum" | "minimum";
1403
+ readonly x: string;
1404
+ readonly y: string;
1405
+ } | {
1406
+ readonly kind: "asymptote";
1407
+ readonly line: {
1408
+ readonly kind: "vertical";
1409
+ readonly x: string;
1410
+ } | {
1411
+ readonly intercept: string;
1412
+ readonly kind: "sloped";
1413
+ readonly slope: string;
1414
+ };
1415
+ } | {
1416
+ readonly direction: "falling" | "rising";
1417
+ readonly from: string | null;
1418
+ readonly kind: "interval";
1419
+ readonly to: string | null;
1420
+ } | {
1421
+ readonly kind: "end";
1422
+ readonly limit: string;
1423
+ readonly side: "left" | "right";
1424
+ } | {
1425
+ readonly kind: "inflection";
1426
+ readonly x: string;
1427
+ readonly y: string;
1428
+ } | {
1429
+ readonly end?: "closed" | "open";
1430
+ readonly kind: "point";
1431
+ readonly x: string;
1432
+ readonly y: string;
1433
+ };
1434
+ readonly kind: "feature";
1435
+ };
1436
+ readonly criterion: string;
1437
+ readonly feedback: {
1438
+ readonly earned: string;
1439
+ readonly missed: string;
1440
+ };
1441
+ readonly requires?: readonly [string, ...string[]];
1442
+ }[]];
1443
+ readonly interaction: string;
1444
+ readonly kind: "sketch";
1445
+ readonly tolerances: {
1446
+ readonly asymptote?: string;
1447
+ readonly end?: string;
1448
+ readonly extremum?: string;
1449
+ readonly inflection?: string;
1450
+ readonly interval?: string;
1451
+ readonly point?: string;
1452
+ readonly yIntercept?: string;
1453
+ readonly zero?: string;
1454
+ };
1455
+ } | {
1306
1456
  readonly interaction: string;
1307
1457
  readonly correct: readonly [string, ...string[]];
1308
1458
  readonly kind: "choice";
@@ -1398,6 +1548,10 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
1398
1548
  readonly interaction: string;
1399
1549
  readonly criteria: readonly [{
1400
1550
  readonly criterion: string;
1551
+ readonly feedback?: {
1552
+ readonly earned: string;
1553
+ readonly missed: string;
1554
+ };
1401
1555
  readonly levels: readonly [{
1402
1556
  readonly descriptor: string;
1403
1557
  readonly level: string;
@@ -1407,6 +1561,10 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
1407
1561
  }[]];
1408
1562
  }, ...{
1409
1563
  readonly criterion: string;
1564
+ readonly feedback?: {
1565
+ readonly earned: string;
1566
+ readonly missed: string;
1567
+ };
1410
1568
  readonly levels: readonly [{
1411
1569
  readonly descriptor: string;
1412
1570
  readonly level: string;
@@ -1425,6 +1583,122 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
1425
1583
  };
1426
1584
  readonly value: string;
1427
1585
  }, ...({
1586
+ readonly criteria: readonly [{
1587
+ readonly check: {
1588
+ readonly feature: {
1589
+ readonly contact: "cross" | "touch";
1590
+ readonly kind: "zero";
1591
+ readonly x: string;
1592
+ } | {
1593
+ readonly kind: "yIntercept";
1594
+ readonly y: string;
1595
+ } | {
1596
+ readonly kind: "extremum";
1597
+ readonly turn: "maximum" | "minimum";
1598
+ readonly x: string;
1599
+ readonly y: string;
1600
+ } | {
1601
+ readonly kind: "asymptote";
1602
+ readonly line: {
1603
+ readonly kind: "vertical";
1604
+ readonly x: string;
1605
+ } | {
1606
+ readonly intercept: string;
1607
+ readonly kind: "sloped";
1608
+ readonly slope: string;
1609
+ };
1610
+ } | {
1611
+ readonly direction: "falling" | "rising";
1612
+ readonly from: string | null;
1613
+ readonly kind: "interval";
1614
+ readonly to: string | null;
1615
+ } | {
1616
+ readonly kind: "end";
1617
+ readonly limit: string;
1618
+ readonly side: "left" | "right";
1619
+ } | {
1620
+ readonly kind: "inflection";
1621
+ readonly x: string;
1622
+ readonly y: string;
1623
+ } | {
1624
+ readonly end?: "closed" | "open";
1625
+ readonly kind: "point";
1626
+ readonly x: string;
1627
+ readonly y: string;
1628
+ };
1629
+ readonly kind: "feature";
1630
+ };
1631
+ readonly criterion: string;
1632
+ readonly feedback: {
1633
+ readonly earned: string;
1634
+ readonly missed: string;
1635
+ };
1636
+ readonly requires?: readonly [string, ...string[]];
1637
+ }, ...{
1638
+ readonly check: {
1639
+ readonly feature: {
1640
+ readonly contact: "cross" | "touch";
1641
+ readonly kind: "zero";
1642
+ readonly x: string;
1643
+ } | {
1644
+ readonly kind: "yIntercept";
1645
+ readonly y: string;
1646
+ } | {
1647
+ readonly kind: "extremum";
1648
+ readonly turn: "maximum" | "minimum";
1649
+ readonly x: string;
1650
+ readonly y: string;
1651
+ } | {
1652
+ readonly kind: "asymptote";
1653
+ readonly line: {
1654
+ readonly kind: "vertical";
1655
+ readonly x: string;
1656
+ } | {
1657
+ readonly intercept: string;
1658
+ readonly kind: "sloped";
1659
+ readonly slope: string;
1660
+ };
1661
+ } | {
1662
+ readonly direction: "falling" | "rising";
1663
+ readonly from: string | null;
1664
+ readonly kind: "interval";
1665
+ readonly to: string | null;
1666
+ } | {
1667
+ readonly kind: "end";
1668
+ readonly limit: string;
1669
+ readonly side: "left" | "right";
1670
+ } | {
1671
+ readonly kind: "inflection";
1672
+ readonly x: string;
1673
+ readonly y: string;
1674
+ } | {
1675
+ readonly end?: "closed" | "open";
1676
+ readonly kind: "point";
1677
+ readonly x: string;
1678
+ readonly y: string;
1679
+ };
1680
+ readonly kind: "feature";
1681
+ };
1682
+ readonly criterion: string;
1683
+ readonly feedback: {
1684
+ readonly earned: string;
1685
+ readonly missed: string;
1686
+ };
1687
+ readonly requires?: readonly [string, ...string[]];
1688
+ }[]];
1689
+ readonly interaction: string;
1690
+ readonly kind: "sketch";
1691
+ readonly tolerances: {
1692
+ readonly asymptote?: string;
1693
+ readonly end?: string;
1694
+ readonly extremum?: string;
1695
+ readonly inflection?: string;
1696
+ readonly interval?: string;
1697
+ readonly point?: string;
1698
+ readonly yIntercept?: string;
1699
+ readonly zero?: string;
1700
+ };
1701
+ } | {
1428
1702
  readonly interaction: string;
1429
1703
  readonly correct: readonly [string, ...string[]];
1430
1704
  readonly kind: "choice";
@@ -1520,6 +1794,10 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
1520
1794
  readonly interaction: string;
1521
1795
  readonly criteria: readonly [{
1522
1796
  readonly criterion: string;
1797
+ readonly feedback?: {
1798
+ readonly earned: string;
1799
+ readonly missed: string;
1800
+ };
1523
1801
  readonly levels: readonly [{
1524
1802
  readonly descriptor: string;
1525
1803
  readonly level: string;
@@ -1529,6 +1807,10 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
1529
1807
  }[]];
1530
1808
  }, ...{
1531
1809
  readonly criterion: string;
1810
+ readonly feedback?: {
1811
+ readonly earned: string;
1812
+ readonly missed: string;
1813
+ };
1532
1814
  readonly levels: readonly [{
1533
1815
  readonly descriptor: string;
1534
1816
  readonly level: string;