@nakafa/aksara-contracts 4.1.3 → 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 (59) 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 +66 -18
  7. package/dist/assessment/catalog.js +28 -8
  8. package/dist/assessment/snapshot.d.ts +100 -24
  9. package/dist/content.d.ts +7 -7
  10. package/dist/graph/family.d.ts +2 -2
  11. package/dist/graph/identity.d.ts +1 -1
  12. package/dist/locale.d.ts +21 -10
  13. package/dist/locale.js +24 -9
  14. package/dist/preview/artifact.d.ts +6 -6
  15. package/dist/preview/document.d.ts +13 -13
  16. package/dist/preview/spec.d.ts +49 -49
  17. package/dist/preview/target.d.ts +2 -2
  18. package/dist/program/curriculum.d.ts +2 -2
  19. package/dist/program/snapshot/hash.d.ts +6 -6
  20. package/dist/program/snapshot/row.d.ts +4 -4
  21. package/dist/program/spec.d.ts +2 -2
  22. package/dist/projection/article.d.ts +6 -6
  23. package/dist/projection/digest.d.ts +6 -6
  24. package/dist/projection/hash.d.ts +6 -6
  25. package/dist/projection/material.d.ts +6 -6
  26. package/dist/projection/page.d.ts +6 -6
  27. package/dist/projection/spec.d.ts +7 -7
  28. package/dist/projection/verify.d.ts +6 -6
  29. package/dist/quran/attribution.d.ts +4 -4
  30. package/dist/quran/identity.d.ts +7 -7
  31. package/dist/quran/identity.js +3 -3
  32. package/dist/quran/provenance.d.ts +12 -12
  33. package/dist/quran/snapshot/row/hash.d.ts +39 -39
  34. package/dist/quran/snapshot/row.d.ts +12 -12
  35. package/dist/quran/source.d.ts +7 -7
  36. package/dist/quran/spec.d.ts +1 -1
  37. package/dist/quran/spec.js +3 -3
  38. package/dist/release/canonical.d.ts +2 -2
  39. package/dist/release/digest.d.ts +2 -2
  40. package/dist/release/head.d.ts +9 -9
  41. package/dist/release/items.d.ts +2 -2
  42. package/dist/release/result/digest.d.ts +5 -5
  43. package/dist/release/rollback/digest.d.ts +4 -4
  44. package/dist/release/rollback/spec.d.ts +66 -66
  45. package/dist/release/route/digest.d.ts +2 -2
  46. package/dist/release/route/page.d.ts +4 -4
  47. package/dist/release/route/spec.d.ts +6 -6
  48. package/dist/release/route/verify.d.ts +2 -2
  49. package/dist/release/snapshot/data.d.ts +31 -12
  50. package/dist/release/snapshot/verify.d.ts +41 -22
  51. package/dist/release/spec.d.ts +6 -6
  52. package/dist/runtime/spec.d.ts +23 -23
  53. package/dist/runtime/verify.d.ts +14 -14
  54. package/dist/transport/batch.d.ts +22 -22
  55. package/dist/transport/group.d.ts +126 -69
  56. package/dist/transport/request.d.ts +396 -244
  57. package/dist/transport/response.d.ts +92 -92
  58. package/dist/transport/snapshot.d.ts +62 -24
  59. package/package.json +1 -1
