@code-pushup/models 0.108.1 → 0.109.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.
@@ -1,26 +1,10 @@
1
1
  import { ZodError, type ZodType, z } from 'zod';
2
- /**
3
- * Type Definition: `SchemaValidationContext`
4
- *
5
- * This type is derived from a Zod schema and represents
6
- * the validated structure of `SchemaValidationContext` used within the application.
7
- *
8
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#schemavalidationcontext}
9
- */
10
2
  type SchemaValidationContext = {
11
3
  filePath?: string;
12
4
  };
13
5
  /**
14
6
  * Autocompletes valid Zod Schema input for convience, but will accept any other data as well
15
7
  */
16
- /**
17
- * Type Definition: `ZodInputLooseAutocomplete`
18
- *
19
- * This type is derived from a Zod schema and represents
20
- * the validated structure of `ZodInputLooseAutocomplete` used within the application.
21
- *
22
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#zodinputlooseautocomplete}
23
- */
24
8
  type ZodInputLooseAutocomplete<T extends ZodType> = z.input<T> | {} | null | undefined;
25
9
  export declare class SchemaValidationError extends Error {
26
10
  constructor(error: ZodError, schema: ZodType, { filePath }: SchemaValidationContext);
@@ -4,14 +4,6 @@ export declare const issueSeveritySchema: z.ZodEnum<{
4
4
  info: "info";
5
5
  warning: "warning";
6
6
  }>;
7
- /**
8
- * Type Definition: `IssueSeverity`
9
- *
10
- * This type is derived from a Zod schema and represents
11
- * the validated structure of `IssueSeverity` used within the application.
12
- *
13
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#issueseverity}
14
- */
15
7
  export type IssueSeverity = z.infer<typeof issueSeveritySchema>;
16
8
  export declare const issueSchema: z.ZodObject<{
17
9
  message: z.ZodString;
@@ -20,7 +12,7 @@ export declare const issueSchema: z.ZodObject<{
20
12
  info: "info";
21
13
  warning: "warning";
22
14
  }>;
23
- source: z.ZodOptional<z.ZodObject<{
15
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
24
16
  file: z.ZodString;
25
17
  position: z.ZodOptional<z.ZodObject<{
26
18
  startLine: z.ZodNumber;
@@ -28,14 +20,42 @@ export declare const issueSchema: z.ZodObject<{
28
20
  endLine: z.ZodOptional<z.ZodNumber>;
29
21
  endColumn: z.ZodOptional<z.ZodNumber>;
30
22
  }, z.core.$strip>>;
31
- }, z.core.$strip>>;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ url: z.ZodURL;
25
+ snippet: z.ZodOptional<z.ZodString>;
26
+ selector: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>]>>;
32
28
  }, z.core.$strip>;
33
- /**
34
- * Type Definition: `Issue`
35
- *
36
- * This type is derived from a Zod schema and represents
37
- * the validated structure of `Issue` used within the application.
38
- *
39
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#issue}
40
- */
41
29
  export type Issue = z.infer<typeof issueSchema>;
30
+ export declare const fileIssueSchema: z.ZodObject<{
31
+ message: z.ZodString;
32
+ severity: z.ZodEnum<{
33
+ error: "error";
34
+ info: "info";
35
+ warning: "warning";
36
+ }>;
37
+ source: z.ZodObject<{
38
+ file: z.ZodString;
39
+ position: z.ZodOptional<z.ZodObject<{
40
+ startLine: z.ZodNumber;
41
+ startColumn: z.ZodOptional<z.ZodNumber>;
42
+ endLine: z.ZodOptional<z.ZodNumber>;
43
+ endColumn: z.ZodOptional<z.ZodNumber>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
46
+ }, z.core.$strip>;
47
+ export type FileIssue = z.infer<typeof fileIssueSchema>;
48
+ export declare const urlIssueSchema: z.ZodObject<{
49
+ message: z.ZodString;
50
+ severity: z.ZodEnum<{
51
+ error: "error";
52
+ info: "info";
53
+ warning: "warning";
54
+ }>;
55
+ source: z.ZodObject<{
56
+ url: z.ZodURL;
57
+ snippet: z.ZodOptional<z.ZodString>;
58
+ selector: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strip>;
60
+ }, z.core.$strip>;
61
+ export type UrlIssue = z.infer<typeof urlIssueSchema>;
package/src/lib/issue.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { MAX_ISSUE_MESSAGE_LENGTH } from './implementation/limits.js';
3
- import { sourceFileLocationSchema } from './source.js';
3
+ import { issueSourceSchema, sourceFileLocationSchema, sourceUrlLocationSchema, } from './source.js';
4
4
  export const issueSeveritySchema = z.enum(['info', 'warning', 'error']).meta({
5
5
  title: 'IssueSeverity',
6
6
  description: 'Severity level',
@@ -12,10 +12,22 @@ export const issueSchema = z
12
12
  .max(MAX_ISSUE_MESSAGE_LENGTH)
13
13
  .meta({ description: 'Descriptive error message' }),
14
14
  severity: issueSeveritySchema,
15
- source: sourceFileLocationSchema.optional(),
15
+ source: issueSourceSchema.optional(),
16
16
  })
17
17
  .meta({
18
18
  title: 'Issue',
19
19
  description: 'Issue information',
20
20
  });
21
+ export const fileIssueSchema = issueSchema
22
+ .extend({ source: sourceFileLocationSchema })
23
+ .meta({
24
+ title: 'FileIssue',
25
+ description: 'Issue with a file source location',
26
+ });
27
+ export const urlIssueSchema = issueSchema
28
+ .extend({ source: sourceUrlLocationSchema })
29
+ .meta({
30
+ title: 'UrlIssue',
31
+ description: 'Issue with a URL source location',
32
+ });
21
33
  //# sourceMappingURL=issue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"issue.js","sourceRoot":"","sources":["../../../src/lib/issue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IAC3E,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,MAAM,CAAC;IACN,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,GAAG,CAAC,wBAAwB,CAAC;SAC7B,IAAI,CAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;IACrD,QAAQ,EAAE,mBAAmB;IAC7B,MAAM,EAAE,wBAAwB,CAAC,QAAQ,EAAE;CAC5C,CAAC;KACD,IAAI,CAAC;IACJ,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,mBAAmB;CACjC,CAAC,CAAC"}
1
+ {"version":3,"file":"issue.js","sourceRoot":"","sources":["../../../src/lib/issue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IAC3E,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,MAAM,CAAC;IACN,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,GAAG,CAAC,wBAAwB,CAAC;SAC7B,IAAI,CAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;IACrD,QAAQ,EAAE,mBAAmB;IAC7B,MAAM,EAAE,iBAAiB,CAAC,QAAQ,EAAE;CACrC,CAAC;KACD,IAAI,CAAC;IACJ,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,mBAAmB;CACjC,CAAC,CAAC;AAGL,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW;KACvC,MAAM,CAAC,EAAE,MAAM,EAAE,wBAAwB,EAAE,CAAC;KAC5C,IAAI,CAAC;IACJ,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,mCAAmC;CACjD,CAAC,CAAC;AAGL,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW;KACtC,MAAM,CAAC,EAAE,MAAM,EAAE,uBAAuB,EAAE,CAAC;KAC3C,IAAI,CAAC;IACJ,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,kCAAkC;CAChD,CAAC,CAAC"}
@@ -3,14 +3,6 @@ export declare const formatSchema: z.ZodEnum<{
3
3
  json: "json";
4
4
  md: "md";
5
5
  }>;
6
- /**
7
- * Type Definition: `Format`
8
- *
9
- * This type is derived from a Zod schema and represents
10
- * the validated structure of `Format` used within the application.
11
- *
12
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#format}
13
- */
14
6
  export type Format = z.infer<typeof formatSchema>;
15
7
  export declare const persistConfigSchema: z.ZodObject<{
16
8
  outputDir: z.ZodOptional<z.ZodString>;
@@ -21,12 +13,4 @@ export declare const persistConfigSchema: z.ZodObject<{
21
13
  }>>>;
22
14
  skipReports: z.ZodOptional<z.ZodBoolean>;
23
15
  }, z.core.$strip>;
24
- /**
25
- * Type Definition: `PersistConfig`
26
- *
27
- * This type is derived from a Zod schema and represents
28
- * the validated structure of `PersistConfig` used within the application.
29
- *
30
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#persistconfig}
31
- */
32
16
  export type PersistConfig = z.infer<typeof persistConfigSchema>;
@@ -2,14 +2,6 @@ import { z } from 'zod';
2
2
  import { type Audit } from './audit.js';
3
3
  import { type Group } from './group.js';
4
4
  export declare const pluginContextSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5
- /**
6
- * Type Definition: `PluginContext`
7
- *
8
- * This type is derived from a Zod schema and represents
9
- * the validated structure of `PluginContext` used within the application.
10
- *
11
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#plugincontext}
12
- */
13
5
  export type PluginContext = z.infer<typeof pluginContextSchema>;
14
6
  export declare const pluginMetaSchema: z.ZodObject<{
15
7
  packageName: z.ZodOptional<z.ZodString>;
@@ -880,24 +872,8 @@ export declare const pluginMetaSchema: z.ZodObject<{
880
872
  silverstripe: "silverstripe";
881
873
  }>;
882
874
  }, z.core.$strip>;
883
- /**
884
- * Type Definition: `PluginMeta`
885
- *
886
- * This type is derived from a Zod schema and represents
887
- * the validated structure of `PluginMeta` used within the application.
888
- *
889
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginmeta}
890
- */
891
875
  export type PluginMeta = z.infer<typeof pluginMetaSchema>;
892
876
  export declare const pluginScoreTargetsSchema: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
893
- /**
894
- * Type Definition: `PluginScoreTargets`
895
- *
896
- * This type is derived from a Zod schema and represents
897
- * the validated structure of `PluginScoreTargets` used within the application.
898
- *
899
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginscoretargets}
900
- */
901
877
  export type PluginScoreTargets = z.infer<typeof pluginScoreTargetsSchema>;
902
878
  export declare const pluginDataSchema: z.ZodObject<{
903
879
  runner: z.ZodUnion<readonly [z.ZodObject<{
@@ -918,7 +894,7 @@ export declare const pluginDataSchema: z.ZodObject<{
918
894
  info: "info";
919
895
  warning: "warning";
920
896
  }>;
921
- source: z.ZodOptional<z.ZodObject<{
897
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
922
898
  file: z.ZodString;
923
899
  position: z.ZodOptional<z.ZodObject<{
924
900
  startLine: z.ZodNumber;
@@ -926,7 +902,11 @@ export declare const pluginDataSchema: z.ZodObject<{
926
902
  endLine: z.ZodOptional<z.ZodNumber>;
927
903
  endColumn: z.ZodOptional<z.ZodNumber>;
928
904
  }, z.core.$strip>>;
929
- }, z.core.$strip>>;
905
+ }, z.core.$strip>, z.ZodObject<{
906
+ url: z.ZodURL;
907
+ snippet: z.ZodOptional<z.ZodString>;
908
+ selector: z.ZodOptional<z.ZodString>;
909
+ }, z.core.$strip>]>>;
930
910
  }, z.core.$strip>>>;
931
911
  table: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
932
912
  title: z.ZodOptional<z.ZodString>;
@@ -977,7 +957,7 @@ export declare const pluginDataSchema: z.ZodObject<{
977
957
  info: "info";
978
958
  warning: "warning";
979
959
  }>;
980
- source: z.ZodOptional<z.ZodObject<{
960
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
981
961
  file: z.ZodString;
982
962
  position: z.ZodOptional<z.ZodObject<{
983
963
  startLine: z.ZodNumber;
@@ -985,7 +965,11 @@ export declare const pluginDataSchema: z.ZodObject<{
985
965
  endLine: z.ZodOptional<z.ZodNumber>;
986
966
  endColumn: z.ZodOptional<z.ZodNumber>;
987
967
  }, z.core.$strip>>;
988
- }, z.core.$strip>>;
968
+ }, z.core.$strip>, z.ZodObject<{
969
+ url: z.ZodURL;
970
+ snippet: z.ZodOptional<z.ZodString>;
971
+ selector: z.ZodOptional<z.ZodString>;
972
+ }, z.core.$strip>]>>;
989
973
  }, z.core.$strip>>>;
990
974
  table: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
991
975
  title: z.ZodOptional<z.ZodString>;
@@ -1048,7 +1032,7 @@ export declare const pluginDataSchema: z.ZodObject<{
1048
1032
  info: "info";
1049
1033
  warning: "warning";
1050
1034
  }>;
1051
- source: z.ZodOptional<z.ZodObject<{
1035
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1052
1036
  file: z.ZodString;
1053
1037
  position: z.ZodOptional<z.ZodObject<{
1054
1038
  startLine: z.ZodNumber;
@@ -1056,7 +1040,11 @@ export declare const pluginDataSchema: z.ZodObject<{
1056
1040
  endLine: z.ZodOptional<z.ZodNumber>;
1057
1041
  endColumn: z.ZodOptional<z.ZodNumber>;
1058
1042
  }, z.core.$strip>>;
1059
- }, z.core.$strip>>;
1043
+ }, z.core.$strip>, z.ZodObject<{
1044
+ url: z.ZodURL;
1045
+ snippet: z.ZodOptional<z.ZodString>;
1046
+ selector: z.ZodOptional<z.ZodString>;
1047
+ }, z.core.$strip>]>>;
1060
1048
  }, z.core.$strip>>>;
1061
1049
  table: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1062
1050
  title: z.ZodOptional<z.ZodString>;
@@ -1107,7 +1095,7 @@ export declare const pluginDataSchema: z.ZodObject<{
1107
1095
  info: "info";
1108
1096
  warning: "warning";
1109
1097
  }>;
1110
- source: z.ZodOptional<z.ZodObject<{
1098
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1111
1099
  file: z.ZodString;
1112
1100
  position: z.ZodOptional<z.ZodObject<{
1113
1101
  startLine: z.ZodNumber;
@@ -1115,7 +1103,11 @@ export declare const pluginDataSchema: z.ZodObject<{
1115
1103
  endLine: z.ZodOptional<z.ZodNumber>;
1116
1104
  endColumn: z.ZodOptional<z.ZodNumber>;
1117
1105
  }, z.core.$strip>>;
1118
- }, z.core.$strip>>;
1106
+ }, z.core.$strip>, z.ZodObject<{
1107
+ url: z.ZodURL;
1108
+ snippet: z.ZodOptional<z.ZodString>;
1109
+ selector: z.ZodOptional<z.ZodString>;
1110
+ }, z.core.$strip>]>>;
1119
1111
  }, z.core.$strip>>>;
