@code-pushup/models 0.39.0 → 0.42.1

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.
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const auditValueSchema: z.ZodNumber;
3
3
  export declare const auditDisplayValueSchema: z.ZodOptional<z.ZodString>;
4
4
  export declare const auditDetailsSchema: z.ZodObject<{
5
- issues: z.ZodArray<z.ZodObject<{
5
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
6
  message: z.ZodString;
7
7
  severity: z.ZodEnum<["info", "warning", "error"]>;
8
8
  source: z.ZodOptional<z.ZodObject<{
@@ -64,9 +64,54 @@ export declare const auditDetailsSchema: z.ZodObject<{
64
64
  endColumn?: number | undefined;
65
65
  } | undefined;
66
66
  } | undefined;
67
- }>, "many">;
67
+ }>, "many">>;
68
+ table: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
69
+ title: z.ZodOptional<z.ZodString>;
70
+ columns: z.ZodOptional<z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">>;
71
+ rows: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">;
72
+ }, "strip", z.ZodTypeAny, {
73
+ rows: (string | number)[][];
74
+ title?: string | undefined;
75
+ columns?: ("left" | "center" | "right")[] | undefined;
76
+ }, {
77
+ rows: (string | number)[][];
78
+ title?: string | undefined;
79
+ columns?: ("left" | "center" | "right")[] | undefined;
80
+ }>, z.ZodObject<{
81
+ title: z.ZodOptional<z.ZodString>;
82
+ columns: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">, z.ZodArray<z.ZodObject<{
83
+ key: z.ZodString;
84
+ label: z.ZodOptional<z.ZodString>;
85
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ key: string;
88
+ label?: string | undefined;
89
+ align?: "left" | "center" | "right" | undefined;
90
+ }, {
91
+ key: string;
92
+ label?: string | undefined;
93
+ align?: "left" | "center" | "right" | undefined;
94
+ }>, "many">]>>;
95
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>, "many">;
96
+ }, "strip", z.ZodTypeAny, {
97
+ rows: Record<string, string | number>[];
98
+ title?: string | undefined;
99
+ columns?: ("left" | "center" | "right")[] | {
100
+ key: string;
101
+ label?: string | undefined;
102
+ align?: "left" | "center" | "right" | undefined;
103
+ }[] | undefined;
104
+ }, {
105
+ rows: Record<string, string | number>[];
106
+ title?: string | undefined;
107
+ columns?: ("left" | "center" | "right")[] | {
108
+ key: string;
109
+ label?: string | undefined;
110
+ align?: "left" | "center" | "right" | undefined;
111
+ }[] | undefined;
112
+ }>]>>;
68
113
  }, "strip", z.ZodTypeAny, {
69
- issues: {
114
+ issues?: {
70
115
  message: string;
71
116
  severity: "error" | "info" | "warning";
72
117
  source?: {
@@ -78,9 +123,22 @@ export declare const auditDetailsSchema: z.ZodObject<{
78
123
  endColumn?: number | undefined;
79
124
  } | undefined;
80
125
  } | undefined;
81
- }[];
126
+ }[] | undefined;
127
+ table?: {
128
+ rows: (string | number)[][];
129
+ title?: string | undefined;
130
+ columns?: ("left" | "center" | "right")[] | undefined;
131
+ } | {
132
+ rows: Record<string, string | number>[];
133
+ title?: string | undefined;
134
+ columns?: ("left" | "center" | "right")[] | {
135
+ key: string;
136
+ label?: string | undefined;
137
+ align?: "left" | "center" | "right" | undefined;
138
+ }[] | undefined;
139
+ } | undefined;
82
140
  }, {
83
- issues: {
141
+ issues?: {
84
142
  message: string;
85
143
  severity: "error" | "info" | "warning";
86
144
  source?: {
@@ -92,7 +150,20 @@ export declare const auditDetailsSchema: z.ZodObject<{
92
150
  endColumn?: number | undefined;
93
151
  } | undefined;
94
152
  } | undefined;
95
- }[];
153
+ }[] | undefined;
154
+ table?: {
155
+ rows: (string | number)[][];
156
+ title?: string | undefined;
157
+ columns?: ("left" | "center" | "right")[] | undefined;
158
+ } | {
159
+ rows: Record<string, string | number>[];
160
+ title?: string | undefined;
161
+ columns?: ("left" | "center" | "right")[] | {
162
+ key: string;
163
+ label?: string | undefined;
164
+ align?: "left" | "center" | "right" | undefined;
165
+ }[] | undefined;
166
+ } | undefined;
96
167
  }>;
