@nakafa/aksara-contracts 0.48.7 → 0.48.8

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.
@@ -207,81 +207,6 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
207
207
  readonly family: "quran";
208
208
  readonly record: {
209
209
  readonly payload: {
210
- readonly firstQuranNumber: number;
211
- readonly firstVerse: number;
212
- readonly kind: "quran-chunk";
213
- readonly lastVerse: number;
214
- readonly surahNumber: number;
215
- readonly verses: readonly [{
216
- readonly meta: {
217
- readonly hizbQuarter: number;
218
- readonly juz: number;
219
- readonly manzil: number;
220
- readonly page: number;
221
- readonly ruku: number;
222
- readonly sajda: "obligatory" | "recommended" | null;
223
- };
224
- readonly number: {
225
- readonly inQuran: number;
226
- readonly inSurah: number;
227
- };
228
- readonly tafsir: readonly {
229
- readonly appLocale: "id";
230
- readonly footnotes: string | null;
231
- readonly text: string;
232
- }[];
233
- readonly text: {
234
- readonly arabic: string;
235
- };
236
- readonly translations: readonly [{
237
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
238
- readonly value: {
239
- readonly footnotes: string;
240
- readonly text: string;
241
- };
242
- }, ...{
243
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
244
- readonly value: {
245
- readonly footnotes: string;
246
- readonly text: string;
247
- };
248
- }[]];
249
- }, ...{
250
- readonly meta: {
251
- readonly hizbQuarter: number;
252
- readonly juz: number;
253
- readonly manzil: number;
254
- readonly page: number;
255
- readonly ruku: number;
256
- readonly sajda: "obligatory" | "recommended" | null;
257
- };
258
- readonly number: {
259
- readonly inQuran: number;
260
- readonly inSurah: number;
261
- };
262
- readonly tafsir: readonly {
263
- readonly appLocale: "id";
264
- readonly footnotes: string | null;
265
- readonly text: string;
266
- }[];
267
- readonly text: {
268
- readonly arabic: string;
269
- };
270
- readonly translations: readonly [{
271
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
272
- readonly value: {
273
- readonly footnotes: string;
274
- readonly text: string;
275
- };
276
- }, ...{
277
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
278
- readonly value: {
279
- readonly footnotes: string;
280
- readonly text: string;
281
- };
282
- }[]];
283
- }[]];
284
- } | {
285
210
  readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
286
211
  readonly kind: "quran-attribution";
287
212
  readonly sources: readonly [{
@@ -418,6 +343,81 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
418
343
  readonly notice: string;
419
344
  readonly sourceId: "mokhtasar-german";
420
345
  })[]];
346
+ } | {
347
+ readonly firstQuranNumber: number;
348
+ readonly firstVerse: number;
349
+ readonly kind: "quran-chunk";
350
+ readonly lastVerse: number;
351
+ readonly surahNumber: number;
352
+ readonly verses: readonly [{
353
+ readonly meta: {
354
+ readonly hizbQuarter: number;
355
+ readonly juz: number;
356
+ readonly manzil: number;
357
+ readonly page: number;
358
+ readonly ruku: number;
359
+ readonly sajda: "obligatory" | "recommended" | null;
360
+ };
361
+ readonly number: {
362
+ readonly inQuran: number;
363
+ readonly inSurah: number;
364
+ };
365
+ readonly tafsir: readonly {
366
+ readonly appLocale: "id";
367
+ readonly footnotes: string | null;
368
+ readonly text: string;
369
+ }[];
370
+ readonly text: {
371
+ readonly arabic: string;
372
+ };
373
+ readonly translations: readonly [{
374
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
375
+ readonly value: {
376
+ readonly footnotes: string;
377
+ readonly text: string;
378
+ };
379
+ }, ...{
380
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
381
+ readonly value: {
382
+ readonly footnotes: string;
383
+ readonly text: string;
384
+ };
385
+ }[]];
386
+ }, ...{
387
+ readonly meta: {
388
+ readonly hizbQuarter: number;
389
+ readonly juz: number;
390
+ readonly manzil: number;
391
+ readonly page: number;
392
+ readonly ruku: number;
393
+ readonly sajda: "obligatory" | "recommended" | null;
394
+ };
395
+ readonly number: {
396
+ readonly inQuran: number;
397
+ readonly inSurah: number;
398
+ };
399
+ readonly tafsir: readonly {
400
+ readonly appLocale: "id";
401
+ readonly footnotes: string | null;
402
+ readonly text: string;
403
+ }[];
404
+ readonly text: {
405
+ readonly arabic: string;
406
+ };
407
+ readonly translations: readonly [{
408
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
409
+ readonly value: {
410
+ readonly footnotes: string;
411
+ readonly text: string;
412
+ };
413
+ }, ...{
414
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
415
+ readonly value: {
416
+ readonly footnotes: string;
417
+ readonly text: string;
418
+ };
419
+ }[]];
420
+ }[]];
421
421
  } | {
422
422
  readonly name: {
423
423
  readonly arabic: string;
@@ -468,11 +468,23 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
468
468
  };
469
469
  readonly sourceRevision: string;
470
470
  readonly title: string;
471
- readonly countryCode: string;
472
471
  readonly countryKey: string;
473
- readonly kind: "country";
472
+ readonly examKey: string;
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;
481
+ readonly questionCount: number;
482
+ readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
483
+ readonly sectionKey: string;
484
+ readonly setKey: string;
485
+ readonly timeLimitSeconds: number;
486
+ readonly trackKey: string;
487
+ readonly visibility: "internal-entry" | "visible";
476
488
  } | {
477
489
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
478
490
  readonly description?: string | undefined;
@@ -487,10 +499,16 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
487
499
  readonly title: string;
488
500
  readonly countryKey: string;
489
501
  readonly examKey: string;
490
- readonly kind: "exam";
502
+ readonly internalEntrySectionKey?: string | undefined;
503
+ readonly kind: "set";
491
504
  readonly order: number;
492
505
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
506
+ readonly questionCount: number;
493
507
  readonly scoringStrategy: "irt" | "penalized" | "raw";
508
+ readonly sectionCount: number;
509
+ readonly setKey: string;
510
+ readonly trackKey: string;
511
+ readonly visibleSectionCount: number;
494
512
  } | {
495
513
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
496
514
  readonly description?: string | undefined;
@@ -528,16 +546,10 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
528
546
  readonly title: string;
529
547
  readonly countryKey: string;
530
548
  readonly examKey: string;
531
- readonly internalEntrySectionKey?: string | undefined;
532
- readonly kind: "set";
549
+ readonly kind: "exam";
533
550
  readonly order: number;
534
551
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
535
- readonly questionCount: number;
536
552
  readonly scoringStrategy: "irt" | "penalized" | "raw";
537
- readonly sectionCount: number;
538
- readonly setKey: string;
539
- readonly trackKey: string;
540
- readonly visibleSectionCount: number;
541
553
  } | {
542
554
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
543
555
  readonly description?: string | undefined;
@@ -550,23 +562,11 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
550
562
  };
