@nakafa/aksara-contracts 5.0.0 → 6.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 (58) hide show
  1. package/dist/artifact/integrity.d.ts +2 -2
  2. package/dist/artifact/limits.d.ts +1 -1
  3. package/dist/artifact/source.d.ts +1 -1
  4. package/dist/artifact/spec.d.ts +1 -1
  5. package/dist/artifact/verify.d.ts +1 -1
  6. package/dist/assessment/catalog.d.ts +12 -12
  7. package/dist/assessment/snapshot.d.ts +24 -24
  8. package/dist/content.d.ts +7 -7
  9. package/dist/graph/family.d.ts +2 -2
  10. package/dist/graph/identity.d.ts +1 -1
  11. package/dist/locale.d.ts +21 -10
  12. package/dist/locale.js +24 -9
  13. package/dist/preview/artifact.d.ts +6 -6
  14. package/dist/preview/document.d.ts +13 -13
  15. package/dist/preview/spec.d.ts +49 -49
  16. package/dist/preview/target.d.ts +2 -2
  17. package/dist/program/curriculum.d.ts +2 -2
  18. package/dist/program/snapshot/hash.d.ts +6 -6
  19. package/dist/program/snapshot/row.d.ts +4 -4
  20. package/dist/program/spec.d.ts +2 -2
  21. package/dist/projection/article.d.ts +6 -6
  22. package/dist/projection/digest.d.ts +6 -6
  23. package/dist/projection/hash.d.ts +6 -6
  24. package/dist/projection/material.d.ts +6 -6
  25. package/dist/projection/page.d.ts +6 -6
  26. package/dist/projection/spec.d.ts +7 -7
  27. package/dist/projection/verify.d.ts +6 -6
  28. package/dist/quran/attribution.d.ts +4 -4
  29. package/dist/quran/identity.d.ts +7 -7
  30. package/dist/quran/identity.js +3 -3
  31. package/dist/quran/provenance.d.ts +12 -12
  32. package/dist/quran/snapshot/row/hash.d.ts +39 -39
  33. package/dist/quran/snapshot/row.d.ts +12 -12
  34. package/dist/quran/source.d.ts +7 -7
  35. package/dist/quran/spec.d.ts +1 -1
  36. package/dist/quran/spec.js +3 -3
  37. package/dist/release/canonical.d.ts +2 -2
  38. package/dist/release/digest.d.ts +2 -2
  39. package/dist/release/head.d.ts +9 -9
  40. package/dist/release/items.d.ts +2 -2
  41. package/dist/release/result/digest.d.ts +5 -5
  42. package/dist/release/rollback/digest.d.ts +4 -4
  43. package/dist/release/rollback/spec.d.ts +66 -66
  44. package/dist/release/route/digest.d.ts +2 -2
  45. package/dist/release/route/page.d.ts +4 -4
  46. package/dist/release/route/spec.d.ts +6 -6
  47. package/dist/release/route/verify.d.ts +2 -2
  48. package/dist/release/snapshot/data.d.ts +12 -12
  49. package/dist/release/snapshot/verify.d.ts +22 -22
  50. package/dist/release/spec.d.ts +6 -6
  51. package/dist/runtime/spec.d.ts +23 -23
  52. package/dist/runtime/verify.d.ts +14 -14
  53. package/dist/transport/batch.d.ts +22 -22
  54. package/dist/transport/group.d.ts +69 -69
  55. package/dist/transport/request.d.ts +244 -244
  56. package/dist/transport/response.d.ts +92 -92
  57. package/dist/transport/snapshot.d.ts +24 -24
  58. package/package.json +1 -1
