@openframe-org/criteria-set-protocol 2.0.7 → 2.0.8

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 (34) hide show
  1. package/dist/v1/schemas/certification.d.ts +80 -80
  2. package/dist/v1/schemas/certification.js +7 -6
  3. package/dist/v1/schemas/common.d.ts +144 -75
  4. package/dist/v1/schemas/common.js +15 -14
  5. package/dist/v1/schemas/criteria-tree.d.ts +4397 -2524
  6. package/dist/v1/schemas/criteria-tree.js +2 -1
  7. package/dist/v1/schemas/criterion.d.ts +810 -460
  8. package/dist/v1/schemas/criterion.js +4 -3
  9. package/dist/v1/schemas/data-map.d.ts +2 -2
  10. package/dist/v1/schemas/data-map.js +2 -1
  11. package/dist/v1/schemas/index.d.ts +1 -0
  12. package/dist/v1/schemas/index.js +14 -0
  13. package/dist/v1/schemas/metadata.d.ts +28 -19
  14. package/dist/v1/schemas/metadata.js +7 -6
  15. package/dist/v1/schemas/request/matrix-body-schema.d.ts +23 -8
  16. package/dist/v1/schemas/request/matrix-body-schema.js +7 -7
  17. package/dist/v1/schemas/request/matrix-request-body-schema.d.ts +23 -8
  18. package/dist/v1/schemas/request/matrix-request-body-schema.js +7 -7
  19. package/dist/v1/schemas/request/tree-and-data-body-schema.d.ts +19 -7
  20. package/dist/v1/schemas/request/tree-and-data-body-schema.js +6 -6
  21. package/dist/v1/schemas/request/tree-and-data-request-body-schema.d.ts +19 -7
  22. package/dist/v1/schemas/request/tree-and-data-request-body-schema.js +6 -6
  23. package/dist/v1/schemas/response.d.ts +24 -15
  24. package/dist/v1/schemas/task-group.d.ts +606 -334
  25. package/dist/v1/schemas/task-group.js +5 -4
  26. package/dist/v1/schemas/task-item.d.ts +355 -218
  27. package/dist/v1/schemas/task-item.js +18 -18
  28. package/dist/v1/schemas/task.d.ts +416 -222
  29. package/dist/v1/schemas/task.js +4 -3
  30. package/dist/v1/schemas/theme.d.ts +1057 -615
  31. package/dist/v1/schemas/theme.js +4 -3
  32. package/dist/v1/schemas/utils.d.ts +2 -3
  33. package/dist/v1/schemas/utils.js +5 -8
  34. package/package.json +1 -1
@@ -1,77 +1,102 @@
1
1
  import { z } from "zod";
2
2
  export declare const taskOptionsSchema: z.ZodObject<{
3
- hideCode: z.ZodOptional<z.ZodBoolean>;
3
+ hideCode: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<boolean, z.ZodTypeDef, boolean>>>, boolean | undefined, boolean | null | undefined>, z.ZodOptional<z.ZodType<boolean, z.ZodTypeDef, boolean>>>;
4
4
  }, "strip", z.ZodTypeAny, {
5
5
  hideCode?: boolean | undefined;
6
6
  }, {
7
- hideCode?: boolean | undefined;
7
+ hideCode?: boolean | null | undefined;
8
8
  }>;
9
9
  export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
10
10
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
11
11
  title: z.ZodString;
12
12
  code: z.ZodString;
