renovate 43.262.4 → 43.263.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/dist/config/options/index.js +1 -1
- package/dist/config/options/index.js.map +1 -1
- package/dist/global-config-option-defaults.generated.js +1 -1
- package/dist/global-config-option-defaults.generated.js.map +1 -1
- package/dist/modules/datasource/bazel/schema.js +2 -1
- package/dist/modules/datasource/bazel/schema.js.map +1 -1
- package/dist/modules/datasource/bitbucket-server-tags/schema.js +2 -1
- package/dist/modules/datasource/bitbucket-server-tags/schema.js.map +1 -1
- package/dist/modules/datasource/docker/schema.js +14 -14
- package/dist/modules/datasource/docker/schema.js.map +1 -1
- package/dist/modules/datasource/npm/get.js +5 -4
- package/dist/modules/datasource/npm/get.js.map +1 -1
- package/dist/modules/datasource/npm/schema.d.ts +35 -20
- package/dist/modules/datasource/npm/schema.js +5 -5
- package/dist/modules/datasource/npm/schema.js.map +1 -1
- package/dist/modules/datasource/puppet-forge/schema.js +9 -9
- package/dist/modules/datasource/puppet-forge/schema.js.map +1 -1
- package/dist/modules/datasource/repology/schema.js +6 -6
- package/dist/modules/datasource/repology/schema.js.map +1 -1
- package/dist/modules/manager/helmfile/schema.js +2 -2
- package/dist/modules/manager/helmfile/schema.js.map +1 -1
- package/dist/modules/manager/npm/schema.js +2 -2
- package/dist/modules/manager/npm/schema.js.map +1 -1
- package/dist/modules/manager/swift/schema.js +5 -5
- package/dist/modules/manager/swift/schema.js.map +1 -1
- package/dist/modules/platform/github/schema.d.ts +20 -20
- package/dist/modules/platform/github/schema.js +8 -8
- package/dist/modules/platform/github/schema.js.map +1 -1
- package/dist/modules/platform/gitlab/schema.js +6 -6
- package/dist/modules/platform/gitlab/schema.js.map +1 -1
- package/dist/modules/platform/scm-manager/schema.js +23 -23
- package/dist/modules/platform/scm-manager/schema.js.map +1 -1
- package/package.json +1 -1
- package/renovate-schema.json +2 -2
|
@@ -18,12 +18,12 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
18
18
|
cvss_v3?: {
|
|
19
19
|
vector_string: string | null;
|
|
20
20
|
score: number | null;
|
|
21
|
-
} |
|
|
21
|
+
} | undefined;
|
|
22
22
|
cvss_v4?: {
|
|
23
23
|
vector_string: string | null;
|
|
24
24
|
score: number | null;
|
|
25
|
-
} |
|
|
26
|
-
} |
|
|
25
|
+
} | undefined;
|
|
26
|
+
} | undefined;
|
|
27
27
|
};
|
|
28
28
|
security_vulnerability: {
|
|
29
29
|
package: {
|
|
@@ -34,12 +34,12 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
34
34
|
vulnerable_version_range: string;
|
|
35
35
|
first_patched_version?: {
|
|
36
36
|
identifier: string;
|
|
37
|
-
} |
|
|
37
|
+
} | undefined;
|
|
38
38
|
} | null;
|
|
39
39
|
dependency: {
|
|
40
40
|
manifest_path: string;
|
|
41
41
|
};
|
|
42
|
-
dismissed_reason?: string |
|
|
42
|
+
dismissed_reason?: string | undefined;
|
|
43
43
|
}[], any, z.core.$ZodTypeInternals<{
|
|
44
44
|
security_advisory: {
|
|
45
45
|
ghsa_id: string;
|
|
@@ -57,12 +57,12 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
57
57
|
cvss_v3?: {
|
|
58
58
|
vector_string: string | null;
|
|
59
59
|
score: number | null;
|
|
60
|
-
} |
|
|
60
|
+
} | undefined;
|
|
61
61
|
cvss_v4?: {
|
|
62
62
|
vector_string: string | null;
|
|
63
63
|
score: number | null;
|
|
64
|
-
} |
|
|
65
|
-
} |
|
|
64
|
+
} | undefined;
|
|
65
|
+
} | undefined;
|
|
66
66
|
};
|
|
67
67
|
security_vulnerability: {
|
|
68
68
|
package: {
|
|
@@ -73,12 +73,12 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
73
73
|
vulnerable_version_range: string;
|
|
74
74
|
first_patched_version?: {
|
|
75
75
|
identifier: string;
|
|
76
|
-
} |
|
|
76
|
+
} | undefined;
|
|
77
77
|
} | null;
|
|
78
78
|
dependency: {
|
|
79
79
|
manifest_path: string;
|
|
80
80
|
};
|
|
81
|
-
dismissed_reason?: string |
|
|
81
|
+
dismissed_reason?: string | undefined;
|
|
82
82
|
}[], any>>, z.ZodTransform<{
|
|
83
83
|
security_advisory: {
|
|
84
84
|
ghsa_id: string;
|
|
@@ -96,12 +96,12 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
96
96
|
cvss_v3?: {
|
|
97
97
|
vector_string: string | null;
|
|
98
98
|
score: number | null;
|
|
99
|
-
} |
|
|
99
|
+
} | undefined;
|
|
100
100
|
cvss_v4?: {
|
|
101
101
|
vector_string: string | null;
|
|
102
102
|
score: number | null;
|
|
103
|
-
} |
|
|
104
|
-
} |
|
|
103
|
+
} | undefined;
|
|
104
|
+
} | undefined;
|
|
105
105
|
};
|
|
106
106
|
security_vulnerability: {
|
|
107
107
|
package: {
|
|
@@ -112,12 +112,12 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
112
112
|
vulnerable_version_range: string;
|
|
113
113
|
first_patched_version?: {
|
|
114
114
|
identifier: string;
|
|
115
|
-
} |
|
|
115
|
+
} | undefined;
|
|
116
116
|
} | null;
|
|
117
117
|
dependency: {
|
|
118
118
|
manifest_path: string;
|
|
119
119
|
};
|
|
120
|
-
dismissed_reason?: string |
|
|
120
|
+
dismissed_reason?: string | undefined;
|
|
121
121
|
}[], {
|
|
122
122
|
security_advisory: {
|
|
123
123
|
ghsa_id: string;
|
|
@@ -135,12 +135,12 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
135
135
|
cvss_v3?: {
|
|
136
136
|
vector_string: string | null;
|
|
137
137
|
score: number | null;
|
|
138
|
-
} |
|
|
138
|
+
} | undefined;
|
|
139
139
|
cvss_v4?: {
|
|
140
140
|
vector_string: string | null;
|
|
141
141
|
score: number | null;
|
|
142
|
-
} |
|
|
143
|
-
} |
|
|
142
|
+
} | undefined;
|
|
143
|
+
} | undefined;
|
|
144
144
|
};
|
|
145
145
|
security_vulnerability: {
|
|
146
146
|
package: {
|
|
@@ -151,12 +151,12 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
151
151
|
vulnerable_version_range: string;
|
|
152
152
|
first_patched_version?: {
|
|
153
153
|
identifier: string;
|
|
154
|
-
} |
|
|
154
|
+
} | undefined;
|
|
155
155
|
} | null;
|
|
156
156
|
dependency: {
|
|
157
157
|
manifest_path: string;
|
|
158
158
|
};
|
|
159
|
-
dismissed_reason?: string |
|
|
159
|
+
dismissed_reason?: string | undefined;
|
|
160
160
|
}[]>>;
|
|
161
161
|
type GithubVulnerabilityAlerts = z.infer<typeof GithubVulnerabilityAlerts>;
|
|
162
162
|
type GithubVulnerabilityAlert = GithubVulnerabilityAlerts[number];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { logger } from "../../../logger/index.js";
|
|
2
|
-
import { LooseArray } from "../../../util/schema-utils/index.js";
|
|
2
|
+
import { DeepNullish, LooseArray, Nullish } from "../../../util/schema-utils/index.js";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
4
|
//#region lib/modules/platform/github/schema.ts
|
|
5
5
|
const Ecosystem = z.enum([
|
|
@@ -26,7 +26,7 @@ const Severity = z.enum([
|
|
|
26
26
|
"critical"
|
|
27
27
|
]);
|
|
28
28
|
const SecurityVulnerability = z.object({
|
|
29
|
-
first_patched_version: z.object({ identifier: z.string() })
|
|
29
|
+
first_patched_version: Nullish(z.object({ identifier: z.string() })),
|
|
30
30
|
package: Package,
|
|
31
31
|
severity: Severity,
|
|
32
32
|
vulnerable_version_range: z.string()
|
|
@@ -45,13 +45,13 @@ const SecurityAdvisory = z.object({
|
|
|
45
45
|
})),
|
|
46
46
|
references: z.array(z.object({ url: z.string() })).optional(),
|
|
47
47
|
severity: Severity,
|
|
48
|
-
cvss_severities: z.object({
|
|
49
|
-
cvss_v3: CvssSeverity.
|
|
50
|
-
cvss_v4: CvssSeverity.
|
|
51
|
-
})
|
|
48
|
+
cvss_severities: Nullish(DeepNullish(z.object({
|
|
49
|
+
cvss_v3: CvssSeverity.optional(),
|
|
50
|
+
cvss_v4: CvssSeverity.optional()
|
|
51
|
+
})))
|
|
52
52
|
});
|
|
53
53
|
const GithubVulnerabilityAlerts = LooseArray(z.object({
|
|
54
|
-
dismissed_reason: z.string()
|
|
54
|
+
dismissed_reason: Nullish(z.string()),
|
|
55
55
|
security_advisory: SecurityAdvisory,
|
|
56
56
|
security_vulnerability: SecurityVulnerability,
|
|
57
57
|
dependency: z.object({ manifest_path: z.string() })
|
|
@@ -71,7 +71,7 @@ const GithubDirectory = GithubResponseMetadata.extend({ type: z.literal("dir") }
|
|
|
71
71
|
const GithubOtherContent = GithubResponseMetadata.extend({ type: z.literal("symlink").or(z.literal("submodule")) });
|
|
72
72
|
const GithubElement = GithubFile.or(GithubFileMeta).or(GithubDirectory).or(GithubOtherContent);
|
|
73
73
|
const GithubContentResponse = z.array(GithubElement).or(GithubElement);
|
|
74
|
-
const GithubBranchProtection = z.object({ required_status_checks: z.object({ strict: z.boolean() })
|
|
74
|
+
const GithubBranchProtection = z.object({ required_status_checks: Nullish(z.object({ strict: z.boolean() })) });
|
|
75
75
|
const GithubBranchRulesets = LooseArray(z.discriminatedUnion("type", [
|
|
76
76
|
z.object({ type: z.literal("non_fast_forward") }),
|
|
77
77
|
z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","names":[],"sources":["../../../../lib/modules/platform/github/schema.ts"],"sourcesContent":["import { z } from 'zod/v4';\nimport { logger } from '../../../logger/index.ts';\nimport {
|
|
1
|
+
{"version":3,"file":"schema.js","names":[],"sources":["../../../../lib/modules/platform/github/schema.ts"],"sourcesContent":["import { z } from 'zod/v4';\nimport { logger } from '../../../logger/index.ts';\nimport {\n DeepNullish,\n LooseArray,\n Nullish,\n} from '../../../util/schema-utils/index.ts';\n\nconst Ecosystem = z.enum([\n 'actions',\n 'composer',\n 'go',\n 'maven',\n 'npm',\n 'nuget',\n 'pip',\n 'rubygems',\n 'rust',\n]);\nexport type Ecosystem = z.infer<typeof Ecosystem>;\n\nconst Package = z.object({\n ecosystem: Ecosystem.catch((ctx) => {\n logger.debug(\n { ecosystem: ctx.input },\n 'Skipping vulnerability alert with unsupported ecosystem',\n );\n return undefined as any;\n }),\n name: z.string(),\n});\n\nconst Severity = z.enum(['low', 'medium', 'high', 'critical']);\n\nconst SecurityVulnerability = z\n .object({\n first_patched_version: Nullish(z.object({ identifier: z.string() })),\n package: Package,\n severity: Severity,\n vulnerable_version_range: z.string(),\n })\n .nullable();\n\nconst CvssSeverity = z.object({\n vector_string: z.string().nullable(),\n score: z.number().nullable(),\n});\n\nconst SecurityAdvisory = z.object({\n ghsa_id: z.string(),\n summary: z.string(),\n description: z.string(),\n identifiers: z.array(\n z.object({\n type: z.string(),\n value: z.string(),\n }),\n ),\n references: z.array(z.object({ url: z.string() })).optional(),\n severity: Severity,\n cvss_severities: Nullish(\n DeepNullish(\n z.object({\n cvss_v3: CvssSeverity.optional(),\n cvss_v4: CvssSeverity.optional(),\n }),\n ),\n ),\n});\nexport type SecurityAdvisory = z.infer<typeof SecurityAdvisory>;\n\nexport const GithubVulnerabilityAlerts = LooseArray(\n z.object({\n dismissed_reason: Nullish(z.string()),\n security_advisory: SecurityAdvisory,\n security_vulnerability: SecurityVulnerability,\n dependency: z.object({\n manifest_path: z.string(),\n }),\n }),\n {\n onError: ({ error }) => {\n logger.debug(\n { error },\n 'Vulnerability Alert: Failed to parse some alerts',\n );\n },\n },\n).transform((alerts) =>\n alerts.filter((alert) => alert.security_vulnerability?.package?.ecosystem),\n);\nexport type GithubVulnerabilityAlerts = z.infer<\n typeof GithubVulnerabilityAlerts\n>;\nexport type GithubVulnerabilityAlert = GithubVulnerabilityAlerts[number];\n\n// https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#get-repository-content\nconst GithubResponseMetadata = z.object({\n name: z.string(),\n path: z.string(),\n});\n\nexport const GithubFileMeta = GithubResponseMetadata.extend({\n type: z.literal('file'),\n});\nexport type GithubFileMeta = z.infer<typeof GithubFileMeta>;\n\nexport const GithubFile = GithubFileMeta.extend({\n content: z.string(),\n encoding: z.string(),\n});\nexport type GithubFile = z.infer<typeof GithubFile>;\n\nexport const GithubDirectory = GithubResponseMetadata.extend({\n type: z.literal('dir'),\n});\n\nexport type GithubDirectory = z.infer<typeof GithubDirectory>;\n\nexport const GithubOtherContent = GithubResponseMetadata.extend({\n type: z.literal('symlink').or(z.literal('submodule')),\n});\n\nexport type GithubOtherContent = z.infer<typeof GithubOtherContent>;\n\nexport const GithubElement = GithubFile.or(GithubFileMeta)\n .or(GithubDirectory)\n .or(GithubOtherContent);\nexport type GithubElement = z.infer<typeof GithubElement>;\n\nexport const GithubContentResponse = z.array(GithubElement).or(GithubElement);\n\nexport const GithubBranchProtection = z.object({\n required_status_checks: Nullish(\n z.object({\n strict: z.boolean(),\n }),\n ),\n});\nexport type GithubBranchProtection = z.infer<typeof GithubBranchProtection>;\n\nconst GithubRulesetRule = z.discriminatedUnion('type', [\n z.object({\n type: z.literal('non_fast_forward'),\n }),\n z.object({\n type: z.literal('required_status_checks'),\n parameters: z.object({\n strict_required_status_checks_policy: z.boolean().optional(),\n }),\n }),\n // prevents deletion\n z.object({\n type: z.literal('deletion'),\n }),\n]);\n\nexport const GithubBranchRulesets = LooseArray(GithubRulesetRule);\nexport type GithubBranchRulesets = z.infer<typeof GithubBranchRulesets>;\n"],"mappings":";;;;AAQA,MAAM,YAAY,EAAE,KAAK;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAGD,MAAM,UAAU,EAAE,OAAO;CACvB,WAAW,UAAU,OAAO,QAAQ;EAClC,OAAO,MACL,EAAE,WAAW,IAAI,MAAM,GACvB,yDACF;CAEF,CAAC;CACD,MAAM,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M,EAAE,OAAO;AACjB,CAAC;AAED,MAAa,iBAAiB,uBAAuB,OAAO,EAC1D,MAAM,EAAE,QAAQ,MAAM,EACxB,CAAC;AAGD,MAAa,aAAa,eAAe,OAAO;CAC9C,SAAS,EAAE,OAAO;CAClB,UAAU,EAAE,OAAO;AACrB,CAAC;AAGD,MAAa,kBAAkB,uBAAuB,OAAO,EAC3D,MAAM,EAAE,QAAQ,KAAK,EACvB,CAAC;AAID,MAAa,qBAAqB,uBAAuB,OAAO,EAC9D,MAAM,EAAE,QAAQ,SAAS,CAAC,CAAC,GAAG,EAAE,QAAQ,WAAW,CAAC,EACtD,CAAC;AAID,MAAa,gBAAgB,WAAW,GAAG,cAAc,CAAC,CACvD,GAAG,eAAe,CAAC,CACnB,GAAG,kBAAkB;AAGxB,MAAa,wBAAwB,EAAE,MAAM,aAAa,CAAC,CAAC,GAAG,aAAa;AAE5E,MAAa,yBAAyB,EAAE,OAAO,EAC7C,wBAAwB,QACtB,EAAE,OAAO,EACP,QAAQ,EAAE,QAAQ,EACpB,CAAC,CACH,EACF,CAAC;AAmBD,MAAa,uBAAuB,WAhBV,EAAE,mBAAmB,QAAQ;CACrD,EAAE,OAAO,EACP,MAAM,EAAE,QAAQ,kBAAkB,EACpC,CAAC;CACD,EAAE,OAAO;EACP,MAAM,EAAE,QAAQ,wBAAwB;EACxC,YAAY,EAAE,OAAO,EACnB,sCAAsC,EAAE,QAAQ,CAAC,CAAC,SAAS,EAC7D,CAAC;CACH,CAAC;CAED,EAAE,OAAO,EACP,MAAM,EAAE,QAAQ,UAAU,EAC5B,CAAC;AACH,CAE+C,CAAiB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LooseArray } from "../../../util/schema-utils/index.js";
|
|
1
|
+
import { DeepNullish, LooseArray } from "../../../util/schema-utils/index.js";
|
|
2
2
|
import { LongCommitSha } from "../../../util/schema-utils/git.js";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
4
|
//#region lib/modules/platform/gitlab/schema.ts
|
|
@@ -7,7 +7,7 @@ const GitlabUser = z.object({
|
|
|
7
7
|
id: z.number(),
|
|
8
8
|
username: z.string()
|
|
9
9
|
});
|
|
10
|
-
const GitLabMergeRequest = z.object({
|
|
10
|
+
const GitLabMergeRequest = DeepNullish(z.object({
|
|
11
11
|
iid: z.number(),
|
|
12
12
|
title: z.string(),
|
|
13
13
|
description: z.string().nullable(),
|
|
@@ -45,16 +45,16 @@ const GitLabMergeRequest = z.object({
|
|
|
45
45
|
"title_regex",
|
|
46
46
|
"unknown"
|
|
47
47
|
]).catch("unknown"),
|
|
48
|
-
assignee: GitlabUser.
|
|
48
|
+
assignee: GitlabUser.optional(),
|
|
49
49
|
assignees: LooseArray(GitlabUser).catch([]),
|
|
50
50
|
reviewers: LooseArray(GitlabUser).catch([]),
|
|
51
51
|
labels: z.array(z.string()).optional(),
|
|
52
|
-
sha: LongCommitSha.
|
|
52
|
+
sha: LongCommitSha.optional(),
|
|
53
53
|
head_pipeline: z.object({
|
|
54
54
|
status: z.string(),
|
|
55
55
|
sha: LongCommitSha
|
|
56
|
-
}).
|
|
57
|
-
});
|
|
56
|
+
}).optional()
|
|
57
|
+
}));
|
|
58
58
|
const GitLabMergeRequests = z.array(GitLabMergeRequest);
|
|
59
59
|
//#endregion
|
|
60
60
|
export { GitLabMergeRequest, GitLabMergeRequests, LastPipelineId };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","names":[],"sources":["../../../../lib/modules/platform/gitlab/schema.ts"],"sourcesContent":["import { z } from 'zod/v4';\nimport { LongCommitSha } from '../../../util/schema-utils/git.ts';\nimport { LooseArray } from '../../../util/schema-utils/index.ts';\n\nexport const LastPipelineId = z\n .object({\n last_pipeline: z.object({\n id: z.number(),\n }),\n })\n .transform(({ last_pipeline }) => last_pipeline.id);\n\nconst GitlabUser = z.object({\n id: z.number(),\n username: z.string(),\n});\n\nexport const GitLabMergeRequest = z.object({\n
|
|
1
|
+
{"version":3,"file":"schema.js","names":[],"sources":["../../../../lib/modules/platform/gitlab/schema.ts"],"sourcesContent":["import { z } from 'zod/v4';\nimport { LongCommitSha } from '../../../util/schema-utils/git.ts';\nimport { DeepNullish, LooseArray } from '../../../util/schema-utils/index.ts';\n\nexport const LastPipelineId = z\n .object({\n last_pipeline: z.object({\n id: z.number(),\n }),\n })\n .transform(({ last_pipeline }) => last_pipeline.id);\n\nconst GitlabUser = z.object({\n id: z.number(),\n username: z.string(),\n});\n\nexport const GitLabMergeRequest = DeepNullish(\n z.object({\n iid: z.number(),\n title: z.string(),\n description: z.string().nullable(),\n state: z.string(),\n source_branch: z.string(),\n target_branch: z.string(),\n created_at: z.string(),\n updated_at: z.string(),\n diverged_commits_count: z.number().optional(),\n merge_status: z.string().optional(),\n detailed_merge_status: z\n .enum([\n 'approvals_syncing',\n 'checking',\n 'ci_must_pass',\n 'ci_still_running',\n 'commits_status',\n 'conflict',\n 'discussions_not_resolved',\n 'draft_status',\n 'jira_association_missing',\n 'mergeable',\n 'merge_request_blocked',\n 'merge_time',\n 'need_rebase',\n 'not_approved',\n 'not_open',\n 'preparing',\n 'requested_changes',\n 'security_policy_pipeline_check',\n 'security_policy_violations',\n 'status_checks_must_pass',\n 'unchecked',\n 'locked_paths',\n 'locked_lfs_files',\n 'title_regex',\n 'unknown',\n ])\n .catch('unknown'),\n assignee: GitlabUser.optional(),\n assignees: LooseArray(GitlabUser).catch([]),\n reviewers: LooseArray(GitlabUser).catch([]),\n labels: z.array(z.string()).optional(),\n sha: LongCommitSha.optional(),\n head_pipeline: z\n .object({\n status: z.string(),\n sha: LongCommitSha,\n })\n .optional(),\n }),\n);\n\nexport const GitLabMergeRequests = z.array(GitLabMergeRequest);\nexport type GitLabMergeRequest = z.infer<typeof GitLabMergeRequest>;\n"],"mappings":";;;;AAIA,MAAa,iBAAiB,EAC3B,OAAO,EACN,eAAe,EAAE,OAAO,EACtB,IAAI,EAAE,OAAO,EACf,CAAC,EACH,CAAC,CAAC,CACD,WAAW,EAAE,oBAAoB,cAAc,EAAE;AAEpD,MAAM,aAAa,EAAE,OAAO;CAC1B,IAAI,EAAE,OAAO;CACb,UAAU,EAAE,OAAO;AACrB,CAAC;AAED,MAAa,qBAAqB,YAChC,EAAE,OAAO;CACP,KAAK,EAAE,OAAO;CACd,OAAO,EAAE,OAAO;CAChB,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;CACjC,OAAO,EAAE,OAAO;CAChB,eAAe,EAAE,OAAO;CACxB,eAAe,EAAE,OAAO;CACxB,YAAY,EAAE,OAAO;CACrB,YAAY,EAAE,OAAO;CACrB,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS;CAC5C,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS;CAClC,uBAAuB,EACpB,KAAK;EACJ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,CAAC,CACD,MAAM,SAAS;CAClB,UAAU,WAAW,SAAS;CAC9B,WAAW,WAAW,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;CAC1C,WAAW,WAAW,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;CAC1C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;CACrC,KAAK,cAAc,SAAS;CAC5B,eAAe,EACZ,OAAO;EACN,QAAQ,EAAE,OAAO;EACjB,KAAK;CACP,CAAC,CAAC,CACD,SAAS;AACd,CAAC,CACH;AAEA,MAAa,sBAAsB,EAAE,MAAM,kBAAkB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmailAddress } from "../../../util/schema-utils/index.js";
|
|
1
|
+
import { DeepNullish, EmailAddress } from "../../../util/schema-utils/index.js";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
//#region lib/modules/platform/scm-manager/schema.ts
|
|
4
4
|
const User = z.object({
|
|
@@ -7,11 +7,11 @@ const User = z.object({
|
|
|
7
7
|
name: z.string()
|
|
8
8
|
});
|
|
9
9
|
const DefaultBranch = z.object({ defaultBranch: z.string() });
|
|
10
|
-
const Link = z.object({
|
|
10
|
+
const Link = DeepNullish(z.object({
|
|
11
11
|
href: z.string(),
|
|
12
|
-
name: z.string().optional()
|
|
13
|
-
templated: z.boolean().optional()
|
|
14
|
-
});
|
|
12
|
+
name: z.string().optional(),
|
|
13
|
+
templated: z.boolean().optional()
|
|
14
|
+
}));
|
|
15
15
|
const Links = z.record(z.string(), z.union([Link, z.array(Link)]));
|
|
16
16
|
const PrState = z.enum([
|
|
17
17
|
"DRAFT",
|
|
@@ -26,31 +26,31 @@ const PrMergeMethod = z.enum([
|
|
|
26
26
|
"FAST_FORWARD_ONLY",
|
|
27
27
|
"SQUASH"
|
|
28
28
|
]);
|
|
29
|
-
const PullRequest = z.object({
|
|
29
|
+
const PullRequest = DeepNullish(z.object({
|
|
30
30
|
id: z.string(),
|
|
31
31
|
author: z.object({
|
|
32
|
-
mail: z.string().optional()
|
|
32
|
+
mail: z.string().optional(),
|
|
33
33
|
displayName: z.string(),
|
|
34
34
|
id: z.string()
|
|
35
|
-
}).optional()
|
|
35
|
+
}).optional(),
|
|
36
36
|
reviser: z.object({
|
|
37
|
-
id: z.string().optional()
|
|
38
|
-
displayName: z.string().optional()
|
|
39
|
-
}).optional()
|
|
40
|
-
closeDate: z.string().optional()
|
|
37
|
+
id: z.string().optional(),
|
|
38
|
+
displayName: z.string().optional()
|
|
39
|
+
}).optional(),
|
|
40
|
+
closeDate: z.string().optional(),
|
|
41
41
|
source: z.string(),
|
|
42
42
|
target: z.string(),
|
|
43
43
|
title: z.string(),
|
|
44
|
-
description: z.string().optional()
|
|
44
|
+
description: z.string().optional(),
|
|
45
45
|
creationDate: z.string(),
|
|
46
|
-
lastModified: z.string().optional()
|
|
46
|
+
lastModified: z.string().optional(),
|
|
47
47
|
status: PrState,
|
|
48
48
|
reviewer: z.array(z.object({
|
|
49
49
|
id: z.string(),
|
|
50
50
|
displayName: z.string(),
|
|
51
|
-
mail: z.string().optional()
|
|
51
|
+
mail: z.string().optional(),
|
|
52
52
|
approved: z.boolean()
|
|
53
|
-
})).optional()
|
|
53
|
+
})).optional(),
|
|
54
54
|
labels: z.string().array(),
|
|
55
55
|
tasks: z.object({
|
|
56
56
|
todo: z.number(),
|
|
@@ -61,17 +61,17 @@ const PullRequest = z.object({
|
|
|
61
61
|
mergeStrategy: PrMergeMethod,
|
|
62
62
|
deleteBranchOnMerge: z.boolean()
|
|
63
63
|
}) })
|
|
64
|
-
});
|
|
64
|
+
}));
|
|
65
65
|
const RepoType = z.enum([
|
|
66
66
|
"git",
|
|
67
67
|
"svn",
|
|
68
68
|
"hg"
|
|
69
69
|
]);
|
|
70
|
-
const Repo = z.object({
|
|
71
|
-
contact: z.string().optional()
|
|
72
|
-
creationDate: z.string().optional()
|
|
73
|
-
description: z.string().optional()
|
|
74
|
-
lastModified: z.string().optional()
|
|
70
|
+
const Repo = DeepNullish(z.object({
|
|
71
|
+
contact: z.string().optional(),
|
|
72
|
+
creationDate: z.string().optional(),
|
|
73
|
+
description: z.string().optional(),
|
|
74
|
+
lastModified: z.string().optional(),
|
|
75
75
|
namespace: z.string(),
|
|
76
76
|
name: z.string(),
|
|
77
77
|
type: RepoType,
|
|
@@ -79,7 +79,7 @@ const Repo = z.object({
|
|
|
79
79
|
exporting: z.boolean(),
|
|
80
80
|
healthCheckRunning: z.boolean(),
|
|
81
81
|
_links: Links
|
|
82
|
-
});
|
|
82
|
+
}));
|
|
83
83
|
const Paged = z.object({
|
|
84
84
|
page: z.number(),
|
|
85
85
|
pageTotal: z.number()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","names":[],"sources":["../../../../lib/modules/platform/scm-manager/schema.ts"],"sourcesContent":["import { z } from 'zod/v4';\nimport { EmailAddress } from '../../../util/schema-utils/index.ts';\n\nexport const User = z.object({\n mail: EmailAddress,\n displayName: z.string(),\n name: z.string(),\n});\nexport type User = z.infer<typeof User>;\n\nexport const DefaultBranch = z.object({\n defaultBranch: z.string(),\n});\n\nexport const Link = z.object({\n
|
|
1
|
+
{"version":3,"file":"schema.js","names":[],"sources":["../../../../lib/modules/platform/scm-manager/schema.ts"],"sourcesContent":["import { z } from 'zod/v4';\nimport { DeepNullish, EmailAddress } from '../../../util/schema-utils/index.ts';\n\nexport const User = z.object({\n mail: EmailAddress,\n displayName: z.string(),\n name: z.string(),\n});\nexport type User = z.infer<typeof User>;\n\nexport const DefaultBranch = z.object({\n defaultBranch: z.string(),\n});\n\nexport const Link = DeepNullish(\n z.object({\n href: z.string(),\n name: z.string().optional(),\n templated: z.boolean().optional(),\n }),\n);\nexport type Link = z.infer<typeof Link>;\n\nexport const Links = z.record(z.string(), z.union([Link, z.array(Link)]));\nexport type Links = z.infer<typeof Links>;\n\nexport const PrState = z.enum(['DRAFT', 'OPEN', 'REJECTED', 'MERGED']);\nexport type PrState = z.infer<typeof PrState>;\n\nexport const PrMergeMethod = z.enum([\n 'MERGE_COMMIT',\n 'REBASE',\n 'FAST_FORWARD_IF_POSSIBLE',\n 'FAST_FORWARD_ONLY',\n 'SQUASH',\n]);\nexport type PrMergeMethod = z.infer<typeof PrMergeMethod>;\n\nexport const PullRequest = DeepNullish(\n z.object({\n id: z.string(),\n author: z\n .object({\n mail: z.string().optional(),\n displayName: z.string(),\n id: z.string(),\n })\n .optional(),\n reviser: z\n .object({\n id: z.string().optional(),\n displayName: z.string().optional(),\n })\n .optional(),\n closeDate: z.string().optional(),\n source: z.string(),\n target: z.string(),\n title: z.string(),\n description: z.string().optional(),\n creationDate: z.string(),\n lastModified: z.string().optional(),\n status: PrState,\n reviewer: z\n .array(\n z.object({\n id: z.string(),\n displayName: z.string(),\n mail: z.string().optional(),\n approved: z.boolean(),\n }),\n )\n .optional(),\n labels: z.string().array(),\n tasks: z.object({\n todo: z.number(),\n done: z.number(),\n }),\n _links: Links,\n _embedded: z.object({\n defaultConfig: z.object({\n mergeStrategy: PrMergeMethod,\n deleteBranchOnMerge: z.boolean(),\n }),\n }),\n }),\n);\nexport type PullRequest = z.infer<typeof PullRequest>;\n\nconst RepoType = z.enum(['git', 'svn', 'hg']);\n\nexport const Repo = DeepNullish(\n z.object({\n contact: z.string().optional(),\n creationDate: z.string().optional(),\n description: z.string().optional(),\n lastModified: z.string().optional(),\n namespace: z.string(),\n name: z.string(),\n type: RepoType,\n archived: z.boolean(),\n exporting: z.boolean(),\n healthCheckRunning: z.boolean(),\n _links: Links,\n }),\n);\nexport type Repo = z.infer<typeof Repo>;\n\nconst Paged = z.object({\n page: z.number(),\n pageTotal: z.number(),\n});\n\nexport const PagedPullRequest = Paged.extend({\n _embedded: z.object({\n pullRequests: z.array(PullRequest),\n }),\n});\n\nexport const PagedRepo = Paged.extend({\n _embedded: z.object({\n repositories: z.array(Repo),\n }),\n});\n"],"mappings":";;;AAGA,MAAa,OAAO,EAAE,OAAO;CAC3B,MAAM;CACN,aAAa,EAAE,OAAO;CACtB,MAAM,EAAE,OAAO;AACjB,CAAC;AAGD,MAAa,gBAAgB,EAAE,OAAO,EACpC,eAAe,EAAE,OAAO,EAC1B,CAAC;AAED,MAAa,OAAO,YAClB,EAAE,OAAO;CACP,MAAM,EAAE,OAAO;CACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS;AAClC,CAAC,CACH;AAGA,MAAa,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC;AAGxE,MAAa,UAAU,EAAE,KAAK;CAAC;CAAS;CAAQ;CAAY;AAAQ,CAAC;AAGrE,MAAa,gBAAgB,EAAE,KAAK;CAClC;CACA;CACA;CACA;CACA;AACF,CAAC;AAGD,MAAa,cAAc,YACzB,EAAE,OAAO;CACP,IAAI,EAAE,OAAO;CACb,QAAQ,EACL,OAAO;EACN,M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AE,OAAO;CACf,MAAM;CACN,UAAU,EAAE,QAAQ;CACpB,WAAW,EAAE,QAAQ;CACrB,oBAAoB,EAAE,QAAQ;CAC9B,QAAQ;AACV,CAAC,CACH;AAGA,MAAM,QAAQ,EAAE,OAAO;CACrB,MAAM,EAAE,OAAO;CACf,WAAW,EAAE,OAAO;AACtB,CAAC;AAED,MAAa,mBAAmB,MAAM,OAAO,EAC3C,WAAW,EAAE,OAAO,EAClB,cAAc,EAAE,MAAM,WAAW,EACnC,CAAC,EACH,CAAC;AAED,MAAa,YAAY,MAAM,OAAO,EACpC,WAAW,EAAE,OAAO,EAClB,cAAc,EAAE,MAAM,IAAI,EAC5B,CAAC,EACH,CAAC"}
|
package/package.json
CHANGED
package/renovate-schema.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$id": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
|
-
"title": "JSON schema for Renovate 43.
|
|
3
|
+
"title": "JSON schema for Renovate 43.263.0 config files (https://renovatebot.com/)",
|
|
4
4
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
-
"x-renovate-version": "43.
|
|
5
|
+
"x-renovate-version": "43.263.0",
|
|
6
6
|
"allowComments": true,
|
|
7
7
|
"type": "object",
|
|
8
8
|
"definitions": {
|