@nakafa/aksara-contracts 0.36.0 → 0.38.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 (38) hide show
  1. package/dist/cache/content.d.ts +14 -36
  2. package/dist/cache/content.js +22 -64
  3. package/dist/math/base.d.ts +1 -2
  4. package/dist/math/base.js +9 -5
  5. package/dist/math/plane.d.ts +2 -4
  6. package/dist/math/plane.js +2 -3
  7. package/dist/math/space.d.ts +2 -4
  8. package/dist/math/space.js +2 -3
  9. package/dist/math/visual.d.ts +4 -8
  10. package/dist/preview/artifact.js +2 -2
  11. package/dist/projection/digest.d.ts +0 -36
  12. package/dist/projection/question.d.ts +1 -159
  13. package/dist/projection/question.js +15 -75
  14. package/dist/projection/spec.d.ts +1 -199
  15. package/dist/projection/spec.js +1 -8
  16. package/dist/projection/verify.d.ts +64 -100
  17. package/dist/release/current/evidence.d.ts +6 -21
  18. package/dist/release/current/state.d.ts +10 -35
  19. package/dist/release/hash.d.ts +0 -5
  20. package/dist/release/items.js +1 -2
  21. package/dist/release/lifecycle.d.ts +4 -14
  22. package/dist/release/rollback/spec.d.ts +12 -228
  23. package/dist/release/snapshot/scope.d.ts +3 -48
  24. package/dist/release/snapshot/scope.js +7 -69
  25. package/dist/release/snapshot/spec.js +2 -3
  26. package/dist/release/snapshot/verify.d.ts +31 -31
  27. package/dist/release/spec.d.ts +6 -21
  28. package/dist/release/verify.d.ts +0 -5
  29. package/dist/runtime/spec.d.ts +26 -41
  30. package/dist/runtime/verify.d.ts +44 -54
  31. package/dist/transport/batch.d.ts +0 -405
  32. package/dist/transport/batch.js +2 -14
  33. package/dist/transport/group.d.ts +33 -633
  34. package/dist/transport/group.js +1 -2
  35. package/dist/transport/request.d.ts +375 -1435
  36. package/dist/transport/response.d.ts +145 -503
  37. package/dist/tryout/catalog-hash.d.ts +18 -18
  38. package/package.json +1 -1
@@ -1,38 +1,13 @@
1
- import { Effect, Schema } from "effect";
2
- import { ContentFamilySchema, compareContentHeads, } from "#contracts/content";
3
- import { ContentKeySchema } from "#contracts/ids";
4
- import { ArtifactLocaleSchema } from "#contracts/locale";
5
- import { compareCodeUnits } from "#contracts/text/order";
1
+ import { Schema } from "effect";
2
+ import { ContentFamilySchema } from "#contracts/content";
6
3
  /** Fixed structured families selected by the one global release pointer. */
7
4
  export const ContentSnapshotKindSchema = Schema.Literals([
8
5
  "program",
9
6
  "quran",
10
7
  "tryout",
11
8
  ]);
12
- /** Authenticates exact content selection retained by predecessor releases. */
13
- export const PredecessorContentPublicationIdentitySchema = Schema.Struct({
14
- artifactLocale: ArtifactLocaleSchema,
15
- contentKey: ContentKeySchema,
16
- family: ContentFamilySchema,
17
- });
18
- /** Orders predecessor scope identities exactly as their signed release did. */
19
- function comparePredecessorPublicationIdentities(left, right) {
20
- const familyOrder = compareCodeUnits(left.family, right.family);
21
- return familyOrder || compareContentHeads(left, right);
22
- }
23
- /** Accepts only canonical predecessor identities outside selected families. */
24
- function hasCanonicalPredecessorContent(content, families) {
25
- const ordered = content.every((identity, index) => {
26
- const previous = content[index - 1];
27
- return (previous === undefined ||
28
- comparePredecessorPublicationIdentities(previous, identity) < 0);
29
- });
30
- return ordered && content.every(({ family }) => !families.includes(family));
31
- }
32
9
  /** Checks strict canonical ordering for selected content and snapshot families. */