13
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
- documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
15
- type: z.ZodEnum<["pdf", "text", "link"]>;
16
- label: z.ZodString;
17
- text: z.ZodString;
18
- }, {
19
- type: z.ZodLiteral<"pdf">;
20
- url: z.ZodString;
21
- }>, "strip", z.ZodTypeAny, {
13
+ tags: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>, string[] | undefined, string[] | null | undefined>, z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>>;
14
+ documentation: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<({
22
15
  type: "pdf";
23
16
  url: string;
24
17
  label: string;
25
18
  text: string;
26
- }, {
19
+ } | {
20
+ type: "text";
21
+ label: string;
22
+ text: string;
23
+ } | {
24
+ type: "link";
25
+ url: string;
26
+ label: string;
27
+ text: string;
28
+ })[], z.ZodTypeDef, ({
27
29
  type: "pdf";
28
30
  url: string;
29
31
  label: string;
30
32
  text: string;
31
- }>, z.ZodObject<z.objectUtil.extendShape<{
32
- type: z.ZodEnum<["pdf", "text", "link"]>;
33
- label: z.ZodString;
34
- text: z.ZodString;
35
- }, {
36
- type: z.ZodLiteral<"text">;
37
- }>, "strip", z.ZodTypeAny, {
33
+ } | {
38
34
  type: "text";
39
35
  label: string;
40
36
  text: string;
41
- }, {
37
+ } | {
38
+ type: "link";
39
+ url: string;
40
+ label: string;
41
+ text: string;
42
+ })[]>>>, ({
43
+ type: "pdf";
44
+ url: string;
45
+ label: string;
46
+ text: string;
47
+ } | {
42
48
  type: "text";
43
49
  label: string;
44
50
  text: string;
45
- }>, z.ZodObject<z.objectUtil.extendShape<{
46
- type: z.ZodEnum<["pdf", "text", "link"]>;
47
- label: z.ZodString;
48
- text: z.ZodString;
49
- }, {
50
- type: z.ZodLiteral<"link">;
51
- url: z.ZodString;
52
- }>, "strip", z.ZodTypeAny, {
51
+ } | {
53
52
  type: "link";
54
53
  url: string;
55
54
  label: string;
56
55
  text: string;
57
- }, {
56
+ })[] | undefined, ({
57
+ type: "pdf";
58
+ url: string;
59
+ label: string;
60
+ text: string;
61
+ } | {
62
+ type: "text";
63
+ label: string;
64
+ text: string;
65
+ } | {
66
+ type: "link";
67
+ url: string;
68
+ label: string;
69
+ text: string;
70
+ })[] | null | undefined>, z.ZodOptional<z.ZodType<({
71
+ type: "pdf";
72
+ url: string;
73
+ label: string;
74
+ text: string;
75
+ } | {
76
+ type: "text";
77
+ label: string;
78
+ text: string;
79
+ } | {
58
80
  type: "link";
59
81
  url: string;
60
82
  label: string;
61
83
  text: string;
62
- }>]>, "many">>;
63
- data: z.ZodOptional<z.ZodObject<{
64
- type: z.ZodOptional<z.ZodEnum<["percentage", "number"]>>;
65
- value: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
66
- text: z.ZodOptional<z.ZodString>;
67
- maximumValue: z.ZodOptional<z.ZodNumber>;
68
- minimumValue: z.ZodOptional<z.ZodNumber>;
69
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
70
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
71
- step: z.ZodOptional<z.ZodNumber>;
72
- total: z.ZodOptional<z.ZodNumber>;
73
- readOnly: z.ZodOptional<z.ZodBoolean>;
74
- }, "strip", z.ZodTypeAny, {
84
+ })[], z.ZodTypeDef, ({
85
+ type: "pdf";
86
+ url: string;
87
+ label: string;
88
+ text: string;
89
+ } | {
90
+ type: "text";
91
+ label: string;
92
+ text: string;
93
+ } | {
94
+ type: "link";
95
+ url: string;
96
+ label: string;
97
+ text: string;
98
+ })[]>>>;
99
+ data: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
75
100
  type?: "number" | "percentage" | undefined;
76
101
  total?: number | undefined;
77
102
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -82,7 +107,40 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
82
107
  exclusiveMinimum?: number | undefined;
83
108
  step?: number | undefined;
84
109
  readOnly?: boolean | undefined;
