@nakafa/aksara-contracts 0.43.0 → 0.45.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.
Files changed (77) hide show
  1. package/README.md +22 -1
  2. package/dist/math/resolution.js +1 -1
  3. package/dist/math/scene.js +1 -1
  4. package/dist/preview/artifact.d.ts +44 -0
  5. package/dist/preview/document.d.ts +36 -12
  6. package/dist/preview/spec.d.ts +196 -36
  7. package/dist/preview/target.d.ts +10 -3
  8. package/dist/program/snapshot/digest.d.ts +1 -1
  9. package/dist/program/snapshot/digest.js +1 -1
  10. package/dist/program/snapshot/hash.d.ts +153 -0
  11. package/dist/program/snapshot/hash.js +31 -0
  12. package/dist/projection/digest.d.ts +74 -22
  13. package/dist/projection/material.d.ts +10 -0
  14. package/dist/projection/material.js +15 -0
  15. package/dist/projection/question.d.ts +188 -0
  16. package/dist/projection/spec.d.ts +45 -0
  17. package/dist/projection/verify.d.ts +127 -75
  18. package/dist/question/answer.d.ts +149 -0
  19. package/dist/question/answer.js +248 -0
  20. package/dist/question/item.d.ts +276 -1
  21. package/dist/question/item.js +63 -38
  22. package/dist/question/label.d.ts +3 -0
  23. package/dist/question/label.js +3 -0
  24. package/dist/question/points.d.ts +18 -0
  25. package/dist/question/points.js +22 -0
  26. package/dist/question/response.d.ts +187 -5
  27. package/dist/question/response.js +41 -4
  28. package/dist/question/rubric.d.ts +234 -0
  29. package/dist/question/rubric.js +182 -0
  30. package/dist/release/rollback/spec.d.ts +264 -0
  31. package/dist/release/snapshot/data.d.ts +52 -3
  32. package/dist/release/snapshot/{program-evidence.d.ts → evidence/program.d.ts} +2 -2
  33. package/dist/release/snapshot/{program-evidence.js → evidence/program.js} +1 -1
  34. package/dist/release/snapshot/{quran-evidence.d.ts → evidence/quran.d.ts} +2 -2
  35. package/dist/release/snapshot/{quran-evidence.js → evidence/quran.js} +1 -1
  36. package/dist/release/snapshot/{tryout-evidence.d.ts → evidence/tryout.d.ts} +2 -2
  37. package/dist/release/snapshot/{tryout-evidence.js → evidence/tryout.js} +4 -4
  38. package/dist/release/snapshot/evidence.d.ts +2 -2
  39. package/dist/release/snapshot/evidence.js +3 -3
  40. package/dist/release/snapshot/verify.d.ts +88 -31
  41. package/dist/runtime/spec.d.ts +25 -22
  42. package/dist/runtime/verify.d.ts +46 -44
  43. package/dist/transport/batch.d.ts +88 -0
  44. package/dist/transport/group.d.ts +288 -9
  45. package/dist/transport/request.d.ts +1858 -1018
  46. package/dist/transport/response.d.ts +499 -131
  47. package/dist/transport/snapshot.d.ts +104 -6
  48. package/dist/tryout/catalog.d.ts +28 -10
  49. package/dist/tryout/catalog.js +6 -2
  50. package/dist/tryout/closure/accounting.d.ts +16 -0
  51. package/dist/tryout/closure/accounting.js +68 -0
  52. package/dist/tryout/closure/locale.d.ts +14 -0
  53. package/dist/tryout/{locale-closure.js → closure/locale.js} +13 -72
  54. package/dist/tryout/{placement-closure.js → closure/placement.js} +1 -0
  55. package/dist/tryout/{catalog-hash.d.ts → hash/catalog.d.ts} +25 -20
  56. package/dist/tryout/{catalog-hash.js → hash/catalog.js} +8 -1
  57. package/dist/tryout/{content-hash.d.ts → hash/content.d.ts} +43 -0
  58. package/dist/tryout/{placement-hash.d.ts → hash/placement.d.ts} +1 -1
  59. package/dist/tryout/{placement-hash.js → hash/placement.js} +2 -1
  60. package/dist/tryout/placement.d.ts +136 -1
  61. package/dist/tryout/placement.js +16 -2
  62. package/dist/tryout/scoring.d.ts +37 -0
  63. package/dist/tryout/scoring.js +89 -0
  64. package/dist/tryout/spec.d.ts +32 -4
  65. package/dist/tryout/spec.js +35 -4
  66. package/package.json +28 -20
  67. package/dist/program/snapshot/row-hash.d.ts +0 -155
  68. package/dist/program/snapshot/row-hash.js +0 -34
  69. package/dist/tryout/locale-closure.d.ts +0 -20
  70. /package/dist/math/{arc-precision.d.ts → arc.d.ts} +0 -0
  71. /package/dist/math/{arc-precision.js → arc.js} +0 -0
  72. /package/dist/release/snapshot/{evidence-requirement.d.ts → evidence/requirement.d.ts} +0 -0
  73. /package/dist/release/snapshot/{evidence-requirement.js → evidence/requirement.js} +0 -0
  74. /package/dist/tryout/{placement-closure.d.ts → closure/placement.d.ts} +0 -0
  75. /package/dist/tryout/{row-hash.d.ts → digest.d.ts} +0 -0
  76. /package/dist/tryout/{row-hash.js → digest.js} +0 -0
  77. /package/dist/tryout/{content-hash.js → hash/content.js} +0 -0
