@nakafa/aksara-contracts 0.48.4 → 0.48.5

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 (50) hide show
  1. package/dist/content.d.ts +2 -2
  2. package/dist/content.js +2 -1
  3. package/dist/delivery.d.ts +3 -0
  4. package/dist/delivery.js +5 -0
  5. package/dist/math/base.d.ts +3 -0
  6. package/dist/math/base.js +2 -0
  7. package/dist/math/collision.js +2 -1
  8. package/dist/math/coordinate.d.ts +3 -3
  9. package/dist/math/coordinate.js +3 -2
  10. package/dist/math/extent.js +2 -2
  11. package/dist/math/intersection.d.ts +2 -1
  12. package/dist/math/intersection.js +1 -0
  13. package/dist/math/object.d.ts +24 -0
  14. package/dist/math/object.js +27 -0
  15. package/dist/math/plane.js +16 -24
  16. package/dist/math/precision.d.ts +2 -2
  17. package/dist/math/space.js +14 -22
  18. package/dist/projection/verify.d.ts +114 -114
  19. package/dist/projection/verify.js +9 -16
  20. package/dist/question/response.d.ts +20 -0
  21. package/dist/question/response.js +6 -3
  22. package/dist/quran/provenance.js +1 -1
  23. package/dist/quran/snapshot/row.d.ts +2 -0
  24. package/dist/quran/snapshot/row.js +3 -1
  25. package/dist/release/head.js +15 -33
  26. package/dist/release/items.js +14 -18
  27. package/dist/release/mismatch.d.ts +12 -0
  28. package/dist/release/mismatch.js +14 -0
  29. package/dist/release/result/digest.js +8 -17
  30. package/dist/release/rollback/digest.js +3 -10
  31. package/dist/release/route/verify.d.ts +1 -1
  32. package/dist/release/route/verify.js +8 -11
  33. package/dist/release/snapshot/evidence/requirement.d.ts +2 -1
  34. package/dist/release/snapshot/evidence/requirement.js +2 -1
  35. package/dist/release/snapshot/spec.d.ts +4 -1
  36. package/dist/release/snapshot/spec.js +6 -1
  37. package/dist/release/snapshot/verify.d.ts +52 -52
  38. package/dist/runtime/protected/spec.js +3 -2
  39. package/dist/runtime/spec.d.ts +23 -23
  40. package/dist/runtime/verify.d.ts +30 -30
  41. package/dist/transport/group.js +2 -5
  42. package/dist/transport/request.d.ts +4442 -4442
  43. package/dist/transport/response.d.ts +56 -56
  44. package/dist/transport/response.js +22 -105
  45. package/dist/transport/success.d.ts +12 -0
  46. package/dist/transport/success.js +13 -0
  47. package/dist/tryout/catalog.d.ts +2 -0
  48. package/dist/tryout/catalog.js +5 -1
  49. package/dist/tryout/hash/catalog.d.ts +23 -23
  50. package/package.json +1 -1
@@ -1,27 +1,24 @@
1
1
  import { Effect, MutableHashMap, Option, Schema, Stream } from "effect";
2
2
  import { routeIdentity } from "#contracts/content";
3
- import { PublicPathSchema, ReleaseIdSchema, Sha256HashSchema, } from "#contracts/ids";
3
+ import { PublicPathSchema } from "#contracts/ids";
4
+ import { ReleaseDigestMismatchFields } from "#contracts/release/mismatch";
4
5
  import { digestRoutes } from "#contracts/release/route/digest";
5
6
  import { ContentRouteItemSchema } from "#contracts/release/route/spec";
6
- const RouteIndexSchema = Schema.Finite.pipe(Schema.check(Schema.isInt()), Schema.check(Schema.isGreaterThanOrEqualTo(0)));
7
+ import { ReleaseCountSchema, } from "#contracts/release/spec";
7
8
  /** One streamed route failed strict wire decoding. */
