@nakafa/aksara-contracts 6.5.0 → 7.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.
Files changed (117) hide show
  1. package/dist/assessment/catalog.d.ts +18 -5
  2. package/dist/assessment/catalog.js +18 -8
  3. package/dist/assessment/choice.d.ts +10 -0
  4. package/dist/assessment/closure.d.ts +2 -1
  5. package/dist/assessment/closure.js +43 -62
  6. package/dist/assessment/document.d.ts +18 -0
  7. package/dist/assessment/document.js +10 -0
  8. package/dist/assessment/figure.d.ts +47605 -1555
  9. package/dist/assessment/figure.js +14 -217
  10. package/dist/assessment/hash.d.ts +274 -4
  11. package/dist/assessment/inline.d.ts +25 -0
  12. package/dist/assessment/inline.js +22 -3
  13. package/dist/assessment/interaction.d.ts +10 -0
  14. package/dist/assessment/item.d.ts +864 -0
  15. package/dist/assessment/item.js +10 -2
  16. package/dist/assessment/locales.d.ts +10 -0
  17. package/dist/assessment/locales.js +58 -0
  18. package/dist/assessment/paper.d.ts +1349 -12
  19. package/dist/assessment/paper.js +93 -9
  20. package/dist/assessment/part.d.ts +5 -0
  21. package/dist/assessment/profile.d.ts +4 -4
  22. package/dist/assessment/rows.d.ts +1409 -0
  23. package/dist/assessment/rows.js +44 -0
  24. package/dist/assessment/scalar.d.ts +1 -1
  25. package/dist/assessment/scoring.d.ts +1 -1
  26. package/dist/assessment/snapshot.d.ts +372 -20
  27. package/dist/assessment/structure.d.ts +6 -0
  28. package/dist/assessment/structure.js +22 -2
  29. package/dist/locale.d.ts +9 -9
  30. package/dist/locale.js +4 -3
  31. package/dist/program/snapshot/hash.d.ts +2 -2
  32. package/dist/program/snapshot/spec.d.ts +2 -2
  33. package/dist/projection/material.d.ts +10 -0
  34. package/dist/projection/material.js +1 -1
  35. package/dist/quran/attribution.d.ts +2 -2
  36. package/dist/quran/identity.d.ts +31 -10
  37. package/dist/quran/identity.js +15 -3
  38. package/dist/quran/provenance.d.ts +16 -16
  39. package/dist/quran/provenance.js +4 -1
  40. package/dist/quran/snapshot/hash.d.ts +2 -2
  41. package/dist/quran/snapshot/row/hash.d.ts +48 -15
  42. package/dist/quran/snapshot/row.d.ts +18 -8
  43. package/dist/quran/snapshot/spec.d.ts +2 -2
  44. package/dist/quran/source.d.ts +17 -7
  45. package/dist/quran/source.js +13 -1
  46. package/dist/quran/spec.d.ts +4 -4
  47. package/dist/quran/spec.js +2 -1
  48. package/dist/release/current/evidence.d.ts +9 -9
  49. package/dist/release/current/state.d.ts +11 -11
  50. package/dist/release/hash.d.ts +2 -2
  51. package/dist/release/identity.d.ts +1 -1
  52. package/dist/release/lifecycle.d.ts +7 -7
  53. package/dist/release/policy.d.ts +1 -1
  54. package/dist/release/snapshot/data.d.ts +36 -11
  55. package/dist/release/snapshot/evidence/assessment.d.ts +1 -1
  56. package/dist/release/snapshot/evidence/program.d.ts +1 -1
  57. package/dist/release/snapshot/evidence/quran.d.ts +1 -1
  58. package/dist/release/snapshot/evidence.d.ts +3 -3
  59. package/dist/release/snapshot/verify.d.ts +179 -12
  60. package/dist/release/spec.d.ts +13 -13
  61. package/dist/release/verify.d.ts +2 -2
  62. package/dist/runtime/spec.d.ts +6 -6
  63. package/dist/runtime/verify.d.ts +4 -4
  64. package/dist/transport/group.d.ts +108 -33
  65. package/dist/transport/request.d.ts +1166 -114
  66. package/dist/transport/response.d.ts +64 -64
  67. package/dist/transport/snapshot.d.ts +72 -22
  68. package/dist/visual/base/layout.d.ts +27 -0
  69. package/dist/visual/base/layout.js +35 -0
  70. package/dist/visual/base/math.d.ts +523 -0
  71. package/dist/visual/base/math.js +72 -0
  72. package/dist/visual/base/media.d.ts +13 -0
  73. package/dist/visual/base/media.js +25 -0
  74. package/dist/visual/biology.d.ts +203 -0
  75. package/dist/visual/biology.js +108 -0
  76. package/dist/visual/card.d.ts +32 -0
  77. package/dist/visual/card.js +30 -0
  78. package/dist/visual/catalog.d.ts +28633 -0
  79. package/dist/visual/catalog.js +73 -0
  80. package/dist/visual/chemistry/atom.d.ts +79 -0
  81. package/dist/visual/chemistry/atom.js +109 -0
  82. package/dist/visual/chemistry/electron.d.ts +41 -0
  83. package/dist/visual/chemistry/electron.js +69 -0
  84. package/dist/visual/chemistry/laws.d.ts +86 -0
  85. package/dist/visual/chemistry/laws.js +117 -0
  86. package/dist/visual/chemistry/particles.d.ts +114 -0
  87. package/dist/visual/chemistry/particles.js +149 -0
  88. package/dist/visual/chemistry/periodic.d.ts +52 -0
  89. package/dist/visual/chemistry/periodic.js +85 -0
  90. package/dist/visual/chemistry/reaction.d.ts +60 -0
  91. package/dist/visual/chemistry/reaction.js +76 -0
  92. package/dist/visual/entry.d.ts +42 -0
  93. package/dist/visual/entry.js +48 -0
  94. package/dist/visual/mathematics/chart.d.ts +30 -0
  95. package/dist/{assessment → visual/mathematics}/chart.js +26 -18
  96. package/dist/visual/mathematics/charts.d.ts +118 -0
  97. package/dist/visual/mathematics/charts.js +100 -0
  98. package/dist/visual/mathematics/function.d.ts +82 -0
  99. package/dist/visual/mathematics/function.js +102 -0
  100. package/dist/visual/mathematics/geometry.d.ts +222 -0
  101. package/dist/visual/mathematics/geometry.js +81 -0
  102. package/dist/visual/mathematics/line.d.ts +179 -0
  103. package/dist/visual/mathematics/line.js +156 -0
  104. package/dist/visual/mathematics/number.d.ts +21 -0
  105. package/dist/visual/mathematics/number.js +53 -0
  106. package/dist/visual/physics/measurement.d.ts +66 -0
  107. package/dist/visual/physics/measurement.js +85 -0
  108. package/dist/visual/physics/motion.d.ts +85 -0
  109. package/dist/visual/physics/motion.js +110 -0
  110. package/dist/visual/physics/parabolic.d.ts +42 -0
  111. package/dist/visual/physics/parabolic.js +56 -0
  112. package/dist/visual/physics/velocity.d.ts +112 -0
  113. package/dist/visual/physics/velocity.js +144 -0
  114. package/dist/visual/politics.d.ts +92 -0
  115. package/dist/visual/politics.js +76 -0
  116. package/package.json +13 -5
  117. package/dist/assessment/chart.d.ts +0 -62
