@nakafa/aksara-contracts 0.31.0 → 0.32.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.
@@ -429,6 +429,411 @@ export declare const StageProjectionBatchRequestSchema: Schema.Struct<{
429
429
  readonly operation: Schema.Literal<"stageProjectionBatch">;
430
430
  }>;
431
431
  export type StageProjectionBatchRequest = typeof StageProjectionBatchRequestSchema.Type;
432
+ /** Canonical input reserved for one authenticated rollback release. */
433
+ export declare const StageRollbackProjectionBatchInputSchema: Schema.Struct<{
434
+ batchIndex: Schema.Finite;
435
+ projections: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
436
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
437
+ readonly articleRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
438
+ readonly articleSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleSlug">;
439
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
440
+ readonly category: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleCategory">;
441
+ readonly categoryRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
442
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
443
+ readonly graph: Schema.Struct<{
444
+ readonly alignmentId: Schema.String;
445
+ readonly assetId: Schema.String;
446
+ readonly conceptId: Schema.String;
447
+ readonly learningObjectId: Schema.String;
448
+ readonly lensId: Schema.String;
449
+ }>;
450
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
451
+ readonly categoryTitle: Schema.Trimmed;
452
+ readonly kind: Schema.Literal<"article">;
453
+ readonly metadata: Schema.Struct<{
454
+ readonly dateModified: Schema.optionalKey<Schema.String>;
455
+ readonly datePublished: Schema.String;
456
+ readonly authors: Schema.$Array<Schema.Struct<{
457
+ readonly name: Schema.String;
458
+ }>>;
459
+ readonly description: Schema.optional<Schema.String>;
460
+ readonly title: Schema.String;
461
+ }>;
462
+ readonly official: Schema.Boolean;
463
+ readonly parentPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
464
+ readonly references: Schema.$Array<Schema.Struct<{
465
+ readonly authors: Schema.String;
466
+ readonly citation: Schema.optional<Schema.String>;
467
+ readonly details: Schema.optional<Schema.String>;
468
+ readonly publication: Schema.optional<Schema.String>;
469
+ readonly title: Schema.String;
470
+ readonly url: Schema.optional<Schema.String>;
471
+ readonly year: Schema.Finite;
472
+ }>>;
473
+ readonly sitemap: Schema.Literal<true>;
474
+ }>, Schema.Struct<{
475
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
476
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
477
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
478
+ readonly graph: Schema.Struct<{
479
+ readonly alignmentId: Schema.String;
480
+ readonly assetId: Schema.String;
481
+ readonly conceptId: Schema.String;
482
+ readonly learningObjectId: Schema.String;
483
+ readonly lensId: Schema.String;
484
+ }>;
485
+ readonly materialKey: Schema.brand<Schema.String, "@NakafaAI/AksaraMaterialKey">;
486
+ readonly order: Schema.Finite;
487
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
488
+ readonly sectionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraMaterialSection">;
489
+ readonly kind: Schema.Literal<"subject-lesson">;
490
+ readonly metadata: Schema.Struct<{
491
+ readonly dateModified: Schema.optionalKey<Schema.String>;
492
+ readonly datePublished: Schema.String;
493
+ readonly authors: Schema.$Array<Schema.Struct<{
494
+ readonly name: Schema.String;
495
+ }>>;
496
+ readonly description: Schema.optional<Schema.String>;
497
+ readonly subject: Schema.optional<Schema.String>;
498
+ readonly title: Schema.String;
499
+ }>;
500
+ readonly parentPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
501
+ readonly sitemap: Schema.Literal<true>;
502
+ readonly topicTitle: Schema.String;
503
+ }>, Schema.Struct<{
504
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
505
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
506
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
507
+ readonly pageKey: Schema.brand<Schema.String, "@NakafaAI/AksaraPageKey">;
508
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
509
+ readonly kind: Schema.Literal<"public-page">;
510
+ readonly metadata: Schema.Struct<{
511
+ readonly dateModified: Schema.optionalKey<Schema.String>;
512
+ readonly datePublished: Schema.String;
513
+ readonly description: Schema.Trimmed;
514
+ readonly title: Schema.Trimmed;
515
+ }>;
516
+ readonly sitemap: Schema.Literal<true>;
517
+ readonly sourcePath: Schema.brand<Schema.String, "@NakafaAI/AksaraCorpusSourcePath">;
518
+ }>, Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
519
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
520
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
521
+ readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
522
+ readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
523
+ readonly questionNumber: Schema.Finite;
524
+ readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
525
+ readonly bodyKind: Schema.Literal<"question">;
526
+ readonly blueprint: Schema.optionalKey<Schema.Struct<{
527
+ readonly cognitiveLevel: Schema.String;
528
+ readonly contentDomain: Schema.String;
529
+ readonly topic: Schema.String;
530
+ }>>;
531
+ readonly kind: Schema.Literal<"question-body">;
532
+ readonly metadata: Schema.Struct<{
533
+ readonly dateModified: Schema.optionalKey<Schema.String>;
534
+ readonly datePublished: Schema.String;
535
+ readonly authors: Schema.$Array<Schema.Struct<{
536
+ readonly name: Schema.String;
537
+ }>>;
538
+ readonly title: Schema.String;
539
+ }>;
540
+ readonly stimulusKey: Schema.optionalKey<Schema.String>;
541
+ readonly response: Schema.Union<readonly [Schema.Struct<{
542
+ readonly categories: Schema.$Array<Schema.Struct<{
543
+ readonly categoryKey: Schema.String;
544
+ readonly label: Schema.String;
545
+ readonly order: Schema.Int;
546
+ }>>;
547
+ readonly kind: Schema.Literal<"category">;
548
+ readonly statements: Schema.$Array<Schema.Struct<{
549
+ readonly correctCategoryKey: Schema.String;
550
+ readonly label: Schema.String;
551
+ readonly order: Schema.Int;
552
+ readonly statementKey: Schema.String;
553
+ }>>;
554
+ }>, Schema.Struct<{
555
+ readonly kind: Schema.Literal<"multiple-choice">;
556
+ readonly options: Schema.$Array<Schema.Struct<{
557
+ readonly isCorrect: Schema.Boolean;
558
+ readonly label: Schema.String;
559
+ readonly optionKey: Schema.String;
560
+ readonly order: Schema.Int;
561
+ }>>;
562
+ }>, Schema.Struct<{
563
+ readonly kind: Schema.Literal<"single-choice">;
564
+ readonly options: Schema.$Array<Schema.Struct<{
565
+ readonly isCorrect: Schema.Boolean;
566
+ readonly label: Schema.String;
567
+ readonly optionKey: Schema.String;
568
+ readonly order: Schema.Int;
569
+ }>>;
570
+ }>]>;
571
+ }>, Schema.Struct<{
572
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
573
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
574
+ readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
575
+ readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
576
+ readonly questionNumber: Schema.Finite;
577
+ readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
578
+ readonly bodyKind: Schema.Literal<"answer">;
579
+ readonly blueprint: Schema.optionalKey<Schema.Struct<{
580
+ readonly cognitiveLevel: Schema.String;
581
+ readonly contentDomain: Schema.String;
582
+ readonly topic: Schema.String;
583
+ }>>;
584
+ readonly kind: Schema.Literal<"question-body">;
585
+ readonly metadata: Schema.Struct<{
586
+ readonly dateModified: Schema.optionalKey<Schema.String>;
587
+ readonly datePublished: Schema.String;
588
+ readonly authors: Schema.$Array<Schema.Struct<{
589
+ readonly name: Schema.String;
590
+ }>>;
591
+ readonly title: Schema.String;
592
+ }>;
593
+ readonly stimulusKey: Schema.optionalKey<Schema.String>;
594
+ }>]>, Schema.Union<readonly [Schema.Struct<{
595
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
596
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
597
+ readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
598
+ readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
599
+ readonly questionNumber: Schema.Finite;
600
+ readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
601
+ readonly bodyKind: Schema.Literal<"question">;
602
+ readonly kind: Schema.Literal<"question-body">;
603
+ readonly metadata: Schema.Struct<{
604
+ readonly authors: Schema.$Array<Schema.Struct<{
605
+ readonly name: Schema.String;
606
+ }>>;
607
+ readonly date: Schema.String;
608
+ readonly title: Schema.String;
609
+ }>;
610
+ readonly choices: Schema.mutable<Schema.$Array<Schema.Struct<{
611
+ readonly label: Schema.mutableKey<Schema.String>;
612
+ readonly value: Schema.mutableKey<Schema.Boolean>;
613
+ }>>>;
614
+ }>, Schema.Struct<{
615
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
616
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
617
+ readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
618
+ readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
619
+ readonly questionNumber: Schema.Finite;
620
+ readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
621
+ readonly bodyKind: Schema.Literal<"answer">;
622
+ readonly kind: Schema.Literal<"question-body">;
623
+ readonly metadata: Schema.Struct<{
624
+ readonly authors: Schema.$Array<Schema.Struct<{
625
+ readonly name: Schema.String;
626
+ }>>;
627
+ readonly date: Schema.String;
628
+ readonly title: Schema.String;
629
+ }>;
630
+ }>]>]>]>>;
631
+ releaseId: Schema.brand<Schema.String, "@NakafaAI/AksaraReleaseId">;
632
+ }>;
633
+ export type StageRollbackProjectionBatchInput = typeof StageRollbackProjectionBatchInputSchema.Type;
634
+ /** Carries historical projections only inside a rollback staging group. */
635
+ export declare const StageRollbackProjectionBatchRequestSchema: Schema.Struct<{
636
+ readonly batchIndex: Schema.Finite;
637
+ readonly projections: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
638
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
639
+ readonly articleRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
640
+ readonly articleSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleSlug">;
641
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
642
+ readonly category: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleCategory">;
643
+ readonly categoryRouteSlug: Schema.brand<Schema.String, "@NakafaAI/AksaraArticleRouteSlug">;
644
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
645
+ readonly graph: Schema.Struct<{
646
+ readonly alignmentId: Schema.String;
647
+ readonly assetId: Schema.String;
648
+ readonly conceptId: Schema.String;
649
+ readonly learningObjectId: Schema.String;
650
+ readonly lensId: Schema.String;
651
+ }>;
652
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
653
+ readonly categoryTitle: Schema.Trimmed;
654
+ readonly kind: Schema.Literal<"article">;
655
+ readonly metadata: Schema.Struct<{
656
+ readonly dateModified: Schema.optionalKey<Schema.String>;
657
+ readonly datePublished: Schema.String;
658
+ readonly authors: Schema.$Array<Schema.Struct<{
659
+ readonly name: Schema.String;
660
+ }>>;
661
+ readonly description: Schema.optional<Schema.String>;
662
+ readonly title: Schema.String;
663
+ }>;
664
+ readonly official: Schema.Boolean;
665
+ readonly parentPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
666
+ readonly references: Schema.$Array<Schema.Struct<{
667
+ readonly authors: Schema.String;
668
+ readonly citation: Schema.optional<Schema.String>;
669
+ readonly details: Schema.optional<Schema.String>;
670
+ readonly publication: Schema.optional<Schema.String>;
671
+ readonly title: Schema.String;
672
+ readonly url: Schema.optional<Schema.String>;
673
+ readonly year: Schema.Finite;
674
+ }>>;
675
+ readonly sitemap: Schema.Literal<true>;
676
+ }>, Schema.Struct<{
677
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
678
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
679
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
680
+ readonly graph: Schema.Struct<{
681
+ readonly alignmentId: Schema.String;
682
+ readonly assetId: Schema.String;
683
+ readonly conceptId: Schema.String;
684
+ readonly learningObjectId: Schema.String;
685
+ readonly lensId: Schema.String;
686
+ }>;
687
+ readonly materialKey: Schema.brand<Schema.String, "@NakafaAI/AksaraMaterialKey">;
688
+ readonly order: Schema.Finite;
689
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
690
+ readonly sectionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraMaterialSection">;
691
+ readonly kind: Schema.Literal<"subject-lesson">;
692
+ readonly metadata: Schema.Struct<{
693
+ readonly dateModified: Schema.optionalKey<Schema.String>;
694
+ readonly datePublished: Schema.String;
695
+ readonly authors: Schema.$Array<Schema.Struct<{
696
+ readonly name: Schema.String;
697
+ }>>;
698
+ readonly description: Schema.optional<Schema.String>;
699
+ readonly subject: Schema.optional<Schema.String>;
700
+ readonly title: Schema.String;
701
+ }>;
702
+ readonly parentPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
703
+ readonly sitemap: Schema.Literal<true>;
704
+ readonly topicTitle: Schema.String;
705
+ }>, Schema.Struct<{
706
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
707
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
708
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
709
+ readonly pageKey: Schema.brand<Schema.String, "@NakafaAI/AksaraPageKey">;
710
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
711
+ readonly kind: Schema.Literal<"public-page">;
712
+ readonly metadata: Schema.Struct<{
713
+ readonly dateModified: Schema.optionalKey<Schema.String>;
714
+ readonly datePublished: Schema.String;
715
+ readonly description: Schema.Trimmed;
716
+ readonly title: Schema.Trimmed;
717
+ }>;
718
+ readonly sitemap: Schema.Literal<true>;
719
+ readonly sourcePath: Schema.brand<Schema.String, "@NakafaAI/AksaraCorpusSourcePath">;
720
+ }>, Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
721
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
722
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
723
+ readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
724
+ readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
725
+ readonly questionNumber: Schema.Finite;
726
+ readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
727
+ readonly bodyKind: Schema.Literal<"question">;
728
+ readonly blueprint: Schema.optionalKey<Schema.Struct<{
729
+ readonly cognitiveLevel: Schema.String;
730
+ readonly contentDomain: Schema.String;
731
+ readonly topic: Schema.String;
732
+ }>>;
733
+ readonly kind: Schema.Literal<"question-body">;
734
+ readonly metadata: Schema.Struct<{
735
+ readonly dateModified: Schema.optionalKey<Schema.String>;
736
+ readonly datePublished: Schema.String;
737
+ readonly authors: Schema.$Array<Schema.Struct<{
738
+ readonly name: Schema.String;
739
+ }>>;
740
+ readonly title: Schema.String;
741
+ }>;
742
+ readonly stimulusKey: Schema.optionalKey<Schema.String>;
743
+ readonly response: Schema.Union<readonly [Schema.Struct<{
744
+ readonly categories: Schema.$Array<Schema.Struct<{
745
+ readonly categoryKey: Schema.String;
746
+ readonly label: Schema.String;
747
+ readonly order: Schema.Int;
748
+ }>>;
749
+ readonly kind: Schema.Literal<"category">;
750
+ readonly statements: Schema.$Array<Schema.Struct<{
751
+ readonly correctCategoryKey: Schema.String;
752
+ readonly label: Schema.String;
753
+ readonly order: Schema.Int;
754
+ readonly statementKey: Schema.String;
755
+ }>>;
756
+ }>, Schema.Struct<{
757
+ readonly kind: Schema.Literal<"multiple-choice">;
758
+ readonly options: Schema.$Array<Schema.Struct<{
759
+ readonly isCorrect: Schema.Boolean;
760
+ readonly label: Schema.String;
761
+ readonly optionKey: Schema.String;
762
+ readonly order: Schema.Int;
763
+ }>>;
764
+ }>, Schema.Struct<{
765
+ readonly kind: Schema.Literal<"single-choice">;
766
+ readonly options: Schema.$Array<Schema.Struct<{
767
+ readonly isCorrect: Schema.Boolean;
768
+ readonly label: Schema.String;
769
+ readonly optionKey: Schema.String;
770
+ readonly order: Schema.Int;
771
+ }>>;
772
+ }>]>;
773
+ }>, Schema.Struct<{
774
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
775
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
776
+ readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
777
+ readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
778
+ readonly questionNumber: Schema.Finite;
779
+ readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
780
+ readonly bodyKind: Schema.Literal<"answer">;
781
+ readonly blueprint: Schema.optionalKey<Schema.Struct<{
782
+ readonly cognitiveLevel: Schema.String;
783
+ readonly contentDomain: Schema.String;
784
+ readonly topic: Schema.String;
785
+ }>>;
786
+ readonly kind: Schema.Literal<"question-body">;
787
+ readonly metadata: Schema.Struct<{
788
+ readonly dateModified: Schema.optionalKey<Schema.String>;
789
+ readonly datePublished: Schema.String;
790
+ readonly authors: Schema.$Array<Schema.Struct<{
791
+ readonly name: Schema.String;
792
+ }>>;
793
+ readonly title: Schema.String;
794
+ }>;
795
+ readonly stimulusKey: Schema.optionalKey<Schema.String>;
796
+ }>]>, Schema.Union<readonly [Schema.Struct<{
797
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
798
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
799
+ readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
800
+ readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
801
+ readonly questionNumber: Schema.Finite;
802
+ readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
803
+ readonly bodyKind: Schema.Literal<"question">;
804
+ readonly kind: Schema.Literal<"question-body">;
805
+ readonly metadata: Schema.Struct<{
806
+ readonly authors: Schema.$Array<Schema.Struct<{
807
+ readonly name: Schema.String;
808
+ }>>;
809
+ readonly date: Schema.String;
810
+ readonly title: Schema.String;
811
+ }>;
812
+ readonly choices: Schema.mutable<Schema.$Array<Schema.Struct<{
813
+ readonly label: Schema.mutableKey<Schema.String>;
814
+ readonly value: Schema.mutableKey<Schema.Boolean>;
815
+ }>>>;
816
+ }>, Schema.Struct<{
817
+ readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
818
+ readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
819
+ readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
820
+ readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
821
+ readonly questionNumber: Schema.Finite;
822
+ readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
823
+ readonly bodyKind: Schema.Literal<"answer">;
824
+ readonly kind: Schema.Literal<"question-body">;
825
+ readonly metadata: Schema.Struct<{
826
+ readonly authors: Schema.$Array<Schema.Struct<{
827
+ readonly name: Schema.String;
828
+ }>>;
829
+ readonly date: Schema.String;
830
+ readonly title: Schema.String;
831
+ }>;
832
+ }>]>]>]>>;
833
+ readonly releaseId: Schema.brand<Schema.String, "@NakafaAI/AksaraReleaseId">;
834
+ readonly operation: Schema.Literal<"stageRollbackProjectionBatch">;
835
+ }>;
836
+ export type StageRollbackProjectionBatchRequest = typeof StageRollbackProjectionBatchRequestSchema.Type;
432
837
  /** Canonical input for one bounded immutable-artifact staging operation. */
