@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.
@@ -531,6 +531,23 @@ export declare function indexRows(records: readonly AssessmentRecord[]): {
531
531
  readonly kind: "graphPoint";
532
532
  readonly placing: "lines" | "points";
533
533
  readonly snap?: number;
534
+ } | {
535
+ readonly id: string;
536
+ readonly label: string;
537
+ readonly frame: {
538
+ readonly kind: "cartesian";
539
+ readonly x: {
540
+ readonly max: number;
541
+ readonly min: number;
542
+ };
543
+ readonly y: {
544
+ readonly max: number;
545
+ readonly min: number;
546
+ };
547
+ };
548
+ readonly grid?: number;
549
+ readonly kind: "sketch";
550
+ readonly marks: readonly ("asymptote" | "point")[];
534
551
  }, ...({
535
552
  readonly id: string;
536
553
  readonly label: string;
@@ -920,6 +937,23 @@ export declare function indexRows(records: readonly AssessmentRecord[]): {
920
937
  readonly kind: "graphPoint";
921
938
  readonly placing: "lines" | "points";
922
939
  readonly snap?: number;
940
+ } | {
941
+ readonly id: string;
942
+ readonly label: string;
943
+ readonly frame: {
944
+ readonly kind: "cartesian";
945
+ readonly x: {
946
+ readonly max: number;
947
+ readonly min: number;
948
+ };
949
+ readonly y: {
950
+ readonly max: number;
951
+ readonly min: number;
952
+ };
953
+ };
954
+ readonly grid?: number;
955
+ readonly kind: "sketch";
956
+ readonly marks: readonly ("asymptote" | "point")[];
923
957
  })[]];
