@nakafa/aksara-contracts 0.37.0 → 0.39.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.
- package/README.md +4 -0
- package/dist/date.js +3 -5
- package/dist/math/base.d.ts +1 -2
- package/dist/math/base.js +9 -5
- package/dist/math/plane.d.ts +2 -4
- package/dist/math/plane.js +2 -3
- package/dist/math/space.d.ts +2 -4
- package/dist/math/space.js +2 -3
- package/dist/math/visual.d.ts +4 -8
- package/dist/preview/artifact.js +2 -2
- package/dist/projection/digest.d.ts +0 -36
- package/dist/projection/question.d.ts +1 -159
- package/dist/projection/question.js +15 -75
- package/dist/projection/spec.d.ts +1 -199
- package/dist/projection/spec.js +1 -8
- package/dist/projection/verify.d.ts +0 -36
- package/dist/release/current/evidence.d.ts +6 -21
- package/dist/release/current/state.d.ts +10 -35
- package/dist/release/hash.d.ts +0 -5
- package/dist/release/items.js +1 -2
- package/dist/release/lifecycle.d.ts +4 -14
- package/dist/release/rollback/spec.d.ts +12 -228
- package/dist/release/snapshot/scope.d.ts +3 -48
- package/dist/release/snapshot/scope.js +7 -69
- package/dist/release/snapshot/spec.js +2 -3
- package/dist/release/spec.d.ts +6 -21
- package/dist/release/verify.d.ts +0 -5
- package/dist/runtime/spec.d.ts +4 -19
- package/dist/runtime/verify.d.ts +0 -10
- package/dist/transport/batch.d.ts +0 -405
- package/dist/transport/batch.js +2 -14
- package/dist/transport/group.d.ts +33 -633
- package/dist/transport/group.js +1 -2
- package/dist/transport/request.d.ts +845 -1905
- package/dist/transport/response.d.ts +36 -394
- package/package.json +2 -2
|
@@ -343,7 +343,7 @@ export declare const RollbackUpsertStateSchema: Schema.Struct<{
|
|
|
343
343
|
}>;
|
|
344
344
|
readonly sitemap: Schema.Literal<true>;
|
|
345
345
|
readonly sourcePath: Schema.brand<Schema.String, "@NakafaAI/AksaraCorpusSourcePath">;
|
|
346
|
-
}>, Schema.Union<readonly [Schema.
|
|
346
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
347
347
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
348
348
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
349
349
|
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
@@ -419,43 +419,7 @@ export declare const RollbackUpsertStateSchema: Schema.Struct<{
|
|
|
419
419
|
readonly title: Schema.String;
|
|
420
420
|
}>;
|
|
421
421
|
readonly stimulusKey: Schema.optionalKey<Schema.String>;
|
|
422
|
-
}>]
|
|
423
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
424
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
425
|
-
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
426
|
-
readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
|
|
427
|
-
readonly questionNumber: Schema.Finite;
|
|
428
|
-
readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
|
|
429
|
-
readonly bodyKind: Schema.Literal<"question">;
|
|
430
|
-
readonly kind: Schema.Literal<"question-body">;
|
|
431
|
-
readonly metadata: Schema.Struct<{
|
|
432
|
-
readonly authors: Schema.$Array<Schema.Struct<{
|
|
433
|
-
readonly name: Schema.String;
|
|
434
|
-
}>>;
|
|
435
|
-
readonly date: Schema.String;
|
|
436
|
-
readonly title: Schema.String;
|
|
437
|
-
}>;
|
|
438
|
-
readonly choices: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
439
|
-
readonly label: Schema.mutableKey<Schema.String>;
|
|
440
|
-
readonly value: Schema.mutableKey<Schema.Boolean>;
|
|
441
|
-
}>>>;
|
|
442
|
-
}>, Schema.Struct<{
|
|
443
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
444
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
445
|
-
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
446
|
-
readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
|
|
447
|
-
readonly questionNumber: Schema.Finite;
|
|
448
|
-
readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
|
|
449
|
-
readonly bodyKind: Schema.Literal<"answer">;
|
|
450
|
-
readonly kind: Schema.Literal<"question-body">;
|
|
451
|
-
readonly metadata: Schema.Struct<{
|
|
452
|
-
readonly authors: Schema.$Array<Schema.Struct<{
|
|
453
|
-
readonly name: Schema.String;
|
|
454
|
-
}>>;
|
|
455
|
-
readonly date: Schema.String;
|
|
456
|
-
readonly title: Schema.String;
|
|
457
|
-
}>;
|
|
458
|
-
}>]>]>]>;
|
|
422
|
+
}>]>]>;
|
|
459
423
|
}>;
|
|
460
424
|
export type RollbackUpsertState = typeof RollbackUpsertStateSchema.Type;
|
|
461
425
|
/** Body-free state proving that one locale-specific head is absent. */
|
|
@@ -586,7 +550,7 @@ export declare const RollbackStateSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
586
550
|
}>;
|
|
587
551
|
readonly sitemap: Schema.Literal<true>;
|
|
588
552
|
readonly sourcePath: Schema.brand<Schema.String, "@NakafaAI/AksaraCorpusSourcePath">;
|
|
589
|
-
}>, Schema.Union<readonly [Schema.
|
|
553
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
590
554
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
591
555
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
592
556
|
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
@@ -662,43 +626,7 @@ export declare const RollbackStateSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
662
626
|
readonly title: Schema.String;
|
|
663
627
|
}>;
|
|
664
628
|
readonly stimulusKey: Schema.optionalKey<Schema.String>;
|
|
665
|
-
}>]
|
|
666
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
667
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
668
|
-
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
669
|
-
readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
|
|
670
|
-
readonly questionNumber: Schema.Finite;
|
|
671
|
-
readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
|
|
672
|
-
readonly bodyKind: Schema.Literal<"question">;
|
|
673
|
-
readonly kind: Schema.Literal<"question-body">;
|
|
674
|
-
readonly metadata: Schema.Struct<{
|
|
675
|
-
readonly authors: Schema.$Array<Schema.Struct<{
|
|
676
|
-
readonly name: Schema.String;
|
|
677
|
-
}>>;
|
|
678
|
-
readonly date: Schema.String;
|
|
679
|
-
readonly title: Schema.String;
|
|
680
|
-
}>;
|
|
681
|
-
readonly choices: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
682
|
-
readonly label: Schema.mutableKey<Schema.String>;
|
|
683
|
-
readonly value: Schema.mutableKey<Schema.Boolean>;
|
|
684
|
-
}>>>;
|
|
685
|
-
}>, Schema.Struct<{
|
|
686
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
687
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
688
|
-
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
689
|
-
readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
|
|
690
|
-
readonly questionNumber: Schema.Finite;
|
|
691
|
-
readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
|
|
692
|
-
readonly bodyKind: Schema.Literal<"answer">;
|
|
693
|
-
readonly kind: Schema.Literal<"question-body">;
|
|
694
|
-
readonly metadata: Schema.Struct<{
|
|
695
|
-
readonly authors: Schema.$Array<Schema.Struct<{
|
|
696
|
-
readonly name: Schema.String;
|
|
697
|
-
}>>;
|
|
698
|
-
readonly date: Schema.String;
|
|
699
|
-
readonly title: Schema.String;
|
|
700
|
-
}>;
|
|
701
|
-
}>]>]>]>;
|
|
629
|
+
}>]>]>;
|
|
702
630
|
}>, Schema.Struct<{
|
|
703
631
|
readonly change: Schema.Struct<{
|
|
704
632
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
@@ -827,7 +755,7 @@ export declare const RollbackRecordSchema: Schema.Struct<{
|
|
|
827
755
|
}>;
|
|
828
756
|
readonly sitemap: Schema.Literal<true>;
|
|
829
757
|
readonly sourcePath: Schema.brand<Schema.String, "@NakafaAI/AksaraCorpusSourcePath">;
|
|
830
|
-
}>, Schema.Union<readonly [Schema.
|
|
758
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
831
759
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
832
760
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
833
761
|
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
@@ -903,43 +831,7 @@ export declare const RollbackRecordSchema: Schema.Struct<{
|
|
|
903
831
|
readonly title: Schema.String;
|
|
904
832
|
}>;
|
|
905
833
|
readonly stimulusKey: Schema.optionalKey<Schema.String>;
|
|
906
|
-
}>]
|
|
907
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
908
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
909
|
-
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
910
|
-
readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
|
|
911
|
-
readonly questionNumber: Schema.Finite;
|
|
912
|
-
readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
|
|
913
|
-
readonly bodyKind: Schema.Literal<"question">;
|
|
914
|
-
readonly kind: Schema.Literal<"question-body">;
|
|
915
|
-
readonly metadata: Schema.Struct<{
|
|
916
|
-
readonly authors: Schema.$Array<Schema.Struct<{
|
|
917
|
-
readonly name: Schema.String;
|
|
918
|
-
}>>;
|
|
919
|
-
readonly date: Schema.String;
|
|
920
|
-
readonly title: Schema.String;
|
|
921
|
-
}>;
|
|
922
|
-
readonly choices: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
923
|
-
readonly label: Schema.mutableKey<Schema.String>;
|
|
924
|
-
readonly value: Schema.mutableKey<Schema.Boolean>;
|
|
925
|
-
}>>>;
|
|
926
|
-
}>, Schema.Struct<{
|
|
927
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
928
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
929
|
-
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
930
|
-
readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
|
|
931
|
-
readonly questionNumber: Schema.Finite;
|
|
932
|
-
readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
|
|
933
|
-
readonly bodyKind: Schema.Literal<"answer">;
|
|
934
|
-
readonly kind: Schema.Literal<"question-body">;
|
|
935
|
-
readonly metadata: Schema.Struct<{
|
|
936
|
-
readonly authors: Schema.$Array<Schema.Struct<{
|
|
937
|
-
readonly name: Schema.String;
|
|
938
|
-
}>>;
|
|
939
|
-
readonly date: Schema.String;
|
|
940
|
-
readonly title: Schema.String;
|
|
941
|
-
}>;
|
|
942
|
-
}>]>]>]>;
|
|
834
|
+
}>]>]>;
|
|
943
835
|
}>, Schema.Struct<{
|
|
944
836
|
readonly change: Schema.Struct<{
|
|
945
837
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
@@ -1066,7 +958,7 @@ export declare const RollbackRecordSchema: Schema.Struct<{
|
|
|
1066
958
|
}>;
|
|
1067
959
|
readonly sitemap: Schema.Literal<true>;
|
|
1068
960
|
readonly sourcePath: Schema.brand<Schema.String, "@NakafaAI/AksaraCorpusSourcePath">;
|
|
1069
|
-
}>, Schema.Union<readonly [Schema.
|
|
961
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
1070
962
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
1071
963
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1072
964
|
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
@@ -1142,43 +1034,7 @@ export declare const RollbackRecordSchema: Schema.Struct<{
|
|
|
1142
1034
|
readonly title: Schema.String;
|
|
1143
1035
|
}>;
|
|
1144
1036
|
readonly stimulusKey: Schema.optionalKey<Schema.String>;
|
|
1145
|
-
}>]
|
|
1146
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
1147
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1148
|
-
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1149
|
-
readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
|
|
1150
|
-
readonly questionNumber: Schema.Finite;
|
|
1151
|
-
readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
|
|
1152
|
-
readonly bodyKind: Schema.Literal<"question">;
|
|
1153
|
-
readonly kind: Schema.Literal<"question-body">;
|
|
1154
|
-
readonly metadata: Schema.Struct<{
|
|
1155
|
-
readonly authors: Schema.$Array<Schema.Struct<{
|
|
1156
|
-
readonly name: Schema.String;
|
|
1157
|
-
}>>;
|
|
1158
|
-
readonly date: Schema.String;
|
|
1159
|
-
readonly title: Schema.String;
|
|
1160
|
-
}>;
|
|
1161
|
-
readonly choices: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
1162
|
-
readonly label: Schema.mutableKey<Schema.String>;
|
|
1163
|
-
readonly value: Schema.mutableKey<Schema.Boolean>;
|
|
1164
|
-
}>>>;
|
|
1165
|
-
}>, Schema.Struct<{
|
|
1166
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
1167
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1168
|
-
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1169
|
-
readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
|
|
1170
|
-
readonly questionNumber: Schema.Finite;
|
|
1171
|
-
readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
|
|
1172
|
-
readonly bodyKind: Schema.Literal<"answer">;
|
|
1173
|
-
readonly kind: Schema.Literal<"question-body">;
|
|
1174
|
-
readonly metadata: Schema.Struct<{
|
|
1175
|
-
readonly authors: Schema.$Array<Schema.Struct<{
|
|
1176
|
-
readonly name: Schema.String;
|
|
1177
|
-
}>>;
|
|
1178
|
-
readonly date: Schema.String;
|
|
1179
|
-
readonly title: Schema.String;
|
|
1180
|
-
}>;
|
|
1181
|
-
}>]>]>]>;
|
|
1037
|
+
}>]>]>;
|
|
1182
1038
|
}>, Schema.Struct<{
|
|
1183
1039
|
readonly change: Schema.Struct<{
|
|
1184
1040
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
@@ -1319,7 +1175,7 @@ export declare const RollbackPageSchema: Schema.Struct<{
|
|
|
1319
1175
|
}>;
|
|
1320
1176
|
readonly sitemap: Schema.Literal<true>;
|
|
1321
1177
|
readonly sourcePath: Schema.brand<Schema.String, "@NakafaAI/AksaraCorpusSourcePath">;
|
|
1322
|
-
}>, Schema.Union<readonly [Schema.
|
|
1178
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
1323
1179
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
1324
1180
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1325
1181
|
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
@@ -1395,43 +1251,7 @@ export declare const RollbackPageSchema: Schema.Struct<{
|
|
|
1395
1251
|
readonly title: Schema.String;
|
|
1396
1252
|
}>;
|
|
1397
1253
|
readonly stimulusKey: Schema.optionalKey<Schema.String>;
|
|
1398
|
-
}>]
|
|
1399
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
1400
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1401
|
-
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1402
|
-
readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
|
|
1403
|
-
readonly questionNumber: Schema.Finite;
|
|
1404
|
-
readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
|
|
1405
|
-
readonly bodyKind: Schema.Literal<"question">;
|
|
1406
|
-
readonly kind: Schema.Literal<"question-body">;
|
|
1407
|
-
readonly metadata: Schema.Struct<{
|
|
1408
|
-
readonly authors: Schema.$Array<Schema.Struct<{
|
|
1409
|
-
readonly name: Schema.String;
|
|
1410
|
-
}>>;
|
|
1411
|
-
readonly date: Schema.String;
|
|
1412
|
-
readonly title: Schema.String;
|
|
1413
|
-
}>;
|
|
1414
|
-
readonly choices: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
1415
|
-
readonly label: Schema.mutableKey<Schema.String>;
|
|
1416
|
-
readonly value: Schema.mutableKey<Schema.Boolean>;
|
|
1417
|
-
}>>>;
|
|
1418
|
-
}>, Schema.Struct<{
|
|
1419
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
1420
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1421
|
-
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1422
|
-
readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
|
|
1423
|
-
readonly questionNumber: Schema.Finite;
|
|
1424
|
-
readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
|
|
1425
|
-
readonly bodyKind: Schema.Literal<"answer">;
|
|
1426
|
-
readonly kind: Schema.Literal<"question-body">;
|
|
1427
|
-
readonly metadata: Schema.Struct<{
|
|
1428
|
-
readonly authors: Schema.$Array<Schema.Struct<{
|
|
1429
|
-
readonly name: Schema.String;
|
|
1430
|
-
}>>;
|
|
1431
|
-
readonly date: Schema.String;
|
|
1432
|
-
readonly title: Schema.String;
|
|
1433
|
-
}>;
|
|
1434
|
-
}>]>]>]>;
|
|
1254
|
+
}>]>]>;
|
|
1435
1255
|
}>, Schema.Struct<{
|
|
1436
1256
|
readonly change: Schema.Struct<{
|
|
1437
1257
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
@@ -1558,7 +1378,7 @@ export declare const RollbackPageSchema: Schema.Struct<{
|
|
|
1558
1378
|
}>;
|
|
1559
1379
|
readonly sitemap: Schema.Literal<true>;
|
|
1560
1380
|
readonly sourcePath: Schema.brand<Schema.String, "@NakafaAI/AksaraCorpusSourcePath">;
|
|
1561
|
-
}>, Schema.Union<readonly [Schema.
|
|
1381
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
1562
1382
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
1563
1383
|
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1564
1384
|
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
@@ -1634,43 +1454,7 @@ export declare const RollbackPageSchema: Schema.Struct<{
|
|
|
1634
1454
|
readonly title: Schema.String;
|
|
1635
1455
|
}>;
|
|
1636
1456
|
readonly stimulusKey: Schema.optionalKey<Schema.String>;
|
|
1637
|
-
}>]
|
|
1638
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
1639
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1640
|
-
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1641
|
-
readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
|
|
1642
|
-
readonly questionNumber: Schema.Finite;
|
|
1643
|
-
readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
|
|
1644
|
-
readonly bodyKind: Schema.Literal<"question">;
|
|
1645
|
-
readonly kind: Schema.Literal<"question-body">;
|
|
1646
|
-
readonly metadata: Schema.Struct<{
|
|
1647
|
-
readonly authors: Schema.$Array<Schema.Struct<{
|
|
1648
|
-
readonly name: Schema.String;
|
|
1649
|
-
}>>;
|
|
1650
|
-
readonly date: Schema.String;
|
|
1651
|
-
readonly title: Schema.String;
|
|
1652
|
-
}>;
|
|
1653
|
-
readonly choices: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
1654
|
-
readonly label: Schema.mutableKey<Schema.String>;
|
|
1655
|
-
readonly value: Schema.mutableKey<Schema.Boolean>;
|
|
1656
|
-
}>>>;
|
|
1657
|
-
}>, Schema.Struct<{
|
|
1658
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
1659
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1660
|
-
readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
1661
|
-
readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
|
|
1662
|
-
readonly questionNumber: Schema.Finite;
|
|
1663
|
-
readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
|
|
1664
|
-
readonly bodyKind: Schema.Literal<"answer">;
|
|
1665
|
-
readonly kind: Schema.Literal<"question-body">;
|
|
1666
|
-
readonly metadata: Schema.Struct<{
|
|
1667
|
-
readonly authors: Schema.$Array<Schema.Struct<{
|
|
1668
|
-
readonly name: Schema.String;
|
|
1669
|
-
}>>;
|
|
1670
|
-
readonly date: Schema.String;
|
|
1671
|
-
readonly title: Schema.String;
|
|
1672
|
-
}>;
|
|
1673
|
-
}>]>]>]>;
|
|
1457
|
+
}>]>]>;
|
|
1674
1458
|
}>, Schema.Struct<{
|
|
1675
1459
|
readonly change: Schema.Struct<{
|
|
1676
1460
|
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
@@ -1,60 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Schema } from "effect";
|
|
2
2
|
/** Fixed structured families selected by the one global release pointer. */
|
|
3
3
|
export declare const ContentSnapshotKindSchema: Schema.Literals<readonly ["program", "quran", "tryout"]>;
|
|
4
4
|
export type ContentSnapshotKind = typeof ContentSnapshotKindSchema.Type;
|
|
5
|
-
/**
|
|
6
|
-
export declare const PredecessorContentPublicationIdentitySchema: Schema.Struct<{
|
|
7
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
8
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
9
|
-
readonly family: Schema.Literals<readonly ["article", "material", "page", "question"]>;
|
|
10
|
-
}>;
|
|
11
|
-
export type PredecessorContentPublicationIdentity = typeof PredecessorContentPublicationIdentitySchema.Type;
|
|
12
|
-
/** Content and structured families authenticated from any signed release. */
|
|
5
|
+
/** Whole content and structured families authenticated by one signed release. */
|
|
13
6
|
export declare const PublicationScopeSchema: Schema.Struct<{
|
|
14
|
-
content: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
15
|
-
readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
|
|
16
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
17
|
-
readonly family: Schema.Literals<readonly ["article", "material", "page", "question"]>;
|
|
18
|
-
}>>>;
|
|
19
|
-
families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
|
|
20
|
-
snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
|
|
21
|
-
}>;
|
|
22
|
-
export type PublicationScope = typeof PublicationScopeSchema.Type;
|
|
23
|
-
/** Whole-family scope accepted when preparing a new Git release. */
|
|
24
|
-
export declare const GitPublicationScopeSchema: Schema.Struct<{
|
|
25
7
|
readonly families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
|
|
26
8
|
readonly snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
|
|
27
9
|
}>;
|
|
28
|
-
export type
|
|
29
|
-
declare const GitPublicationScopeError_base: Schema.Class<GitPublicationScopeError, Schema.TaggedStruct<"GitPublicationScopeError", {}>, import("effect/Cause").YieldableError>;
|
|
30
|
-
/** New Git release preparation received predecessor-only exact selection. */
|
|
31
|
-
export declare class GitPublicationScopeError extends GitPublicationScopeError_base {
|
|
32
|
-
}
|
|
33
|
-
/** Rejects predecessor-only fields before any new release work begins. */
|
|
34
|
-
export declare const verifyGitPublicationScope: (scope: {
|
|
35
|
-
readonly content?: readonly {
|
|
36
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
37
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
38
|
-
readonly family: "article" | "material" | "page" | "question";
|
|
39
|
-
}[] | undefined;
|
|
40
|
-
readonly families: readonly ("article" | "material" | "page" | "question")[];
|
|
41
|
-
readonly snapshots: readonly ("program" | "quran" | "tryout")[];
|
|
42
|
-
}) => Effect.Effect<{
|
|
43
|
-
readonly families: readonly ("article" | "material" | "page" | "question")[];
|
|
44
|
-
readonly snapshots: readonly ("program" | "quran" | "tryout")[];
|
|
45
|
-
}, GitPublicationScopeError, never>;
|
|
46
|
-
/** Checks whether one body transition is authorized by the signed scope. */
|
|
47
|
-
export declare function publicationScopeSelectsContent(scope: PublicationScope, identity: PredecessorContentPublicationIdentity): boolean;
|
|
48
|
-
/** Checks whether one structured family may be replaced by this release. */
|
|
49
|
-
export declare function publicationScopeSelectsSnapshot(scope: PublicationScope, family: ContentSnapshotKind): boolean;
|
|
10
|
+
export type PublicationScope = typeof PublicationScopeSchema.Type;
|
|
50
11
|
/** Serializes one publication scope with stable signed field order. */
|
|
51
12
|
export declare function canonicalizePublicationScope(scope: PublicationScope): {
|
|
52
|
-
content?: {
|
|
53
|
-
artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
54
|
-
contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
55
|
-
family: "article" | "material" | "page" | "question";
|
|
56
|
-
}[];
|
|
57
13
|
families: ("article" | "material" | "page" | "question")[];
|
|
58
14
|
snapshots: ("program" | "quran" | "tryout")[];
|
|
59
15
|
};
|
|
60
|
-
export {};
|
|
@@ -1,38 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ContentFamilySchema
|
|
3
|
-
import { ContentKeySchema } from "#contracts/ids";
|
|
4
|
-
import { ArtifactLocaleSchema } from "#contracts/locale";
|
|
5
|
-
import { compareCodeUnits } from "#contracts/text/order";
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { ContentFamilySchema } from "#contracts/content";
|
|
6
3
|
/** Fixed structured families selected by the one global release pointer. */
|
|
7
4
|
export const ContentSnapshotKindSchema = Schema.Literals([
|
|
8
5
|
"program",
|
|
9
6
|
"quran",
|
|
10
7
|
"tryout",
|
|
11
8
|
]);
|
|
12
|
-
/** Authenticates exact content selection retained by predecessor releases. */
|
|
13
|
-
export const PredecessorContentPublicationIdentitySchema = Schema.Struct({
|
|
14
|
-
artifactLocale: ArtifactLocaleSchema,
|
|
15
|
-
contentKey: ContentKeySchema,
|
|
16
|
-
family: ContentFamilySchema,
|
|
17
|
-
});
|
|
18
|
-
/** Orders predecessor scope identities exactly as their signed release did. */
|
|
19
|
-
function comparePredecessorPublicationIdentities(left, right) {
|
|
20
|
-
const familyOrder = compareCodeUnits(left.family, right.family);
|
|
21
|
-
return familyOrder || compareContentHeads(left, right);
|
|
22
|
-
}
|
|
23
|
-
/** Accepts only canonical predecessor identities outside selected families. */
|
|
24
|
-
function hasCanonicalPredecessorContent(content, families) {
|
|
25
|
-
const ordered = content.every((identity, index) => {
|
|
26
|
-
const previous = content[index - 1];
|
|
27
|
-
return (previous === undefined ||
|
|
28
|
-
comparePredecessorPublicationIdentities(previous, identity) < 0);
|
|
29
|
-
});
|
|
30
|
-
return ordered && content.every(({ family }) => !families.includes(family));
|
|
31
|
-
}
|
|
32
9
|
/** Checks strict canonical ordering for selected content and snapshot families. */
|
|
33
10
|
function hasCanonicalPublicationScope(input) {
|
|
34
|
-
const content = input.content ?? [];
|
|
35
|
-
const contentIsCanonical = hasCanonicalPredecessorContent(content, input.families);
|
|
36
11
|
const snapshotsAreCanonical = input.snapshots.every((family, index) => {
|
|
37
12
|
const previous = input.snapshots[index - 1];
|
|
38
13
|
return (previous === undefined ||
|
|
@@ -45,57 +20,20 @@ function hasCanonicalPublicationScope(input) {
|
|
|
45
20
|
ContentFamilySchema.literals.indexOf(previous) <
|
|
46
21
|
ContentFamilySchema.literals.indexOf(family));
|
|
47
22
|
});
|
|
48
|
-
return (
|
|
49
|
-
familiesAreCanonical &&
|
|
23
|
+
return (familiesAreCanonical &&
|
|
50
24
|
snapshotsAreCanonical &&
|
|
51
|
-
|
|
25
|
+
input.families.length + input.snapshots.length > 0);
|
|
52
26
|
}
|
|
53
|
-
|
|
54
|
-
|
|
27
|
+
/** Whole content and structured families authenticated by one signed release. */
|
|
28
|
+
export const PublicationScopeSchema = Schema.Struct({
|
|
55
29
|
families: Schema.Array(ContentFamilySchema),
|
|
56
30
|
snapshots: Schema.Array(ContentSnapshotKindSchema),
|
|
57
|
-
};
|
|
58
|
-
/** Content and structured families authenticated from any signed release. */
|
|
59
|
-
export const PublicationScopeSchema = Schema.Struct(PublicationScopeFields).pipe(Schema.check(Schema.makeFilter(hasCanonicalPublicationScope, {
|
|
60
|
-
message: "Expected a non-empty publication scope in canonical unique order.",
|
|
61
|
-
})));
|
|
62
|
-
/** Whole-family scope accepted when preparing a new Git release. */
|
|
63
|
-
export const GitPublicationScopeSchema = Schema.Struct({
|
|
64
|
-
families: PublicationScopeFields.families,
|
|
65
|
-
snapshots: PublicationScopeFields.snapshots,
|
|
66
31
|
}).pipe(Schema.check(Schema.makeFilter(hasCanonicalPublicationScope, {
|
|
67
|
-
message: "Expected a non-empty
|
|
32
|
+
message: "Expected a non-empty publication scope in canonical unique order.",
|
|
68
33
|
})));
|
|
69
|
-
/** New Git release preparation received predecessor-only exact selection. */
|
|
70
|
-
export class GitPublicationScopeError extends Schema.TaggedError()("GitPublicationScopeError", {}) {
|
|
71
|
-
}
|
|
72
|
-
/** Rejects predecessor-only fields before any new release work begins. */
|
|
73
|
-
export const verifyGitPublicationScope = Effect.fn("AksaraContracts.verifyGitPublicationScope")((scope) => Schema.decodeEffect(GitPublicationScopeSchema)(scope, {
|
|
74
|
-
onExcessProperty: "error",
|
|
75
|
-
}).pipe(Effect.mapError(() => new GitPublicationScopeError())));
|
|
76
|
-
/** Checks whether one body transition is authorized by the signed scope. */
|
|
77
|
-
export function publicationScopeSelectsContent(scope, identity) {
|
|
78
|
-
return (scope.families.includes(identity.family) ||
|
|
79
|
-
scope.content?.some((selected) => selected.artifactLocale === identity.artifactLocale &&
|
|
80
|
-
selected.contentKey === identity.contentKey &&
|
|
81
|
-
selected.family === identity.family) === true);
|
|
82
|
-
}
|
|
83
|
-
/** Checks whether one structured family may be replaced by this release. */
|
|
84
|
-
export function publicationScopeSelectsSnapshot(scope, family) {
|
|
85
|
-
return scope.snapshots.includes(family);
|
|
86
|
-
}
|
|
87
34
|
/** Serializes one publication scope with stable signed field order. */
|
|
88
35
|
export function canonicalizePublicationScope(scope) {
|
|
89
36
|
return {
|
|
90
|
-
...(scope.content === undefined
|
|
91
|
-
? {}
|
|
92
|
-
: {
|
|
93
|
-
content: scope.content.map(({ artifactLocale, contentKey, family }) => ({
|
|
94
|
-
artifactLocale,
|
|
95
|
-
contentKey,
|
|
96
|
-
family,
|
|
97
|
-
})),
|
|
98
|
-
}),
|
|
99
37
|
families: [...scope.families],
|
|
100
38
|
snapshots: [...scope.snapshots],
|
|
101
39
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Signed structured snapshot transition contracts. */
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { Sha256HashSchema } from "#contracts/ids";
|
|
4
|
-
import { ContentSnapshotKindSchema,
|
|
4
|
+
import { ContentSnapshotKindSchema, } from "#contracts/release/snapshot/scope";
|
|
5
5
|
/** Canonical digest for a release that stages no structured snapshot rows. */
|
|
6
6
|
export const EMPTY_SNAPSHOT_ROW_DIGEST = Sha256HashSchema.make("sha256:eb27aa7f59e41b14a3f76d951c5a50cb954a19f3f6e6c44bc21a733f606e888f");
|
|
7
7
|
const RowCountSchema = Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0)));
|
|
@@ -23,8 +23,7 @@ export const ContentSnapshotSetSchema = Schema.Struct({
|
|
|
23
23
|
});
|
|
24
24
|
/** Requires every unselected structured family to remain inherited. */
|
|
25
25
|
export function hasScopedSnapshotTransitions(scope, snapshots) {
|
|
26
|
-
return ContentSnapshotKindSchema.literals.every((family) =>
|
|
27
|
-
snapshots[family].mode === "inherit");
|
|
26
|
+
return ContentSnapshotKindSchema.literals.every((family) => scope.snapshots.includes(family) || snapshots[family].mode === "inherit");
|
|
28
27
|
}
|
|
29
28
|
/** Checks inheritance, replacement, and forward restore row semantics. */
|
|
30
29
|
export function hasCoherentSnapshotState(state) {
|
package/dist/release/spec.d.ts
CHANGED
|
@@ -91,13 +91,8 @@ export declare const ContentReleaseManifestSchema: Schema.Struct<{
|
|
|
91
91
|
readonly routeCount: Schema.Finite;
|
|
92
92
|
readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
93
93
|
readonly scope: Schema.Struct<{
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
97
|
-
readonly family: Schema.Literals<readonly ["article", "material", "page", "question"]>;
|
|
98
|
-
}>>>;
|
|
99
|
-
families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
|
|
100
|
-
snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
|
|
94
|
+
readonly families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
|
|
95
|
+
readonly snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
|
|
101
96
|
}>;
|
|
102
97
|
readonly snapshots: Schema.Struct<{
|
|
103
98
|
readonly program: Schema.Struct<{
|
|
@@ -158,13 +153,8 @@ export declare const SignedContentReleaseSchema: Schema.Struct<{
|
|
|
158
153
|
readonly routeCount: Schema.Finite;
|
|
159
154
|
readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
160
155
|
readonly scope: Schema.Struct<{
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
164
|
-
readonly family: Schema.Literals<readonly ["article", "material", "page", "question"]>;
|
|
165
|
-
}>>>;
|
|
166
|
-
families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
|
|
167
|
-
snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
|
|
156
|
+
readonly families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
|
|
157
|
+
readonly snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
|
|
168
158
|
}>;
|
|
169
159
|
readonly snapshots: Schema.Struct<{
|
|
170
160
|
readonly program: Schema.Struct<{
|
|
@@ -239,13 +229,8 @@ export declare const RollbackSignedContentReleaseSchema: Schema.refine<RollbackS
|
|
|
239
229
|
readonly routeCount: Schema.Finite;
|
|
240
230
|
readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
241
231
|
readonly scope: Schema.Struct<{
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
245
|
-
readonly family: Schema.Literals<readonly ["article", "material", "page", "question"]>;
|
|
246
|
-
}>>>;
|
|
247
|
-
families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
|
|
248
|
-
snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
|
|
232
|
+
readonly families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
|
|
233
|
+
readonly snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
|
|
249
234
|
}>;
|
|
250
235
|
readonly snapshots: Schema.Struct<{
|
|
251
236
|
readonly program: Schema.Struct<{
|
package/dist/release/verify.d.ts
CHANGED
|
@@ -51,11 +51,6 @@ export declare const verifySignedContentRelease: (input: unknown) => Effect.Effe
|
|
|
51
51
|
readonly routeCount: number;
|
|
52
52
|
readonly routeDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
53
53
|
readonly scope: {
|
|
54
|
-
readonly content?: readonly {
|
|
55
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
56
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
57
|
-
readonly family: "article" | "material" | "page" | "question";
|
|
58
|
-
}[] | undefined;
|
|
59
54
|
readonly families: readonly ("article" | "material" | "page" | "question")[];
|
|
60
55
|
readonly snapshots: readonly ("program" | "quran" | "tryout")[];
|
|
61
56
|
};
|
package/dist/runtime/spec.d.ts
CHANGED
|
@@ -66,13 +66,8 @@ export declare const PublicContentRuntimeFoundSchema: Schema.Struct<{
|
|
|
66
66
|
readonly routeCount: Schema.Finite;
|
|
67
67
|
readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
68
68
|
readonly scope: Schema.Struct<{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
72
|
-
readonly family: Schema.Literals<readonly ["article", "material", "page", "question"]>;
|
|
73
|
-
}>>>;
|
|
74
|
-
families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
|
|
75
|
-
snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
|
|
69
|
+
readonly families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
|
|
70
|
+
readonly snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
|
|
76
71
|
}>;
|
|
77
72
|
readonly snapshots: Schema.Struct<{
|
|
78
73
|
readonly program: Schema.Struct<{
|
|
@@ -278,13 +273,8 @@ export declare const PublicContentRuntimeResponseSchema: Schema.Union<readonly [
|
|
|
278
273
|
readonly routeCount: Schema.Finite;
|
|
279
274
|
readonly routeDigest: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
280
275
|
readonly scope: Schema.Struct<{
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
|
|
284
|
-
readonly family: Schema.Literals<readonly ["article", "material", "page", "question"]>;
|
|
285
|
-
}>>>;
|
|
286
|
-
families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
|
|
287
|
-
snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
|
|
276
|
+
readonly families: Schema.$Array<Schema.Literals<readonly ["article", "material", "page", "question"]>>;
|
|
277
|
+
readonly snapshots: Schema.$Array<Schema.Literals<readonly ["program", "quran", "tryout"]>>;
|
|
288
278
|
}>;
|
|
289
279
|
readonly snapshots: Schema.Struct<{
|
|
290
280
|
readonly program: Schema.Struct<{
|
|
@@ -501,11 +491,6 @@ export declare const decodePublicContentRuntimeResponse: (input: unknown) => Eff
|
|
|
501
491
|
readonly routeCount: number;
|
|
502
492
|
readonly routeDigest: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
|
|
503
493
|
readonly scope: {
|
|
504
|
-
readonly content?: readonly {
|
|
505
|
-
readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
|
|
506
|
-
readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
|
|
507
|
-
readonly family: "article" | "material" | "page" | "question";
|
|
508
|
-
}[] | undefined;
|
|
509
494
|
readonly families: readonly ("article" | "material" | "page" | "question")[];
|
|
510
495
|
readonly snapshots: readonly ("program" | "quran" | "tryout")[];
|
|
511
496
|
};
|