433
838
  export declare const StageArtifactBatchInputSchema: Schema.Struct<{
434
839
  artifacts: Schema.NonEmptyArray<Schema.Struct<{
@@ -1,7 +1,7 @@
1
1
  import { Schema } from "effect";
2
2
  import { SignedContentArtifactSchema } from "#contracts/content";
3
3
  import { ReleaseIdSchema } from "#contracts/ids";
4
- import { ContentProjectionSchema } from "#contracts/projection/spec";
4
+ import { ContentProjectionSchema, CurrentContentProjectionSchema, } from "#contracts/projection/spec";
5
5
  import { ContentRouteItemSchema } from "#contracts/release/route/spec";
6
6
  import { ContentReleaseItemSchema } from "#contracts/release/spec";
7
7
  import { MAX_ARTIFACT_BATCH_COUNT, MAX_ITEM_BATCH_COUNT, MAX_PROJECTION_BATCH_COUNT, MAX_ROUTE_BATCH_COUNT, } from "#contracts/transport/limits";
@@ -58,7 +58,7 @@ export const StageRouteBatchRequestSchema = Schema.Struct({
58
58
  })));
59
59
  const StageProjectionBatchFields = {
60
60
  batchIndex: BatchIndexSchema,
61
- projections: Schema.NonEmptyArray(ContentProjectionSchema).pipe(Schema.check(Schema.isMaxLength(MAX_PROJECTION_BATCH_COUNT))),
61
+ projections: Schema.NonEmptyArray(CurrentContentProjectionSchema).pipe(Schema.check(Schema.isMaxLength(MAX_PROJECTION_BATCH_COUNT))),
62
62
  releaseId: ReleaseIdSchema,
63
63
  };