8
- export class RouteDecodeError extends Schema.TaggedError()("RouteDecodeError", { routeOffset: RouteIndexSchema }) {
9
+ export class RouteDecodeError extends Schema.TaggedError()("RouteDecodeError", { routeOffset: ReleaseCountSchema }) {
9
10
  }
10
11
  /** One route belongs to another release or sequence position. */
11
- export class RouteIdentityError extends Schema.TaggedError()("RouteIdentityError", { routeOffset: RouteIndexSchema }) {
12
+ export class RouteIdentityError extends Schema.TaggedError()("RouteIdentityError", { routeOffset: ReleaseCountSchema }) {
12
13
  }
13
14
  /** Two changes in one release target the same locale-specific route. */
14
- export class RouteDuplicateError extends Schema.TaggedError()("RouteDuplicateError", { firstIndex: RouteIndexSchema, publicPath: PublicPathSchema }) {
15
+ export class RouteDuplicateError extends Schema.TaggedError()("RouteDuplicateError", { firstIndex: ReleaseCountSchema, publicPath: PublicPathSchema }) {
15
16
  }
16
17
  /** The streamed route count differs from its signed manifest. */
17
- export class RouteCountError extends Schema.TaggedError()("RouteCountError", { actualCount: RouteIndexSchema, expectedCount: RouteIndexSchema }) {
18
+ export class RouteCountError extends Schema.TaggedError()("RouteCountError", { actualCount: ReleaseCountSchema, expectedCount: ReleaseCountSchema }) {
18
19
  }
19
20
  /** The streamed route digest differs from its signed manifest. */
20
- export class RouteDigestError extends Schema.TaggedError()("RouteDigestError", {
21
- actualDigest: Sha256HashSchema,
22
- expectedDigest: Sha256HashSchema,
23
- releaseId: ReleaseIdSchema,
24
- }) {
21
+ export class RouteDigestError extends Schema.TaggedError()("RouteDigestError", { ...ReleaseDigestMismatchFields }) {
25
22
  }
26
23
  const VerifiedContentRoutesSchema = Schema.Struct({
27
24
  count: Schema.Finite,
@@ -1,6 +1,7 @@
1
1
  import { Effect, Schema, type Stream } from "effect";
2
2
  import type { Sha256Hash } from "#contracts/ids";
3
3
  import type { ContentSnapshotRow } from "#contracts/release/snapshot/data";
4
+ import { type ContentSnapshotKind } from "#contracts/release/snapshot/scope";
4
5
  declare const SnapshotEvidenceError_base: Schema.Class<SnapshotEvidenceError, Schema.TaggedStruct<"SnapshotEvidenceError", {
5
6
  readonly actual: Schema.String;
6
7
  readonly expected: Schema.String;
@@ -16,7 +17,7 @@ export type SnapshotRowSource<E, R> = Stream.Stream<ContentSnapshotRow, E, R>;
16
17
  export declare function requireSnapshotEvidence(input: {
17
18
  readonly actual: number | Sha256Hash;
18
19
  readonly expected: number | Sha256Hash;
19
- readonly family: "program" | "quran" | "tryout";
20
+ readonly family: ContentSnapshotKind;
20
21
  readonly field: string;
21
22
  }): Effect.Effect<void, never, never> | Effect.Effect<never, SnapshotEvidenceError, never>;
22
23
  export {};
@@ -1,9 +1,10 @@
1
1
  import { Effect, Schema } from "effect";
2
+ import { ContentSnapshotKindSchema, } from "#contracts/release/snapshot/scope";
2
3
  /** Signed snapshot evidence differs from its authenticated row stream. */
3
4
  export class SnapshotEvidenceError extends Schema.TaggedError()("SnapshotEvidenceError", {
4
5
  actual: Schema.String,
5
6
  expected: Schema.String,
6
- family: Schema.Literals(["program", "quran", "tryout"]),
7
+ family: ContentSnapshotKindSchema,
7
8
  field: Schema.String,
8
9
  }) {
9
10
  }
@@ -4,6 +4,8 @@ import { type Sha256Hash } from "#contracts/ids";
4
4
  import { type PublicationScope } from "#contracts/release/snapshot/scope";
5
5
  /** Canonical digest for a release that stages no structured snapshot rows. */
6
6
  export declare const EMPTY_SNAPSHOT_ROW_DIGEST: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
7
+ declare const ContentSnapshotModeSchema: Schema.Literals<readonly ["inherit", "replace", "restore"]>;
8
+ type ContentSnapshotMode = typeof ContentSnapshotModeSchema.Type;
7
9
  /** One family's immutable snapshot transition authenticated by a release. */
8
10
  export declare const ContentSnapshotStateSchema: Schema.Struct<{
9
11
  readonly baseSnapshotId: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">>;
@@ -43,7 +45,7 @@ export declare function hasScopedSnapshotTransitions(scope: PublicationScope, sn
43
45
  /** Checks inheritance, replacement, and forward restore row semantics. */
44
46
  export declare function hasCoherentSnapshotState(state: {
45
47
  readonly baseSnapshotId: Sha256Hash | null;
46
- readonly mode: "inherit" | "replace" | "restore";
48
+ readonly mode: ContentSnapshotMode;
47
49
  readonly resultSnapshotId: Sha256Hash | null;
48
50
  readonly rowCount: number;
49
51
  readonly rowDigest: Sha256Hash;
@@ -191,3 +193,4 @@ export declare function canonicalizeContentSnapshotSet(snapshots: ContentSnapsho
191
193
  };
192
194
  /** Compares two fixed snapshot sets through their stable signed form. */
193
195
  export declare function hasSameContentSnapshots(left: ContentSnapshotSet, right: ContentSnapshotSet): boolean;
196
+ export {};
@@ -6,10 +6,15 @@ import { encodeJsonText } from "#contracts/text/json";
6
6
  /** Canonical digest for a release that stages no structured snapshot rows. */
7
7
  export const EMPTY_SNAPSHOT_ROW_DIGEST = Sha256HashSchema.make("sha256:eb27aa7f59e41b14a3f76d951c5a50cb954a19f3f6e6c44bc21a733f606e888f");
8
8
  const RowCountSchema = Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0)));
9
+ const ContentSnapshotModeSchema = Schema.Literals([
10
+ "inherit",
11
+ "replace",
12
+ "restore",
13
+ ]);
9
14
  /** One family's immutable snapshot transition authenticated by a release. */
10
15
  export const ContentSnapshotStateSchema = Schema.Struct({
11
16
  baseSnapshotId: Schema.NullOr(Sha256HashSchema),
12
- mode: Schema.Literals(["inherit", "replace", "restore"]),
17
+ mode: ContentSnapshotModeSchema,
13
18
  resultSnapshotId: Schema.NullOr(Sha256HashSchema),
14
19
  rowCount: RowCountSchema,
15
20
  rowDigest: Sha256HashSchema,
@@ -470,15 +470,21 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
470
470
  readonly title: string;
471
471
  readonly countryKey: string;
472
472
  readonly examKey: string;
473
- readonly kind: "track";
473
+ readonly kind: "section";
474
+ readonly marks?: {
475
+ readonly blank: number;
476
+ readonly correct: number;
477
+ readonly wrong: number;
478
+ };
474
479
  readonly order: number;
475
- readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
480
+ readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
476
481
  readonly questionCount: number;
477
- readonly sectionCount: number;
478
- readonly setCount: number;
482
+ readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
483
+ readonly sectionKey: string;
484
+ readonly setKey: string;
485
+ readonly timeLimitSeconds: number;
479
486
  readonly trackKey: string;
480
- readonly trackKind: "institution" | "subject" | "year";
481
- readonly visibleSectionCount: number;
487
+ readonly visibility: "internal-entry" | "visible";
482
488
  } | {
483
489
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
484
490
  readonly description?: string | undefined;
@@ -517,21 +523,15 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
517
523
  readonly title: string;
518
524
  readonly countryKey: string;
519
525
  readonly examKey: string;
520
- readonly kind: "section";
521
- readonly marks?: {
522
- readonly blank: number;
523
- readonly correct: number;
524
- readonly wrong: number;
525
- };
526
+ readonly kind: "track";
526
527
  readonly order: number;
527
- readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
528
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
528
529
  readonly questionCount: number;
529
- readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
530
- readonly sectionKey: string;
531
- readonly setKey: string;
532
- readonly timeLimitSeconds: number;
530
+ readonly sectionCount: number;
531
+ readonly setCount: number;
533
532
  readonly trackKey: string;
534
- readonly visibility: "internal-entry" | "visible";
533
+ readonly trackKind: "institution" | "subject" | "year";
534
+ readonly visibleSectionCount: number;
535
535
  } | {
536
536
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
537
537
  readonly description?: string | undefined;
@@ -544,11 +544,12 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
544
544
  };
545
545
  readonly sourceRevision: string;
546
546
  readonly title: string;
547
- readonly countryCode: string;
548
547
  readonly countryKey: string;
549
- readonly kind: "country";
548
+ readonly examKey: string;
549
+ readonly kind: "exam";
550
550
  readonly order: number;
551
551
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
552
+ readonly scoringStrategy: "irt" | "penalized" | "raw";
552
553
  } | {
553
554
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
554
555
  readonly description?: string | undefined;
@@ -561,12 +562,11 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
561
562
  };
562
563
  readonly sourceRevision: string;
563
564
  readonly title: string;
565
+ readonly countryCode: string;
564
566
  readonly countryKey: string;
565
- readonly examKey: string;
566
- readonly kind: "exam";
567
+ readonly kind: "country";
567
568
  readonly order: number;
568
569
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
569
- readonly scoringStrategy: "irt" | "penalized" | "raw";
570
570
  };
571
571
  readonly rowHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
572
572
  };
@@ -599,35 +599,6 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
599
599
  readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
600
600
  readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
601
601
  readonly response: {
602
- readonly categories: readonly {
603
- readonly categoryKey: string;
604
- readonly label: string;
605
- readonly order: number;
606
- }[];
607
- readonly kind: "category";
608
- readonly statements: readonly {
609
- readonly correctCategoryKey: string;
610
- readonly label: string;
611
- readonly order: number;
612
- readonly statementKey: string;
613
- }[];
614
- } | {
615
- readonly kind: "multiple-choice";
616
- readonly options: readonly {
617
- readonly isCorrect: boolean;
618
- readonly label: string;
619
- readonly optionKey: string;
620
- readonly order: number;
621
- }[];
622
- } | {
623
- readonly kind: "single-choice";
624
- readonly options: readonly {
625
- readonly isCorrect: boolean;
626
- readonly label: string;
627
- readonly optionKey: string;
628
- readonly order: number;
629
- }[];
630
- } | {
631
602
  readonly criteria: readonly {
632
603
  readonly criterionKey: string;
633
604
  readonly finalAnswer?: {
@@ -662,6 +633,35 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
662
633
  }[];
663
634
  }[];
664
635
  readonly kind: "rubric";
636
+ } | {
637
+ readonly categories: readonly {
638
+ readonly categoryKey: string;
639
+ readonly label: string;
640
+ readonly order: number;
641
+ }[];
642
+ readonly kind: "category";
643
+ readonly statements: readonly {
644
+ readonly correctCategoryKey: string;
645
+ readonly label: string;
646
+ readonly order: number;
647
+ readonly statementKey: string;
648
+ }[];
649
+ } | {
650
+ readonly kind: "multiple-choice";
651
+ readonly options: readonly {
652
+ readonly isCorrect: boolean;
653
+ readonly label: string;
654
+ readonly optionKey: string;
655
+ readonly order: number;
656
+ }[];
657
+ } | {
658
+ readonly kind: "single-choice";
659
+ readonly options: readonly {
660
+ readonly isCorrect: boolean;
661
+ readonly label: string;
662
+ readonly optionKey: string;
663
+ readonly order: number;
664
+ }[];
665
665
  } | {
666
666
  readonly key: {
667
667
  readonly acceptsFractions: boolean;
@@ -1,6 +1,7 @@
1
1
  import { Array as Arr, Effect, HashSet, Schema } from "effect";
2
2
  import { SignedContentArtifactSchema, } from "#contracts/content";
3
3
  import { decodeContract } from "#contracts/decode";
4
+ import { ProtectedContentDeliverySchema, } from "#contracts/delivery";
4
5
  import { ContentKeySchema, CorpusSourcePathSchema, Sha256HashSchema, } from "#contracts/ids";
5
6
  import { QuestionKeySchema } from "#contracts/question/identity";
6
7
  import { RendererManifestEnvelopeSchema } from "#contracts/renderer/contract";
@@ -26,7 +27,7 @@ function hasProtectedBodyKind(input) {
26
27
  export const ProtectedContentRuntimeSelectorSchema = Schema.Struct({
27
28
  artifactHash: Sha256HashSchema,
28
29
  contentKey: ContentKeySchema,
29
- delivery: Schema.Literals(["authenticated", "entitled"]),
30
+ delivery: ProtectedContentDeliverySchema,
30
31
  }).pipe(Schema.check(Schema.makeFilter(hasProtectedBodyKind, {
31
32
  message: "Expected authenticated prompts and entitled answer bodies.",
32
33
  })));
@@ -47,7 +48,7 @@ export const ProtectedContentRuntimeRequestSchema = Schema.Struct({
47
48
  /** One selected artifact inside a protected batch response. */
48
49
  export const ProtectedContentRuntimeItemSchema = Schema.Struct({
49
50
  artifact: SignedContentArtifactSchema,
50
- delivery: Schema.Literals(["authenticated", "entitled"]),
51
+ delivery: ProtectedContentDeliverySchema,
51
52
  sourcePath: CorpusSourcePathSchema,
52
53
  });
53
54
  /** Checks one protected response never repeats an immutable artifact. */
@@ -498,32 +498,17 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
498
498
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
499
499
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
500
500
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
501
- readonly graph: {
502
- readonly alignmentId: string;
503
- readonly assetId: string;
504
- readonly conceptId: string;
505
- readonly learningObjectId: string;
506
- readonly lensId: string;
507
- };
508
- readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
509
- readonly order: number;
501
+ readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
510
502
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
511
- readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
512
- readonly kind: "subject-lesson";
503
+ readonly kind: "public-page";
513
504
  readonly metadata: {
514
505
  readonly dateModified?: string;
515
506
  readonly datePublished: string;
516
- readonly authors: readonly {
517
- readonly name: string;
518
- }[];
519
- readonly description?: string | undefined;
520
- readonly searchTitle?: string;
521
- readonly subject?: string | undefined;
507
+ readonly description: string;
522
508
  readonly title: string;
523
509
  };
524
- readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
525
510
  readonly sitemap: true;
526
- readonly topicTitle: string;
511
+ readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
527
512
  } | {
528
513
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
529
514
  readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
@@ -567,17 +552,32 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
567
552
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
568
553
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
569
554
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
570
- readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
555
+ readonly graph: {
556
+ readonly alignmentId: string;
557
+ readonly assetId: string;
558
+ readonly conceptId: string;
559
+ readonly learningObjectId: string;
560
+ readonly lensId: string;
561
+ };
562
+ readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
563
+ readonly order: number;
571
564
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
572
- readonly kind: "public-page";
565
+ readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
566
+ readonly kind: "subject-lesson";
573
567
  readonly metadata: {
574
568
  readonly dateModified?: string;
575
569
  readonly datePublished: string;
576
- readonly description: string;
570
+ readonly authors: readonly {
571
+ readonly name: string;
572
+ }[];
573
+ readonly description?: string | undefined;
574
+ readonly searchTitle?: string;
575
+ readonly subject?: string | undefined;
577
576
  readonly title: string;
578
577
  };
578
+ readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
579
579
  readonly sitemap: true;
580
- readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
580
+ readonly topicTitle: string;
581
581
  };
582
582
  readonly projectionHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
583
583
  } | {
@@ -108,21 +108,6 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
108
108
  readonly activeReleaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
109
109
  readonly delivery: "public";
110
110
  readonly projection: {
111
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
112
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
113
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
114
- readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
115
- readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
116
- readonly kind: "public-page";
117
- readonly metadata: {
118
- readonly dateModified?: string;
119
- readonly datePublished: string;
120
- readonly description: string;
121
- readonly title: string;
122
- };
123
- readonly sitemap: true;
124
- readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
125
- } | {
126
111
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
127
112
  readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
128
113
  readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
@@ -191,6 +176,21 @@ export declare const verifyContentRuntimeEvidenceExchange: (input: {
191
176
  readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
192
177
  readonly sitemap: true;
193
178
  readonly topicTitle: string;
179
+ } | {
180
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
181
+ readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
182
+ readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
183
+ readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
184
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
185
+ readonly kind: "public-page";
186
+ readonly metadata: {
187
+ readonly dateModified?: string;
188
+ readonly datePublished: string;
189
+ readonly description: string;
190
+ readonly title: string;
191
+ };
192
+ readonly sitemap: true;
193
+ readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
194
194
  };
195
195
  readonly projectionHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
196
196
  } | {
@@ -308,21 +308,6 @@ export declare const verifyContentRuntimeExchange: (input: {
308
308
  readonly activeReleaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
309
309
  readonly delivery: "public";
310
310
  readonly projection: {
311
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
312
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
313
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
314
- readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
315
- readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
316
- readonly kind: "public-page";
317
- readonly metadata: {
318
- readonly dateModified?: string;
319
- readonly datePublished: string;
320
- readonly description: string;
321
- readonly title: string;
322
- };
323
- readonly sitemap: true;
324
- readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
325
- } | {
326
311
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
327
312
  readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
328
313
  readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
@@ -391,6 +376,21 @@ export declare const verifyContentRuntimeExchange: (input: {
391
376
  readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
392
377
  readonly sitemap: true;
393
378
  readonly topicTitle: string;
379
+ } | {
380
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
381
+ readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
382
+ readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
383
+ readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
384
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
385
+ readonly kind: "public-page";
386
+ readonly metadata: {
387
+ readonly dateModified?: string;
388
+ readonly datePublished: string;
389
+ readonly description: string;
390
+ readonly title: string;
391
+ };
392
+ readonly sitemap: true;
393
+ readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
394
394
  };
395
395
  readonly projectionHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
396
396
  } | {
@@ -4,6 +4,7 @@ import { StageArtifactBatchRequestSchema, StageItemBatchRequestSchema, StageProj
4
4
  import { MAX_STAGE_GROUP_COUNT } from "#contracts/transport/limits";
5
5
  import { StageTryoutRuntimeBundleRequestSchema } from "#contracts/transport/runtime";
6
6
  import { StageSnapshotBatchRequestSchema, StageSnapshotRequestSchema, } from "#contracts/transport/snapshot";
7
+ import { successSchema } from "#contracts/transport/success";
7
8
  /** One existing safe transaction carried inside an authenticated group. */
8
9
  export const StageOperationSchema = Schema.Union([
9
10
  StageArtifactBatchRequestSchema,
@@ -39,8 +40,4 @@ export const StageGroupReceiptSchema = Schema.Struct({
39
40
  requestCount: Schema.Finite.pipe(Schema.check(Schema.isInt()), Schema.check(Schema.isBetween({ maximum: MAX_STAGE_GROUP_COUNT, minimum: 1 }))),
40
41
  });
41
42
  /** Returns bounded completion evidence for one authenticated group. */
42
- export const StageGroupSuccessSchema = Schema.Struct({
43
- ok: Schema.Literal(true),
44
- operation: Schema.Literal("stageGroup"),
45
- value: StageGroupReceiptSchema,
46
- });
43
+ export const StageGroupSuccessSchema = successSchema("stageGroup", StageGroupReceiptSchema);