85
- }, {
110
+ }, z.ZodTypeDef, {
111
+ type?: "number" | "percentage" | null | undefined;
112
+ total?: number | null | undefined;
113
+ value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
114
+ text?: string | null | undefined;
115
+ maximumValue?: number | null | undefined;
116
+ minimumValue?: number | null | undefined;
117
+ exclusiveMaximum?: number | null | undefined;
118
+ exclusiveMinimum?: number | null | undefined;
119
+ step?: number | null | undefined;
120
+ readOnly?: boolean | null | undefined;
121
+ }>>>, {
122
+ type?: "number" | "percentage" | undefined;
123
+ total?: number | undefined;
124
+ value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
125
+ text?: string | undefined;
126
+ maximumValue?: number | undefined;
127
+ minimumValue?: number | undefined;
128
+ exclusiveMaximum?: number | undefined;
129
+ exclusiveMinimum?: number | undefined;
130
+ step?: number | undefined;
131
+ readOnly?: boolean | undefined;
132
+ } | undefined, {
133
+ type?: "number" | "percentage" | null | undefined;
134
+ total?: number | null | undefined;
135
+ value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
136
+ text?: string | null | undefined;
137
+ maximumValue?: number | null | undefined;
138
+ minimumValue?: number | null | undefined;
139
+ exclusiveMaximum?: number | null | undefined;
140
+ exclusiveMinimum?: number | null | undefined;
141
+ step?: number | null | undefined;
142
+ readOnly?: boolean | null | undefined;
143
+ } | null | undefined>, z.ZodOptional<z.ZodType<{
86
144
  type?: "number" | "percentage" | undefined;
87
145
  total?: number | undefined;
88
146
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -93,77 +151,113 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
93
151
  exclusiveMinimum?: number | undefined;
94
152
  step?: number | undefined;
95
153
  readOnly?: boolean | undefined;
96
- }>>;
97
- sortOrder: z.ZodOptional<z.ZodNumber>;
154
+ }, z.ZodTypeDef, {
155
+ type?: "number" | "percentage" | null | undefined;
156
+ total?: number | null | undefined;
157
+ value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
158
+ text?: string | null | undefined;
159
+ maximumValue?: number | null | undefined;
160
+ minimumValue?: number | null | undefined;
161
+ exclusiveMaximum?: number | null | undefined;
162
+ exclusiveMinimum?: number | null | undefined;
163
+ step?: number | null | undefined;
164
+ readOnly?: boolean | null | undefined;
165
+ }>>>;
166
+ sortOrder: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<number, z.ZodTypeDef, number>>>, number | undefined, number | null | undefined>, z.ZodOptional<z.ZodType<number, z.ZodTypeDef, number>>>;
98
167
  }, {
99
168
  type: z.ZodLiteral<"task">;
100
- description: z.ZodOptional<z.ZodString>;
101
- items: z.ZodArray<z.ZodLazy<z.ZodObject<Omit<z.objectUtil.extendShape<{
169
+ description: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
170
+ items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<Omit<{
102
171
  type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
103
172
  title: z.ZodString;
104
173
  code: z.ZodString;
105
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
106
- documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
107
- type: z.ZodEnum<["pdf", "text", "link"]>;
108
- label: z.ZodString;
109
- text: z.ZodString;
110
- }, {
111
- type: z.ZodLiteral<"pdf">;
112
- url: z.ZodString;
113
- }>, "strip", z.ZodTypeAny, {
174
+ tags: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>, string[] | undefined, string[] | null | undefined>, z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>>;
175
+ documentation: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<({
114
176
  type: "pdf";
115
177
  url: string;
116
178
  label: string;
117
179
  text: string;
118
- }, {
180
+ } | {
181
+ type: "text";
182
+ label: string;
183
+ text: string;
184
+ } | {
185
+ type: "link";
186
+ url: string;
187
+ label: string;
188
+ text: string;
189
+ })[], z.ZodTypeDef, ({
119
190
  type: "pdf";
120
191
  url: string;
121
192
  label: string;
122
193
  text: string;
123
- }>, z.ZodObject<z.objectUtil.extendShape<{
124
- type: z.ZodEnum<["pdf", "text", "link"]>;
125
- label: z.ZodString;
126
- text: z.ZodString;
127
- }, {
128
- type: z.ZodLiteral<"text">;
129
- }>, "strip", z.ZodTypeAny, {
194
+ } | {
130
195
  type: "text";
131
196
  label: string;
132
197
  text: string;
133
- }, {
198
+ } | {
199
+ type: "link";
200
+ url: string;
201
+ label: string;
202
+ text: string;
203
+ })[]>>>, ({
204
+ type: "pdf";
205
+ url: string;
206
+ label: string;
207
+ text: string;
208
+ } | {
134
209
  type: "text";
135
210
  label: string;
136
211
  text: string;
137
- }>, z.ZodObject<z.objectUtil.extendShape<{
138
- type: z.ZodEnum<["pdf", "text", "link"]>;
139
- label: z.ZodString;
140
- text: z.ZodString;
141
- }, {
142
- type: z.ZodLiteral<"link">;
143
- url: z.ZodString;
144
- }>, "strip", z.ZodTypeAny, {
212
+ } | {
145
213
  type: "link";
146
214
  url: string;
147
215
  label: string;
148
216
  text: string;
149
- }, {
217
+ })[] | undefined, ({
218
+ type: "pdf";
219
+ url: string;
220
+ label: string;
221
+ text: string;
222
+ } | {
223
+ type: "text";
224
+ label: string;
225
+ text: string;
226
+ } | {
150
227
  type: "link";
151
228
  url: string;
152
229
  label: string;
153
230
  text: string;
154
- }>]>, "many">>;
155
- data: z.ZodOptional<z.ZodObject<{
156
- type: z.ZodOptional<z.ZodEnum<["percentage", "number"]>>;
157
- value: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
158
- text: z.ZodOptional<z.ZodString>;
159
- maximumValue: z.ZodOptional<z.ZodNumber>;
160
- minimumValue: z.ZodOptional<z.ZodNumber>;
161
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
162
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
163
- step: z.ZodOptional<z.ZodNumber>;
164
- total: z.ZodOptional<z.ZodNumber>;
165
- readOnly: z.ZodOptional<z.ZodBoolean>;
166
- }, "strip", z.ZodTypeAny, {
231
+ })[] | null | undefined>, z.ZodOptional<z.ZodType<({
232
+ type: "pdf";
233
+ url: string;
234
+ label: string;
235
+ text: string;
236
+ } | {
237
+ type: "text";
238
+ label: string;
239
+ text: string;
240
+ } | {
241
+ type: "link";
242
+ url: string;
243
+ label: string;
244
+ text: string;
245
+ })[], z.ZodTypeDef, ({
246
+ type: "pdf";
247
+ url: string;
248
+ label: string;
249
+ text: string;
250
+ } | {
251
+ type: "text";
252
+ label: string;
253
+ text: string;
254
+ } | {
255
+ type: "link";
256
+ url: string;
257
+ label: string;
258
+ text: string;
259
+ })[]>>>;
260
+ data: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
167
261
  type?: "number" | "percentage" | undefined;
168
262
  total?: number | undefined;
169
263
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -174,7 +268,18 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
174
268
  exclusiveMinimum?: number | undefined;
175
269
  step?: number | undefined;
176
270
  readOnly?: boolean | undefined;
177
- }, {
271
+ }, z.ZodTypeDef, {
272
+ type?: "number" | "percentage" | null | undefined;
273
+ total?: number | null | undefined;
274
+ value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
275
+ text?: string | null | undefined;
276
+ maximumValue?: number | null | undefined;
277
+ minimumValue?: number | null | undefined;
278
+ exclusiveMaximum?: number | null | undefined;
279
+ exclusiveMinimum?: number | null | undefined;
280
+ step?: number | null | undefined;
281
+ readOnly?: boolean | null | undefined;
282
+ }>>>, {
178
283
  type?: "number" | "percentage" | undefined;
179
284
  total?: number | undefined;
180
285
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -185,24 +290,44 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
185
290
  exclusiveMinimum?: number | undefined;
186
291
  step?: number | undefined;
187
292
  readOnly?: boolean | undefined;
188
- }>>;
189
- sortOrder: z.ZodOptional<z.ZodNumber>;
190
- }, {
293
+ } | undefined, {
294
+ type?: "number" | "percentage" | null | undefined;
295
+ total?: number | null | undefined;
296
+ value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
297
+ text?: string | null | undefined;
298
+ maximumValue?: number | null | undefined;
299
+ minimumValue?: number | null | undefined;
300
+ exclusiveMaximum?: number | null | undefined;
301
+ exclusiveMinimum?: number | null | undefined;
302
+ step?: number | null | undefined;
303
+ readOnly?: boolean | null | undefined;
304
+ } | null | undefined>, z.ZodOptional<z.ZodType<{
305
+ type?: "number" | "percentage" | undefined;
306
+ total?: number | undefined;
307
+ value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
308
+ text?: string | undefined;
309
+ maximumValue?: number | undefined;
310
+ minimumValue?: number | undefined;
311
+ exclusiveMaximum?: number | undefined;
312
+ exclusiveMinimum?: number | undefined;
313
+ step?: number | undefined;
314
+ readOnly?: boolean | undefined;
315
+ }, z.ZodTypeDef, {
316
+ type?: "number" | "percentage" | null | undefined;
317
+ total?: number | null | undefined;
318
+ value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
319
+ text?: string | null | undefined;
320
+ maximumValue?: number | null | undefined;
321
+ minimumValue?: number | null | undefined;
322
+ exclusiveMaximum?: number | null | undefined;
323
+ exclusiveMinimum?: number | null | undefined;
324
+ step?: number | null | undefined;
325
+ readOnly?: boolean | null | undefined;
326
+ }>>>;
327
+ sortOrder: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<number, z.ZodTypeDef, number>>>, number | undefined, number | null | undefined>, z.ZodOptional<z.ZodType<number, z.ZodTypeDef, number>>>;
328
+ }, "title">, {
191
329
  type: z.ZodLiteral<"task-item">;
192
- data: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
193
- type: z.ZodOptional<z.ZodEnum<["percentage", "number"]>>;
194
- value: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
195
- text: z.ZodOptional<z.ZodString>;
196
- maximumValue: z.ZodOptional<z.ZodNumber>;
197
- minimumValue: z.ZodOptional<z.ZodNumber>;
198
- exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
199
- exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
200
- step: z.ZodOptional<z.ZodNumber>;
201
- total: z.ZodOptional<z.ZodNumber>;
202
- readOnly: z.ZodOptional<z.ZodBoolean>;
203
- }, {
204
- valueReference: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
205
- }>, "strip", z.ZodTypeAny, {
330
+ data: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
206
331
  type?: "number" | "percentage" | undefined;
207
332
  total?: number | undefined;
208
333
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -214,7 +339,19 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
214
339
  step?: number | undefined;
215
340
  readOnly?: boolean | undefined;
216
341
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
217
- }, {
342
+ }, z.ZodTypeDef, {
343
+ type?: "number" | "percentage" | null | undefined;
344
+ total?: number | null | undefined;
345
+ value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
346
+ text?: string | null | undefined;
347
+ maximumValue?: number | null | undefined;
348
+ minimumValue?: number | null | undefined;
349
+ exclusiveMaximum?: number | null | undefined;
350
+ exclusiveMinimum?: number | null | undefined;
351
+ step?: number | null | undefined;
352
+ readOnly?: boolean | null | undefined;
353
+ valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
354
+ }>>>, {
218
355
  type?: "number" | "percentage" | undefined;
219
356
  total?: number | undefined;
220
357
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
@@ -226,16 +363,52 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
226
363
  step?: number | undefined;
227
364
  readOnly?: boolean | undefined;
228
365
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
229
- }>>;
366
+ } | undefined, {
367
+ type?: "number" | "percentage" | null | undefined;
368
+ total?: number | null | undefined;
369
+ value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
370
+ text?: string | null | undefined;
371
+ maximumValue?: number | null | undefined;
372
+ minimumValue?: number | null | undefined;
373
+ exclusiveMaximum?: number | null | undefined;
374
+ exclusiveMinimum?: number | null | undefined;
375
+ step?: number | null | undefined;
376
+ readOnly?: boolean | null | undefined;
377
+ valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
378
+ } | null | undefined>, z.ZodOptional<z.ZodType<{
379
+ type?: "number" | "percentage" | undefined;
380
+ total?: number | undefined;
381
+ value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
382
+ text?: string | undefined;
383
+ maximumValue?: number | undefined;
384
+ minimumValue?: number | undefined;
385
+ exclusiveMaximum?: number | undefined;
386
+ exclusiveMinimum?: number | undefined;
387
+ step?: number | undefined;
388
+ readOnly?: boolean | undefined;
389
+ valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
390
+ }, z.ZodTypeDef, {
391
+ type?: "number" | "percentage" | null | undefined;
392
+ total?: number | null | undefined;
393
+ value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
394
+ text?: string | null | undefined;
395
+ maximumValue?: number | null | undefined;
396
+ minimumValue?: number | null | undefined;
397
+ exclusiveMaximum?: number | null | undefined;
398
+ exclusiveMinimum?: number | null | undefined;
399
+ step?: number | null | undefined;
400
+ readOnly?: boolean | null | undefined;
401
+ valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
402
+ }>>>;
230
403
  definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
