@nakafa/aksara-contracts 1.0.0 → 2.0.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 (166) hide show
  1. package/README.md +15 -32
  2. package/dist/{question → assessment}/answer.d.ts +14 -58
  3. package/dist/{question → assessment}/answer.js +13 -60
  4. package/dist/assessment/catalog.d.ts +235 -0
  5. package/dist/assessment/catalog.js +115 -0
  6. package/dist/assessment/chart.d.ts +62 -0
  7. package/dist/assessment/chart.js +64 -0
  8. package/dist/assessment/closure.d.ts +28 -0
  9. package/dist/assessment/closure.js +164 -0
  10. package/dist/assessment/explanation.d.ts +13 -8
  11. package/dist/assessment/explanation.js +14 -8
  12. package/dist/assessment/figure.d.ts +140 -1
  13. package/dist/assessment/figure.js +9 -2
  14. package/dist/assessment/hash.d.ts +348 -208
  15. package/dist/assessment/hash.js +14 -0
  16. package/dist/assessment/inline.d.ts +3 -1
  17. package/dist/assessment/inline.js +20 -5
  18. package/dist/assessment/item.d.ts +8 -4
  19. package/dist/assessment/item.js +6 -2
  20. package/dist/assessment/key.js +6 -6
  21. package/dist/assessment/paper.d.ts +74 -74
  22. package/dist/assessment/snapshot.d.ts +3778 -0
  23. package/dist/assessment/snapshot.js +192 -0
  24. package/dist/cache/content.d.ts +4 -4
  25. package/dist/canonical.d.ts +6 -0
  26. package/dist/canonical.js +8 -1
  27. package/dist/content.d.ts +1 -1
  28. package/dist/content.js +0 -1
  29. package/dist/delivery.d.ts +0 -3
  30. package/dist/delivery.js +0 -5
  31. package/dist/preview/artifact.d.ts +1 -120
  32. package/dist/preview/document.d.ts +0 -586
  33. package/dist/preview/document.js +1 -47
  34. package/dist/preview/spec.d.ts +6 -1984
  35. package/dist/preview/spec.js +7 -47
  36. package/dist/preview/target.d.ts +0 -173
  37. package/dist/preview/target.js +1 -70
  38. package/dist/projection/digest.d.ts +0 -127
  39. package/dist/projection/hash.d.ts +0 -127
  40. package/dist/projection/spec.d.ts +6 -211
  41. package/dist/projection/spec.js +4 -18
  42. package/dist/projection/verify.d.ts +0 -127
  43. package/dist/projection/verify.js +0 -3
  44. package/dist/release/canonical.d.ts +2 -2
  45. package/dist/release/current/evidence.d.ts +24 -24
  46. package/dist/release/current/state.d.ts +28 -56
  47. package/dist/release/current/state.js +1 -6
  48. package/dist/release/digest.d.ts +2 -2
  49. package/dist/release/hash.d.ts +5 -5
  50. package/dist/release/head.d.ts +10 -57
  51. package/dist/release/head.js +3 -14
  52. package/dist/release/identity.d.ts +3 -3
  53. package/dist/release/items.d.ts +2 -2
  54. package/dist/release/lifecycle.d.ts +18 -18
  55. package/dist/release/policy.d.ts +3 -4
  56. package/dist/release/policy.js +2 -11
  57. package/dist/release/result/digest.d.ts +6 -18
  58. package/dist/release/result/digest.js +1 -2
  59. package/dist/release/rollback/digest.d.ts +4 -19
  60. package/dist/release/rollback/spec.d.ts +30 -792
  61. package/dist/release/rollback/spec.js +1 -4
  62. package/dist/release/snapshot/data.d.ts +599 -249
  63. package/dist/release/snapshot/data.js +11 -28
  64. package/dist/release/snapshot/evidence/assessment.d.ts +26 -0
  65. package/dist/release/snapshot/evidence/assessment.js +44 -0
  66. package/dist/release/snapshot/evidence/requirement.d.ts +1 -1
  67. package/dist/release/snapshot/evidence.d.ts +19 -19
  68. package/dist/release/snapshot/evidence.js +2 -2
  69. package/dist/release/snapshot/scope.d.ts +5 -5
  70. package/dist/release/snapshot/scope.js +1 -1
  71. package/dist/release/snapshot/spec.d.ts +15 -15
  72. package/dist/release/snapshot/spec.js +8 -8
  73. package/dist/release/snapshot/verify.d.ts +1278 -268
  74. package/dist/release/snapshot/verify.js +8 -5
  75. package/dist/release/spec.d.ts +33 -33
  76. package/dist/release/verify.d.ts +5 -5
  77. package/dist/runtime/spec.d.ts +38 -38
  78. package/dist/runtime/spec.js +4 -5
  79. package/dist/runtime/verify.d.ts +40 -40
  80. package/dist/signature/spec.d.ts +5 -5
  81. package/dist/signature/spec.js +0 -1
  82. package/dist/signature/trusted.d.ts +4 -1
  83. package/dist/signature/trusted.js +4 -1
  84. package/dist/transport/batch.d.ts +6 -244
  85. package/dist/transport/failure.d.ts +6 -20
  86. package/dist/transport/failure.js +0 -10
  87. package/dist/transport/group.d.ts +1969 -1369
  88. package/dist/transport/group.js +0 -2
  89. package/dist/transport/request.d.ts +10691 -5086
  90. package/dist/transport/request.js +0 -3
  91. package/dist/transport/response.d.ts +219 -1442
  92. package/dist/transport/response.js +0 -4
  93. package/dist/transport/snapshot.d.ts +1187 -487
  94. package/package.json +187 -295
  95. package/dist/projection/question.d.ts +0 -1067
  96. package/dist/projection/question.js +0 -121
  97. package/dist/question/identity.d.ts +0 -175
  98. package/dist/question/identity.js +0 -207
  99. package/dist/question/item.d.ts +0 -450
  100. package/dist/question/item.js +0 -174
  101. package/dist/question/label.d.ts +0 -3
  102. package/dist/question/label.js +0 -3
  103. package/dist/question/points.d.ts +0 -18
  104. package/dist/question/points.js +0 -22
  105. package/dist/question/response.d.ts +0 -289
  106. package/dist/question/response.js +0 -167
  107. package/dist/question/rubric.d.ts +0 -234
  108. package/dist/question/rubric.js +0 -186
  109. package/dist/release/current/runtime.d.ts +0 -4
  110. package/dist/release/current/runtime.js +0 -15
  111. package/dist/release/snapshot/evidence/tryout.d.ts +0 -22
  112. package/dist/release/snapshot/evidence/tryout.js +0 -91
  113. package/dist/runtime/protected/limits.d.ts +0 -10
  114. package/dist/runtime/protected/limits.js +0 -16
  115. package/dist/runtime/protected/spec.d.ts +0 -310
  116. package/dist/runtime/protected/spec.js +0 -80
  117. package/dist/runtime/protected/verify.d.ts +0 -83
  118. package/dist/runtime/protected/verify.js +0 -70
  119. package/dist/transport/runtime.d.ts +0 -77
  120. package/dist/transport/runtime.js +0 -33
  121. package/dist/tryout/canonical.d.ts +0 -12
  122. package/dist/tryout/canonical.js +0 -7
  123. package/dist/tryout/catalog.d.ts +0 -396
  124. package/dist/tryout/catalog.js +0 -155
  125. package/dist/tryout/closure/accounting.d.ts +0 -20
  126. package/dist/tryout/closure/accounting.js +0 -70
  127. package/dist/tryout/closure/locale.d.ts +0 -14
  128. package/dist/tryout/closure/locale.js +0 -113
  129. package/dist/tryout/closure/placement.d.ts +0 -5
  130. package/dist/tryout/closure/placement.js +0 -32
  131. package/dist/tryout/digest.d.ts +0 -34
  132. package/dist/tryout/digest.js +0 -57
  133. package/dist/tryout/hash/catalog.d.ts +0 -364
  134. package/dist/tryout/hash/catalog.js +0 -209
  135. package/dist/tryout/hash/content.d.ts +0 -215
  136. package/dist/tryout/hash/content.js +0 -75
  137. package/dist/tryout/hash/placement.d.ts +0 -242
  138. package/dist/tryout/hash/placement.js +0 -56
  139. package/dist/tryout/identity.d.ts +0 -12
  140. package/dist/tryout/identity.js +0 -47
  141. package/dist/tryout/key.d.ts +0 -4
  142. package/dist/tryout/key.js +0 -8
  143. package/dist/tryout/language.d.ts +0 -24
  144. package/dist/tryout/language.js +0 -30
  145. package/dist/tryout/placement.d.ts +0 -331
  146. package/dist/tryout/placement.js +0 -96
  147. package/dist/tryout/runtime/canonical.d.ts +0 -8
  148. package/dist/tryout/runtime/canonical.js +0 -34
  149. package/dist/tryout/runtime/hash.d.ts +0 -34
  150. package/dist/tryout/runtime/hash.js +0 -13
  151. package/dist/tryout/runtime/source.d.ts +0 -44
  152. package/dist/tryout/runtime/source.js +0 -47
  153. package/dist/tryout/runtime/spec.d.ts +0 -58
  154. package/dist/tryout/runtime/spec.js +0 -21
  155. package/dist/tryout/runtime/verify.d.ts +0 -69
  156. package/dist/tryout/runtime/verify.js +0 -67
  157. package/dist/tryout/scoring.d.ts +0 -148
  158. package/dist/tryout/scoring.js +0 -98
  159. package/dist/tryout/snapshot/canonical.d.ts +0 -7
  160. package/dist/tryout/snapshot/canonical.js +0 -18
  161. package/dist/tryout/snapshot/hash.d.ts +0 -49
  162. package/dist/tryout/snapshot/hash.js +0 -22
  163. package/dist/tryout/snapshot/spec.d.ts +0 -46
  164. package/dist/tryout/snapshot/spec.js +0 -30
  165. package/dist/tryout/spec.d.ts +0 -41
  166. package/dist/tryout/spec.js +0 -46