924
958
  readonly joint?: {
925
959
  readonly levels: readonly [{
@@ -981,6 +1015,122 @@ export declare function indexRows(records: readonly AssessmentRecord[]): {
981
1015
  }>;
982
1016
  keys: HashMap.HashMap<string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, {
983
1017
  readonly answers: readonly [{
1018
+ readonly criteria: readonly [{
1019
+ readonly check: {
1020
+ readonly feature: {
1021
+ readonly contact: "cross" | "touch";
1022
+ readonly kind: "zero";
1023
+ readonly x: string;
1024
+ } | {
1025
+ readonly kind: "yIntercept";
1026
+ readonly y: string;
1027
+ } | {
1028
+ readonly kind: "extremum";
1029
+ readonly turn: "maximum" | "minimum";
1030
+ readonly x: string;
1031
+ readonly y: string;
1032
+ } | {
1033
+ readonly kind: "asymptote";
1034
+ readonly line: {
1035
+ readonly kind: "vertical";
1036
+ readonly x: string;
1037
+ } | {
1038
+ readonly intercept: string;
1039
+ readonly kind: "sloped";
1040
+ readonly slope: string;
1041
+ };
1042
+ } | {
1043
+ readonly direction: "falling" | "rising";
1044
+ readonly from: string | null;
1045
+ readonly kind: "interval";
1046
+ readonly to: string | null;
1047
+ } | {
1048
+ readonly kind: "end";
1049
+ readonly limit: string;
1050
+ readonly side: "left" | "right";
1051
+ } | {
1052
+ readonly kind: "inflection";
1053
+ readonly x: string;
1054
+ readonly y: string;
1055
+ } | {
1056
+ readonly end?: "closed" | "open";
1057
+ readonly kind: "point";
1058
+ readonly x: string;
1059
+ readonly y: string;
1060
+ };
1061
+ readonly kind: "feature";
1062
+ };
1063
+ readonly criterion: string;
1064
+ readonly feedback: {
1065
+ readonly earned: string;
1066
+ readonly missed: string;
1067
+ };
1068
+ readonly requires?: readonly [string, ...string[]];
1069
+ }, ...{
1070
+ readonly check: {
1071
+ readonly feature: {
1072
+ readonly contact: "cross" | "touch";
1073
+ readonly kind: "zero";
1074
+ readonly x: string;
1075
+ } | {
1076
+ readonly kind: "yIntercept";
1077
+ readonly y: string;
1078
+ } | {
1079
+ readonly kind: "extremum";
1080
+ readonly turn: "maximum" | "minimum";
1081
+ readonly x: string;
1082
+ readonly y: string;
1083
+ } | {
1084
+ readonly kind: "asymptote";
1085
+ readonly line: {
1086
+ readonly kind: "vertical";
1087
+ readonly x: string;
1088
+ } | {
1089
+ readonly intercept: string;
1090
+ readonly kind: "sloped";
1091
+ readonly slope: string;
1092
+ };
1093
+ } | {
1094
+ readonly direction: "falling" | "rising";
1095
+ readonly from: string | null;
1096
+ readonly kind: "interval";
1097
+ readonly to: string | null;
1098
+ } | {
1099
+ readonly kind: "end";
1100
+ readonly limit: string;
1101
+ readonly side: "left" | "right";
1102
+ } | {
1103
+ readonly kind: "inflection";
1104
+ readonly x: string;
1105
+ readonly y: string;
1106
+ } | {
1107
+ readonly end?: "closed" | "open";
1108
+ readonly kind: "point";
1109
+ readonly x: string;
1110
+ readonly y: string;
1111
+ };
1112
+ readonly kind: "feature";
1113
+ };
1114
+ readonly criterion: string;
1115
+ readonly feedback: {
1116
+ readonly earned: string;
1117
+ readonly missed: string;
1118
+ };
1119
+ readonly requires?: readonly [string, ...string[]];
1120
+ }[]];
1121
+ readonly interaction: string;
1122
+ readonly kind: "sketch";
1123
+ readonly tolerances: {
1124
+ readonly asymptote?: string;
1125
+ readonly end?: string;
1126
+ readonly extremum?: string;
1127
+ readonly inflection?: string;
1128
+ readonly interval?: string;
1129
+ readonly point?: string;
1130
+ readonly yIntercept?: string;
1131
+ readonly zero?: string;
1132
+ };
1133
+ } | {
984
1134
  readonly interaction: string;
985
1135
  readonly correct: readonly [string, ...string[]];
986
1136
  readonly kind: "choice";
@@ -1076,6 +1226,10 @@ export declare function indexRows(records: readonly AssessmentRecord[]): {
1076
1226
  readonly interaction: string;
1077
1227
  readonly criteria: readonly [{
1078
1228
  readonly criterion: string;
1229
+ readonly feedback?: {
1230
+ readonly earned: string;
1231
+ readonly missed: string;
1232
+ };
1079
1233
  readonly levels: readonly [{
1080
1234
  readonly descriptor: string;
1081
1235
  readonly level: string;
@@ -1085,6 +1239,10 @@ export declare function indexRows(records: readonly AssessmentRecord[]): {
1085
1239
  }[]];
1086
1240
  }, ...{
1087
1241
  readonly criterion: string;
1242
+ readonly feedback?: {
1243
+ readonly earned: string;
1244
+ readonly missed: string;
1245
+ };
1088
1246
  readonly levels: readonly [{
1089
1247
  readonly descriptor: string;
1090
1248
  readonly level: string;
@@ -1103,6 +1261,122 @@ export declare function indexRows(records: readonly AssessmentRecord[]): {
1103
1261
  };
1104
1262
  readonly value: string;
1105
1263
  }, ...({
1264
+ readonly criteria: readonly [{
1265
+ readonly check: {
1266
+ readonly feature: {
1267
+ readonly contact: "cross" | "touch";
1268
+ readonly kind: "zero";
1269
+ readonly x: string;
1270
+ } | {
1271
+ readonly kind: "yIntercept";
1272
+ readonly y: string;
1273
+ } | {
1274
+ readonly kind: "extremum";
1275
+ readonly turn: "maximum" | "minimum";
1276
+ readonly x: string;
1277
+ readonly y: string;
1278
+ } | {
1279
+ readonly kind: "asymptote";
1280
+ readonly line: {
1281
+ readonly kind: "vertical";
1282
+ readonly x: string;
1283
+ } | {
1284
+ readonly intercept: string;
1285
+ readonly kind: "sloped";
1286
+ readonly slope: string;
1287
+ };
1288
+ } | {
1289
+ readonly direction: "falling" | "rising";
1290
+ readonly from: string | null;
1291
+ readonly kind: "interval";
1292
+ readonly to: string | null;
1293
+ } | {
1294
+ readonly kind: "end";
1295
+ readonly limit: string;
1296
+ readonly side: "left" | "right";
1297
+ } | {
1298
+ readonly kind: "inflection";
1299
+ readonly x: string;
1300
+ readonly y: string;
1301
+ } | {
1302
+ readonly end?: "closed" | "open";
1303
+ readonly kind: "point";
1304
+ readonly x: string;
1305
+ readonly y: string;
1306
+ };
1307
+ readonly kind: "feature";
1308
+ };
1309
+ readonly criterion: string;
1310
+ readonly feedback: {
1311
+ readonly earned: string;
1312
+ readonly missed: string;
1313
+ };
1314
+ readonly requires?: readonly [string, ...string[]];
1315
+ }, ...{
1316
+ readonly check: {
1317
+ readonly feature: {
1318
+ readonly contact: "cross" | "touch";
1319
+ readonly kind: "zero";
1320
+ readonly x: string;
1321
+ } | {
1322
+ readonly kind: "yIntercept";
1323
+ readonly y: string;
1324
+ } | {
1325
+ readonly kind: "extremum";
1326
+ readonly turn: "maximum" | "minimum";
1327
+ readonly x: string;
1328
+ readonly y: string;
1329
+ } | {
1330
+ readonly kind: "asymptote";
1331
+ readonly line: {
1332
+ readonly kind: "vertical";
1333
+ readonly x: string;
1334
+ } | {
1335
+ readonly intercept: string;
1336
+ readonly kind: "sloped";
1337
+ readonly slope: string;
1338
+ };
1339
+ } | {
1340
+ readonly direction: "falling" | "rising";
1341
+ readonly from: string | null;
1342
+ readonly kind: "interval";
1343
+ readonly to: string | null;
1344
+ } | {
1345
+ readonly kind: "end";
1346
+ readonly limit: string;
1347
+ readonly side: "left" | "right";
1348
+ } | {
1349
+ readonly kind: "inflection";
1350
+ readonly x: string;
1351
+ readonly y: string;
1352
+ } | {
1353
+ readonly end?: "closed" | "open";
1354
+ readonly kind: "point";
1355
+ readonly x: string;
1356
+ readonly y: string;
1357
+ };
1358
+ readonly kind: "feature";
1359
+ };
1360
+ readonly criterion: string;
1361
+ readonly feedback: {
1362
+ readonly earned: string;
1363
+ readonly missed: string;
1364
+ };
1365
+ readonly requires?: readonly [string, ...string[]];
1366
+ }[]];
1367
+ readonly interaction: string;
1368
+ readonly kind: "sketch";
1369
+ readonly tolerances: {
1370
+ readonly asymptote?: string;
1371
+ readonly end?: string;
1372
+ readonly extremum?: string;
1373
+ readonly inflection?: string;
1374
+ readonly interval?: string;
1375
+ readonly point?: string;
1376
+ readonly yIntercept?: string;
1377
+ readonly zero?: string;
1378
+ };
1379
+ } | {
1106
1380
  readonly interaction: string;
1107
1381
  readonly correct: readonly [string, ...string[]];
1108
1382
  readonly kind: "choice";
@@ -1198,6 +1472,10 @@ export declare function indexRows(records: readonly AssessmentRecord[]): {
1198
1472
  readonly interaction: string;
1199
1473
  readonly criteria: readonly [{
1200
1474
  readonly criterion: string;
1475
+ readonly feedback?: {
1476
+ readonly earned: string;
1477
+ readonly missed: string;
1478
+ };
1201
1479
  readonly levels: readonly [{
1202
1480
  readonly descriptor: string;
1203
1481
  readonly level: string;
@@ -1207,6 +1485,10 @@ export declare function indexRows(records: readonly AssessmentRecord[]): {
1207
1485
  }[]];
1208
1486
  }, ...{
1209
1487
  readonly criterion: string;
1488
+ readonly feedback?: {
1489
+ readonly earned: string;
1490
+ readonly missed: string;
1491
+ };
1210
1492
  readonly levels: readonly [{
1211
1493
  readonly descriptor: string;
1212
1494
  readonly level: string;
@@ -1309,7 +1591,7 @@ export declare function indexRows(records: readonly AssessmentRecord[]): {
1309
1591
  readonly seconds: number;
1310
1592
  }[];
1311
1593
  readonly defaults: readonly {
1312
- readonly interaction: "choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "textEntry";
1594
+ readonly interaction: "choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "sketch" | "textEntry";
1313
1595
  readonly rule: {
1314
1596
  readonly kind: "allOrNothing";
1315
1597
  } | {
@@ -1368,7 +1650,7 @@ export declare function indexRows(records: readonly AssessmentRecord[]): {
1368
1650
  };
1369
1651
  readonly sections: readonly [{
1370
1652
  readonly id: string;
1371
- 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")[]];
1653
+ 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")[]];
1372
1654
  readonly items: number;
1373
1655
  readonly names: {
1374
1656
  readonly de: string;
@@ -1381,7 +1663,7 @@ export declare function indexRows(records: readonly AssessmentRecord[]): {
1381
1663
  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")[];
1382
1664
  }, ...{
1383
1665
  readonly id: string;
1384
- 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")[]];
1666
+ 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")[]];
1385
1667
  readonly items: number;
1386
1668
  readonly names: {
1387
1669
  readonly de: string;
@@ -161,14 +161,20 @@ export declare function scoreCeiling(rule: ScoringRule, parts: number): number;
161
161
  * work of Nakafa's engine.
162
162
  */
163
163
  export declare function pointsForWrongParts(rule: WrongPartsRule, wrongParts: number): number;
164
+ /**
165
+ * Checks that an interaction of this kind is scored by a rubric of its own,
166
+ * and never by a default: an extended text, whose criteria a grader reads, and
167
+ * a sketch, whose criteria are features of the drawn graph.
168
+ */
169
+ export declare function takesRubric(kind: InteractionKind): kind is "extendedText" | "sketch";
164
170
  /**
165
171
  * Checks that a rule can score an interaction of this kind. A rubric scores an
166
- * extended text and nothing else, and an extended text takes no other rule. A
167
- * field has one part, worth the points of its rule: one point, or more when
168
- * the item is worth more. The floor of a rule per part is at most those
169
- * points, and a wrong-parts table has one band for no wrong part. Every other
170
- * kind has the parts that its key counts, so the key checks the floor of a rule
171
- * for those.
172
+ * extended text or a sketch and nothing else, and they take no other rule; each
173
+ * criterion of a sketch is missed or earned. A field has one part, worth the
174
+ * points of its rule: one point, or more when the item is worth more. The
175
+ * floor of a rule per part is at most those points, and a wrong-parts table has
176
+ * one band for no wrong part. Every other kind has the parts that its key
177
+ * counts, so the key checks the floor of a rule for those.
172
178
  */
173
179
  export declare function supportsRule(kind: InteractionKind, rule: ScoringRule): boolean;
174
180
  /**
@@ -156,18 +156,35 @@ function fitsField(rule) {
156
156
  }
157
157
  return true;
158
158
  }
159
+ /**
160
+ * Checks that an interaction of this kind is scored by a rubric of its own,
161
+ * and never by a default: an extended text, whose criteria a grader reads, and
162
+ * a sketch, whose criteria are features of the drawn graph.
163
+ */
164
+ export function takesRubric(kind) {
165
+ return kind === "extendedText" || kind === "sketch";
166
+ }
167
+ /**
168
+ * Checks that every criterion of a rubric is missed or earned, as a feature of
169
+ * a sketch is: two levels, the lower one worth no points.
170
+ */
171
+ function isMissedOrEarned(rule) {
172
+ return Arr.every(rule.criteria, ({ levels }) => levels.length === 2 && Arr.some(levels, ({ points }) => points === 0));
173
+ }
159
174
  /**
160
175
  * Checks that a rule can score an interaction of this kind. A rubric scores an
161
- * extended text and nothing else, and an extended text takes no other rule. A
162
- * field has one part, worth the points of its rule: one point, or more when
163
- * the item is worth more. The floor of a rule per part is at most those
164
- * points, and a wrong-parts table has one band for no wrong part. Every other
165
- * kind has the parts that its key counts, so the key checks the floor of a rule
166
- * for those.
176
+ * extended text or a sketch and nothing else, and they take no other rule; each
177
+ * criterion of a sketch is missed or earned. A field has one part, worth the
178
+ * points of its rule: one point, or more when the item is worth more. The
179
+ * floor of a rule per part is at most those points, and a wrong-parts table has
180
+ * one band for no wrong part. Every other kind has the parts that its key
181
+ * counts, so the key checks the floor of a rule for those.
167
182
  */
168
183
  export function supportsRule(kind, rule) {
169
- return ((kind === "extendedText") === (rule.kind === "rubric") &&
170
- (!canSitInText(kind) || fitsField(rule)));
184
+ if (rule.kind === "rubric") {
185
+ return takesRubric(kind) && (kind !== "sketch" || isMissedOrEarned(rule));
186
+ }
187
+ return !takesRubric(kind) && (!canSitInText(kind) || fitsField(rule));
171
188
  }
172
189
  /**
173
190
  * Whole marks that a penalized exam awards for a correct, a wrong, and a blank
@@ -0,0 +1,125 @@
1
+ import { Schema } from "effect";
2
+ /** One key feature of a graph, in the units of the plane. */
3
+ export declare const SketchFeatureSchema: Schema.Union<readonly [Schema.Struct<{
4
+ readonly contact: Schema.Literals<readonly ["cross", "touch"]>;
5
+ readonly kind: Schema.Literal<"zero">;
6
+ readonly x: Schema.String;
7
+ }>, Schema.Struct<{
8
+ readonly kind: Schema.Literal<"yIntercept">;
9
+ readonly y: Schema.String;
10
+ }>, Schema.Struct<{
11
+ readonly kind: Schema.Literal<"extremum">;
12
+ readonly turn: Schema.Literals<readonly ["maximum", "minimum"]>;
13
+ readonly x: Schema.String;
14
+ readonly y: Schema.String;
15
+ }>, Schema.Struct<{
16
+ readonly kind: Schema.Literal<"asymptote">;
17
+ readonly line: Schema.Union<readonly [Schema.Struct<{
18
+ readonly kind: Schema.Literal<"vertical">;
19
+ readonly x: Schema.String;
20
+ }>, Schema.Struct<{
21
+ readonly intercept: Schema.String;
22
+ readonly kind: Schema.Literal<"sloped">;
23
+ readonly slope: Schema.String;
24
+ }>]>;
25
+ }>, Schema.Struct<{
26
+ readonly direction: Schema.Literals<readonly ["falling", "rising"]>;
27
+ readonly from: Schema.NullOr<Schema.String>;
28
+ readonly kind: Schema.Literal<"interval">;
29
+ readonly to: Schema.NullOr<Schema.String>;
30
+ }>, Schema.Struct<{
31
+ readonly kind: Schema.Literal<"end">;
32
+ readonly limit: Schema.Union<readonly [Schema.Literals<readonly ["negativeInfinity", "positiveInfinity"]>, Schema.String]>;
33
+ readonly side: Schema.Literals<readonly ["left", "right"]>;
34
+ }>, Schema.Struct<{
35
+ readonly kind: Schema.Literal<"inflection">;
36
+ readonly x: Schema.String;
37
+ readonly y: Schema.String;
38
+ }>, Schema.Struct<{
39
+ readonly end: Schema.optionalKey<Schema.Literals<readonly ["closed", "open"]>>;
40
+ readonly kind: Schema.Literal<"point">;
41
+ readonly x: Schema.String;
42
+ readonly y: Schema.String;
43
+ }>]>;
44
+ export type SketchFeature = typeof SketchFeatureSchema.Type;
45
+ /**
46
+ * What the learner reads about one criterion of a rubric once it is scored, in
47
+ * a teacher's voice: a line for a criterion earned and one for a criterion
48
+ * missed. It is words of a language, so translations may change it.
49
+ */
50
+ export declare const CriterionFeedbackSchema: Schema.Struct<{
51
+ readonly earned: Schema.Trimmed;
52
+ readonly missed: Schema.Trimmed;
53
+ }>;
54
+ /**
55
+ * The key of a sketch: the features its graph must show, each a criterion of
56
+ * the item's rubric, and the tolerances they are judged with. A grader reads
57
+ * the features of the learner's strokes exactly, never from pixels, and awards
58
+ * a criterion only when every criterion it requires is earned.
59
+ */
60
+ export declare const SketchKeySchema: Schema.Struct<{
61
+ readonly criteria: Schema.NonEmptyArray<Schema.Struct<{
62
+ readonly check: Schema.Struct<{
63
+ readonly feature: Schema.Union<readonly [Schema.Struct<{
64
+ readonly contact: Schema.Literals<readonly ["cross", "touch"]>;
65
+ readonly kind: Schema.Literal<"zero">;
66
+ readonly x: Schema.String;
67
+ }>, Schema.Struct<{
68
+ readonly kind: Schema.Literal<"yIntercept">;
69
+ readonly y: Schema.String;
70
+ }>, Schema.Struct<{
71
+ readonly kind: Schema.Literal<"extremum">;
72
+ readonly turn: Schema.Literals<readonly ["maximum", "minimum"]>;
73
+ readonly x: Schema.String;
74
+ readonly y: Schema.String;
75
+ }>, Schema.Struct<{
76
+ readonly kind: Schema.Literal<"asymptote">;
77
+ readonly line: Schema.Union<readonly [Schema.Struct<{
78
+ readonly kind: Schema.Literal<"vertical">;
79
+ readonly x: Schema.String;
80
+ }>, Schema.Struct<{
81
+ readonly intercept: Schema.String;
82
+ readonly kind: Schema.Literal<"sloped">;
83
+ readonly slope: Schema.String;
84
+ }>]>;
85
+ }>, Schema.Struct<{
86
+ readonly direction: Schema.Literals<readonly ["falling", "rising"]>;
87
+ readonly from: Schema.NullOr<Schema.String>;
88
+ readonly kind: Schema.Literal<"interval">;
89
+ readonly to: Schema.NullOr<Schema.String>;
90
+ }>, Schema.Struct<{
91
+ readonly kind: Schema.Literal<"end">;
92
+ readonly limit: Schema.Union<readonly [Schema.Literals<readonly ["negativeInfinity", "positiveInfinity"]>, Schema.String]>;
93
+ readonly side: Schema.Literals<readonly ["left", "right"]>;
94
+ }>, Schema.Struct<{
95
+ readonly kind: Schema.Literal<"inflection">;
96
+ readonly x: Schema.String;
97
+ readonly y: Schema.String;
98
+ }>, Schema.Struct<{
99
+ readonly end: Schema.optionalKey<Schema.Literals<readonly ["closed", "open"]>>;
100
+ readonly kind: Schema.Literal<"point">;
101
+ readonly x: Schema.String;
102
+ readonly y: Schema.String;
103
+ }>]>;
104
+ readonly kind: Schema.Literal<"feature">;
105
+ }>;
106
+ readonly criterion: Schema.String;
107
+ readonly feedback: Schema.Struct<{
108
+ readonly earned: Schema.Trimmed;
109
+ readonly missed: Schema.Trimmed;
110
+ }>;
111
+ readonly requires: Schema.optionalKey<Schema.NonEmptyArray<Schema.String>>;
112
+ }>>;
113
+ readonly interaction: Schema.String;
114
+ readonly kind: Schema.Literal<"sketch">;
115
+ readonly tolerances: Schema.Struct<{
116
+ readonly asymptote: Schema.optionalKey<Schema.String>;
117
+ readonly end: Schema.optionalKey<Schema.String>;
118
+ readonly extremum: Schema.optionalKey<Schema.String>;
119
+ readonly inflection: Schema.optionalKey<Schema.String>;
120
+ readonly interval: Schema.optionalKey<Schema.String>;
121
+ readonly point: Schema.optionalKey<Schema.String>;
122
+ readonly yIntercept: Schema.optionalKey<Schema.String>;
123
+ readonly zero: Schema.optionalKey<Schema.String>;
124
+ }>;
125
+ }>;