1120
1112
  table: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1121
1113
  title: z.ZodOptional<z.ZodString>;
@@ -2060,7 +2052,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2060
2052
  info: "info";
2061
2053
  warning: "warning";
2062
2054
  }>;
2063
- source: z.ZodOptional<z.ZodObject<{
2055
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2064
2056
  file: z.ZodString;
2065
2057
  position: z.ZodOptional<z.ZodObject<{
2066
2058
  startLine: z.ZodNumber;
@@ -2068,7 +2060,11 @@ export declare const pluginConfigSchema: z.ZodObject<{
2068
2060
  endLine: z.ZodOptional<z.ZodNumber>;
2069
2061
  endColumn: z.ZodOptional<z.ZodNumber>;
2070
2062
  }, z.core.$strip>>;
2071
- }, z.core.$strip>>;
2063
+ }, z.core.$strip>, z.ZodObject<{
2064
+ url: z.ZodURL;
2065
+ snippet: z.ZodOptional<z.ZodString>;
2066
+ selector: z.ZodOptional<z.ZodString>;
2067
+ }, z.core.$strip>]>>;
2072
2068
  }, z.core.$strip>>>;
2073
2069
  table: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2074
2070
  title: z.ZodOptional<z.ZodString>;
@@ -2119,7 +2115,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2119
2115
  info: "info";