@@ -35,10 +35,10 @@ export declare const ArticleMetadataSchema: Schema.Struct<{
35
35
  export type ArticleMetadata = typeof ArticleMetadataSchema.Type;
36
36
  /** Source-owned identity and public route for one localized article body. */
37
37
  export declare const ArticleRouteSchema: Schema.Struct<{
38
- appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
38
+ appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
39
39
  articleRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
40
40
  articleSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleSlug">;
41
- artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
41
+ artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
42
42
  category: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleCategory">;
43
43
  categoryRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
44
44
  contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
@@ -54,10 +54,10 @@ export declare const ArticleRouteSchema: Schema.Struct<{
54
54
  export type ArticleRoute = typeof ArticleRouteSchema.Type;
55
55
  /** Canonical published read model for one reviewed article body. */
56
56
  export declare const ArticleProjectionSchema: Schema.Struct<{
57
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
57
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
58
58
  readonly articleRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
59
59
  readonly articleSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleSlug">;
60
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
60
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
61
61
  readonly category: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleCategory">;
62
62
  readonly categoryRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
63
63
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
@@ -102,10 +102,10 @@ export declare function makeArticleProjection(input: {
102
102
  readonly references: readonly ArticleReference[];
103
103
  readonly route: ArticleRoute;
104
104
  }): {
105
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
105
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
106
106
  readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
107
107
  readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
108
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
108
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
109
109
  readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
110
110
  readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
111
111
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
@@ -19,10 +19,10 @@ export declare function updateProjectionDigest(state: ProjectionDigestState, pro
19
19
  export declare function finalizeProjectionDigest(state: ProjectionDigestState): Effect.Effect<string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, never, never>;
20
20
  /** Digests a projection stream. Its canonical bytes are held until one digest runs. */
21
21
  export declare const digestProjections: <E, R>(projections: Stream.Stream<{
22
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
22
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
23
23
  readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
24
24
  readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
25
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
25
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
26
26
  readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
27
27
  readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
28
28
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
@@ -58,8 +58,8 @@ export declare const digestProjections: <E, R>(projections: Stream.Stream<{
58
58
  }[];
59
59
  readonly sitemap: true;
60
60
  } | {
61
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
62
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
61
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
62
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
63
63
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
64
64
  readonly graph: {
65
65
  readonly alignmentId: string;
@@ -88,8 +88,8 @@ export declare const digestProjections: <E, R>(projections: Stream.Stream<{
88
88
  readonly sitemap: true;
89
89
  readonly topicTitle: string;
90
90
  } | {
91
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
92
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
91
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
92
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
93
93
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
94
94
  readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
95
95
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
@@ -1,10 +1,10 @@
1
1
  import { Effect } from "effect";
2
2
  /** Hashes one canonical projection for authoritative content-head diffing. */
3
3
  export declare const hashContentProjection: (projection: {
4
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
4
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
5
5
  readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
6
6
  readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
7
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
7
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
8
8
  readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
9
9
  readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
10
10
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
@@ -40,8 +40,8 @@ export declare const hashContentProjection: (projection: {
40
40
  }[];
41
41
  readonly sitemap: true;
42
42
  } | {
43
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
44
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
43
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
44
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
45
45
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
46
46
  readonly graph: {
47
47
  readonly alignmentId: string;
@@ -70,8 +70,8 @@ export declare const hashContentProjection: (projection: {
70
70
  readonly sitemap: true;
71
71
  readonly topicTitle: string;
72
72
  } | {
73
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
74
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
73
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
74
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
75
75
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
76
76
  readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
77
77
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
@@ -33,8 +33,8 @@ export declare const MaterialMetadataSchema: Schema.Struct<{
33
33
  export type MaterialMetadata = typeof MaterialMetadataSchema.Type;
34
34
  /** Non-authored material route fields preserved from Nakafa's registry. */
35
35
  export declare const MaterialLessonRouteSchema: Schema.Struct<{
36
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
37
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
36
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
37
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
38
38
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
39
39
  readonly graph: Schema.Struct<{
40
40
  readonly alignmentId: Schema.String;
@@ -52,8 +52,8 @@ export declare const MaterialLessonRouteSchema: Schema.Struct<{
52
52
  export type MaterialLessonRoute = typeof MaterialLessonRouteSchema.Type;
53
53
  /** Canonical route read model for one published material lesson body. */
54
54
  export declare const MaterialLessonProjectionSchema: Schema.Struct<{
55
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
56
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
55
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
56
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
57
57
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
58
58
  readonly graph: Schema.Struct<{
59
59
  readonly alignmentId: Schema.String;
@@ -85,8 +85,8 @@ export declare const MaterialLessonProjectionSchema: Schema.Struct<{
85
85
  export type MaterialLessonProjection = typeof MaterialLessonProjectionSchema.Type;
86
86
  /** Combines registry-owned routing with metadata decoded from authored MDX. */
87
87
  export declare function makeMaterialLessonProjection(route: MaterialLessonRoute, metadata: MaterialMetadata): {
88
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
89
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
88
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
89
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
90
90
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
91
91
  readonly graph: {
92
92
  readonly alignmentId: string;
@@ -13,8 +13,8 @@ export declare const PageMetadataSchema: Schema.Struct<{
13
13
  export type PageMetadata = typeof PageMetadataSchema.Type;
14
14
  /** Stable identity and locale-owned public route for one reviewed site page. */
15
15
  export declare const PublicPageRouteSchema: Schema.Struct<{
16
- appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
17
- artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
16
+ appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
17
+ artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
18
18
  contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
19
19
  pageKey: Schema.brand<Schema.String, "@NakafaAI/AksaraPageKey">;
20
20
  publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
@@ -22,8 +22,8 @@ export declare const PublicPageRouteSchema: Schema.Struct<{
22
22
  export type PublicPageRoute = typeof PublicPageRouteSchema.Type;
23
23
  /** Canonical signed read model for one reviewed public site page. */
24
24
  export declare const PublicPageProjectionSchema: Schema.Struct<{
25
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
26
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
25
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
26
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
27
27
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
28
28
  readonly pageKey: Schema.brand<Schema.String, "@NakafaAI/AksaraPageKey">;
29
29
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
@@ -44,8 +44,8 @@ export declare function makePublicPageProjection(input: {
44
44
  readonly route: PublicPageRoute;
45
45
  readonly sourcePath: typeof CorpusSourcePathSchema.Type;
46
46
  }): {
47
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
48
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
47
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
48
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
49
49
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
50
50
  readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
51
51
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
@@ -4,10 +4,10 @@ import { Schema } from "effect";
4
4
  * projection owns a public route, which Nakafa's path-based runtime serves.
5
5
  */
6
6
  export declare const ContentProjectionSchema: Schema.Union<readonly [Schema.Struct<{
7
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
7
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
8
8
  readonly articleRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
9
9
  readonly articleSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleSlug">;
10
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
10
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
11
11
  readonly category: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleCategory">;
12
12
  readonly categoryRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
13
13
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
@@ -43,8 +43,8 @@ export declare const ContentProjectionSchema: Schema.Union<readonly [Schema.Stru
43
43
  }>>;
44
44
  readonly sitemap: Schema.Literal<true>;
45
45
  }>, Schema.Struct<{
46
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
47
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
46
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
47
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
48
48
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
49
49
  readonly graph: Schema.Struct<{
50
50
  readonly alignmentId: Schema.String;
@@ -73,8 +73,8 @@ export declare const ContentProjectionSchema: Schema.Union<readonly [Schema.Stru
73
73
  readonly sitemap: Schema.Literal<true>;
74
74
  readonly topicTitle: Schema.String;
75
75
  }>, Schema.Struct<{
76
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
77
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
76
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
77
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
78
78
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
79
79
  readonly pageKey: Schema.brand<Schema.String, "@NakafaAI/AksaraPageKey">;
80
80
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
@@ -92,6 +92,6 @@ export type ContentProjection = typeof ContentProjectionSchema.Type;
92
92
  /** Returns the release family that owns one discriminated projection. */
93
93
  export declare function familyForProjection(projection: ContentProjection): "article" | "material" | "page";
94
94
  /** Returns the exact compiled artifact locale owned by one projection. */
95
- export declare function projectionArtifactLocale(projection: ContentProjection): ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
95
+ export declare function projectionArtifactLocale(projection: ContentProjection): ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
96
96
  /** Serializes one projection through its exhaustive family-owned canonicalizer. */
97
97
  export declare function canonicalizeContentProjection(projection: ContentProjection): string;
@@ -53,10 +53,10 @@ declare const VerifiedContentProjectionsSchema: Schema.Struct<{
53
53
  export type VerifiedContentProjections = typeof VerifiedContentProjectionsSchema.Type;
54
54
  /** Strictly decodes a replayable canonical content projection stream. */
55
55
  export declare function decodeContentProjections<E, R>(projections: Stream.Stream<unknown, E, R>): Stream.Stream<{
56
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
56
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
57
57
  readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
58
58
  readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
59
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
59
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
60
60
  readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
61
61
  readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
62
62
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
@@ -92,8 +92,8 @@ export declare function decodeContentProjections<E, R>(projections: Stream.Strea
92
92
  }[];
93
93
  readonly sitemap: true;
94
94
  } | {
95
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
96
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
95
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
96
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
97
97
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
98
98
  readonly graph: {
99
99
  readonly alignmentId: string;
@@ -122,8 +122,8 @@ export declare function decodeContentProjections<E, R>(projections: Stream.Strea
122
122
  readonly sitemap: true;
123
123
  readonly topicTitle: string;
124
124
  } | {
125
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
126
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
125
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
126
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
127
127
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
128
128
  readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
129
129
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
@@ -2,11 +2,11 @@ import type { QuranSourceAttribution } from "#contracts/quran/source";
2
2
  /** Serializes one source attribution without trusting object insertion order. */
3
3
  export declare function canonicalizeQuranAttribution(attribution: QuranSourceAttribution): {
4
4
  copy: [{
5
- appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
5
+ appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
6
6
  notice: string;
7
7
  title: string;
8
8
  }, ...{
9
- appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
9
+ appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
10
10
  notice: string;
11
11
  title: string;
12
12
  }[]];
@@ -24,11 +24,11 @@ export declare function canonicalizeQuranAttribution(attribution: QuranSourceAtt
24
24
  version: string;
25
25
  } | {
26
26
  copy: [{
27
- appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
27
+ appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
28
28
  notice: string;
29
29
  title: string;
30
30
  }, ...{
31
- appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
31
+ appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
32
32
  notice: string;
33
33
  title: string;
34
34
  }[]];
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import { type AppLocaleCode, 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 } from "#contracts/locale";
3
3
  /** Official source identities whose bytes are pinned inside Aksara. */
4
4
  export declare const QuranEmbeddedSourceIdSchema: Schema.Literals<readonly ["tanzil-text", "tanzil-metadata", "kemenag-names", "bubenheim-names", "quranenc-english", "quranenc-indonesian", "quranenc-german", "quranenc-tafsir"]>;
5
5
  export type QuranEmbeddedSourceId = typeof QuranEmbeddedSourceIdSchema.Type;
@@ -63,7 +63,7 @@ export declare function quranNameSourceId(appLocale: typeof INDONESIAN_APP_LOCAL
63
63
  /** Narrows the German surah-name source identity. */
64
64
  export declare function quranNameSourceId(appLocale: typeof GERMAN_APP_LOCALE_CODE): (typeof QURAN_NAME_BY_LOCALE)[typeof GERMAN_APP_LOCALE_CODE]["sourceId"];
65
65
  /** Selects a surah-name source from a dynamic supported locale. */
66
- export declare function quranNameSourceId(appLocale: AppLocaleCode): QuranEmbeddedSourceId;
66
+ export declare function quranNameSourceId(appLocale: ActiveAppLocaleCode): QuranEmbeddedSourceId;
67
67
  /** Selects the surah-name provenance scope for an application locale. */
68
68
  export declare function quranNameProvenanceScope(appLocale: typeof ENGLISH_APP_LOCALE_CODE): (typeof QURAN_NAME_BY_LOCALE)[typeof ENGLISH_APP_LOCALE_CODE]["scope"];
69
69
  /** Narrows the Indonesian surah-name provenance scope. */
@@ -71,7 +71,7 @@ export declare function quranNameProvenanceScope(appLocale: typeof INDONESIAN_AP
71
71
  /** Narrows the German surah-name provenance scope. */
72
72
  export declare function quranNameProvenanceScope(appLocale: typeof GERMAN_APP_LOCALE_CODE): (typeof QURAN_NAME_BY_LOCALE)[typeof GERMAN_APP_LOCALE_CODE]["scope"];
73
73
  /** Selects a surah-name provenance scope from a dynamic locale. */
74
- export declare function quranNameProvenanceScope(appLocale: AppLocaleCode): QuranNameProvenanceScope;
74
+ export declare function quranNameProvenanceScope(appLocale: ActiveAppLocaleCode): QuranNameProvenanceScope;
75
75
  /** Selects the one pinned translation source for an application locale. */
76
76
  export declare function quranTranslationSourceId(appLocale: typeof ENGLISH_APP_LOCALE_CODE): (typeof QURAN_TRANSLATION_BY_LOCALE)[typeof ENGLISH_APP_LOCALE_CODE]["sourceId"];
77
77
  /** Narrows the Indonesian translation source identity. */
@@ -79,7 +79,7 @@ export declare function quranTranslationSourceId(appLocale: typeof INDONESIAN_AP
79
79
  /** Narrows the German translation source identity. */
80
80
  export declare function quranTranslationSourceId(appLocale: typeof GERMAN_APP_LOCALE_CODE): (typeof QURAN_TRANSLATION_BY_LOCALE)[typeof GERMAN_APP_LOCALE_CODE]["sourceId"];
81
81
  /** Selects a translation source from a dynamic supported locale. */
82
- export declare function quranTranslationSourceId(appLocale: AppLocaleCode): QuranEmbeddedSourceId;
82
+ export declare function quranTranslationSourceId(appLocale: ActiveAppLocaleCode): QuranEmbeddedSourceId;
83
83
  /** Selects the one signed Tafsir source or access record for a locale. */
84
84
  export declare function quranTafsirSourceId(appLocale: typeof ENGLISH_APP_LOCALE_CODE): (typeof QURAN_TAFSIR_BY_LOCALE)[typeof ENGLISH_APP_LOCALE_CODE]["sourceId"];
85
85
  /** Narrows the Indonesian Tafsir source identity. */
@@ -87,7 +87,7 @@ export declare function quranTafsirSourceId(appLocale: typeof INDONESIAN_APP_LOC
87
87
  /** Narrows the German Tafsir source identity. */
88
88
  export declare function quranTafsirSourceId(appLocale: typeof GERMAN_APP_LOCALE_CODE): (typeof QURAN_TAFSIR_BY_LOCALE)[typeof GERMAN_APP_LOCALE_CODE]["sourceId"];
89
89
  /** Selects a Tafsir source from a dynamic supported locale. */
90
- export declare function quranTafsirSourceId(appLocale: AppLocaleCode): QuranSourceId;
90
+ export declare function quranTafsirSourceId(appLocale: ActiveAppLocaleCode): QuranSourceId;
91
91
  /** Selects the one provenance scope for an application locale. */
92
92
  export declare function quranTranslationProvenanceScope(appLocale: typeof ENGLISH_APP_LOCALE_CODE): (typeof QURAN_TRANSLATION_BY_LOCALE)[typeof ENGLISH_APP_LOCALE_CODE]["scope"];
93
93
  /** Narrows the Indonesian translation provenance scope. */
@@ -95,11 +95,11 @@ export declare function quranTranslationProvenanceScope(appLocale: typeof INDONE
95
95
  /** Narrows the German translation provenance scope. */
96
96
  export declare function quranTranslationProvenanceScope(appLocale: typeof GERMAN_APP_LOCALE_CODE): (typeof QURAN_TRANSLATION_BY_LOCALE)[typeof GERMAN_APP_LOCALE_CODE]["scope"];
97
97
  /** Selects a translation provenance scope from a dynamic locale. */
98
- export declare function quranTranslationProvenanceScope(appLocale: AppLocaleCode): QuranTranslationProvenanceScope;
98
+ export declare function quranTranslationProvenanceScope(appLocale: ActiveAppLocaleCode): QuranTranslationProvenanceScope;
99
99
  /** Resolves a translation provenance scope through the canonical locale map. */
100
100
  export declare function quranTranslationSourceForScope(scope: QuranTranslationProvenanceScope): "quranenc-english" | "quranenc-german" | "quranenc-indonesian";
101
101
  /** Resolves a surah-name provenance scope through the canonical locale map. */
102
102
  export declare function quranNameSourceForScope(scope: QuranNameProvenanceScope): "bubenheim-names" | "kemenag-names" | "tanzil-metadata";
103
103
  /** Selects the signed Arabic and localized translation reading sources. */
104
- export declare function quranReadingSourceIds(appLocale: AppLocaleCode): readonly ["tanzil-text", "bubenheim-names" | "kemenag-names" | "quranenc-english" | "quranenc-german" | "quranenc-indonesian" | "quranenc-tafsir" | "tanzil-metadata" | "tanzil-text"];
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"];
105
105
  export {};
@@ -1,5 +1,5 @@
1
1
  import { Match, Schema } from "effect";
2
- import { AppLocaleCodeSchema, 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, } 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",
@@ -25,12 +25,12 @@ export const QuranSourceIdSchema = Schema.Literals([
25
25
  export const QURAN_SOURCE_IDS = QuranSourceIdSchema.literals;
26
26
  /** Locale-specific translation field in Quran source provenance. */
27
27
  export const QuranTranslationProvenanceScopeSchema = Schema.TemplateLiteral([
28
- AppLocaleCodeSchema,
28
+ ActiveAppLocaleCodeSchema,
29
29
  "-translation",
30
30
  ]);
31
31
  /** Locale-specific surah-name field in Quran source provenance. */
32
32
  export const QuranNameProvenanceScopeSchema = Schema.TemplateLiteral([
33
- AppLocaleCodeSchema,
33
+ ActiveAppLocaleCodeSchema,
34
34
  "-surah-name",
35
35
  ]);
36
36
  const QuranNameBindingSchema = Schema.Struct({
@@ -12,7 +12,7 @@ export declare function quranSourceForProvenanceScope(scope: QuranProvenanceScop
12
12
  export declare const QuranProvenanceRecordSchema: Schema.Struct<{
13
13
  readonly attribution: Schema.Union<readonly [Schema.Struct<{
14
14
  readonly copy: Schema.NonEmptyArray<Schema.Struct<{
15
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
15
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
16
16
  readonly notice: Schema.Trimmed;
17
17
  readonly title: Schema.Trimmed;
18
18
  }>>;
@@ -38,7 +38,7 @@ export declare const QuranProvenanceRecordSchema: Schema.Struct<{
38
38
  }>;
39
39
  }>, Schema.Struct<{
40
40
  readonly copy: Schema.NonEmptyArray<Schema.Struct<{
41
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
41
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
42
42
  readonly notice: Schema.Trimmed;
43
43
  readonly title: Schema.Trimmed;
44
44
  }>>;
@@ -66,7 +66,7 @@ export declare const QuranProvenanceManifestSchema: Schema.Struct<{
66
66
  readonly records: Schema.NonEmptyArray<Schema.Struct<{
67
67
  readonly attribution: Schema.Union<readonly [Schema.Struct<{
68
68
  readonly copy: Schema.NonEmptyArray<Schema.Struct<{
69
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
69
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
70
70
  readonly notice: Schema.Trimmed;
71
71
  readonly title: Schema.Trimmed;
72
72
  }>>;
@@ -92,7 +92,7 @@ export declare const QuranProvenanceManifestSchema: Schema.Struct<{
92
92
  }>;
93
93
  }>, Schema.Struct<{
94
94
  readonly copy: Schema.NonEmptyArray<Schema.Struct<{
95
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
95
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
96
96
  readonly notice: Schema.Trimmed;
97
97
  readonly title: Schema.Trimmed;
98
98
  }>>;
@@ -140,11 +140,11 @@ export declare const makeQuranProvenanceManifest: (input: {
140
140
  readonly records: readonly [{
141
141
  readonly attribution: {
142
142
  readonly copy: readonly [{
143
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
143
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
144
144
  readonly notice: string;
145
145
  readonly title: string;
146
146
  }, ...{
147
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
147
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
148
148
  readonly notice: string;
149
149
  readonly title: string;
150
150
  }[]];
@@ -170,11 +170,11 @@ export declare const makeQuranProvenanceManifest: (input: {
170
170
  };
171
171
  } | {
172
172
  readonly copy: readonly [{
173
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
173
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
174
174
  readonly notice: string;
175
175
  readonly title: string;
176
176
  }, ...{
177
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
177
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
178
178
  readonly notice: string;
179
179
  readonly title: string;
180
180
  }[]];
@@ -196,11 +196,11 @@ export declare const makeQuranProvenanceManifest: (input: {
196
196
  }, ...{
197
197
  readonly attribution: {
198
198
  readonly copy: readonly [{
199
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
199
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
200
200
  readonly notice: string;
201
201
  readonly title: string;
202
202
  }, ...{
203
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
203
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
204
204
  readonly notice: string;
205
205
  readonly title: string;
206
206
  }[]];
@@ -226,11 +226,11 @@ export declare const makeQuranProvenanceManifest: (input: {
226
226
  };
227
227
  } | {
228
228
  readonly copy: readonly [{
229
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
229
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
230
230
  readonly notice: string;
231
231
  readonly title: string;
232
232
  }, ...{
233
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
233
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
234
234
  readonly notice: string;
235
235
  readonly title: string;
236
236
  }[]];