97
168
  export type AuditDetails = z.infer<typeof auditDetailsSchema>;
98
169
  export declare const auditOutputSchema: z.ZodObject<{
@@ -101,7 +172,7 @@ export declare const auditOutputSchema: z.ZodObject<{
101
172
  value: z.ZodNumber;
102
173
  score: z.ZodNumber;
103
174
  details: z.ZodOptional<z.ZodObject<{
104
- issues: z.ZodArray<z.ZodObject<{
175
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
105
176
  message: z.ZodString;
106
177
  severity: z.ZodEnum<["info", "warning", "error"]>;
107
178
  source: z.ZodOptional<z.ZodObject<{
@@ -163,9 +234,54 @@ export declare const auditOutputSchema: z.ZodObject<{
163
234
  endColumn?: number | undefined;
164
235
  } | undefined;
165
236
  } | undefined;
166
- }>, "many">;
237
+ }>, "many">>;
238
+ table: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
239
+ title: z.ZodOptional<z.ZodString>;
240
+ columns: z.ZodOptional<z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">>;
241
+ rows: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">;
242
+ }, "strip", z.ZodTypeAny, {
243
+ rows: (string | number)[][];
244
+ title?: string | undefined;
245
+ columns?: ("left" | "center" | "right")[] | undefined;
246
+ }, {
247
+ rows: (string | number)[][];
248
+ title?: string | undefined;
249
+ columns?: ("left" | "center" | "right")[] | undefined;
250
+ }>, z.ZodObject<{
251
+ title: z.ZodOptional<z.ZodString>;
252
+ columns: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">, z.ZodArray<z.ZodObject<{
253
+ key: z.ZodString;
254
+ label: z.ZodOptional<z.ZodString>;
255
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ key: string;
258
+ label?: string | undefined;
259
+ align?: "left" | "center" | "right" | undefined;
260
+ }, {
261
+ key: string;
262
+ label?: string | undefined;
263
+ align?: "left" | "center" | "right" | undefined;
264
+ }>, "many">]>>;
265
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>, "many">;
266
+ }, "strip", z.ZodTypeAny, {
267
+ rows: Record<string, string | number>[];
268
+ title?: string | undefined;
269
+ columns?: ("left" | "center" | "right")[] | {
270
+ key: string;
271
+ label?: string | undefined;
272
+ align?: "left" | "center" | "right" | undefined;
273
+ }[] | undefined;
274
+ }, {
275
+ rows: Record<string, string | number>[];
276
+ title?: string | undefined;
277
+ columns?: ("left" | "center" | "right")[] | {
278
+ key: string;
279
+ label?: string | undefined;
280
+ align?: "left" | "center" | "right" | undefined;
281
+ }[] | undefined;
282
+ }>]>>;
167
283
  }, "strip", z.ZodTypeAny, {
168
- issues: {
284
+ issues?: {
169
285
  message: string;
170
286
  severity: "error" | "info" | "warning";
171
287
  source?: {
@@ -177,9 +293,22 @@ export declare const auditOutputSchema: z.ZodObject<{
177
293
  endColumn?: number | undefined;
178
294
  } | undefined;
179
295
  } | undefined;
180
- }[];
296
+ }[] | undefined;
297
+ table?: {
298
+ rows: (string | number)[][];
299
+ title?: string | undefined;
300
+ columns?: ("left" | "center" | "right")[] | undefined;
301
+ } | {
302
+ rows: Record<string, string | number>[];
303
+ title?: string | undefined;
304
+ columns?: ("left" | "center" | "right")[] | {
305
+ key: string;
306
+ label?: string | undefined;
307
+ align?: "left" | "center" | "right" | undefined;
308
+ }[] | undefined;
309
+ } | undefined;
181
310
  }, {
182
- issues: {
311
+ issues?: {
183
312
  message: string;
184
313
  severity: "error" | "info" | "warning";
185
314
  source?: {
@@ -191,7 +320,20 @@ export declare const auditOutputSchema: z.ZodObject<{
191
320
  endColumn?: number | undefined;
192
321
  } | undefined;
193
322
  } | undefined;
194
- }[];
323
+ }[] | undefined;
324
+ table?: {
325
+ rows: (string | number)[][];
326
+ title?: string | undefined;
327
+ columns?: ("left" | "center" | "right")[] | undefined;
328
+ } | {
329
+ rows: Record<string, string | number>[];
330
+ title?: string | undefined;
331
+ columns?: ("left" | "center" | "right")[] | {
332
+ key: string;
333
+ label?: string | undefined;
334
+ align?: "left" | "center" | "right" | undefined;
335
+ }[] | undefined;
336
+ } | undefined;
195
337
  }>>;
