@nakafa/aksara-contracts 0.48.9 → 0.49.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 (49) hide show
  1. package/README.md +9 -0
  2. package/dist/assessment/choice.d.ts +154 -0
  3. package/dist/assessment/choice.js +87 -0
  4. package/dist/assessment/document.d.ts +219 -0
  5. package/dist/assessment/document.js +162 -0
  6. package/dist/assessment/entry.d.ts +50 -0
  7. package/dist/assessment/entry.js +48 -0
  8. package/dist/assessment/explanation.d.ts +19 -0
  9. package/dist/assessment/explanation.js +18 -0
  10. package/dist/assessment/figure.d.ts +1938 -0
  11. package/dist/assessment/figure.js +236 -0
  12. package/dist/assessment/fit.d.ts +21 -0
  13. package/dist/assessment/fit.js +42 -0
  14. package/dist/assessment/graphic.d.ts +95 -0
  15. package/dist/assessment/graphic.js +106 -0
  16. package/dist/assessment/hash.d.ts +1444 -0
  17. package/dist/assessment/hash.js +66 -0
  18. package/dist/assessment/identity.d.ts +37 -0
  19. package/dist/assessment/identity.js +50 -0
  20. package/dist/assessment/inline.d.ts +124 -0
  21. package/dist/assessment/inline.js +92 -0
  22. package/dist/assessment/interaction.d.ts +219 -0
  23. package/dist/assessment/interaction.js +38 -0
  24. package/dist/assessment/item.d.ts +759 -0
  25. package/dist/assessment/item.js +98 -0
  26. package/dist/assessment/key.d.ts +195 -0
  27. package/dist/assessment/key.js +136 -0
  28. package/dist/assessment/paper.d.ts +799 -0
  29. package/dist/assessment/paper.js +69 -0
  30. package/dist/assessment/part.d.ts +47 -0
  31. package/dist/assessment/part.js +32 -0
  32. package/dist/assessment/profile.d.ts +153 -0
  33. package/dist/assessment/profile.js +160 -0
  34. package/dist/assessment/record.d.ts +18 -0
  35. package/dist/assessment/record.js +27 -0
  36. package/dist/assessment/scalar.d.ts +18 -0
  37. package/dist/assessment/scalar.js +18 -0
  38. package/dist/assessment/scoring.d.ts +157 -0
  39. package/dist/assessment/scoring.js +150 -0
  40. package/dist/assessment/stimulus.d.ts +48 -0
  41. package/dist/assessment/stimulus.js +42 -0
  42. package/dist/assessment/structure.d.ts +13 -0
  43. package/dist/assessment/structure.js +29 -0
  44. package/dist/assessment/tools.d.ts +17 -0
  45. package/dist/assessment/tools.js +39 -0
  46. package/dist/projection/verify.d.ts +23 -23
  47. package/dist/runtime/verify.d.ts +46 -46
  48. package/dist/transport/request.d.ts +138 -138
  49. package/package.json +69 -1
