@nakafa/aksara-contracts 0.27.0 → 0.30.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.
@@ -466,27 +466,13 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
466
466
  readonly response: Schema.Union<readonly [Schema.Struct<{
467
467
  readonly categories: Schema.$Array<Schema.Struct<{
468
468
  readonly categoryKey: Schema.String;
469
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
470
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
471
- readonly kind: Schema.Literal<"math">;
472
- readonly math: Schema.String;
473
- }>, Schema.Struct<{
474
- readonly kind: Schema.Literal<"text">;
475
- readonly text: Schema.String;
476
- }>]>>;
469
+ readonly label: Schema.String;
477
470
  readonly order: Schema.Int;
478
471
  }>>;
479
472
  readonly kind: Schema.Literal<"category">;
480
473
  readonly statements: Schema.$Array<Schema.Struct<{
481
474
  readonly correctCategoryKey: Schema.String;
482
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
483
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
484
- readonly kind: Schema.Literal<"math">;
485
- readonly math: Schema.String;
486
- }>, Schema.Struct<{
487
- readonly kind: Schema.Literal<"text">;
488
- readonly text: Schema.String;
489
- }>]>>;
475
+ readonly label: Schema.String;
490
476
  readonly order: Schema.Int;
491
477
  readonly statementKey: Schema.String;
492
478
  }>>;
@@ -494,14 +480,7 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
494
480
  readonly kind: Schema.Literal<"multiple-choice">;
495
481
  readonly options: Schema.$Array<Schema.Struct<{
496
482
  readonly isCorrect: Schema.Boolean;
497
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
498
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
499
- readonly kind: Schema.Literal<"math">;
500
- readonly math: Schema.String;
501
- }>, Schema.Struct<{
502
- readonly kind: Schema.Literal<"text">;
503
- readonly text: Schema.String;
504
- }>]>>;
483
+ readonly label: Schema.String;
505
484
  readonly optionKey: Schema.String;
506
485
  readonly order: Schema.Int;
507
486
  }>>;
@@ -509,14 +488,7 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
509
488
  readonly kind: Schema.Literal<"single-choice">;
510
489
  readonly options: Schema.$Array<Schema.Struct<{
511
490
  readonly isCorrect: Schema.Boolean;
512
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
513
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
514
- readonly kind: Schema.Literal<"math">;
515
- readonly math: Schema.String;
516
- }>, Schema.Struct<{
517
- readonly kind: Schema.Literal<"text">;
518
- readonly text: Schema.String;
519
- }>]>>;
491
+ readonly label: Schema.String;
520
492
  readonly optionKey: Schema.String;
521
493
  readonly order: Schema.Int;
522
494
  }>>;
@@ -884,27 +856,13 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
884
856
  readonly response: Schema.Union<readonly [Schema.Struct<{
885
857
  readonly categories: Schema.$Array<Schema.Struct<{
886
858
  readonly categoryKey: Schema.String;
887
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
888
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
889
- readonly kind: Schema.Literal<"math">;
890
- readonly math: Schema.String;
891
- }>, Schema.Struct<{
892
- readonly kind: Schema.Literal<"text">;
893
- readonly text: Schema.String;
894
- }>]>>;
859
+ readonly label: Schema.String;
895
860
  readonly order: Schema.Int;
896
861
  }>>;
897
862
  readonly kind: Schema.Literal<"category">;
898
863
  readonly statements: Schema.$Array<Schema.Struct<{
899
864
  readonly correctCategoryKey: Schema.String;
900
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
901
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
902
- readonly kind: Schema.Literal<"math">;
903
- readonly math: Schema.String;
904
- }>, Schema.Struct<{
905
- readonly kind: Schema.Literal<"text">;
906
- readonly text: Schema.String;
907
- }>]>>;
865
+ readonly label: Schema.String;
908
866
  readonly order: Schema.Int;
909
867
  readonly statementKey: Schema.String;
910
868
  }>>;
@@ -912,14 +870,7 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
912
870
  readonly kind: Schema.Literal<"multiple-choice">;
913
871
  readonly options: Schema.$Array<Schema.Struct<{
914
872
  readonly isCorrect: Schema.Boolean;
915
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
916
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
917
- readonly kind: Schema.Literal<"math">;
918
- readonly math: Schema.String;
919
- }>, Schema.Struct<{
920
- readonly kind: Schema.Literal<"text">;
921
- readonly text: Schema.String;
922
- }>]>>;
873
+ readonly label: Schema.String;
923
874
  readonly optionKey: Schema.String;
