@nakafa/aksara-contracts 6.3.0 → 6.5.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 +13 -2
- package/dist/assessment/catalog.js +15 -2
- package/dist/assessment/snapshot.d.ts +4 -0
- package/dist/program/curriculum.d.ts +5 -1
- package/dist/program/curriculum.js +8 -10
- package/dist/projection/material.d.ts +1 -1
- package/dist/projection/material.js +12 -7
- package/dist/quran/provenance.js +11 -10
- package/dist/release/snapshot/data.d.ts +1 -0
- package/dist/release/snapshot/verify.d.ts +1 -0
- package/dist/transport/group.d.ts +3 -0
- package/dist/transport/request.d.ts +8 -0
- package/dist/transport/snapshot.d.ts +2 -0
- package/package.json +1 -1
|
@@ -12,6 +12,15 @@ export declare const GroupAxisSchema: Schema.Literals<readonly ["grade", "instit
|
|
|
12
12
|
* their own, and an `internal-entry` section is entered from its set.
|
|
13
13
|
*/
|
|
14
14
|
export declare const SectionVisibilitySchema: Schema.Literals<readonly ["internal-entry", "visible"]>;
|
|
15
|
+
/** What every row of the catalog says in one app locale. */
|
|
16
|
+
/**
|
|
17
|
+
* How hard a set is, measured by Aksara's difficulty panel against the real
|
|
18
|
+
* exam and published with the set, never picked by hand. The scale starts at
|
|
19
|
+
* the real exam: easy is the real exam's own level, and medium, hard and
|
|
20
|
+
* cooked climb above it, in this order.
|
|
21
|
+
*/
|
|
22
|
+
export declare const SetLevelSchema: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
23
|
+
export type SetLevel = typeof SetLevelSchema.Type;
|
|
15
24
|
/** One localized country of the catalog. */
|
|
16
25
|
export declare const CatalogCountrySchema: Schema.Struct<{
|
|
17
26
|
readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
|
|
@@ -98,8 +107,8 @@ export declare const CatalogTrackSchema: Schema.Struct<{
|
|
|
98
107
|
readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
|
|
99
108
|
}>;
|
|
100
109
|
/**
|
|
101
|
-
* One localized set of a track, and the paper a learner
|
|
102
|
-
* identifier and hash. A set whose only section is entered from the set names
|
|
110
|
+
* One localized set of a track, its measured level, and the paper a learner
|
|
111
|
+
* sits for it, by identifier and hash. A set whose only section is entered from the set names
|
|
103
112
|
* that section.
|
|
104
113
|
*/
|
|
105
114
|
export declare const CatalogSetSchema: Schema.Struct<{
|
|
@@ -120,6 +129,7 @@ export declare const CatalogSetSchema: Schema.Struct<{
|
|
|
120
129
|
readonly setKey: Schema.String;
|
|
121
130
|
readonly internalEntrySectionKey: Schema.optionalKey<Schema.String>;
|
|
122
131
|
readonly kind: Schema.Literal<"set">;
|
|
132
|
+
readonly level: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
123
133
|
readonly order: Schema.Int;
|
|
124
134
|
readonly paper: Schema.Struct<{
|
|
125
135
|
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
@@ -245,6 +255,7 @@ export declare const CatalogRowSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
245
255
|
readonly setKey: Schema.String;
|
|
246
256
|
readonly internalEntrySectionKey: Schema.optionalKey<Schema.String>;
|
|
247
257
|
readonly kind: Schema.Literal<"set">;
|
|
258
|
+
readonly level: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
248
259
|
readonly order: Schema.Int;
|
|
249
260
|
readonly paper: Schema.Struct<{
|
|
250
261
|
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
@@ -26,6 +26,18 @@ export const SectionVisibilitySchema = Schema.Literals([
|
|
|
26
26
|
"visible",
|
|
27
27
|
]);
|
|
28
28
|
/** What every row of the catalog says in one app locale. */
|
|
29
|
+
/**
|
|
30
|
+
* How hard a set is, measured by Aksara's difficulty panel against the real
|
|
31
|
+
* exam and published with the set, never picked by hand. The scale starts at
|
|
32
|
+
* the real exam: easy is the real exam's own level, and medium, hard and
|
|
33
|
+
* cooked climb above it, in this order.
|
|
34
|
+
*/
|
|
35
|
+
export const SetLevelSchema = Schema.Literals([
|
|
36
|
+
"easy",
|
|
37
|
+
"medium",
|
|
38
|
+
"hard",
|
|
39
|
+
"cooked",
|
|
40
|
+
]);
|
|
29
41
|
const LocalizedFields = {
|
|
30
42
|
appLocale: AppLocaleSchema,
|
|
31
43
|
description: Schema.optionalKey(Schema.String),
|
|
@@ -79,8 +91,8 @@ export const CatalogTrackSchema = Schema.Struct({
|
|
|
79
91
|
publicPath: PublicPathSchema,
|
|
80
92
|
});
|
|
81
93
|
/**
|
|
82
|
-
* One localized set of a track, and the paper a learner
|
|
83
|
-
* identifier and hash. A set whose only section is entered from the set names
|
|
94
|
+
* One localized set of a track, its measured level, and the paper a learner
|
|
95
|
+
* sits for it, by identifier and hash. A set whose only section is entered from the set names
|
|
84
96
|
* that section.
|
|
85
97
|
*/
|
|
86
98
|
export const CatalogSetSchema = Schema.Struct({
|
|
@@ -88,6 +100,7 @@ export const CatalogSetSchema = Schema.Struct({
|
|
|
88
100
|
...SetFields,
|
|
89
101
|
internalEntrySectionKey: Schema.optionalKey(KebabKeySchema),
|
|
90
102
|
kind: Schema.Literal("set"),
|
|
103
|
+
level: SetLevelSchema,
|
|
91
104
|
order: PositiveCountSchema,
|
|
92
105
|
paper: Schema.Struct({ hash: Sha256HashSchema, id: PaperIdSchema }),
|
|
93
106
|
publicPath: PublicPathSchema,
|
|
@@ -98,6 +98,7 @@ export declare const AssessmentRowSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
98
98
|
readonly setKey: Schema.String;
|
|
99
99
|
readonly internalEntrySectionKey: Schema.optionalKey<Schema.String>;
|
|
100
100
|
readonly kind: Schema.Literal<"set">;
|
|
101
|
+
readonly level: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
101
102
|
readonly order: Schema.Int;
|
|
102
103
|
readonly paper: Schema.Struct<{
|
|
103
104
|
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
@@ -699,6 +700,7 @@ export declare const AssessmentRecordSchema: Schema.Struct<{
|
|
|
699
700
|
readonly setKey: Schema.String;
|
|
700
701
|
readonly internalEntrySectionKey: Schema.optionalKey<Schema.String>;
|
|
701
702
|
readonly kind: Schema.Literal<"set">;
|
|
703
|
+
readonly level: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
702
704
|
readonly order: Schema.Int;
|
|
703
705
|
readonly paper: Schema.Struct<{
|
|
704
706
|
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
@@ -1354,6 +1356,7 @@ export declare const hashAssessmentRow: (row: {
|
|
|
1354
1356
|
readonly setKey: string;
|
|
1355
1357
|
readonly internalEntrySectionKey?: string;
|
|
1356
1358
|
readonly kind: "set";
|
|
1359
|
+
readonly level: "cooked" | "easy" | "hard" | "medium";
|
|
1357
1360
|
readonly order: number;
|
|
1358
1361
|
readonly paper: {
|
|
1359
1362
|
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
@@ -2634,6 +2637,7 @@ export declare const digestAssessmentRows: <E, R>(records: Stream.Stream<{
|
|
|
2634
2637
|
readonly setKey: string;
|
|
2635
2638
|
readonly internalEntrySectionKey?: string;
|
|
2636
2639
|
readonly kind: "set";
|
|
2640
|
+
readonly level: "cooked" | "easy" | "hard" | "medium";
|
|
2637
2641
|
readonly order: number;
|
|
2638
2642
|
readonly paper: {
|
|
2639
2643
|
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { type AppLocale } from "#contracts/locale";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Localized public route namespaces shared by projection and verification. A
|
|
5
|
+
* declared locale fails to compile until it names its own namespace here.
|
|
6
|
+
*/
|
|
4
7
|
export declare const CURRICULUM_NAMESPACES: {
|
|
5
8
|
readonly de: "lehrplaene";
|
|
6
9
|
readonly en: "curriculum";
|
|
7
10
|
readonly id: "kurikulum";
|
|
11
|
+
readonly ms: "kurikulum";
|
|
8
12
|
};
|
|
9
13
|
/** Resolves the route namespace owned by one application locale. */
|
|
10
14
|
export declare function curriculumNamespace(appLocale: AppLocale): "curriculum" | "kurikulum" | "lehrplaene";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Array as Arr, Schema } from "effect";
|
|
2
2
|
import { CorpusSourcePathSchema, PublicPathSchema } from "#contracts/ids";
|
|
3
|
-
import { AppLocaleSchema } from "#contracts/locale";
|
|
3
|
+
import { AppLocaleSchema, } from "#contracts/locale";
|
|
4
4
|
import { MaterialDomainSchema } from "#contracts/material/domain";
|
|
5
5
|
import { LearningProgramKeySchema, ProgramNavigationIconKeySchema, ProgramNavigationLevelSchema, } from "#contracts/program/spec";
|
|
6
6
|
import { MaterialKeySchema } from "#contracts/projection/material";
|
|
@@ -10,6 +10,7 @@ const CurriculumNamespaceMapSchema = Schema.Struct({
|
|
|
10
10
|
de: Schema.Literal("lehrplaene"),
|
|
11
11
|
en: Schema.Literal("curriculum"),
|
|
12
12
|
id: Schema.Literal("kurikulum"),
|
|
13
|
+
ms: Schema.Literal("kurikulum"),
|
|
13
14
|
});
|
|
14
15
|
const RenderableCurriculumLevelSchema = Schema.Literals([
|
|
15
16
|
"class",
|
|
@@ -23,22 +24,19 @@ function isCurriculumRouteNodeKey(value) {
|
|
|
23
24
|
const rootSuffix = ":root";
|
|
24
25
|
return isLowerKebab(value.endsWith(rootSuffix) ? value.slice(0, -rootSuffix.length) : value);
|
|
25
26
|
}
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Localized public route namespaces shared by projection and verification. A
|
|
29
|
+
* declared locale fails to compile until it names its own namespace here.
|
|
30
|
+
*/
|
|
27
31
|
export const CURRICULUM_NAMESPACES = CurriculumNamespaceMapSchema.make({
|
|
28
32
|
de: "lehrplaene",
|
|
29
33
|
en: "curriculum",
|
|
30
34
|
id: "kurikulum",
|
|
35
|
+
ms: "kurikulum",
|
|
31
36
|
});
|
|
32
37
|
/** Resolves the route namespace owned by one application locale. */
|
|
33
38
|
export function curriculumNamespace(appLocale) {
|
|
34
|
-
|
|
35
|
-
if (localeCode === "de") {
|
|
36
|
-
return CURRICULUM_NAMESPACES.de;
|
|
37
|
-
}
|
|
38
|
-
if (localeCode === "id") {
|
|
39
|
-
return CURRICULUM_NAMESPACES.id;
|
|
40
|
-
}
|
|
41
|
-
return CURRICULUM_NAMESPACES.en;
|
|
39
|
+
return CURRICULUM_NAMESPACES[Schema.encodeSync(AppLocaleSchema)(appLocale)];
|
|
42
40
|
}
|
|
43
41
|
/** Checks whether one curriculum level owns a learner-renderable route. */
|
|
44
42
|
export const isRenderableCurriculumLevel = Schema.is(RenderableCurriculumLevelSchema);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { type AppLocale } from "#contracts/locale";
|
|
3
3
|
/** Locale-owned root namespace for public material routes. */
|
|
4
|
-
export declare const MaterialPublicNamespaceSchema: Schema.Literals<readonly ["subjects", "materi", "faecher"]>;
|
|
4
|
+
export declare const MaterialPublicNamespaceSchema: Schema.Literals<readonly ["subjects", "materi", "faecher", "subjek"]>;
|
|
5
5
|
export type MaterialPublicNamespace = typeof MaterialPublicNamespaceSchema.Type;
|
|
6
6
|
/** Resolves the only public material namespace owned by one app locale. */
|
|
7
7
|
export declare function materialPublicNamespace(appLocale: AppLocale): MaterialPublicNamespace;
|
|
@@ -17,16 +17,21 @@ export const MaterialPublicNamespaceSchema = Schema.Literals([
|
|
|
17
17
|
"subjects",
|
|
18
18
|
"materi",
|
|
19
19
|
"faecher",
|
|
20
|
+
"subjek",
|
|
20
21
|
]);
|
|
22
|
+
/**
|
|
23
|
+
* The public material namespace of every declared app locale. Declaring a
|
|
24
|
+
* locale fails to compile until it names its own namespace here.
|
|
25
|
+
*/
|
|
26
|
+
const MATERIAL_PUBLIC_NAMESPACES = {
|
|
27
|
+
de: "faecher",
|
|
28
|
+
en: "subjects",
|
|
29
|
+
id: "materi",
|
|
30
|
+
ms: "subjek",
|
|
31
|
+
};
|
|
21
32
|
/** Resolves the only public material namespace owned by one app locale. */
|
|
22
33
|
export function materialPublicNamespace(appLocale) {
|
|
23
|
-
|
|
24
|
-
return "subjects";
|
|
25
|
-
}
|
|
26
|
-
if (appLocale === AppLocaleSchema.make("id")) {
|
|
27
|
-
return "materi";
|
|
28
|
-
}
|
|
29
|
-
return "faecher";
|
|
34
|
+
return MATERIAL_PUBLIC_NAMESPACES[Schema.encodeSync(AppLocaleSchema)(appLocale)];
|
|
30
35
|
}
|
|
31
36
|
/** Stable reusable material identity preserved from Nakafa's source registry. */
|
|
32
37
|
export const MaterialKeySchema = Schema.String.pipe(Schema.check(Schema.isPattern(MATERIAL_KEY_PATTERN, {
|
package/dist/quran/provenance.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Array as Arr, Effect, MutableList, Schema } from "effect";
|
|
2
2
|
import { hashText } from "#contracts/hash/text";
|
|
3
3
|
import { Sha256HashSchema } from "#contracts/ids";
|
|
4
|
-
import { ActiveAppLocaleListSchema,
|
|
4
|
+
import { ActiveAppLocaleListSchema, activeAppLocaleCode, ENGLISH_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, } from "#contracts/locale";
|
|
5
5
|
import { canonicalizeQuranAttribution } from "#contracts/quran/attribution";
|
|
6
6
|
import { QuranNameProvenanceScopeSchema, QuranTranslationProvenanceScopeSchema, quranNameProvenanceScope, quranNameSourceForScope, quranTafsirSourceId, quranTranslationProvenanceScope, quranTranslationSourceForScope, } from "#contracts/quran/identity";
|
|
7
7
|
import { QuranProvenanceStatusSchema, } from "#contracts/quran/snapshot/spec";
|
|
@@ -27,6 +27,15 @@ export const QuranProvenanceScopeSchema = Schema.Union([
|
|
|
27
27
|
QuranNameProvenanceScopeSchema,
|
|
28
28
|
QuranTranslationProvenanceScopeSchema,
|
|
29
29
|
]);
|
|
30
|
+
/**
|
|
31
|
+
* The tafsir scope of every active app locale. Activating a locale fails to
|
|
32
|
+
* compile until its tafsir source is named here.
|
|
33
|
+
*/
|
|
34
|
+
const QURAN_TAFSIR_PROVENANCE_SCOPES = {
|
|
35
|
+
de: "de-tafsir-access",
|
|
36
|
+
en: "en-tafsir-access",
|
|
37
|
+
id: "id-tafsir",
|
|
38
|
+
};
|
|
30
39
|
/** Derives the exact provenance scope order for one active locale set. */
|
|
31
40
|
export function quranProvenanceScopes(activeAppLocales) {
|
|
32
41
|
const scopes = MutableList.make();
|
|
@@ -34,15 +43,7 @@ export function quranProvenanceScopes(activeAppLocales) {
|
|
|
34
43
|
for (const appLocale of activeAppLocales) {
|
|
35
44
|
MutableList.append(scopes, quranNameProvenanceScope(appLocale));
|
|
36
45
|
MutableList.append(scopes, quranTranslationProvenanceScope(appLocale));
|
|
37
|
-
|
|
38
|
-
MutableList.append(scopes, "en-tafsir-access");
|
|
39
|
-
}
|
|
40
|
-
else if (appLocale === AppLocaleSchema.make("id")) {
|
|
41
|
-
MutableList.append(scopes, "id-tafsir");
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
MutableList.append(scopes, "de-tafsir-access");
|
|
45
|
-
}
|
|
46
|
+
MutableList.append(scopes, QURAN_TAFSIR_PROVENANCE_SCOPES[activeAppLocaleCode(appLocale)]);
|
|
46
47
|
}
|
|
47
48
|
MutableList.append(scopes, "metadata");
|
|
48
49
|
return MutableList.toArray(scopes);
|
|
@@ -153,6 +153,7 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
|
|
|
153
153
|
readonly setKey: Schema.String;
|
|
154
154
|
readonly internalEntrySectionKey: Schema.optionalKey<Schema.String>;
|
|
155
155
|
readonly kind: Schema.Literal<"set">;
|
|
156
|
+
readonly level: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
156
157
|
readonly order: Schema.Int;
|
|
157
158
|
readonly paper: Schema.Struct<{
|
|
158
159
|
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
@@ -233,6 +233,7 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
|
|
|
233
233
|
readonly setKey: string;
|
|
234
234
|
readonly internalEntrySectionKey?: string;
|
|
235
235
|
readonly kind: "set";
|
|
236
|
+
readonly level: "cooked" | "easy" | "hard" | "medium";
|
|
236
237
|
readonly order: number;
|
|
237
238
|
readonly paper: {
|
|
238
239
|
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
@@ -324,6 +324,7 @@ export declare const StageOperationSchema: Schema.Union<readonly [Schema.Struct<
|
|
|
324
324
|
readonly setKey: Schema.String;
|
|
325
325
|
readonly internalEntrySectionKey: Schema.optionalKey<Schema.String>;
|
|
326
326
|
readonly kind: Schema.Literal<"set">;
|
|
327
|
+
readonly level: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
327
328
|
readonly order: Schema.Int;
|
|
328
329
|
readonly paper: Schema.Struct<{
|
|
329
330
|
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
@@ -1360,6 +1361,7 @@ export declare const StageGroupInputSchema: Schema.Struct<{
|
|
|
1360
1361
|
readonly setKey: Schema.String;
|
|
1361
1362
|
readonly internalEntrySectionKey: Schema.optionalKey<Schema.String>;
|
|
1362
1363
|
readonly kind: Schema.Literal<"set">;
|
|
1364
|
+
readonly level: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
1363
1365
|
readonly order: Schema.Int;
|
|
1364
1366
|
readonly paper: Schema.Struct<{
|
|
1365
1367
|
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
@@ -2397,6 +2399,7 @@ export declare const StageGroupRequestSchema: Schema.Struct<{
|
|
|
2397
2399
|
readonly setKey: Schema.String;
|
|
2398
2400
|
readonly internalEntrySectionKey: Schema.optionalKey<Schema.String>;
|
|
2399
2401
|
readonly kind: Schema.Literal<"set">;
|
|
2402
|
+
readonly level: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
2400
2403
|
readonly order: Schema.Int;
|
|
2401
2404
|
readonly paper: Schema.Struct<{
|
|
2402
2405
|
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
@@ -826,6 +826,7 @@ export declare const PublicationRequestSchema: Schema.Union<readonly [Schema.Str
|
|
|
826
826
|
readonly setKey: Schema.String;
|
|
827
827
|
readonly internalEntrySectionKey: Schema.optionalKey<Schema.String>;
|
|
828
828
|
readonly kind: Schema.Literal<"set">;
|
|
829
|
+
readonly level: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
829
830
|
readonly order: Schema.Int;
|
|
830
831
|
readonly paper: Schema.Struct<{
|
|
831
832
|
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
@@ -1859,6 +1860,7 @@ export declare const PublicationRequestSchema: Schema.Union<readonly [Schema.Str
|
|
|
1859
1860
|
readonly setKey: Schema.String;
|
|
1860
1861
|
readonly internalEntrySectionKey: Schema.optionalKey<Schema.String>;
|
|
1861
1862
|
readonly kind: Schema.Literal<"set">;
|
|
1863
|
+
readonly level: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
1862
1864
|
readonly order: Schema.Int;
|
|
1863
1865
|
readonly paper: Schema.Struct<{
|
|
1864
1866
|
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
@@ -3488,6 +3490,7 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
|
|
|
3488
3490
|
readonly setKey: string;
|
|
3489
3491
|
readonly internalEntrySectionKey?: string;
|
|
3490
3492
|
readonly kind: "set";
|
|
3493
|
+
readonly level: "cooked" | "easy" | "hard" | "medium";
|
|
3491
3494
|
readonly order: number;
|
|
3492
3495
|
readonly paper: {
|
|
3493
3496
|
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
@@ -5083,6 +5086,7 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
|
|
|
5083
5086
|
readonly setKey: string;
|
|
5084
5087
|
readonly internalEntrySectionKey?: string;
|
|
5085
5088
|
readonly kind: "set";
|
|
5089
|
+
readonly level: "cooked" | "easy" | "hard" | "medium";
|
|
5086
5090
|
readonly order: number;
|
|
5087
5091
|
readonly paper: {
|
|
5088
5092
|
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
@@ -7207,6 +7211,7 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
|
|
|
7207
7211
|
readonly setKey: string;
|
|
7208
7212
|
readonly internalEntrySectionKey?: string;
|
|
7209
7213
|
readonly kind: "set";
|
|
7214
|
+
readonly level: "cooked" | "easy" | "hard" | "medium";
|
|
7210
7215
|
readonly order: number;
|
|
7211
7216
|
readonly paper: {
|
|
7212
7217
|
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
@@ -8802,6 +8807,7 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
|
|
|
8802
8807
|
readonly setKey: string;
|
|
8803
8808
|
readonly internalEntrySectionKey?: string;
|
|
8804
8809
|
readonly kind: "set";
|
|
8810
|
+
readonly level: "cooked" | "easy" | "hard" | "medium";
|
|
8805
8811
|
readonly order: number;
|
|
8806
8812
|
readonly paper: {
|
|
8807
8813
|
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
@@ -10762,6 +10768,7 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
|
|
|
10762
10768
|
readonly setKey: string;
|
|
10763
10769
|
readonly internalEntrySectionKey?: string;
|
|
10764
10770
|
readonly kind: "set";
|
|
10771
|
+
readonly level: "cooked" | "easy" | "hard" | "medium";
|
|
10765
10772
|
readonly order: number;
|
|
10766
10773
|
readonly paper: {
|
|
10767
10774
|
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
@@ -12357,6 +12364,7 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
|
|
|
12357
12364
|
readonly setKey: string;
|
|
12358
12365
|
readonly internalEntrySectionKey?: string;
|
|
12359
12366
|
readonly kind: "set";
|
|
12367
|
+
readonly level: "cooked" | "easy" | "hard" | "medium";
|
|
12360
12368
|
readonly order: number;
|
|
12361
12369
|
readonly paper: {
|
|
12362
12370
|
readonly hash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
@@ -220,6 +220,7 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
|
|
|
220
220
|
readonly setKey: Schema.String;
|
|
221
221
|
readonly internalEntrySectionKey: Schema.optionalKey<Schema.String>;
|
|
222
222
|
readonly kind: Schema.Literal<"set">;
|
|
223
|
+
readonly level: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
223
224
|
readonly order: Schema.Int;
|
|
224
225
|
readonly paper: Schema.Struct<{
|
|
225
226
|
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
@@ -1028,6 +1029,7 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
|
|
|
1028
1029
|
readonly setKey: Schema.String;
|
|
1029
1030
|
readonly internalEntrySectionKey: Schema.optionalKey<Schema.String>;
|
|
1030
1031
|
readonly kind: Schema.Literal<"set">;
|
|
1032
|
+
readonly level: Schema.Literals<readonly ["easy", "medium", "hard", "cooked"]>;
|
|
1031
1033
|
readonly order: Schema.Int;
|
|
1032
1034
|
readonly paper: Schema.Struct<{
|
|
1033
1035
|
readonly hash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
package/package.json
CHANGED