2120
2116
  warning: "warning";
2121
2117
  }>;
2122
- source: z.ZodOptional<z.ZodObject<{
2118
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2123
2119
  file: z.ZodString;
2124
2120
  position: z.ZodOptional<z.ZodObject<{
2125
2121
  startLine: z.ZodNumber;
@@ -2127,7 +2123,11 @@ export declare const pluginConfigSchema: z.ZodObject<{
2127
2123
  endLine: z.ZodOptional<z.ZodNumber>;
2128
2124
  endColumn: z.ZodOptional<z.ZodNumber>;
2129
2125
  }, z.core.$strip>>;
2130
- }, z.core.$strip>>;
2126
+ }, z.core.$strip>, z.ZodObject<{
2127
+ url: z.ZodURL;
2128
+ snippet: z.ZodOptional<z.ZodString>;
2129
+ selector: z.ZodOptional<z.ZodString>;
2130
+ }, z.core.$strip>]>>;
2131
2131
  }, z.core.$strip>>>;
2132
2132
  table: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2133
2133
  title: z.ZodOptional<z.ZodString>;
@@ -2190,7 +2190,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2190
2190
  info: "info";
2191
2191
  warning: "warning";
2192
2192
  }>;
2193
- source: z.ZodOptional<z.ZodObject<{
2193
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2194
2194
  file: z.ZodString;
2195
2195
  position: z.ZodOptional<z.ZodObject<{
2196
2196
  startLine: z.ZodNumber;
@@ -2198,7 +2198,11 @@ export declare const pluginConfigSchema: z.ZodObject<{
2198
2198
  endLine: z.ZodOptional<z.ZodNumber>;
2199
2199
  endColumn: z.ZodOptional<z.ZodNumber>;
2200
2200
  }, z.core.$strip>>;
2201
- }, z.core.$strip>>;
2201
+ }, z.core.$strip>, z.ZodObject<{
2202
+ url: z.ZodURL;
2203
+ snippet: z.ZodOptional<z.ZodString>;
2204
+ selector: z.ZodOptional<z.ZodString>;
2205
+ }, z.core.$strip>]>>;
2202
2206
  }, z.core.$strip>>>;
