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