196
338
  }, "strip", z.ZodTypeAny, {
197
339
  slug: string;
@@ -199,7 +341,7 @@ export declare const auditOutputSchema: z.ZodObject<{
199
341
  score: number;
200
342
  displayValue?: string | undefined;
201
343
  details?: {
202
- issues: {
344
+ issues?: {
203
345
  message: string;
204
346
  severity: "error" | "info" | "warning";
205
347
  source?: {
@@ -211,7 +353,20 @@ export declare const auditOutputSchema: z.ZodObject<{
211
353
  endColumn?: number | undefined;
212
354
  } | undefined;
213
355
  } | undefined;
214
- }[];
356
+ }[] | undefined;
357
+ table?: {
358
+ rows: (string | number)[][];
359
+ title?: string | undefined;
360
+ columns?: ("left" | "center" | "right")[] | undefined;
361
+ } | {
362
+ rows: Record<string, string | number>[];
363
+ title?: string | undefined;
364
+ columns?: ("left" | "center" | "right")[] | {
365
+ key: string;
366
+ label?: string | undefined;
367
+ align?: "left" | "center" | "right" | undefined;
368
+ }[] | undefined;
369
+ } | undefined;
215
370
  } | undefined;
216
371
  }, {
217
372
  slug: string;
@@ -219,7 +374,7 @@ export declare const auditOutputSchema: z.ZodObject<{
219
374
  score: number;
220
375
  displayValue?: string | undefined;
221
376
  details?: {
222
- issues: {
377
+ issues?: {
223
378
  message: string;
224
379
  severity: "error" | "info" | "warning";
225
380
  source?: {
@@ -231,7 +386,20 @@ export declare const auditOutputSchema: z.ZodObject<{
231
386
  endColumn?: number | undefined;
232
387
  } | undefined;
233
388
  } | undefined;
234
- }[];
389
+ }[] | undefined;
390
+ table?: {
391
+ rows: (string | number)[][];
392
+ title?: string | undefined;
393
+ columns?: ("left" | "center" | "right")[] | undefined;
394
+ } | {
395
+ rows: Record<string, string | number>[];
396
+ title?: string | undefined;
397
+ columns?: ("left" | "center" | "right")[] | {
398
+ key: string;
399
+ label?: string | undefined;
400
+ align?: "left" | "center" | "right" | undefined;
401
+ }[] | undefined;
402
+ } | undefined;
235
403
  } | undefined;
236
404
  }>;
237
405
  export type AuditOutput = z.infer<typeof auditOutputSchema>;
@@ -241,7 +409,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
241
409
  value: z.ZodNumber;
242
410
  score: z.ZodNumber;
243
411
  details: z.ZodOptional<z.ZodObject<{
244
- issues: z.ZodArray<z.ZodObject<{
412
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
245
413
  message: z.ZodString;
246
414
  severity: z.ZodEnum<["info", "warning", "error"]>;
247
415
  source: z.ZodOptional<z.ZodObject<{
@@ -303,9 +471,54 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
303
471
  endColumn?: number | undefined;
304
472
  } | undefined;
305
473
  } | undefined;
306
- }>, "many">;
474
+ }>, "many">>;
475
+ table: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
476
+ title: z.ZodOptional<z.ZodString>;
477
+ columns: z.ZodOptional<z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">>;
478
+ rows: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">;
479
+ }, "strip", z.ZodTypeAny, {
480
+ rows: (string | number)[][];
481
+ title?: string | undefined;
482
+ columns?: ("left" | "center" | "right")[] | undefined;
483
+ }, {
484
+ rows: (string | number)[][];
485
+ title?: string | undefined;
486
+ columns?: ("left" | "center" | "right")[] | undefined;
487
+ }>, z.ZodObject<{
488
+ title: z.ZodOptional<z.ZodString>;
489
+ columns: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["left", "center", "right"]>, "many">, z.ZodArray<z.ZodObject<{
490
+ key: z.ZodString;
491
+ label: z.ZodOptional<z.ZodString>;
492
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
493
+ }, "strip", z.ZodTypeAny, {
494
+ key: string;
495
+ label?: string | undefined;
496
+ align?: "left" | "center" | "right" | undefined;
497
+ }, {
498
+ key: string;
499
+ label?: string | undefined;
500
+ align?: "left" | "center" | "right" | undefined;
501
+ }>, "many">]>>;
502
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>, "many">;
503
+ }, "strip", z.ZodTypeAny, {
504
+ rows: Record<string, string | number>[];
505
+ title?: string | undefined;
506
+ columns?: ("left" | "center" | "right")[] | {
507
+ key: string;
508
+ label?: string | undefined;
509
+ align?: "left" | "center" | "right" | undefined;
510
+ }[] | undefined;
511
+ }, {
512
+ rows: Record<string, string | number>[];
513
+ title?: string | undefined;
514
+ columns?: ("left" | "center" | "right")[] | {
515
+ key: string;
516
+ label?: string | undefined;
517
+ align?: "left" | "center" | "right" | undefined;
518
+ }[] | undefined;
519
+ }>]>>;
307
520
  }, "strip", z.ZodTypeAny, {
308
- issues: {
521
+ issues?: {
309
522
  message: string;
310
523
  severity: "error" | "info" | "warning";
311
524
  source?: {
@@ -317,9 +530,22 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
317
530
  endColumn?: number | undefined;
318
531
  } | undefined;
319
532
  } | undefined;
320
- }[];
533
+ }[] | undefined;
534
+ table?: {
535
+ rows: (string | number)[][];
536
+ title?: string | undefined;
537
+ columns?: ("left" | "center" | "right")[] | undefined;
538
+ } | {
539
+ rows: Record<string, string | number>[];
540
+ title?: string | undefined;
541
+ columns?: ("left" | "center" | "right")[] | {
542
+ key: string;
543
+ label?: string | undefined;
544
+ align?: "left" | "center" | "right" | undefined;
545
+ }[] | undefined;
546
+ } | undefined;
321
547
  }, {
322
- issues: {
548
+ issues?: {
323
549
  message: string;
324
550
  severity: "error" | "info" | "warning";
325
551
  source?: {
@@ -331,7 +557,20 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
331
557
  endColumn?: number | undefined;
332
558
  } | undefined;
333
559
  } | undefined;
334
- }[];
560
+ }[] | undefined;
561
+ table?: {
562
+ rows: (string | number)[][];
563
+ title?: string | undefined;
564
+ columns?: ("left" | "center" | "right")[] | undefined;
565
+ } | {
566
+ rows: Record<string, string | number>[];
567
+ title?: string | undefined;
568
+ columns?: ("left" | "center" | "right")[] | {
569
+ key: string;
570
+ label?: string | undefined;
571
+ align?: "left" | "center" | "right" | undefined;
572
+ }[] | undefined;
573
+ } | undefined;
335
574
  }>>;