2203
2207
  table: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2204
2208
  title: z.ZodOptional<z.ZodString>;
@@ -2249,7 +2253,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2249
2253
  info: "info";
2250
2254
  warning: "warning";
2251
2255
  }>;
2252
- source: z.ZodOptional<z.ZodObject<{
2256
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2253
2257
  file: z.ZodString;
2254
2258
  position: z.ZodOptional<z.ZodObject<{
2255
2259
  startLine: z.ZodNumber;
@@ -2257,7 +2261,11 @@ export declare const pluginConfigSchema: z.ZodObject<{
2257
2261
  endLine: z.ZodOptional<z.ZodNumber>;
2258
2262
  endColumn: z.ZodOptional<z.ZodNumber>;
2259
2263
  }, z.core.$strip>>;
2260
- }, z.core.$strip>>;
2264
+ }, z.core.$strip>, z.ZodObject<{
2265
+ url: z.ZodURL;
2266
+ snippet: z.ZodOptional<z.ZodString>;
2267
+ selector: z.ZodOptional<z.ZodString>;
2268
+ }, z.core.$strip>]>>;
2261
2269
  }, z.core.$strip>>>;
2262
2270
  table: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2263
2271
  title: z.ZodOptional<z.ZodString>;
@@ -2316,24 +2324,8 @@ export declare const pluginConfigSchema: z.ZodObject<{
2316
2324
  scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
2317
2325
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2318
2326
  }, z.core.$strip>;
