@nakafa/aksara-contracts 4.1.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assessment/catalog.d.ts +56 -8
- package/dist/assessment/catalog.js +28 -8
- package/dist/assessment/hash.d.ts +327 -327
- package/dist/assessment/paper.d.ts +139 -139
- package/dist/assessment/snapshot.d.ts +400 -324
- 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/data.d.ts +20 -1
- package/dist/release/snapshot/verify.d.ts +229 -210
- package/dist/runtime/spec.d.ts +28 -28
- package/dist/runtime/verify.d.ts +40 -40
- package/dist/transport/group.d.ts +60 -3
- package/dist/transport/request.d.ts +2498 -2346
- package/dist/transport/response.d.ts +571 -571
- package/dist/transport/snapshot.d.ts +40 -2
- package/package.json +1 -1
|
@@ -4,6 +4,23 @@ import { type QuranRowPayload } from "#contracts/quran/snapshot/row";
|
|
|
4
4
|
export declare function canonicalizeQuranRow(payload: QuranRowPayload): string;
|
|
5
5
|
/** Computes one current row's domain-separated identity. */
|
|
6
6
|
export declare const hashQuranRow: (payload: {
|
|
7
|
+
readonly name: {
|
|
8
|
+
readonly arabic: string;
|
|
9
|
+
readonly meaning: {
|
|
10
|
+
readonly de: string;
|
|
11
|
+
readonly en: string;
|
|
12
|
+
readonly id: string;
|
|
13
|
+
};
|
|
14
|
+
readonly transliteration: string;
|
|
15
|
+
};
|
|
16
|
+
readonly number: number;
|
|
17
|
+
readonly numberOfVerses: number;
|
|
18
|
+
readonly revelation: {
|
|
19
|
+
readonly order: number;
|
|
20
|
+
readonly place: "Meccan" | "Medinan";
|
|
21
|
+
};
|
|
22
|
+
readonly kind: "quran-surah";
|
|
23
|
+
} | {
|
|
7
24
|
readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
|
|
8
25
|
readonly kind: "quran-attribution";
|
|
9
26
|
readonly sources: readonly [{
|
|
@@ -110,30 +127,30 @@ export declare const hashQuranRow: (payload: {
|
|
|
110
127
|
};
|
|
111
128
|
})[]];
|
|
112
129
|
readonly tafsirAccess: readonly [{
|
|
113
|
-
readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
114
|
-
readonly kind: "external";
|
|
115
|
-
readonly notice: string;
|
|
116
|
-
readonly sourceId: "mokhtasar-english";
|
|
117
|
-
} | {
|
|
118
130
|
readonly appLocale: "id" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
119
131
|
readonly kind: "embedded";
|
|
120
132
|
readonly notice: string;
|
|
121
133
|
readonly sourceId: "quranenc-tafsir";
|
|
122
134
|
} | {
|
|
123
|
-
readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
124
|
-
readonly kind: "external";
|
|
125
|
-
readonly notice: string;
|
|
126
|
-
readonly sourceId: "mokhtasar-german";
|
|
127
|
-
}, ...({
|
|
128
135
|
readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
129
136
|
readonly kind: "external";
|
|
130
137
|
readonly notice: string;
|
|
131
138
|
readonly sourceId: "mokhtasar-english";
|
|
132
139
|
} | {
|
|
140
|
+
readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
141
|
+
readonly kind: "external";
|
|
142
|
+
readonly notice: string;
|
|
143
|
+
readonly sourceId: "mokhtasar-german";
|
|
144
|
+
}, ...({
|
|
133
145
|
readonly appLocale: "id" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
134
146
|
readonly kind: "embedded";
|
|
135
147
|
readonly notice: string;
|
|
136
148
|
readonly sourceId: "quranenc-tafsir";
|
|
149
|
+
} | {
|
|
150
|
+
readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
151
|
+
readonly kind: "external";
|
|
152
|
+
readonly notice: string;
|
|
153
|
+
readonly sourceId: "mokhtasar-english";
|
|
137
154
|
} | {
|
|
138
155
|
readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
139
156
|
readonly kind: "external";
|
|
@@ -216,6 +233,22 @@ export declare const hashQuranRow: (payload: {
|
|
|
216
233
|
}[]];
|
|
217
234
|
}[]];
|
|
218
235
|
} | {
|
|
236
|
+
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
237
|
+
readonly graph: {
|
|
238
|
+
readonly alignmentId: string;
|
|
239
|
+
readonly assetId: string;
|
|
240
|
+
readonly conceptId: string;
|
|
241
|
+
readonly learningObjectId: string;
|
|
242
|
+
readonly lensId: string;
|
|
243
|
+
};
|
|
244
|
+
readonly kind: "quran-search";
|
|
245
|
+
readonly route: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
246
|
+
readonly surahNumber: number;
|
|
247
|
+
readonly text: string;
|
|
248
|
+
readonly title: string;
|
|
249
|
+
}) => Effect.Effect<string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, never, never>;
|
|
250
|
+
/** Creates one snapshot-bound current row. */
|
|
251
|
+
export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, payload: {
|
|
219
252
|
readonly name: {
|
|
220
253
|
readonly arabic: string;
|
|
221
254
|
readonly meaning: {
|
|
@@ -233,22 +266,6 @@ export declare const hashQuranRow: (payload: {
|
|
|
233
266
|
};
|
|
234
267
|
readonly kind: "quran-surah";
|
|
235
268
|
} | {
|
|
236
|
-
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
237
|
-
readonly graph: {
|
|
238
|
-
readonly alignmentId: string;
|
|
239
|
-
readonly assetId: string;
|
|
240
|
-
readonly conceptId: string;
|
|
241
|
-
readonly learningObjectId: string;
|
|
242
|
-
readonly lensId: string;
|
|
243
|
-
};
|
|
244
|
-
readonly kind: "quran-search";
|
|
245
|
-
readonly route: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
|
|
246
|
-
readonly surahNumber: number;
|
|
247
|
-
readonly text: string;
|
|
248
|
-
readonly title: string;
|
|
249
|
-
}) => Effect.Effect<string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, never, never>;
|
|
250
|
-
/** Creates one snapshot-bound current row. */
|
|
251
|
-
export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, payload: {
|
|
252
269
|
readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
|
|
253
270
|
readonly kind: "quran-attribution";
|
|
254
271
|
readonly sources: readonly [{
|
|
@@ -355,30 +372,30 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
|
|
|
355
372
|
};
|
|
356
373
|
})[]];
|
|
357
374
|
readonly tafsirAccess: readonly [{
|
|
358
|
-
readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
359
|
-
readonly kind: "external";
|
|
360
|
-
readonly notice: string;
|
|
361
|
-
readonly sourceId: "mokhtasar-english";
|
|
362
|
-
} | {
|
|
363
375
|
readonly appLocale: "id" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
364
376
|
readonly kind: "embedded";
|
|
365
377
|
readonly notice: string;
|
|
366
378
|
readonly sourceId: "quranenc-tafsir";
|
|
367
379
|
} | {
|
|
368
|
-
readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
369
|
-
readonly kind: "external";
|
|
370
|
-
readonly notice: string;
|
|
371
|
-
readonly sourceId: "mokhtasar-german";
|
|
372
|
-
}, ...({
|
|
373
380
|
readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
374
381
|
readonly kind: "external";
|
|
375
382
|
readonly notice: string;
|
|
376
383
|
readonly sourceId: "mokhtasar-english";
|
|
377
384
|
} | {
|
|
385
|
+
readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
386
|
+
readonly kind: "external";
|
|
387
|
+
readonly notice: string;
|
|
388
|
+
readonly sourceId: "mokhtasar-german";
|
|
389
|
+
}, ...({
|
|
378
390
|
readonly appLocale: "id" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
379
391
|
readonly kind: "embedded";
|
|
380
392
|
readonly notice: string;
|
|
381
393
|
readonly sourceId: "quranenc-tafsir";
|
|
394
|
+
} | {
|
|
395
|
+
readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
396
|
+
readonly kind: "external";
|
|
397
|
+
readonly notice: string;
|
|
398
|
+
readonly sourceId: "mokhtasar-english";
|
|
382
399
|
} | {
|
|
383
400
|
readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
384
401
|
readonly kind: "external";
|
|
@@ -460,23 +477,6 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
|
|
|
460
477
|
};
|
|
461
478
|
}[]];
|
|
462
479
|
}[]];
|
|
463
|
-
} | {
|
|
464
|
-
readonly name: {
|
|
465
|
-
readonly arabic: string;
|
|
466
|
-
readonly meaning: {
|
|
467
|
-
readonly de: string;
|
|
468
|
-
readonly en: string;
|
|
469
|
-
readonly id: string;
|
|
470
|
-
};
|
|
471
|
-
readonly transliteration: string;
|
|
472
|
-
};
|
|
473
|
-
readonly number: number;
|
|
474
|
-
readonly numberOfVerses: number;
|
|
475
|
-
readonly revelation: {
|
|
476
|
-
readonly order: number;
|
|
477
|
-
readonly place: "Meccan" | "Medinan";
|
|
478
|
-
};
|
|
479
|
-
readonly kind: "quran-surah";
|
|
480
480
|
} | {
|
|
481
481
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
482
482
|
readonly graph: {
|
|
@@ -493,6 +493,23 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
|
|
|
493
493
|
readonly title: string;
|
|
494
494
|
}) => Effect.Effect<{
|
|
495
495
|
readonly payload: {
|
|
496
|
+
readonly name: {
|
|
497
|
+
readonly arabic: string;
|
|
498
|
+
readonly meaning: {
|
|
499
|
+
readonly de: string;
|
|
500
|
+
readonly en: string;
|
|
501
|
+
readonly id: string;
|
|
502
|
+
};
|
|
503
|
+
readonly transliteration: string;
|
|
504
|
+
};
|
|
505
|
+
readonly number: number;
|
|
506
|
+
readonly numberOfVerses: number;
|
|
507
|
+
readonly revelation: {
|
|
508
|
+
readonly order: number;
|
|
509
|
+
readonly place: "Meccan" | "Medinan";
|
|
510
|
+
};
|
|
511
|
+
readonly kind: "quran-surah";
|
|
512
|
+
} | {
|
|
496
513
|
readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
|
|
497
514
|
readonly kind: "quran-attribution";
|
|
498
515
|
readonly sources: readonly [{
|
|
@@ -599,30 +616,30 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
|
|
|
599
616
|
};
|
|
600
617
|
})[]];
|
|
601
618
|
readonly tafsirAccess: readonly [{
|
|
602
|
-
readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
603
|
-
readonly kind: "external";
|
|
604
|
-
readonly notice: string;
|
|
605
|
-
readonly sourceId: "mokhtasar-english";
|
|
606
|
-
} | {
|
|
607
619
|
readonly appLocale: "id" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
608
620
|
readonly kind: "embedded";
|
|
609
621
|
readonly notice: string;
|
|
610
622
|
readonly sourceId: "quranenc-tafsir";
|
|
611
623
|
} | {
|
|
612
|
-
readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
613
|
-
readonly kind: "external";
|
|
614
|
-
readonly notice: string;
|
|
615
|
-
readonly sourceId: "mokhtasar-german";
|
|
616
|
-
}, ...({
|
|
617
624
|
readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
618
625
|
readonly kind: "external";
|
|
619
626
|
readonly notice: string;
|
|
620
627
|
readonly sourceId: "mokhtasar-english";
|
|
621
628
|
} | {
|
|
629
|
+
readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
630
|
+
readonly kind: "external";
|
|
631
|
+
readonly notice: string;
|
|
632
|
+
readonly sourceId: "mokhtasar-german";
|
|
633
|
+
}, ...({
|
|
622
634
|
readonly appLocale: "id" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
623
635
|
readonly kind: "embedded";
|
|
624
636
|
readonly notice: string;
|
|
625
637
|
readonly sourceId: "quranenc-tafsir";
|
|
638
|
+
} | {
|
|
639
|
+
readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
640
|
+
readonly kind: "external";
|
|
641
|
+
readonly notice: string;
|
|
642
|
+
readonly sourceId: "mokhtasar-english";
|
|
626
643
|
} | {
|
|
627
644
|
readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
628
645
|
readonly kind: "external";
|
|
@@ -704,23 +721,6 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
|
|
|
704
721
|
};
|
|
705
722
|
}[]];
|
|
706
723
|
}[]];
|
|
707
|
-
} | {
|
|
708
|
-
readonly name: {
|
|
709
|
-
readonly arabic: string;
|
|
710
|
-
readonly meaning: {
|
|
711
|
-
readonly de: string;
|
|
712
|
-
readonly en: string;
|
|
713
|
-
readonly id: string;
|
|
714
|
-
};
|
|
715
|
-
readonly transliteration: string;
|
|
716
|
-
};
|
|
717
|
-
readonly number: number;
|
|
718
|
-
readonly numberOfVerses: number;
|
|
719
|
-
readonly revelation: {
|
|
720
|
-
readonly order: number;
|
|
721
|
-
readonly place: "Meccan" | "Medinan";
|
|
722
|
-
};
|
|
723
|
-
readonly kind: "quran-surah";
|
|
724
724
|
} | {
|
|
725
725
|
readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
|
|
726
726
|
readonly graph: {
|
|
@@ -94,9 +94,28 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
|
|
|
94
94
|
readonly title: Schema.String;
|
|
95
95
|
readonly countryKey: Schema.String;
|
|
96
96
|
readonly examKey: Schema.String;
|
|
97
|
+
readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
|
|
97
98
|
readonly kind: Schema.Literal<"exam">;
|
|
98
99
|
readonly order: Schema.Int;
|
|
99
100
|
readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
|
|
101
|
+
}>, Schema.Struct<{
|
|
102
|
+
readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
|
|
103
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
104
|
+
readonly graph: Schema.Struct<{
|
|
105
|
+
readonly alignmentId: Schema.String;
|
|
106
|
+
readonly assetId: Schema.String;
|
|
107
|
+
readonly conceptId: Schema.String;
|
|
108
|
+
readonly learningObjectId: Schema.String;
|
|
109
|
+
readonly lensId: Schema.String;
|
|
110
|
+
}>;
|
|
111
|
+
readonly sourceRevision: Schema.Trimmed;
|
|
112
|
+
readonly title: Schema.String;
|
|
113
|
+
readonly countryKey: Schema.String;
|
|
114
|
+
readonly examKey: Schema.String;
|
|
115
|
+
readonly groupKey: Schema.String;
|
|
116
|
+
readonly kind: Schema.Literal<"group">;
|
|
117
|
+
readonly order: Schema.Int;
|
|
118
|
+
readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
|
|
100
119
|
}>, Schema.Struct<{
|
|
101
120
|
readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
|
|
102
121
|
readonly description: Schema.optionalKey<Schema.String>;
|
|
@@ -112,10 +131,10 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
|
|
|
112
131
|
readonly countryKey: Schema.String;
|
|
113
132
|
readonly examKey: Schema.String;
|
|
114
133
|
readonly trackKey: Schema.String;
|
|
134
|
+
readonly groupKey: Schema.String;
|
|
115
135
|
readonly kind: Schema.Literal<"track">;
|
|
116
136
|
readonly order: Schema.Int;
|
|
117
137
|
readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
|
|
118
|
-
readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
|
|
119
138
|
}>, Schema.Struct<{
|
|
120
139
|
readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
|
|
121
140
|
readonly description: Schema.optionalKey<Schema.String>;
|