924
875
  readonly order: Schema.Int;
925
876
  }>>;
@@ -927,14 +878,7 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
927
878
  readonly kind: Schema.Literal<"single-choice">;
928
879
  readonly options: Schema.$Array<Schema.Struct<{
929
880
  readonly isCorrect: Schema.Boolean;
930
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
931
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
932
- readonly kind: Schema.Literal<"math">;
933
- readonly math: Schema.String;
934
- }>, Schema.Struct<{
935
- readonly kind: Schema.Literal<"text">;
936
- readonly text: Schema.String;
937
- }>]>>;
881
+ readonly label: Schema.String;
938
882
  readonly optionKey: Schema.String;
939
883
  readonly order: Schema.Int;
940
884
  }>>;
@@ -23,27 +23,13 @@ export declare const TryoutContentInputSchema: Schema.Struct<{
23
23
  readonly response: Schema.Union<readonly [Schema.Struct<{
24
24
  readonly categories: Schema.$Array<Schema.Struct<{
25
25
  readonly categoryKey: Schema.String;
26
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
27
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
28
- readonly kind: Schema.Literal<"math">;
29
- readonly math: Schema.String;
30
- }>, Schema.Struct<{
31
- readonly kind: Schema.Literal<"text">;
32
- readonly text: Schema.String;
33
- }>]>>;
26
+ readonly label: Schema.String;
34
27
  readonly order: Schema.Int;
35
28
  }>>;
36
29
  readonly kind: Schema.Literal<"category">;
37
30
  readonly statements: Schema.$Array<Schema.Struct<{
38
31
  readonly correctCategoryKey: Schema.String;
39
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
40
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
41
- readonly kind: Schema.Literal<"math">;
42
- readonly math: Schema.String;
43
- }>, Schema.Struct<{
44
- readonly kind: Schema.Literal<"text">;
45
- readonly text: Schema.String;
46
- }>]>>;
32
+ readonly label: Schema.String;
47
33
  readonly order: Schema.Int;
48
34
  readonly statementKey: Schema.String;
49
35
  }>>;
@@ -51,14 +37,7 @@ export declare const TryoutContentInputSchema: Schema.Struct<{
51
37
  readonly kind: Schema.Literal<"multiple-choice">;
52
38
  readonly options: Schema.$Array<Schema.Struct<{
53
39
  readonly isCorrect: Schema.Boolean;
54
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
55
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
56
- readonly kind: Schema.Literal<"math">;
57
- readonly math: Schema.String;
58
- }>, Schema.Struct<{
59
- readonly kind: Schema.Literal<"text">;
60
- readonly text: Schema.String;
61
- }>]>>;
40
+ readonly label: Schema.String;
62
41
  readonly optionKey: Schema.String;
63
42
  readonly order: Schema.Int;
64
43
  }>>;
@@ -66,14 +45,7 @@ export declare const TryoutContentInputSchema: Schema.Struct<{
66
45
  readonly kind: Schema.Literal<"single-choice">;
67
46
  readonly options: Schema.$Array<Schema.Struct<{
68
47
  readonly isCorrect: Schema.Boolean;
69
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
70
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
71
- readonly kind: Schema.Literal<"math">;
72
- readonly math: Schema.String;
73
- }>, Schema.Struct<{
74
- readonly kind: Schema.Literal<"text">;
75
- readonly text: Schema.String;
76
- }>]>>;
48
+ readonly label: Schema.String;
77
49
  readonly optionKey: Schema.String;
78
50
  readonly order: Schema.Int;
79
51
  }>>;
