@openframe-org/criteria-set-protocol 1.5.6 → 1.5.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.
@@ -304,9 +304,9 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
304
304
  label: string;
305
305
  text: string;
306
306
  }>]>, "many">>;
307
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
307
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
308
308
  sortOrder: z.ZodOptional<z.ZodNumber>;
309
- definition: z.ZodUnion<[z.ZodObject<{
309
+ definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
310
310
  type: z.ZodLiteral<"select-single">;
311
311
  options: z.ZodArray<z.ZodObject<{
312
312
  id: z.ZodOptional<z.ZodString>;
@@ -384,6 +384,45 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
384
384
  intro?: string | undefined;
385
385
  outro?: string | undefined;
386
386
  }[];
387
+ }>, z.ZodObject<{
388
+ type: z.ZodLiteral<"number">;
389
+ minimum: z.ZodOptional<z.ZodNumber>;
390
+ maximum: z.ZodOptional<z.ZodNumber>;
391
+ step: z.ZodOptional<z.ZodNumber>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ type: "number";
394
+ minimum?: number | undefined;
395
+ maximum?: number | undefined;
396
+ step?: number | undefined;
397
+ }, {
398
+ type: "number";
399
+ minimum?: number | undefined;
400
+ maximum?: number | undefined;
401
+ step?: number | undefined;
402
+ }>, z.ZodObject<{
403
+ type: z.ZodLiteral<"boolean">;
404
+ labels: z.ZodOptional<z.ZodObject<{
405
+ true: z.ZodOptional<z.ZodString>;
406
+ false: z.ZodOptional<z.ZodString>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ false?: string | undefined;
409
+ true?: string | undefined;
410
+ }, {
411
+ false?: string | undefined;
412
+ true?: string | undefined;
413
+ }>>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ type: "boolean";
416
+ labels?: {
417
+ false?: string | undefined;
418
+ true?: string | undefined;
419
+ } | undefined;
420
+ }, {
421
+ type: "boolean";
422
+ labels?: {
423
+ false?: string | undefined;
424
+ true?: string | undefined;
425
+ } | undefined;
387
426
  }>]>;
388
427
  description: z.ZodOptional<z.ZodString>;
389
428
  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">]>>>;
@@ -408,8 +447,19 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
408
447
  intro?: string | undefined;
409
448
  outro?: string | undefined;
410
449
  }[];
450
+ } | {
451
+ type: "number";
452
+ minimum?: number | undefined;
453
+ maximum?: number | undefined;
454
+ step?: number | undefined;
455
+ } | {
456
+ type: "boolean";
457
+ labels?: {
458
+ false?: string | undefined;
459
+ true?: string | undefined;
460
+ } | undefined;
411
461
  };
412
- data?: Record<string, string> | undefined;
462
+ data?: Record<string, any> | undefined;
413
463
  description?: string | undefined;
414
464
  tags?: string[] | undefined;
415
465
  documentation?: ({
@@ -450,8 +500,19 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
450
500
  intro?: string | undefined;
451
501
  outro?: string | undefined;
452
502
  }[];
503
+ } | {
504
+ type: "number";
505
+ minimum?: number | undefined;
506
+ maximum?: number | undefined;
507
+ step?: number | undefined;
508
+ } | {
509
+ type: "boolean";
510
+ labels?: {
511
+ false?: string | undefined;
512
+ true?: string | undefined;
513
+ } | undefined;
453
514
  };
454
- data?: Record<string, string> | undefined;
515
+ data?: Record<string, any> | undefined;
455
516
  description?: string | undefined;
456
517
  tags?: string[] | undefined;
457
518
  documentation?: ({
@@ -497,8 +558,19 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
497
558
  intro?: string | undefined;
498
559
  outro?: string | undefined;
499
560
  }[];
561
+ } | {
562
+ type: "number";
563
+ minimum?: number | undefined;
564
+ maximum?: number | undefined;
565
+ step?: number | undefined;
566
+ } | {
567
+ type: "boolean";
568
+ labels?: {
569
+ false?: string | undefined;
570
+ true?: string | undefined;
571
+ } | undefined;
500
572
  };
