@code-pushup/models 0.106.0 → 0.108.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.
- package/package.json +2 -2
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/audit.d.ts +2 -2
- package/src/lib/category-config.d.ts +2 -2
- package/src/lib/core-config.d.ts +21 -21
- package/src/lib/group.d.ts +3 -3
- package/src/lib/implementation/schemas.d.ts +3 -3
- package/src/lib/implementation/schemas.js +16 -16
- package/src/lib/implementation/schemas.js.map +1 -1
- package/src/lib/plugin-config.d.ts +10 -10
- package/src/lib/report.d.ts +8 -8
- package/src/lib/reports-diff.d.ts +31 -31
- package/src/lib/runner-config.d.ts +3 -3
- package/src/lib/upload-config.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/models",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.108.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Model definitions and validators for the Code PushUp CLI",
|
|
6
6
|
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/models#readme",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"ansis": "^3.3.2",
|
|
31
31
|
"vscode-material-icons": "^0.1.0",
|
|
32
|
-
"zod": "^4.
|
|
32
|
+
"zod": "^4.2.1"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"src",
|
package/src/index.d.ts
CHANGED
|
@@ -23,3 +23,4 @@ export { runnerArgsSchema, runnerConfigSchema, runnerFilesPathsSchema, runnerFun
|
|
|
23
23
|
export { tableAlignmentSchema, tableColumnObjectSchema, tableColumnPrimitiveSchema, tableRowObjectSchema, tableRowPrimitiveSchema, tableSchema, type Table, type TableAlignment, type TableColumnObject, type TableColumnPrimitive, type TableRowObject, type TableRowPrimitive, } from './lib/table.js';
|
|
24
24
|
export { basicTreeNodeSchema, basicTreeSchema, coverageTreeMissingLOCSchema, coverageTreeNodeSchema, coverageTreeSchema, treeSchema, type BasicTree, type BasicTreeNode, type CoverageTree, type CoverageTreeMissingLOC, type CoverageTreeNode, type Tree, } from './lib/tree.js';
|
|
25
25
|
export { uploadConfigSchema, type UploadConfig } from './lib/upload-config.js';
|
|
26
|
+
export { convertAsyncZodFunctionToSchema } from './lib/implementation/function.js';
|
package/src/index.js
CHANGED
|
@@ -23,4 +23,5 @@ export { runnerArgsSchema, runnerConfigSchema, runnerFilesPathsSchema, runnerFun
|
|
|
23
23
|
export { tableAlignmentSchema, tableColumnObjectSchema, tableColumnPrimitiveSchema, tableRowObjectSchema, tableRowPrimitiveSchema, tableSchema, } from './lib/table.js';
|
|
24
24
|
export { basicTreeNodeSchema, basicTreeSchema, coverageTreeMissingLOCSchema, coverageTreeNodeSchema, coverageTreeSchema, treeSchema, } from './lib/tree.js';
|
|
25
25
|
export { uploadConfigSchema } from './lib/upload-config.js';
|
|
26
|
+
export { convertAsyncZodFunctionToSchema } from './lib/implementation/function.js';
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,GAErB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,wBAAwB,GAEzB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GAInB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAc,MAAM,gBAAgB,CAAC;AACzD,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,0BAA0B,GAI3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,GAGlB,MAAM,0BAA0B,CAAC;AAClC,OAA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AC;AAC/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC"}
|
package/src/lib/audit.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const auditSchema: z.ZodObject<{
|
|
|
3
3
|
slug: z.ZodString;
|
|
4
4
|
title: z.ZodString;
|
|
5
5
|
description: z.ZodOptional<z.ZodString>;
|
|
6
|
-
docsUrl: z.
|
|
6
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
7
7
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export type Audit = z.infer<typeof auditSchema>;
|
|
@@ -11,6 +11,6 @@ export declare const pluginAuditsSchema: z.ZodArray<z.ZodObject<{
|
|
|
11
11
|
slug: z.ZodString;
|
|
12
12
|
title: z.ZodString;
|
|
13
13
|
description: z.ZodOptional<z.ZodString>;
|
|
14
|
-
docsUrl: z.
|
|
14
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
15
15
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
16
16
|
}, z.core.$strip>>;
|
|
@@ -22,7 +22,7 @@ export declare const categoryConfigSchema: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
23
|
title: z.ZodString;
|
|
24
24
|
description: z.ZodOptional<z.ZodString>;
|
|
25
|
-
docsUrl: z.
|
|
25
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
26
26
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
27
27
|
scoreTarget: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
}, z.core.$strip>;
|
|
@@ -40,7 +40,7 @@ export declare const categoriesSchema: z.ZodArray<z.ZodObject<{
|
|
|
40
40
|
}, z.core.$strip>>;
|
|
41
41
|
title: z.ZodString;
|
|
42
42
|
description: z.ZodOptional<z.ZodString>;
|
|
43
|
-
docsUrl: z.
|
|
43
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
44
44
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
45
45
|
scoreTarget: z.ZodOptional<z.ZodNumber>;
|
|
46
46
|
}, z.core.$strip>>;
|
package/src/lib/core-config.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
|
|
|
5
5
|
version: z.ZodOptional<z.ZodString>;
|
|
6
6
|
title: z.ZodString;
|
|
7
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
|
-
docsUrl: z.
|
|
8
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
9
9
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
slug: z.ZodString;
|
|
11
11
|
icon: z.ZodEnum<{
|
|
@@ -872,7 +872,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
|
|
|
872
872
|
command: z.ZodString;
|
|
873
873
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
874
874
|
outputFile: z.ZodString;
|
|
875
|
-
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
875
|
+
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodUnknown], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
876
876
|
slug: z.ZodString;
|
|
877
877
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
878
878
|
value: z.ZodNumber;
|
|
@@ -992,7 +992,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
|
|
|
992
992
|
}, z.core.$strip>>;
|
|
993
993
|
}, z.core.$strip>>>]>>, unknown>>>;
|
|
994
994
|
configFile: z.ZodOptional<z.ZodString>;
|
|
995
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
995
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodObject<{
|
|
996
996
|
persist: z.ZodObject<{
|
|
997
997
|
outputDir: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
998
998
|
filename: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -1125,7 +1125,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
|
|
|
1125
1125
|
slug: z.ZodString;
|
|
1126
1126
|
title: z.ZodString;
|
|
1127
1127
|
description: z.ZodOptional<z.ZodString>;
|
|
1128
|
-
docsUrl: z.
|
|
1128
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
1129
1129
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1130
1130
|
}, z.core.$strip>>;
|
|
1131
1131
|
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1136,7 +1136,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
|
|
|
1136
1136
|
}, z.core.$strip>>;
|
|
1137
1137
|
title: z.ZodString;
|
|
1138
1138
|
description: z.ZodOptional<z.ZodString>;
|
|
1139
|
-
docsUrl: z.
|
|
1139
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
1140
1140
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1141
1141
|
}, z.core.$strip>>>;
|
|
1142
1142
|
scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
|
|
@@ -1152,7 +1152,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
|
|
|
1152
1152
|
skipReports: z.ZodOptional<z.ZodBoolean>;
|
|
1153
1153
|
}, z.core.$strip>>;
|
|
1154
1154
|
upload: z.ZodOptional<z.ZodObject<{
|
|
1155
|
-
server: z.
|
|
1155
|
+
server: z.ZodURL;
|
|
1156
1156
|
apiKey: z.ZodString;
|
|
1157
1157
|
organization: z.ZodString;
|
|
1158
1158
|
project: z.ZodString;
|
|
@@ -1171,7 +1171,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
|
|
|
1171
1171
|
}, z.core.$strip>>;
|
|
1172
1172
|
title: z.ZodString;
|
|
1173
1173
|
description: z.ZodOptional<z.ZodString>;
|
|
1174
|
-
docsUrl: z.
|
|
1174
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
1175
1175
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1176
1176
|
scoreTarget: z.ZodOptional<z.ZodNumber>;
|
|
1177
1177
|
}, z.core.$strip>>>;
|
|
@@ -1182,7 +1182,7 @@ export declare const coreConfigSchema: z.ZodObject<{
|
|
|
1182
1182
|
version: z.ZodOptional<z.ZodString>;
|
|
1183
1183
|
title: z.ZodString;
|
|
1184
1184
|
description: z.ZodOptional<z.ZodString>;
|
|
1185
|
-
docsUrl: z.
|
|
1185
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
1186
1186
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1187
1187
|
slug: z.ZodString;
|
|
1188
1188
|
icon: z.ZodEnum<{
|
|
@@ -2049,7 +2049,7 @@ export declare const coreConfigSchema: z.ZodObject<{
|
|
|
2049
2049
|
command: z.ZodString;
|
|
2050
2050
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2051
2051
|
outputFile: z.ZodString;
|
|
2052
|
-
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
2052
|
+
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodUnknown], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
2053
2053
|
slug: z.ZodString;
|
|
2054
2054
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
2055
2055
|
value: z.ZodNumber;
|
|
@@ -2169,7 +2169,7 @@ export declare const coreConfigSchema: z.ZodObject<{
|
|
|
2169
2169
|
}, z.core.$strip>>;
|
|
2170
2170
|
}, z.core.$strip>>>]>>, unknown>>>;
|
|
2171
2171
|
configFile: z.ZodOptional<z.ZodString>;
|
|
2172
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
2172
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodObject<{
|
|
2173
2173
|
persist: z.ZodObject<{
|
|
2174
2174
|
outputDir: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
2175
2175
|
filename: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -2302,7 +2302,7 @@ export declare const coreConfigSchema: z.ZodObject<{
|
|
|
2302
2302
|
slug: z.ZodString;
|
|
2303
2303
|
title: z.ZodString;
|
|
2304
2304
|
description: z.ZodOptional<z.ZodString>;
|
|
2305
|
-
docsUrl: z.
|
|
2305
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
2306
2306
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
2307
2307
|
}, z.core.$strip>>;
|
|
2308
2308
|
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2313,7 +2313,7 @@ export declare const coreConfigSchema: z.ZodObject<{
|
|
|
2313
2313
|
}, z.core.$strip>>;
|
|
2314
2314
|
title: z.ZodString;
|
|
2315
2315
|
description: z.ZodOptional<z.ZodString>;
|
|
2316
|
-
docsUrl: z.
|
|
2316
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
2317
2317
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
2318
2318
|
}, z.core.$strip>>>;
|
|
2319
2319
|
scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
|
|
@@ -2329,7 +2329,7 @@ export declare const coreConfigSchema: z.ZodObject<{
|
|
|
2329
2329
|
skipReports: z.ZodOptional<z.ZodBoolean>;
|
|
2330
2330
|
}, z.core.$strip>>;
|
|
2331
2331
|
upload: z.ZodOptional<z.ZodObject<{
|
|
2332
|
-
server: z.
|
|
2332
|
+
server: z.ZodURL;
|
|
2333
2333
|
apiKey: z.ZodString;
|
|
2334
2334
|
organization: z.ZodString;
|
|
2335
2335
|
project: z.ZodString;
|
|
@@ -2348,7 +2348,7 @@ export declare const coreConfigSchema: z.ZodObject<{
|
|
|
2348
2348
|
}, z.core.$strip>>;
|
|
2349
2349
|
title: z.ZodString;
|
|
2350
2350
|
description: z.ZodOptional<z.ZodString>;
|
|
2351
|
-
docsUrl: z.
|
|
2351
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
2352
2352
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
2353
2353
|
scoreTarget: z.ZodOptional<z.ZodNumber>;
|
|
2354
2354
|
}, z.core.$strip>>>;
|
|
@@ -2364,7 +2364,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
2364
2364
|
version: z.ZodOptional<z.ZodString>;
|
|
2365
2365
|
title: z.ZodString;
|
|
2366
2366
|
description: z.ZodOptional<z.ZodString>;
|
|
2367
|
-
docsUrl: z.
|
|
2367
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
2368
2368
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
2369
2369
|
slug: z.ZodString;
|
|
2370
2370
|
icon: z.ZodEnum<{
|
|
@@ -3231,7 +3231,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
3231
3231
|
command: z.ZodString;
|
|
3232
3232
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3233
3233
|
outputFile: z.ZodString;
|
|
3234
|
-
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
3234
|
+
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodUnknown], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
3235
3235
|
slug: z.ZodString;
|
|
3236
3236
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
3237
3237
|
value: z.ZodNumber;
|
|
@@ -3351,7 +3351,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
3351
3351
|
}, z.core.$strip>>;
|
|
3352
3352
|
}, z.core.$strip>>>]>>, unknown>>>;
|
|
3353
3353
|
configFile: z.ZodOptional<z.ZodString>;
|
|
3354
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
3354
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodObject<{
|
|
3355
3355
|
persist: z.ZodObject<{
|
|
3356
3356
|
outputDir: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
3357
3357
|
filename: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -3484,7 +3484,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
3484
3484
|
slug: z.ZodString;
|
|
3485
3485
|
title: z.ZodString;
|
|
3486
3486
|
description: z.ZodOptional<z.ZodString>;
|
|
3487
|
-
docsUrl: z.
|
|
3487
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
3488
3488
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
3489
3489
|
}, z.core.$strip>>;
|
|
3490
3490
|
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3495,7 +3495,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
3495
3495
|
}, z.core.$strip>>;
|
|
3496
3496
|
title: z.ZodString;
|
|
3497
3497
|
description: z.ZodOptional<z.ZodString>;
|
|
3498
|
-
docsUrl: z.
|
|
3498
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
3499
3499
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
3500
3500
|
}, z.core.$strip>>>;
|
|
3501
3501
|
scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
|
|
@@ -3511,7 +3511,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
3511
3511
|
skipReports: z.ZodOptional<z.ZodBoolean>;
|
|
3512
3512
|
}, z.core.$strip>>;
|
|
3513
3513
|
upload: z.ZodOptional<z.ZodObject<{
|
|
3514
|
-
server: z.
|
|
3514
|
+
server: z.ZodURL;
|
|
3515
3515
|
apiKey: z.ZodString;
|
|
3516
3516
|
organization: z.ZodString;
|
|
3517
3517
|
project: z.ZodString;
|
|
@@ -3530,7 +3530,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
3530
3530
|
}, z.core.$strip>>;
|
|
3531
3531
|
title: z.ZodString;
|
|
3532
3532
|
description: z.ZodOptional<z.ZodString>;
|
|
3533
|
-
docsUrl: z.
|
|
3533
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
3534
3534
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
3535
3535
|
scoreTarget: z.ZodOptional<z.ZodNumber>;
|
|
3536
3536
|
}, z.core.$strip>>>;
|
package/src/lib/group.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type GroupRef = z.infer<typeof groupRefSchema>;
|
|
|
7
7
|
export declare const groupMetaSchema: z.ZodObject<{
|
|
8
8
|
title: z.ZodString;
|
|
9
9
|
description: z.ZodOptional<z.ZodString>;
|
|
10
|
-
docsUrl: z.
|
|
10
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
11
11
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type GroupMeta = z.infer<typeof groupMetaSchema>;
|
|
@@ -19,7 +19,7 @@ export declare const groupSchema: z.ZodObject<{
|
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
20
|
title: z.ZodString;
|
|
21
21
|
description: z.ZodOptional<z.ZodString>;
|
|
22
|
-
docsUrl: z.
|
|
22
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
23
23
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
export type Group = z.infer<typeof groupSchema>;
|
|
@@ -31,6 +31,6 @@ export declare const groupsSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
|
31
31
|
}, z.core.$strip>>;
|
|
32
32
|
title: z.ZodString;
|
|
33
33
|
description: z.ZodOptional<z.ZodString>;
|
|
34
|
-
docsUrl: z.
|
|
34
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
35
35
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
36
36
|
}, z.core.$strip>>>;
|
|
@@ -15,9 +15,9 @@ export declare function executionMetaSchema(options?: {
|
|
|
15
15
|
export declare const slugSchema: ZodString;
|
|
16
16
|
/** Schema for a general description property */
|
|
17
17
|
export declare const descriptionSchema: ZodOptional<ZodString>;
|
|
18
|
-
export declare const urlSchema:
|
|
18
|
+
export declare const urlSchema: z.ZodURL;
|
|
19
19
|
/** Schema for a docsUrl */
|
|
20
|
-
export declare const docsUrlSchema:
|
|
20
|
+
export declare const docsUrlSchema: ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<ZodOptional<z.ZodURL>>]>>;
|
|
21
21
|
/** Schema for a title of a plugin, category and audit */
|
|
22
22
|
export declare const titleSchema: ZodString;
|
|
23
23
|
/** Schema for score of audit, category or group */
|
|
@@ -37,7 +37,7 @@ export declare function metaSchema(options?: {
|
|
|
37
37
|
}): ZodObject<{
|
|
38
38
|
title: ZodString;
|
|
39
39
|
description: ZodOptional<ZodString>;
|
|
40
|
-
docsUrl:
|
|
40
|
+
docsUrl: ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<ZodOptional<z.ZodURL>>]>>;
|
|
41
41
|
isSkipped: ZodOptional<z.ZodBoolean>;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
/** Schema for a generalFilePath */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MATERIAL_ICONS } from 'vscode-material-icons';
|
|
2
|
-
import {
|
|
2
|
+
import { z } from 'zod';
|
|
3
3
|
import { MAX_DESCRIPTION_LENGTH, MAX_SLUG_LENGTH, MAX_TITLE_LENGTH, } from './limits.js';
|
|
4
4
|
import { filenameRegex, slugRegex } from './utils.js';
|
|
5
5
|
export const tableCellValueSchema = z
|
|
@@ -41,23 +41,23 @@ export const descriptionSchema = z
|
|
|
41
41
|
})
|
|
42
42
|
.optional();
|
|
43
43
|
/* Schema for a URL */
|
|
44
|
-
export const urlSchema = z.
|
|
44
|
+
export const urlSchema = z.url().meta({ title: 'URL' });
|
|
45
45
|
/** Schema for a docsUrl */
|
|
46
|
-
export const docsUrlSchema =
|
|
47
|
-
.
|
|
48
|
-
|
|
46
|
+
export const docsUrlSchema = z
|
|
47
|
+
.union([
|
|
48
|
+
z.literal(''), // allow empty string (no URL validation)
|
|
49
49
|
// eslint-disable-next-line unicorn/prefer-top-level-await, unicorn/catch-error-name
|
|
50
|
-
.catch(ctx => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
urlSchema.optional().catch(ctx => {
|
|
51
|
+
const issue = ctx.issues[0];
|
|
52
|
+
if (issue?.code === 'invalid_format' && issue?.format === 'url') {
|
|
53
|
+
console.warn(`Ignoring invalid docsUrl: ${ctx.value}`);
|
|
54
|
+
return '';
|
|
55
|
+
}
|
|
56
|
+
// re-parse to throw formatted error for non-URL issues
|
|
57
|
+
return urlSchema.parse(ctx.value);
|
|
58
|
+
}),
|
|
59
|
+
])
|
|
60
|
+
.optional()
|
|
61
61
|
.meta({ title: 'DocsUrl', description: 'Documentation site' });
|
|
62
62
|
/** Schema for a title of a plugin, category and audit */
|
|
63
63
|
export const titleSchema = z.string().max(MAX_TITLE_LENGTH).meta({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/implementation/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/implementation/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAoD,CAAC,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;KACtD,OAAO,CAAC,IAAI,CAAC;KACb,IAAI,CAAC,EAAE,KAAK,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,EAAE,EAAE,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,SAAS,EAAE,iBAAiB,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;IAChE,WAAW,EAAE,iBAAiB;SAC3B,IAAI,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;SACrC,QAAQ,EAAE;IACb,OAAO,EAAE,iBAAiB,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvE,SAAS,EAAE,iBAAiB,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC5E,CAAC;KACD,IAAI,CAAC;IACJ,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,kBAAkB;CAChC,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@ export declare const pluginMetaSchema: z.ZodObject<{
|
|
|
8
8
|
version: z.ZodOptional<z.ZodString>;
|
|
9
9
|
title: z.ZodString;
|
|
10
10
|
description: z.ZodOptional<z.ZodString>;
|
|
11
|
-
docsUrl: z.
|
|
11
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
12
12
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
slug: z.ZodString;
|
|
14
14
|
icon: z.ZodEnum<{
|
|
@@ -880,7 +880,7 @@ export declare const pluginDataSchema: z.ZodObject<{
|
|
|
880
880
|
command: z.ZodString;
|
|
881
881
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
882
882
|
outputFile: z.ZodString;
|
|
883
|
-
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
883
|
+
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodUnknown], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
884
884
|
slug: z.ZodString;
|
|
885
885
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
886
886
|
value: z.ZodNumber;
|
|
@@ -1000,7 +1000,7 @@ export declare const pluginDataSchema: z.ZodObject<{
|
|
|
1000
1000
|
}, z.core.$strip>>;
|
|
1001
1001
|
}, z.core.$strip>>>]>>, unknown>>>;
|
|
1002
1002
|
configFile: z.ZodOptional<z.ZodString>;
|
|
1003
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
1003
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodObject<{
|
|
1004
1004
|
persist: z.ZodObject<{
|
|
1005
1005
|
outputDir: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
1006
1006
|
filename: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -1133,7 +1133,7 @@ export declare const pluginDataSchema: z.ZodObject<{
|
|
|
1133
1133
|
slug: z.ZodString;
|
|
1134
1134
|
title: z.ZodString;
|
|
1135
1135
|
description: z.ZodOptional<z.ZodString>;
|
|
1136
|
-
docsUrl: z.
|
|
1136
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
1137
1137
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1138
1138
|
}, z.core.$strip>>;
|
|
1139
1139
|
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1144,7 +1144,7 @@ export declare const pluginDataSchema: z.ZodObject<{
|
|
|
1144
1144
|
}, z.core.$strip>>;
|
|
1145
1145
|
title: z.ZodString;
|
|
1146
1146
|
description: z.ZodOptional<z.ZodString>;
|
|
1147
|
-
docsUrl: z.
|
|
1147
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
1148
1148
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1149
1149
|
}, z.core.$strip>>>;
|
|
1150
1150
|
scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
|
|
@@ -1155,7 +1155,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
|
|
|
1155
1155
|
version: z.ZodOptional<z.ZodString>;
|
|
1156
1156
|
title: z.ZodString;
|
|
1157
1157
|
description: z.ZodOptional<z.ZodString>;
|
|
1158
|
-
docsUrl: z.
|
|
1158
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
1159
1159
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1160
1160
|
slug: z.ZodString;
|
|
1161
1161
|
icon: z.ZodEnum<{
|
|
@@ -2022,7 +2022,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
|
|
|
2022
2022
|
command: z.ZodString;
|
|
2023
2023
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2024
2024
|
outputFile: z.ZodString;
|
|
2025
|
-
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
2025
|
+
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodUnknown], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
2026
2026
|
slug: z.ZodString;
|
|
2027
2027
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
2028
2028
|
value: z.ZodNumber;
|
|
@@ -2142,7 +2142,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
|
|
|
2142
2142
|
}, z.core.$strip>>;
|
|
2143
2143
|
}, z.core.$strip>>>]>>, unknown>>>;
|
|
2144
2144
|
configFile: z.ZodOptional<z.ZodString>;
|
|
2145
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
2145
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodObject<{
|
|
2146
2146
|
persist: z.ZodObject<{
|
|
2147
2147
|
outputDir: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
2148
2148
|
filename: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -2275,7 +2275,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
|
|
|
2275
2275
|
slug: z.ZodString;
|
|
2276
2276
|
title: z.ZodString;
|
|
2277
2277
|
description: z.ZodOptional<z.ZodString>;
|
|
2278
|
-
docsUrl: z.
|
|
2278
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
2279
2279
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
2280
2280
|
}, z.core.$strip>>;
|
|
2281
2281
|
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2286,7 +2286,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
|
|
|
2286
2286
|
}, z.core.$strip>>;
|
|
2287
2287
|
title: z.ZodString;
|
|
2288
2288
|
description: z.ZodOptional<z.ZodString>;
|
|
2289
|
-
docsUrl: z.
|
|
2289
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
2290
2290
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
2291
2291
|
}, z.core.$strip>>>;
|
|
2292
2292
|
scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
|
package/src/lib/report.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const auditReportSchema: z.ZodObject<{
|
|
3
3
|
title: z.ZodString;
|
|
4
4
|
description: z.ZodOptional<z.ZodString>;
|
|
5
|
-
docsUrl: z.
|
|
5
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
6
6
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
slug: z.ZodString;
|
|
8
8
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
@@ -69,7 +69,7 @@ export declare const pluginReportSchema: z.ZodObject<{
|
|
|
69
69
|
version: z.ZodOptional<z.ZodString>;
|
|
70
70
|
title: z.ZodString;
|
|
71
71
|
description: z.ZodOptional<z.ZodString>;
|
|
72
|
-
docsUrl: z.
|
|
72
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
73
73
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
74
74
|
slug: z.ZodString;
|
|
75
75
|
icon: z.ZodEnum<{
|
|
@@ -937,7 +937,7 @@ export declare const pluginReportSchema: z.ZodObject<{
|
|
|
937
937
|
audits: z.ZodArray<z.ZodObject<{
|
|
938
938
|
title: z.ZodString;
|
|
939
939
|
description: z.ZodOptional<z.ZodString>;
|
|
940
|
-
docsUrl: z.
|
|
940
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
941
941
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
942
942
|
slug: z.ZodString;
|
|
943
943
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
@@ -1006,7 +1006,7 @@ export declare const pluginReportSchema: z.ZodObject<{
|
|
|
1006
1006
|
}, z.core.$strip>>;
|
|
1007
1007
|
title: z.ZodString;
|
|
1008
1008
|
description: z.ZodOptional<z.ZodString>;
|
|
1009
|
-
docsUrl: z.
|
|
1009
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
1010
1010
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1011
1011
|
}, z.core.$strip>>>;
|
|
1012
1012
|
}, z.core.$strip>;
|
|
@@ -1021,7 +1021,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
1021
1021
|
version: z.ZodOptional<z.ZodString>;
|
|
1022
1022
|
title: z.ZodString;
|
|
1023
1023
|
description: z.ZodOptional<z.ZodString>;
|
|
1024
|
-
docsUrl: z.
|
|
1024
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
1025
1025
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1026
1026
|
slug: z.ZodString;
|
|
1027
1027
|
icon: z.ZodEnum<{
|
|
@@ -1889,7 +1889,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
1889
1889
|
audits: z.ZodArray<z.ZodObject<{
|
|
1890
1890
|
title: z.ZodString;
|
|
1891
1891
|
description: z.ZodOptional<z.ZodString>;
|
|
1892
|
-
docsUrl: z.
|
|
1892
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
1893
1893
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1894
1894
|
slug: z.ZodString;
|
|
1895
1895
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
@@ -1958,7 +1958,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
1958
1958
|
}, z.core.$strip>>;
|
|
1959
1959
|
title: z.ZodString;
|
|
1960
1960
|
description: z.ZodOptional<z.ZodString>;
|
|
1961
|
-
docsUrl: z.
|
|
1961
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
1962
1962
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1963
1963
|
}, z.core.$strip>>>;
|
|
1964
1964
|
}, z.core.$strip>>;
|
|
@@ -1975,7 +1975,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
1975
1975
|
}, z.core.$strip>>;
|
|
1976
1976
|
title: z.ZodString;
|
|
1977
1977
|
description: z.ZodOptional<z.ZodString>;
|
|
1978
|
-
docsUrl: z.
|
|
1978
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
1979
1979
|
isSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
1980
1980
|
scoreTarget: z.ZodOptional<z.ZodNumber>;
|
|
1981
1981
|
}, z.core.$strip>>>;
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const categoryDiffSchema: z.ZodObject<{
|
|
3
3
|
slug: z.ZodString;
|
|
4
4
|
title: z.ZodString;
|
|
5
|
-
docsUrl: z.
|
|
5
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
6
6
|
scores: z.ZodObject<{
|
|
7
7
|
before: z.ZodNumber;
|
|
8
8
|
after: z.ZodNumber;
|
|
@@ -17,11 +17,11 @@ export declare const groupDiffSchema: z.ZodObject<{
|
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
slug: z.ZodString;
|
|
19
19
|
title: z.ZodString;
|
|
20
|
-
docsUrl: z.
|
|
20
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
21
21
|
plugin: z.ZodObject<{
|
|
22
22
|
slug: z.ZodString;
|
|
23
23
|
title: z.ZodString;
|
|
24
|
-
docsUrl: z.
|
|
24
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
25
25
|
}, z.core.$strip>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
export declare const auditDiffSchema: z.ZodObject<{
|
|
@@ -32,11 +32,11 @@ export declare const auditDiffSchema: z.ZodObject<{
|
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
slug: z.ZodString;
|
|
34
34
|
title: z.ZodString;
|
|
35
|
-
docsUrl: z.
|
|
35
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
36
36
|
plugin: z.ZodObject<{
|
|
37
37
|
slug: z.ZodString;
|
|
38
38
|
title: z.ZodString;
|
|
39
|
-
docsUrl: z.
|
|
39
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
values: z.ZodObject<{
|
|
42
42
|
before: z.ZodNumber;
|
|
@@ -51,28 +51,28 @@ export declare const auditDiffSchema: z.ZodObject<{
|
|
|
51
51
|
export declare const categoryResultSchema: z.ZodObject<{
|
|
52
52
|
slug: z.ZodString;
|
|
53
53
|
title: z.ZodString;
|
|
54
|
-
docsUrl: z.
|
|
54
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
55
55
|
score: z.ZodNumber;
|
|
56
56
|
}, z.core.$strip>;
|
|
57
57
|
export declare const groupResultSchema: z.ZodObject<{
|
|
58
58
|
slug: z.ZodString;
|
|
59
59
|
title: z.ZodString;
|
|
60
|
-
docsUrl: z.
|
|
60
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
61
61
|
plugin: z.ZodObject<{
|
|
62
62
|
slug: z.ZodString;
|
|
63
63
|
title: z.ZodString;
|
|
64
|
-
docsUrl: z.
|
|
64
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
65
65
|
}, z.core.$strip>;
|
|
66
66
|
score: z.ZodNumber;
|
|
67
67
|
}, z.core.$strip>;
|
|
68
68
|
export declare const auditResultSchema: z.ZodObject<{
|
|
69
69
|
slug: z.ZodString;
|
|
70
70
|
title: z.ZodString;
|
|
71
|
-
docsUrl: z.
|
|
71
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
72
72
|
plugin: z.ZodObject<{
|
|
73
73
|
slug: z.ZodString;
|
|
74
74
|
title: z.ZodString;
|
|
75
|
-
docsUrl: z.
|
|
75
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
value: z.ZodNumber;
|
|
78
78
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
@@ -99,13 +99,13 @@ export declare const reportsDiffSchema: z.ZodObject<{
|
|
|
99
99
|
author: z.ZodString;
|
|
100
100
|
}, z.core.$strip>;
|
|
101
101
|
}, z.core.$strip>>;
|
|
102
|
-
portalUrl: z.ZodOptional<z.
|
|
102
|
+
portalUrl: z.ZodOptional<z.ZodURL>;
|
|
103
103
|
label: z.ZodOptional<z.ZodString>;
|
|
104
104
|
categories: z.ZodObject<{
|
|
105
105
|
changed: z.ZodArray<z.ZodObject<{
|
|
106
106
|
slug: z.ZodString;
|
|
107
107
|
title: z.ZodString;
|
|
108
|
-
docsUrl: z.
|
|
108
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
109
109
|
scores: z.ZodObject<{
|
|
110
110
|
before: z.ZodNumber;
|
|
111
111
|
after: z.ZodNumber;
|
|
@@ -115,19 +115,19 @@ export declare const reportsDiffSchema: z.ZodObject<{
|
|
|
115
115
|
unchanged: z.ZodArray<z.ZodObject<{
|
|
116
116
|
slug: z.ZodString;
|
|
117
117
|
title: z.ZodString;
|
|
118
|
-
docsUrl: z.
|
|
118
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
119
119
|
score: z.ZodNumber;
|
|
120
120
|
}, z.core.$strip>>;
|
|
121
121
|
added: z.ZodArray<z.ZodObject<{
|
|
122
122
|
slug: z.ZodString;
|
|
123
123
|
title: z.ZodString;
|
|
124
|
-
docsUrl: z.
|
|
124
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
125
125
|
score: z.ZodNumber;
|
|
126
126
|
}, z.core.$strip>>;
|
|
127
127
|
removed: z.ZodArray<z.ZodObject<{
|
|
128
128
|
slug: z.ZodString;
|
|
129
129
|
title: z.ZodString;
|
|
130
|
-
docsUrl: z.
|
|
130
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
131
131
|
score: z.ZodNumber;
|
|
132
132
|
}, z.core.$strip>>;
|
|
133
133
|
}, z.core.$strip>;
|
|
@@ -140,43 +140,43 @@ export declare const reportsDiffSchema: z.ZodObject<{
|
|
|
140
140
|
}, z.core.$strip>;
|
|
141
141
|
slug: z.ZodString;
|
|
142
142
|
title: z.ZodString;
|
|
143
|
-
docsUrl: z.
|
|
143
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
144
144
|
plugin: z.ZodObject<{
|
|
145
145
|
slug: z.ZodString;
|
|
146
146
|
title: z.ZodString;
|
|
147
|
-
docsUrl: z.
|
|
147
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
148
148
|
}, z.core.$strip>;
|
|
149
149
|
}, z.core.$strip>>;
|
|
150
150
|
unchanged: z.ZodArray<z.ZodObject<{
|
|
151
151
|
slug: z.ZodString;
|
|
152
152
|
title: z.ZodString;
|
|
153
|
-
docsUrl: z.
|
|
153
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
154
154
|
plugin: z.ZodObject<{
|
|
155
155
|
slug: z.ZodString;
|
|
156
156
|
title: z.ZodString;
|
|
157
|
-
docsUrl: z.
|
|
157
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
158
158
|
}, z.core.$strip>;
|
|
159
159
|
score: z.ZodNumber;
|
|
160
160
|
}, z.core.$strip>>;
|
|
161
161
|
added: z.ZodArray<z.ZodObject<{
|
|
162
162
|
slug: z.ZodString;
|
|
163
163
|
title: z.ZodString;
|
|
164
|
-
docsUrl: z.
|
|
164
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
165
165
|
plugin: z.ZodObject<{
|
|
166
166
|
slug: z.ZodString;
|
|
167
167
|
title: z.ZodString;
|
|
168
|
-
docsUrl: z.
|
|
168
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
169
169
|
}, z.core.$strip>;
|
|
170
170
|
score: z.ZodNumber;
|
|
171
171
|
}, z.core.$strip>>;
|
|
172
172
|
removed: z.ZodArray<z.ZodObject<{
|
|
173
173
|
slug: z.ZodString;
|
|
174
174
|
title: z.ZodString;
|
|
175
|
-
docsUrl: z.
|
|
175
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
176
176
|
plugin: z.ZodObject<{
|
|
177
177
|
slug: z.ZodString;
|
|
178
178
|
title: z.ZodString;
|
|
179
|
-
docsUrl: z.
|
|
179
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
180
180
|
}, z.core.$strip>;
|
|
181
181
|
score: z.ZodNumber;
|
|
182
182
|
}, z.core.$strip>>;
|
|
@@ -190,11 +190,11 @@ export declare const reportsDiffSchema: z.ZodObject<{
|
|
|
190
190
|
}, z.core.$strip>;
|
|
191
191
|
slug: z.ZodString;
|
|
192
192
|
title: z.ZodString;
|
|
193
|
-
docsUrl: z.
|
|
193
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
194
194
|
plugin: z.ZodObject<{
|
|
195
195
|
slug: z.ZodString;
|
|
196
196
|
title: z.ZodString;
|
|
197
|
-
docsUrl: z.
|
|
197
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
198
198
|
}, z.core.$strip>;
|
|
199
199
|
values: z.ZodObject<{
|
|
200
200
|
before: z.ZodNumber;
|
|
@@ -209,11 +209,11 @@ export declare const reportsDiffSchema: z.ZodObject<{
|
|
|
209
209
|
unchanged: z.ZodArray<z.ZodObject<{
|
|
210
210
|
slug: z.ZodString;
|
|
211
211
|
title: z.ZodString;
|
|
212
|
-
docsUrl: z.
|
|
212
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
213
213
|
plugin: z.ZodObject<{
|
|
214
214
|
slug: z.ZodString;
|
|
215
215
|
title: z.ZodString;
|
|
216
|
-
docsUrl: z.
|
|
216
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
217
217
|
}, z.core.$strip>;
|
|
218
218
|
value: z.ZodNumber;
|
|
219
219
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
@@ -222,11 +222,11 @@ export declare const reportsDiffSchema: z.ZodObject<{
|
|
|
222
222
|
added: z.ZodArray<z.ZodObject<{
|
|
223
223
|
slug: z.ZodString;
|
|
224
224
|
title: z.ZodString;
|
|
225
|
-
docsUrl: z.
|
|
225
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
226
226
|
plugin: z.ZodObject<{
|
|
227
227
|
slug: z.ZodString;
|
|
228
228
|
title: z.ZodString;
|
|
229
|
-
docsUrl: z.
|
|
229
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
230
230
|
}, z.core.$strip>;
|
|
231
231
|
value: z.ZodNumber;
|
|
232
232
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
@@ -235,11 +235,11 @@ export declare const reportsDiffSchema: z.ZodObject<{
|
|
|
235
235
|
removed: z.ZodArray<z.ZodObject<{
|
|
236
236
|
slug: z.ZodString;
|
|
237
237
|
title: z.ZodString;
|
|
238
|
-
docsUrl: z.
|
|
238
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
239
239
|
plugin: z.ZodObject<{
|
|
240
240
|
slug: z.ZodString;
|
|
241
241
|
title: z.ZodString;
|
|
242
|
-
docsUrl: z.
|
|
242
|
+
docsUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodCatch<z.ZodOptional<z.ZodURL>>]>>;
|
|
243
243
|
}, z.core.$strip>;
|
|
244
244
|
value: z.ZodNumber;
|
|
245
245
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
export declare const outputTransformSchema: z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
2
|
+
export declare const outputTransformSchema: z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodUnknown], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
3
3
|
slug: z.ZodString;
|
|
4
4
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
5
5
|
value: z.ZodNumber;
|
|
@@ -135,7 +135,7 @@ export declare const runnerConfigSchema: z.ZodObject<{
|
|
|
135
135
|
command: z.ZodString;
|
|
136
136
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
137
137
|
outputFile: z.ZodString;
|
|
138
|
-
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
138
|
+
outputTransform: z.ZodOptional<z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodUnknown], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
139
139
|
slug: z.ZodString;
|
|
140
140
|
displayValue: z.ZodOptional<z.ZodString>;
|
|
141
141
|
value: z.ZodNumber;
|
|
@@ -257,7 +257,7 @@ export declare const runnerConfigSchema: z.ZodObject<{
|
|
|
257
257
|
configFile: z.ZodOptional<z.ZodString>;
|
|
258
258
|
}, z.core.$strip>;
|
|
259
259
|
export type RunnerConfig = z.infer<typeof runnerConfigSchema>;
|
|
260
|
-
export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.
|
|
260
|
+
export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<readonly [z.ZodObject<{
|
|
261
261
|
persist: z.ZodObject<{
|
|
262
262
|
outputDir: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
263
263
|
filename: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|