33
10
  function hasCanonicalPublicationScope(input) {
34
- const content = input.content ?? [];
35
- const contentIsCanonical = hasCanonicalPredecessorContent(content, input.families);
36
11
  const snapshotsAreCanonical = input.snapshots.every((family, index) => {
37
12
  const previous = input.snapshots[index - 1];
38
13
  return (previous === undefined ||
@@ -45,57 +20,20 @@ function hasCanonicalPublicationScope(input) {
45
20
  ContentFamilySchema.literals.indexOf(previous) <
46
21
  ContentFamilySchema.literals.indexOf(family));
47
22
  });
48
- return (contentIsCanonical &&
49
- familiesAreCanonical &&
23
+ return (familiesAreCanonical &&
50
24
  snapshotsAreCanonical &&
51
- content.length + input.families.length + input.snapshots.length > 0);
25
+ input.families.length + input.snapshots.length > 0);
52
26
  }
53
- const PublicationScopeFields = {
54
- content: Schema.optional(Schema.Array(PredecessorContentPublicationIdentitySchema)),
27
+ /** Whole content and structured families authenticated by one signed release. */
28
+ export const PublicationScopeSchema = Schema.Struct({
55
29
  families: Schema.Array(ContentFamilySchema),
56
30
  snapshots: Schema.Array(ContentSnapshotKindSchema),
57
- };
58
- /** Content and structured families authenticated from any signed release. */
59
- export const PublicationScopeSchema = Schema.Struct(PublicationScopeFields).pipe(Schema.check(Schema.makeFilter(hasCanonicalPublicationScope, {
60
- message: "Expected a non-empty publication scope in canonical unique order.",
61
- })));
62
- /** Whole-family scope accepted when preparing a new Git release. */
63
- export const GitPublicationScopeSchema = Schema.Struct({
64
- families: PublicationScopeFields.families,
65
- snapshots: PublicationScopeFields.snapshots,
66
31
  }).pipe(Schema.check(Schema.makeFilter(hasCanonicalPublicationScope, {
67
- message: "Expected a non-empty Git publication scope in canonical unique order.",
32
+ message: "Expected a non-empty publication scope in canonical unique order.",
68
33
  })));
69
- /** New Git release preparation received predecessor-only exact selection. */
70
- export class GitPublicationScopeError extends Schema.TaggedError()("GitPublicationScopeError", {}) {
71
- }
72
- /** Rejects predecessor-only fields before any new release work begins. */
73
- export const verifyGitPublicationScope = Effect.fn("AksaraContracts.verifyGitPublicationScope")((scope) => Schema.decodeEffect(GitPublicationScopeSchema)(scope, {
74
- onExcessProperty: "error",
75
- }).pipe(Effect.mapError(() => new GitPublicationScopeError())));
76
- /** Checks whether one body transition is authorized by the signed scope. */
77
- export function publicationScopeSelectsContent(scope, identity) {
78
- return (scope.families.includes(identity.family) ||
79
- scope.content?.some((selected) => selected.artifactLocale === identity.artifactLocale &&
80
- selected.contentKey === identity.contentKey &&
81
- selected.family === identity.family) === true);
82
- }
83
- /** Checks whether one structured family may be replaced by this release. */
84
- export function publicationScopeSelectsSnapshot(scope, family) {
85
- return scope.snapshots.includes(family);
86
- }
87
34
  /** Serializes one publication scope with stable signed field order. */
88
35
  export function canonicalizePublicationScope(scope) {
89
36
  return {
90
- ...(scope.content === undefined
91
- ? {}
92
- : {
93
- content: scope.content.map(({ artifactLocale, contentKey, family }) => ({
94
- artifactLocale,
95
- contentKey,
96
- family,
97
- })),
98
- }),
99
37
  families: [...scope.families],
100
38
  snapshots: [...scope.snapshots],
101
39
  };
@@ -1,7 +1,7 @@
1
1
  /** Signed structured snapshot transition contracts. */
2
2
  import { Schema } from "effect";
3
3
  import { Sha256HashSchema } from "#contracts/ids";
4
- import { ContentSnapshotKindSchema, publicationScopeSelectsSnapshot, } from "#contracts/release/snapshot/scope";
4
+ import { ContentSnapshotKindSchema, } from "#contracts/release/snapshot/scope";
5
5
  /** Canonical digest for a release that stages no structured snapshot rows. */
6
6
  export const EMPTY_SNAPSHOT_ROW_DIGEST = Sha256HashSchema.make("sha256:eb27aa7f59e41b14a3f76d951c5a50cb954a19f3f6e6c44bc21a733f606e888f");
7
7
  const RowCountSchema = Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0)));
@@ -23,8 +23,7 @@ export const ContentSnapshotSetSchema = Schema.Struct({
23
23
  });
24
24
  /** Requires every unselected structured family to remain inherited. */
25
25
  export function hasScopedSnapshotTransitions(scope, snapshots) {
26
- return ContentSnapshotKindSchema.literals.every((family) => publicationScopeSelectsSnapshot(scope, family) ||
27
- snapshots[family].mode === "inherit");
26
+ return ContentSnapshotKindSchema.literals.every((family) => scope.snapshots.includes(family) || snapshots[family].mode === "inherit");
28
27
  }
29
28
  /** Checks inheritance, replacement, and forward restore row semantics. */
30
29
  export function hasCoherentSnapshotState(state) {
@@ -447,15 +447,16 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
447
447
  readonly title: string;
448
448
  readonly countryKey: string;
449
449
  readonly examKey: string;
450
- readonly kind: "track";
450
+ readonly kind: "section";
451
451
  readonly order: number;
452
- readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
452
+ readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
453
453
  readonly questionCount: number;
454
- readonly sectionCount: number;
455
- readonly setCount: number;
454
+ readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
455
+ readonly sectionKey: string;
456
+ readonly setKey: string;
457
+ readonly timeLimitSeconds: number;
456
458
  readonly trackKey: string;
457
- readonly trackKind: "subject" | "year";
458
- readonly visibleSectionCount: number;
459
+ readonly visibility: "internal-entry" | "visible";
459
460
  } | {
460
461
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
461
462
  readonly description?: string | undefined;
@@ -494,16 +495,15 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
494
495
  readonly title: string;
495
496
  readonly countryKey: string;
496
497
  readonly examKey: string;
497
- readonly kind: "section";
498
+ readonly kind: "track";
498
499
  readonly order: number;
499
- readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
500
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
500
501
  readonly questionCount: number;
501
- readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
502
- readonly sectionKey: string;
503
- readonly setKey: string;
504
- readonly timeLimitSeconds: number;
502
+ readonly sectionCount: number;
503
+ readonly setCount: number;
505
504
  readonly trackKey: string;
506
- readonly visibility: "internal-entry" | "visible";
505
+ readonly trackKind: "subject" | "year";
506
+ readonly visibleSectionCount: number;
507
507
  } | {
508
508
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
509
509
  readonly description?: string | undefined;
@@ -516,11 +516,12 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
516
516
  };
517
517
  readonly sourceRevision: string;
518
518
  readonly title: string;
519
- readonly countryCode: string;
520
519
  readonly countryKey: string;
521
- readonly kind: "country";
520
+ readonly examKey: string;
521
+ readonly kind: "exam";
522
522
  readonly order: number;
523
523
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
524
+ readonly scoringStrategy: "irt" | "raw";
524
525
  } | {
525
526
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
526
527
  readonly description?: string | undefined;
@@ -533,12 +534,11 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
533
534
  };