2319
- /**
2320
- * Type Definition: `PluginConfig`
2321
- *
2322
- * This type is derived from a Zod schema and represents
2323
- * the validated structure of `PluginConfig` used within the application.
2324
- *
2325
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginconfig}
2326
- */
2327
2327
  export type PluginConfig = z.infer<typeof pluginConfigSchema>;
2328
2328
  export declare const pluginUrlsSchema: z.ZodUnion<readonly [z.ZodURL, z.ZodArray<z.ZodURL>, z.ZodRecord<z.ZodURL, z.ZodNumber>]>;
2329
- /**
2330
- * Type Definition: `PluginUrls`
2331
- *
2332
- * This type is derived from a Zod schema and represents
2333
- * the validated structure of `PluginUrls` used within the application.
2334
- *
2335
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginurls}
2336
- */
2337
2329
  export type PluginUrls = z.infer<typeof pluginUrlsSchema>;
2338
2330
  export declare function findMissingSlugsInGroupRefs<T extends {
2339
2331
  audits: Audit[];
@@ -17,7 +17,7 @@ export declare const auditReportSchema: z.ZodObject<{
17
17
  info: "info";
18
18
  warning: "warning";
19
19
  }>;
20
- source: z.ZodOptional<z.ZodObject<{
20
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
21
21
  file: z.ZodString;
22
22
  position: z.ZodOptional<z.ZodObject<{
23
23
  startLine: z.ZodNumber;
@@ -25,7 +25,11 @@ export declare const auditReportSchema: z.ZodObject<{
25
25
  endLine: z.ZodOptional<z.ZodNumber>;
26
26
  endColumn: z.ZodOptional<z.ZodNumber>;
27
27
  }, z.core.$strip>>;
28
- }, z.core.$strip>>;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ url: z.ZodURL;
30
+ snippet: z.ZodOptional<z.ZodString>;
31
+ selector: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>]>>;
29
33
  }, z.core.$strip>>>;