336
575
  }, "strip", z.ZodTypeAny, {
337
576
  slug: string;
@@ -339,7 +578,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
339
578
  score: number;
340
579
  displayValue?: string | undefined;
341
580
  details?: {
342
- issues: {
581
+ issues?: {
343
582
  message: string;
344
583
  severity: "error" | "info" | "warning";
345
584
  source?: {
@@ -351,7 +590,20 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
351
590
  endColumn?: number | undefined;
352
591
  } | undefined;
353
592
  } | undefined;
354
- }[];
593
+ }[] | undefined;
594
+ table?: {
595
+ rows: (string | number)[][];
596
+ title?: string | undefined;
597
+ columns?: ("left" | "center" | "right")[] | undefined;
598
+ } | {
599
+ rows: Record<string, string | number>[];
600
+ title?: string | undefined;
601
+ columns?: ("left" | "center" | "right")[] | {
602
+ key: string;
603
+ label?: string | undefined;
604
+ align?: "left" | "center" | "right" | undefined;
605
+ }[] | undefined;
606
+ } | undefined;
355
607
  } | undefined;
356
608
  }, {
357
609
  slug: string;
@@ -359,7 +611,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
359
611
  score: number;
360
612
  displayValue?: string | undefined;
361
613
  details?: {
362
- issues: {
614
+ issues?: {
363
615
  message: string;
364
616
  severity: "error" | "info" | "warning";
365
617
  source?: {
@@ -371,7 +623,20 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
371
623
  endColumn?: number | undefined;
372
624
  } | undefined;
373
625
  } | undefined;
374
- }[];
626
+ }[] | undefined;
627
+ table?: {
628
+ rows: (string | number)[][];
629
+ title?: string | undefined;
630
+ columns?: ("left" | "center" | "right")[] | undefined;
631
+ } | {
632
+ rows: Record<string, string | number>[];
633
+ title?: string | undefined;
634
+ columns?: ("left" | "center" | "right")[] | {
635
+ key: string;
636
+ label?: string | undefined;
637
+ align?: "left" | "center" | "right" | undefined;
638
+ }[] | undefined;
639
+ } | undefined;
375
640
  } | undefined;