501
- data?: Record<string, string> | undefined;
573
+ data?: Record<string, any> | undefined;
502
574
  description?: string | undefined;
503
575
  tags?: string[] | undefined;
504
576
  documentation?: ({
@@ -563,8 +635,19 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
563
635
  intro?: string | undefined;
564
636
  outro?: string | undefined;
565
637
  }[];
638
+ } | {
639
+ type: "number";
640
+ minimum?: number | undefined;
641
+ maximum?: number | undefined;
642
+ step?: number | undefined;
643
+ } | {
644
+ type: "boolean";
645
+ labels?: {
646
+ false?: string | undefined;
647
+ true?: string | undefined;
648
+ } | undefined;
566
649
  };
567
- data?: Record<string, string> | undefined;
650
+ data?: Record<string, any> | undefined;
568
651
  description?: string | undefined;
569
652
  tags?: string[] | undefined;
570
653
  documentation?: ({
@@ -634,8 +717,19 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
634
717
  intro?: string | undefined;
635
718
  outro?: string | undefined;
636
719
  }[];
720
+ } | {
721
+ type: "number";
722
+ minimum?: number | undefined;
723
+ maximum?: number | undefined;
724
+ step?: number | undefined;
725
+ } | {
726
+ type: "boolean";
727
+ labels?: {
728
+ false?: string | undefined;
729
+ true?: string | undefined;
730
+ } | undefined;
637
731
  };
638
- data?: Record<string, string> | undefined;
732
+ data?: Record<string, any> | undefined;
639
733
  description?: string | undefined;
640
734
  tags?: string[] | undefined;
641
735
  documentation?: ({
@@ -724,8 +818,19 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
724
818
  intro?: string | undefined;
725
819
  outro?: string | undefined;
726
820
  }[];
821
+ } | {
822
+ type: "number";
823
+ minimum?: number | undefined;
824
+ maximum?: number | undefined;
825
+ step?: number | undefined;
826
+ } | {
827
+ type: "boolean";
828
+ labels?: {
829
+ false?: string | undefined;
830
+ true?: string | undefined;
831
+ } | undefined;
727
832
  };
728
- data?: Record<string, string> | undefined;
833
+ data?: Record<string, any> | undefined;
729
834
  description?: string | undefined;
730
835
  tags?: string[] | undefined;
731
836
  documentation?: ({
@@ -819,8 +924,19 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
819
924
  intro?: string | undefined;
820
925
  outro?: string | undefined;
821
926
  }[];
927
+ } | {
928
+ type: "number";
929
+ minimum?: number | undefined;
930
+ maximum?: number | undefined;
931
+ step?: number | undefined;
932
+ } | {
933
+ type: "boolean";
934
+ labels?: {
935
+ false?: string | undefined;
936
+ true?: string | undefined;
937
+ } | undefined;
822
938
  };
823
- data?: Record<string, string> | undefined;
939
+ data?: Record<string, any> | undefined;
824
940
  description?: string | undefined;
825
941
  tags?: string[] | undefined;
826
942
  documentation?: ({
@@ -932,8 +1048,19 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
932
1048
  intro?: string | undefined;
933
1049
  outro?: string | undefined;
934
1050
  }[];
1051
+ } | {
1052
+ type: "number";
1053
+ minimum?: number | undefined;
1054
+ maximum?: number | undefined;
1055
+ step?: number | undefined;
1056
+ } | {
1057
+ type: "boolean";
1058
+ labels?: {
1059
+ false?: string | undefined;
1060
+ true?: string | undefined;
1061
+ } | undefined;
935
1062
  };
936
- data?: Record<string, string> | undefined;
1063
+ data?: Record<string, any> | undefined;
937
1064
  description?: string | undefined;
938
1065
  tags?: string[] | undefined;