@@ -5,6 +5,12 @@ import { Array as Arr } from "effect";
5
5
  * flags.
6
6
  */
7
7
  export declare function structureOf(value: unknown): unknown;
8
+ /**
9
+ * Checks that every answer key has the shape of the first apart from its
10
+ * words, so the language versions of one item agree on every answer and differ
11
+ * only in the texts a learner may type and the words a grader reads.
12
+ */
13
+ export declare function hasSameKeyStructure(keys: Arr.NonEmptyReadonlyArray<unknown>): boolean;
8
14
  /**
9
15
  * Checks that every value has the structure of the first. The structure of an
10
16
  * interaction is what its answer key and its scoring rule are written
@@ -10,14 +10,34 @@ const LANGUAGE_FIELDS = HashSet.make("alt", "label", "unit");
10
10
  * flags.
11
11
  */
12
12
  export function structureOf(value) {
13
+ return withoutFields(value, LANGUAGE_FIELDS);
14
+ }
15
+ /** Returns a value with the named fields dropped at every depth. */
16
+ function withoutFields(value, fields) {
13
17
  if (Arr.isArray(value)) {
14
- return Arr.map(value, (part) => structureOf(part));
18
+ return Arr.map(value, (part) => withoutFields(part, fields));
15
19
  }
16
20
  if (Predicate.isObject(value)) {
17
- return Rec.map(Rec.filter(value, (_, key) => !HashSet.has(LANGUAGE_FIELDS, key)), (part) => structureOf(part));
21
+ return Rec.map(Rec.filter(value, (_, key) => !HashSet.has(fields, key)), (part) => withoutFields(part, fields));
18
22
  }
19
23
  return value;
20
24
  }
25
+ /**
26
+ * The fields of an answer key that hold the words of a language: the accepted
27
+ * texts of a text entry and the descriptors of a rubric. Everything else in a
28
+ * key, such as a choice, a number, or a tolerance, is the same in every
29
+ * language of an item.
30
+ */
31
+ const KEY_WORD_FIELDS = HashSet.make("acceptedAnswers", "descriptor");
32
+ /**
33
+ * Checks that every answer key has the shape of the first apart from its
34
+ * words, so the language versions of one item agree on every answer and differ
35
+ * only in the texts a learner may type and the words a grader reads.
36
+ */
37
+ export function hasSameKeyStructure(keys) {
38
+ const first = withoutFields(Arr.headNonEmpty(keys), KEY_WORD_FIELDS);
39
+ return Arr.every(keys, (key) => Equal.equals(withoutFields(key, KEY_WORD_FIELDS), first));
40
+ }
21
41
  /**
22
42
  * Checks that every value has the structure of the first. The structure of an
23
43
  * interaction is what its answer key and its scoring rule are written
package/dist/locale.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Schema } from "effect";
2
2
  /**
3
3
  * Every locale code the contract declares, in canonical order: the active
4
- * locales first, then a declared locale whose corpus is still being written.
5
- * Malay (`ms`) is declared so its copy and content can be written completely
6
- * before one release makes it active; an active locale never falls back.
4
+ * locales first, then any declared locale whose corpus is still being written.
5
+ * A declared locale becomes active in one release, and an active locale never
6
+ * falls back to another language.
7
7
  */
8
8
  export declare const AppLocaleCodeSchema: Schema.Literals<readonly ["en", "id", "de", "ms"]>;
9
9
  export type AppLocaleCode = typeof AppLocaleCodeSchema.Type;
@@ -36,22 +36,22 @@ export declare const APP_LOCALE_CODES: readonly ["en", "id", "de", "ms"];
36
36
  * Source-controlled application locale codes included by this corpus: every
37
37
  * scope authors each of them, and the product serves each of them.
38
38
  */
39
- export declare const ActiveAppLocaleCodeSchema: Schema.Literals<readonly ["en", "id", "de"]>;
39
+ export declare const ActiveAppLocaleCodeSchema: Schema.Literals<readonly ["en", "id", "de", "ms"]>;
40
40
  export type ActiveAppLocaleCode = typeof ActiveAppLocaleCodeSchema.Type;
41
41
  /** Source-controlled codes used to index the currently complete corpus. */
42
- export declare const ACTIVE_APP_LOCALE_CODES: readonly ["en", "id", "de"];
42
+ export declare const ACTIVE_APP_LOCALE_CODES: readonly ["en", "id", "de", "ms"];
43
43
  /** Application locale currently required from every authored scope. */
44
- export declare const ActiveAppLocaleSchema: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
44
+ export declare const ActiveAppLocaleSchema: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
45
45
  export type ActiveAppLocale = typeof ActiveAppLocaleSchema.Type;
46
46
  /** Returns the plain source-map key for one validated active app locale. */
47
- export declare function activeAppLocaleCode(appLocale: ActiveAppLocale): "de" | "en" | "id";
47
+ export declare function activeAppLocaleCode(appLocale: ActiveAppLocale): "de" | "en" | "id" | "ms";
48
48
  /** Returns the plain source-map key for one validated artifact locale. */
49
49
  export declare function artifactLocaleCode(artifactLocale: ArtifactLocale): "de" | "en" | "id" | "ms";
50
50
  /**
51
51
  * Nonempty unique active locale subset in canonical contract order. A declared
52
52
  * locale joins it only once the contract makes that locale active.
53
53
  */
54
- export declare const ActiveAppLocaleListSchema: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>;
54
+ export declare const ActiveAppLocaleListSchema: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">>;
55
55
  export type ActiveAppLocaleList = typeof ActiveAppLocaleListSchema.Type;
56
56
  /** Source-controlled application locales included by the current corpus. */