231
404
  type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
232
405
  }, {
233
406
  type: z.ZodLiteral<"select-single">;
234
407
  options: z.ZodArray<z.ZodObject<{
235
- id: z.ZodOptional<z.ZodString>;
408
+ id: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
236
409
  text: z.ZodString;
237
- intro: z.ZodOptional<z.ZodString>;
238
- outro: z.ZodOptional<z.ZodString>;
410
+ intro: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
411
+ outro: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
239
412
  value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
240
413
  }, "strip", z.ZodTypeAny, {
241
414
  value: string | number | boolean | null;
@@ -246,9 +419,9 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
246
419
  }, {
247
420
  value: string | number | boolean | null;
248
421
  text: string;
249
- id?: string | undefined;
250
- intro?: string | undefined;
251
- outro?: string | undefined;
422
+ id?: string | null | undefined;
423
+ intro?: string | null | undefined;
424
+ outro?: string | null | undefined;
252
425
  }>, "many">;
253
426
  }>, "strip", z.ZodTypeAny, {
254
427
  type: "select-single";
@@ -264,19 +437,19 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
264
437
  options: {
265
438
  value: string | number | boolean | null;
266
439
  text: string;
267
- id?: string | undefined;
268
- intro?: string | undefined;
269
- outro?: string | undefined;
440
+ id?: string | null | undefined;
441
+ intro?: string | null | undefined;
442
+ outro?: string | null | undefined;
270
443
  }[];
271
444
  }>, z.ZodObject<z.objectUtil.extendShape<{
272
445
  type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
273
446
  }, {
274
447
  type: z.ZodLiteral<"select-multiple">;
275
448
  options: z.ZodArray<z.ZodObject<{
276
- id: z.ZodOptional<z.ZodString>;
449
+ id: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
277
450
  text: z.ZodString;
278
- intro: z.ZodOptional<z.ZodString>;
279
- outro: z.ZodOptional<z.ZodString>;
451
+ intro: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
452
+ outro: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
280
453
  value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
281
454
  }, "strip", z.ZodTypeAny, {
282
455
  value: string | number | boolean | null;
@@ -287,9 +460,9 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
287
460
  }, {
288
461
  value: string | number | boolean | null;
289
462
  text: string;
290
- id?: string | undefined;
291
- intro?: string | undefined;
292
- outro?: string | undefined;
463
+ id?: string | null | undefined;
464
+ intro?: string | null | undefined;
465
+ outro?: string | null | undefined;
293
466
  }>, "many">;
294
467
  }>, "strip", z.ZodTypeAny, {
295
468
  type: "select-multiple";
@@ -305,17 +478,17 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
305
478
  options: {
306
479
  value: string | number | boolean | null;
307
480
  text: string;
308
- id?: string | undefined;
309
- intro?: string | undefined;
310
- outro?: string | undefined;
481
+ id?: string | null | undefined;
482
+ intro?: string | null | undefined;
483
+ outro?: string | null | undefined;
311
484
  }[];
312
485
  }>, z.ZodObject<z.objectUtil.extendShape<{
313
486
  type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
314
487
  }, {
315
488
  type: z.ZodLiteral<"number">;
316
- minimum: z.ZodOptional<z.ZodNumber>;
317
- maximum: z.ZodOptional<z.ZodNumber>;
318
- step: z.ZodOptional<z.ZodNumber>;
489
+ minimum: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<number, z.ZodTypeDef, number>>>, number | undefined, number | null | undefined>, z.ZodOptional<z.ZodType<number, z.ZodTypeDef, number>>>;
490
+ maximum: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<number, z.ZodTypeDef, number>>>, number | undefined, number | null | undefined>, z.ZodOptional<z.ZodType<number, z.ZodTypeDef, number>>>;
491
+ step: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<number, z.ZodTypeDef, number>>>, number | undefined, number | null | undefined>, z.ZodOptional<z.ZodType<number, z.ZodTypeDef, number>>>;
319
492
  }>, "strip", z.ZodTypeAny, {
320
493
  type: "number";
321
494
  minimum?: number | undefined;
@@ -323,23 +496,32 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
323
496
  step?: number | undefined;
324
497
  }, {
325
498
  type: "number";
326
- minimum?: number | undefined;
327
- maximum?: number | undefined;
328
- step?: number | undefined;
499
+ minimum?: number | null | undefined;
500
+ maximum?: number | null | undefined;
501
+ step?: number | null | undefined;
329
502
  }>, z.ZodObject<z.objectUtil.extendShape<{
330
503
  type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
331
504
  }, {
332
505
  type: z.ZodLiteral<"boolean">;
333
- labels: z.ZodOptional<z.ZodObject<{
334
- true: z.ZodString;
335
- false: z.ZodString;
336
- }, "strip", z.ZodTypeAny, {
506
+ labels: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
337
507
  false: string;
338
508
  true: string;
339
- }, {
509
+ }, z.ZodTypeDef, {
510
+ false: string;
511
+ true: string;
512
+ }>>>, {
513
+ false: string;
514
+ true: string;
515
+ } | undefined, {
516
+ false: string;
517
+ true: string;
518
+ } | null | undefined>, z.ZodOptional<z.ZodType<{
340
519
  false: string;
341
520
  true: string;
342
- }>>;
521
+ }, z.ZodTypeDef, {
522
+ false: string;
523
+ true: string;
524
+ }>>>;
343
525
  }>, "strip", z.ZodTypeAny, {
344
526
  type: "boolean";
345
527
  labels?: {
@@ -351,19 +533,25 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
351
533
  labels?: {
352
534
  false: string;
353
535
  true: string;
354
- } | undefined;
536
+ } | null | undefined;
355
537
  }>]>;