939
1066
  documentation?: ({
@@ -1050,8 +1177,19 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1050
1177
  intro?: string | undefined;
1051
1178
  outro?: string | undefined;
1052
1179
  }[];
1180
+ } | {
1181
+ type: "number";
1182
+ minimum?: number | undefined;
1183
+ maximum?: number | undefined;
1184
+ step?: number | undefined;
1185
+ } | {
1186
+ type: "boolean";
1187
+ labels?: {
1188
+ false?: string | undefined;
1189
+ true?: string | undefined;
1190
+ } | undefined;
1053
1191
  };
1054
- data?: Record<string, string> | undefined;
1192
+ data?: Record<string, any> | undefined;
1055
1193
  description?: string | undefined;
1056
1194
  tags?: string[] | undefined;
1057
1195
  documentation?: ({
@@ -1198,8 +1336,19 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1198
1336
  intro?: string | undefined;
1199
1337
  outro?: string | undefined;
1200
1338
  }[];
1339
+ } | {
1340
+ type: "number";
1341
+ minimum?: number | undefined;
1342
+ maximum?: number | undefined;
1343
+ step?: number | undefined;
1344
+ } | {
1345
+ type: "boolean";
1346
+ labels?: {
1347
+ false?: string | undefined;
1348
+ true?: string | undefined;
1349
+ } | undefined;
1201
1350
  };
1202
- data?: Record<string, string> | undefined;
1351
+ data?: Record<string, any> | undefined;
1203
1352
  description?: string | undefined;
1204
1353
  tags?: string[] | undefined;
1205
1354
  documentation?: ({
@@ -1454,8 +1603,19 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1454
1603
  intro?: string | undefined;
1455
1604
  outro?: string | undefined;
1456
1605
  }[];
1606
+ } | {
1607
+ type: "number";
1608
+ minimum?: number | undefined;
1609
+ maximum?: number | undefined;
1610
+ step?: number | undefined;
1611
+ } | {
1612
+ type: "boolean";
1613
+ labels?: {
1614
+ false?: string | undefined;
1615
+ true?: string | undefined;
1616
+ } | undefined;
1457
1617
  };
1458
- data?: Record<string, string> | undefined;
1618
+ data?: Record<string, any> | undefined;
1459
1619
  description?: string | undefined;
1460
1620
  tags?: string[] | undefined;
1461
1621
  documentation?: ({
@@ -1634,8 +1794,19 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
1634
1794
  intro?: string | undefined;
1635
1795
  outro?: string | undefined;
1636
1796
  }[];
1797
+ } | {
1798
+ type: "number";
1799
+ minimum?: number | undefined;
1800
+ maximum?: number | undefined;
1801
+ step?: number | undefined;
1802
+ } | {
1803
+ type: "boolean";
1804
+ labels?: {
1805
+ false?: string | undefined;
1806
+ true?: string | undefined;
1807
+ } | undefined;
1637
1808
  };
1638
- data?: Record<string, string> | undefined;
1809
+ data?: Record<string, any> | undefined;
1639
1810
  description?: string | undefined;
1640
1811
  tags?: string[] | undefined;
