@nakafa/aksara-contracts 0.48.7 → 0.48.9

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.
@@ -5292,6 +5292,90 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5292
5292
  readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
5293
5293
  };
5294
5294
  readonly projection: {
5295
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
5296
+ readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
5297
+ readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
5298
+ readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5299
+ readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
5300
+ readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
5301
+ readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5302
+ readonly graph: {
5303
+ readonly alignmentId: string;
5304
+ readonly assetId: string;
5305
+ readonly conceptId: string;
5306
+ readonly learningObjectId: string;
5307
+ readonly lensId: string;
5308
+ };
5309
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
5310
+ readonly categoryTitle: string;
5311
+ readonly kind: "article";
5312
+ readonly metadata: {
5313
+ readonly dateModified?: string;
5314
+ readonly datePublished: string;
5315
+ readonly authors: readonly {
5316
+ readonly name: string;
5317
+ }[];
5318
+ readonly description?: string | undefined;
5319
+ readonly title: string;
5320
+ };
5321
+ readonly official: boolean;
5322
+ readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
5323
+ readonly references: readonly {
5324
+ readonly authors: string;
5325
+ readonly citation?: string | undefined;
5326
+ readonly details?: string | undefined;
5327
+ readonly publication?: string | undefined;
5328
+ readonly title: string;
5329
+ readonly url?: string | undefined;
5330
+ readonly year: number;
5331
+ }[];
5332
+ readonly sitemap: true;
5333
+ } | {
5334
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
5335
+ readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5336
+ readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5337
+ readonly graph: {
5338
+ readonly alignmentId: string;
5339
+ readonly assetId: string;
5340
+ readonly conceptId: string;
5341
+ readonly learningObjectId: string;
5342
+ readonly lensId: string;
5343
+ };
5344
+ readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
5345
+ readonly order: number;
5346
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
5347
+ readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
5348
+ readonly kind: "subject-lesson";
5349
+ readonly metadata: {
5350
+ readonly dateModified?: string;
5351
+ readonly datePublished: string;
5352
+ readonly authors: readonly {
5353
+ readonly name: string;
5354
+ }[];
5355
+ readonly description?: string | undefined;
5356
+ readonly searchTitle?: string;
5357
+ readonly subject?: string | undefined;
5358
+ readonly title: string;
5359
+ };
5360
+ readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
5361
+ readonly sitemap: true;
5362
+ readonly topicTitle: string;
5363
+ } | {
5364
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
5365
+ readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5366
+ readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5367
+ readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
5368
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
5369
+ readonly kind: "public-page";
5370
+ readonly metadata: {
5371
+ readonly dateModified?: string;
5372
+ readonly datePublished: string;
5373
+ readonly description: string;
5374
+ readonly title: string;
5375
+ };
5376
+ readonly sitemap: true;
5377
+ readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
5378
+ } | {
5295
5379
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5296
5380
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5297
5381
  readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
@@ -5315,6 +5399,35 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5315
5399
  };
5316
5400
  readonly stimulusKey?: string;
