@nakafa/aksara-contracts 4.1.1 → 4.1.3
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.
- package/LICENSE +1 -1
- package/dist/assessment/hash.d.ts +327 -327
- package/dist/assessment/paper.d.ts +139 -139
- package/dist/assessment/snapshot.d.ts +332 -332
- package/dist/locale.d.ts +1 -1
- package/dist/math/visual.d.ts +202 -202
- package/dist/quran/snapshot/row/hash.d.ts +80 -80
- package/dist/release/snapshot/verify.d.ts +209 -209
- package/dist/runtime/spec.d.ts +28 -28
- package/dist/runtime/verify.d.ts +40 -40
- package/dist/transport/request.d.ts +2423 -2423
- package/dist/transport/response.d.ts +571 -571
- package/package.json +1 -1
|
@@ -100,43 +100,6 @@ 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
|
-
} | {
|
|
140
103
|
readonly id: string;
|
|
141
104
|
readonly label: string;
|
|
142
105
|
readonly kind: "choice";
|
|
@@ -231,6 +194,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
231
194
|
readonly options: readonly {
|
|
232
195
|
readonly id: string;
|
|
233
196
|
readonly label: readonly [{
|
|
197
|
+
readonly attrs: {
|
|
198
|
+
readonly latex: string;
|
|
199
|
+
};
|
|
200
|
+
readonly type: "mathInline";
|
|
201
|
+
} | {
|
|
234
202
|
readonly marks?: readonly [{
|
|
235
203
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
236
204
|
} | {
|
|
@@ -248,12 +216,12 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
248
216
|
})[]];
|
|
249
217
|
readonly text: string;
|
|
250
218
|
readonly type: "text";
|
|
251
|
-
}
|
|
219
|
+
}, ...({
|
|
252
220
|
readonly attrs: {
|
|
253
221
|
readonly latex: string;
|
|
254
222
|
};
|
|
255
223
|
readonly type: "mathInline";
|
|
256
|
-
}
|
|
224
|
+
} | {
|
|
257
225
|
readonly marks?: readonly [{
|
|
258
226
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
259
227
|
} | {
|
|
@@ -271,35 +239,20 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
271
239
|
})[]];
|
|
272
240
|
readonly text: string;
|
|
273
241
|
readonly type: "text";
|
|
274
|
-
} | {
|
|
275
|
-
readonly attrs: {
|
|
276
|
-
readonly latex: string;
|
|
277
|
-
};
|
|
278
|
-
readonly type: "mathInline";
|
|
279
242
|
})[]];
|
|
280
243
|
}[];
|
|
281
244
|
readonly shuffle: boolean;
|
|
282
|
-
} | {
|
|
283
|
-
readonly id: string;
|
|
284
|
-
readonly label: string;
|
|
285
|
-
readonly expectedLength?: number;
|
|
286
|
-
readonly kind: "textEntry";
|
|
287
|
-
} | {
|
|
288
|
-
readonly id: string;
|
|
289
|
-
readonly label: string;
|
|
290
|
-
readonly acceptsFractions: boolean;
|
|
291
|
-
readonly kind: "numericEntry";
|
|
292
|
-
readonly unit?: string;
|
|
293
|
-
} | {
|
|
294
|
-
readonly id: string;
|
|
295
|
-
readonly label: string;
|
|
296
|
-
readonly kind: "mathEntry";
|
|
297
245
|
} | {
|
|
298
246
|
readonly id: string;
|
|
299
247
|
readonly label: string;
|
|
300
248
|
readonly choices: readonly [{
|
|
301
249
|
readonly id: string;
|
|
302
250
|
readonly label: readonly [{
|
|
251
|
+
readonly attrs: {
|
|
252
|
+
readonly latex: string;
|
|
253
|
+
};
|
|
254
|
+
readonly type: "mathInline";
|
|
255
|
+
} | {
|
|
303
256
|
readonly marks?: readonly [{
|
|
304
257
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
305
258
|
} | {
|
|
@@ -317,12 +270,12 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
317
270
|
})[]];
|
|
318
271
|
readonly text: string;
|
|
319
272
|
readonly type: "text";
|
|
320
|
-
}
|
|
273
|
+
}, ...({
|
|
321
274
|
readonly attrs: {
|
|
322
275
|
readonly latex: string;
|
|
323
276
|
};
|
|
324
277
|
readonly type: "mathInline";
|
|
325
|
-
}
|
|
278
|
+
} | {
|
|
326
279
|
readonly marks?: readonly [{
|
|
327
280
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
328
281
|
} | {
|
|
@@ -340,16 +293,16 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
340
293
|
})[]];
|
|
341
294
|
readonly text: string;
|
|
342
295
|
readonly type: "text";
|
|
343
|
-
} | {
|
|
344
|
-
readonly attrs: {
|
|
345
|
-
readonly latex: string;
|
|
346
|
-
};
|
|
347
|
-
readonly type: "mathInline";
|
|
348
296
|
})[]];
|
|
349
297
|
readonly maxMatches: number;
|
|
350
298
|
}, ...{
|
|
351
299
|
readonly id: string;
|
|
352
300
|
readonly label: readonly [{
|
|
301
|
+
readonly attrs: {
|
|
302
|
+
readonly latex: string;
|
|
303
|
+
};
|
|
304
|
+
readonly type: "mathInline";
|
|
305
|
+
} | {
|
|
353
306
|
readonly marks?: readonly [{
|
|
354
307
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
355
308
|
} | {
|
|
@@ -367,12 +320,12 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
367
320
|
})[]];
|
|
368
321
|
readonly text: string;
|
|
369
322
|
readonly type: "text";
|
|
370
|
-
}
|
|
323
|
+
}, ...({
|
|
371
324
|
readonly attrs: {
|
|
372
325
|
readonly latex: string;
|
|
373
326
|
};
|
|
374
327
|
readonly type: "mathInline";
|
|
375
|
-
}
|
|
328
|
+
} | {
|
|
376
329
|
readonly marks?: readonly [{
|
|
377
330
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
378
331
|
} | {
|
|
@@ -390,11 +343,6 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
390
343
|
})[]];
|
|
391
344
|
readonly text: string;
|
|
392
345
|
readonly type: "text";
|
|
393
|
-
} | {
|
|
394
|
-
readonly attrs: {
|
|
395
|
-
readonly latex: string;
|
|
396
|
-
};
|
|
397
|
-
readonly type: "mathInline";
|
|
398
346
|
})[]];
|
|
399
347
|
readonly maxMatches: number;
|
|
400
348
|
}[]];
|
|
@@ -408,27 +356,8 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
408
356
|
} | {
|
|
409
357
|
readonly id: string;
|
|
410
358
|
readonly label: string;
|
|
411
|
-
readonly
|
|
412
|
-
readonly frame: {
|
|
413
|
-
readonly kind: "cartesian";
|
|
414
|
-
readonly x: {
|
|
415
|
-
readonly max: number;
|
|
416
|
-
readonly min: number;
|
|
417
|
-
};
|
|
418
|
-
readonly y: {
|
|
419
|
-
readonly max: number;
|
|
420
|
-
readonly min: number;
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
readonly kind: "graphPoint";
|
|
424
|
-
readonly placing: "lines" | "points";
|
|
425
|
-
readonly snap?: number;
|
|
359
|
+
readonly kind: "mathEntry";
|
|
426
360
|
} | {
|
|
427
|
-
readonly id: string;
|
|
428
|
-
readonly label: string;
|
|
429
|
-
readonly expectedLines?: number;
|
|
430
|
-
readonly kind: "extendedText";
|
|
431
|
-
}, ...({
|
|
432
361
|
readonly id: string;
|
|
433
362
|
readonly label: string;
|
|
434
363
|
readonly areas: readonly ({
|
|
@@ -466,6 +395,40 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
466
395
|
readonly maxChoices: number;
|
|
467
396
|
readonly minChoices: number;
|
|
468
397
|
} | {
|
|
398
|
+
readonly id: string;
|
|
399
|
+
readonly label: string;
|
|
400
|
+
readonly expectedLength?: number;
|
|
401
|
+
readonly kind: "textEntry";
|
|
402
|
+
} | {
|
|
403
|
+
readonly id: string;
|
|
404
|
+
readonly label: string;
|
|
405
|
+
readonly acceptsFractions: boolean;
|
|
406
|
+
readonly kind: "numericEntry";
|
|
407
|
+
readonly unit?: string;
|
|
408
|
+
} | {
|
|
409
|
+
readonly id: string;
|
|
410
|
+
readonly label: string;
|
|
411
|
+
readonly expectedLines?: number;
|
|
412
|
+
readonly kind: "extendedText";
|
|
413
|
+
} | {
|
|
414
|
+
readonly id: string;
|
|
415
|
+
readonly label: string;
|
|
416
|
+
readonly count: number;
|
|
417
|
+
readonly frame: {
|
|
418
|
+
readonly kind: "cartesian";
|
|
419
|
+
readonly x: {
|
|
420
|
+
readonly max: number;
|
|
421
|
+
readonly min: number;
|
|
422
|
+
};
|
|
423
|
+
readonly y: {
|
|
424
|
+
readonly max: number;
|
|
425
|
+
readonly min: number;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
readonly kind: "graphPoint";
|
|
429
|
+
readonly placing: "lines" | "points";
|
|
430
|
+
readonly snap?: number;
|
|
431
|
+
}, ...({
|
|
469
432
|
readonly id: string;
|
|
470
433
|
readonly label: string;
|
|
471
434
|
readonly kind: "choice";
|
|
@@ -560,6 +523,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
560
523
|
readonly options: readonly {
|
|
561
524
|
readonly id: string;
|
|
562
525
|
readonly label: readonly [{
|
|
526
|
+
readonly attrs: {
|
|
527
|
+
readonly latex: string;
|
|
528
|
+
};
|
|
529
|
+
readonly type: "mathInline";
|
|
530
|
+
} | {
|
|
563
531
|
readonly marks?: readonly [{
|
|
564
532
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
565
533
|
} | {
|
|
@@ -577,12 +545,12 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
577
545
|
})[]];
|
|
578
546
|
readonly text: string;
|
|
579
547
|
readonly type: "text";
|
|
580
|
-
}
|
|
548
|
+
}, ...({
|
|
581
549
|
readonly attrs: {
|
|
582
550
|
readonly latex: string;
|
|
583
551
|
};
|
|
584
552
|
readonly type: "mathInline";
|
|
585
|
-
}
|
|
553
|
+
} | {
|
|
586
554
|
readonly marks?: readonly [{
|
|
587
555
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
588
556
|
} | {
|
|
@@ -600,35 +568,20 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
600
568
|
})[]];
|
|
601
569
|
readonly text: string;
|
|
602
570
|
readonly type: "text";
|
|
603
|
-
} | {
|
|
604
|
-
readonly attrs: {
|
|
605
|
-
readonly latex: string;
|
|
606
|
-
};
|
|
607
|
-
readonly type: "mathInline";
|
|
608
571
|
})[]];
|
|
609
572
|
}[];
|
|
610
573
|
readonly shuffle: boolean;
|
|
611
|
-
} | {
|
|
612
|
-
readonly id: string;
|
|
613
|
-
readonly label: string;
|
|
614
|
-
readonly expectedLength?: number;
|
|
615
|
-
readonly kind: "textEntry";
|
|
616
|
-
} | {
|
|
617
|
-
readonly id: string;
|
|
618
|
-
readonly label: string;
|
|
619
|
-
readonly acceptsFractions: boolean;
|
|
620
|
-
readonly kind: "numericEntry";
|
|
621
|
-
readonly unit?: string;
|
|
622
|
-
} | {
|
|
623
|
-
readonly id: string;
|
|
624
|
-
readonly label: string;
|
|
625
|
-
readonly kind: "mathEntry";
|
|
626
574
|
} | {
|
|
627
575
|
readonly id: string;
|
|
628
576
|
readonly label: string;
|
|
629
577
|
readonly choices: readonly [{
|
|
630
578
|
readonly id: string;
|
|
631
579
|
readonly label: readonly [{
|
|
580
|
+
readonly attrs: {
|
|
581
|
+
readonly latex: string;
|
|
582
|
+
};
|
|
583
|
+
readonly type: "mathInline";
|
|
584
|
+
} | {
|
|
632
585
|
readonly marks?: readonly [{
|
|
633
586
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
634
587
|
} | {
|
|
@@ -646,12 +599,12 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
646
599
|
})[]];
|
|
647
600
|
readonly text: string;
|
|
648
601
|
readonly type: "text";
|
|
649
|
-
}
|
|
602
|
+
}, ...({
|
|
650
603
|
readonly attrs: {
|
|
651
604
|
readonly latex: string;
|
|
652
605
|
};
|
|
653
606
|
readonly type: "mathInline";
|
|
654
|
-
}
|
|
607
|
+
} | {
|
|
655
608
|
readonly marks?: readonly [{
|
|
656
609
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
657
610
|
} | {
|
|
@@ -669,16 +622,16 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
669
622
|
})[]];
|
|
670
623
|
readonly text: string;
|
|
671
624
|
readonly type: "text";
|
|
672
|
-
} | {
|
|
673
|
-
readonly attrs: {
|
|
674
|
-
readonly latex: string;
|
|
675
|
-
};
|
|
676
|
-
readonly type: "mathInline";
|
|
677
625
|
})[]];
|
|
678
626
|
readonly maxMatches: number;
|
|
679
627
|
}, ...{
|
|
680
628
|
readonly id: string;
|
|
681
629
|
readonly label: readonly [{
|
|
630
|
+
readonly attrs: {
|
|
631
|
+
readonly latex: string;
|
|
632
|
+
};
|
|
633
|
+
readonly type: "mathInline";
|
|
634
|
+
} | {
|
|
682
635
|
readonly marks?: readonly [{
|
|
683
636
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
684
637
|
} | {
|
|
@@ -696,12 +649,12 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
696
649
|
})[]];
|
|
697
650
|
readonly text: string;
|
|
698
651
|
readonly type: "text";
|
|
699
|
-
}
|
|
652
|
+
}, ...({
|
|
700
653
|
readonly attrs: {
|
|
701
654
|
readonly latex: string;
|
|
702
655
|
};
|
|
703
656
|
readonly type: "mathInline";
|
|
704
|
-
}
|
|
657
|
+
} | {
|
|
705
658
|
readonly marks?: readonly [{
|
|
706
659
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
707
660
|
} | {
|
|
@@ -719,11 +672,6 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
719
672
|
})[]];
|
|
720
673
|
readonly text: string;
|
|
721
674
|
readonly type: "text";
|
|
722
|
-
} | {
|
|
723
|
-
readonly attrs: {
|
|
724
|
-
readonly latex: string;
|
|
725
|
-
};
|
|
726
|
-
readonly type: "mathInline";
|
|
727
675
|
})[]];
|
|
728
676
|
readonly maxMatches: number;
|
|
729
677
|
}[]];
|
|
@@ -734,6 +682,63 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
734
682
|
}[]];
|
|
735
683
|
readonly kind: "gapMatch";
|
|
736
684
|
readonly shuffle: boolean;
|
|
685
|
+
} | {
|
|
686
|
+
readonly id: string;
|
|
687
|
+
readonly label: string;
|
|
688
|
+
readonly kind: "mathEntry";
|
|
689
|
+
} | {
|
|
690
|
+
readonly id: string;
|
|
691
|
+
readonly label: string;
|
|
692
|
+
readonly areas: readonly ({
|
|
693
|
+
readonly id: string;
|
|
694
|
+
readonly label: string;
|
|
695
|
+
readonly coords: readonly [number, number, number, number];
|
|
696
|
+
readonly shape: "rect";
|
|
697
|
+
} | {
|
|
698
|
+
readonly id: string;
|
|
699
|
+
readonly label: string;
|
|
700
|
+
readonly coords: readonly [number, number, number];
|
|
701
|
+
readonly shape: "circle";
|
|
702
|
+
} | {
|
|
703
|
+
readonly id: string;
|
|
704
|
+
readonly label: string;
|
|
705
|
+
readonly coords: readonly [number, number, number, number];
|
|
706
|
+
readonly shape: "ellipse";
|
|
707
|
+
} | {
|
|
708
|
+
readonly id: string;
|
|
709
|
+
readonly label: string;
|
|
710
|
+
readonly coords: readonly [number, number, number, number, number, number, ...number[]];
|
|
711
|
+
readonly shape: "poly";
|
|
712
|
+
} | {
|
|
713
|
+
readonly id: string;
|
|
714
|
+
readonly label: string;
|
|
715
|
+
readonly shape: "default";
|
|
716
|
+
})[];
|
|
717
|
+
readonly image: {
|
|
718
|
+
readonly alt: string;
|
|
719
|
+
readonly asset: string;
|
|
720
|
+
readonly height: number;
|
|
721
|
+
readonly width: number;
|
|
722
|
+
};
|
|
723
|
+
readonly kind: "hotspot";
|
|
724
|
+
readonly maxChoices: number;
|
|
725
|
+
readonly minChoices: number;
|
|
726
|
+
} | {
|
|
727
|
+
readonly id: string;
|
|
728
|
+
readonly label: string;
|
|
729
|
+
readonly expectedLength?: number;
|
|
730
|
+
readonly kind: "textEntry";
|
|
731
|
+
} | {
|
|
732
|
+
readonly id: string;
|
|
733
|
+
readonly label: string;
|
|
734
|
+
readonly acceptsFractions: boolean;
|
|
735
|
+
readonly kind: "numericEntry";
|
|
736
|
+
readonly unit?: string;
|
|
737
|
+
} | {
|
|
738
|
+
readonly id: string;
|
|
739
|
+
readonly label: string;
|
|
740
|
+
readonly expectedLines?: number;
|
|
741
|
+
readonly kind: "extendedText";
|
|
737
742
|
} | {
|
|
738
743
|
readonly id: string;
|
|
739
744
|
readonly label: string;
|
|
@@ -752,11 +757,6 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
752
757
|
readonly kind: "graphPoint";
|
|
753
758
|
readonly placing: "lines" | "points";
|
|
754
759
|
readonly snap?: number;
|
|
755
|
-
} | {
|
|
756
|
-
readonly id: string;
|
|
757
|
-
readonly label: string;
|
|
758
|
-
readonly expectedLines?: number;
|
|
759
|
-
readonly kind: "extendedText";
|
|
760
760
|
})[]];
|
|
761
761
|
readonly joint?: {
|
|
762
762
|
readonly levels: readonly [{
|
|
@@ -775,11 +775,6 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
775
775
|
readonly interaction: string;
|
|
776
776
|
readonly rule: {
|
|
777
777
|
readonly kind: "allOrNothing";
|
|
778
|
-
} | {
|
|
779
|
-
readonly floor: number;
|
|
780
|
-
readonly kind: "perPart";
|
|
781
|
-
readonly penaltyPerWrongPart?: number;
|
|
782
|
-
readonly pointsPerPart: number;
|
|
783
778
|
} | {
|
|
784
779
|
readonly bands: readonly [{
|
|
785
780
|
readonly points: number;
|
|
@@ -808,6 +803,11 @@ export declare const verifyPaperStimuli: (paper: {
|
|
|
808
803
|
}[];
|
|
809
804
|
}[]];
|
|
810
805
|
readonly kind: "rubric";
|
|
806
|
+
} | {
|
|
807
|
+
readonly floor: number;
|
|
808
|
+
readonly kind: "perPart";
|
|
809
|
+
readonly penaltyPerWrongPart?: number;
|
|
810
|
+
readonly pointsPerPart: number;
|
|
811
811
|
};
|
|
812
812
|
}[];
|
|
813
813
|
readonly stimulus?: {
|