@@ -26,27 +26,13 @@ export declare const TryoutPlacementSourceSchema: Schema.Struct<{
26
26
  response: Schema.Union<readonly [Schema.Struct<{
27
27
  readonly categories: Schema.$Array<Schema.Struct<{
28
28
  readonly categoryKey: Schema.String;
29
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
30
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
31
- readonly kind: Schema.Literal<"math">;
32
- readonly math: Schema.String;
33
- }>, Schema.Struct<{
34
- readonly kind: Schema.Literal<"text">;
35
- readonly text: Schema.String;
36
- }>]>>;
29
+ readonly label: Schema.String;
37
30
  readonly order: Schema.Int;
38
31
  }>>;
39
32
  readonly kind: Schema.Literal<"category">;
40
33
  readonly statements: Schema.$Array<Schema.Struct<{
41
34
  readonly correctCategoryKey: Schema.String;
42
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
43
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
44
- readonly kind: Schema.Literal<"math">;
45
- readonly math: Schema.String;
46
- }>, Schema.Struct<{
47
- readonly kind: Schema.Literal<"text">;
48
- readonly text: Schema.String;
49
- }>]>>;
35
+ readonly label: Schema.String;
50
36
  readonly order: Schema.Int;
51
37
  readonly statementKey: Schema.String;
52
38
  }>>;
@@ -54,14 +40,7 @@ export declare const TryoutPlacementSourceSchema: Schema.Struct<{
54
40
  readonly kind: Schema.Literal<"multiple-choice">;
55
41
  readonly options: Schema.$Array<Schema.Struct<{
56
42
  readonly isCorrect: Schema.Boolean;
57
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
58
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
59
- readonly kind: Schema.Literal<"math">;
60
- readonly math: Schema.String;
61
- }>, Schema.Struct<{
62
- readonly kind: Schema.Literal<"text">;
63
- readonly text: Schema.String;
64
- }>]>>;
43
+ readonly label: Schema.String;
65
44
  readonly optionKey: Schema.String;
66
45
  readonly order: Schema.Int;
67
46
  }>>;
@@ -69,14 +48,7 @@ export declare const TryoutPlacementSourceSchema: Schema.Struct<{
69
48
  readonly kind: Schema.Literal<"single-choice">;
70
49
  readonly options: Schema.$Array<Schema.Struct<{
71
50
  readonly isCorrect: Schema.Boolean;
72
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
73
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
74
- readonly kind: Schema.Literal<"math">;
75
- readonly math: Schema.String;
76
- }>, Schema.Struct<{
77
- readonly kind: Schema.Literal<"text">;
78
- readonly text: Schema.String;
79
- }>]>>;
51
+ readonly label: Schema.String;
80
52
  readonly optionKey: Schema.String;
81
53
  readonly order: Schema.Int;
82
54
  }>>;
@@ -116,27 +88,13 @@ export declare const TryoutPlacementSchema: Schema.Struct<{
116
88
  readonly response: Schema.Union<readonly [Schema.Struct<{
117
89
  readonly categories: Schema.$Array<Schema.Struct<{
118
90
  readonly categoryKey: Schema.String;
119
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
120
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
121
- readonly kind: Schema.Literal<"math">;
122
- readonly math: Schema.String;
123
- }>, Schema.Struct<{
124
- readonly kind: Schema.Literal<"text">;
125
- readonly text: Schema.String;
126
- }>]>>;
91
+ readonly label: Schema.String;
127
92
  readonly order: Schema.Int;
128
93
  }>>;
129
94
  readonly kind: Schema.Literal<"category">;
130
95
  readonly statements: Schema.$Array<Schema.Struct<{
131
96
  readonly correctCategoryKey: Schema.String;
132
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
133
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
134
- readonly kind: Schema.Literal<"math">;
135
- readonly math: Schema.String;
136
- }>, Schema.Struct<{
137
- readonly kind: Schema.Literal<"text">;
138
- readonly text: Schema.String;
139
- }>]>>;
97
+ readonly label: Schema.String;
140
98
  readonly order: Schema.Int;
141
99
  readonly statementKey: Schema.String;
142
100
  }>>;
@@ -144,14 +102,7 @@ export declare const TryoutPlacementSchema: Schema.Struct<{
144
102
  readonly kind: Schema.Literal<"multiple-choice">;
145
103
  readonly options: Schema.$Array<Schema.Struct<{
146
104
  readonly isCorrect: Schema.Boolean;
147
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
148
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
149
- readonly kind: Schema.Literal<"math">;
150
- readonly math: Schema.String;
151
- }>, Schema.Struct<{
152
- readonly kind: Schema.Literal<"text">;
153
- readonly text: Schema.String;
154
- }>]>>;
105
+ readonly label: Schema.String;
155
106
  readonly optionKey: Schema.String;