57
- export declare const ACTIVE_APP_LOCALES: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
57
+ export declare const ACTIVE_APP_LOCALES: readonly [("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
package/dist/locale.js CHANGED
@@ -2,9 +2,9 @@ import { Array as Arr, Option, Schema } from "effect";
2
2
  import { hasCanonicalOrder } from "#contracts/canonical";
3
3
  /**
4
4
  * Every locale code the contract declares, in canonical order: the active
5
- * locales first, then a declared locale whose corpus is still being written.
6
- * Malay (`ms`) is declared so its copy and content can be written completely
7
- * before one release makes it active; an active locale never falls back.
5
+ * locales first, then any declared locale whose corpus is still being written.
6
+ * A declared locale becomes active in one release, and an active locale never
7
+ * falls back to another language.
8
8
  */
9
9
  export const AppLocaleCodeSchema = Schema.Literals(["en", "id", "de", "ms"]);
10
10
  export const [ENGLISH_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE, MALAY_APP_LOCALE_CODE,] = AppLocaleCodeSchema.literals;
@@ -57,6 +57,7 @@ export const ActiveAppLocaleCodeSchema = AppLocaleCodeSchema.pick([
57
57
  ENGLISH_APP_LOCALE_CODE,
58
58
  INDONESIAN_APP_LOCALE_CODE,
59
59
  GERMAN_APP_LOCALE_CODE,
60
+ MALAY_APP_LOCALE_CODE,
60
61
  ]);
61
62
  /** Source-controlled codes used to index the currently complete corpus. */
62
63
  export const ACTIVE_APP_LOCALE_CODES = ActiveAppLocaleCodeSchema.literals;
@@ -10,7 +10,7 @@ export declare const makeProgramSnapshot: (input: {
10
10
  readonly rowCount: number;
11
11
  readonly sitemapCount: number;
12
12
  readonly slugCount: number;
13
- readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
13
+ readonly activeAppLocales: readonly [("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
14
14
  readonly rowDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
15
15
  }) => Effect.Effect<{
16
16
  readonly curriculumRowCount: number;
@@ -18,7 +18,7 @@ export declare const makeProgramSnapshot: (input: {
18
18
  readonly rowCount: number;
19
19
  readonly sitemapCount: number;
20
20
  readonly slugCount: number;
21
- readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
21
+ readonly activeAppLocales: readonly [("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
22
22
  readonly rowDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
23
23
  readonly format: "localized-program-snapshot";
24
24
  readonly snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
@@ -17,7 +17,7 @@ export declare const ProgramSnapshotFactsSchema: Schema.Struct<{
17
17
  rowCount: Schema.Int;
18
18
  sitemapCount: Schema.Int;
19
19
  slugCount: Schema.Int;
20
- activeAppLocales: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>;
20
+ activeAppLocales: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">>;
21
21
  rowDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
22
22
  }>;
23
23
  export type ProgramSnapshotFacts = typeof ProgramSnapshotFactsSchema.Type;
@@ -28,7 +28,7 @@ export declare const ProgramSnapshotSchema: Schema.Struct<{
28
28
  readonly rowCount: Schema.Int;
29
29
  readonly sitemapCount: Schema.Int;
30
30
  readonly slugCount: Schema.Int;
31
- readonly activeAppLocales: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>;
31
+ readonly activeAppLocales: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">>;
32
32
  readonly rowDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
33
33
  readonly format: Schema.Literal<"localized-program-snapshot">;
34
34
  readonly snapshotId: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
@@ -3,6 +3,16 @@ import { type AppLocale } from "#contracts/locale";
3
3
  /** Locale-owned root namespace for public material routes. */
4
4
  export declare const MaterialPublicNamespaceSchema: Schema.Literals<readonly ["subjects", "materi", "faecher", "subjek"]>;
5
5
  export type MaterialPublicNamespace = typeof MaterialPublicNamespaceSchema.Type;
6
+ /**
7
+ * The public material namespace of every declared app locale. Declaring a
8
+ * locale fails to compile until it names its own namespace here.
9
+ */
10
+ export declare const MATERIAL_PUBLIC_NAMESPACES: {
11
+ readonly de: "faecher";
12
+ readonly en: "subjects";
13
+ readonly id: "materi";
14
+ readonly ms: "subjek";
15
+ };
6
16
  /** Resolves the only public material namespace owned by one app locale. */
7
17
  export declare function materialPublicNamespace(appLocale: AppLocale): MaterialPublicNamespace;
8
18
  /** Stable reusable material identity preserved from Nakafa's source registry. */
@@ -23,7 +23,7 @@ export const MaterialPublicNamespaceSchema = Schema.Literals([
23
23
  * The public material namespace of every declared app locale. Declaring a
24
24
  * locale fails to compile until it names its own namespace here.
25
25
  */
26
- const MATERIAL_PUBLIC_NAMESPACES = {
26
+ export const MATERIAL_PUBLIC_NAMESPACES = {
27
27
  de: "faecher",
28
28
  en: "subjects",
29
29
  id: "materi",
@@ -10,7 +10,7 @@ export declare function canonicalizeQuranAttribution(attribution: QuranSourceAtt
10
10
  notice: string;
11
11
  title: string;
12
12
  }[]];
13
- id: "bubenheim-names" | "kemenag-names" | "mokhtasar-english" | "mokhtasar-german" | "quranenc-english" | "quranenc-german" | "quranenc-indonesian" | "quranenc-tafsir" | "tanzil-metadata" | "tanzil-text";
13
+ id: "bubenheim-names" | "kemenag-names" | "mokhtasar-english" | "mokhtasar-german" | "mokhtasar-indonesian" | "nakafa-malay-names" | "quranenc-english" | "quranenc-german" | "quranenc-indonesian" | "quranenc-malay" | "quranenc-tafsir" | "tanzil-metadata" | "tanzil-text";
14
14
  kind: "embedded" | "external";
15
15
  publisher: string;
16
16
  retrievedAt: string;
@@ -32,7 +32,7 @@ export declare function canonicalizeQuranAttribution(attribution: QuranSourceAtt
32
32
  notice: string;
33
33
  title: string;
34
34
  }[]];
35
- id: "bubenheim-names" | "kemenag-names" | "mokhtasar-english" | "mokhtasar-german" | "quranenc-english" | "quranenc-german" | "quranenc-indonesian" | "quranenc-tafsir" | "tanzil-metadata" | "tanzil-text";
35
+ id: "bubenheim-names" | "kemenag-names" | "mokhtasar-english" | "mokhtasar-german" | "mokhtasar-indonesian" | "nakafa-malay-names" | "quranenc-english" | "quranenc-german" | "quranenc-indonesian" | "quranenc-malay" | "quranenc-tafsir" | "tanzil-metadata" | "tanzil-text";
36
36
  kind: "embedded" | "external";
37
37
  publisher: string;
38
38
  retrievedAt: string;
@@ -1,21 +1,21 @@
1
1
  import { Schema } from "effect";
2
- import { type ActiveAppLocaleCode, ENGLISH_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE } from "#contracts/locale";
2
+ import { type ActiveAppLocaleCode, ENGLISH_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, MALAY_APP_LOCALE_CODE } from "#contracts/locale";
3
3
  /** Official source identities whose bytes are pinned inside Aksara. */
4
- export declare const QuranEmbeddedSourceIdSchema: Schema.Literals<readonly ["tanzil-text", "tanzil-metadata", "kemenag-names", "bubenheim-names", "quranenc-english", "quranenc-indonesian", "quranenc-german", "quranenc-tafsir"]>;
4
+ export declare const QuranEmbeddedSourceIdSchema: Schema.Literals<readonly ["tanzil-text", "tanzil-metadata", "kemenag-names", "bubenheim-names", "nakafa-malay-names", "quranenc-english", "quranenc-indonesian", "quranenc-german", "quranenc-malay", "quranenc-tafsir"]>;
5
5
  export type QuranEmbeddedSourceId = typeof QuranEmbeddedSourceIdSchema.Type;
6
6
  /** Official source identities that Aksara may link to but not republish. */
7
- export declare const QuranExternalSourceIdSchema: Schema.Literals<readonly ["mokhtasar-english", "mokhtasar-german"]>;
7
+ export declare const QuranExternalSourceIdSchema: Schema.Literals<readonly ["mokhtasar-english", "mokhtasar-german", "mokhtasar-indonesian"]>;
8
8
  export type QuranExternalSourceId = typeof QuranExternalSourceIdSchema.Type;
9
9
  /** Exact official Quran source identities in visible attribution order. */
10
- export declare const QuranSourceIdSchema: Schema.Literals<readonly ["tanzil-text", "tanzil-metadata", "kemenag-names", "bubenheim-names", "quranenc-english", "quranenc-indonesian", "quranenc-german", "quranenc-tafsir", "mokhtasar-english", "mokhtasar-german"]>;
10
+ export declare const QuranSourceIdSchema: Schema.Literals<readonly ["tanzil-text", "tanzil-metadata", "kemenag-names", "bubenheim-names", "nakafa-malay-names", "quranenc-english", "quranenc-indonesian", "quranenc-german", "quranenc-malay", "quranenc-tafsir", "mokhtasar-english", "mokhtasar-german", "mokhtasar-indonesian"]>;
11
11
  export type QuranSourceId = typeof QuranSourceIdSchema.Type;
12
12
  /** Canonical order of every official source supported by the contract. */
13
- export declare const QURAN_SOURCE_IDS: readonly ["tanzil-text", "tanzil-metadata", "kemenag-names", "bubenheim-names", "quranenc-english", "quranenc-indonesian", "quranenc-german", "quranenc-tafsir", "mokhtasar-english", "mokhtasar-german"];
13
+ export declare const QURAN_SOURCE_IDS: readonly ["tanzil-text", "tanzil-metadata", "kemenag-names", "bubenheim-names", "nakafa-malay-names", "quranenc-english", "quranenc-indonesian", "quranenc-german", "quranenc-malay", "quranenc-tafsir", "mokhtasar-english", "mokhtasar-german", "mokhtasar-indonesian"];
14
14
  /** Locale-specific translation field in Quran source provenance. */
15
- export declare const QuranTranslationProvenanceScopeSchema: Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de"]>, "-translation"]>;
15
+ export declare const QuranTranslationProvenanceScopeSchema: Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de", "ms"]>, "-translation"]>;
16
16
  export type QuranTranslationProvenanceScope = typeof QuranTranslationProvenanceScopeSchema.Type;
17
17
  /** Locale-specific surah-name field in Quran source provenance. */
18
- export declare const QuranNameProvenanceScopeSchema: Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de"]>, "-surah-name"]>;
18
+ export declare const QuranNameProvenanceScopeSchema: Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de", "ms"]>, "-surah-name"]>;
19
19
  export type QuranNameProvenanceScope = typeof QuranNameProvenanceScopeSchema.Type;
20
20
  declare const QURAN_NAME_BY_LOCALE: {
21
21
  readonly en: {
@@ -30,6 +30,10 @@ declare const QURAN_NAME_BY_LOCALE: {
30
30
  readonly scope: "id-surah-name";
31
31
  readonly sourceId: "kemenag-names";
32
32
  };
33
+ readonly ms: {
34
+ readonly scope: "ms-surah-name";
35
+ readonly sourceId: "nakafa-malay-names";
36
+ };
33
37
  };
34
38
  declare const QURAN_TRANSLATION_BY_LOCALE: {
35
39
  readonly en: {
@@ -44,6 +48,10 @@ declare const QURAN_TRANSLATION_BY_LOCALE: {
44
48
  readonly scope: "id-translation";
45
49
  readonly sourceId: "quranenc-indonesian";
46
50
  };
51
+ readonly ms: {
52
+ readonly scope: "ms-translation";
53
+ readonly sourceId: "quranenc-malay";
54
+ };
47
55
  };
48
56
  declare const QURAN_TAFSIR_BY_LOCALE: {
49
57
  readonly en: {
@@ -55,6 +63,9 @@ declare const QURAN_TAFSIR_BY_LOCALE: {
55
63
  readonly id: {
56
64
  readonly sourceId: "quranenc-tafsir";
57
65
  };
66
+ readonly ms: {
67
+ readonly sourceId: "mokhtasar-indonesian";
68
+ };
58
69
  };
59
70
  /** Selects the reviewed surah-name source for an application locale. */
60
71
  export declare function quranNameSourceId(appLocale: typeof ENGLISH_APP_LOCALE_CODE): (typeof QURAN_NAME_BY_LOCALE)[typeof ENGLISH_APP_LOCALE_CODE]["sourceId"];
@@ -62,6 +73,8 @@ export declare function quranNameSourceId(appLocale: typeof ENGLISH_APP_LOCALE_C
62
73
  export declare function quranNameSourceId(appLocale: typeof INDONESIAN_APP_LOCALE_CODE): (typeof QURAN_NAME_BY_LOCALE)[typeof INDONESIAN_APP_LOCALE_CODE]["sourceId"];
63
74
  /** Narrows the German surah-name source identity. */
64
75
  export declare function quranNameSourceId(appLocale: typeof GERMAN_APP_LOCALE_CODE): (typeof QURAN_NAME_BY_LOCALE)[typeof GERMAN_APP_LOCALE_CODE]["sourceId"];
76
+ /** Narrows the Malay surah-name source identity. */
77
+ export declare function quranNameSourceId(appLocale: typeof MALAY_APP_LOCALE_CODE): (typeof QURAN_NAME_BY_LOCALE)[typeof MALAY_APP_LOCALE_CODE]["sourceId"];
65
78
  /** Selects a surah-name source from a dynamic supported locale. */
66
79
  export declare function quranNameSourceId(appLocale: ActiveAppLocaleCode): QuranEmbeddedSourceId;
67
80
  /** Selects the surah-name provenance scope for an application locale. */
@@ -70,6 +83,8 @@ export declare function quranNameProvenanceScope(appLocale: typeof ENGLISH_APP_L
70
83
  export declare function quranNameProvenanceScope(appLocale: typeof INDONESIAN_APP_LOCALE_CODE): (typeof QURAN_NAME_BY_LOCALE)[typeof INDONESIAN_APP_LOCALE_CODE]["scope"];
71
84
  /** Narrows the German surah-name provenance scope. */
72
85
  export declare function quranNameProvenanceScope(appLocale: typeof GERMAN_APP_LOCALE_CODE): (typeof QURAN_NAME_BY_LOCALE)[typeof GERMAN_APP_LOCALE_CODE]["scope"];
86
+ /** Narrows the Malay surah-name provenance scope. */
87
+ export declare function quranNameProvenanceScope(appLocale: typeof MALAY_APP_LOCALE_CODE): (typeof QURAN_NAME_BY_LOCALE)[typeof MALAY_APP_LOCALE_CODE]["scope"];
73
88
  /** Selects a surah-name provenance scope from a dynamic locale. */
74
89
  export declare function quranNameProvenanceScope(appLocale: ActiveAppLocaleCode): QuranNameProvenanceScope;
75
90
  /** Selects the one pinned translation source for an application locale. */
@@ -78,6 +93,8 @@ export declare function quranTranslationSourceId(appLocale: typeof ENGLISH_APP_L
78
93
  export declare function quranTranslationSourceId(appLocale: typeof INDONESIAN_APP_LOCALE_CODE): (typeof QURAN_TRANSLATION_BY_LOCALE)[typeof INDONESIAN_APP_LOCALE_CODE]["sourceId"];
79
94
  /** Narrows the German translation source identity. */
80
95
  export declare function quranTranslationSourceId(appLocale: typeof GERMAN_APP_LOCALE_CODE): (typeof QURAN_TRANSLATION_BY_LOCALE)[typeof GERMAN_APP_LOCALE_CODE]["sourceId"];
96
+ /** Narrows the Malay translation source identity. */
97
+ export declare function quranTranslationSourceId(appLocale: typeof MALAY_APP_LOCALE_CODE): (typeof QURAN_TRANSLATION_BY_LOCALE)[typeof MALAY_APP_LOCALE_CODE]["sourceId"];
81
98
  /** Selects a translation source from a dynamic supported locale. */
82
99
  export declare function quranTranslationSourceId(appLocale: ActiveAppLocaleCode): QuranEmbeddedSourceId;
83
100
  /** Selects the one signed Tafsir source or access record for a locale. */
@@ -86,6 +103,8 @@ export declare function quranTafsirSourceId(appLocale: typeof ENGLISH_APP_LOCALE
86
103
  export declare function quranTafsirSourceId(appLocale: typeof INDONESIAN_APP_LOCALE_CODE): (typeof QURAN_TAFSIR_BY_LOCALE)[typeof INDONESIAN_APP_LOCALE_CODE]["sourceId"];
87
104
  /** Narrows the German Tafsir source identity. */
88
105
  export declare function quranTafsirSourceId(appLocale: typeof GERMAN_APP_LOCALE_CODE): (typeof QURAN_TAFSIR_BY_LOCALE)[typeof GERMAN_APP_LOCALE_CODE]["sourceId"];
106
+ /** Narrows the Malay Tafsir source identity. */
107
+ export declare function quranTafsirSourceId(appLocale: typeof MALAY_APP_LOCALE_CODE): (typeof QURAN_TAFSIR_BY_LOCALE)[typeof MALAY_APP_LOCALE_CODE]["sourceId"];
89
108
  /** Selects a Tafsir source from a dynamic supported locale. */
90
109
  export declare function quranTafsirSourceId(appLocale: ActiveAppLocaleCode): QuranSourceId;
91
110
  /** Selects the one provenance scope for an application locale. */
@@ -94,12 +113,14 @@ export declare function quranTranslationProvenanceScope(appLocale: typeof ENGLIS
94
113
  export declare function quranTranslationProvenanceScope(appLocale: typeof INDONESIAN_APP_LOCALE_CODE): (typeof QURAN_TRANSLATION_BY_LOCALE)[typeof INDONESIAN_APP_LOCALE_CODE]["scope"];
95
114
  /** Narrows the German translation provenance scope. */
96
115
  export declare function quranTranslationProvenanceScope(appLocale: typeof GERMAN_APP_LOCALE_CODE): (typeof QURAN_TRANSLATION_BY_LOCALE)[typeof GERMAN_APP_LOCALE_CODE]["scope"];
116
+ /** Narrows the Malay translation provenance scope. */
117
+ export declare function quranTranslationProvenanceScope(appLocale: typeof MALAY_APP_LOCALE_CODE): (typeof QURAN_TRANSLATION_BY_LOCALE)[typeof MALAY_APP_LOCALE_CODE]["scope"];
97
118
  /** Selects a translation provenance scope from a dynamic locale. */
98
119
  export declare function quranTranslationProvenanceScope(appLocale: ActiveAppLocaleCode): QuranTranslationProvenanceScope;
99
120
  /** Resolves a translation provenance scope through the canonical locale map. */
100
- export declare function quranTranslationSourceForScope(scope: QuranTranslationProvenanceScope): "quranenc-english" | "quranenc-german" | "quranenc-indonesian";
121
+ export declare function quranTranslationSourceForScope(scope: QuranTranslationProvenanceScope): "quranenc-english" | "quranenc-german" | "quranenc-indonesian" | "quranenc-malay";
101
122
  /** Resolves a surah-name provenance scope through the canonical locale map. */
102
- export declare function quranNameSourceForScope(scope: QuranNameProvenanceScope): "bubenheim-names" | "kemenag-names" | "tanzil-metadata";
123
+ export declare function quranNameSourceForScope(scope: QuranNameProvenanceScope): "bubenheim-names" | "kemenag-names" | "nakafa-malay-names" | "tanzil-metadata";
103
124
  /** Selects the signed Arabic and localized translation reading sources. */
104
- export declare function quranReadingSourceIds(appLocale: ActiveAppLocaleCode): readonly ["tanzil-text", "bubenheim-names" | "kemenag-names" | "quranenc-english" | "quranenc-german" | "quranenc-indonesian" | "quranenc-tafsir" | "tanzil-metadata" | "tanzil-text"];
125
+ export declare function quranReadingSourceIds(appLocale: ActiveAppLocaleCode): readonly ["tanzil-text", "bubenheim-names" | "kemenag-names" | "nakafa-malay-names" | "quranenc-english" | "quranenc-german" | "quranenc-indonesian" | "quranenc-malay" | "quranenc-tafsir" | "tanzil-metadata" | "tanzil-text"];
105
126
  export {};
@@ -1,20 +1,23 @@
1
1
  import { Match, Schema } from "effect";
2
- import { ActiveAppLocaleCodeSchema, ENGLISH_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, } from "#contracts/locale";
2
+ import { ActiveAppLocaleCodeSchema, ENGLISH_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, MALAY_APP_LOCALE_CODE, } from "#contracts/locale";
3
3
  /** Official source identities whose bytes are pinned inside Aksara. */
4
4
  export const QuranEmbeddedSourceIdSchema = Schema.Literals([
5
5
  "tanzil-text",
6
6
  "tanzil-metadata",
7
7
  "kemenag-names",
8
8
  "bubenheim-names",
9
+ "nakafa-malay-names",
9
10
  "quranenc-english",
10
11
  "quranenc-indonesian",
11
12
  "quranenc-german",
13
+ "quranenc-malay",
12
14
  "quranenc-tafsir",
13
15
  ]);
14
16
  /** Official source identities that Aksara may link to but not republish. */
15
17
  export const QuranExternalSourceIdSchema = Schema.Literals([
16
18
  "mokhtasar-english",
17
19
  "mokhtasar-german",
20
+ "mokhtasar-indonesian",
18
21
  ]);
19
22
  /** Exact official Quran source identities in visible attribution order. */
20
23
  export const QuranSourceIdSchema = Schema.Literals([
@@ -50,6 +53,10 @@ const QURAN_NAME_BY_LOCALE = {
50
53
  scope: "id-surah-name",
51
54
  sourceId: "kemenag-names",
52
55
  },
56
+ [MALAY_APP_LOCALE_CODE]: {
57
+ scope: "ms-surah-name",
58
+ sourceId: "nakafa-malay-names",
59
+ },
53
60
  };
54
61
  const QuranTranslationBindingSchema = Schema.Struct({
55
62
  scope: QuranTranslationProvenanceScopeSchema,
@@ -68,6 +75,10 @@ const QURAN_TRANSLATION_BY_LOCALE = {
68
75
  scope: "id-translation",
69
76
  sourceId: "quranenc-indonesian",
70
77
  },
78
+ [MALAY_APP_LOCALE_CODE]: {
79
+ scope: "ms-translation",
80
+ sourceId: "quranenc-malay",
81
+ },
71
82
  };
72
83
  const QuranTafsirBindingSchema = Schema.Struct({
73
84
  sourceId: QuranSourceIdSchema,
@@ -76,6 +87,7 @@ const QURAN_TAFSIR_BY_LOCALE = {
76
87
  [ENGLISH_APP_LOCALE_CODE]: { sourceId: "mokhtasar-english" },
77
88
  [GERMAN_APP_LOCALE_CODE]: { sourceId: "mokhtasar-german" },
78
89
  [INDONESIAN_APP_LOCALE_CODE]: { sourceId: "quranenc-tafsir" },
90
+ [MALAY_APP_LOCALE_CODE]: { sourceId: "mokhtasar-indonesian" },
79
91
  };
80
92
  /** Resolves the selected surah-name source identity. */
81
93
  export function quranNameSourceId(appLocale) {
@@ -99,11 +111,11 @@ export function quranTranslationProvenanceScope(appLocale) {
99
111
  }
100
112
  /** Resolves a translation provenance scope through the canonical locale map. */
101
113
  export function quranTranslationSourceForScope(scope) {
102
- return Match.value(scope).pipe(Match.when("en-translation", () => quranTranslationSourceId(ENGLISH_APP_LOCALE_CODE)), Match.when("id-translation", () => quranTranslationSourceId(INDONESIAN_APP_LOCALE_CODE)), Match.when("de-translation", () => quranTranslationSourceId(GERMAN_APP_LOCALE_CODE)), Match.exhaustive);
114
+ return Match.value(scope).pipe(Match.when("en-translation", () => quranTranslationSourceId(ENGLISH_APP_LOCALE_CODE)), Match.when("id-translation", () => quranTranslationSourceId(INDONESIAN_APP_LOCALE_CODE)), Match.when("de-translation", () => quranTranslationSourceId(GERMAN_APP_LOCALE_CODE)), Match.when("ms-translation", () => quranTranslationSourceId(MALAY_APP_LOCALE_CODE)), Match.exhaustive);
103
115
  }
104
116
  /** Resolves a surah-name provenance scope through the canonical locale map. */
105
117
  export function quranNameSourceForScope(scope) {
106
- return Match.value(scope).pipe(Match.when("en-surah-name", () => quranNameSourceId(ENGLISH_APP_LOCALE_CODE)), Match.when("id-surah-name", () => quranNameSourceId(INDONESIAN_APP_LOCALE_CODE)), Match.when("de-surah-name", () => quranNameSourceId(GERMAN_APP_LOCALE_CODE)), Match.exhaustive);
118
+ return Match.value(scope).pipe(Match.when("en-surah-name", () => quranNameSourceId(ENGLISH_APP_LOCALE_CODE)), Match.when("id-surah-name", () => quranNameSourceId(INDONESIAN_APP_LOCALE_CODE)), Match.when("de-surah-name", () => quranNameSourceId(GERMAN_APP_LOCALE_CODE)), Match.when("ms-surah-name", () => quranNameSourceId(MALAY_APP_LOCALE_CODE)), Match.exhaustive);
107
119
  }
108
120
  /** Selects the signed Arabic and localized translation reading sources. */
109
121
  export function quranReadingSourceIds(appLocale) {
@@ -2,7 +2,7 @@ import { Effect, Schema } from "effect";
2
2
  import { type ActiveAppLocaleList } from "#contracts/locale";
3
3
  import { type QuranSourceId } from "#contracts/quran/identity";
4
4
  /** Complete source-field vocabulary supported by current Quran publication. */
5
- export declare const QuranProvenanceScopeSchema: Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["arabic-text", "metadata"]>, Schema.Literals<readonly ["en-tafsir-access", "de-tafsir-access"]>, Schema.Literal<"id-tafsir">]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de"]>, "-surah-name"]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de"]>, "-translation"]>]>;
5
+ export declare const QuranProvenanceScopeSchema: Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["arabic-text", "metadata"]>, Schema.Literals<readonly ["en-tafsir-access", "de-tafsir-access", "ms-tafsir-access"]>, Schema.Literal<"id-tafsir">]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de", "ms"]>, "-surah-name"]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de", "ms"]>, "-translation"]>]>;
6
6
  export type QuranProvenanceScope = typeof QuranProvenanceScopeSchema.Type;
7
7
  /** Derives the exact provenance scope order for one active locale set. */
8
8
  export declare function quranProvenanceScopes(activeAppLocales: ActiveAppLocaleList): readonly QuranProvenanceScope[];
@@ -26,7 +26,7 @@ export declare const QuranProvenanceRecordSchema: Schema.Struct<{
26
26
  readonly digest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
27
27
  readonly fileCount: Schema.Int;
28
28
  }>;
29
- readonly id: Schema.Literals<readonly ["tanzil-text", "tanzil-metadata", "kemenag-names", "bubenheim-names", "quranenc-english", "quranenc-indonesian", "quranenc-german", "quranenc-tafsir"]>;
29
+ readonly id: Schema.Literals<readonly ["tanzil-text", "tanzil-metadata", "kemenag-names", "bubenheim-names", "nakafa-malay-names", "quranenc-english", "quranenc-indonesian", "quranenc-german", "quranenc-malay", "quranenc-tafsir"]>;
30
30
  readonly kind: Schema.Literal<"embedded">;
31
31
  readonly terms: Schema.Struct<{
32
32
  readonly artifact: Schema.Struct<{
@@ -47,7 +47,7 @@ export declare const QuranProvenanceRecordSchema: Schema.Struct<{
47
47
  readonly sourceUrl: Schema.String;
48
48
  readonly updateUrl: Schema.String;
49
49
  readonly version: Schema.Trimmed;
50
- readonly id: Schema.Literals<readonly ["mokhtasar-english", "mokhtasar-german"]>;
50
+ readonly id: Schema.Literals<readonly ["mokhtasar-english", "mokhtasar-german", "mokhtasar-indonesian"]>;
51
51
  readonly kind: Schema.Literal<"external">;
52
52
  readonly terms: Schema.Struct<{
53
53
  readonly access: Schema.Literal<"link-only">;
@@ -55,13 +55,13 @@ export declare const QuranProvenanceRecordSchema: Schema.Struct<{
55
55
  }>;
56
56
  }>]>;
57
57
  readonly evidence: Schema.Trimmed;
58
- readonly scope: Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["arabic-text", "metadata"]>, Schema.Literals<readonly ["en-tafsir-access", "de-tafsir-access"]>, Schema.Literal<"id-tafsir">]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de"]>, "-surah-name"]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de"]>, "-translation"]>]>;
58
+ readonly scope: Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["arabic-text", "metadata"]>, Schema.Literals<readonly ["en-tafsir-access", "de-tafsir-access", "ms-tafsir-access"]>, Schema.Literal<"id-tafsir">]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de", "ms"]>, "-surah-name"]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de", "ms"]>, "-translation"]>]>;
59
59
  readonly status: Schema.Literals<readonly ["approved", "blocked"]>;
60
60
  }>;
61
61
  export type QuranProvenanceRecord = typeof QuranProvenanceRecordSchema.Type;
62
62
  /** Complete ordered evidence set that gates Quran production publication. */
63
63
  export declare const QuranProvenanceManifestSchema: Schema.Struct<{
64
- readonly activeAppLocales: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>;
64
+ readonly activeAppLocales: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">>;
65
65
  readonly digest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
66
66
  readonly records: Schema.NonEmptyArray<Schema.Struct<{
67
67
  readonly attribution: Schema.Union<readonly [Schema.Struct<{
@@ -80,7 +80,7 @@ export declare const QuranProvenanceManifestSchema: Schema.Struct<{
80
80
  readonly digest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
81
81
  readonly fileCount: Schema.Int;
82
82
  }>;
83
- readonly id: Schema.Literals<readonly ["tanzil-text", "tanzil-metadata", "kemenag-names", "bubenheim-names", "quranenc-english", "quranenc-indonesian", "quranenc-german", "quranenc-tafsir"]>;
83
+ readonly id: Schema.Literals<readonly ["tanzil-text", "tanzil-metadata", "kemenag-names", "bubenheim-names", "nakafa-malay-names", "quranenc-english", "quranenc-indonesian", "quranenc-german", "quranenc-malay", "quranenc-tafsir"]>;
84
84
  readonly kind: Schema.Literal<"embedded">;
85
85
  readonly terms: Schema.Struct<{
86
86
  readonly artifact: Schema.Struct<{
@@ -101,7 +101,7 @@ export declare const QuranProvenanceManifestSchema: Schema.Struct<{
101
101
  readonly sourceUrl: Schema.String;
102
102
  readonly updateUrl: Schema.String;
103
103
  readonly version: Schema.Trimmed;
104
- readonly id: Schema.Literals<readonly ["mokhtasar-english", "mokhtasar-german"]>;
104
+ readonly id: Schema.Literals<readonly ["mokhtasar-english", "mokhtasar-german", "mokhtasar-indonesian"]>;
105
105
  readonly kind: Schema.Literal<"external">;
106
106
  readonly terms: Schema.Struct<{
107
107
  readonly access: Schema.Literal<"link-only">;
@@ -109,14 +109,14 @@ export declare const QuranProvenanceManifestSchema: Schema.Struct<{
109
109
  }>;
110
110
  }>]>;
111
111
  readonly evidence: Schema.Trimmed;
112
- readonly scope: Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["arabic-text", "metadata"]>, Schema.Literals<readonly ["en-tafsir-access", "de-tafsir-access"]>, Schema.Literal<"id-tafsir">]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de"]>, "-surah-name"]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de"]>, "-translation"]>]>;
112
+ readonly scope: Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["arabic-text", "metadata"]>, Schema.Literals<readonly ["en-tafsir-access", "de-tafsir-access", "ms-tafsir-access"]>, Schema.Literal<"id-tafsir">]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de", "ms"]>, "-surah-name"]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de", "ms"]>, "-translation"]>]>;
113
113
  readonly status: Schema.Literals<readonly ["approved", "blocked"]>;
114
114
  }>>;
115
115
  readonly status: Schema.Literals<readonly ["approved", "blocked"]>;
116
116
  }>;
117
117
  export type QuranProvenanceManifest = typeof QuranProvenanceManifestSchema.Type;
118
118
  declare const QuranProvenanceCoverageError_base: Schema.Class<QuranProvenanceCoverageError, Schema.TaggedStruct<"QuranProvenanceCoverageError", {
119
- readonly actualScopes: Schema.$Array<Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["arabic-text", "metadata"]>, Schema.Literals<readonly ["en-tafsir-access", "de-tafsir-access"]>, Schema.Literal<"id-tafsir">]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de"]>, "-surah-name"]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de"]>, "-translation"]>]>>;
119
+ readonly actualScopes: Schema.$Array<Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["arabic-text", "metadata"]>, Schema.Literals<readonly ["en-tafsir-access", "de-tafsir-access", "ms-tafsir-access"]>, Schema.Literal<"id-tafsir">]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de", "ms"]>, "-surah-name"]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de", "ms"]>, "-translation"]>]>>;
120
120
  }>, import("effect/Cause").YieldableError & {
121
121
  readonly brand: unique symbol;
122
122
  }>;