356
- description: z.ZodOptional<z.ZodString>;
357
- providedData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>>;
358
- valueReference: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>;
359
- options: z.ZodOptional<z.ZodObject<{
360
- hideCode: z.ZodOptional<z.ZodBoolean>;
361
- }, "strip", z.ZodTypeAny, {
538
+ description: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
539
+ providedData: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>;
540
+ valueReference: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string | number | boolean | (string | number | boolean | null)[] | null, z.ZodTypeDef, string | number | boolean | (string | number | boolean | null)[] | null>>>, string | number | boolean | (string | number | boolean | null)[] | undefined, string | number | boolean | (string | number | boolean | null)[] | null | undefined>, z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | null)[] | null, z.ZodTypeDef, string | number | boolean | (string | number | boolean | null)[] | null>>>;
541
+ options: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
362
542
  hideCode?: boolean | undefined;
363
- }, {
543
+ }, z.ZodTypeDef, {
544
+ hideCode?: boolean | null | undefined;
545
+ }>>>, {
364
546
  hideCode?: boolean | undefined;
365
- }>>;
366
- }>, "title">, "strip", z.ZodTypeAny, {
547
+ } | undefined, {
548
+ hideCode?: boolean | null | undefined;
549
+ } | null | undefined>, z.ZodOptional<z.ZodType<{
550
+ hideCode?: boolean | undefined;
551
+ }, z.ZodTypeDef, {
552
+ hideCode?: boolean | null | undefined;
553
+ }>>>;
554
+ }>, "strip", z.ZodTypeAny, {
367
555
  type: "task-item";
368
556
  code: string;
369
557
  definition: {
@@ -440,49 +628,49 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
440
628
  options: {
441
629
  value: string | number | boolean | null;
442
630
  text: string;
443
- id?: string | undefined;
444
- intro?: string | undefined;
445
- outro?: string | undefined;
631
+ id?: string | null | undefined;
632
+ intro?: string | null | undefined;
633
+ outro?: string | null | undefined;
446
634
  }[];
447
635
  } | {
448
636
  type: "select-multiple";
449
637
  options: {
450
638
  value: string | number | boolean | null;
451
639
  text: string;
452
- id?: string | undefined;
453
- intro?: string | undefined;
454
- outro?: string | undefined;
640
+ id?: string | null | undefined;
641
+ intro?: string | null | undefined;
642
+ outro?: string | null | undefined;
455
643
  }[];
456
644
  } | {
457
645
  type: "number";
458
- minimum?: number | undefined;
459
- maximum?: number | undefined;
460
- step?: number | undefined;
646
+ minimum?: number | null | undefined;
647
+ maximum?: number | null | undefined;
648
+ step?: number | null | undefined;
461
649
  } | {
462
650
  type: "boolean";
463
651
  labels?: {
464
652
  false: string;
465
653
  true: string;
466
- } | undefined;
654
+ } | null | undefined;
467
655
  };