376
641
  }>, "many">, {
377
642
  slug: string;
@@ -379,7 +644,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
379
644
  score: number;
380
645
  displayValue?: string | undefined;
381
646
  details?: {
382
- issues: {
647
+ issues?: {
383
648
  message: string;
384
649
  severity: "error" | "info" | "warning";
385
650
  source?: {
@@ -391,7 +656,20 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
391
656
  endColumn?: number | undefined;
392
657
  } | undefined;
393
658
  } | undefined;
394
- }[];
659
+ }[] | undefined;
660
+ table?: {
661
+ rows: (string | number)[][];
662
+ title?: string | undefined;
663
+ columns?: ("left" | "center" | "right")[] | undefined;
664
+ } | {
665
+ rows: Record<string, string | number>[];
666
+ title?: string | undefined;
667
+ columns?: ("left" | "center" | "right")[] | {
668
+ key: string;
669
+ label?: string | undefined;
670
+ align?: "left" | "center" | "right" | undefined;
671
+ }[] | undefined;
672
+ } | undefined;
395
673
  } | undefined;
396
674
  }[], {
397
675
  slug: string;
@@ -399,7 +677,7 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
399
677
  score: number;
400
678
  displayValue?: string | undefined;
401
679
  details?: {
402
- issues: {
680
+ issues?: {
403
681
  message: string;
404
682
  severity: "error" | "info" | "warning";
405
683
  source?: {
@@ -411,7 +689,20 @@ export declare const auditOutputsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
411
689
  endColumn?: number | undefined;
412
690
  } | undefined;
413
691
  } | undefined;
414
- }[];
692
+ }[] | undefined;
693
+ table?: {
694
+ rows: (string | number)[][];
695
+ title?: string | undefined;
696
+ columns?: ("left" | "center" | "right")[] | undefined;
697
+ } | {
698
+ rows: Record<string, string | number>[];
699
+ title?: string | undefined;
700
+ columns?: ("left" | "center" | "right")[] | {
701
+ key: string;
702
+ label?: string | undefined;
703
+ align?: "left" | "center" | "right" | undefined;
704
+ }[] | undefined;
705
+ } | undefined;
415
706
  } | undefined;
416
707
  }[]>;
417
708
  export type AuditOutputs = z.infer<typeof auditOutputsSchema>;