@@ -1084,6 +1084,7 @@ export declare const PublicationRollbackSuccessSchema: Schema.Struct<{
1084
1084
  readonly name: Schema.String;
1085
1085
  }>>;
1086
1086
  readonly description: Schema.optional<Schema.String>;
1087
+ readonly searchTitle: Schema.optionalKey<Schema.Trimmed>;
1087
1088
  readonly subject: Schema.optional<Schema.String>;
1088
1089
  readonly title: Schema.String;
1089
1090
  }>;
@@ -1149,6 +1150,49 @@ export declare const PublicationRollbackSuccessSchema: Schema.Struct<{
1149
1150
  readonly optionKey: Schema.String;
1150
1151
  readonly order: Schema.Int;
1151
1152
  }>>;
1153
+ }>, Schema.Struct<{
1154
+ readonly criteria: Schema.$Array<Schema.Struct<{
1155
+ readonly criterionKey: Schema.String;
1156
+ readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1157
+ readonly acceptsFractions: Schema.Boolean;
1158
+ readonly kind: Schema.Literal<"number">;
1159
+ readonly tolerance: Schema.optionalKey<Schema.Struct<{
1160
+ readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
1161
+ readonly value: Schema.String;
1162
+ }>>;
1163
+ readonly value: Schema.String;
1164
+ }>, Schema.Struct<{
1165
+ readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
1166
+ readonly collapseWhitespace: Schema.Boolean;
1167
+ readonly ignoreCase: Schema.Boolean;
1168
+ readonly kind: Schema.Literal<"text">;
1169
+ }>]>>;
1170
+ readonly order: Schema.Int;
1171
+ readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
1172
+ readonly levels: Schema.$Array<Schema.Struct<{
1173
+ readonly levelKey: Schema.String;
1174
+ readonly order: Schema.Int;
1175
+ readonly points: Schema.Int;
1176
+ readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
1177
+ }>>;
1178
+ }>>;
1179
+ readonly kind: Schema.Literal<"rubric">;
1180
+ }>, Schema.Struct<{
1181
+ readonly key: Schema.Union<readonly [Schema.Struct<{
1182
+ readonly acceptsFractions: Schema.Boolean;
1183
+ readonly kind: Schema.Literal<"number">;
1184
+ readonly tolerance: Schema.optionalKey<Schema.Struct<{
1185
+ readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
1186
+ readonly value: Schema.String;
1187
+ }>>;
1188
+ readonly value: Schema.String;
1189
+ }>, Schema.Struct<{
1190
+ readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
1191
+ readonly collapseWhitespace: Schema.Boolean;
1192
+ readonly ignoreCase: Schema.Boolean;
1193
+ readonly kind: Schema.Literal<"text">;
1194
+ }>]>;
1195
+ readonly kind: Schema.Literal<"short-answer">;
1152
1196
  }>, Schema.Struct<{
1153
1197
  readonly kind: Schema.Literal<"single-choice">;
1154
1198
  readonly options: Schema.$Array<Schema.Struct<{
@@ -1284,6 +1328,7 @@ export declare const PublicationRollbackSuccessSchema: Schema.Struct<{
1284
1328
  readonly name: Schema.String;
1285
1329
  }>>;
1286
1330
  readonly description: Schema.optional<Schema.String>;
1331
+ readonly searchTitle: Schema.optionalKey<Schema.Trimmed>;
1287
1332
  readonly subject: Schema.optional<Schema.String>;
1288
1333
  readonly title: Schema.String;
1289
1334
  }>;
@@ -1349,6 +1394,49 @@ export declare const PublicationRollbackSuccessSchema: Schema.Struct<{
1349
1394
  readonly optionKey: Schema.String;
1350
1395
  readonly order: Schema.Int;
1351
1396
  }>>;
1397
+ }>, Schema.Struct<{
1398
+ readonly criteria: Schema.$Array<Schema.Struct<{
1399
+ readonly criterionKey: Schema.String;
1400
+ readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1401
+ readonly acceptsFractions: Schema.Boolean;
1402
+ readonly kind: Schema.Literal<"number">;
1403
+ readonly tolerance: Schema.optionalKey<Schema.Struct<{
1404
+ readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
1405
+ readonly value: Schema.String;
1406
+ }>>;
1407
+ readonly value: Schema.String;
1408
+ }>, Schema.Struct<{
1409
+ readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
1410
+ readonly collapseWhitespace: Schema.Boolean;
1411
+ readonly ignoreCase: Schema.Boolean;
1412
+ readonly kind: Schema.Literal<"text">;
1413
+ }>]>>;
1414
+ readonly order: Schema.Int;
1415
+ readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
1416
+ readonly levels: Schema.$Array<Schema.Struct<{
1417
+ readonly levelKey: Schema.String;
1418
+ readonly order: Schema.Int;
1419
+ readonly points: Schema.Int;
1420
+ readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
1421
+ }>>;
1422
+ }>>;
1423
+ readonly kind: Schema.Literal<"rubric">;
1424
+ }>, Schema.Struct<{
1425
+ readonly key: Schema.Union<readonly [Schema.Struct<{
1426
+ readonly acceptsFractions: Schema.Boolean;
1427
+ readonly kind: Schema.Literal<"number">;
1428
+ readonly tolerance: Schema.optionalKey<Schema.Struct<{
1429
+ readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
1430
+ readonly value: Schema.String;
1431
+ }>>;
1432
+ readonly value: Schema.String;
1433
+ }>, Schema.Struct<{
1434
+ readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
1435
+ readonly collapseWhitespace: Schema.Boolean;
1436
+ readonly ignoreCase: Schema.Boolean;
1437
+ readonly kind: Schema.Literal<"text">;
1438
+ }>]>;
1439
+ readonly kind: Schema.Literal<"short-answer">;
1352
1440
  }>, Schema.Struct<{
1353
1441
  readonly kind: Schema.Literal<"single-choice">;
1354
1442
  readonly options: Schema.$Array<Schema.Struct<{
@@ -2438,6 +2526,7 @@ export declare const PublicationSuccessSchema: Schema.Union<readonly [Schema.Str
2438
2526
  readonly name: Schema.String;
2439
2527
  }>>;
2440
2528
  readonly description: Schema.optional<Schema.String>;
2529
+ readonly searchTitle: Schema.optionalKey<Schema.Trimmed>;
2441
2530
  readonly subject: Schema.optional<Schema.String>;
2442
2531
  readonly title: Schema.String;
2443
2532
  }>;
@@ -2503,6 +2592,49 @@ export declare const PublicationSuccessSchema: Schema.Union<readonly [Schema.Str
2503
2592
  readonly optionKey: Schema.String;
2504
2593
  readonly order: Schema.Int;
2505
2594
  }>>;
2595
+ }>, Schema.Struct<{
2596
+ readonly criteria: Schema.$Array<Schema.Struct<{
2597
+ readonly criterionKey: Schema.String;
2598
+ readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2599
+ readonly acceptsFractions: Schema.Boolean;
2600
+ readonly kind: Schema.Literal<"number">;
2601
+ readonly tolerance: Schema.optionalKey<Schema.Struct<{
2602
+ readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
2603
+ readonly value: Schema.String;
2604
+ }>>;
2605
+ readonly value: Schema.String;
2606
+ }>, Schema.Struct<{
2607
+ readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
2608
+ readonly collapseWhitespace: Schema.Boolean;
2609
+ readonly ignoreCase: Schema.Boolean;
2610
+ readonly kind: Schema.Literal<"text">;
2611
+ }>]>>;
2612
+ readonly order: Schema.Int;
2613
+ readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
2614
+ readonly levels: Schema.$Array<Schema.Struct<{
2615
+ readonly levelKey: Schema.String;
2616
+ readonly order: Schema.Int;
2617
+ readonly points: Schema.Int;
2618
+ readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
2619
+ }>>;
2620
+ }>>;
2621
+ readonly kind: Schema.Literal<"rubric">;
2622
+ }>, Schema.Struct<{
2623
+ readonly key: Schema.Union<readonly [Schema.Struct<{
2624
+ readonly acceptsFractions: Schema.Boolean;
2625
+ readonly kind: Schema.Literal<"number">;
2626
+ readonly tolerance: Schema.optionalKey<Schema.Struct<{
2627
+ readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
2628
+ readonly value: Schema.String;
2629
+ }>>;
2630
+ readonly value: Schema.String;
2631
+ }>, Schema.Struct<{
2632
+ readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
2633
+ readonly collapseWhitespace: Schema.Boolean;
2634
+ readonly ignoreCase: Schema.Boolean;
2635
+ readonly kind: Schema.Literal<"text">;
2636
+ }>]>;
2637
+ readonly kind: Schema.Literal<"short-answer">;
2506
2638
  }>, Schema.Struct<{
2507
2639
  readonly kind: Schema.Literal<"single-choice">;
2508
2640
  readonly options: Schema.$Array<Schema.Struct<{
@@ -2638,6 +2770,7 @@ export declare const PublicationSuccessSchema: Schema.Union<readonly [Schema.Str
2638
2770
  readonly name: Schema.String;
2639
2771
  }>>;
2640
2772
  readonly description: Schema.optional<Schema.String>;
2773
+ readonly searchTitle: Schema.optionalKey<Schema.Trimmed>;
2641
2774
  readonly subject: Schema.optional<Schema.String>;
2642
2775
  readonly title: Schema.String;
2643
2776
  }>;
@@ -2703,6 +2836,49 @@ export declare const PublicationSuccessSchema: Schema.Union<readonly [Schema.Str
2703
2836
  readonly optionKey: Schema.String;
2704
2837
  readonly order: Schema.Int;
2705
2838
  }>>;
2839
+ }>, Schema.Struct<{
2840
+ readonly criteria: Schema.$Array<Schema.Struct<{
2841
+ readonly criterionKey: Schema.String;
2842
+ readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2843
+ readonly acceptsFractions: Schema.Boolean;
2844
+ readonly kind: Schema.Literal<"number">;
2845
+ readonly tolerance: Schema.optionalKey<Schema.Struct<{
2846
+ readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
2847
+ readonly value: Schema.String;
2848
+ }>>;
2849
+ readonly value: Schema.String;
2850
+ }>, Schema.Struct<{
2851
+ readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
2852
+ readonly collapseWhitespace: Schema.Boolean;
2853
+ readonly ignoreCase: Schema.Boolean;
2854
+ readonly kind: Schema.Literal<"text">;
2855
+ }>]>>;
2856
+ readonly order: Schema.Int;
2857
+ readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
2858
+ readonly levels: Schema.$Array<Schema.Struct<{
2859
+ readonly levelKey: Schema.String;
2860
+ readonly order: Schema.Int;
2861
+ readonly points: Schema.Int;
2862
+ readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
2863
+ }>>;
2864
+ }>>;
2865
+ readonly kind: Schema.Literal<"rubric">;
2866
+ }>, Schema.Struct<{
2867
+ readonly key: Schema.Union<readonly [Schema.Struct<{
2868
+ readonly acceptsFractions: Schema.Boolean;
2869
+ readonly kind: Schema.Literal<"number">;
2870
+ readonly tolerance: Schema.optionalKey<Schema.Struct<{
2871
+ readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
2872
+ readonly value: Schema.String;
2873
+ }>>;
2874
+ readonly value: Schema.String;
2875
+ }>, Schema.Struct<{
2876
+ readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
2877
+ readonly collapseWhitespace: Schema.Boolean;
2878
+ readonly ignoreCase: Schema.Boolean;
2879
+ readonly kind: Schema.Literal<"text">;
2880
+ }>]>;
2881
+ readonly kind: Schema.Literal<"short-answer">;
2706
2882
  }>, Schema.Struct<{
2707
2883
  readonly kind: Schema.Literal<"single-choice">;
2708
2884
  readonly options: Schema.$Array<Schema.Struct<{
@@ -3858,6 +4034,7 @@ export declare const PublicationResponseSchema: Schema.Union<readonly [Schema.Un
3858
4034
  readonly name: Schema.String;
3859
4035
  }>>;
3860
4036
  readonly description: Schema.optional<Schema.String>;
4037
+ readonly searchTitle: Schema.optionalKey<Schema.Trimmed>;
3861
4038
  readonly subject: Schema.optional<Schema.String>;
3862
4039
  readonly title: Schema.String;
3863
4040
  }>;
@@ -3923,6 +4100,49 @@ export declare const PublicationResponseSchema: Schema.Union<readonly [Schema.Un
3923
4100
  readonly optionKey: Schema.String;
3924
4101
  readonly order: Schema.Int;
3925
4102
  }>>;
4103
+ }>, Schema.Struct<{
4104
+ readonly criteria: Schema.$Array<Schema.Struct<{
4105
+ readonly criterionKey: Schema.String;
4106
+ readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4107
+ readonly acceptsFractions: Schema.Boolean;
4108
+ readonly kind: Schema.Literal<"number">;
4109
+ readonly tolerance: Schema.optionalKey<Schema.Struct<{
4110
+ readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
4111
+ readonly value: Schema.String;
4112
+ }>>;
4113
+ readonly value: Schema.String;
4114
+ }>, Schema.Struct<{
4115
+ readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
4116
+ readonly collapseWhitespace: Schema.Boolean;
4117
+ readonly ignoreCase: Schema.Boolean;
4118
+ readonly kind: Schema.Literal<"text">;
4119
+ }>]>>;
4120
+ readonly order: Schema.Int;
4121
+ readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
4122
+ readonly levels: Schema.$Array<Schema.Struct<{
4123
+ readonly levelKey: Schema.String;
4124
+ readonly order: Schema.Int;
4125
+ readonly points: Schema.Int;
4126
+ readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
4127
+ }>>;
4128
+ }>>;
4129
+ readonly kind: Schema.Literal<"rubric">;
4130
+ }>, Schema.Struct<{
4131
+ readonly key: Schema.Union<readonly [Schema.Struct<{
4132
+ readonly acceptsFractions: Schema.Boolean;
4133
+ readonly kind: Schema.Literal<"number">;
4134
+ readonly tolerance: Schema.optionalKey<Schema.Struct<{
4135
+ readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
4136
+ readonly value: Schema.String;
4137
+ }>>;
4138
+ readonly value: Schema.String;
4139
+ }>, Schema.Struct<{
4140
+ readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
4141
+ readonly collapseWhitespace: Schema.Boolean;
4142
+ readonly ignoreCase: Schema.Boolean;
4143
+ readonly kind: Schema.Literal<"text">;
4144
+ }>]>;
4145
+ readonly kind: Schema.Literal<"short-answer">;
3926
4146
  }>, Schema.Struct<{
3927
4147
  readonly kind: Schema.Literal<"single-choice">;
3928
4148
  readonly options: Schema.$Array<Schema.Struct<{
@@ -4058,6 +4278,7 @@ export declare const PublicationResponseSchema: Schema.Union<readonly [Schema.Un
4058
4278
  readonly name: Schema.String;
4059
4279
  }>>;
4060
4280
  readonly description: Schema.optional<Schema.String>;
4281
+ readonly searchTitle: Schema.optionalKey<Schema.Trimmed>;
4061
4282
  readonly subject: Schema.optional<Schema.String>;
4062
4283
  readonly title: Schema.String;
4063
4284
  }>;
@@ -4123,6 +4344,49 @@ export declare const PublicationResponseSchema: Schema.Union<readonly [Schema.Un
4123
4344
  readonly optionKey: Schema.String;
4124
4345
  readonly order: Schema.Int;
4125
4346
  }>>;
4347
+ }>, Schema.Struct<{
4348
+ readonly criteria: Schema.$Array<Schema.Struct<{
4349
+ readonly criterionKey: Schema.String;
4350
+ readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4351
+ readonly acceptsFractions: Schema.Boolean;
4352
+ readonly kind: Schema.Literal<"number">;
4353
+ readonly tolerance: Schema.optionalKey<Schema.Struct<{
4354
+ readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
4355
+ readonly value: Schema.String;
4356
+ }>>;
4357
+ readonly value: Schema.String;
4358
+ }>, Schema.Struct<{
4359
+ readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
4360
+ readonly collapseWhitespace: Schema.Boolean;
4361
+ readonly ignoreCase: Schema.Boolean;
4362
+ readonly kind: Schema.Literal<"text">;
4363
+ }>]>>;
4364
+ readonly order: Schema.Int;
4365
+ readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
4366
+ readonly levels: Schema.$Array<Schema.Struct<{
4367
+ readonly levelKey: Schema.String;
4368
+ readonly order: Schema.Int;
4369
+ readonly points: Schema.Int;
4370
+ readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
4371
+ }>>;
4372
+ }>>;
4373
+ readonly kind: Schema.Literal<"rubric">;
4374
+ }>, Schema.Struct<{
4375
+ readonly key: Schema.Union<readonly [Schema.Struct<{
4376
+ readonly acceptsFractions: Schema.Boolean;
4377
+ readonly kind: Schema.Literal<"number">;
4378
+ readonly tolerance: Schema.optionalKey<Schema.Struct<{
4379
+ readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
4380
+ readonly value: Schema.String;
4381
+ }>>;
4382
+ readonly value: Schema.String;
4383
+ }>, Schema.Struct<{
4384
+ readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
4385
+ readonly collapseWhitespace: Schema.Boolean;
4386
+ readonly ignoreCase: Schema.Boolean;
4387
+ readonly kind: Schema.Literal<"text">;
4388
+ }>]>;
4389
+ readonly kind: Schema.Literal<"short-answer">;
4126
4390
  }>, Schema.Struct<{
4127
4391
  readonly kind: Schema.Literal<"single-choice">;
4128
4392
  readonly options: Schema.$Array<Schema.Struct<{
@@ -5028,82 +5292,6 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5028
5292
  readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
5029
5293
  };
5030
5294
  readonly projection: {
5031
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5032
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5033
- readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5034
- readonly questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
5035
- readonly questionNumber: number;
5036
- readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
5037
- readonly bodyKind: "question";
5038
- readonly blueprint?: {
5039
- readonly cognitiveLevel: string;
5040
- readonly contentDomain: string;
5041
- readonly topic: string;
5042
- };
5043
- readonly kind: "question-body";
5044
- readonly metadata: {
5045
- readonly dateModified?: string;
5046
- readonly datePublished: string;
5047
- readonly authors: readonly {
5048
- readonly name: string;
5049
- }[];
5050
- readonly title: string;
5051
- };
5052
- readonly stimulusKey?: string;
5053
- readonly response: {
5054
- readonly categories: readonly {
5055
- readonly categoryKey: string;
5056
- readonly label: string;
5057
- readonly order: number;
5058
- }[];
5059
- readonly kind: "category";
5060
- readonly statements: readonly {
5061
- readonly correctCategoryKey: string;
5062
- readonly label: string;
5063
- readonly order: number;
5064
- readonly statementKey: string;
5065
- }[];
5066
- } | {
5067
- readonly kind: "multiple-choice";
5068
- readonly options: readonly {
5069
- readonly isCorrect: boolean;
5070
- readonly label: string;
5071
- readonly optionKey: string;
5072
- readonly order: number;
5073
- }[];
5074
- } | {
5075
- readonly kind: "single-choice";
5076
- readonly options: readonly {
5077
- readonly isCorrect: boolean;
5078
- readonly label: string;
5079
- readonly optionKey: string;
5080
- readonly order: number;
5081
- }[];
5082
- };
5083
- } | {
5084
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5085
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5086
- readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5087
- readonly questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
5088
- readonly questionNumber: number;
5089
- readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
5090
- readonly bodyKind: "answer";
5091
- readonly blueprint?: {
5092
- readonly cognitiveLevel: string;
5093
- readonly contentDomain: string;
5094
- readonly topic: string;
5095
- };
5096
- readonly kind: "question-body";
5097
- readonly metadata: {
5098
- readonly dateModified?: string;
5099
- readonly datePublished: string;
5100
- readonly authors: readonly {
5101
- readonly name: string;
5102
- }[];
5103
- readonly title: string;
5104
- };
5105
- readonly stimulusKey?: string;
5106
- } | {
5107
5295
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
5108
5296
  readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
5109
5297
  readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
@@ -5165,6 +5353,7 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5165
5353
  readonly name: string;
5166
5354
  }[];
5167
5355
  readonly description?: string | undefined;
5356
+ readonly searchTitle?: string;
5168
5357
  readonly subject?: string | undefined;
5169
5358
  readonly title: string;
5170
5359
  };