5317
5401
  readonly response: {
5402
+ readonly kind: "single-choice";
5403
+ readonly options: readonly {
5404
+ readonly isCorrect: boolean;
5405
+ readonly label: string;
5406
+ readonly optionKey: string;
5407
+ readonly order: number;
5408
+ }[];
5409
+ } | {
5410
+ readonly kind: "multiple-choice";
5411
+ readonly options: readonly {
5412
+ readonly isCorrect: boolean;
5413
+ readonly label: string;
5414
+ readonly optionKey: string;
5415
+ readonly order: number;
5416
+ }[];
5417
+ } | {
5418
+ readonly categories: readonly {
5419
+ readonly categoryKey: string;
5420
+ readonly label: string;
5421
+ readonly order: number;
5422
+ }[];
5423
+ readonly kind: "category";
5424
+ readonly statements: readonly {
5425
+ readonly correctCategoryKey: string;
5426
+ readonly label: string;
5427
+ readonly order: number;
5428
+ readonly statementKey: string;
5429
+ }[];
5430
+ } | {
5318
5431
  readonly criteria: readonly {
5319
5432
  readonly criterionKey: string;
5320
5433
  readonly finalAnswer?: {
@@ -5349,35 +5462,6 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5349
5462
  }[];
5350
5463
  }[];
5351
5464
  readonly kind: "rubric";
5352
- } | {
5353
- readonly categories: readonly {
5354
- readonly categoryKey: string;
5355
- readonly label: string;
5356
- readonly order: number;
5357
- }[];
5358
- readonly kind: "category";
5359
- readonly statements: readonly {
5360
- readonly correctCategoryKey: string;
5361
- readonly label: string;
5362
- readonly order: number;
5363
- readonly statementKey: string;
5364
- }[];
5365
- } | {
5366
- readonly kind: "multiple-choice";
5367
- readonly options: readonly {
5368
- readonly isCorrect: boolean;
5369
- readonly label: string;
5370
- readonly optionKey: string;
5371
- readonly order: number;
5372
- }[];
5373
- } | {
5374
- readonly kind: "single-choice";
5375
- readonly options: readonly {
5376
- readonly isCorrect: boolean;
5377
- readonly label: string;
5378
- readonly optionKey: string;
5379
- readonly order: number;
5380
- }[];
5381
5465
  } | {
5382
5466
  readonly key: {
5383
5467
  readonly acceptsFractions: boolean;
@@ -5418,7 +5502,48 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5418
5502
  readonly title: string;
5419
5503
  };
5420
5504
  readonly stimulusKey?: string;
5421
- } | {
5505
+ };
5506
+ } | {
5507
+ readonly change: {
5508
+ readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5509
+ readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5510
+ readonly family: "article" | "material" | "page" | "question";
5511
+ readonly operation: "delete";
5512
+ };
5513
+ };
5514
+ readonly index: number;
5515
+ readonly prior: {
5516
+ readonly artifact: {
5517
+ readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
5518
+ readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
5519
+ readonly payload: {
5520
+ readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5521
+ readonly byteLength: number;
5522
+ readonly compiledCode: string;
5523
+ readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
5524
+ readonly compilerVersion: "0.1.0";
5525
+ readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5526
+ readonly format: "mdx-function-body";
5527
+ readonly mdxCompilerVersion: "3.1.1";
5528
+ readonly plainText: string;
5529
+ readonly rawMdx: string;
5530
+ readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
5531
+ readonly requiredComponents: readonly string[];
5532
+ readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
5533
+ };
5534
+ readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
5535
+ };
5536
+ readonly change: {
5537
+ readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
5538
+ readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5539
+ readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5540
+ readonly delivery: "authenticated" | "entitled" | "public";
5541
+ readonly family: "article" | "material" | "page" | "question";
5542
+ readonly operation: "upsert";
5543
+ readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
5544
+ readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
5545
+ };
5546
+ readonly projection: {
5422
5547
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
5423
5548
  readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
5424
5549
  readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
@@ -5502,48 +5627,7 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5502
5627
  };
5503
5628
  readonly sitemap: true;
5504
5629
  readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
5505
- };
5506
- } | {
5507
- readonly change: {
5508
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5509
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5510
- readonly family: "article" | "material" | "page" | "question";
5511
- readonly operation: "delete";
5512
- };
5513
- };
5514
- readonly index: number;
5515
- readonly prior: {
5516
- readonly artifact: {
5517
- readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
5518
- readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
5519
- readonly payload: {
5520
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5521
- readonly byteLength: number;
5522
- readonly compiledCode: string;
5523
- readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
5524
- readonly compilerVersion: "0.1.0";
5525
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5526
- readonly format: "mdx-function-body";
5527
- readonly mdxCompilerVersion: "3.1.1";
5528
- readonly plainText: string;
5529
- readonly rawMdx: string;
5530
- readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
5531
- readonly requiredComponents: readonly string[];
5532
- readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
5533
- };
5534
- readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
5535
- };
5536
- readonly change: {
5537
- readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
5538
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5539
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5540
- readonly delivery: "authenticated" | "entitled" | "public";
5541
- readonly family: "article" | "material" | "page" | "question";
5542
- readonly operation: "upsert";
5543
- readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
5544
- readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
5545
- };
5546
- readonly projection: {
5630
+ } | {
5547
5631
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5548
5632
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5549
5633
  readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
@@ -5567,6 +5651,35 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5567
5651
  };
5568
5652
  readonly stimulusKey?: string;
5569
5653
  readonly response: {
5654
+ readonly kind: "single-choice";
5655
+ readonly options: readonly {
5656
+ readonly isCorrect: boolean;
5657
+ readonly label: string;
5658
+ readonly optionKey: string;
5659
+ readonly order: number;
5660
+ }[];
5661
+ } | {
5662
+ readonly kind: "multiple-choice";
5663
+ readonly options: readonly {
5664
+ readonly isCorrect: boolean;
5665
+ readonly label: string;
5666
+ readonly optionKey: string;
5667
+ readonly order: number;
5668
+ }[];
5669
+ } | {
5670
+ readonly categories: readonly {
5671
+ readonly categoryKey: string;
5672
+ readonly label: string;
5673
+ readonly order: number;
5674
+ }[];
5675
+ readonly kind: "category";
5676
+ readonly statements: readonly {
5677
+ readonly correctCategoryKey: string;
5678
+ readonly label: string;
5679
+ readonly order: number;
5680
+ readonly statementKey: string;
5681
+ }[];
5682
+ } | {
5570
5683
  readonly criteria: readonly {
5571
5684
  readonly criterionKey: string;
5572
5685
  readonly finalAnswer?: {
@@ -5601,35 +5714,6 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5601
5714
  }[];
5602
5715
  }[];
5603
5716
  readonly kind: "rubric";
5604
- } | {
5605
- readonly categories: readonly {
5606
- readonly categoryKey: string;
5607
- readonly label: string;
5608
- readonly order: number;
5609
- }[];
5610
- readonly kind: "category";
5611
- readonly statements: readonly {
5612
- readonly correctCategoryKey: string;
5613
- readonly label: string;
5614
- readonly order: number;
5615
- readonly statementKey: string;
5616
- }[];
5617
- } | {
5618
- readonly kind: "multiple-choice";
5619
- readonly options: readonly {
5620
- readonly isCorrect: boolean;
5621
- readonly label: string;
5622
- readonly optionKey: string;
5623
- readonly order: number;
5624
- }[];
5625
- } | {
5626
- readonly kind: "single-choice";
5627
- readonly options: readonly {
5628
- readonly isCorrect: boolean;
5629
- readonly label: string;
5630
- readonly optionKey: string;
5631
- readonly order: number;
5632
- }[];
5633
5717
  } | {
5634
5718
  readonly key: {
5635
5719
  readonly acceptsFractions: boolean;
@@ -5670,90 +5754,6 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5670
5754
  readonly title: string;
5671
5755
  };
5672
5756
  readonly stimulusKey?: string;
5673
- } | {
5674
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
5675
- readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
5676
- readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
5677
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5678
- readonly category: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleCategory">;
5679
- readonly categoryRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
5680
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5681
- readonly graph: {
5682
- readonly alignmentId: string;
5683
- readonly assetId: string;
5684
- readonly conceptId: string;
5685
- readonly learningObjectId: string;
5686
- readonly lensId: string;
5687
- };
5688
- readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
5689
- readonly categoryTitle: string;
5690
- readonly kind: "article";
5691
- readonly metadata: {
5692
- readonly dateModified?: string;
5693
- readonly datePublished: string;
5694
- readonly authors: readonly {
5695
- readonly name: string;
5696
- }[];
5697
- readonly description?: string | undefined;
5698
- readonly title: string;
5699
- };
5700
- readonly official: boolean;
5701
- readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
5702
- readonly references: readonly {
5703
- readonly authors: string;
5704
- readonly citation?: string | undefined;
5705
- readonly details?: string | undefined;
5706
- readonly publication?: string | undefined;
5707
- readonly title: string;
5708
- readonly url?: string | undefined;
5709
- readonly year: number;
5710
- }[];
5711
- readonly sitemap: true;
5712
- } | {
5713
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
5714
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5715
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5716
- readonly graph: {
5717
- readonly alignmentId: string;
5718
- readonly assetId: string;
5719
- readonly conceptId: string;
5720
- readonly learningObjectId: string;
5721
- readonly lensId: string;
5722
- };
5723
- readonly materialKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialKey">;
5724
- readonly order: number;
5725
- readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
5726
- readonly sectionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraMaterialSection">;
5727
- readonly kind: "subject-lesson";
5728
- readonly metadata: {
5729
- readonly dateModified?: string;
5730
- readonly datePublished: string;
5731
- readonly authors: readonly {
5732
- readonly name: string;
5733
- }[];
5734
- readonly description?: string | undefined;
5735
- readonly searchTitle?: string;
5736
- readonly subject?: string | undefined;
5737
- readonly title: string;
5738
- };
5739
- readonly parentPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
5740
- readonly sitemap: true;
5741
- readonly topicTitle: string;
5742
- } | {
5743
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
5744
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5745
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5746
- readonly pageKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPageKey">;
5747
- readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
5748
- readonly kind: "public-page";
5749
- readonly metadata: {
5750
- readonly dateModified?: string;
5751
- readonly datePublished: string;
5752
- readonly description: string;
5753
- readonly title: string;
5754
- };
5755
- readonly sitemap: true;
5756
- readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
5757
5757
  };
5758
5758
  } | {
5759
5759
  readonly change: {
@@ -32,11 +32,23 @@ export declare const digestTryoutCatalog: <E, R>(records: Stream.Stream<{
32
32
  };
33
33
  readonly sourceRevision: string;
34
34
  readonly title: string;
35
- readonly countryCode: string;
36
35
  readonly countryKey: string;
37
- readonly kind: "country";
36
+ readonly examKey: string;
37
+ readonly kind: "section";
38
+ readonly marks?: {
39
+ readonly blank: number;
40
+ readonly correct: number;
41
+ readonly wrong: number;
42
+ };
38
43
  readonly order: number;
39
- readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
44
+ readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
45
+ readonly questionCount: number;
46
+ readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
47
+ readonly sectionKey: string;
48
+ readonly setKey: string;
49
+ readonly timeLimitSeconds: number;
50
+ readonly trackKey: string;
51
+ readonly visibility: "internal-entry" | "visible";
40
52
  } | {
41
53
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
42
54
  readonly description?: string | undefined;
@@ -51,10 +63,16 @@ export declare const digestTryoutCatalog: <E, R>(records: Stream.Stream<{
51
63
  readonly title: string;
52
64
  readonly countryKey: string;
53
65
  readonly examKey: string;
54
- readonly kind: "exam";
66
+ readonly internalEntrySectionKey?: string | undefined;
67
+ readonly kind: "set";
55
68
  readonly order: number;
56
69
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
70
+ readonly questionCount: number;
57
71
  readonly scoringStrategy: "irt" | "penalized" | "raw";
72
+ readonly sectionCount: number;
73
+ readonly setKey: string;
74
+ readonly trackKey: string;
75
+ readonly visibleSectionCount: number;
58
76
  } | {
59
77
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
60
78
  readonly description?: string | undefined;
@@ -92,16 +110,10 @@ export declare const digestTryoutCatalog: <E, R>(records: Stream.Stream<{
92
110
  readonly title: string;
93
111
  readonly countryKey: string;
94
112
  readonly examKey: string;
95
- readonly internalEntrySectionKey?: string | undefined;
96
- readonly kind: "set";
113
+ readonly kind: "exam";
97
114
  readonly order: number;
98
115
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
99
- readonly questionCount: number;
100
116
  readonly scoringStrategy: "irt" | "penalized" | "raw";
101
- readonly sectionCount: number;
102
- readonly setKey: string;
103
- readonly trackKey: string;
104
- readonly visibleSectionCount: number;
105
117
  } | {
106
118
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
107
119
  readonly description?: string | undefined;
@@ -114,23 +126,11 @@ export declare const digestTryoutCatalog: <E, R>(records: Stream.Stream<{
114
126
  };
115
127
  readonly sourceRevision: string;
116
128
  readonly title: string;
129
+ readonly countryCode: string;
117
130
  readonly countryKey: string;
118
- readonly examKey: string;
119
- readonly kind: "section";
120
- readonly marks?: {
121
- readonly blank: number;
122
- readonly correct: number;
123
- readonly wrong: number;
124
- };
131
+ readonly kind: "country";
125
132
  readonly order: number;
126
- readonly publicPath?: (string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">) | undefined;
127
- readonly questionCount: number;
128
- readonly questionSourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
129
- readonly sectionKey: string;
130
- readonly setKey: string;
131
- readonly timeLimitSeconds: number;
132
- readonly trackKey: string;
133
- readonly visibility: "internal-entry" | "visible";
133
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
134
134
  };
135
135
  readonly rowHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
136
136
  }, E, R>) => Effect.Effect<{
@@ -57,5 +57,5 @@ export declare const verifySignedTryoutRuntimeBundle: (input: {
57
57
  readonly sourceReleaseId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraReleaseId">;
58
58
  };
59
59
  readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
60
- }, import("../../errors.js").ContractDecodeError | import("../../signature/spec.js").PublicKeyParseError | import("../../signature/spec.js").PublicKeyTypeError | import("../../renderer/contract.js").RendererManifestHashComputeError | import("../../renderer/contract.js").RendererManifestHashMismatchError | import("../../signature/spec.js").SignatureCheckError | import("../../signature/spec.js").SignatureInvalidError | import("../../signature/spec.js").SigningKeyNotFoundError | import("../../signature/spec.js").SigningKeyResolutionError | import("#contracts/tryout/runtime/hash").TryoutRuntimeBundleHashComputationError | TryoutRuntimeBundleHashMismatchError | TryoutRuntimeBundleRendererMismatchError | TryoutRuntimeBundleSnapshotMismatchError | TryoutRuntimeBundleVerificationDecodeError, import("../../signature/spec.js").ContentVerificationKeyResolver>;
60
+ }, import("#contracts/errors").ContractDecodeError | import("../../signature/spec.js").PublicKeyParseError | import("../../signature/spec.js").PublicKeyTypeError | import("../../renderer/contract.js").RendererManifestHashComputeError | import("../../renderer/contract.js").RendererManifestHashMismatchError | import("../../signature/spec.js").SignatureCheckError | import("../../signature/spec.js").SignatureInvalidError | import("../../signature/spec.js").SigningKeyNotFoundError | import("../../signature/spec.js").SigningKeyResolutionError | import("#contracts/tryout/runtime/hash").TryoutRuntimeBundleHashComputationError | TryoutRuntimeBundleHashMismatchError | TryoutRuntimeBundleRendererMismatchError | TryoutRuntimeBundleSnapshotMismatchError | TryoutRuntimeBundleVerificationDecodeError, import("../../signature/spec.js").ContentVerificationKeyResolver>;
61
61
  export {};
@@ -1,4 +1,5 @@
1
1
  import { Effect, Schema } from "effect";
2
+ import { Sha256MismatchFields } from "#contracts/errors";
2
3
  import { Sha256HashSchema } from "#contracts/ids";
3
4
  import { validateRendererManifestHash } from "#contracts/renderer/manifest";
4
5
  import { verifyEd25519Signature } from "#contracts/signature/verify";
@@ -12,10 +13,7 @@ export class TryoutRuntimeBundleVerificationDecodeError extends Schema.TaggedErr
12
13
  }) {
13
14
  }
14
15
  /** The envelope hash does not identify its complete canonical payload. */
15
- export class TryoutRuntimeBundleHashMismatchError extends Schema.TaggedError()("TryoutRuntimeBundleHashMismatchError", {
16
- actualHash: Sha256HashSchema,
17
- expectedHash: Sha256HashSchema,
18
- }) {
16
+ export class TryoutRuntimeBundleHashMismatchError extends Schema.TaggedError()("TryoutRuntimeBundleHashMismatchError", { ...Sha256MismatchFields }) {
19
17
  }
20
18
  /** The embedded snapshot identity does not match its semantic facts. */
21
19
  export class TryoutRuntimeBundleSnapshotMismatchError extends Schema.TaggedError()("TryoutRuntimeBundleSnapshotMismatchError", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakafa/aksara-contracts",
3
- "version": "0.48.7",
3
+ "version": "0.48.9",
4
4
  "description": "Schemas and verification contracts for Nakafa content releases.",
5
5
  "homepage": "https://github.com/nakafaai/aksara#readme",
6
6
  "license": "SEE LICENSE IN LICENSE",