468
656
  data?: {
469
- type?: "number" | "percentage" | undefined;
470
- total?: number | undefined;
657
+ type?: "number" | "percentage" | null | undefined;
658
+ total?: number | null | undefined;
471
659
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
472
- text?: string | undefined;
473
- maximumValue?: number | undefined;
474
- minimumValue?: number | undefined;
475
- exclusiveMaximum?: number | undefined;
476
- exclusiveMinimum?: number | undefined;
477
- step?: number | undefined;
478
- readOnly?: boolean | undefined;
660
+ text?: string | null | undefined;
661
+ maximumValue?: number | null | undefined;
662
+ minimumValue?: number | null | undefined;
663
+ exclusiveMaximum?: number | null | undefined;
664
+ exclusiveMinimum?: number | null | undefined;
665
+ step?: number | null | undefined;
666
+ readOnly?: boolean | null | undefined;
479
667
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
480
- } | undefined;
668
+ } | null | undefined;
481
669
  options?: {
482
- hideCode?: boolean | undefined;
483
- } | undefined;
484
- description?: string | undefined;
485
- tags?: string[] | undefined;
670
+ hideCode?: boolean | null | undefined;
671
+ } | null | undefined;
672
+ description?: string | null | undefined;
673
+ tags?: string[] | null | undefined;
486
674
  documentation?: ({
487
675
  type: "pdf";
488
676
  url: string;
@@ -497,18 +685,24 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
497
685
  url: string;
498
686
  label: string;
499
687
  text: string;
500
- })[] | undefined;
501
- sortOrder?: number | undefined;
688
+ })[] | null | undefined;
689
+ sortOrder?: number | null | undefined;
502
690
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
503
- providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
691
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
504
692
  }>>, "many">;