30
34
  table: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
31
35
  title: z.ZodOptional<z.ZodString>;
@@ -63,14 +67,6 @@ export declare const auditReportSchema: z.ZodObject<{
63
67
  }, z.core.$strip>]>>>;
64
68
  }, z.core.$strip>>;
65
69
  }, z.core.$strip>;
66
- /**
67
- * Type Definition: `AuditReport`
68
- *
69
- * This type is derived from a Zod schema and represents
70
- * the validated structure of `AuditReport` used within the application.
71
- *
72
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditreport}
73
- */
74
70
  export type AuditReport = z.infer<typeof auditReportSchema>;
75
71
  export declare const pluginReportSchema: z.ZodObject<{
76
72
  packageName: z.ZodOptional<z.ZodString>;
@@ -960,7 +956,7 @@ export declare const pluginReportSchema: z.ZodObject<{
960
956
  info: "info";
961
957
  warning: "warning";
962
958
  }>;
963
- source: z.ZodOptional<z.ZodObject<{
959
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
964
960
  file: z.ZodString;
965
961
  position: z.ZodOptional<z.ZodObject<{
966
962
  startLine: z.ZodNumber;
@@ -968,7 +964,11 @@ export declare const pluginReportSchema: z.ZodObject<{
968
964
  endLine: z.ZodOptional<z.ZodNumber>;
969
965
  endColumn: z.ZodOptional<z.ZodNumber>;
970
966
  }, z.core.$strip>>;
971
- }, z.core.$strip>>;
967
+ }, z.core.$strip>, z.ZodObject<{
968
+ url: z.ZodURL;
969
+ snippet: z.ZodOptional<z.ZodString>;
970
+ selector: z.ZodOptional<z.ZodString>;
971
+ }, z.core.$strip>]>>;
972
972
  }, z.core.$strip>>>;
973
973
  table: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
974
974
  title: z.ZodOptional<z.ZodString>;
@@ -1018,14 +1018,6 @@ export declare const pluginReportSchema: z.ZodObject<{
1018
1018
  isSkipped: z.ZodOptional<z.ZodBoolean>;
1019
1019
  }, z.core.$strip>>>;
1020
1020
  }, z.core.$strip>;
1021
- /**
1022
- * Type Definition: `PluginReport`
1023
- *
1024
- * This type is derived from a Zod schema and represents
1025
- * the validated structure of `PluginReport` used within the application.
1026
- *
1027
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginreport}
1028
- */
1029
1021
  export type PluginReport = z.infer<typeof pluginReportSchema>;
