@nakafa/aksara-contracts 1.0.1 → 3.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 (214) hide show
  1. package/README.md +10 -27
  2. package/dist/artifact/integrity.d.ts +3 -3
  3. package/dist/artifact/integrity.js +2 -2
  4. package/dist/artifact/source.d.ts +2 -2
  5. package/dist/artifact/source.js +2 -8
  6. package/dist/artifact/spec.d.ts +0 -16
  7. package/dist/artifact/spec.js +0 -6
  8. package/dist/artifact/verify.d.ts +1 -1
  9. package/dist/{question → assessment}/answer.d.ts +14 -58
  10. package/dist/{question → assessment}/answer.js +13 -60
  11. package/dist/assessment/catalog.d.ts +235 -0
  12. package/dist/assessment/catalog.js +115 -0
  13. package/dist/assessment/chart.d.ts +62 -0
  14. package/dist/assessment/chart.js +64 -0
  15. package/dist/assessment/closure.d.ts +28 -0
  16. package/dist/assessment/closure.js +164 -0
  17. package/dist/assessment/explanation.d.ts +13 -8
  18. package/dist/assessment/explanation.js +14 -8
  19. package/dist/assessment/figure.d.ts +140 -1
  20. package/dist/assessment/figure.js +9 -2
  21. package/dist/assessment/hash.d.ts +352 -212
  22. package/dist/assessment/hash.js +14 -0
  23. package/dist/assessment/inline.d.ts +3 -1
  24. package/dist/assessment/inline.js +20 -5
  25. package/dist/assessment/item.d.ts +8 -4
  26. package/dist/assessment/item.js +6 -2
  27. package/dist/assessment/key.js +6 -6
  28. package/dist/assessment/paper.d.ts +74 -74
  29. package/dist/assessment/snapshot.d.ts +3778 -0
  30. package/dist/assessment/snapshot.js +192 -0
  31. package/dist/cache/content.d.ts +4 -4
  32. package/dist/canonical.d.ts +6 -0
  33. package/dist/canonical.js +8 -1
  34. package/dist/content.d.ts +1 -1
  35. package/dist/content.js +0 -1
  36. package/dist/delivery.d.ts +0 -3
  37. package/dist/delivery.js +0 -5
  38. package/dist/hash/digest.d.ts +7 -7
  39. package/dist/hash/digest.js +9 -30
  40. package/dist/hash/stream.d.ts +1 -1
  41. package/dist/hash/text.d.ts +3 -12
  42. package/dist/hash/text.js +3 -6
  43. package/dist/ids.js +8 -8
  44. package/dist/preview/artifact.d.ts +1 -120
  45. package/dist/preview/auth.d.ts +1 -1
  46. package/dist/preview/auth.js +29 -25
  47. package/dist/preview/document.d.ts +0 -586
  48. package/dist/preview/document.js +1 -47
  49. package/dist/preview/spec.d.ts +6 -1984
  50. package/dist/preview/spec.js +7 -47
  51. package/dist/preview/target.d.ts +0 -173
  52. package/dist/preview/target.js +1 -70
  53. package/dist/program/snapshot/digest.d.ts +1 -2
  54. package/dist/program/snapshot/digest.js +2 -4
  55. package/dist/program/snapshot/hash.d.ts +6 -21
  56. package/dist/program/snapshot/hash.js +3 -9
  57. package/dist/projection/digest.d.ts +7 -143
  58. package/dist/projection/digest.js +7 -13
  59. package/dist/projection/hash.d.ts +2 -138
  60. package/dist/projection/hash.js +2 -5
  61. package/dist/projection/material.js +1 -1
  62. package/dist/projection/spec.d.ts +6 -211
  63. package/dist/projection/spec.js +4 -18
  64. package/dist/projection/verify.d.ts +1 -128
  65. package/dist/projection/verify.js +1 -4
  66. package/dist/quran/provenance.d.ts +2 -8
  67. package/dist/quran/provenance.js +1 -4
  68. package/dist/quran/snapshot/digest.d.ts +1 -2
  69. package/dist/quran/snapshot/digest.js +2 -2
  70. package/dist/quran/snapshot/hash.d.ts +3 -10
  71. package/dist/quran/snapshot/hash.js +2 -5
  72. package/dist/quran/snapshot/row/hash.d.ts +3 -12
  73. package/dist/quran/snapshot/row/hash.js +2 -5
  74. package/dist/release/canonical.d.ts +2 -2
  75. package/dist/release/current/evidence.d.ts +24 -24
  76. package/dist/release/current/state.d.ts +28 -56
  77. package/dist/release/current/state.js +1 -6
  78. package/dist/release/digest.d.ts +9 -18
  79. package/dist/release/digest.js +7 -13
  80. package/dist/release/hash.d.ts +7 -16
  81. package/dist/release/hash.js +2 -6
  82. package/dist/release/head.d.ts +10 -57
  83. package/dist/release/head.js +3 -14
  84. package/dist/release/identity.d.ts +3 -3
  85. package/dist/release/items.d.ts +3 -3
  86. package/dist/release/items.js +1 -1
  87. package/dist/release/lifecycle.d.ts +18 -18
  88. package/dist/release/policy.d.ts +3 -4
  89. package/dist/release/policy.js +2 -11
  90. package/dist/release/result/digest.d.ts +11 -31
  91. package/dist/release/result/digest.js +5 -11
  92. package/dist/release/rollback/digest.d.ts +11 -35
  93. package/dist/release/rollback/digest.js +7 -13
  94. package/dist/release/rollback/spec.d.ts +30 -792
  95. package/dist/release/rollback/spec.js +1 -4
  96. package/dist/release/route/digest.d.ts +7 -16
  97. package/dist/release/route/digest.js +7 -13
  98. package/dist/release/route/verify.d.ts +1 -1
  99. package/dist/release/route/verify.js +1 -1
  100. package/dist/release/snapshot/data.d.ts +599 -249
  101. package/dist/release/snapshot/data.js +11 -28
  102. package/dist/release/snapshot/evidence/assessment.d.ts +26 -0
  103. package/dist/release/snapshot/evidence/assessment.js +44 -0
  104. package/dist/release/snapshot/evidence/program.d.ts +1 -1
  105. package/dist/release/snapshot/evidence/quran.d.ts +1 -1
  106. package/dist/release/snapshot/evidence/requirement.d.ts +1 -1
  107. package/dist/release/snapshot/evidence.d.ts +19 -19
  108. package/dist/release/snapshot/evidence.js +2 -2
  109. package/dist/release/snapshot/scope.d.ts +5 -5
  110. package/dist/release/snapshot/scope.js +1 -1
  111. package/dist/release/snapshot/spec.d.ts +15 -15
  112. package/dist/release/snapshot/spec.js +8 -8
  113. package/dist/release/snapshot/verify.d.ts +1278 -268
  114. package/dist/release/snapshot/verify.js +8 -5
  115. package/dist/release/spec.d.ts +33 -33
  116. package/dist/release/verify.d.ts +7 -7
  117. package/dist/renderer/compatibility.d.ts +1 -1
  118. package/dist/renderer/component.js +1 -1
  119. package/dist/renderer/contract.d.ts +0 -8
  120. package/dist/renderer/contract.js +0 -3
  121. package/dist/renderer/manifest.d.ts +3 -3
  122. package/dist/renderer/manifest.js +2 -2
  123. package/dist/runtime/spec.d.ts +38 -38
  124. package/dist/runtime/spec.js +4 -5
  125. package/dist/runtime/verify.d.ts +42 -42
  126. package/dist/signature/key.d.ts +0 -2
  127. package/dist/signature/key.js +37 -88
  128. package/dist/signature/spec.d.ts +5 -5
  129. package/dist/signature/spec.js +0 -1
  130. package/dist/signature/verify.js +31 -46
  131. package/dist/transport/batch.d.ts +6 -244
  132. package/dist/transport/failure.d.ts +6 -20
  133. package/dist/transport/failure.js +0 -10
  134. package/dist/transport/group.d.ts +1969 -1369
  135. package/dist/transport/group.js +0 -2
  136. package/dist/transport/request.d.ts +10691 -5086
  137. package/dist/transport/request.js +0 -3
  138. package/dist/transport/response.d.ts +219 -1442
  139. package/dist/transport/response.js +0 -4
  140. package/dist/transport/snapshot.d.ts +1187 -487
  141. package/dist/tree.js +1 -1
  142. package/package.json +188 -296
  143. package/dist/projection/question.d.ts +0 -1067
  144. package/dist/projection/question.js +0 -121
  145. package/dist/question/identity.d.ts +0 -175
  146. package/dist/question/identity.js +0 -207
  147. package/dist/question/item.d.ts +0 -450
  148. package/dist/question/item.js +0 -174
  149. package/dist/question/label.d.ts +0 -3
  150. package/dist/question/label.js +0 -3
  151. package/dist/question/points.d.ts +0 -18
  152. package/dist/question/points.js +0 -22
  153. package/dist/question/response.d.ts +0 -289
  154. package/dist/question/response.js +0 -167
  155. package/dist/question/rubric.d.ts +0 -234
  156. package/dist/question/rubric.js +0 -186
  157. package/dist/release/current/runtime.d.ts +0 -4
  158. package/dist/release/current/runtime.js +0 -15
  159. package/dist/release/snapshot/evidence/tryout.d.ts +0 -22
  160. package/dist/release/snapshot/evidence/tryout.js +0 -91
  161. package/dist/runtime/protected/limits.d.ts +0 -10
  162. package/dist/runtime/protected/limits.js +0 -16
  163. package/dist/runtime/protected/spec.d.ts +0 -310
  164. package/dist/runtime/protected/spec.js +0 -80
  165. package/dist/runtime/protected/verify.d.ts +0 -83
  166. package/dist/runtime/protected/verify.js +0 -70
  167. package/dist/transport/runtime.d.ts +0 -77
  168. package/dist/transport/runtime.js +0 -33
  169. package/dist/tryout/canonical.d.ts +0 -12
  170. package/dist/tryout/canonical.js +0 -7
  171. package/dist/tryout/catalog.d.ts +0 -396
  172. package/dist/tryout/catalog.js +0 -155
  173. package/dist/tryout/closure/accounting.d.ts +0 -20
  174. package/dist/tryout/closure/accounting.js +0 -70
  175. package/dist/tryout/closure/locale.d.ts +0 -14
  176. package/dist/tryout/closure/locale.js +0 -113
  177. package/dist/tryout/closure/placement.d.ts +0 -5
  178. package/dist/tryout/closure/placement.js +0 -32
  179. package/dist/tryout/digest.d.ts +0 -34
  180. package/dist/tryout/digest.js +0 -57
  181. package/dist/tryout/hash/catalog.d.ts +0 -364
  182. package/dist/tryout/hash/catalog.js +0 -209
  183. package/dist/tryout/hash/content.d.ts +0 -215
  184. package/dist/tryout/hash/content.js +0 -75
  185. package/dist/tryout/hash/placement.d.ts +0 -242
  186. package/dist/tryout/hash/placement.js +0 -56
  187. package/dist/tryout/identity.d.ts +0 -12
  188. package/dist/tryout/identity.js +0 -47
  189. package/dist/tryout/key.d.ts +0 -4
  190. package/dist/tryout/key.js +0 -8
  191. package/dist/tryout/language.d.ts +0 -24
  192. package/dist/tryout/language.js +0 -30
  193. package/dist/tryout/placement.d.ts +0 -331
  194. package/dist/tryout/placement.js +0 -96
  195. package/dist/tryout/runtime/canonical.d.ts +0 -8
  196. package/dist/tryout/runtime/canonical.js +0 -34
  197. package/dist/tryout/runtime/hash.d.ts +0 -34
  198. package/dist/tryout/runtime/hash.js +0 -13
  199. package/dist/tryout/runtime/source.d.ts +0 -44
  200. package/dist/tryout/runtime/source.js +0 -47
  201. package/dist/tryout/runtime/spec.d.ts +0 -58
  202. package/dist/tryout/runtime/spec.js +0 -21
  203. package/dist/tryout/runtime/verify.d.ts +0 -69
  204. package/dist/tryout/runtime/verify.js +0 -67
  205. package/dist/tryout/scoring.d.ts +0 -148
  206. package/dist/tryout/scoring.js +0 -98
  207. package/dist/tryout/snapshot/canonical.d.ts +0 -7
  208. package/dist/tryout/snapshot/canonical.js +0 -18
  209. package/dist/tryout/snapshot/hash.d.ts +0 -49
  210. package/dist/tryout/snapshot/hash.js +0 -22
  211. package/dist/tryout/snapshot/spec.d.ts +0 -46
  212. package/dist/tryout/snapshot/spec.js +0 -30
  213. package/dist/tryout/spec.d.ts +0 -41
  214. package/dist/tryout/spec.js +0 -46