package/dist/content.d.ts CHANGED
@@ -11,7 +11,7 @@ export declare const ContentAuthorSchema: Schema.Struct<{
11
11
  export type ContentAuthor = typeof ContentAuthorSchema.Type;
12
12
  /** Language-specific content head identity that artifacts and heads share. */
13
13
  export declare const ContentHeadIdentitySchema: Schema.Struct<{
14
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
14
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
15
15
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
16
16
  }>;
17
17
  /** Stable language-specific identity shared by artifacts and content heads. */
@@ -31,7 +31,7 @@ export declare const AKSARA_COMPILER_VERSION = "0.2.0";
31
31
  export declare const MDX_COMPILER_VERSION = "3.1.1";
32
32
  /** Authored source identity accepted before deterministic compilation. */
33
33
  export declare const CompileDocumentSourceSchema: Schema.Struct<{
34
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
34
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
35
35
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
36
36
  readonly rawMdx: Schema.String;
37
37
  readonly rendererDomain: Schema.Literals<readonly ["ai-ds", "biology", "chemistry", "mathematics", "physics", "politics", "site", "snbt-general", "snbt-math", "snbt-plain", "snbt-quant", "tka-math"]>;
@@ -40,7 +40,7 @@ export declare const CompileDocumentSourceSchema: Schema.Struct<{
40
40
  export type CompileDocumentSource = typeof CompileDocumentSourceSchema.Type;
41
41
  /** Validated request accepted by the trusted MDX compiler. */
42
42
  export declare const CompileDocumentRequestSchema: Schema.Struct<{
43
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
43
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
44
44
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
45
45
  readonly rawMdx: Schema.String;
46
46
  readonly rendererDomain: Schema.Literals<readonly ["ai-ds", "biology", "chemistry", "mathematics", "physics", "politics", "site", "snbt-general", "snbt-math", "snbt-plain", "snbt-quant", "tka-math"]>;
@@ -59,7 +59,7 @@ export declare const CompileDocumentRequestSchema: Schema.Struct<{
59
59
  export type CompileDocumentRequest = typeof CompileDocumentRequestSchema.Type;
60
60
  /** Compiled trusted payload: its evaluated content tree is what Nakafa renders. */
61
61
  export declare const CompiledContentPayloadSchema: Schema.Struct<{
62
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
62
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
63
63
  readonly compilerConfigHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
64
64
  readonly compilerVersion: Schema.Literal<"0.2.0">;
65
65
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
@@ -92,7 +92,7 @@ export declare const SignedContentArtifactSchema: Schema.Struct<{
92
92
  readonly artifactHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
93
93
  readonly keyId: Schema.brand<Schema.String, "@NakafaAI/AksaraSigningKeyId">;
94
94
  readonly payload: Schema.Struct<{
95
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
95
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
96
96
  readonly compilerConfigHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
97
97
  readonly compilerVersion: Schema.Literal<"0.2.0">;
98
98
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
@@ -130,7 +130,7 @@ export declare function canonicalizeContentArtifactSigningInput(artifactHash: ty
130
130
  export declare function canonicalizeSignedContentArtifact(artifact: SignedContentArtifact): string;
131
131
  /** Decodes unknown compiler input without throwing parser exceptions. */
132
132
  export declare const decodeCompileDocumentRequest: (input: unknown) => Effect.Effect<{
133
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
133
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
134
134
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
135
135
  readonly rawMdx: string;
136
136
  readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
@@ -148,7 +148,7 @@ export declare const decodeCompileDocumentRequest: (input: unknown) => Effect.Ef
148
148
  }, import("./errors.js").ContractDecodeError, never>;
149
149
  /** Strictly decodes one authored source before a publication recompile. */
150
150
  export declare const decodeCompileDocumentSource: (input: unknown) => Effect.Effect<{
151
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
151
+ readonly artifactLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
152
152
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
153
153
  readonly rawMdx: string;
154
154
  readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
@@ -7,7 +7,7 @@ export declare const LearningGraphAssetIdSchema: Schema.brand<Schema.String, "@N
7
7
  export type LearningGraphAssetId = typeof LearningGraphAssetIdSchema.Type;
8
8
  /** Semantic owner extracted from one exact current learning-graph asset ID. */
9
9
  export declare const LearningGraphAssetOwnerSchema: Schema.Struct<{
10
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
10
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
11
11
  readonly family: Schema.Literals<readonly ["article", "material", "quran", "tryout"]>;
12
12
  }>;
13
13
  export type LearningGraphAssetOwner = typeof LearningGraphAssetOwnerSchema.Type;
@@ -35,7 +35,7 @@ export declare class LearningGraphFamilyError extends LearningGraphFamilyError_b
35
35
  }
36
36
  /** Classifies one assetId-only reference without fabricating a full identity. */
37
37
  export declare const classifyLearningGraphAssetId: (input: string) => Effect.Effect<{
38
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
38
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
39
39
  readonly family: "article" | "material" | "quran" | "tryout";
40
40
  }, LearningGraphAssetFamilyError, never>;
41
41
  /** Classifies one coherent current learning-graph identity for direct dispatch. */
@@ -2,7 +2,7 @@ import { Effect, Schema } from "effect";
2
2
  import { type LearningGraphIdentity } from "#contracts/graph/spec";
3
3
  /** Validated hierarchy segments required to derive one graph identity. */
4
4
  export declare const LearningGraphSegmentsSchema: Schema.Struct<{
5
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
5
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
6
6
  readonly concept: Schema.NonEmptyArray<Schema.String>;
7
7
  readonly learningObject: Schema.NonEmptyArray<Schema.String>;
8
8
  readonly lens: Schema.NonEmptyArray<Schema.String>;
package/dist/locale.d.ts CHANGED
@@ -1,17 +1,22 @@
1
1
  import { Schema } from "effect";
2
- /** Stable locale codes supported by the current Aksara contract. */
3
- export declare const AppLocaleCodeSchema: Schema.Literals<readonly ["en", "id", "de"]>;
2
+ /**
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.
7
+ */
8
+ export declare const AppLocaleCodeSchema: Schema.Literals<readonly ["en", "id", "de", "ms"]>;
4
9
  export type AppLocaleCode = typeof AppLocaleCodeSchema.Type;
5
- export declare const [ENGLISH_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE,]: readonly ["en", "id", "de"];
10
+ export declare const [ENGLISH_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE, MALAY_APP_LOCALE_CODE,]: readonly ["en", "id", "de", "ms"];
6
11
  /** Application locale used for Nakafa-owned interface and explanation copy. */
7
- export declare const AppLocaleSchema: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
12
+ export declare const AppLocaleSchema: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
8
13
  export type AppLocale = typeof AppLocaleSchema.Type;
9
14
  /** Narrows one canonical locale code while preserving application identity. */
10
15
  export declare function appLocaleLiteral<const Code extends AppLocaleCode>(code: Code): Schema.brand<Schema.Literal<Code>, "@NakafaAI/AksaraAppLocale">;
11
16
  /** Constructs one application locale without widening its literal identity. */
12
17
  export declare function makeAppLocale<const Code extends AppLocaleCode>(code: Code): Code & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
13
18
  /** Language delivered by content whose language may differ from the app shell. */
14
- export declare const DeliveryLanguageSchema: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraDeliveryLanguage">;
19
+ export declare const DeliveryLanguageSchema: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraDeliveryLanguage">;
15
20
  export type DeliveryLanguage = typeof DeliveryLanguageSchema.Type;
16
21
  /**
17
22
  * A language of one assessment text, as a BCP 47 tag in its canonical form, such
@@ -23,11 +28,14 @@ export type DeliveryLanguage = typeof DeliveryLanguageSchema.Type;
23
28
  export declare const ContentLanguageSchema: Schema.brand<Schema.String, "@NakafaAI/AksaraContentLanguage">;
24
29
  export type ContentLanguage = typeof ContentLanguageSchema.Type;
25
30
  /** Locale identity of one immutable compiled content artifact. */
26
- export declare const ArtifactLocaleSchema: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
31
+ export declare const ArtifactLocaleSchema: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
27
32
  export type ArtifactLocale = typeof ArtifactLocaleSchema.Type;
28
33
  /** Canonical locale order used by every active-locale subset. */
29
- export declare const APP_LOCALE_CODES: readonly ["en", "id", "de"];
30
- /** Source-controlled application locale codes included by this corpus. */
34
+ export declare const APP_LOCALE_CODES: readonly ["en", "id", "de", "ms"];
35
+ /**
36
+ * Source-controlled application locale codes included by this corpus: every
37
+ * scope authors each of them, and the product serves each of them.
38
+ */
31
39
  export declare const ActiveAppLocaleCodeSchema: Schema.Literals<readonly ["en", "id", "de"]>;
32
40
  export type ActiveAppLocaleCode = typeof ActiveAppLocaleCodeSchema.Type;
33
41
  /** Source-controlled codes used to index the currently complete corpus. */
@@ -38,8 +46,11 @@ export type ActiveAppLocale = typeof ActiveAppLocaleSchema.Type;
38
46
  /** Returns the plain source-map key for one validated active app locale. */
39
47
  export declare function activeAppLocaleCode(appLocale: ActiveAppLocale): "de" | "en" | "id";
40
48
  /** Returns the plain source-map key for one validated artifact locale. */
41
- export declare function artifactLocaleCode(artifactLocale: ArtifactLocale): "de" | "en" | "id";
42
- /** Nonempty unique active locale subset in canonical contract order. */
49
+ export declare function artifactLocaleCode(artifactLocale: ArtifactLocale): "de" | "en" | "id" | "ms";
50
+ /**
51
+ * Nonempty unique active locale subset in canonical contract order. A declared
52
+ * locale joins it only once the contract makes that locale active.
53
+ */
43
54
  export declare const ActiveAppLocaleListSchema: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>;
44
55
  export type ActiveAppLocaleList = typeof ActiveAppLocaleListSchema.Type;
45
56
  /** Source-controlled application locales included by the current corpus. */
package/dist/locale.js CHANGED
@@ -1,8 +1,13 @@
1
1
  import { Array as Arr, Option, Schema } from "effect";
2
2
  import { hasCanonicalOrder } from "#contracts/canonical";
3
- /** Stable locale codes supported by the current Aksara contract. */
4
- export const AppLocaleCodeSchema = Schema.Literals(["en", "id", "de"]);
5
- export const [ENGLISH_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE,] = AppLocaleCodeSchema.literals;
3
+ /**
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.
8
+ */
9
+ export const AppLocaleCodeSchema = Schema.Literals(["en", "id", "de", "ms"]);
10
+ export const [ENGLISH_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE, MALAY_APP_LOCALE_CODE,] = AppLocaleCodeSchema.literals;
6
11
  const APP_LOCALE_BRAND = "@NakafaAI/AksaraAppLocale";
7
12
  /** Application locale used for Nakafa-owned interface and explanation copy. */
8
13
  export const AppLocaleSchema = AppLocaleCodeSchema.pipe(Schema.brand(APP_LOCALE_BRAND));
@@ -44,8 +49,15 @@ export const ContentLanguageSchema = Schema.String.pipe(Schema.check(Schema.make
44
49
  export const ArtifactLocaleSchema = AppLocaleCodeSchema.pipe(Schema.brand("@NakafaAI/AksaraArtifactLocale"));
45
50
  /** Canonical locale order used by every active-locale subset. */
46
51
  export const APP_LOCALE_CODES = AppLocaleCodeSchema.literals;
47
- /** Source-controlled application locale codes included by this corpus. */
48
- export const ActiveAppLocaleCodeSchema = AppLocaleCodeSchema;
52
+ /**
53
+ * Source-controlled application locale codes included by this corpus: every
54
+ * scope authors each of them, and the product serves each of them.
55
+ */
56
+ export const ActiveAppLocaleCodeSchema = AppLocaleCodeSchema.pick([
57
+ ENGLISH_APP_LOCALE_CODE,
58
+ INDONESIAN_APP_LOCALE_CODE,
59
+ GERMAN_APP_LOCALE_CODE,
60
+ ]);
49
61
  /** Source-controlled codes used to index the currently complete corpus. */
50
62
  export const ACTIVE_APP_LOCALE_CODES = ActiveAppLocaleCodeSchema.literals;
51
63
  /** Application locale currently required from every authored scope. */
@@ -60,11 +72,14 @@ export function artifactLocaleCode(artifactLocale) {
60
72
  }
61
73
  /** Checks a nonempty locale subset for uniqueness and canonical order. */
62
74
  function hasCanonicalActiveAppLocales(locales) {
63
- return hasCanonicalOrder(APP_LOCALE_CODES, locales);
75
+ return hasCanonicalOrder(ACTIVE_APP_LOCALE_CODES, locales);
64
76
  }
65
- /** Nonempty unique active locale subset in canonical contract order. */
66
- export const ActiveAppLocaleListSchema = Schema.NonEmptyArray(AppLocaleSchema).pipe(Schema.check(Schema.makeFilter(hasCanonicalActiveAppLocales, {
67
- message: "Active app locales must be unique and follow en, id, de order.",
77
+ /**
78
+ * Nonempty unique active locale subset in canonical contract order. A declared
79
+ * locale joins it only once the contract makes that locale active.
80
+ */
81
+ export const ActiveAppLocaleListSchema = Schema.NonEmptyArray(ActiveAppLocaleSchema).pipe(Schema.check(Schema.makeFilter(hasCanonicalActiveAppLocales, {
82
+ message: `Active app locales must be unique and follow ${Arr.join(ACTIVE_APP_LOCALE_CODES, ", ")} order.`,
68
83
  })));
69
84
  /** Source-controlled application locales included by the current corpus. */
70
85
  export const ACTIVE_APP_LOCALES = Schema.decodeSync(Schema.NonEmptyArray(ActiveAppLocaleSchema))(ACTIVE_APP_LOCALE_CODES);
@@ -7,10 +7,10 @@ export declare const PreviewArtifactSchema: Schema.Struct<{
7
7
  readonly artifactHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
8
8
  readonly artifactPath: Schema.Trimmed;
9
9
  readonly projection: Schema.Union<readonly [Schema.Struct<{
10
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
10
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
11
11
  readonly articleRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
12
12
  readonly articleSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleSlug">;
13
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
13
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
14
14
  readonly category: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleCategory">;
15
15
  readonly categoryRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
16
16
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
@@ -46,8 +46,8 @@ export declare const PreviewArtifactSchema: Schema.Struct<{
46
46
  }>>;
47
47
  readonly sitemap: Schema.Literal<true>;
48
48
  }>, Schema.Struct<{
49
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
50
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
49
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
50
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
51
51
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
52
52
  readonly graph: Schema.Struct<{
53
53
  readonly alignmentId: Schema.String;
@@ -76,8 +76,8 @@ export declare const PreviewArtifactSchema: Schema.Struct<{
76
76
  readonly sitemap: Schema.Literal<true>;
77
77
  readonly topicTitle: Schema.String;
78
78
  }>, Schema.Struct<{
79
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
80
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
79
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
80
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
81
81
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
82
82
  readonly pageKey: Schema.brand<Schema.String, "@NakafaAI/AksaraPageKey">;
83
83
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
@@ -5,10 +5,10 @@ export declare const ArticlePreviewDocumentSchema: Schema.Struct<{
5
5
  readonly family: Schema.Literal<"article">;
6
6
  readonly rendererDomain: Schema.Literals<readonly ["ai-ds", "biology", "chemistry", "mathematics", "physics", "politics", "site", "snbt-general", "snbt-math", "snbt-plain", "snbt-quant", "tka-math"]>;
7
7
  readonly route: Schema.Struct<{
8
- appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
8
+ appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
9
9
  articleRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
10
10
  articleSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleSlug">;
11
- artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
11
+ artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
12
12
  category: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleCategory">;
13
13
  categoryRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
14
14
  contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
@@ -30,8 +30,8 @@ export declare const MaterialPreviewDocumentSchema: Schema.Struct<{
30
30
  readonly family: Schema.Literal<"material">;
31
31
  readonly rendererDomain: Schema.Literals<readonly ["ai-ds", "biology", "chemistry", "mathematics", "physics", "politics", "site", "snbt-general", "snbt-math", "snbt-plain", "snbt-quant", "tka-math"]>;
32
32
  readonly route: Schema.Struct<{
33
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
34
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
33
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
34
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
35
35
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
36
36
  readonly graph: Schema.Struct<{
37
37
  readonly alignmentId: Schema.String;
@@ -55,8 +55,8 @@ export declare const PagePreviewDocumentSchema: Schema.Struct<{
55
55
  readonly family: Schema.Literal<"page">;
56
56
  readonly rendererDomain: Schema.Literal<"site">;
57
57
  readonly route: Schema.Struct<{
58
- appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
59
- artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
58
+ appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
59
+ artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
60
60
  contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
61
61
  pageKey: Schema.brand<Schema.String, "@NakafaAI/AksaraPageKey">;
62
62
  publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
@@ -70,10 +70,10 @@ export declare const PreviewDocumentSchema: Schema.Union<readonly [Schema.Struct
70
70
  readonly family: Schema.Literal<"article">;
71
71
  readonly rendererDomain: Schema.Literals<readonly ["ai-ds", "biology", "chemistry", "mathematics", "physics", "politics", "site", "snbt-general", "snbt-math", "snbt-plain", "snbt-quant", "tka-math"]>;
72
72
  readonly route: Schema.Struct<{
73
- appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
73
+ appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
74
74
  articleRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
75
75
  articleSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleSlug">;
76
- artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
76
+ artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
77
77
  category: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleCategory">;
78
78
  categoryRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
79
79
  contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
@@ -92,8 +92,8 @@ export declare const PreviewDocumentSchema: Schema.Union<readonly [Schema.Struct
92
92
  readonly family: Schema.Literal<"material">;
93
93
  readonly rendererDomain: Schema.Literals<readonly ["ai-ds", "biology", "chemistry", "mathematics", "physics", "politics", "site", "snbt-general", "snbt-math", "snbt-plain", "snbt-quant", "tka-math"]>;
94
94
  readonly route: Schema.Struct<{
95
- readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
96
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
95
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
96
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
97
97
  readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
98
98
  readonly graph: Schema.Struct<{
99
99
  readonly alignmentId: Schema.String;
@@ -114,8 +114,8 @@ export declare const PreviewDocumentSchema: Schema.Union<readonly [Schema.Struct
114
114
  readonly family: Schema.Literal<"page">;
115
115
  readonly rendererDomain: Schema.Literal<"site">;
116
116
  readonly route: Schema.Struct<{
117
- appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
118
- artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
117
+ appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
118
+ artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraArtifactLocale">;
119
119
  contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
120
120
  pageKey: Schema.brand<Schema.String, "@NakafaAI/AksaraPageKey">;
121
121
  publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
@@ -125,6 +125,6 @@ export declare const PreviewDocumentSchema: Schema.Union<readonly [Schema.Struct
125
125
  export type PreviewDocument = typeof PreviewDocumentSchema.Type;
126
126
  /** Derives the one existing Nakafa route that renders a preview document. */
127
127
  export declare function previewDocumentRoute(document: PreviewDocument): {
128
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
128
+ readonly appLocale: ("de" | "en" | "id" | "ms") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
129
129
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
130
130
  };