@nakafa/aksara-contracts 6.4.0 → 7.0.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 (117) hide show
  1. package/dist/assessment/catalog.d.ts +30 -6
  2. package/dist/assessment/catalog.js +33 -10
  3. package/dist/assessment/choice.d.ts +10 -0
  4. package/dist/assessment/closure.d.ts +2 -1
  5. package/dist/assessment/closure.js +43 -62
  6. package/dist/assessment/document.d.ts +18 -0
  7. package/dist/assessment/document.js +10 -0
  8. package/dist/assessment/figure.d.ts +47605 -1555
  9. package/dist/assessment/figure.js +14 -217
  10. package/dist/assessment/hash.d.ts +274 -4
  11. package/dist/assessment/inline.d.ts +25 -0
  12. package/dist/assessment/inline.js +22 -3
  13. package/dist/assessment/interaction.d.ts +10 -0
  14. package/dist/assessment/item.d.ts +864 -0
  15. package/dist/assessment/item.js +10 -2
  16. package/dist/assessment/locales.d.ts +10 -0
  17. package/dist/assessment/locales.js +58 -0
  18. package/dist/assessment/paper.d.ts +1349 -12
  19. package/dist/assessment/paper.js +93 -9
  20. package/dist/assessment/part.d.ts +5 -0
  21. package/dist/assessment/profile.d.ts +4 -4
  22. package/dist/assessment/rows.d.ts +1409 -0
  23. package/dist/assessment/rows.js +44 -0
  24. package/dist/assessment/scalar.d.ts +1 -1
  25. package/dist/assessment/scoring.d.ts +1 -1
  26. package/dist/assessment/snapshot.d.ts +376 -20
  27. package/dist/assessment/structure.d.ts +6 -0
  28. package/dist/assessment/structure.js +22 -2
  29. package/dist/locale.d.ts +9 -9
  30. package/dist/locale.js +4 -3
  31. package/dist/program/snapshot/hash.d.ts +2 -2
  32. package/dist/program/snapshot/spec.d.ts +2 -2
  33. package/dist/projection/material.d.ts +10 -0
  34. package/dist/projection/material.js +1 -1
  35. package/dist/quran/attribution.d.ts +2 -2
  36. package/dist/quran/identity.d.ts +31 -10
  37. package/dist/quran/identity.js +15 -3
  38. package/dist/quran/provenance.d.ts +16 -16
  39. package/dist/quran/provenance.js +4 -1
  40. package/dist/quran/snapshot/hash.d.ts +2 -2
  41. package/dist/quran/snapshot/row/hash.d.ts +48 -15
  42. package/dist/quran/snapshot/row.d.ts +18 -8
  43. package/dist/quran/snapshot/spec.d.ts +2 -2
  44. package/dist/quran/source.d.ts +17 -7
  45. package/dist/quran/source.js +13 -1
  46. package/dist/quran/spec.d.ts +4 -4
  47. package/dist/quran/spec.js +2 -1
  48. package/dist/release/current/evidence.d.ts +9 -9
  49. package/dist/release/current/state.d.ts +11 -11
  50. package/dist/release/hash.d.ts +2 -2
  51. package/dist/release/identity.d.ts +1 -1
  52. package/dist/release/lifecycle.d.ts +7 -7
  53. package/dist/release/policy.d.ts +1 -1
  54. package/dist/release/snapshot/data.d.ts +37 -11
  55. package/dist/release/snapshot/evidence/assessment.d.ts +1 -1
  56. package/dist/release/snapshot/evidence/program.d.ts +1 -1
  57. package/dist/release/snapshot/evidence/quran.d.ts +1 -1
  58. package/dist/release/snapshot/evidence.d.ts +3 -3
  59. package/dist/release/snapshot/verify.d.ts +180 -12
  60. package/dist/release/spec.d.ts +13 -13
  61. package/dist/release/verify.d.ts +2 -2
  62. package/dist/runtime/spec.d.ts +6 -6
  63. package/dist/runtime/verify.d.ts +4 -4
  64. package/dist/transport/group.d.ts +111 -33
  65. package/dist/transport/request.d.ts +1174 -114
  66. package/dist/transport/response.d.ts +64 -64
  67. package/dist/transport/snapshot.d.ts +74 -22
  68. package/dist/visual/base/layout.d.ts +27 -0
  69. package/dist/visual/base/layout.js +35 -0
  70. package/dist/visual/base/math.d.ts +523 -0
  71. package/dist/visual/base/math.js +72 -0
  72. package/dist/visual/base/media.d.ts +13 -0
  73. package/dist/visual/base/media.js +25 -0
  74. package/dist/visual/biology.d.ts +203 -0
  75. package/dist/visual/biology.js +108 -0
  76. package/dist/visual/card.d.ts +32 -0
  77. package/dist/visual/card.js +30 -0
  78. package/dist/visual/catalog.d.ts +28633 -0
  79. package/dist/visual/catalog.js +73 -0
  80. package/dist/visual/chemistry/atom.d.ts +79 -0
  81. package/dist/visual/chemistry/atom.js +109 -0
  82. package/dist/visual/chemistry/electron.d.ts +41 -0
  83. package/dist/visual/chemistry/electron.js +69 -0
  84. package/dist/visual/chemistry/laws.d.ts +86 -0
  85. package/dist/visual/chemistry/laws.js +117 -0
  86. package/dist/visual/chemistry/particles.d.ts +114 -0
  87. package/dist/visual/chemistry/particles.js +149 -0
  88. package/dist/visual/chemistry/periodic.d.ts +52 -0
  89. package/dist/visual/chemistry/periodic.js +85 -0
  90. package/dist/visual/chemistry/reaction.d.ts +60 -0
  91. package/dist/visual/chemistry/reaction.js +76 -0
  92. package/dist/visual/entry.d.ts +42 -0
  93. package/dist/visual/entry.js +48 -0
  94. package/dist/visual/mathematics/chart.d.ts +30 -0
  95. package/dist/{assessment → visual/mathematics}/chart.js +26 -18
  96. package/dist/visual/mathematics/charts.d.ts +118 -0
  97. package/dist/visual/mathematics/charts.js +100 -0
  98. package/dist/visual/mathematics/function.d.ts +82 -0
  99. package/dist/visual/mathematics/function.js +102 -0
  100. package/dist/visual/mathematics/geometry.d.ts +222 -0
  101. package/dist/visual/mathematics/geometry.js +81 -0
  102. package/dist/visual/mathematics/line.d.ts +179 -0
  103. package/dist/visual/mathematics/line.js +156 -0
  104. package/dist/visual/mathematics/number.d.ts +21 -0
  105. package/dist/visual/mathematics/number.js +53 -0
  106. package/dist/visual/physics/measurement.d.ts +66 -0
  107. package/dist/visual/physics/measurement.js +85 -0
  108. package/dist/visual/physics/motion.d.ts +85 -0
  109. package/dist/visual/physics/motion.js +110 -0
  110. package/dist/visual/physics/parabolic.d.ts +42 -0
  111. package/dist/visual/physics/parabolic.js +56 -0
  112. package/dist/visual/physics/velocity.d.ts +112 -0
  113. package/dist/visual/physics/velocity.js +144 -0
  114. package/dist/visual/politics.d.ts +92 -0
  115. package/dist/visual/politics.js +76 -0
  116. package/package.json +13 -5
  117. package/dist/assessment/chart.d.ts +0 -62