1641
1812
  documentation?: ({
@@ -198,9 +198,9 @@ export declare const criterionSchema: z.ZodObject<{
198
198
  label: string;
199
199
  text: string;
200
200
  }>]>, "many">>;
201
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
201
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
202
202
  sortOrder: z.ZodOptional<z.ZodNumber>;
203
- definition: z.ZodUnion<[z.ZodObject<{
203
+ definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
204
204
  type: z.ZodLiteral<"select-single">;
205
205
  options: z.ZodArray<z.ZodObject<{
206
206
  id: z.ZodOptional<z.ZodString>;
@@ -278,6 +278,45 @@ export declare const criterionSchema: z.ZodObject<{
278
278
  intro?: string | undefined;
279
279
  outro?: string | undefined;
280
280
  }[];
281
+ }>, z.ZodObject<{
282
+ type: z.ZodLiteral<"number">;
283
+ minimum: z.ZodOptional<z.ZodNumber>;
284
+ maximum: z.ZodOptional<z.ZodNumber>;
285
+ step: z.ZodOptional<z.ZodNumber>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ type: "number";
288
+ minimum?: number | undefined;
289
+ maximum?: number | undefined;
290
+ step?: number | undefined;
291
+ }, {
292
+ type: "number";
293
+ minimum?: number | undefined;
294
+ maximum?: number | undefined;
295
+ step?: number | undefined;
296
+ }>, z.ZodObject<{
297
+ type: z.ZodLiteral<"boolean">;
298
+ labels: z.ZodOptional<z.ZodObject<{
299
+ true: z.ZodOptional<z.ZodString>;
300
+ false: z.ZodOptional<z.ZodString>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ false?: string | undefined;
303
+ true?: string | undefined;
304
+ }, {
305
+ false?: string | undefined;
306
+ true?: string | undefined;
307
+ }>>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ type: "boolean";
310
+ labels?: {
311
+ false?: string | undefined;
312
+ true?: string | undefined;
313
+ } | undefined;
314
+ }, {
315
+ type: "boolean";
316
+ labels?: {
317
+ false?: string | undefined;
318
+ true?: string | undefined;
319
+ } | undefined;
281
320
  }>]>;
282
321
  description: z.ZodOptional<z.ZodString>;
283
322
  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">]>>>;
@@ -302,8 +341,19 @@ export declare const criterionSchema: z.ZodObject<{
302
341
  intro?: string | undefined;
303
342
  outro?: string | undefined;
304
343
  }[];
344
+ } | {
345
+ type: "number";
346
+ minimum?: number | undefined;
347
+ maximum?: number | undefined;
348
+ step?: number | undefined;
349
+ } | {
350
+ type: "boolean";
351
+ labels?: {
352
+ false?: string | undefined;
353
+ true?: string | undefined;
354
+ } | undefined;
305
355
  };
306
- data?: Record<string, string> | undefined;
356
+ data?: Record<string, any> | undefined;
307
357
  description?: string | undefined;
308
358
  tags?: string[] | undefined;
309
359
  documentation?: ({
@@ -344,8 +394,19 @@ export declare const criterionSchema: z.ZodObject<{
344
394
  intro?: string | undefined;
345
395
  outro?: string | undefined;
346
396
  }[];
397
+ } | {
398
+ type: "number";
399
+ minimum?: number | undefined;
400
+ maximum?: number | undefined;
401
+ step?: number | undefined;
402
+ } | {
403
+ type: "boolean";
404
+ labels?: {
405
+ false?: string | undefined;
406
+ true?: string | undefined;
407
+ } | undefined;
347
408
  };
348
- data?: Record<string, string> | undefined;
409
+ data?: Record<string, any> | undefined;
349
410
  description?: string | undefined;
350
411
  tags?: string[] | undefined;
351
412
  documentation?: ({
@@ -391,8 +452,19 @@ export declare const criterionSchema: z.ZodObject<{
391
452
  intro?: string | undefined;
392
453
  outro?: string | undefined;
393
454
  }[];
455
+ } | {
456
+ type: "number";
457
+ minimum?: number | undefined;
458
+ maximum?: number | undefined;
459
+ step?: number | undefined;
460
+ } | {
461
+ type: "boolean";
462
+ labels?: {
463
+ false?: string | undefined;
464
+ true?: string | undefined;
465
+ } | undefined;
394
466
  };
395
- data?: Record<string, string> | undefined;
467
+ data?: Record<string, any> | undefined;
396
468
  description?: string | undefined;
397
469
  tags?: string[] | undefined;
398
470
  documentation?: ({
@@ -457,8 +529,19 @@ export declare const criterionSchema: z.ZodObject<{
457
529
  intro?: string | undefined;
458
530
  outro?: string | undefined;
459
531
  }[];
532
+ } | {
533
+ type: "number";
534
+ minimum?: number | undefined;
535
+ maximum?: number | undefined;
536
+ step?: number | undefined;
537
+ } | {
538
+ type: "boolean";
539
+ labels?: {
540
+ false?: string | undefined;
541
+ true?: string | undefined;
542
+ } | undefined;
460
543
  };
461
- data?: Record<string, string> | undefined;
544
+ data?: Record<string, any> | undefined;
462
545
  description?: string | undefined;
463
546
  tags?: string[] | undefined;
464
547
  documentation?: ({
@@ -528,8 +611,19 @@ export declare const criterionSchema: z.ZodObject<{
528
611
  intro?: string | undefined;
529
612
  outro?: string | undefined;
530
613
  }[];
614
+ } | {
615
+ type: "number";
616
+ minimum?: number | undefined;
617
+ maximum?: number | undefined;
618
+ step?: number | undefined;
619
+ } | {
620
+ type: "boolean";
621
+ labels?: {
622
+ false?: string | undefined;
623
+ true?: string | undefined;
624
+ } | undefined;
531
625
  };
532
- data?: Record<string, string> | undefined;
626
+ data?: Record<string, any> | undefined;
533
627
  description?: string | undefined;
534
628
  tags?: string[] | undefined;
535
629
  documentation?: ({
@@ -618,8 +712,19 @@ export declare const criterionSchema: z.ZodObject<{
618
712
  intro?: string | undefined;
619
713
  outro?: string | undefined;
620
714
  }[];
715
+ } | {
716
+ type: "number";
717
+ minimum?: number | undefined;
718
+ maximum?: number | undefined;
719
+ step?: number | undefined;
720
+ } | {
721
+ type: "boolean";
722
+ labels?: {
723
+ false?: string | undefined;
724
+ true?: string | undefined;
725
+ } | undefined;
621
726
  };
622
- data?: Record<string, string> | undefined;
727
+ data?: Record<string, any> | undefined;
623
728
  description?: string | undefined;
624
729
  tags?: string[] | undefined;
625
730
  documentation?: ({
@@ -713,8 +818,19 @@ export declare const criterionSchema: z.ZodObject<{
713
818
  intro?: string | undefined;
714
819
  outro?: string | undefined;
715
820
  }[];
821
+ } | {
822
+ type: "number";
823
+ minimum?: number | undefined;
824
+ maximum?: number | undefined;
825
+ step?: number | undefined;
826
+ } | {
827
+ type: "boolean";
828
+ labels?: {
829
+ false?: string | undefined;
830
+ true?: string | undefined;
831
+ } | undefined;
716
832
  };
717
- data?: Record<string, string> | undefined;
833
+ data?: Record<string, any> | undefined;
718
834
  description?: string | undefined;
719
835
  tags?: string[] | undefined;
720
836
  documentation?: ({
@@ -826,8 +942,19 @@ export declare const criterionSchema: z.ZodObject<{
826
942
  intro?: string | undefined;
827
943
  outro?: string | undefined;
828
944
  }[];
945
+ } | {
946
+ type: "number";
947
+ minimum?: number | undefined;
948
+ maximum?: number | undefined;
949
+ step?: number | undefined;
950
+ } | {
951
+ type: "boolean";
952
+ labels?: {
953
+ false?: string | undefined;
954
+ true?: string | undefined;
955
+ } | undefined;
829
956
  };
830
- data?: Record<string, string> | undefined;
957
+ data?: Record<string, any> | undefined;
831
958
  description?: string | undefined;
832
959
  tags?: string[] | undefined;
833
960
  documentation?: ({
@@ -10,7 +10,7 @@ exports.criterionSchema = zod_1.z.object({
10
10
  code: zod_1.z.string(),
11
11
  tags: zod_1.z.array(zod_1.z.string()).optional(),
12
12
  documentation: zod_1.z.array(task_item_1.documentationItemSchema).optional(),
13
- data: zod_1.z.record(zod_1.z.any()).optional(),
13
+ data: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
14
14
  sortOrder: zod_1.z.number().optional(),
15
15
  items: zod_1.z.array(task_group_1.taskGroupSchema)
16
16
  });