@@ -1,1067 +0,0 @@
1
- import { Effect, Schema } from "effect";
2
- /** Exact metadata authored by every current question and answer body. */
3
- export declare const QuestionMetadataSchema: Schema.Struct<{
4
- readonly dateModified: Schema.optionalKey<Schema.String>;
5
- readonly datePublished: Schema.String;
6
- readonly authors: Schema.$Array<Schema.Struct<{
7
- readonly name: Schema.String;
8
- }>>;
9
- readonly title: Schema.String;
10
- }>;
11
- export type QuestionMetadata = typeof QuestionMetadataSchema.Type;
12
- /** Published body and localized response for one authored question prompt. */
13
- export declare const QuestionPromptProjectionSchema: Schema.Struct<{
14
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
15
- readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
16
- readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
17
- readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
18
- readonly questionNumber: Schema.Finite;
19
- readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
20
- readonly bodyKind: Schema.Literal<"question">;
21
- readonly blueprint: Schema.optionalKey<Schema.Struct<{
22
- readonly cognitiveLevel: Schema.String;
23
- readonly contentDomain: Schema.String;
24
- readonly topic: Schema.String;
25
- }>>;
26
- readonly kind: Schema.Literal<"question-body">;
27
- readonly metadata: Schema.Struct<{
28
- readonly dateModified: Schema.optionalKey<Schema.String>;
29
- readonly datePublished: Schema.String;
30
- readonly authors: Schema.$Array<Schema.Struct<{
31
- readonly name: Schema.String;
32
- }>>;
33
- readonly title: Schema.String;
34
- }>;
35
- readonly stimulusKey: Schema.optionalKey<Schema.String>;
36
- readonly response: Schema.Union<readonly [Schema.Struct<{
37
- readonly categories: Schema.$Array<Schema.Struct<{
38
- readonly categoryKey: Schema.String;
39
- readonly label: Schema.String;
40
- readonly order: Schema.Int;
41
- }>>;
42
- readonly kind: Schema.Literal<"category">;
43
- readonly statements: Schema.$Array<Schema.Struct<{
44
- readonly correctCategoryKey: Schema.String;
45
- readonly label: Schema.String;
46
- readonly order: Schema.Int;
47
- readonly statementKey: Schema.String;
48
- }>>;
49
- }>, Schema.Struct<{
50
- readonly kind: Schema.Literal<"multiple-choice">;
51
- readonly options: Schema.$Array<Schema.Struct<{
52
- readonly isCorrect: Schema.Boolean;
53
- readonly label: Schema.String;
54
- readonly optionKey: Schema.String;
55
- readonly order: Schema.Int;
56
- }>>;
57
- }>, Schema.Struct<{
58
- readonly criteria: Schema.$Array<Schema.Struct<{
59
- readonly criterionKey: Schema.String;
60
- readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
61
- readonly acceptsFractions: Schema.Boolean;
62
- readonly kind: Schema.Literal<"number">;
63
- readonly tolerance: Schema.optionalKey<Schema.Struct<{
64
- readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
65
- readonly value: Schema.String;
66
- }>>;
67
- readonly value: Schema.String;
68
- }>, Schema.Struct<{
69
- readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
70
- readonly collapseWhitespace: Schema.Boolean;
71
- readonly ignoreCase: Schema.Boolean;
72
- readonly kind: Schema.Literal<"text">;
73
- }>]>>;
74
- readonly order: Schema.Int;
75
- readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
76
- readonly levels: Schema.$Array<Schema.Struct<{
77
- readonly levelKey: Schema.String;
78
- readonly order: Schema.Int;
79
- readonly points: Schema.Int;
80
- readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
81
- }>>;
82
- }>>;
83
- readonly kind: Schema.Literal<"rubric">;
84
- }>, Schema.Struct<{
85
- readonly key: Schema.Union<readonly [Schema.Struct<{
86
- readonly acceptsFractions: Schema.Boolean;
87
- readonly kind: Schema.Literal<"number">;
88
- readonly tolerance: Schema.optionalKey<Schema.Struct<{
89
- readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
90
- readonly value: Schema.String;
91
- }>>;
92
- readonly value: Schema.String;
93
- }>, Schema.Struct<{
94
- readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
95
- readonly collapseWhitespace: Schema.Boolean;
96
- readonly ignoreCase: Schema.Boolean;
97
- readonly kind: Schema.Literal<"text">;
98
- }>]>;
99
- readonly kind: Schema.Literal<"short-answer">;
100
- }>, Schema.Struct<{
101
- readonly kind: Schema.Literal<"single-choice">;
102
- readonly options: Schema.$Array<Schema.Struct<{
103
- readonly isCorrect: Schema.Boolean;
104
- readonly label: Schema.String;
105
- readonly optionKey: Schema.String;
106
- readonly order: Schema.Int;
107
- }>>;
108
- }>]>;
109
- }>;
110
- export type QuestionPromptProjection = typeof QuestionPromptProjectionSchema.Type;
111
- /** Published body for one entitled answer without a duplicated response. */
112
- export declare const QuestionAnswerProjectionSchema: Schema.Struct<{
113
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
114
- readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
115
- readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
116
- readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
117
- readonly questionNumber: Schema.Finite;
118
- readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
119
- readonly bodyKind: Schema.Literal<"answer">;
120
- readonly blueprint: Schema.optionalKey<Schema.Struct<{
121
- readonly cognitiveLevel: Schema.String;
122
- readonly contentDomain: Schema.String;
123
- readonly topic: Schema.String;
124
- }>>;
125
- readonly kind: Schema.Literal<"question-body">;
126
- readonly metadata: Schema.Struct<{
127
- readonly dateModified: Schema.optionalKey<Schema.String>;
128
- readonly datePublished: Schema.String;
129
- readonly authors: Schema.$Array<Schema.Struct<{
130
- readonly name: Schema.String;
131
- }>>;
132
- readonly title: Schema.String;
133
- }>;
134
- readonly stimulusKey: Schema.optionalKey<Schema.String>;
135
- }>;
136
- export type QuestionAnswerProjection = typeof QuestionAnswerProjectionSchema.Type;
137
- /** Complete non-route projection vocabulary for question-bank MDX bodies. */
138
- export declare const QuestionBodyProjectionSchema: Schema.Union<readonly [Schema.Struct<{
139
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
140
- readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
141
- readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
142
- readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
143
- readonly questionNumber: Schema.Finite;
144
- readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
145
- readonly bodyKind: Schema.Literal<"question">;
146
- readonly blueprint: Schema.optionalKey<Schema.Struct<{
147
- readonly cognitiveLevel: Schema.String;
148
- readonly contentDomain: Schema.String;
149
- readonly topic: Schema.String;
150
- }>>;
151
- readonly kind: Schema.Literal<"question-body">;
152
- readonly metadata: Schema.Struct<{
153
- readonly dateModified: Schema.optionalKey<Schema.String>;
154
- readonly datePublished: Schema.String;
155
- readonly authors: Schema.$Array<Schema.Struct<{
156
- readonly name: Schema.String;
157
- }>>;
158
- readonly title: Schema.String;
159
- }>;
160
- readonly stimulusKey: Schema.optionalKey<Schema.String>;
161
- readonly response: Schema.Union<readonly [Schema.Struct<{
162
- readonly categories: Schema.$Array<Schema.Struct<{
163
- readonly categoryKey: Schema.String;
164
- readonly label: Schema.String;
165
- readonly order: Schema.Int;
166
- }>>;
167
- readonly kind: Schema.Literal<"category">;
168
- readonly statements: Schema.$Array<Schema.Struct<{
169
- readonly correctCategoryKey: Schema.String;
170
- readonly label: Schema.String;
171
- readonly order: Schema.Int;
172
- readonly statementKey: Schema.String;
173
- }>>;
174
- }>, Schema.Struct<{
175
- readonly kind: Schema.Literal<"multiple-choice">;
176
- readonly options: Schema.$Array<Schema.Struct<{
177
- readonly isCorrect: Schema.Boolean;
178
- readonly label: Schema.String;
179
- readonly optionKey: Schema.String;
180
- readonly order: Schema.Int;
181
- }>>;
182
- }>, Schema.Struct<{
183
- readonly criteria: Schema.$Array<Schema.Struct<{
184
- readonly criterionKey: Schema.String;
185
- readonly finalAnswer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
186
- readonly acceptsFractions: Schema.Boolean;
187
- readonly kind: Schema.Literal<"number">;
188
- readonly tolerance: Schema.optionalKey<Schema.Struct<{
189
- readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
190
- readonly value: Schema.String;
191
- }>>;
192
- readonly value: Schema.String;
193
- }>, Schema.Struct<{
194
- readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
195
- readonly collapseWhitespace: Schema.Boolean;
196
- readonly ignoreCase: Schema.Boolean;
197
- readonly kind: Schema.Literal<"text">;
198
- }>]>>;
199
- readonly order: Schema.Int;
200
- readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
201
- readonly levels: Schema.$Array<Schema.Struct<{
202
- readonly levelKey: Schema.String;
203
- readonly order: Schema.Int;
204
- readonly points: Schema.Int;
205
- readonly label: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>;
206
- }>>;
207
- }>>;
208
- readonly kind: Schema.Literal<"rubric">;
209
- }>, Schema.Struct<{
210
- readonly key: Schema.Union<readonly [Schema.Struct<{
211
- readonly acceptsFractions: Schema.Boolean;
212
- readonly kind: Schema.Literal<"number">;
213
- readonly tolerance: Schema.optionalKey<Schema.Struct<{
214
- readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
215
- readonly value: Schema.String;
216
- }>>;
217
- readonly value: Schema.String;
218
- }>, Schema.Struct<{
219
- readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
220
- readonly collapseWhitespace: Schema.Boolean;
221
- readonly ignoreCase: Schema.Boolean;
222
- readonly kind: Schema.Literal<"text">;
223
- }>]>;
224
- readonly kind: Schema.Literal<"short-answer">;
225
- }>, Schema.Struct<{
226
- readonly kind: Schema.Literal<"single-choice">;
227
- readonly options: Schema.$Array<Schema.Struct<{
228
- readonly isCorrect: Schema.Boolean;
229
- readonly label: Schema.String;
230
- readonly optionKey: Schema.String;
231
- readonly order: Schema.Int;
232
- }>>;
233
- }>]>;
234
- }>, Schema.Struct<{
235
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
236
- readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
237
- readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
238
- readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
239
- readonly questionNumber: Schema.Finite;
240
- readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
241
- readonly bodyKind: Schema.Literal<"answer">;
242
- readonly blueprint: Schema.optionalKey<Schema.Struct<{
243
- readonly cognitiveLevel: Schema.String;
244
- readonly contentDomain: Schema.String;
245
- readonly topic: Schema.String;
246
- }>>;
247
- readonly kind: Schema.Literal<"question-body">;
248
- readonly metadata: Schema.Struct<{
249
- readonly dateModified: Schema.optionalKey<Schema.String>;
250
- readonly datePublished: Schema.String;
251
- readonly authors: Schema.$Array<Schema.Struct<{
252
- readonly name: Schema.String;
253
- }>>;
254
- readonly title: Schema.String;
255
- }>;
256
- readonly stimulusKey: Schema.optionalKey<Schema.String>;
257
- }>]>;
258
- export type QuestionBodyProjection = typeof QuestionBodyProjectionSchema.Type;
259
- declare const QuestionProjectionInputSchema: Schema.Struct<{
260
- readonly artifactLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraArtifactLocale">;
261
- readonly bodyKind: Schema.Literals<readonly ["question", "answer"]>;
262
- readonly contentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
263
- readonly item: Schema.Struct<{
264
- readonly blueprint: Schema.optionalKey<Schema.Struct<{
265
- readonly cognitiveLevel: Schema.String;
266
- readonly contentDomain: Schema.String;
267
- readonly topic: Schema.String;
268
- }>>;
269
- readonly points: Schema.optionalKey<Schema.Int>;
270
- readonly responses: Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.optional<Schema.Union<readonly [Schema.Struct<{
271
- readonly categories: Schema.mutableKey<Schema.mutable<Schema.$Array<Schema.String>>>;
272
- readonly kind: Schema.mutableKey<Schema.Literal<"category">>;
273
- readonly statements: Schema.mutableKey<Schema.mutable<Schema.$Array<Schema.Struct<{
274
- readonly correctCategoryOrder: Schema.mutableKey<Schema.Int>;
275
- readonly label: Schema.mutableKey<Schema.String>;
276
- }>>>>;
277
- }>, Schema.Struct<{
278
- readonly kind: Schema.mutableKey<Schema.Literal<"multiple-choice">>;
279
- readonly options: Schema.mutableKey<Schema.mutable<Schema.$Array<Schema.Struct<{
280
- readonly isCorrect: Schema.mutableKey<Schema.Boolean>;
281
- readonly label: Schema.mutableKey<Schema.String>;
282
- }>>>>;
283
- }>, Schema.Struct<{
284
- readonly criteria: Schema.mutableKey<Schema.mutable<Schema.$Array<Schema.Struct<{
285
- readonly finalAnswer: Schema.mutableKey<Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
286
- readonly acceptsFractions: Schema.Boolean;
287
- readonly kind: Schema.Literal<"number">;
288
- readonly tolerance: Schema.optionalKey<Schema.Struct<{
289
- readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
290
- readonly value: Schema.String;
291
- }>>;
292
- readonly value: Schema.String;
293
- }>, Schema.Struct<{
294
- readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
295
- readonly collapseWhitespace: Schema.Boolean;
296
- readonly ignoreCase: Schema.Boolean;
297
- readonly kind: Schema.Literal<"text">;
298
- }>]>>>;
299
- readonly label: Schema.mutableKey<Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>>;
300
- readonly levels: Schema.mutableKey<Schema.mutable<Schema.$Array<Schema.Struct<{
301
- readonly label: Schema.mutableKey<Schema.$Record<Schema.Literals<readonly ["en", "id", "de"]>, Schema.String>>;
302
- readonly points: Schema.mutableKey<Schema.Int>;
303
- }>>>>;
304
- }>>>>;
305
- readonly kind: Schema.mutableKey<Schema.Literal<"rubric">>;
306
- }>, Schema.Struct<{
307
- readonly key: Schema.mutableKey<Schema.Union<readonly [Schema.Struct<{
308
- readonly acceptsFractions: Schema.Boolean;
309
- readonly kind: Schema.Literal<"number">;
310
- readonly tolerance: Schema.optionalKey<Schema.Struct<{
311
- readonly kind: Schema.Literals<readonly ["absolute", "relative"]>;
312
- readonly value: Schema.String;
313
- }>>;
314
- readonly value: Schema.String;
315
- }>, Schema.Struct<{
316
- readonly acceptedAnswers: Schema.NonEmptyArray<Schema.Trimmed>;
317
- readonly collapseWhitespace: Schema.Boolean;
318
- readonly ignoreCase: Schema.Boolean;
319
- readonly kind: Schema.Literal<"text">;
320
- }>]>>;
321
- readonly kind: Schema.mutableKey<Schema.Literal<"short-answer">>;
322
- }>, Schema.Struct<{
323
- readonly kind: Schema.mutableKey<Schema.Literal<"single-choice">>;
324
- readonly options: Schema.mutableKey<Schema.mutable<Schema.$Array<Schema.Struct<{
325
- readonly isCorrect: Schema.mutableKey<Schema.Boolean>;
326
- readonly label: Schema.mutableKey<Schema.String>;
327
- }>>>>;
328
- }>]>>>;
329
- readonly stimulusKey: Schema.optionalKey<Schema.String>;
330
- }>;
331
- readonly metadata: Schema.Struct<{
332
- readonly dateModified: Schema.optionalKey<Schema.String>;
333
- readonly datePublished: Schema.String;
334
- readonly authors: Schema.$Array<Schema.Struct<{
335
- readonly name: Schema.String;
336
- }>>;
337
- readonly title: Schema.String;
338
- }>;
339
- readonly peerContentKey: Schema.brand<Schema.String, "@NakafaAI/AksaraContentKey">;
340
- readonly questionKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionKey">;
341
- readonly questionNumber: Schema.Finite;
342
- readonly setKey: Schema.brand<Schema.String, "@NakafaAI/AksaraQuestionSetKey">;
343
- }>;
344
- type QuestionProjectionInput = typeof QuestionProjectionInputSchema.Type;
345
- /** Builds one prompt projection with its exact-locale frozen response. */
346
- export declare const makeQuestionPromptProjection: (input: {
347
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
348
- readonly bodyKind: "answer" | "question";
349
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
350
- readonly item: {
351
- readonly blueprint?: {
352
- readonly cognitiveLevel: string;
353
- readonly contentDomain: string;
354
- readonly topic: string;
355
- };
356
- readonly points?: number;
357
- readonly responses: {
358
- readonly de?: {
359
- criteria: {
360
- finalAnswer?: {
361
- readonly acceptsFractions: boolean;
362
- readonly kind: "number";
363
- readonly tolerance?: {
364
- readonly kind: "absolute" | "relative";
365
- readonly value: string;
366
- };
367
- readonly value: string;
368
- } | {
369
- readonly acceptedAnswers: readonly [string, ...string[]];
370
- readonly collapseWhitespace: boolean;
371
- readonly ignoreCase: boolean;
372
- readonly kind: "text";
373
- };
374
- label: {
375
- readonly de: string;
376
- readonly en: string;
377
- readonly id: string;
378
- };
379
- levels: {
380
- label: {
381
- readonly de: string;
382
- readonly en: string;
383
- readonly id: string;
384
- };
385
- points: number;
386
- }[];
387
- }[];
388
- kind: "rubric";
389
- } | {
390
- categories: string[];
391
- kind: "category";
392
- statements: {
393
- correctCategoryOrder: number;
394
- label: string;
395
- }[];
396
- } | {
397
- kind: "multiple-choice";
398
- options: {
399
- isCorrect: boolean;
400
- label: string;
401
- }[];
402
- } | {
403
- key: {
404
- readonly acceptsFractions: boolean;
405
- readonly kind: "number";
406
- readonly tolerance?: {
407
- readonly kind: "absolute" | "relative";
408
- readonly value: string;
409
- };
410
- readonly value: string;
411
- } | {
412
- readonly acceptedAnswers: readonly [string, ...string[]];
413
- readonly collapseWhitespace: boolean;
414
- readonly ignoreCase: boolean;
415
- readonly kind: "text";
416
- };
417
- kind: "short-answer";
418
- } | {
419
- kind: "single-choice";
420
- options: {
421
- isCorrect: boolean;
422
- label: string;
423
- }[];
424
- } | undefined;
425
- readonly en?: {
426
- criteria: {
427
- finalAnswer?: {
428
- readonly acceptsFractions: boolean;
429
- readonly kind: "number";
430
- readonly tolerance?: {
431
- readonly kind: "absolute" | "relative";
432
- readonly value: string;
433
- };
434
- readonly value: string;
435
- } | {
436
- readonly acceptedAnswers: readonly [string, ...string[]];
437
- readonly collapseWhitespace: boolean;
438
- readonly ignoreCase: boolean;
439
- readonly kind: "text";
440
- };
441
- label: {
442
- readonly de: string;
443
- readonly en: string;
444
- readonly id: string;
445
- };
446
- levels: {
447
- label: {
448
- readonly de: string;
449
- readonly en: string;
450
- readonly id: string;
451
- };
452
- points: number;
453
- }[];
454
- }[];
455
- kind: "rubric";
456
- } | {
457
- categories: string[];
458
- kind: "category";
459
- statements: {
460
- correctCategoryOrder: number;
461
- label: string;
462
- }[];
463
- } | {
464
- kind: "multiple-choice";
465
- options: {
466
- isCorrect: boolean;
467
- label: string;
468
- }[];
469
- } | {
470
- key: {
471
- readonly acceptsFractions: boolean;
472
- readonly kind: "number";
473
- readonly tolerance?: {
474
- readonly kind: "absolute" | "relative";
475
- readonly value: string;
476
- };
477
- readonly value: string;
478
- } | {
479
- readonly acceptedAnswers: readonly [string, ...string[]];
480
- readonly collapseWhitespace: boolean;
481
- readonly ignoreCase: boolean;
482
- readonly kind: "text";
483
- };
484
- kind: "short-answer";
485
- } | {
486
- kind: "single-choice";
487
- options: {
488
- isCorrect: boolean;
489
- label: string;
490
- }[];
491
- } | undefined;
492
- readonly id?: {
493
- criteria: {
494
- finalAnswer?: {
495
- readonly acceptsFractions: boolean;
496
- readonly kind: "number";
497
- readonly tolerance?: {
498
- readonly kind: "absolute" | "relative";
499
- readonly value: string;
500
- };
501
- readonly value: string;
502
- } | {
503
- readonly acceptedAnswers: readonly [string, ...string[]];
504
- readonly collapseWhitespace: boolean;
505
- readonly ignoreCase: boolean;
506
- readonly kind: "text";
507
- };
508
- label: {
509
- readonly de: string;
510
- readonly en: string;
511
- readonly id: string;
512
- };
513
- levels: {
514
- label: {
515
- readonly de: string;
516
- readonly en: string;
517
- readonly id: string;
518
- };
519
- points: number;
520
- }[];
521
- }[];
522
- kind: "rubric";
523
- } | {
524
- categories: string[];
525
- kind: "category";
526
- statements: {
527
- correctCategoryOrder: number;
528
- label: string;
529
- }[];
530
- } | {
531
- kind: "multiple-choice";
532
- options: {
533
- isCorrect: boolean;
534
- label: string;
535
- }[];
536
- } | {
537
- key: {
538
- readonly acceptsFractions: boolean;
539
- readonly kind: "number";
540
- readonly tolerance?: {
541
- readonly kind: "absolute" | "relative";
542
- readonly value: string;
543
- };
544
- readonly value: string;
545
- } | {
546
- readonly acceptedAnswers: readonly [string, ...string[]];
547
- readonly collapseWhitespace: boolean;
548
- readonly ignoreCase: boolean;
549
- readonly kind: "text";
550
- };
551
- kind: "short-answer";
552
- } | {
553
- kind: "single-choice";
554
- options: {
555
- isCorrect: boolean;
556
- label: string;
557
- }[];
558
- } | undefined;
559
- };
560
- readonly stimulusKey?: string;
561
- };
562
- readonly metadata: {
563
- readonly dateModified?: string;
564
- readonly datePublished: string;
565
- readonly authors: readonly {
566
- readonly name: string;
567
- }[];
568
- readonly title: string;
569
- };
570
- readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
571
- readonly questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
572
- readonly questionNumber: number;
573
- readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
574
- } & {
575
- readonly bodyKind: "question";
576
- }) => Effect.Effect<{
577
- artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
578
- contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
579
- metadata: {
580
- readonly dateModified?: string;
581
- readonly datePublished: string;
582
- readonly authors: readonly {
583
- readonly name: string;
584
- }[];
585
- readonly title: string;
586
- };
587
- peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
588
- questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
589
- questionNumber: number;
590
- setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
591
- blueprint?: {
592
- readonly cognitiveLevel: string;
593
- readonly contentDomain: string;
594
- readonly topic: string;
595
- };
596
- stimulusKey?: string;
597
- bodyKind: "question";
598
- kind: "question-body";
599
- response: {
600
- readonly criteria: readonly {
601
- readonly criterionKey: string;
602
- readonly finalAnswer?: {
603
- readonly acceptsFractions: boolean;
604
- readonly kind: "number";
605
- readonly tolerance?: {
606
- readonly kind: "absolute" | "relative";
607
- readonly value: string;
608
- };
609
- readonly value: string;
610
- } | {
611
- readonly acceptedAnswers: readonly [string, ...string[]];
612
- readonly collapseWhitespace: boolean;
613
- readonly ignoreCase: boolean;
614
- readonly kind: "text";
615
- };
616
- readonly order: number;
617
- readonly label: {
618
- readonly de: string;
619
- readonly en: string;
620
- readonly id: string;
621
- };
622
- readonly levels: readonly {
623
- readonly levelKey: string;
624
- readonly order: number;
625
- readonly points: number;
626
- readonly label: {
627
- readonly de: string;
628
- readonly en: string;
629
- readonly id: string;
630
- };
631
- }[];
632
- }[];
633
- readonly kind: "rubric";
634
- } | {
635
- readonly categories: readonly {
636
- readonly categoryKey: string;
637
- readonly label: string;
638
- readonly order: number;
639
- }[];
640
- readonly kind: "category";
641
- readonly statements: readonly {
642
- readonly correctCategoryKey: string;
643
- readonly label: string;
644
- readonly order: number;
645
- readonly statementKey: string;
646
- }[];
647
- } | {
648
- readonly kind: "multiple-choice";
649
- readonly options: readonly {
650
- readonly isCorrect: boolean;
651
- readonly label: string;
652
- readonly optionKey: string;
653
- readonly order: number;
654
- }[];
655
- } | {
656
- readonly kind: "single-choice";
657
- readonly options: readonly {
658
- readonly isCorrect: boolean;
659
- readonly label: string;
660
- readonly optionKey: string;
661
- readonly order: number;
662
- }[];
663
- } | {
664
- readonly key: {
665
- readonly acceptsFractions: boolean;
666
- readonly kind: "number";
667
- readonly tolerance?: {
668
- readonly kind: "absolute" | "relative";
669
- readonly value: string;
670
- };
671
- readonly value: string;
672
- } | {
673
- readonly acceptedAnswers: readonly [string, ...string[]];
674
- readonly collapseWhitespace: boolean;
675
- readonly ignoreCase: boolean;
676
- readonly kind: "text";
677
- };
678
- readonly kind: "short-answer";
679
- };
680
- }, import("#contracts/question/item").QuestionResponseLocaleMissingError, never>;
681
- /** Builds one answer projection without duplicating the prompt response. */
682
- export declare function makeQuestionAnswerProjection(input: QuestionProjectionInput & {
683
- readonly bodyKind: "answer";
684
- }): {
685
- artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
686
- contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
687
- metadata: {
688
- readonly dateModified?: string;
689
- readonly datePublished: string;
690
- readonly authors: readonly {
691
- readonly name: string;
692
- }[];
693
- readonly title: string;
694
- };
695
- peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
696
- questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
697
- questionNumber: number;
698
- setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
699
- blueprint?: {
700
- readonly cognitiveLevel: string;
701
- readonly contentDomain: string;
702
- readonly topic: string;
703
- };
704
- stimulusKey?: string;
705
- bodyKind: "answer";
706
- kind: "question-body";
707
- };
708
- /** Builds one strictly bound question or answer projection from authored facts. */
709
- export declare const makeQuestionBodyProjection: (input: {
710
- readonly artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
711
- readonly bodyKind: "answer" | "question";
712
- readonly contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
713
- readonly item: {
714
- readonly blueprint?: {
715
- readonly cognitiveLevel: string;
716
- readonly contentDomain: string;
717
- readonly topic: string;
718
- };
719
- readonly points?: number;
720
- readonly responses: {
721
- readonly de?: {
722
- criteria: {
723
- finalAnswer?: {
724
- readonly acceptsFractions: boolean;
725
- readonly kind: "number";
726
- readonly tolerance?: {
727
- readonly kind: "absolute" | "relative";
728
- readonly value: string;
729
- };
730
- readonly value: string;
731
- } | {
732
- readonly acceptedAnswers: readonly [string, ...string[]];
733
- readonly collapseWhitespace: boolean;
734
- readonly ignoreCase: boolean;
735
- readonly kind: "text";
736
- };
737
- label: {
738
- readonly de: string;
739
- readonly en: string;
740
- readonly id: string;
741
- };
742
- levels: {
743
- label: {
744
- readonly de: string;
745
- readonly en: string;
746
- readonly id: string;
747
- };
748
- points: number;
749
- }[];
750
- }[];
751
- kind: "rubric";
752
- } | {
753
- categories: string[];
754
- kind: "category";
755
- statements: {
756
- correctCategoryOrder: number;
757
- label: string;
758
- }[];
759
- } | {
760
- kind: "multiple-choice";
761
- options: {
762
- isCorrect: boolean;
763
- label: string;
764
- }[];
765
- } | {
766
- key: {
767
- readonly acceptsFractions: boolean;
768
- readonly kind: "number";
769
- readonly tolerance?: {
770
- readonly kind: "absolute" | "relative";
771
- readonly value: string;
772
- };
773
- readonly value: string;
774
- } | {
775
- readonly acceptedAnswers: readonly [string, ...string[]];
776
- readonly collapseWhitespace: boolean;
777
- readonly ignoreCase: boolean;
778
- readonly kind: "text";
779
- };
780
- kind: "short-answer";
781
- } | {
782
- kind: "single-choice";
783
- options: {
784
- isCorrect: boolean;
785
- label: string;
786
- }[];
787
- } | undefined;
788
- readonly en?: {
789
- criteria: {
790
- finalAnswer?: {
791
- readonly acceptsFractions: boolean;
792
- readonly kind: "number";
793
- readonly tolerance?: {
794
- readonly kind: "absolute" | "relative";
795
- readonly value: string;
796
- };
797
- readonly value: string;
798
- } | {
799
- readonly acceptedAnswers: readonly [string, ...string[]];
800
- readonly collapseWhitespace: boolean;
801
- readonly ignoreCase: boolean;
802
- readonly kind: "text";
803
- };
804
- label: {
805
- readonly de: string;
806
- readonly en: string;
807
- readonly id: string;
808
- };
809
- levels: {
810
- label: {
811
- readonly de: string;
812
- readonly en: string;
813
- readonly id: string;
814
- };
815
- points: number;
816
- }[];
817
- }[];
818
- kind: "rubric";
819
- } | {
820
- categories: string[];
821
- kind: "category";
822
- statements: {
823
- correctCategoryOrder: number;
824
- label: string;
825
- }[];
826
- } | {
827
- kind: "multiple-choice";
828
- options: {
829
- isCorrect: boolean;
830
- label: string;
831
- }[];
832
- } | {
833
- key: {
834
- readonly acceptsFractions: boolean;
835
- readonly kind: "number";
836
- readonly tolerance?: {
837
- readonly kind: "absolute" | "relative";
838
- readonly value: string;
839
- };
840
- readonly value: string;
841
- } | {
842
- readonly acceptedAnswers: readonly [string, ...string[]];
843
- readonly collapseWhitespace: boolean;
844
- readonly ignoreCase: boolean;
845
- readonly kind: "text";
846
- };
847
- kind: "short-answer";
848
- } | {
849
- kind: "single-choice";
850
- options: {
851
- isCorrect: boolean;
852
- label: string;
853
- }[];
854
- } | undefined;
855
- readonly id?: {
856
- criteria: {
857
- finalAnswer?: {
858
- readonly acceptsFractions: boolean;
859
- readonly kind: "number";
860
- readonly tolerance?: {
861
- readonly kind: "absolute" | "relative";
862
- readonly value: string;
863
- };
864
- readonly value: string;
865
- } | {
866
- readonly acceptedAnswers: readonly [string, ...string[]];
867
- readonly collapseWhitespace: boolean;
868
- readonly ignoreCase: boolean;
869
- readonly kind: "text";
870
- };
871
- label: {
872
- readonly de: string;
873
- readonly en: string;
874
- readonly id: string;
875
- };
876
- levels: {
877
- label: {
878
- readonly de: string;
879
- readonly en: string;
880
- readonly id: string;
881
- };
882
- points: number;
883
- }[];
884
- }[];
885
- kind: "rubric";
886
- } | {
887
- categories: string[];
888
- kind: "category";
889
- statements: {
890
- correctCategoryOrder: number;
891
- label: string;
892
- }[];
893
- } | {
894
- kind: "multiple-choice";
895
- options: {
896
- isCorrect: boolean;
897
- label: string;
898
- }[];
899
- } | {
900
- key: {
901
- readonly acceptsFractions: boolean;
902
- readonly kind: "number";
903
- readonly tolerance?: {
904
- readonly kind: "absolute" | "relative";
905
- readonly value: string;
906
- };
907
- readonly value: string;
908
- } | {
909
- readonly acceptedAnswers: readonly [string, ...string[]];
910
- readonly collapseWhitespace: boolean;
911
- readonly ignoreCase: boolean;
912
- readonly kind: "text";
913
- };
914
- kind: "short-answer";
915
- } | {
916
- kind: "single-choice";
917
- options: {
918
- isCorrect: boolean;
919
- label: string;
920
- }[];
921
- } | undefined;
922
- };
923
- readonly stimulusKey?: string;
924
- };
925
- readonly metadata: {
926
- readonly dateModified?: string;
927
- readonly datePublished: string;
928
- readonly authors: readonly {
929
- readonly name: string;
930
- }[];
931
- readonly title: string;
932
- };
933
- readonly peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
934
- readonly questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
935
- readonly questionNumber: number;
936
- readonly setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
937
- }) => Effect.Effect<{
938
- artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
939
- contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
940
- metadata: {
941
- readonly dateModified?: string;
942
- readonly datePublished: string;
943
- readonly authors: readonly {
944
- readonly name: string;
945
- }[];
946
- readonly title: string;
947
- };
948
- peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
949
- questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
950
- questionNumber: number;
951
- setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
952
- blueprint?: {
953
- readonly cognitiveLevel: string;
954
- readonly contentDomain: string;
955
- readonly topic: string;
956
- };
957
- stimulusKey?: string;
958
- bodyKind: "question";
959
- kind: "question-body";
960
- response: {
961
- readonly criteria: readonly {
962
- readonly criterionKey: string;
963
- readonly finalAnswer?: {
964
- readonly acceptsFractions: boolean;
965
- readonly kind: "number";
966
- readonly tolerance?: {
967
- readonly kind: "absolute" | "relative";
968
- readonly value: string;
969
- };
970
- readonly value: string;
971
- } | {
972
- readonly acceptedAnswers: readonly [string, ...string[]];
973
- readonly collapseWhitespace: boolean;
974
- readonly ignoreCase: boolean;
975
- readonly kind: "text";
976
- };
977
- readonly order: number;
978
- readonly label: {
979
- readonly de: string;
980
- readonly en: string;
981
- readonly id: string;
982
- };
983
- readonly levels: readonly {
984
- readonly levelKey: string;
985
- readonly order: number;
986
- readonly points: number;
987
- readonly label: {
988
- readonly de: string;
989
- readonly en: string;
990
- readonly id: string;
991
- };
992
- }[];
993
- }[];
994
- readonly kind: "rubric";
995
- } | {
996
- readonly categories: readonly {
997
- readonly categoryKey: string;
998
- readonly label: string;
999
- readonly order: number;
1000
- }[];
1001
- readonly kind: "category";
1002
- readonly statements: readonly {
1003
- readonly correctCategoryKey: string;
1004
- readonly label: string;
1005
- readonly order: number;
1006
- readonly statementKey: string;
1007
- }[];
1008
- } | {
1009
- readonly kind: "multiple-choice";
1010
- readonly options: readonly {
1011
- readonly isCorrect: boolean;
1012
- readonly label: string;
1013
- readonly optionKey: string;
1014
- readonly order: number;
1015
- }[];
1016
- } | {
1017
- readonly kind: "single-choice";
1018
- readonly options: readonly {
1019
- readonly isCorrect: boolean;
1020
- readonly label: string;
1021
- readonly optionKey: string;
1022
- readonly order: number;
1023
- }[];
1024
- } | {
1025
- readonly key: {
1026
- readonly acceptsFractions: boolean;
1027
- readonly kind: "number";
1028
- readonly tolerance?: {
1029
- readonly kind: "absolute" | "relative";
1030
- readonly value: string;
1031
- };
1032
- readonly value: string;
1033
- } | {
1034
- readonly acceptedAnswers: readonly [string, ...string[]];
1035
- readonly collapseWhitespace: boolean;
1036
- readonly ignoreCase: boolean;
1037
- readonly kind: "text";
1038
- };
1039
- readonly kind: "short-answer";
1040
- };
1041
- } | {
1042
- artifactLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraArtifactLocale">;
1043
- contentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
1044
- metadata: {
1045
- readonly dateModified?: string;
1046
- readonly datePublished: string;
1047
- readonly authors: readonly {
1048
- readonly name: string;
1049
- }[];
1050
- readonly title: string;
1051
- };
1052
- peerContentKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraContentKey">;
1053
- questionKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionKey">;
1054
- questionNumber: number;
1055
- setKey: string & import("effect/Brand").Brand<"@NakafaAI/AksaraQuestionSetKey">;
1056
- blueprint?: {
1057
- readonly cognitiveLevel: string;
1058
- readonly contentDomain: string;
1059
- readonly topic: string;
1060
- };
1061
- stimulusKey?: string;
1062
- bodyKind: "answer";
1063
- kind: "question-body";
1064
- }, import("#contracts/question/item").QuestionResponseLocaleMissingError, never>;
1065
- /** Serializes one question projection with stable signed field order. */
1066
- export declare function canonicalizeQuestionProjection(projection: QuestionBodyProjection): string;
1067
- export {};