534
535
  readonly sourceRevision: string;
535
536
  readonly title: string;
537
+ readonly countryCode: string;
536
538
  readonly countryKey: string;
537
- readonly examKey: string;
538
- readonly kind: "exam";
539
+ readonly kind: "country";
539
540
  readonly order: number;
540
541
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
541
- readonly scoringStrategy: "irt" | "raw";
542
542
  };
543
543
  readonly rowHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
544
544
  };
@@ -570,17 +570,12 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
570
570
  readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
571
571
  readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
572
572
  readonly response: {
573
- readonly categories: readonly {
574
- readonly categoryKey: string;
575
- readonly label: string;
576
- readonly order: number;
577
- }[];
578
- readonly kind: "category";
579
- readonly statements: readonly {
580
- readonly correctCategoryKey: string;
573
+ readonly kind: "single-choice";
574
+ readonly options: readonly {
575
+ readonly isCorrect: boolean;
581
576
  readonly label: string;
577
+ readonly optionKey: string;
582
578
  readonly order: number;
583
- readonly statementKey: string;
584
579
  }[];
585
580
  } | {
586
581
  readonly kind: "multiple-choice";
@@ -591,13 +586,18 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
591
586
  readonly order: number;
592
587
  }[];
593
588
  } | {
594
- readonly kind: "single-choice";
595
- readonly options: readonly {
596
- readonly isCorrect: boolean;
589
+ readonly categories: readonly {
590
+ readonly categoryKey: string;
597
591
  readonly label: string;
598
- readonly optionKey: string;
599
592
  readonly order: number;
600
593
  }[];
594
+ readonly kind: "category";
595
+ readonly statements: readonly {
596
+ readonly correctCategoryKey: string;
597
+ readonly label: string;
598
+ readonly order: number;
599
+ readonly statementKey: string;
600
+ }[];
601
601
  };
602
602
  readonly scope: "server";
603
603
  readonly sectionKey: string;
@@ -91,13 +91,8 @@ export declare const ContentReleaseManifestSchema: Schema.Struct<{
91
91
  readonly routeCount: Schema.Finite;
92
92
  readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
93
93
  readonly scope: Schema.Struct<{
94
- content: Schema.optional<Schema.$Array<Schema.Struct<{
95
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
96
- readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
97
- readonly family: Schema.Literals<readonly ["article", "material", "page", "question"]>;
98
- }>>>;
99
- families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
100
- snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
94
+ readonly families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
95
+ readonly snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
101
96
  }>;
102
97
  readonly snapshots: Schema.Struct<{
103
98
  readonly program: Schema.Struct<{
@@ -158,13 +153,8 @@ export declare const SignedContentReleaseSchema: Schema.Struct<{
158
153
  readonly routeCount: Schema.Finite;
159
154
  readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
160
155
  readonly scope: Schema.Struct<{
161
- content: Schema.optional<Schema.$Array<Schema.Struct<{
162
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
163
- readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
164
- readonly family: Schema.Literals<readonly ["article", "material", "page", "question"]>;
165
- }>>>;
166
- families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
167
- snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
156
+ readonly families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
157
+ readonly snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
168
158
  }>;
169
159
  readonly snapshots: Schema.Struct<{
170
160
  readonly program: Schema.Struct<{
@@ -239,13 +229,8 @@ export declare const RollbackSignedContentReleaseSchema: Schema.refine<RollbackS
239
229
  readonly routeCount: Schema.Finite;
240
230
  readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
241
231
  readonly scope: Schema.Struct<{
242
- content: Schema.optional<Schema.$Array<Schema.Struct<{
243
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
244
- readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
245
- readonly family: Schema.Literals<readonly ["article", "material", "page", "question"]>;
246
- }>>>;
247
- families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
248
- snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
232
+ readonly families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
233
+ readonly snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
249
234
  }>;
250
235
  readonly snapshots: Schema.Struct<{
251
236
  readonly program: Schema.Struct<{
@@ -51,11 +51,6 @@ export declare const verifySignedContentRelease: (input: unknown) => Effect.Effe
51
51
  readonly routeCount: number;
52
52
  readonly routeDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
53
53
  readonly scope: {
54
- readonly content?: readonly {
55
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
56
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
57
- readonly family: "article" | "material" | "page" | "question";
58
- }[] | undefined;
59
54
  readonly families: readonly ("article" | "material" | "page" | "question")[];
60
55
  readonly snapshots: readonly ("program" | "quran" | "tryout")[];
61
56
  };
@@ -66,13 +66,8 @@ export declare const PublicContentRuntimeFoundSchema: Schema.Struct<{
66
66
  readonly routeCount: Schema.Finite;
67
67
  readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
68
68
  readonly scope: Schema.Struct<{
69
- content: Schema.optional<Schema.$Array<Schema.Struct<{
70
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
71
- readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
72
- readonly family: Schema.Literals<readonly ["article", "material", "page", "question"]>;
73
- }>>>;
74
- families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
75
- snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
69
+ readonly families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
70
+ readonly snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
76
71
  }>;
77
72
  readonly snapshots: Schema.Struct<{
78
73
  readonly program: Schema.Struct<{
@@ -278,13 +273,8 @@ export declare const PublicContentRuntimeResponseSchema: Schema.Union<readonly [
278
273
  readonly routeCount: Schema.Finite;
279
274
  readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
280
275
  readonly scope: Schema.Struct<{
281
- content: Schema.optional<Schema.$Array<Schema.Struct<{
282
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
283
- readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
284
- readonly family: Schema.Literals<readonly ["article", "material", "page", "question"]>;
285
- }>>>;
286
- families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
287
- snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
276
+ readonly families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
277
+ readonly snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
288
278
  }>;
289
279
  readonly snapshots: Schema.Struct<{
290
280
  readonly program: Schema.Struct<{
@@ -501,11 +491,6 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
501
491
  readonly routeCount: number;
502
492
  readonly routeDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
503
493
  readonly scope: {
504
- readonly content?: readonly {
505
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
506
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
507
- readonly family: "article" | "material" | "page" | "question";
508
- }[] | undefined;
509
494
  readonly families: readonly ("article" | "material" | "page" | "question")[];
510
495
  readonly snapshots: readonly ("program" | "quran" | "tryout")[];
511
496
  };
@@ -572,7 +557,11 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
572
557
  readonly delivery: "public";
573
558
  readonly projection: {
574
559
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
560
+ readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
561
+ readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
575
562
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
563
+ readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
564
+ readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
576
565
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
577
566
  readonly graph: {
578
567
  readonly alignmentId: string;
@@ -581,11 +570,9 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
581
570
  readonly learningObjectId: string;
582
571
  readonly lensId: string;
583
572
  };
584
- readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
585
- readonly order: number;
586
573
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
587
- readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
588
- readonly kind: "subject-lesson";
574
+ readonly categoryTitle: string;
575
+ readonly kind: "article";
589
576
  readonly metadata: {
590
577
  readonly dateModified?: string;
591
578
  readonly datePublished: string;
@@ -593,19 +580,23 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
593
580
  readonly name: string;
594
581
  }[];
595
582
  readonly description?: string | undefined;
596
- readonly subject?: string | undefined;
597
583
  readonly title: string;
598
584
  };
585
+ readonly official: boolean;
599
586
  readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
587
+ readonly references: readonly {
588
+ readonly authors: string;
589
+ readonly citation?: string | undefined;
590
+ readonly details?: string | undefined;
591
+ readonly publication?: string | undefined;
592
+ readonly title: string;
593
+ readonly url?: string | undefined;
594
+ readonly year: number;
595
+ }[];
600
596
  readonly sitemap: true;
601
- readonly topicTitle: string;
602
597
  } | {
603
598
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
604
- readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
605
- readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
606
599
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
607
- readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
608
- readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
609
600
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
610
601
  readonly graph: {
611
602
  readonly alignmentId: string;
@@ -614,9 +605,11 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
614
605
  readonly learningObjectId: string;
615
606
  readonly lensId: string;
616
607
  };
608
+ readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
609
+ readonly order: number;
617
610
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
618
- readonly categoryTitle: string;
619
- readonly kind: "article";
611
+ readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
612
+ readonly kind: "subject-lesson";
620
613
  readonly metadata: {
621
614
  readonly dateModified?: string;
622
615
  readonly datePublished: string;
@@ -624,20 +617,12 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
624
617
  readonly name: string;
625
618
  }[];
626
619
  readonly description?: string | undefined;
620
+ readonly subject?: string | undefined;
627
621
  readonly title: string;
628
622
  };
629
- readonly official: boolean;
630
623
  readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
631
- readonly references: readonly {
632
- readonly authors: string;
633
- readonly citation?: string | undefined;
634
- readonly details?: string | undefined;
635
- readonly publication?: string | undefined;
636
- readonly title: string;
637
- readonly url?: string | undefined;
638
- readonly year: number;
639
- }[];
640
624
  readonly sitemap: true;
625
+ readonly topicTitle: string;
641
626
  } | {
642
627
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
643
628
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
@@ -64,11 +64,6 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
64
64
  readonly routeCount: number;
65
65
  readonly routeDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
66
66
  readonly scope: {
67
- readonly content?: readonly {
68
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
69
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
70
- readonly family: "article" | "material" | "page" | "question";
71
- }[] | undefined;
72
67
  readonly families: readonly ("article" | "material" | "page" | "question")[];
73
68
  readonly snapshots: readonly ("program" | "quran" | "tryout")[];
74
69
  };
@@ -137,17 +132,31 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
137
132
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
138
133
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
139
134
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
140
- readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
135
+ readonly graph: {
136
+ readonly alignmentId: string;
137
+ readonly assetId: string;
138
+ readonly conceptId: string;
139
+ readonly learningObjectId: string;
140
+ readonly lensId: string;
141
+ };
142
+ readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
143
+ readonly order: number;
141
144
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
142
- readonly kind: "public-page";
145
+ readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
146
+ readonly kind: "subject-lesson";
143
147
  readonly metadata: {
144
148
  readonly dateModified?: string;
145
149
  readonly datePublished: string;
146
- readonly description: string;
150
+ readonly authors: readonly {
151
+ readonly name: string;
152
+ }[];
153
+ readonly description?: string | undefined;
154
+ readonly subject?: string | undefined;
147
155
  readonly title: string;
148
156
  };
157
+ readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
149
158
  readonly sitemap: true;
150
- readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
159
+ readonly topicTitle: string;
151
160
  } | {
152
161
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
153
162
  readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
@@ -191,31 +200,17 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
191
200
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
192
201
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
193
202
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
194
- readonly graph: {
195
- readonly alignmentId: string;
196
- readonly assetId: string;
197
- readonly conceptId: string;
198
- readonly learningObjectId: string;
199
- readonly lensId: string;
200
- };
201
- readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
202
- readonly order: number;
203
+ readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
203
204
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
204
- readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
205
- readonly kind: "subject-lesson";
205
+ readonly kind: "public-page";
206
206
  readonly metadata: {
207
207
  readonly dateModified?: string;
208
208
  readonly datePublished: string;
209
- readonly authors: readonly {
210
- readonly name: string;
211
- }[];
212
- readonly description?: string | undefined;
213
- readonly subject?: string | undefined;
209
+ readonly description: string;
214
210
  readonly title: string;
215
211
  };
216
- readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
217
212
  readonly sitemap: true;
218
- readonly topicTitle: string;
213
+ readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
219
214
  };
220
215
  readonly projectionHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
221
216
  } | {
@@ -289,11 +284,6 @@ export declare const verifyContentRuntimeExchange: (input: {
289
284
  readonly routeCount: number;
290
285
  readonly routeDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
291
286
  readonly scope: {
292
- readonly content?: readonly {
293
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
294
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
295
- readonly family: "article" | "material" | "page" | "question";
296
- }[] | undefined;
297
287
  readonly families: readonly ("article" | "material" | "page" | "question")[];
298
288
  readonly snapshots: readonly ("program" | "quran" | "tryout")[];
299
289
  };
@@ -362,17 +352,31 @@ export declare const verifyContentRuntimeExchange: (input: {
362
352
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
363
353
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
364
354
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
365
- readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
355
+ readonly graph: {
356
+ readonly alignmentId: string;
357
+ readonly assetId: string;
358
+ readonly conceptId: string;
359
+ readonly learningObjectId: string;
360
+ readonly lensId: string;
361
+ };
362
+ readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
363
+ readonly order: number;
366
364
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
367
- readonly kind: "public-page";
365
+ readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
366
+ readonly kind: "subject-lesson";
368
367
  readonly metadata: {
369
368
  readonly dateModified?: string;
370
369
  readonly datePublished: string;
371
- readonly description: string;
370
+ readonly authors: readonly {
371
+ readonly name: string;
372
+ }[];
373
+ readonly description?: string | undefined;
374
+ readonly subject?: string | undefined;
372
375
  readonly title: string;
373
376
  };
377
+ readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
374
378
  readonly sitemap: true;
375
- readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
379
+ readonly topicTitle: string;
376
380
  } | {
377
381
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
378
382
  readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
@@ -416,31 +420,17 @@ export declare const verifyContentRuntimeExchange: (input: {
416
420
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
417
421
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
418
422
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
419
- readonly graph: {
420
- readonly alignmentId: string;
421
- readonly assetId: string;
422
- readonly conceptId: string;
423
- readonly learningObjectId: string;
424
- readonly lensId: string;
425
- };
426
- readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
427
- readonly order: number;
423
+ readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
428
424
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
429
- readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
430
- readonly kind: "subject-lesson";
425
+ readonly kind: "public-page";
431
426
  readonly metadata: {
432
427
  readonly dateModified?: string;
433
428
  readonly datePublished: string;
434
- readonly authors: readonly {
435
- readonly name: string;
436
- }[];
437
- readonly description?: string | undefined;
438
- readonly subject?: string | undefined;
429
+ readonly description: string;
439
430
  readonly title: string;
440
431
  };
441
- readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
442
432
  readonly sitemap: true;
443
- readonly topicTitle: string;
433
+ readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
444
434
  };
445
435
  readonly projectionHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
446
436
  } | {