@@ -135,7 +135,7 @@ export declare const makeQuranProvenanceManifest: (input: {
135
135
  readonly activeAppLocales: ActiveAppLocaleList;
136
136
  readonly records: readonly QuranProvenanceRecord[];
137
137
  }) => Effect.Effect<{
138
- readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
138
+ readonly activeAppLocales: readonly [("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
139
139
  readonly digest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
140
140
  readonly records: readonly [{
141
141
  readonly attribution: {
@@ -158,7 +158,7 @@ export declare const makeQuranProvenanceManifest: (input: {
158
158
  readonly digest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
159
159
  readonly fileCount: number;
160
160
  };
161
- readonly id: "bubenheim-names" | "kemenag-names" | "quranenc-english" | "quranenc-german" | "quranenc-indonesian" | "quranenc-tafsir" | "tanzil-metadata" | "tanzil-text";
161
+ readonly id: "bubenheim-names" | "kemenag-names" | "nakafa-malay-names" | "quranenc-english" | "quranenc-german" | "quranenc-indonesian" | "quranenc-malay" | "quranenc-tafsir" | "tanzil-metadata" | "tanzil-text";
162
162
  readonly kind: "embedded";
163
163
  readonly terms: {
164
164
  readonly artifact: {
@@ -183,7 +183,7 @@ export declare const makeQuranProvenanceManifest: (input: {
183
183
  readonly sourceUrl: string;
184
184
  readonly updateUrl: string;
185
185
  readonly version: string;
186
- readonly id: "mokhtasar-english" | "mokhtasar-german";
186
+ readonly id: "mokhtasar-english" | "mokhtasar-german" | "mokhtasar-indonesian";
187
187
  readonly kind: "external";
188
188
  readonly terms: {
189
189
  readonly access: "link-only";
@@ -191,7 +191,7 @@ export declare const makeQuranProvenanceManifest: (input: {
191
191
  };
192
192
  };
193
193
  readonly evidence: string;
194
- readonly scope: "arabic-text" | "de-surah-name" | "de-tafsir-access" | "de-translation" | "en-surah-name" | "en-tafsir-access" | "en-translation" | "id-surah-name" | "id-tafsir" | "id-translation" | "metadata";
194
+ readonly scope: "arabic-text" | "de-surah-name" | "de-tafsir-access" | "de-translation" | "en-surah-name" | "en-tafsir-access" | "en-translation" | "id-surah-name" | "id-tafsir" | "id-translation" | "metadata" | "ms-surah-name" | "ms-tafsir-access" | "ms-translation";
195
195
  readonly status: "approved" | "blocked";
196
196
  }, ...{
197
197
  readonly attribution: {
@@ -214,7 +214,7 @@ export declare const makeQuranProvenanceManifest: (input: {
214
214
  readonly digest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
215
215
  readonly fileCount: number;
216
216
  };
217
- readonly id: "bubenheim-names" | "kemenag-names" | "quranenc-english" | "quranenc-german" | "quranenc-indonesian" | "quranenc-tafsir" | "tanzil-metadata" | "tanzil-text";
217
+ readonly id: "bubenheim-names" | "kemenag-names" | "nakafa-malay-names" | "quranenc-english" | "quranenc-german" | "quranenc-indonesian" | "quranenc-malay" | "quranenc-tafsir" | "tanzil-metadata" | "tanzil-text";
218
218
  readonly kind: "embedded";
219
219
  readonly terms: {
220
220
  readonly artifact: {
@@ -239,7 +239,7 @@ export declare const makeQuranProvenanceManifest: (input: {
239
239
  readonly sourceUrl: string;
240
240
  readonly updateUrl: string;
241
241
  readonly version: string;
242
- readonly id: "mokhtasar-english" | "mokhtasar-german";
242
+ readonly id: "mokhtasar-english" | "mokhtasar-german" | "mokhtasar-indonesian";
243
243
  readonly kind: "external";
244
244
  readonly terms: {
245
245
  readonly access: "link-only";
@@ -247,7 +247,7 @@ export declare const makeQuranProvenanceManifest: (input: {
247
247
  };
248
248
  };
249
249
  readonly evidence: string;
250
- readonly scope: "arabic-text" | "de-surah-name" | "de-tafsir-access" | "de-translation" | "en-surah-name" | "en-tafsir-access" | "en-translation" | "id-surah-name" | "id-tafsir" | "id-translation" | "metadata";
250
+ readonly scope: "arabic-text" | "de-surah-name" | "de-tafsir-access" | "de-translation" | "en-surah-name" | "en-tafsir-access" | "en-translation" | "id-surah-name" | "id-tafsir" | "id-translation" | "metadata" | "ms-surah-name" | "ms-tafsir-access" | "ms-translation";
251
251
  readonly status: "approved" | "blocked";
252
252
  }[]];
253
253
  readonly status: "approved" | "blocked";
@@ -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, activeAppLocaleCode, ENGLISH_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, } from "#contracts/locale";
4
+ import { ActiveAppLocaleListSchema, activeAppLocaleCode, ENGLISH_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, MALAY_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";
@@ -15,6 +15,7 @@ const QuranStaticProvenanceScopeSchema = Schema.Literals([
15
15
  const QuranExternalTafsirProvenanceScopeSchema = Schema.Literals([
16
16
  "en-tafsir-access",
17
17
  "de-tafsir-access",
18
+ "ms-tafsir-access",
18
19
  ]);
19
20
  const QuranNonTranslationProvenanceScopeSchema = Schema.Union([
20
21
  QuranStaticProvenanceScopeSchema,
@@ -35,6 +36,7 @@ const QURAN_TAFSIR_PROVENANCE_SCOPES = {
35
36
  de: "de-tafsir-access",
36
37
  en: "en-tafsir-access",
37
38
  id: "id-tafsir",
39
+ ms: "ms-tafsir-access",
38
40
  };
39
41
  /** Derives the exact provenance scope order for one active locale set. */
40
42
  export function quranProvenanceScopes(activeAppLocales) {
@@ -53,6 +55,7 @@ const QURAN_STATIC_PROVENANCE_SOURCE = {
53
55
  "de-tafsir-access": quranTafsirSourceId(GERMAN_APP_LOCALE_CODE),
54
56
  "en-tafsir-access": quranTafsirSourceId(ENGLISH_APP_LOCALE_CODE),
55
57
  "id-tafsir": quranTafsirSourceId(INDONESIAN_APP_LOCALE_CODE),
58
+ "ms-tafsir-access": quranTafsirSourceId(MALAY_APP_LOCALE_CODE),
56
59
  metadata: "tanzil-metadata",
57
60
  };
58
61
  /** Resolves the only official source allowed to prove one provenance scope. */
@@ -4,7 +4,7 @@ import { type QuranSnapshot, type QuranSnapshotFacts } from "#contracts/quran/sn
4
4
  export declare function canonicalizeQuranSnapshot(input: QuranSnapshotFacts): string;
5
5
  /** Creates the content-addressed identity of one complete Quran snapshot. */
6
6
  export declare const makeQuranSnapshot: (input: {
7
- readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
7
+ readonly activeAppLocales: readonly [("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
8
8
  readonly attributionCount: number;
9
9
  readonly chunkCount: number;
10
10
  readonly projectionCount: number;
@@ -22,7 +22,7 @@ export declare const makeQuranSnapshot: (input: {
22
22
  readonly tafsirLocales: readonly "id"[];
23
23
  readonly verseCount: number;
24
24
  }) => Effect.Effect<{
25
- readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
25
+ readonly activeAppLocales: readonly [("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
26
26
  readonly attributionCount: number;
27
27
  readonly chunkCount: number;
28
28
  readonly projectionCount: number;