@@ -5186,48 +5375,7 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5186
5375
  };
5187
5376
  readonly sitemap: true;
5188
5377
  readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
5189
- };
5190
- } | {
5191
- readonly change: {
5192
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5193
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5194
- readonly family: "article" | "material" | "page" | "question";
5195
- readonly operation: "delete";
5196
- };
5197
- };
5198
- readonly index: number;
5199
- readonly prior: {
5200
- readonly artifact: {
5201
- readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
5202
- readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
5203
- readonly payload: {
5204
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5205
- readonly byteLength: number;
5206
- readonly compiledCode: string;
5207
- readonly compilerConfigHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
5208
- readonly compilerVersion: "0.1.0";
5209
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5210
- readonly format: "mdx-function-body";
5211
- readonly mdxCompilerVersion: "3.1.1";
5212
- readonly plainText: string;
5213
- readonly rawMdx: string;
5214
- readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
5215
- readonly requiredComponents: readonly string[];
5216
- readonly sourceHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
5217
- };
5218
- readonly signature: string & import("effect/Brand").Brand<"@NakafaAI/AksaraEd25519Signature">;
5219
- };
5220
- readonly change: {
5221
- readonly artifactHash: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">;
5222
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5223
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5224
- readonly delivery: "authenticated" | "entitled" | "public";
5225
- readonly family: "article" | "material" | "page" | "question";
5226
- readonly operation: "upsert";
5227
- readonly rendererDomain: "ai-ds" | "biology" | "chemistry" | "mathematics" | "physics" | "politics" | "site" | "snbt-general" | "snbt-math" | "snbt-plain" | "snbt-quant" | "tka-math";
5228
- readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
5229
- };
5230
- readonly projection: {
5378
+ } | {
5231
5379
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5232
5380
  readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5233
5381
  readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
@@ -5251,6 +5399,22 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5251
5399
  };
5252
5400
  readonly stimulusKey?: string;
5253
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
+ } | {
5254
5418
  readonly categories: readonly {
5255
5419
  readonly categoryKey: string;
5256
5420
  readonly label: string;
@@ -5264,21 +5428,56 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5264
5428
  readonly statementKey: string;
5265
5429
  }[];
5266
5430
  } | {
5267
- readonly kind: "multiple-choice";
5268
- readonly options: readonly {
5269
- readonly isCorrect: boolean;
5270
- readonly label: string;
5271
- readonly optionKey: string;
5431
+ readonly criteria: readonly {
5432
+ readonly criterionKey: string;
5433
+ readonly finalAnswer?: {
5434
+ readonly acceptsFractions: boolean;
5435
+ readonly kind: "number";
5436
+ readonly tolerance?: {
5437
+ readonly kind: "absolute" | "relative";
5438
+ readonly value: string;
5439
+ };
5440
+ readonly value: string;
5441
+ } | {
5442
+ readonly acceptedAnswers: readonly [string, ...string[]];
5443
+ readonly collapseWhitespace: boolean;
5444
+ readonly ignoreCase: boolean;
5445
+ readonly kind: "text";
5446
+ };
5272
5447
  readonly order: number;
5448
+ readonly label: {
5449
+ readonly de: string;
5450
+ readonly en: string;
5451
+ readonly id: string;
5452
+ };
5453
+ readonly levels: readonly {
5454
+ readonly levelKey: string;
5455
+ readonly order: number;
5456
+ readonly points: number;
5457
+ readonly label: {
5458
+ readonly de: string;
5459
+ readonly en: string;
5460
+ readonly id: string;
5461
+ };
5462
+ }[];
5273
5463
  }[];
5464
+ readonly kind: "rubric";
5274
5465
  } | {
5275
- readonly kind: "single-choice";
5276
- readonly options: readonly {
5277
- readonly isCorrect: boolean;
5278
- readonly label: string;
5279
- readonly optionKey: string;
5280
- readonly order: number;
5281
- }[];
5466
+ readonly key: {
5467
+ readonly acceptsFractions: boolean;
5468
+ readonly kind: "number";
5469
+ readonly tolerance?: {
5470
+ readonly kind: "absolute" | "relative";
5471
+ readonly value: string;
5472
+ };
5473
+ readonly value: string;
5474
+ } | {
5475
+ readonly acceptedAnswers: readonly [string, ...string[]];
5476
+ readonly collapseWhitespace: boolean;
5477
+ readonly ignoreCase: boolean;
5478
+ readonly kind: "text";
5479
+ };
5480
+ readonly kind: "short-answer";
5282
5481
  };
5283
5482
  } | {
5284
5483
  readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
@@ -5303,7 +5502,48 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5303
5502
  readonly title: string;
5304
5503
  };