551
563
  readonly sourceRevision: string;
552
564
  readonly title: string;
565
+ readonly countryCode: string;
553
566
  readonly countryKey: string;
554
- readonly examKey: string;
555
- readonly kind: "section";
556
- readonly marks?: {
557
- readonly blank: number;
558
- readonly correct: number;
559
- readonly wrong: number;
560
- };
567
+ readonly kind: "country";
561
568
  readonly order: number;
562
- readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
563
- readonly questionCount: number;
564
- readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
565
- readonly sectionKey: string;
566
- readonly setKey: string;
567
- readonly timeLimitSeconds: number;
568
- readonly trackKey: string;
569
- readonly visibility: "internal-entry" | "visible";
569
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
570
570
  };
571
571
  readonly rowHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
572
572
  };
@@ -599,12 +599,17 @@ 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 kind: "single-choice";
603
- readonly options: readonly {
604
- readonly isCorrect: boolean;
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;
605
610
  readonly label: string;
606
- readonly optionKey: string;
607
611
  readonly order: number;
612
+ readonly statementKey: string;
608
613
  }[];
609
614
  } | {
610
615
  readonly kind: "multiple-choice";
@@ -615,17 +620,12 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
615
620
  readonly order: number;
616
621
  }[];
617
622
  } | {
618
- readonly categories: readonly {
619
- readonly categoryKey: string;
620
- readonly label: string;
621
- readonly order: number;
622
- }[];
623
- readonly kind: "category";
624
- readonly statements: readonly {
625
- readonly correctCategoryKey: string;
623
+ readonly kind: "single-choice";
624
+ readonly options: readonly {
625
+ readonly isCorrect: boolean;
626
626
  readonly label: string;
627
+ readonly optionKey: string;
627
628
  readonly order: number;
628
- readonly statementKey: string;
629
629
  }[];
630
630
  } | {
631
631
  readonly criteria: readonly {
@@ -2,8 +2,6 @@ import { Schema } from "effect";
2
2
  import { type AppLocale } from "#contracts/locale";
3
3
  /** Semantic wire identity of the current localized content release. */
4
4
  export declare const CONTENT_RELEASE_FORMAT = "localized-content-release";
5
- /** Nonnegative release inventory count authenticated by one manifest. */
6
- export declare const ReleaseCountSchema: Schema.Finite;
7
5
  /** One immutable artifact selected for a locale-specific content head. */
8
6
  export declare const ContentUpsertSchema: Schema.Struct<{
9
7
  readonly artifactHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
@@ -263,25 +261,10 @@ export declare const RollbackSignedContentReleaseSchema: Schema.refine<RollbackS
263
261
  /** Pre-activation evidence proving the fully staged release is coherent. */
264
262
  export declare const ReleaseVerificationEvidenceSchema: Schema.Struct<{
265
263
  readonly activeAppLocales: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>;
266
- readonly baseActiveAppLocales: Schema.NullOr<Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>>;
267
- readonly baseManifestHash: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">>;
268
- readonly baseReleaseId: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraReleaseId">>;
269
- readonly baseResultCount: Schema.Finite;
270
- readonly baseResultDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
271
- readonly deleteHeads: Schema.Finite;
272
- readonly itemCount: Schema.Finite;
273
- readonly itemsDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
274
264
  readonly manifestHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
275
- readonly projectionCount: Schema.Finite;
276
- readonly projectionDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
277
265
  readonly releaseId: Schema.brand<Schema.String, "@NakafaAI/AksaraReleaseId">;
278
- readonly rendererManifestHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
279
266
  readonly resultCount: Schema.Finite;
280
267
  readonly resultDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
281
- readonly rollbackCount: Schema.Finite;
282
- readonly rollbackDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
283
- readonly routeCount: Schema.Finite;
284
- readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
285
268
  readonly snapshots: Schema.Struct<{
286
269
  readonly program: Schema.Struct<{
287
270
  readonly baseSnapshotId: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">>;
@@ -305,6 +288,21 @@ export declare const ReleaseVerificationEvidenceSchema: Schema.Struct<{
305
288
  readonly rowDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
306
289
  }>;
307
290
  }>;
291
+ readonly baseActiveAppLocales: Schema.NullOr<Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>>;
292
+ readonly baseManifestHash: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">>;
293
+ readonly baseReleaseId: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraReleaseId">>;
294
+ readonly baseResultCount: Schema.Finite;
295
+ readonly baseResultDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
296
+ readonly deleteHeads: Schema.Finite;
297
+ readonly itemCount: Schema.Finite;
298
+ readonly itemsDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
299
+ readonly projectionCount: Schema.Finite;
300
+ readonly projectionDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
301
+ readonly rendererManifestHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
302
+ readonly rollbackCount: Schema.Finite;
303
+ readonly rollbackDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
304
+ readonly routeCount: Schema.Finite;
305
+ readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
308
306
  readonly stagedArtifacts: Schema.Finite;
309
307
  readonly stagedRoutes: Schema.Finite;
310
308
  readonly stagedSnapshotRows: Schema.Finite;
@@ -321,25 +319,10 @@ export declare const ReleaseVerificationPendingSchema: Schema.Struct<{
321
319
  export declare const ReleaseVerificationCompleteSchema: Schema.Struct<{
322
320
  readonly evidence: Schema.Struct<{
323
321
  readonly activeAppLocales: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>;
324
- readonly baseActiveAppLocales: Schema.NullOr<Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>>;
325
- readonly baseManifestHash: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">>;
326
- readonly baseReleaseId: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraReleaseId">>;
327
- readonly baseResultCount: Schema.Finite;
328
- readonly baseResultDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
329
- readonly deleteHeads: Schema.Finite;
330
- readonly itemCount: Schema.Finite;
331
- readonly itemsDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
332
322
  readonly manifestHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
333
- readonly projectionCount: Schema.Finite;
334
- readonly projectionDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
335
323
  readonly releaseId: Schema.brand<Schema.String, "@NakafaAI/AksaraReleaseId">;
336
- readonly rendererManifestHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
337
324
  readonly resultCount: Schema.Finite;
338
325
  readonly resultDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
339
- readonly rollbackCount: Schema.Finite;
340
- readonly rollbackDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
341
- readonly routeCount: Schema.Finite;
342
- readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
343
326
  readonly snapshots: Schema.Struct<{
344
327
  readonly program: Schema.Struct<{
345
328
  readonly baseSnapshotId: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">>;
@@ -363,6 +346,21 @@ export declare const ReleaseVerificationCompleteSchema: Schema.Struct<{
363
346
  readonly rowDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
364
347
  }>;
365
348
  }>;
349
+ readonly baseActiveAppLocales: Schema.NullOr<Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>>;
350
+ readonly baseManifestHash: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">>;
351
+ readonly baseReleaseId: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraReleaseId">>;
352
+ readonly baseResultCount: Schema.Finite;
353
+ readonly baseResultDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
354
+ readonly deleteHeads: Schema.Finite;
355
+ readonly itemCount: Schema.Finite;
356
+ readonly itemsDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
357
+ readonly projectionCount: Schema.Finite;
358
+ readonly projectionDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
359
+ readonly rendererManifestHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
360
+ readonly rollbackCount: Schema.Finite;
361
+ readonly rollbackDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
362
+ readonly routeCount: Schema.Finite;
363
+ readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
366
364
  readonly stagedArtifacts: Schema.Finite;
367
365
  readonly stagedRoutes: Schema.Finite;
368
366
  readonly stagedSnapshotRows: Schema.Finite;
@@ -378,25 +376,10 @@ export declare const ReleaseVerificationStatusSchema: Schema.Union<readonly [Sch
378
376
  }>, Schema.Struct<{
379
377
  readonly evidence: Schema.Struct<{
380
378
  readonly activeAppLocales: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>;
381
- readonly baseActiveAppLocales: Schema.NullOr<Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>>;
382
- readonly baseManifestHash: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">>;
383
- readonly baseReleaseId: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraReleaseId">>;
384
- readonly baseResultCount: Schema.Finite;
385
- readonly baseResultDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
386
- readonly deleteHeads: Schema.Finite;
387
- readonly itemCount: Schema.Finite;
388
- readonly itemsDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
389
379
  readonly manifestHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
390
- readonly projectionCount: Schema.Finite;
391
- readonly projectionDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
392
380
  readonly releaseId: Schema.brand<Schema.String, "@NakafaAI/AksaraReleaseId">;
393
- readonly rendererManifestHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
394
381
  readonly resultCount: Schema.Finite;
395
382
  readonly resultDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
396
- readonly rollbackCount: Schema.Finite;
397
- readonly rollbackDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
398
- readonly routeCount: Schema.Finite;
399
- readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
400
383
  readonly snapshots: Schema.Struct<{
401
384
  readonly program: Schema.Struct<{
402
385
  readonly baseSnapshotId: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">>;
@@ -420,6 +403,21 @@ export declare const ReleaseVerificationStatusSchema: Schema.Union<readonly [Sch
420
403
  readonly rowDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
421
404
  }>;
422
405
  }>;
406
+ readonly baseActiveAppLocales: Schema.NullOr<Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>>;
407
+ readonly baseManifestHash: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">>;
408
+ readonly baseReleaseId: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraReleaseId">>;
409
+ readonly baseResultCount: Schema.Finite;
410
+ readonly baseResultDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
411
+ readonly deleteHeads: Schema.Finite;
412
+ readonly itemCount: Schema.Finite;
413
+ readonly itemsDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
414
+ readonly projectionCount: Schema.Finite;
415
+ readonly projectionDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
416
+ readonly rendererManifestHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
417
+ readonly rollbackCount: Schema.Finite;
418
+ readonly rollbackDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
419
+ readonly routeCount: Schema.Finite;
420
+ readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
423
421
  readonly stagedArtifacts: Schema.Finite;
424
422
  readonly stagedRoutes: Schema.Finite;
425
423
  readonly stagedSnapshotRows: Schema.Finite;
@@ -430,15 +428,11 @@ export declare const ReleaseVerificationStatusSchema: Schema.Union<readonly [Sch
430
428
  export type ReleaseVerificationStatus = typeof ReleaseVerificationStatusSchema.Type;
431
429
  /** Delta evidence returned after a release is staged and activated. */
432
430
  export declare const PublicationReceiptSchema: Schema.Struct<{
433
- readonly activatedHeads: Schema.Finite;
434
431
  readonly activeAppLocales: Schema.NonEmptyArray<Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">>;
435
- readonly deletedHeads: Schema.Finite;
436
432
  readonly manifestHash: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
437
- readonly projectionDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
438
433
  readonly releaseId: Schema.brand<Schema.String, "@NakafaAI/AksaraReleaseId">;
439
434
  readonly resultCount: Schema.Finite;
440
435
  readonly resultDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
441
- readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
442
436
  readonly snapshots: Schema.Struct<{
443
437
  readonly program: Schema.Struct<{
444
438
  readonly baseSnapshotId: Schema.NullOr<Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">>;
@@ -462,6 +456,10 @@ export declare const PublicationReceiptSchema: Schema.Struct<{
462
456
  readonly rowDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
463
457
  }>;
464
458
  }>;
459
+ readonly activatedHeads: Schema.Finite;
460
+ readonly deletedHeads: Schema.Finite;
461
+ readonly projectionDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
462
+ readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
465
463
  readonly stagedArtifacts: Schema.Finite;
466
464
  readonly stagedItems: Schema.Finite;
467
465
  readonly stagedProjections: Schema.Finite;
@@ -3,6 +3,8 @@ import { ContentFamilySchema } from "#contracts/content";
3
3
  import { ContentDeliveryClassSchema } from "#contracts/delivery";
4
4
  import { ContentKeySchema, CorpusSourcePathSchema, Ed25519SignatureSchema, ReleaseIdSchema, Sha256HashSchema, SigningKeyIdSchema, } from "#contracts/ids";
5
5
  import { ActiveAppLocaleListSchema, ArtifactLocaleSchema, } from "#contracts/locale";
6
+ import { ReleaseCountSchema } from "#contracts/release/count";
7
+ import { ActiveCatalogIdentitySchema } from "#contracts/release/identity";
6
8
  import { ReleaseOriginSchema, RollbackReleaseOriginSchema, } from "#contracts/release/origin";
7
9
  import { EMPTY_RESULT_CATALOG_DIGEST } from "#contracts/release/result/spec";
8
10
  import { PublicationScopeSchema } from "#contracts/release/snapshot/scope";
@@ -10,8 +12,6 @@ import { ContentSnapshotSetSchema, hasEmptySnapshotBases, hasGitSnapshotModes, h
10
12
  import { RendererDomainSchema } from "#contracts/renderer/domain";
11
13
  /** Semantic wire identity of the current localized content release. */
12
14
  export const CONTENT_RELEASE_FORMAT = "localized-content-release";
13
- /** Nonnegative release inventory count authenticated by one manifest. */
14
- export const ReleaseCountSchema = Schema.Finite.pipe(Schema.check(Schema.isInt()), Schema.check(Schema.isGreaterThanOrEqualTo(0)));
15
15
  /** Stable inventory and provenance fields owned by the current release. */
16
16
  const ContentReleaseManifestFields = {
17
17
  baseActiveAppLocales: Schema.NullOr(ActiveAppLocaleListSchema),
@@ -133,7 +133,7 @@ function hasCoherentVerificationCounts(input) {
133
133
  }
134
134
  /** Pre-activation evidence proving the fully staged release is coherent. */
135
135
  export const ReleaseVerificationEvidenceSchema = Schema.Struct({
136
- activeAppLocales: ActiveAppLocaleListSchema,
136
+ ...ActiveCatalogIdentitySchema.fields,
137
137
  baseActiveAppLocales: Schema.NullOr(ActiveAppLocaleListSchema),
138
138
  baseManifestHash: Schema.NullOr(Sha256HashSchema),
139
139
  baseReleaseId: Schema.NullOr(ReleaseIdSchema),
@@ -142,18 +142,13 @@ export const ReleaseVerificationEvidenceSchema = Schema.Struct({
142
142
  deleteHeads: ReleaseCountSchema,
143
143
  itemCount: ReleaseCountSchema,
144
144
  itemsDigest: Sha256HashSchema,
145
- manifestHash: Sha256HashSchema,
146
145
  projectionCount: ReleaseCountSchema,
147
146
  projectionDigest: Sha256HashSchema,
148
- releaseId: ReleaseIdSchema,
149
147
  rendererManifestHash: Sha256HashSchema,
150
- resultCount: ReleaseCountSchema,
151
- resultDigest: Sha256HashSchema,
152
148
  rollbackCount: ReleaseCountSchema,
153
149
  rollbackDigest: Sha256HashSchema,
154
150
  routeCount: ReleaseCountSchema,
155
151
  routeDigest: Sha256HashSchema,
156
- snapshots: ContentSnapshotSetSchema,
157
152
  stagedArtifacts: ReleaseCountSchema,
158
153
  stagedRoutes: ReleaseCountSchema,
159
154
  stagedSnapshotRows: ReleaseCountSchema,
@@ -179,16 +174,11 @@ export const ReleaseVerificationStatusSchema = Schema.Union([
179
174
  ]);
180
175
  /** Delta evidence returned after a release is staged and activated. */
181
176
  export const PublicationReceiptSchema = Schema.Struct({
177
+ ...ActiveCatalogIdentitySchema.fields,
182
178
  activatedHeads: ReleaseCountSchema,
183
- activeAppLocales: ActiveAppLocaleListSchema,
184
179
  deletedHeads: ReleaseCountSchema,
185
- manifestHash: Sha256HashSchema,
186
180
  projectionDigest: Sha256HashSchema,
187
- releaseId: ReleaseIdSchema,
188
- resultCount: ReleaseCountSchema,
189
- resultDigest: Sha256HashSchema,
190
181
  routeDigest: Sha256HashSchema,
191
- snapshots: ContentSnapshotSetSchema,
192
182
  stagedArtifacts: ReleaseCountSchema,
193
183
  stagedItems: ReleaseCountSchema,
194
184
  stagedProjections: ReleaseCountSchema,
@@ -1,4 +1,5 @@
1
1
  import { Array as Arr, Effect, HashSet, Option, Order, Schema } from "effect";
2
+ import { Sha256MismatchFields } from "#contracts/errors";
2
3
  import { Sha256HashSchema } from "#contracts/ids";
3
4
  import { RendererComponentsSchema, } from "#contracts/renderer/component";
4
5
  import { RENDERER_DOMAINS, RendererDomainSchema, } from "#contracts/renderer/domain";
@@ -65,10 +66,7 @@ export const selectRendererDomainCapability = Effect.fn("AksaraContracts.selectR
65
66
  export class RendererManifestHashComputeError extends Schema.TaggedError()("RendererManifestHashComputeError", { cause: Schema.Unknown }) {
66
67
  }
67
68
  /** The renderer envelope hash does not authenticate its canonical tuple. */
68
- export class RendererManifestHashMismatchError extends Schema.TaggedError()("RendererManifestHashMismatchError", {
69
- actualHash: Sha256HashSchema,
70
- expectedHash: Sha256HashSchema,
71
- }) {
69
+ export class RendererManifestHashMismatchError extends Schema.TaggedError()("RendererManifestHashMismatchError", { ...Sha256MismatchFields }) {
72
70
  }
73
71
  /** Serializes the exact domain-scoped renderer tuple covered by SHA-256. */
74
72
  export function canonicalizeRendererManifestContract(input) {