156
107
  readonly order: Schema.Int;
157
108
  }>>;
@@ -159,14 +110,7 @@ export declare const TryoutPlacementSchema: Schema.Struct<{
159
110
  readonly kind: Schema.Literal<"single-choice">;
160
111
  readonly options: Schema.$Array<Schema.Struct<{
161
112
  readonly isCorrect: Schema.Boolean;
162
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
163
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
164
- readonly kind: Schema.Literal<"math">;
165
- readonly math: Schema.String;
166
- }>, Schema.Struct<{
167
- readonly kind: Schema.Literal<"text">;
168
- readonly text: Schema.String;
169
- }>]>>;
113
+ readonly label: Schema.String;
170
114
  readonly optionKey: Schema.String;
171
115
  readonly order: Schema.Int;
172
116
  }>>;
@@ -210,27 +154,13 @@ export declare const TryoutPlacementRecordSchema: Schema.Struct<{
210
154
  readonly response: Schema.Union<readonly [Schema.Struct<{
211
155
  readonly categories: Schema.$Array<Schema.Struct<{
212
156
  readonly categoryKey: Schema.String;
213
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
214
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
215
- readonly kind: Schema.Literal<"math">;
216
- readonly math: Schema.String;
217
- }>, Schema.Struct<{
218
- readonly kind: Schema.Literal<"text">;
219
- readonly text: Schema.String;
220
- }>]>>;
157
+ readonly label: Schema.String;
221
158
  readonly order: Schema.Int;
222
159
  }>>;
223
160
  readonly kind: Schema.Literal<"category">;
224
161
  readonly statements: Schema.$Array<Schema.Struct<{
225
162
  readonly correctCategoryKey: Schema.String;
226
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
227
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
228
- readonly kind: Schema.Literal<"math">;
229
- readonly math: Schema.String;
230
- }>, Schema.Struct<{
231
- readonly kind: Schema.Literal<"text">;
232
- readonly text: Schema.String;
233
- }>]>>;
163
+ readonly label: Schema.String;
234
164
  readonly order: Schema.Int;
235
165
  readonly statementKey: Schema.String;
236
166
  }>>;
@@ -238,14 +168,7 @@ export declare const TryoutPlacementRecordSchema: Schema.Struct<{
238
168
  readonly kind: Schema.Literal<"multiple-choice">;
239
169
  readonly options: Schema.$Array<Schema.Struct<{
240
170
  readonly isCorrect: Schema.Boolean;
241
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
242
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
243
- readonly kind: Schema.Literal<"math">;
244
- readonly math: Schema.String;
245
- }>, Schema.Struct<{
246
- readonly kind: Schema.Literal<"text">;
247
- readonly text: Schema.String;
248
- }>]>>;
171
+ readonly label: Schema.String;
249
172
  readonly optionKey: Schema.String;
250
173
  readonly order: Schema.Int;
251
174
  }>>;
@@ -253,14 +176,7 @@ export declare const TryoutPlacementRecordSchema: Schema.Struct<{
253
176
  readonly kind: Schema.Literal<"single-choice">;
254
177
  readonly options: Schema.$Array<Schema.Struct<{
255
178
  readonly isCorrect: Schema.Boolean;
256
- readonly label: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
257
- readonly display: Schema.Literals<readonly ["block", "inline"]>;
258
- readonly kind: Schema.Literal<"math">;
259
- readonly math: Schema.String;
260
- }>, Schema.Struct<{
261
- readonly kind: Schema.Literal<"text">;
262
- readonly text: Schema.String;
263
- }>]>>;
179
+ readonly label: Schema.String;
264
180
  readonly optionKey: Schema.String;
265
181
  readonly order: Schema.Int;
266
182
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakafa/aksara-contracts",
3
- "version": "0.27.0",
3
+ "version": "0.30.0",
4
4
  "description": "Schemas and verification contracts for Nakafa content releases.",
5
5
  "homepage": "https://github.com/nakafaai/aksara#readme",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -8,6 +8,10 @@
8
8
  "engines": {
9
9
  "node": ">=24.0.0 <25.0.0"
10
10
  },
11
+ "publishConfig": {
12
+ "access": "public",
13
+ "provenance": true
14
+ },
11
15
  "files": [
12
16
  "dist"
13
17
  ],