@@ -0,0 +1,1409 @@
1
+ import { HashMap, HashSet } from "effect";
2
+ import type { Paper } from "#contracts/assessment/paper";
3
+ import type { AssessmentRecord } from "#contracts/assessment/snapshot";
4
+ import type { StimulusVersion } from "#contracts/assessment/stimulus";
5
+ /** Gathers the rows of a snapshot by kind for the reference checks. */
6
+ export declare function indexRows(records: readonly AssessmentRecord[]): {
7
+ catalog: ({
8
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
9
+ readonly appLocales: readonly [("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
10
+ readonly description?: string;
11
+ readonly graph: {
12
+ readonly alignmentId: string;
13
+ readonly assetId: string;
14
+ readonly conceptId: string;
15
+ readonly learningObjectId: string;
16
+ readonly lensId: string;
17
+ };
18
+ readonly sourceRevision: string;
19
+ readonly title: string;
20
+ readonly countryKey: string;
21
+ readonly countryCode: string;
22
+ readonly kind: "country";
23
+ readonly order: number;
24
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
25
+ } | {
26
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
27
+ readonly appLocales: readonly [("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
28
+ readonly description?: string;
29
+ readonly graph: {
30
+ readonly alignmentId: string;
31
+ readonly assetId: string;
32
+ readonly conceptId: string;
33
+ readonly learningObjectId: string;
34
+ readonly lensId: string;
35
+ };
36
+ readonly sourceRevision: string;
37
+ readonly title: string;
38
+ readonly countryKey: string;
39
+ readonly examKey: string;
40
+ readonly groupAxis: "grade" | "institution" | "year";
41
+ readonly kind: "exam";
42
+ readonly order: number;
43
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
44
+ } | {
45
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
46
+ readonly appLocales: readonly [("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
47
+ readonly description?: string;
48
+ readonly graph: {
49
+ readonly alignmentId: string;
50
+ readonly assetId: string;
51
+ readonly conceptId: string;
52
+ readonly learningObjectId: string;
53
+ readonly lensId: string;
54
+ };
55
+ readonly sourceRevision: string;
56
+ readonly title: string;
57
+ readonly countryKey: string;
58
+ readonly examKey: string;
59
+ readonly groupKey: string;
60
+ readonly kind: "group";
61
+ readonly order: number;
62
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
63
+ } | {
64
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
65
+ readonly appLocales: readonly [("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
66
+ readonly description?: string;
67
+ readonly graph: {
68
+ readonly alignmentId: string;
69
+ readonly assetId: string;
70
+ readonly conceptId: string;
71
+ readonly learningObjectId: string;
72
+ readonly lensId: string;
73
+ };
74
+ readonly sourceRevision: string;
75
+ readonly title: string;
76
+ readonly countryKey: string;
77
+ readonly examKey: string;
78
+ readonly trackKey: string;
79
+ readonly groupKey: string;
80
+ readonly kind: "track";
81
+ readonly order: number;
82
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
83
+ } | {
84
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
85
+ readonly appLocales: readonly [("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
86
+ readonly description?: string;
87
+ readonly graph: {
88
+ readonly alignmentId: string;
89
+ readonly assetId: string;
90
+ readonly conceptId: string;
91
+ readonly learningObjectId: string;
92
+ readonly lensId: string;
93
+ };
94
+ readonly sourceRevision: string;
95
+ readonly title: string;
96
+ readonly countryKey: string;
97
+ readonly examKey: string;
98
+ readonly trackKey: string;
99
+ readonly setKey: string;
100
+ readonly internalEntrySectionKey?: string;
101
+ readonly kind: "set";
102
+ readonly level: "cooked" | "easy" | "hard" | "medium";
103
+ readonly order: number;
104
+ readonly paper: {
105
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
106
+ readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPaperId">;
107
+ };
108
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
109
+ } | {
110
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
111
+ readonly appLocales: readonly [("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
112
+ readonly description?: string;
113
+ readonly graph: {
114
+ readonly alignmentId: string;
115
+ readonly assetId: string;
116
+ readonly conceptId: string;
117
+ readonly learningObjectId: string;
118
+ readonly lensId: string;
119
+ };
120
+ readonly sourceRevision: string;
121
+ readonly title: string;
122
+ readonly countryKey: string;
123
+ readonly examKey: string;
124
+ readonly trackKey: string;
125
+ readonly setKey: string;
126
+ readonly kind: "section";
127
+ readonly order: number;
128
+ readonly publicPath?: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
129
+ readonly sectionKey: string;
130
+ readonly visibility: "internal-entry" | "visible";
131
+ })[];
132
+ explanations: HashMap.HashMap<string, string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">>;
133
+ families: HashMap.HashMap<string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">, {
134
+ readonly blueprint?: {
135
+ readonly cognitiveLevel: string;
136
+ readonly contentDomain: string;
137
+ readonly topic: string;
138
+ };
139
+ readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
140
+ readonly stimulus?: string & import("effect/Brand").Brand<"@NakafaAI/AksaraStimulusId">;
141
+ }>;
142
+ items: HashMap.HashMap<string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, {
143
+ readonly deliveryLanguage: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
144
+ readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
145
+ readonly interactions: readonly [{
146
+ readonly id: string;
147
+ readonly label: string;
148
+ readonly kind: "choice";
149
+ readonly maxChoices: number;
150
+ readonly minChoices: number;
151
+ readonly options: readonly {
152
+ readonly id: string;
153
+ readonly label: {
154
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
155
+ readonly type: "doc";
156
+ };
157
+ }[];
158
+ readonly shuffle: boolean;
159
+ } | {
160
+ readonly id: string;
161
+ readonly label: string;
162
+ readonly columns: readonly {
163
+ readonly id: string;
164
+ readonly label: {
165
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
166
+ readonly type: "doc";
167
+ };
168
+ }[];
169
+ readonly kind: "matrix";
170
+ readonly shuffle: boolean;
171
+ readonly statements: readonly [{
172
+ readonly id: string;
173
+ readonly label: {
174
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
175
+ readonly type: "doc";
176
+ };
177
+ }, ...{
178
+ readonly id: string;
179
+ readonly label: {
180
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
181
+ readonly type: "doc";
182
+ };
183
+ }[]];
184
+ } | {
185
+ readonly id: string;
186
+ readonly label: string;
187
+ readonly kind: "match";
188
+ readonly shuffle: boolean;
189
+ readonly sources: readonly [{
190
+ readonly id: string;
191
+ readonly label: {
192
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
193
+ readonly type: "doc";
194
+ };
195
+ readonly maxMatches: number;
196
+ }, ...{
197
+ readonly id: string;
198
+ readonly label: {
199
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
200
+ readonly type: "doc";
201
+ };
202
+ readonly maxMatches: number;
203
+ }[]];
204
+ readonly targets: readonly [{
205
+ readonly id: string;
206
+ readonly label: {
207
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
208
+ readonly type: "doc";
209
+ };
210
+ readonly maxMatches: number;
211
+ }, ...{
212
+ readonly id: string;
213
+ readonly label: {
214
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
215
+ readonly type: "doc";
216
+ };
217
+ readonly maxMatches: number;
218
+ }[]];
219
+ } | {
220
+ readonly id: string;
221
+ readonly label: string;
222
+ readonly items: readonly {
223
+ readonly id: string;
224
+ readonly label: {
225
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
226
+ readonly type: "doc";
227
+ };
228
+ }[];
229
+ readonly kind: "order";
230
+ readonly maxChoices: number;
231
+ readonly minChoices: number;
232
+ readonly shuffle: boolean;
233
+ } | {
234
+ readonly id: string;
235
+ readonly label: string;
236
+ readonly kind: "inlineChoice";
237
+ readonly options: readonly {
238
+ readonly id: string;
239
+ readonly label: readonly [{
240
+ readonly attrs: {
241
+ readonly latex: string;
242
+ };
243
+ readonly type: "mathInline";
244
+ } | {
245
+ readonly marks?: readonly [{
246
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
247
+ } | {
248
+ readonly attrs: {
249
+ readonly href: string;
250
+ };
251
+ readonly type: "link";
252
+ } | {
253
+ readonly attrs: {
254
+ readonly variant: "success" | "warning" | null;
255
+ };
256
+ readonly type: "highlight";
257
+ }, ...({
258
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
259
+ } | {
260
+ readonly attrs: {
261
+ readonly href: string;
262
+ };
263
+ readonly type: "link";
264
+ } | {
265
+ readonly attrs: {
266
+ readonly variant: "success" | "warning" | null;
267
+ };
268
+ readonly type: "highlight";
269
+ })[]];
270
+ readonly text: string;
271
+ readonly type: "text";
272
+ }, ...({
273
+ readonly attrs: {
274
+ readonly latex: string;
275
+ };
276
+ readonly type: "mathInline";
277
+ } | {
278
+ readonly marks?: readonly [{
279
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
280
+ } | {
281
+ readonly attrs: {
282
+ readonly href: string;
283
+ };
284
+ readonly type: "link";
285
+ } | {
286
+ readonly attrs: {
287
+ readonly variant: "success" | "warning" | null;
288
+ };
289
+ readonly type: "highlight";
290
+ }, ...({
291
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
292
+ } | {
293
+ readonly attrs: {
294
+ readonly href: string;
295
+ };
296
+ readonly type: "link";
297
+ } | {
298
+ readonly attrs: {
299
+ readonly variant: "success" | "warning" | null;
300
+ };
301
+ readonly type: "highlight";
302
+ })[]];
303
+ readonly text: string;
304
+ readonly type: "text";
305
+ })[]];
306
+ }[];
307
+ readonly shuffle: boolean;
308
+ } | {
309
+ readonly id: string;
310
+ readonly label: string;
311
+ readonly choices: readonly [{
312
+ readonly id: string;
313
+ readonly label: readonly [{
314
+ readonly attrs: {
315
+ readonly latex: string;
316
+ };
317
+ readonly type: "mathInline";
318
+ } | {
319
+ readonly marks?: readonly [{
320
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
321
+ } | {
322
+ readonly attrs: {
323
+ readonly href: string;
324
+ };
325
+ readonly type: "link";
326
+ } | {
327
+ readonly attrs: {
328
+ readonly variant: "success" | "warning" | null;
329
+ };
330
+ readonly type: "highlight";
331
+ }, ...({
332
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
333
+ } | {
334
+ readonly attrs: {
335
+ readonly href: string;
336
+ };
337
+ readonly type: "link";
338
+ } | {
339
+ readonly attrs: {
340
+ readonly variant: "success" | "warning" | null;
341
+ };
342
+ readonly type: "highlight";
343
+ })[]];
344
+ readonly text: string;
345
+ readonly type: "text";
346
+ }, ...({
347
+ readonly attrs: {
348
+ readonly latex: string;
349
+ };
350
+ readonly type: "mathInline";
351
+ } | {
352
+ readonly marks?: readonly [{
353
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
354
+ } | {
355
+ readonly attrs: {
356
+ readonly href: string;
357
+ };
358
+ readonly type: "link";
359
+ } | {
360
+ readonly attrs: {
361
+ readonly variant: "success" | "warning" | null;
362
+ };
363
+ readonly type: "highlight";
364
+ }, ...({
365
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
366
+ } | {
367
+ readonly attrs: {
368
+ readonly href: string;
369
+ };
370
+ readonly type: "link";
371
+ } | {
372
+ readonly attrs: {
373
+ readonly variant: "success" | "warning" | null;
374
+ };
375
+ readonly type: "highlight";
376
+ })[]];
377
+ readonly text: string;
378
+ readonly type: "text";
379
+ })[]];
380
+ readonly maxMatches: number;
381
+ }, ...{
382
+ readonly id: string;
383
+ readonly label: readonly [{
384
+ readonly attrs: {
385
+ readonly latex: string;
386
+ };
387
+ readonly type: "mathInline";
388
+ } | {
389
+ readonly marks?: readonly [{
390
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
391
+ } | {
392
+ readonly attrs: {
393
+ readonly href: string;
394
+ };
395
+ readonly type: "link";
396
+ } | {
397
+ readonly attrs: {
398
+ readonly variant: "success" | "warning" | null;
399
+ };
400
+ readonly type: "highlight";
401
+ }, ...({
402
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
403
+ } | {
404
+ readonly attrs: {
405
+ readonly href: string;
406
+ };
407
+ readonly type: "link";
408
+ } | {
409
+ readonly attrs: {
410
+ readonly variant: "success" | "warning" | null;
411
+ };
412
+ readonly type: "highlight";
413
+ })[]];
414
+ readonly text: string;
415
+ readonly type: "text";
416
+ }, ...({
417
+ readonly attrs: {
418
+ readonly latex: string;
419
+ };
420
+ readonly type: "mathInline";
421
+ } | {
422
+ readonly marks?: readonly [{
423
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
424
+ } | {
425
+ readonly attrs: {
426
+ readonly href: string;
427
+ };
428
+ readonly type: "link";
429
+ } | {
430
+ readonly attrs: {
431
+ readonly variant: "success" | "warning" | null;
432
+ };
433
+ readonly type: "highlight";
434
+ }, ...({
435
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
436
+ } | {
437
+ readonly attrs: {
438
+ readonly href: string;
439
+ };
440
+ readonly type: "link";
441
+ } | {
442
+ readonly attrs: {
443
+ readonly variant: "success" | "warning" | null;
444
+ };
445
+ readonly type: "highlight";
446
+ })[]];
447
+ readonly text: string;
448
+ readonly type: "text";
449
+ })[]];
450
+ readonly maxMatches: number;
451
+ }[]];
452
+ readonly gaps: readonly [{
453
+ readonly id: string;
454
+ }, ...{
455
+ readonly id: string;
456
+ }[]];
457
+ readonly kind: "gapMatch";
458
+ readonly shuffle: boolean;
459
+ } | {
460
+ readonly id: string;
461
+ readonly label: string;
462
+ readonly kind: "mathEntry";
463
+ } | {
464
+ readonly id: string;
465
+ readonly label: string;
466
+ readonly areas: readonly ({
467
+ readonly id: string;
468
+ readonly label: string;
469
+ readonly coords: readonly [number, number, number, number];
470
+ readonly shape: "rect";
471
+ } | {
472
+ readonly id: string;
473
+ readonly label: string;
474
+ readonly coords: readonly [number, number, number];
475
+ readonly shape: "circle";
476
+ } | {
477
+ readonly id: string;
478
+ readonly label: string;
479
+ readonly coords: readonly [number, number, number, number];
480
+ readonly shape: "ellipse";
481
+ } | {
482
+ readonly id: string;
483
+ readonly label: string;
484
+ readonly coords: readonly [number, number, number, number, number, number, ...number[]];
485
+ readonly shape: "poly";
486
+ } | {
487
+ readonly id: string;
488
+ readonly label: string;
489
+ readonly shape: "default";
490
+ })[];
491
+ readonly image: {
492
+ readonly alt: string;
493
+ readonly asset: string;
494
+ readonly height: number;
495
+ readonly width: number;
496
+ };
497
+ readonly kind: "hotspot";
498
+ readonly maxChoices: number;
499
+ readonly minChoices: number;
500
+ } | {
501
+ readonly id: string;
502
+ readonly label: string;
503
+ readonly expectedLength?: number;
504
+ readonly kind: "textEntry";
505
+ } | {
506
+ readonly id: string;
507
+ readonly label: string;
508
+ readonly acceptsFractions: boolean;
509
+ readonly kind: "numericEntry";
510
+ readonly unit?: string;
511
+ } | {
512
+ readonly id: string;
513
+ readonly label: string;
514
+ readonly expectedLines?: number;
515
+ readonly kind: "extendedText";
516
+ } | {
517
+ readonly id: string;
518
+ readonly label: string;
519
+ readonly count: number;
520
+ readonly frame: {
521
+ readonly kind: "cartesian";
522
+ readonly x: {
523
+ readonly max: number;
524
+ readonly min: number;
525
+ };
526
+ readonly y: {
527
+ readonly max: number;
528
+ readonly min: number;
529
+ };
530
+ };
531
+ readonly kind: "graphPoint";
532
+ readonly placing: "lines" | "points";
533
+ readonly snap?: number;
534
+ }, ...({
535
+ readonly id: string;
536
+ readonly label: string;
537
+ readonly kind: "choice";
538
+ readonly maxChoices: number;
539
+ readonly minChoices: number;
540
+ readonly options: readonly {
541
+ readonly id: string;
542
+ readonly label: {
543
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
544
+ readonly type: "doc";
545
+ };
546
+ }[];
547
+ readonly shuffle: boolean;
548
+ } | {
549
+ readonly id: string;
550
+ readonly label: string;
551
+ readonly columns: readonly {
552
+ readonly id: string;
553
+ readonly label: {
554
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
555
+ readonly type: "doc";
556
+ };
557
+ }[];
558
+ readonly kind: "matrix";
559
+ readonly shuffle: boolean;
560
+ readonly statements: readonly [{
561
+ readonly id: string;
562
+ readonly label: {
563
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
564
+ readonly type: "doc";
565
+ };
566
+ }, ...{
567
+ readonly id: string;
568
+ readonly label: {
569
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
570
+ readonly type: "doc";
571
+ };
572
+ }[]];
573
+ } | {
574
+ readonly id: string;
575
+ readonly label: string;
576
+ readonly kind: "match";
577
+ readonly shuffle: boolean;
578
+ readonly sources: readonly [{
579
+ readonly id: string;
580
+ readonly label: {
581
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
582
+ readonly type: "doc";
583
+ };
584
+ readonly maxMatches: number;
585
+ }, ...{
586
+ readonly id: string;
587
+ readonly label: {
588
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
589
+ readonly type: "doc";
590
+ };
591
+ readonly maxMatches: number;
592
+ }[]];
593
+ readonly targets: readonly [{
594
+ readonly id: string;
595
+ readonly label: {
596
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
597
+ readonly type: "doc";
598
+ };
599
+ readonly maxMatches: number;
600
+ }, ...{
601
+ readonly id: string;
602
+ readonly label: {
603
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
604
+ readonly type: "doc";
605
+ };
606
+ readonly maxMatches: number;
607
+ }[]];
608
+ } | {
609
+ readonly id: string;
610
+ readonly label: string;
611
+ readonly items: readonly {
612
+ readonly id: string;
613
+ readonly label: {
614
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
615
+ readonly type: "doc";
616
+ };
617
+ }[];
618
+ readonly kind: "order";
619
+ readonly maxChoices: number;
620
+ readonly minChoices: number;
621
+ readonly shuffle: boolean;
622
+ } | {
623
+ readonly id: string;
624
+ readonly label: string;
625
+ readonly kind: "inlineChoice";
626
+ readonly options: readonly {
627
+ readonly id: string;
628
+ readonly label: readonly [{
629
+ readonly attrs: {
630
+ readonly latex: string;
631
+ };
632
+ readonly type: "mathInline";
633
+ } | {
634
+ readonly marks?: readonly [{
635
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
636
+ } | {
637
+ readonly attrs: {
638
+ readonly href: string;
639
+ };
640
+ readonly type: "link";
641
+ } | {
642
+ readonly attrs: {
643
+ readonly variant: "success" | "warning" | null;
644
+ };
645
+ readonly type: "highlight";
646
+ }, ...({
647
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
648
+ } | {
649
+ readonly attrs: {
650
+ readonly href: string;
651
+ };
652
+ readonly type: "link";
653
+ } | {
654
+ readonly attrs: {
655
+ readonly variant: "success" | "warning" | null;
656
+ };
657
+ readonly type: "highlight";
658
+ })[]];
659
+ readonly text: string;
660
+ readonly type: "text";
661
+ }, ...({
662
+ readonly attrs: {
663
+ readonly latex: string;
664
+ };
665
+ readonly type: "mathInline";
666
+ } | {
667
+ readonly marks?: readonly [{
668
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
669
+ } | {
670
+ readonly attrs: {
671
+ readonly href: string;
672
+ };
673
+ readonly type: "link";
674
+ } | {
675
+ readonly attrs: {
676
+ readonly variant: "success" | "warning" | null;
677
+ };
678
+ readonly type: "highlight";
679
+ }, ...({
680
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
681
+ } | {
682
+ readonly attrs: {
683
+ readonly href: string;
684
+ };
685
+ readonly type: "link";
686
+ } | {
687
+ readonly attrs: {
688
+ readonly variant: "success" | "warning" | null;
689
+ };
690
+ readonly type: "highlight";
691
+ })[]];
692
+ readonly text: string;
693
+ readonly type: "text";
694
+ })[]];
695
+ }[];
696
+ readonly shuffle: boolean;
697
+ } | {
698
+ readonly id: string;
699
+ readonly label: string;
700
+ readonly choices: readonly [{
701
+ readonly id: string;
702
+ readonly label: readonly [{
703
+ readonly attrs: {
704
+ readonly latex: string;
705
+ };
706
+ readonly type: "mathInline";
707
+ } | {
708
+ readonly marks?: readonly [{
709
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
710
+ } | {
711
+ readonly attrs: {
712
+ readonly href: string;
713
+ };
714
+ readonly type: "link";
715
+ } | {
716
+ readonly attrs: {
717
+ readonly variant: "success" | "warning" | null;
718
+ };
719
+ readonly type: "highlight";
720
+ }, ...({
721
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
722
+ } | {
723
+ readonly attrs: {
724
+ readonly href: string;
725
+ };
726
+ readonly type: "link";
727
+ } | {
728
+ readonly attrs: {
729
+ readonly variant: "success" | "warning" | null;
730
+ };
731
+ readonly type: "highlight";
732
+ })[]];
733
+ readonly text: string;
734
+ readonly type: "text";
735
+ }, ...({
736
+ readonly attrs: {
737
+ readonly latex: string;
738
+ };
739
+ readonly type: "mathInline";
740
+ } | {
741
+ readonly marks?: readonly [{
742
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
743
+ } | {
744
+ readonly attrs: {
745
+ readonly href: string;
746
+ };
747
+ readonly type: "link";
748
+ } | {
749
+ readonly attrs: {
750
+ readonly variant: "success" | "warning" | null;
751
+ };
752
+ readonly type: "highlight";
753
+ }, ...({
754
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
755
+ } | {
756
+ readonly attrs: {
757
+ readonly href: string;
758
+ };
759
+ readonly type: "link";
760
+ } | {
761
+ readonly attrs: {
762
+ readonly variant: "success" | "warning" | null;
763
+ };
764
+ readonly type: "highlight";
765
+ })[]];
766
+ readonly text: string;
767
+ readonly type: "text";
768
+ })[]];
769
+ readonly maxMatches: number;
770
+ }, ...{
771
+ readonly id: string;
772
+ readonly label: readonly [{
773
+ readonly attrs: {
774
+ readonly latex: string;
775
+ };
776
+ readonly type: "mathInline";
777
+ } | {
778
+ readonly marks?: readonly [{
779
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
780
+ } | {
781
+ readonly attrs: {
782
+ readonly href: string;
783
+ };
784
+ readonly type: "link";
785
+ } | {
786
+ readonly attrs: {
787
+ readonly variant: "success" | "warning" | null;
788
+ };
789
+ readonly type: "highlight";
790
+ }, ...({
791
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
792
+ } | {
793
+ readonly attrs: {
794
+ readonly href: string;
795
+ };
796
+ readonly type: "link";
797
+ } | {
798
+ readonly attrs: {
799
+ readonly variant: "success" | "warning" | null;
800
+ };
801
+ readonly type: "highlight";
802
+ })[]];
803
+ readonly text: string;
804
+ readonly type: "text";
805
+ }, ...({
806
+ readonly attrs: {
807
+ readonly latex: string;
808
+ };
809
+ readonly type: "mathInline";
810
+ } | {
811
+ readonly marks?: readonly [{
812
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
813
+ } | {
814
+ readonly attrs: {
815
+ readonly href: string;
816
+ };
817
+ readonly type: "link";
818
+ } | {
819
+ readonly attrs: {
820
+ readonly variant: "success" | "warning" | null;
821
+ };
822
+ readonly type: "highlight";
823
+ }, ...({
824
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
825
+ } | {
826
+ readonly attrs: {
827
+ readonly href: string;
828
+ };
829
+ readonly type: "link";
830
+ } | {
831
+ readonly attrs: {
832
+ readonly variant: "success" | "warning" | null;
833
+ };
834
+ readonly type: "highlight";
835
+ })[]];
836
+ readonly text: string;
837
+ readonly type: "text";
838
+ })[]];
839
+ readonly maxMatches: number;
840
+ }[]];
841
+ readonly gaps: readonly [{
842
+ readonly id: string;
843
+ }, ...{
844
+ readonly id: string;
845
+ }[]];
846
+ readonly kind: "gapMatch";
847
+ readonly shuffle: boolean;
848
+ } | {
849
+ readonly id: string;
850
+ readonly label: string;
851
+ readonly kind: "mathEntry";
852
+ } | {
853
+ readonly id: string;
854
+ readonly label: string;
855
+ readonly areas: readonly ({
856
+ readonly id: string;
857
+ readonly label: string;
858
+ readonly coords: readonly [number, number, number, number];
859
+ readonly shape: "rect";
860
+ } | {
861
+ readonly id: string;
862
+ readonly label: string;
863
+ readonly coords: readonly [number, number, number];
864
+ readonly shape: "circle";
865
+ } | {
866
+ readonly id: string;
867
+ readonly label: string;
868
+ readonly coords: readonly [number, number, number, number];
869
+ readonly shape: "ellipse";
870
+ } | {
871
+ readonly id: string;
872
+ readonly label: string;
873
+ readonly coords: readonly [number, number, number, number, number, number, ...number[]];
874
+ readonly shape: "poly";
875
+ } | {
876
+ readonly id: string;
877
+ readonly label: string;
878
+ readonly shape: "default";
879
+ })[];
880
+ readonly image: {
881
+ readonly alt: string;
882
+ readonly asset: string;
883
+ readonly height: number;
884
+ readonly width: number;
885
+ };
886
+ readonly kind: "hotspot";
887
+ readonly maxChoices: number;
888
+ readonly minChoices: number;
889
+ } | {
890
+ readonly id: string;
891
+ readonly label: string;
892
+ readonly expectedLength?: number;
893
+ readonly kind: "textEntry";
894
+ } | {
895
+ readonly id: string;
896
+ readonly label: string;
897
+ readonly acceptsFractions: boolean;
898
+ readonly kind: "numericEntry";
899
+ readonly unit?: string;
900
+ } | {
901
+ readonly id: string;
902
+ readonly label: string;
903
+ readonly expectedLines?: number;
904
+ readonly kind: "extendedText";
905
+ } | {
906
+ readonly id: string;
907
+ readonly label: string;
908
+ readonly count: number;
909
+ readonly frame: {
910
+ readonly kind: "cartesian";
911
+ readonly x: {
912
+ readonly max: number;
913
+ readonly min: number;
914
+ };
915
+ readonly y: {
916
+ readonly max: number;
917
+ readonly min: number;
918
+ };
919
+ };
920
+ readonly kind: "graphPoint";
921
+ readonly placing: "lines" | "points";
922
+ readonly snap?: number;
923
+ })[]];
924
+ readonly joint?: {
925
+ readonly levels: readonly [{
926
+ readonly correct: readonly [string, ...string[]];
927
+ readonly points: number;
928
+ }, ...{
929
+ readonly correct: readonly [string, ...string[]];
930
+ readonly points: number;
931
+ }[]];
932
+ };
933
+ readonly prompt: {
934
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
935
+ readonly type: "doc";
936
+ };
937
+ readonly scoring: readonly {
938
+ readonly interaction: string;
939
+ readonly rule: {
940
+ readonly kind: "allOrNothing";
941
+ } | {
942
+ readonly bands: readonly [{
943
+ readonly points: number;
944
+ readonly wrong: number;
945
+ }, ...{
946
+ readonly points: number;
947
+ readonly wrong: number;
948
+ }[]];
949
+ readonly kind: "wrongParts";
950
+ } | {
951
+ readonly criteria: readonly [{
952
+ readonly id: string;
953
+ readonly label: string;
954
+ readonly levels: readonly {
955
+ readonly id: string;
956
+ readonly label: string;
957
+ readonly points: number;
958
+ }[];
959
+ }, ...{
960
+ readonly id: string;
961
+ readonly label: string;
962
+ readonly levels: readonly {
963
+ readonly id: string;
964
+ readonly label: string;
965
+ readonly points: number;
966
+ }[];
967
+ }[]];
968
+ readonly kind: "rubric";
969
+ } | {
970
+ readonly floor: number;
971
+ readonly kind: "perPart";
972
+ readonly penaltyPerWrongPart?: number;
973
+ readonly pointsPerPart: number;
974
+ };
975
+ }[];
976
+ readonly stimulus?: {
977
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
978
+ readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraStimulusId">;
979
+ };
980
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
981
+ }>;
982
+ keys: HashMap.HashMap<string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, {
983
+ readonly answers: readonly [{
984
+ readonly interaction: string;
985
+ readonly correct: readonly [string, ...string[]];
986
+ readonly kind: "choice";
987
+ } | {
988
+ readonly interaction: string;
989
+ readonly answers: readonly [{
990
+ readonly column: string;
991
+ readonly statement: string;
992
+ }, ...{
993
+ readonly column: string;
994
+ readonly statement: string;
995
+ }[]];
996
+ readonly kind: "matrix";
997
+ } | {
998
+ readonly interaction: string;
999
+ readonly kind: "match";
1000
+ readonly pairs: readonly [{
1001
+ readonly source: string;
1002
+ readonly target: string;
1003
+ }, ...{
1004
+ readonly source: string;
1005
+ readonly target: string;
1006
+ }[]];
1007
+ } | {
1008
+ readonly interaction: string;
1009
+ readonly kind: "order";
1010
+ readonly sequence: readonly [string, ...string[]];
1011
+ } | {
1012
+ readonly interaction: string;
1013
+ readonly correct: string;
1014
+ readonly kind: "inlineChoice";
1015
+ } | {
1016
+ readonly interaction: string;
1017
+ readonly accepted: {
1018
+ readonly acceptedAnswers: readonly [string, ...string[]];
1019
+ readonly collapseWhitespace: boolean;
1020
+ readonly ignoreCase: boolean;
1021
+ readonly kind: "text";
1022
+ };
1023
+ readonly kind: "textEntry";
1024
+ } | {
1025
+ readonly interaction: string;
1026
+ readonly expression: string;
1027
+ readonly kind: "mathEntry";
1028
+ } | {
1029
+ readonly interaction: string;
1030
+ readonly correct: readonly [string, ...string[]];
1031
+ readonly kind: "hotspot";
1032
+ } | {
1033
+ readonly interaction: string;
1034
+ readonly kind: "gapMatch";
1035
+ readonly pairs: readonly [{
1036
+ readonly choice: string;
1037
+ readonly gap: string;
1038
+ }, ...{
1039
+ readonly choice: string;
1040
+ readonly gap: string;
1041
+ }[]];
1042
+ } | {
1043
+ readonly interaction: string;
1044
+ readonly kind: "graphPoint";
1045
+ readonly target: {
1046
+ readonly kind: "points";
1047
+ readonly points: readonly [{
1048
+ readonly x: number;
1049
+ readonly y: number;
1050
+ }, ...{
1051
+ readonly x: number;
1052
+ readonly y: number;
1053
+ }[]];
1054
+ } | {
1055
+ readonly kind: "lines";
1056
+ readonly lines: readonly [{
1057
+ readonly through: readonly [{
1058
+ readonly x: number;
1059
+ readonly y: number;
1060
+ }, {
1061
+ readonly x: number;
1062
+ readonly y: number;
1063
+ }];
1064
+ }, ...{
1065
+ readonly through: readonly [{
1066
+ readonly x: number;
1067
+ readonly y: number;
1068
+ }, {
1069
+ readonly x: number;
1070
+ readonly y: number;
1071
+ }];
1072
+ }[]];
1073
+ };
1074
+ readonly tolerance: number;
1075
+ } | {
1076
+ readonly interaction: string;
1077
+ readonly criteria: readonly [{
1078
+ readonly criterion: string;
1079
+ readonly levels: readonly [{
1080
+ readonly descriptor: string;
1081
+ readonly level: string;
1082
+ }, ...{
1083
+ readonly descriptor: string;
1084
+ readonly level: string;
1085
+ }[]];
1086
+ }, ...{
1087
+ readonly criterion: string;
1088
+ readonly levels: readonly [{
1089
+ readonly descriptor: string;
1090
+ readonly level: string;
1091
+ }, ...{
1092
+ readonly descriptor: string;
1093
+ readonly level: string;
1094
+ }[]];
1095
+ }[]];
1096
+ readonly kind: "extendedText";
1097
+ } | {
1098
+ readonly interaction: string;
1099
+ readonly kind: "numericEntry";
1100
+ readonly tolerance?: {
1101
+ readonly kind: "absolute" | "relative";
1102
+ readonly value: string;
1103
+ };
1104
+ readonly value: string;
1105
+ }, ...({
1106
+ readonly interaction: string;
1107
+ readonly correct: readonly [string, ...string[]];
1108
+ readonly kind: "choice";
1109
+ } | {
1110
+ readonly interaction: string;
1111
+ readonly answers: readonly [{
1112
+ readonly column: string;
1113
+ readonly statement: string;
1114
+ }, ...{
1115
+ readonly column: string;
1116
+ readonly statement: string;
1117
+ }[]];
1118
+ readonly kind: "matrix";
1119
+ } | {
1120
+ readonly interaction: string;
1121
+ readonly kind: "match";
1122
+ readonly pairs: readonly [{
1123
+ readonly source: string;
1124
+ readonly target: string;
1125
+ }, ...{
1126
+ readonly source: string;
1127
+ readonly target: string;
1128
+ }[]];
1129
+ } | {
1130
+ readonly interaction: string;
1131
+ readonly kind: "order";
1132
+ readonly sequence: readonly [string, ...string[]];
1133
+ } | {
1134
+ readonly interaction: string;
1135
+ readonly correct: string;
1136
+ readonly kind: "inlineChoice";
1137
+ } | {
1138
+ readonly interaction: string;
1139
+ readonly accepted: {
1140
+ readonly acceptedAnswers: readonly [string, ...string[]];
1141
+ readonly collapseWhitespace: boolean;
1142
+ readonly ignoreCase: boolean;
1143
+ readonly kind: "text";
1144
+ };
1145
+ readonly kind: "textEntry";
1146
+ } | {
1147
+ readonly interaction: string;
1148
+ readonly expression: string;
1149
+ readonly kind: "mathEntry";
1150
+ } | {
1151
+ readonly interaction: string;
1152
+ readonly correct: readonly [string, ...string[]];
1153
+ readonly kind: "hotspot";
1154
+ } | {
1155
+ readonly interaction: string;
1156
+ readonly kind: "gapMatch";
1157
+ readonly pairs: readonly [{
1158
+ readonly choice: string;
1159
+ readonly gap: string;
1160
+ }, ...{
1161
+ readonly choice: string;
1162
+ readonly gap: string;
1163
+ }[]];
1164
+ } | {
1165
+ readonly interaction: string;
1166
+ readonly kind: "graphPoint";
1167
+ readonly target: {
1168
+ readonly kind: "points";
1169
+ readonly points: readonly [{
1170
+ readonly x: number;
1171
+ readonly y: number;
1172
+ }, ...{
1173
+ readonly x: number;
1174
+ readonly y: number;
1175
+ }[]];
1176
+ } | {
1177
+ readonly kind: "lines";
1178
+ readonly lines: readonly [{
1179
+ readonly through: readonly [{
1180
+ readonly x: number;
1181
+ readonly y: number;
1182
+ }, {
1183
+ readonly x: number;
1184
+ readonly y: number;
1185
+ }];
1186
+ }, ...{
1187
+ readonly through: readonly [{
1188
+ readonly x: number;
1189
+ readonly y: number;
1190
+ }, {
1191
+ readonly x: number;
1192
+ readonly y: number;
1193
+ }];
1194
+ }[]];
1195
+ };
1196
+ readonly tolerance: number;
1197
+ } | {
1198
+ readonly interaction: string;
1199
+ readonly criteria: readonly [{
1200
+ readonly criterion: string;
1201
+ readonly levels: readonly [{
1202
+ readonly descriptor: string;
1203
+ readonly level: string;
1204
+ }, ...{
1205
+ readonly descriptor: string;
1206
+ readonly level: string;
1207
+ }[]];
1208
+ }, ...{
1209
+ readonly criterion: string;
1210
+ readonly levels: readonly [{
1211
+ readonly descriptor: string;
1212
+ readonly level: string;
1213
+ }, ...{
1214
+ readonly descriptor: string;
1215
+ readonly level: string;
1216
+ }[]];
1217
+ }[]];
1218
+ readonly kind: "extendedText";
1219
+ } | {
1220
+ readonly interaction: string;
1221
+ readonly kind: "numericEntry";
1222
+ readonly tolerance?: {
1223
+ readonly kind: "absolute" | "relative";
1224
+ readonly value: string;
1225
+ };
1226
+ readonly value: string;
1227
+ })[]];
1228
+ readonly version: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1229
+ }>;
1230
+ papers: HashMap.HashMap<string & import("effect/Brand").Brand<"@NakafaAI/AksaraPaperId">, {
1231
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1232
+ readonly kind: "paper";
1233
+ readonly paper: {
1234
+ readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPaperId">;
1235
+ readonly profile: {
1236
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1237
+ readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraExamProfileId">;
1238
+ };
1239
+ readonly sections: readonly [{
1240
+ readonly languages: readonly [string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">, ...(string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">)[]];
1241
+ readonly placements: readonly [{
1242
+ readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
1243
+ readonly versions: readonly [{
1244
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1245
+ readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
1246
+ }, ...{
1247
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1248
+ readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
1249
+ }[]];
1250
+ }, ...{
1251
+ readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
1252
+ readonly versions: readonly [{
1253
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1254
+ readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
1255
+ }, ...{
1256
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1257
+ readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
1258
+ }[]];
1259
+ }[]];
1260
+ readonly section: string;
1261
+ }, ...{
1262
+ readonly languages: readonly [string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">, ...(string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">)[]];
1263
+ readonly placements: readonly [{
1264
+ readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
1265
+ readonly versions: readonly [{
1266
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1267
+ readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
1268
+ }, ...{
1269
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1270
+ readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
1271
+ }[]];
1272
+ }, ...{
1273
+ readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
1274
+ readonly versions: readonly [{
1275
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1276
+ readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
1277
+ }, ...{
1278
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1279
+ readonly language: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
1280
+ }[]];
1281
+ }[]];
1282
+ readonly section: string;
1283
+ }[]];
1284
+ readonly stimuli: readonly {
1285
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1286
+ readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraStimulusId">;
1287
+ }[];
1288
+ };
1289
+ }>;
1290
+ profiles: HashMap.HashMap<string & import("effect/Brand").Brand<"@NakafaAI/AksaraExamProfileId">, {
1291
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
1292
+ readonly kind: "profile";
1293
+ readonly profile: {
1294
+ readonly accommodations: {
1295
+ readonly assigned: readonly ("high-contrast" | "separate-room" | "text-to-speech")[];
1296
+ readonly recorded: readonly ({
1297
+ readonly kind: "extraTime";
1298
+ readonly maxPercent: number;
1299
+ } | {
1300
+ readonly kind: "extraBreak";
1301
+ readonly maxSeconds: number;
1302
+ } | {
1303
+ readonly kind: "alternateFormat" | "reader" | "scribe";
1304
+ })[];
1305
+ readonly universal: readonly ("calculator-basic" | "calculator-graphing" | "calculator-scientific" | "formula-sheet" | "hide-timer" | "highlighter" | "line-reader" | "mark-for-review" | "notes" | "option-eliminator" | "text-to-speech" | "zoom")[];
1306
+ };
1307
+ readonly breaks: readonly {
1308
+ readonly after: string;
1309
+ readonly seconds: number;
1310
+ }[];
1311
+ readonly defaults: readonly {
1312
+ readonly interaction: "choice" | "extendedText" | "gapMatch" | "graphPoint" | "hotspot" | "inlineChoice" | "match" | "mathEntry" | "matrix" | "numericEntry" | "order" | "textEntry";
1313
+ readonly rule: {
1314
+ readonly kind: "allOrNothing";
1315
+ } | {
1316
+ readonly bands: readonly [{
1317
+ readonly points: number;
1318
+ readonly wrong: number;
1319
+ }, ...{
1320
+ readonly points: number;
1321
+ readonly wrong: number;
1322
+ }[]];
1323
+ readonly kind: "wrongParts";
1324
+ } | {
1325
+ readonly floor: number;
1326
+ readonly kind: "perPart";
1327
+ readonly penaltyPerWrongPart?: number;
1328
+ readonly pointsPerPart: number;
1329
+ };
1330
+ }[];
1331
+ readonly graceSeconds: number;
1332
+ readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraExamProfileId">;
1333
+ readonly names: {
1334
+ readonly de: string;
1335
+ readonly en: string;
1336
+ readonly id: string;
1337
+ readonly ms: string;
1338
+ };
1339
+ readonly report: {
1340
+ readonly sections: boolean;
1341
+ readonly standardError: boolean;
1342
+ readonly total: boolean;
1343
+ };
1344
+ readonly sampledMath: "review" | "score";
1345
+ readonly scale?: {
1346
+ readonly maximum: number;
1347
+ readonly minimum: number;
1348
+ };
1349
+ readonly scoring: {
1350
+ readonly kind: "irt";
1351
+ } | {
1352
+ readonly kind: "raw";
1353
+ } | {
1354
+ readonly kind: "penalized";
1355
+ readonly marks: {
1356
+ readonly blank: number;
1357
+ readonly correct: number;
1358
+ readonly wrong: number;
1359
+ };
1360
+ } | {
1361
+ readonly formula: {
1362
+ readonly de: string;
1363
+ readonly en: string;
1364
+ readonly id: string;
1365
+ readonly ms: string;
1366
+ };
1367
+ readonly kind: "composite";
1368
+ };
1369
+ readonly sections: readonly [{
1370
+ 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")[]];
1372
+ readonly items: number;
1373
+ readonly names: {
1374
+ readonly de: string;
1375
+ readonly en: string;
1376
+ readonly id: string;
1377
+ readonly ms: string;
1378
+ };
1379
+ readonly navigation: "free" | "linear";
1380
+ readonly seconds: number;
1381
+ 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
+ }, ...{
1383
+ 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")[]];
1385
+ readonly items: number;
1386
+ readonly names: {
1387
+ readonly de: string;
1388
+ readonly en: string;
1389
+ readonly id: string;
1390
+ readonly ms: string;
1391
+ };
1392
+ readonly navigation: "free" | "linear";
1393
+ readonly seconds: number;
1394
+ 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")[];
1395
+ }[]];
1396
+ readonly totalSeconds: number;
1397
+ readonly writeAllowanceSeconds: number;
1398
+ };
1399
+ }>;
1400
+ stimuli: HashSet.HashSet<string>;
1401
+ };
1402
+ /** The rows of a snapshot, gathered by kind. */
1403
+ export type Rows = ReturnType<typeof indexRows>;
1404
+ /** The hash of every version a paper places, every language of every place. */
1405
+ export declare function placedHashes(paper: Paper): [string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, ...(string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">)[]];
1406
+ /** The identity of one explanation: the version it explains and its language. */
1407
+ export declare function explanationIdentity(version: string, language: string): string;
1408
+ /** The identity of one stimulus version: its identifier and its hash. */
1409
+ export declare function stimulusIdentity(version: Pick<StimulusVersion, "hash" | "id">): string;