505
- options: z.ZodOptional<z.ZodObject<{
506
- hideCode: z.ZodOptional<z.ZodBoolean>;
507
- }, "strip", z.ZodTypeAny, {
693
+ options: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
508
694
  hideCode?: boolean | undefined;
509
- }, {
695
+ }, z.ZodTypeDef, {
696
+ hideCode?: boolean | null | undefined;
697
+ }>>>, {
698
+ hideCode?: boolean | undefined;
699
+ } | undefined, {
700
+ hideCode?: boolean | null | undefined;
701
+ } | null | undefined>, z.ZodOptional<z.ZodType<{
510
702
  hideCode?: boolean | undefined;
511
- }>>;
703
+ }, z.ZodTypeDef, {
704
+ hideCode?: boolean | null | undefined;
705
+ }>>>;
512
706
  }>, "strip", z.ZodTypeAny, {
513
707
  type: "task";
514
708
  code: string;
@@ -628,49 +822,49 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
628
822
  options: {
629
823
  value: string | number | boolean | null;
630
824
  text: string;
631
- id?: string | undefined;
632
- intro?: string | undefined;
633
- outro?: string | undefined;
825
+ id?: string | null | undefined;
826
+ intro?: string | null | undefined;
827
+ outro?: string | null | undefined;
634
828
  }[];
635
829
  } | {
636
830
  type: "select-multiple";
637
831
  options: {
638
832
  value: string | number | boolean | null;
639
833
  text: string;
640
- id?: string | undefined;
641
- intro?: string | undefined;
642
- outro?: string | undefined;
834
+ id?: string | null | undefined;
835
+ intro?: string | null | undefined;
836
+ outro?: string | null | undefined;
643
837
  }[];
644
838
  } | {
645
839
  type: "number";
646
- minimum?: number | undefined;
647
- maximum?: number | undefined;
648
- step?: number | undefined;
840
+ minimum?: number | null | undefined;
841
+ maximum?: number | null | undefined;
842
+ step?: number | null | undefined;
649
843
  } | {
650
844
  type: "boolean";
651
845
  labels?: {
652
846
  false: string;
653
847
  true: string;
654
- } | undefined;
848
+ } | null | undefined;
655
849
  };