5305
5504
  readonly stimulusKey?: string;
5306
- } | {
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: {
5307
5547
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
5308
5548
  readonly articleRouteSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleRouteSlug">;
5309
5549
  readonly articleSlug: string & import("effect/Brand").Brand<"@NakafaAI/AksaraArticleSlug">;
@@ -5365,6 +5605,7 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5365
5605
  readonly name: string;
5366
5606
  }[];
5367
5607
  readonly description?: string | undefined;
5608
+ readonly searchTitle?: string;
5368
5609
  readonly subject?: string | undefined;
5369
5610
  readonly title: string;
5370
5611
  };
@@ -5386,6 +5627,133 @@ export declare const decodePublicationResponse: (input: unknown) => Effect.Effec
5386
5627
  };
5387
5628
  readonly sitemap: true;
5388
5629
  readonly sourcePath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraCorpusSourcePath">;
5630
+ } | {
5631
+ readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5632
+ readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5633
+ readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5634
+ readonly questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
5635
+ readonly questionNumber: number;
5636
+ readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
5637
+ readonly bodyKind: "question";
5638
+ readonly blueprint?: {
5639
+ readonly cognitiveLevel: string;
5640
+ readonly contentDomain: string;
5641
+ readonly topic: string;
5642
+ };
5643
+ readonly kind: "question-body";
5644
+ readonly metadata: {
5645
+ readonly dateModified?: string;
5646
+ readonly datePublished: string;
5647
+ readonly authors: readonly {
5648
+ readonly name: string;
5649
+ }[];
5650
+ readonly title: string;
5651
+ };
5652
+ readonly stimulusKey?: string;
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
+ } | {
5683
+ readonly criteria: readonly {
5684
+ readonly criterionKey: string;
5685
+ readonly finalAnswer?: {
5686
+ readonly acceptsFractions: boolean;
5687
+ readonly kind: "number";
5688
+ readonly tolerance?: {
5689
+ readonly kind: "absolute" | "relative";
5690
+ readonly value: string;
5691
+ };
5692
+ readonly value: string;
5693
+ } | {
5694
+ readonly acceptedAnswers: readonly [string, ...string[]];
5695
+ readonly collapseWhitespace: boolean;
5696
+ readonly ignoreCase: boolean;
5697
+ readonly kind: "text";
5698
+ };
5699
+ readonly order: number;
5700
+ readonly label: {
5701
+ readonly de: string;
5702
+ readonly en: string;
5703
+ readonly id: string;
5704
+ };
5705
+ readonly levels: readonly {
5706
+ readonly levelKey: string;
5707
+ readonly order: number;
5708
+ readonly points: number;
5709
+ readonly label: {
5710
+ readonly de: string;
5711
+ readonly en: string;
5712
+ readonly id: string;
5713
+ };
5714
+ }[];
5715
+ }[];
5716
+ readonly kind: "rubric";
5717
+ } | {
5718
+ readonly key: {
5719
+ readonly acceptsFractions: boolean;
5720
+ readonly kind: "number";
5721
+ readonly tolerance?: {
5722
+ readonly kind: "absolute" | "relative";
5723
+ readonly value: string;
5724
+ };
5725
+ readonly value: string;
5726
+ } | {
5727
+ readonly acceptedAnswers: readonly [string, ...string[]];
5728
+ readonly collapseWhitespace: boolean;
5729
+ readonly ignoreCase: boolean;
5730
+ readonly kind: "text";
5731
+ };
5732
+ readonly kind: "short-answer";
5733
+ };
5734
+ } | {
5735
+ readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
5736
+ readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5737
+ readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
5738
+ readonly questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
5739
+ readonly questionNumber: number;
5740
+ readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
5741
+ readonly bodyKind: "answer";
5742
+ readonly blueprint?: {
5743
+ readonly cognitiveLevel: string;
5744
+ readonly contentDomain: string;
5745
+ readonly topic: string;
5746
+ };
5747
+ readonly kind: "question-body";
5748
+ readonly metadata: {
5749
+ readonly dateModified?: string;
5750
+ readonly datePublished: string;
5751
+ readonly authors: readonly {
5752
+ readonly name: string;
5753
+ }[];
5754
+ readonly title: string;
5755
+ };
5756
+ readonly stimulusKey?: string;
5389
5757
  };
5390
5758
  } | {
5391
5759
  readonly change: {