64
64
  /** Canonical input for one bounded projection staging operation. */
@@ -68,6 +68,18 @@ export const StageProjectionBatchRequestSchema = Schema.Struct({
68
68
  ...StageProjectionBatchFields,
69
69
  operation: Schema.Literal("stageProjectionBatch"),
70
70
  });
71
+ const StageRollbackProjectionBatchFields = {
72
+ batchIndex: BatchIndexSchema,
73
+ projections: Schema.NonEmptyArray(ContentProjectionSchema).pipe(Schema.check(Schema.isMaxLength(MAX_PROJECTION_BATCH_COUNT))),
74
+ releaseId: ReleaseIdSchema,
75
+ };
76
+ /** Canonical input reserved for one authenticated rollback release. */
77
+ export const StageRollbackProjectionBatchInputSchema = Schema.Struct(StageRollbackProjectionBatchFields);
78
+ /** Carries historical projections only inside a rollback staging group. */
79
+ export const StageRollbackProjectionBatchRequestSchema = Schema.Struct({
80
+ ...StageRollbackProjectionBatchFields,
81
+ operation: Schema.Literal("stageRollbackProjectionBatch"),
82
+ });
71
83
  const StageArtifactBatchFields = {
72
84
  artifacts: Schema.NonEmptyArray(SignedContentArtifactSchema).pipe(Schema.check(Schema.isMaxLength(MAX_ARTIFACT_BATCH_COUNT))),
73
85
  batchIndex: BatchIndexSchema,