656
850
  data?: {
657
- type?: "number" | "percentage" | undefined;
658
- total?: number | undefined;
851
+ type?: "number" | "percentage" | null | undefined;
852
+ total?: number | null | undefined;
659
853
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
660
- text?: string | undefined;
661
- maximumValue?: number | undefined;
662
- minimumValue?: number | undefined;
663
- exclusiveMaximum?: number | undefined;
664
- exclusiveMinimum?: number | undefined;
665
- step?: number | undefined;
666
- readOnly?: boolean | undefined;
854
+ text?: string | null | undefined;
855
+ maximumValue?: number | null | undefined;
856
+ minimumValue?: number | null | undefined;
857
+ exclusiveMaximum?: number | null | undefined;
858
+ exclusiveMinimum?: number | null | undefined;
859
+ step?: number | null | undefined;
860
+ readOnly?: boolean | null | undefined;
667
861
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
668
- } | undefined;
862
+ } | null | undefined;
669
863
  options?: {
670
- hideCode?: boolean | undefined;
671
- } | undefined;
672
- description?: string | undefined;
673
- tags?: string[] | undefined;
864
+ hideCode?: boolean | null | undefined;
865
+ } | null | undefined;
866
+ description?: string | null | undefined;
867
+ tags?: string[] | null | undefined;
674
868
  documentation?: ({
675
869
  type: "pdf";
676
870
  url: string;
@@ -685,28 +879,28 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
685
879
  url: string;
686
880
  label: string;
687
881
  text: string;
688
- })[] | undefined;
689
- sortOrder?: number | undefined;
882
+ })[] | null | undefined;
883
+ sortOrder?: number | null | undefined;
690
884
  valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
691
- providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
885
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
692
886
  }[];
693
887
  data?: {
694
- type?: "number" | "percentage" | undefined;
695
- total?: number | undefined;
888
+ type?: "number" | "percentage" | null | undefined;
889
+ total?: number | null | undefined;
696
890
  value?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
697
- text?: string | undefined;
698
- maximumValue?: number | undefined;
699
- minimumValue?: number | undefined;
700
- exclusiveMaximum?: number | undefined;
701
- exclusiveMinimum?: number | undefined;
702
- step?: number | undefined;
703
- readOnly?: boolean | undefined;
704
- } | undefined;
891
+ text?: string | null | undefined;
892
+ maximumValue?: number | null | undefined;
893
+ minimumValue?: number | null | undefined;
894
+ exclusiveMaximum?: number | null | undefined;
895
+ exclusiveMinimum?: number | null | undefined;
896
+ step?: number | null | undefined;
897
+ readOnly?: boolean | null | undefined;
898
+ } | null | undefined;
705
899
  options?: {
706
- hideCode?: boolean | undefined;
707
- } | undefined;
708
- description?: string | undefined;
709
- tags?: string[] | undefined;
900
+ hideCode?: boolean | null | undefined;
901
+ } | null | undefined;
902
+ description?: string | null | undefined;
903
+ tags?: string[] | null | undefined;
710
904
  documentation?: ({
711
905
  type: "pdf";
712
906
  url: string;
@@ -721,6 +915,6 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
721
915
  url: string;
722
916
  label: string;
723
917
  text: string;
724
- })[] | undefined;
725
- sortOrder?: number | undefined;
918
+ })[] | null | undefined;
919
+ sortOrder?: number | null | undefined;
726
920
  }>;