1030
1022
  export declare const reportSchema: z.ZodObject<{
1031
1023
  packageName: z.ZodString;
@@ -1920,7 +1912,7 @@ export declare const reportSchema: z.ZodObject<{
1920
1912
  info: "info";
1921
1913
  warning: "warning";
1922
1914
  }>;
1923
- source: z.ZodOptional<z.ZodObject<{
1915
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1924
1916
  file: z.ZodString;
1925
1917
  position: z.ZodOptional<z.ZodObject<{
1926
1918
  startLine: z.ZodNumber;
@@ -1928,7 +1920,11 @@ export declare const reportSchema: z.ZodObject<{
1928
1920
  endLine: z.ZodOptional<z.ZodNumber>;
1929
1921
  endColumn: z.ZodOptional<z.ZodNumber>;
1930
1922
  }, z.core.$strip>>;
1931
- }, z.core.$strip>>;
1923
+ }, z.core.$strip>, z.ZodObject<{
1924
+ url: z.ZodURL;
1925
+ snippet: z.ZodOptional<z.ZodString>;
1926
+ selector: z.ZodOptional<z.ZodString>;
1927
+ }, z.core.$strip>]>>;
1932
1928
  }, z.core.$strip>>>;
1933
1929
  table: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1934
1930
  title: z.ZodOptional<z.ZodString>;
@@ -2003,12 +1999,4 @@ export declare const reportSchema: z.ZodObject<{
2003
1999
  }, z.core.$strip>>;
2004
2000
  label: z.ZodOptional<z.ZodString>;
2005
2001
  }, z.core.$strip>;
2006
- /**
2007
- * Type Definition: `Report`
2008
- *
2009
- * This type is derived from a Zod schema and represents
2010
- * the validated structure of `Report` used within the application.
2011
- *
2012
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#report}
2013
- */
2014
2002
  export type Report = z.infer<typeof reportSchema>;
@@ -78,59 +78,11 @@ export declare const auditResultSchema: z.ZodObject<{
78
78
  displayValue: z.ZodOptional<z.ZodString>;
79
79
  score: z.ZodNumber;
80
80
  }, z.core.$strip>;
81
- /**
82
- * Type Definition: `CategoryDiff`
83
- *
84
- * This type is derived from a Zod schema and represents
85
- * the validated structure of `CategoryDiff` used within the application.
86
- *
87
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#categorydiff}
88
- */
89
81
  export type CategoryDiff = z.infer<typeof categoryDiffSchema>;
90
- /**
91
- * Type Definition: `GroupDiff`
92
- *
93
- * This type is derived from a Zod schema and represents
94
- * the validated structure of `GroupDiff` used within the application.
95
- *
96
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#groupdiff}
97
- */
98
82
  export type GroupDiff = z.infer<typeof groupDiffSchema>;
99
- /**
100
- * Type Definition: `AuditDiff`
101
- *
102
- * This type is derived from a Zod schema and represents
103
- * the validated structure of `AuditDiff` used within the application.
104
- *
105
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditdiff}
106
- */
107
83
  export type AuditDiff = z.infer<typeof auditDiffSchema>;
108
- /**
109
- * Type Definition: `CategoryResult`
110
- *
111
- * This type is derived from a Zod schema and represents
112
- * the validated structure of `CategoryResult` used within the application.
113
- *
114
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#categoryresult}
115
- */
116
84
  export type CategoryResult = z.infer<typeof categoryResultSchema>;
117
- /**
118
- * Type Definition: `GroupResult`
119
- *
120
- * This type is derived from a Zod schema and represents
121
- * the validated structure of `GroupResult` used within the application.
122
- *
123
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#groupresult}
124
- */
125
85
  export type GroupResult = z.infer<typeof groupResultSchema>;
126
- /**
127
- * Type Definition: `AuditResult`
128
- *
129
- * This type is derived from a Zod schema and represents
130
- * the validated structure of `AuditResult` used within the application.
131
- *
132
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#auditresult}
133
- */
134
86
  export type AuditResult = z.infer<typeof auditResultSchema>;
135
87
  export declare const reportsDiffSchema: z.ZodObject<{
136
88
  commits: z.ZodNullable<z.ZodObject<{
@@ -299,12 +251,4 @@ export declare const reportsDiffSchema: z.ZodObject<{
299
251
  date: z.ZodString;
300
252
  duration: z.ZodNumber;
301
253
  }, z.core.$strip>;
302
- /**
303
- * Type Definition: `ReportsDiff`
304
- *
305
- * This type is derived from a Zod schema and represents
306
- * the validated structure of `ReportsDiff` used within the application.
307
- *
308
- * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#reportsdiff}
309
- */
310
254
  export type ReportsDiff = z.infer<typeof reportsDiffSchema>;