@@ -0,0 +1,799 @@
1
+ import { Effect, Schema } from "effect";
2
+ /** One place in a section: an item version, named by its family and its hash. */
3
+ export declare const PlacementSchema: Schema.Struct<{
4
+ readonly family: Schema.brand<Schema.String, "@NakafaAI/AksaraItemFamilyId">;
5
+ readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
6
+ }>;
7
+ /** One section of a paper: the key of a section of the profile and its places in order. */
8
+ export declare const PaperSectionSchema: Schema.Struct<{
9
+ readonly placements: Schema.NonEmptyArray<Schema.Struct<{
10
+ readonly family: Schema.brand<Schema.String, "@NakafaAI/AksaraItemFamilyId">;
11
+ readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
12
+ }>>;
13
+ readonly section: Schema.String;
14
+ }>;
15
+ /**
16
+ * A frozen paper: the profile it follows, by identifier and hash; the sections
17
+ * with their places in order, each place an item version by family and hash;
18
+ * and the stimulus versions that the items use, by identifier and hash. A
19
+ * paper is frozen and named by its content hash. A paper bundle carries
20
+ * prompts and stimuli only, never an answer key and never an explanation. A
21
+ * paper whose items use no shared reading lists none. The schema cannot see the
22
+ * item versions, so `verifyPaperStimuli` checks that the list is the one the
23
+ * items use.
24
+ */
25
+ export declare const PaperSchema: Schema.Struct<{
26
+ readonly id: Schema.brand<Schema.String, "@NakafaAI/AksaraPaperId">;
27
+ readonly profile: Schema.Struct<{
28
+ readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
29
+ readonly id: Schema.brand<Schema.String, "@NakafaAI/AksaraExamProfileId">;
30
+ }>;
31
+ readonly sections: Schema.NonEmptyArray<Schema.Struct<{
32
+ readonly placements: Schema.NonEmptyArray<Schema.Struct<{
33
+ readonly family: Schema.brand<Schema.String, "@NakafaAI/AksaraItemFamilyId">;
34
+ readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
35
+ }>>;
36
+ readonly section: Schema.String;
37
+ }>>;
38
+ readonly stimuli: Schema.$Array<Schema.Struct<{
39
+ readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
40
+ readonly id: Schema.brand<Schema.String, "@NakafaAI/AksaraStimulusId">;
41
+ }>>;
42
+ }>;
43
+ export type Paper = typeof PaperSchema.Type;
44
+ declare const PaperStimuliMismatchError_base: Schema.Class<PaperStimuliMismatchError, Schema.TaggedStruct<"PaperStimuliMismatchError", {
45
+ readonly missing: Schema.$Array<Schema.Struct<{
46
+ readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
47
+ readonly id: Schema.brand<Schema.String, "@NakafaAI/AksaraStimulusId">;
48
+ }>>;
49
+ readonly unused: Schema.$Array<Schema.Struct<{
50
+ readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
51
+ readonly id: Schema.brand<Schema.String, "@NakafaAI/AksaraStimulusId">;
52
+ }>>;
53
+ }>, import("effect/Cause").YieldableError>;
54
+ /**
55
+ * A paper does not list the stimulus versions that its item versions use.
56
+ * `missing` are the ones the items use and the paper leaves out, and `unused`
57
+ * are the ones the paper lists and no item uses.
58
+ */
59
+ export declare class PaperStimuliMismatchError extends PaperStimuliMismatchError_base {
60
+ }
61
+ /**
62
+ * Requires a paper to list the stimulus versions that its item versions use,
63
+ * each once, and no other: the paper names the readings it uses and its items
64
+ * name theirs, and the two must agree. `versions` are the item versions that
65
+ * the places of the paper name, one for each place. Run it before the paper is
66
+ * frozen.
67
+ */
68
+ export declare const verifyPaperStimuli: (paper: {
69
+ readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPaperId">;
70
+ readonly profile: {
71
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
72
+ readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraExamProfileId">;
73
+ };
74
+ readonly sections: readonly [{
75
+ readonly placements: readonly [{
76
+ readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
77
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
78
+ }, ...{
79
+ readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
80
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
81
+ }[]];
82
+ readonly section: string;
83
+ }, ...{
84
+ readonly placements: readonly [{
85
+ readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
86
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
87
+ }, ...{
88
+ readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
89
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
90
+ }[]];
91
+ readonly section: string;
92
+ }[]];
93
+ readonly stimuli: readonly {
94
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
95
+ readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraStimulusId">;
96
+ }[];
97
+ }, versions: readonly {
98
+ readonly deliveryLanguage: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraDeliveryLanguage">;
99
+ readonly family: string & import("effect/Brand").Brand<"@NakafaAI/AksaraItemFamilyId">;
100
+ readonly interactions: readonly [{
101
+ readonly id: string;
102
+ readonly label: string;
103
+ readonly kind: "choice";
104
+ readonly maxChoices: number;
105
+ readonly minChoices: number;
106
+ readonly options: readonly {
107
+ readonly id: string;
108
+ readonly label: {
109
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
110
+ readonly type: "doc";
111
+ };
112
+ }[];
113
+ readonly shuffle: boolean;
114
+ } | {
115
+ readonly id: string;
116
+ readonly label: string;
117
+ readonly columns: readonly {
118
+ readonly id: string;
119
+ readonly label: {
120
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
121
+ readonly type: "doc";
122
+ };
123
+ }[];
124
+ readonly kind: "matrix";
125
+ readonly shuffle: boolean;
126
+ readonly statements: readonly [{
127
+ readonly id: string;
128
+ readonly label: {
129
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
130
+ readonly type: "doc";
131
+ };
132
+ }, ...{
133
+ readonly id: string;
134
+ readonly label: {
135
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
136
+ readonly type: "doc";
137
+ };
138
+ }[]];
139
+ } | {
140
+ readonly id: string;
141
+ readonly label: string;
142
+ readonly kind: "match";
143
+ readonly shuffle: boolean;
144
+ readonly sources: readonly [{
145
+ readonly id: string;
146
+ readonly label: {
147
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
148
+ readonly type: "doc";
149
+ };
150
+ readonly maxMatches: number;
151
+ }, ...{
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
+ readonly maxMatches: number;
158
+ }[]];
159
+ readonly targets: readonly [{
160
+ readonly id: string;
161
+ readonly label: {
162
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
163
+ readonly type: "doc";
164
+ };
165
+ readonly maxMatches: number;
166
+ }, ...{
167
+ readonly id: string;
168
+ readonly label: {
169
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
170
+ readonly type: "doc";
171
+ };
172
+ readonly maxMatches: number;
173
+ }[]];
174
+ } | {
175
+ readonly id: string;
176
+ readonly label: string;
177
+ readonly items: readonly {
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
+ readonly kind: "order";
185
+ readonly maxChoices: number;
186
+ readonly minChoices: number;
187
+ readonly shuffle: boolean;
188
+ } | {
189
+ readonly id: string;
190
+ readonly label: string;
191
+ readonly kind: "inlineChoice";
192
+ readonly options: readonly {
193
+ readonly id: string;
194
+ readonly label: readonly [{
195
+ readonly marks?: readonly [{
196
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
197
+ } | {
198
+ readonly attrs: {
199
+ readonly href: string;
200
+ };
201
+ readonly type: "link";
202
+ }, ...({
203
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
204
+ } | {
205
+ readonly attrs: {
206
+ readonly href: string;
207
+ };
208
+ readonly type: "link";
209
+ })[]];
210
+ readonly text: string;
211
+ readonly type: "text";
212
+ } | {
213
+ readonly attrs: {
214
+ readonly latex: string;
215
+ };
216
+ readonly type: "mathInline";
217
+ }, ...({
218
+ readonly marks?: readonly [{
219
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
220
+ } | {
221
+ readonly attrs: {
222
+ readonly href: string;
223
+ };
224
+ readonly type: "link";
225
+ }, ...({
226
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
227
+ } | {
228
+ readonly attrs: {
229
+ readonly href: string;
230
+ };
231
+ readonly type: "link";
232
+ })[]];
233
+ readonly text: string;
234
+ readonly type: "text";
235
+ } | {
236
+ readonly attrs: {
237
+ readonly latex: string;
238
+ };
239
+ readonly type: "mathInline";
240
+ })[]];
241
+ }[];
242
+ readonly shuffle: boolean;
243
+ } | {
244
+ readonly id: string;
245
+ readonly label: string;
246
+ readonly expectedLength?: number;
247
+ readonly kind: "textEntry";
248
+ } | {
249
+ readonly id: string;
250
+ readonly label: string;
251
+ readonly acceptsFractions: boolean;
252
+ readonly kind: "numericEntry";
253
+ readonly unit?: string;
254
+ } | {
255
+ readonly id: string;
256
+ readonly label: string;
257
+ readonly kind: "mathEntry";
258
+ } | {
259
+ readonly id: string;
260
+ readonly label: string;
261
+ readonly areas: readonly ({
262
+ readonly id: string;
263
+ readonly label: string;
264
+ readonly coords: readonly [number, number, number, number];
265
+ readonly shape: "rect";
266
+ } | {
267
+ readonly id: string;
268
+ readonly label: string;
269
+ readonly coords: readonly [number, number, number];
270
+ readonly shape: "circle";
271
+ } | {
272
+ readonly id: string;
273
+ readonly label: string;
274
+ readonly coords: readonly [number, number, number, number];
275
+ readonly shape: "ellipse";
276
+ } | {
277
+ readonly id: string;
278
+ readonly label: string;
279
+ readonly coords: readonly [number, number, number, number, number, number, ...number[]];
280
+ readonly shape: "poly";
281
+ } | {
282
+ readonly id: string;
283
+ readonly label: string;
284
+ readonly shape: "default";
285
+ })[];
286
+ readonly image: {
287
+ readonly alt: string;
288
+ readonly asset: string;
289
+ readonly height: number;
290
+ readonly width: number;
291
+ };
292
+ readonly kind: "hotspot";
293
+ readonly maxChoices: number;
294
+ readonly minChoices: number;
295
+ } | {
296
+ readonly id: string;
297
+ readonly label: string;
298
+ readonly choices: readonly [{
299
+ readonly id: string;
300
+ readonly label: readonly [{
301
+ readonly marks?: readonly [{
302
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
303
+ } | {
304
+ readonly attrs: {
305
+ readonly href: string;
306
+ };
307
+ readonly type: "link";
308
+ }, ...({
309
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
310
+ } | {
311
+ readonly attrs: {
312
+ readonly href: string;
313
+ };
314
+ readonly type: "link";
315
+ })[]];
316
+ readonly text: string;
317
+ readonly type: "text";
318
+ } | {
319
+ readonly attrs: {
320
+ readonly latex: string;
321
+ };
322
+ readonly type: "mathInline";
323
+ }, ...({
324
+ readonly marks?: readonly [{
325
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
326
+ } | {
327
+ readonly attrs: {
328
+ readonly href: string;
329
+ };
330
+ readonly type: "link";
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 text: string;
340
+ readonly type: "text";
341
+ } | {
342
+ readonly attrs: {
343
+ readonly latex: string;
344
+ };
345
+ readonly type: "mathInline";
346
+ })[]];
347
+ readonly maxMatches: number;
348
+ }, ...{
349
+ readonly id: string;
350
+ readonly label: readonly [{
351
+ readonly marks?: readonly [{
352
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
353
+ } | {
354
+ readonly attrs: {
355
+ readonly href: string;
356
+ };
357
+ readonly type: "link";
358
+ }, ...({
359
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
360
+ } | {
361
+ readonly attrs: {
362
+ readonly href: string;
363
+ };
364
+ readonly type: "link";
365
+ })[]];
366
+ readonly text: string;
367
+ readonly type: "text";
368
+ } | {
369
+ readonly attrs: {
370
+ readonly latex: string;
371
+ };
372
+ readonly type: "mathInline";
373
+ }, ...({
374
+ readonly marks?: readonly [{
375
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
376
+ } | {
377
+ readonly attrs: {
378
+ readonly href: string;
379
+ };
380
+ readonly type: "link";
381
+ }, ...({
382
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
383
+ } | {
384
+ readonly attrs: {
385
+ readonly href: string;
386
+ };
387
+ readonly type: "link";
388
+ })[]];
389
+ readonly text: string;
390
+ readonly type: "text";
391
+ } | {
392
+ readonly attrs: {
393
+ readonly latex: string;
394
+ };
395
+ readonly type: "mathInline";
396
+ })[]];
397
+ readonly maxMatches: number;
398
+ }[]];
399
+ readonly gaps: readonly [{
400
+ readonly id: string;
401
+ }, ...{
402
+ readonly id: string;
403
+ }[]];
404
+ readonly kind: "gapMatch";
405
+ readonly shuffle: boolean;
406
+ } | {
407
+ readonly id: string;
408
+ readonly label: string;
409
+ readonly count: number;
410
+ readonly frame: {
411
+ readonly kind: "cartesian";
412
+ readonly x: {
413
+ readonly max: number;
414
+ readonly min: number;
415
+ };
416
+ readonly y: {
417
+ readonly max: number;
418
+ readonly min: number;
419
+ };
420
+ };
421
+ readonly kind: "graphPoint";
422
+ readonly placing: "lines" | "points";
423
+ readonly snap?: number;
424
+ } | {
425
+ readonly id: string;
426
+ readonly label: string;
427
+ readonly expectedLines?: number;
428
+ readonly kind: "extendedText";
429
+ }, ...({
430
+ readonly id: string;
431
+ readonly label: string;
432
+ readonly kind: "choice";
433
+ readonly maxChoices: number;
434
+ readonly minChoices: number;
435
+ readonly options: readonly {
436
+ readonly id: string;
437
+ readonly label: {
438
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
439
+ readonly type: "doc";
440
+ };
441
+ }[];
442
+ readonly shuffle: boolean;
443
+ } | {
444
+ readonly id: string;
445
+ readonly label: string;
446
+ readonly columns: readonly {
447
+ readonly id: string;
448
+ readonly label: {
449
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
450
+ readonly type: "doc";
451
+ };
452
+ }[];
453
+ readonly kind: "matrix";
454
+ readonly shuffle: boolean;
455
+ readonly statements: readonly [{
456
+ readonly id: string;
457
+ readonly label: {
458
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
459
+ readonly type: "doc";
460
+ };
461
+ }, ...{
462
+ readonly id: string;
463
+ readonly label: {
464
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
465
+ readonly type: "doc";
466
+ };
467
+ }[]];
468
+ } | {
469
+ readonly id: string;
470
+ readonly label: string;
471
+ readonly kind: "match";
472
+ readonly shuffle: boolean;
473
+ readonly sources: readonly [{
474
+ readonly id: string;
475
+ readonly label: {
476
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
477
+ readonly type: "doc";
478
+ };
479
+ readonly maxMatches: number;
480
+ }, ...{
481
+ readonly id: string;
482
+ readonly label: {
483
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
484
+ readonly type: "doc";
485
+ };
486
+ readonly maxMatches: number;
487
+ }[]];
488
+ readonly targets: readonly [{
489
+ readonly id: string;
490
+ readonly label: {
491
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
492
+ readonly type: "doc";
493
+ };
494
+ readonly maxMatches: number;
495
+ }, ...{
496
+ readonly id: string;
497
+ readonly label: {
498
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
499
+ readonly type: "doc";
500
+ };
501
+ readonly maxMatches: number;
502
+ }[]];
503
+ } | {
504
+ readonly id: string;
505
+ readonly label: string;
506
+ readonly items: readonly {
507
+ readonly id: string;
508
+ readonly label: {
509
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
510
+ readonly type: "doc";
511
+ };
512
+ }[];
513
+ readonly kind: "order";
514
+ readonly maxChoices: number;
515
+ readonly minChoices: number;
516
+ readonly shuffle: boolean;
517
+ } | {
518
+ readonly id: string;
519
+ readonly label: string;
520
+ readonly kind: "inlineChoice";
521
+ readonly options: readonly {
522
+ readonly id: string;
523
+ readonly label: readonly [{
524
+ readonly marks?: readonly [{
525
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
526
+ } | {
527
+ readonly attrs: {
528
+ readonly href: string;
529
+ };
530
+ readonly type: "link";
531
+ }, ...({
532
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
533
+ } | {
534
+ readonly attrs: {
535
+ readonly href: string;
536
+ };
537
+ readonly type: "link";
538
+ })[]];
539
+ readonly text: string;
540
+ readonly type: "text";
541
+ } | {
542
+ readonly attrs: {
543
+ readonly latex: string;
544
+ };
545
+ readonly type: "mathInline";
546
+ }, ...({
547
+ readonly marks?: readonly [{
548
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
549
+ } | {
550
+ readonly attrs: {
551
+ readonly href: string;
552
+ };
553
+ readonly type: "link";
554
+ }, ...({
555
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
556
+ } | {
557
+ readonly attrs: {
558
+ readonly href: string;
559
+ };
560
+ readonly type: "link";
561
+ })[]];
562
+ readonly text: string;
563
+ readonly type: "text";
564
+ } | {
565
+ readonly attrs: {
566
+ readonly latex: string;
567
+ };
568
+ readonly type: "mathInline";
569
+ })[]];
570
+ }[];
571
+ readonly shuffle: boolean;
572
+ } | {
573
+ readonly id: string;
574
+ readonly label: string;
575
+ readonly expectedLength?: number;
576
+ readonly kind: "textEntry";
577
+ } | {
578
+ readonly id: string;
579
+ readonly label: string;
580
+ readonly acceptsFractions: boolean;
581
+ readonly kind: "numericEntry";
582
+ readonly unit?: string;
583
+ } | {
584
+ readonly id: string;
585
+ readonly label: string;
586
+ readonly kind: "mathEntry";
587
+ } | {
588
+ readonly id: string;
589
+ readonly label: string;
590
+ readonly areas: readonly ({
591
+ readonly id: string;
592
+ readonly label: string;
593
+ readonly coords: readonly [number, number, number, number];
594
+ readonly shape: "rect";
595
+ } | {
596
+ readonly id: string;
597
+ readonly label: string;
598
+ readonly coords: readonly [number, number, number];
599
+ readonly shape: "circle";
600
+ } | {
601
+ readonly id: string;
602
+ readonly label: string;
603
+ readonly coords: readonly [number, number, number, number];
604
+ readonly shape: "ellipse";
605
+ } | {
606
+ readonly id: string;
607
+ readonly label: string;
608
+ readonly coords: readonly [number, number, number, number, number, number, ...number[]];
609
+ readonly shape: "poly";
610
+ } | {
611
+ readonly id: string;
612
+ readonly label: string;
613
+ readonly shape: "default";
614
+ })[];
615
+ readonly image: {
616
+ readonly alt: string;
617
+ readonly asset: string;
618
+ readonly height: number;
619
+ readonly width: number;
620
+ };
621
+ readonly kind: "hotspot";
622
+ readonly maxChoices: number;
623
+ readonly minChoices: number;
624
+ } | {
625
+ readonly id: string;
626
+ readonly label: string;
627
+ readonly choices: readonly [{
628
+ readonly id: string;
629
+ readonly label: readonly [{
630
+ readonly marks?: readonly [{
631
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
632
+ } | {
633
+ readonly attrs: {
634
+ readonly href: string;
635
+ };
636
+ readonly type: "link";
637
+ }, ...({
638
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
639
+ } | {
640
+ readonly attrs: {
641
+ readonly href: string;
642
+ };
643
+ readonly type: "link";
644
+ })[]];
645
+ readonly text: string;
646
+ readonly type: "text";
647
+ } | {
648
+ readonly attrs: {
649
+ readonly latex: string;
650
+ };
651
+ readonly type: "mathInline";
652
+ }, ...({
653
+ readonly marks?: readonly [{
654
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
655
+ } | {
656
+ readonly attrs: {
657
+ readonly href: string;
658
+ };
659
+ readonly type: "link";
660
+ }, ...({
661
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
662
+ } | {
663
+ readonly attrs: {
664
+ readonly href: string;
665
+ };
666
+ readonly type: "link";
667
+ })[]];
668
+ readonly text: string;
669
+ readonly type: "text";
670
+ } | {
671
+ readonly attrs: {
672
+ readonly latex: string;
673
+ };
674
+ readonly type: "mathInline";
675
+ })[]];
676
+ readonly maxMatches: number;
677
+ }, ...{
678
+ readonly id: string;
679
+ readonly label: readonly [{
680
+ readonly marks?: readonly [{
681
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
682
+ } | {
683
+ readonly attrs: {
684
+ readonly href: string;
685
+ };
686
+ readonly type: "link";
687
+ }, ...({
688
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
689
+ } | {
690
+ readonly attrs: {
691
+ readonly href: string;
692
+ };
693
+ readonly type: "link";
694
+ })[]];
695
+ readonly text: string;
696
+ readonly type: "text";
697
+ } | {
698
+ readonly attrs: {
699
+ readonly latex: string;
700
+ };
701
+ readonly type: "mathInline";
702
+ }, ...({
703
+ readonly marks?: readonly [{
704
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
705
+ } | {
706
+ readonly attrs: {
707
+ readonly href: string;
708
+ };
709
+ readonly type: "link";
710
+ }, ...({
711
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
712
+ } | {
713
+ readonly attrs: {
714
+ readonly href: string;
715
+ };
716
+ readonly type: "link";
717
+ })[]];
718
+ readonly text: string;
719
+ readonly type: "text";
720
+ } | {
721
+ readonly attrs: {
722
+ readonly latex: string;
723
+ };
724
+ readonly type: "mathInline";
725
+ })[]];
726
+ readonly maxMatches: number;
727
+ }[]];
728
+ readonly gaps: readonly [{
729
+ readonly id: string;
730
+ }, ...{
731
+ readonly id: string;
732
+ }[]];
733
+ readonly kind: "gapMatch";
734
+ readonly shuffle: boolean;
735
+ } | {
736
+ readonly id: string;
737
+ readonly label: string;
738
+ readonly count: number;
739
+ readonly frame: {
740
+ readonly kind: "cartesian";
741
+ readonly x: {
742
+ readonly max: number;
743
+ readonly min: number;
744
+ };
745
+ readonly y: {
746
+ readonly max: number;
747
+ readonly min: number;
748
+ };
749
+ };
750
+ readonly kind: "graphPoint";
751
+ readonly placing: "lines" | "points";
752
+ readonly snap?: number;
753
+ } | {
754
+ readonly id: string;
755
+ readonly label: string;
756
+ readonly expectedLines?: number;
757
+ readonly kind: "extendedText";
758
+ })[]];
759
+ readonly prompt: {
760
+ readonly content: readonly [import("./document.js").BlockNode, ...import("./document.js").BlockNode[]];
761
+ readonly type: "doc";
762
+ };
763
+ readonly scoring: readonly {
764
+ readonly interaction: string;
765
+ readonly rule: {
766
+ readonly kind: "allOrNothing";
767
+ } | {
768
+ readonly floor: number;
769
+ readonly kind: "perPart";
770
+ readonly penaltyPerWrongPart?: number;
771
+ readonly pointsPerPart: number;
772
+ } | {
773
+ readonly criteria: readonly [{
774
+ readonly id: string;
775
+ readonly label: string;
776
+ readonly levels: readonly {
777
+ readonly id: string;
778
+ readonly label: string;
779
+ readonly points: number;
780
+ }[];
781
+ }, ...{
782
+ readonly id: string;
783
+ readonly label: string;
784
+ readonly levels: readonly {
785
+ readonly id: string;
786
+ readonly label: string;
787
+ readonly points: number;
788
+ }[];
789
+ }[]];
790
+ readonly kind: "rubric";
791
+ };
792
+ }[];
793
+ readonly stimulus?: {
794
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
795
+ readonly id: string & import("effect/Brand").Brand<"@NakafaAI/AksaraStimulusId">;
796
+ };
797
+ readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
798
+ }[]) => Effect.Effect<undefined, PaperStimuliMismatchError, never>;
799
+ export {};