@@ -1,7 +1,7 @@
1
- import { Array as Arr, Equal, Schema } from "effect";
1
+ import { Array as Arr, Equal, Order, Schema } from "effect";
2
2
  import { LocalIdSchema } from "#contracts/assessment/identity";
3
3
  import { LatexSchema } from "#contracts/assessment/scalar";
4
- import { hasCanonicalOrder } from "#contracts/canonical";
4
+ import { canonicalOrder, hasCanonicalOrder } from "#contracts/canonical";
5
5
  import { isHttpsUrl } from "#contracts/text/syntax";
6
6
  /** A mark that carries no attribute: it only changes how its text looks. */
7
7
  const PlainMarkSchema = Schema.Struct({
@@ -14,11 +14,24 @@ const PlainMarkSchema = Schema.Struct({
14
14
  "superscript",
15
15
  ]),
16
16
  });
17
- /** A link mark. Only absolute HTTPS addresses are links. */
17
+ /**
18
+ * A path on the site that shows the document, such as a lesson: one slash and
19
+ * no whitespace, never two slashes that would name another host.
20
+ */
21
+ const SITE_PATH_PATTERN = /^\/(?![/\\])\S*$/u;
22
+ /** Checks that a link names an absolute HTTPS address or a path on the site. */
23
+ function isLinkTarget(href) {
24
+ return isHttpsUrl(href) || SITE_PATH_PATTERN.test(href);
25
+ }
26
+ /**
27
+ * A link mark: an absolute HTTPS address, or a path on the site, which the
28
+ * renderer resolves on the host that shows the document, so a School host keeps
29
+ * its learners.
30
+ */
18
31
  const LinkMarkSchema = Schema.Struct({
19
32
  attrs: Schema.Struct({
20
- href: Schema.String.check(Schema.makeFilter(isHttpsUrl, {
21
- message: "Expected an absolute HTTPS address without whitespace.",
33
+ href: Schema.String.check(Schema.makeFilter(isLinkTarget, {
34
+ message: "Expected an absolute HTTPS address or a site path, without whitespace.",
22
35
  })),
23
36
  }),
24
37
  type: Schema.Literal("link"),
@@ -31,6 +44,8 @@ export const MarkSchema = Schema.Union([PlainMarkSchema, LinkMarkSchema]);
31
44
  * in their written order, then the link.
32
45
  */
33
46
  const MARK_ORDER = Arr.append(PlainMarkSchema.fields.type.literals, LinkMarkSchema.fields.type.literal);
47
+ /** Orders marks as a text node keeps them. */
48
+ export const MarkOrder = Order.mapInput(canonicalOrder(MARK_ORDER), (mark) => mark.type);
34
49
  /** Checks that marks appear once each, in the one canonical order. */
35
50
  function hasCanonicalMarks(marks) {
36
51
  return hasCanonicalOrder(MARK_ORDER, Arr.map(marks, ({ type }) => type));
@@ -1,8 +1,12 @@
1
1
  import { Schema } from "effect";
2
- /** The editorial facts that place an item in a blueprint. */
2
+ /**
3
+ * The editorial facts that place an item in the blueprint of its exam: its
4
+ * cognitive level, its content domain, and its topic, the three dimensions of
5
+ * the official TKA framework.
6
+ */
3
7
  export declare const ItemBlueprintSchema: Schema.Struct<{
4
8
  readonly cognitiveLevel: Schema.String;
5
- readonly competency: Schema.String;
9
+ readonly contentDomain: Schema.String;
6
10
  readonly topic: Schema.String;
7
11
  }>;
8
12
  /**
@@ -12,7 +16,7 @@ export declare const ItemBlueprintSchema: Schema.Struct<{
12
16
  export declare const ItemFamilySchema: Schema.Struct<{
13
17
  readonly blueprint: Schema.optionalKey<Schema.Struct<{
14
18
  readonly cognitiveLevel: Schema.String;
15
- readonly competency: Schema.String;
19
+ readonly contentDomain: Schema.String;
16
20
  readonly topic: Schema.String;
17
21
  }>>;
18
22
  readonly id: Schema.brand<Schema.String, "@NakafaAI/AksaraItemFamilyId">;
@@ -541,7 +545,7 @@ export declare const ItemSchema: Schema.Struct<{
541
545
  readonly family: Schema.Struct<{
542
546
  readonly blueprint: Schema.optionalKey<Schema.Struct<{
543
547
  readonly cognitiveLevel: Schema.String;
544
- readonly competency: Schema.String;
548
+ readonly contentDomain: Schema.String;
545
549
  readonly topic: Schema.String;
546
550
  }>>;
547
551
  readonly id: Schema.brand<Schema.String, "@NakafaAI/AksaraItemFamilyId">;
@@ -9,10 +9,14 @@ import { ScoringOverrideSchema } from "#contracts/assessment/scoring";
9
9
  import { hasSameStructure } from "#contracts/assessment/structure";
10
10
  import { Sha256HashSchema } from "#contracts/ids";
11
11
  import { ContentLanguageSchema } from "#contracts/locale";
12
- /** The editorial facts that place an item in a blueprint. */
12
+ /**
13
+ * The editorial facts that place an item in the blueprint of its exam: its
14
+ * cognitive level, its content domain, and its topic, the three dimensions of
15
+ * the official TKA framework.
16
+ */
13
17
  export const ItemBlueprintSchema = Schema.Struct({
14
18
  cognitiveLevel: KebabKeySchema,
15
- competency: KebabKeySchema,
19
+ contentDomain: KebabKeySchema,
16
20
  topic: KebabKeySchema,
17
21
  });
18
22
  /**
@@ -1,10 +1,10 @@
1
1
  import { Array as Arr, Schema } from "effect";
2
+ import { DecimalSchema, TextKeySchema, ToleranceSchema, } from "#contracts/assessment/answer";
2
3
  import { hasDistinctIds, LocalIdSchema } from "#contracts/assessment/identity";
3
4
  import { isWithinRecordLimit } from "#contracts/assessment/record";
4
5
  import { LatexSchema, PlainTextSchema } from "#contracts/assessment/scalar";
5
6
  import { Sha256HashSchema } from "#contracts/ids";
6
7
  import { PlanePointSchema, PositiveMeasureSchema, samePlanePoint, } from "#contracts/math/base";
7
- import { QuestionDecimalSchema, QuestionTextKeySchema, QuestionToleranceSchema, } from "#contracts/question/answer";
8
8
  const DISTINCT_MESSAGE = "Expected no part to be named twice.";
9
9
  /** Each key names the interaction of the item version that it answers. */
10
10
  const KeyFields = { interaction: LocalIdSchema };
@@ -39,20 +39,20 @@ const InlineChoiceKeySchema = Schema.Struct({
39
39
  kind: Schema.Literal("inlineChoice"),
40
40
  });
41
41
  /**
42
- * The accepted texts with their normalization. They are the text key of
43
- * `question/answer`, so one grammar and one matcher grade both generations.
42
+ * The accepted texts with their normalization, graded by `matchesAnswerKey`
43
+ * of `assessment/answer`, the one grammar and matcher of typed answers.
44
44
  */
45
45
  const TextEntryKeySchema = Schema.Struct({
46
46
  ...KeyFields,
47
- accepted: QuestionTextKeySchema,
47
+ accepted: TextKeySchema,
48
48
  kind: Schema.Literal("textEntry"),
49
49
  });
50
50
  /** The exact value and the tolerance around it. */
51
51
  const NumericEntryKeySchema = Schema.Struct({
52
52
  ...KeyFields,
53
53
  kind: Schema.Literal("numericEntry"),
54
- tolerance: Schema.optionalKey(QuestionToleranceSchema),
55
- value: QuestionDecimalSchema,
54
+ tolerance: Schema.optionalKey(ToleranceSchema),
55
+ value: DecimalSchema,
56
56
  }).check(Schema.makeFilter(({ tolerance, value }) => tolerance?.kind !== "relative" || value !== "0", { message: "A relative tolerance cannot measure distance from zero." }));
57
57
  /** The expression that the answer must be equivalent to. */
58
58
  const MathEntryKeySchema = Schema.Struct({
@@ -100,6 +100,43 @@ export declare const verifyPaperStimuli: (paper: {
100
100
  readonly deliveryLanguage: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentLanguage">;
101
101
  readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
102
102
  readonly interactions: readonly [{
103
+ readonly id: string;
104
+ readonly label: string;
105
+ readonly areas: readonly ({
106
+ readonly id: string;
107
+ readonly label: string;
108
+ readonly coords: readonly [number, number, number, number];
109
+ readonly shape: "rect";
110
+ } | {
111
+ readonly id: string;
112
+ readonly label: string;
113
+ readonly coords: readonly [number, number, number];
114
+ readonly shape: "circle";
115
+ } | {
116
+ readonly id: string;
117
+ readonly label: string;
118
+ readonly coords: readonly [number, number, number, number];
119
+ readonly shape: "ellipse";
120
+ } | {
121
+ readonly id: string;
122
+ readonly label: string;
123
+ readonly coords: readonly [number, number, number, number, number, number, ...number[]];
124
+ readonly shape: "poly";
125
+ } | {
126
+ readonly id: string;
127
+ readonly label: string;
128
+ readonly shape: "default";
129
+ })[];
130
+ readonly image: {
131
+ readonly alt: string;
132
+ readonly asset: string;
133
+ readonly height: number;
134
+ readonly width: number;
135
+ };
136
+ readonly kind: "hotspot";
137
+ readonly maxChoices: number;
138
+ readonly minChoices: number;
139
+ } | {
103
140
  readonly id: string;
104
141
  readonly label: string;
105
142
  readonly kind: "choice";
@@ -257,43 +294,6 @@ export declare const verifyPaperStimuli: (paper: {
257
294
  readonly id: string;
258
295
  readonly label: string;
259
296
  readonly kind: "mathEntry";
260
- } | {
261
- readonly id: string;
262
- readonly label: string;
263
- readonly areas: readonly ({
264
- readonly id: string;
265
- readonly label: string;
266
- readonly coords: readonly [number, number, number, number];
267
- readonly shape: "rect";
268
- } | {
269
- readonly id: string;
270
- readonly label: string;
271
- readonly coords: readonly [number, number, number];
272
- readonly shape: "circle";
273
- } | {
274
- readonly id: string;
275
- readonly label: string;
276
- readonly coords: readonly [number, number, number, number];
277
- readonly shape: "ellipse";
278
- } | {
279
- readonly id: string;
280
- readonly label: string;
281
- readonly coords: readonly [number, number, number, number, number, number, ...number[]];
282
- readonly shape: "poly";
283
- } | {
284
- readonly id: string;
285
- readonly label: string;
286
- readonly shape: "default";
287
- })[];
288
- readonly image: {
289
- readonly alt: string;
290
- readonly asset: string;
291
- readonly height: number;
292
- readonly width: number;
293
- };
294
- readonly kind: "hotspot";
295
- readonly maxChoices: number;
296
- readonly minChoices: number;
297
297
  } | {
298
298
  readonly id: string;
299
299
  readonly label: string;
@@ -429,6 +429,43 @@ export declare const verifyPaperStimuli: (paper: {
429
429
  readonly expectedLines?: number;
430
430
  readonly kind: "extendedText";
431
431
  }, ...({
432
+ readonly id: string;
433
+ readonly label: string;
434
+ readonly areas: readonly ({
435
+ readonly id: string;
436
+ readonly label: string;
437
+ readonly coords: readonly [number, number, number, number];
438
+ readonly shape: "rect";
439
+ } | {
440
+ readonly id: string;
441
+ readonly label: string;
442
+ readonly coords: readonly [number, number, number];
443
+ readonly shape: "circle";
444
+ } | {
445
+ readonly id: string;
446
+ readonly label: string;
447
+ readonly coords: readonly [number, number, number, number];
448
+ readonly shape: "ellipse";
449
+ } | {
450
+ readonly id: string;
451
+ readonly label: string;
452
+ readonly coords: readonly [number, number, number, number, number, number, ...number[]];
453
+ readonly shape: "poly";
454
+ } | {
455
+ readonly id: string;
456
+ readonly label: string;
457
+ readonly shape: "default";
458
+ })[];
459
+ readonly image: {
460
+ readonly alt: string;
461
+ readonly asset: string;
462
+ readonly height: number;
463
+ readonly width: number;
464
+ };
465
+ readonly kind: "hotspot";
466
+ readonly maxChoices: number;
467
+ readonly minChoices: number;
468
+ } | {
432
469
  readonly id: string;
433
470
  readonly label: string;
434
471
  readonly kind: "choice";
@@ -586,43 +623,6 @@ export declare const verifyPaperStimuli: (paper: {
586
623
  readonly id: string;
587
624
  readonly label: string;
588
625
  readonly kind: "mathEntry";
589
- } | {
590
- readonly id: string;
591
- readonly label: string;
592
- readonly areas: readonly ({
593
- readonly id: string;
594
- readonly label: string;
595
- readonly coords: readonly [number, number, number, number];
596
- readonly shape: "rect";
597
- } | {
598
- readonly id: string;
599
- readonly label: string;
600
- readonly coords: readonly [number, number, number];
601
- readonly shape: "circle";
602
- } | {
603
- readonly id: string;
604
- readonly label: string;
605
- readonly coords: readonly [number, number, number, number];
606
- readonly shape: "ellipse";
607
- } | {
608
- readonly id: string;
609
- readonly label: string;
610
- readonly coords: readonly [number, number, number, number, number, number, ...number[]];
611
- readonly shape: "poly";
612
- } | {
613
- readonly id: string;
614
- readonly label: string;
615
- readonly shape: "default";
616
- })[];
617
- readonly image: {
618
- readonly alt: string;
619
- readonly asset: string;
620
- readonly height: number;
621
- readonly width: number;
622
- };
623
- readonly kind: "hotspot";
624
- readonly maxChoices: number;
625
- readonly minChoices: number;
626
626
  } | {
627
627
  readonly id: string;
628
628
  readonly label: string;