@paklo/core 0.12.1 → 0.14.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/azure/index.d.mts +54 -65
- package/dist/azure/index.mjs +74 -68
- package/dist/azure/index.mjs.map +1 -1
- package/dist/dependabot/index.d.mts +3 -3
- package/dist/dependabot/index.mjs +3 -3
- package/dist/{index-BfwWezjJ.d.mts → ghsa-CqXOLQSp.d.mts} +1 -2
- package/dist/github/index.d.mts +1 -1
- package/dist/github/index.mjs +2 -2
- package/dist/github/index.mjs.map +1 -1
- package/dist/hono.d.mts +0 -1
- package/dist/{job-ClEevC5P.mjs → job-Bb9WiMwE.mjs} +19 -12
- package/dist/job-Bb9WiMwE.mjs.map +1 -0
- package/dist/keygen.d.mts +1 -3
- package/dist/logger.d.mts +1 -2
- package/dist/logger.mjs +41 -2
- package/dist/logger.mjs.map +1 -0
- package/dist/usage.d.mts +1 -1
- package/dist/usage.mjs +1 -1
- package/dist/{dependabot-DAdoJJp4.mjs → utils-BVmUgc0p.mjs} +110 -25
- package/dist/utils-BVmUgc0p.mjs.map +1 -0
- package/dist/{index-rsiHDQ5U.d.mts → utils-CFTIkIwf.d.mts} +174 -90
- package/package.json +9 -9
- package/dist/dependabot-DAdoJJp4.mjs.map +0 -1
- package/dist/job-ClEevC5P.mjs.map +0 -1
- package/dist/logger-3Qfh9NUj.mjs +0 -42
- package/dist/logger-3Qfh9NUj.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as SecurityVulnerability } from "./
|
|
1
|
+
import { p as SecurityVulnerability } from "./ghsa-CqXOLQSp.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { Hono } from "hono";
|
|
4
4
|
|
|
@@ -114,10 +114,10 @@ declare const DependabotAllowConditionSchema: z.ZodObject<{
|
|
|
114
114
|
'dependency-name': z.ZodOptional<z.ZodString>;
|
|
115
115
|
'dependency-type': z.ZodOptional<z.ZodEnum<{
|
|
116
116
|
production: "production";
|
|
117
|
+
all: "all";
|
|
117
118
|
development: "development";
|
|
118
119
|
direct: "direct";
|
|
119
120
|
indirect: "indirect";
|
|
120
|
-
all: "all";
|
|
121
121
|
}>>;
|
|
122
122
|
'update-type': z.ZodOptional<z.ZodEnum<{
|
|
123
123
|
all: "all";
|
|
@@ -221,6 +221,7 @@ declare const PackageEcosystemSchema: z.ZodEnum<{
|
|
|
221
221
|
npm: "npm";
|
|
222
222
|
"pip-compile": "pip-compile";
|
|
223
223
|
pipenv: "pipenv";
|
|
224
|
+
"pre-commit": "pre-commit";
|
|
224
225
|
pnpm: "pnpm";
|
|
225
226
|
poetry: "poetry";
|
|
226
227
|
"rust-toolchain": "rust-toolchain";
|
|
@@ -228,10 +229,10 @@ declare const PackageEcosystemSchema: z.ZodEnum<{
|
|
|
228
229
|
}>;
|
|
229
230
|
type PackageEcosystem = z.infer<typeof PackageEcosystemSchema>;
|
|
230
231
|
declare const VersioningStrategySchema: z.ZodEnum<{
|
|
232
|
+
"lockfile-only": "lockfile-only";
|
|
231
233
|
auto: "auto";
|
|
232
234
|
increase: "increase";
|
|
233
235
|
"increase-if-necessary": "increase-if-necessary";
|
|
234
|
-
"lockfile-only": "lockfile-only";
|
|
235
236
|
widen: "widen";
|
|
236
237
|
}>;
|
|
237
238
|
type VersioningStrategy = z.infer<typeof VersioningStrategySchema>;
|
|
@@ -267,6 +268,7 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
267
268
|
npm: "npm";
|
|
268
269
|
"pip-compile": "pip-compile";
|
|
269
270
|
pipenv: "pipenv";
|
|
271
|
+
"pre-commit": "pre-commit";
|
|
270
272
|
pnpm: "pnpm";
|
|
271
273
|
poetry: "poetry";
|
|
272
274
|
"rust-toolchain": "rust-toolchain";
|
|
@@ -279,10 +281,10 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
279
281
|
'dependency-name': z.ZodOptional<z.ZodString>;
|
|
280
282
|
'dependency-type': z.ZodOptional<z.ZodEnum<{
|
|
281
283
|
production: "production";
|
|
284
|
+
all: "all";
|
|
282
285
|
development: "development";
|
|
283
286
|
direct: "direct";
|
|
284
287
|
indirect: "indirect";
|
|
285
|
-
all: "all";
|
|
286
288
|
}>>;
|
|
287
289
|
'update-type': z.ZodOptional<z.ZodEnum<{
|
|
288
290
|
all: "all";
|
|
@@ -380,16 +382,16 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
380
382
|
'target-branch': z.ZodOptional<z.ZodString>;
|
|
381
383
|
vendor: z.ZodOptional<z.ZodBoolean>;
|
|
382
384
|
'versioning-strategy': z.ZodOptional<z.ZodEnum<{
|
|
385
|
+
"lockfile-only": "lockfile-only";
|
|
383
386
|
auto: "auto";
|
|
384
387
|
increase: "increase";
|
|
385
388
|
"increase-if-necessary": "increase-if-necessary";
|
|
386
|
-
"lockfile-only": "lockfile-only";
|
|
387
389
|
widen: "widen";
|
|
388
390
|
}>>;
|
|
389
391
|
patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
390
392
|
'multi-ecosystem-group': z.ZodOptional<z.ZodString>;
|
|
391
393
|
}, z.core.$strip>, z.ZodTransform<{
|
|
392
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "conda" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
394
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "conda" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pre-commit" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
393
395
|
schedule: {
|
|
394
396
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
395
397
|
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
@@ -402,7 +404,7 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
402
404
|
'exclude-paths'?: string[] | undefined;
|
|
403
405
|
allow?: {
|
|
404
406
|
'dependency-name'?: string | undefined;
|
|
405
|
-
'dependency-type'?: "production" | "
|
|
407
|
+
'dependency-type'?: "production" | "all" | "development" | "direct" | "indirect" | undefined;
|
|
406
408
|
'update-type'?: "all" | "security" | undefined;
|
|
407
409
|
}[] | undefined;
|
|
408
410
|
assignees?: string[] | undefined;
|
|
@@ -443,11 +445,11 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
443
445
|
registries?: string[] | undefined;
|
|
444
446
|
'target-branch'?: string | undefined;
|
|
445
447
|
vendor?: boolean | undefined;
|
|
446
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
448
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
447
449
|
patterns?: string[] | undefined;
|
|
448
450
|
'multi-ecosystem-group'?: string | undefined;
|
|
449
451
|
}, {
|
|
450
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "conda" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
452
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "conda" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pre-commit" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
451
453
|
schedule: {
|
|
452
454
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
453
455
|
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
@@ -460,7 +462,7 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
460
462
|
'exclude-paths'?: string[] | undefined;
|
|
461
463
|
allow?: {
|
|
462
464
|
'dependency-name'?: string | undefined;
|
|
463
|
-
'dependency-type'?: "production" | "
|
|
465
|
+
'dependency-type'?: "production" | "all" | "development" | "direct" | "indirect" | undefined;
|
|
464
466
|
'update-type'?: "all" | "security" | undefined;
|
|
465
467
|
}[] | undefined;
|
|
466
468
|
assignees?: string[] | undefined;
|
|
@@ -501,7 +503,7 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
501
503
|
registries?: string[] | undefined;
|
|
502
504
|
'target-branch'?: string | undefined;
|
|
503
505
|
vendor?: boolean | undefined;
|
|
504
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
506
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
505
507
|
patterns?: string[] | undefined;
|
|
506
508
|
'multi-ecosystem-group'?: string | undefined;
|
|
507
509
|
}>>;
|
|
@@ -644,6 +646,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
644
646
|
npm: "npm";
|
|
645
647
|
"pip-compile": "pip-compile";
|
|
646
648
|
pipenv: "pipenv";
|
|
649
|
+
"pre-commit": "pre-commit";
|
|
647
650
|
pnpm: "pnpm";
|
|
648
651
|
poetry: "poetry";
|
|
649
652
|
"rust-toolchain": "rust-toolchain";
|
|
@@ -656,10 +659,10 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
656
659
|
'dependency-name': z.ZodOptional<z.ZodString>;
|
|
657
660
|
'dependency-type': z.ZodOptional<z.ZodEnum<{
|
|
658
661
|
production: "production";
|
|
662
|
+
all: "all";
|
|
659
663
|
development: "development";
|
|
660
664
|
direct: "direct";
|
|
661
665
|
indirect: "indirect";
|
|
662
|
-
all: "all";
|
|
663
666
|
}>>;
|
|
664
667
|
'update-type': z.ZodOptional<z.ZodEnum<{
|
|
665
668
|
all: "all";
|
|
@@ -757,16 +760,16 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
757
760
|
'target-branch': z.ZodOptional<z.ZodString>;
|
|
758
761
|
vendor: z.ZodOptional<z.ZodBoolean>;
|
|
759
762
|
'versioning-strategy': z.ZodOptional<z.ZodEnum<{
|
|
763
|
+
"lockfile-only": "lockfile-only";
|
|
760
764
|
auto: "auto";
|
|
761
765
|
increase: "increase";
|
|
762
766
|
"increase-if-necessary": "increase-if-necessary";
|
|
763
|
-
"lockfile-only": "lockfile-only";
|
|
764
767
|
widen: "widen";
|
|
765
768
|
}>>;
|
|
766
769
|
patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
767
770
|
'multi-ecosystem-group': z.ZodOptional<z.ZodString>;
|
|
768
771
|
}, z.core.$strip>, z.ZodTransform<{
|
|
769
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "conda" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
772
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "conda" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pre-commit" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
770
773
|
schedule: {
|
|
771
774
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
772
775
|
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
@@ -779,7 +782,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
779
782
|
'exclude-paths'?: string[] | undefined;
|
|
780
783
|
allow?: {
|
|
781
784
|
'dependency-name'?: string | undefined;
|
|
782
|
-
'dependency-type'?: "production" | "
|
|
785
|
+
'dependency-type'?: "production" | "all" | "development" | "direct" | "indirect" | undefined;
|
|
783
786
|
'update-type'?: "all" | "security" | undefined;
|
|
784
787
|
}[] | undefined;
|
|
785
788
|
assignees?: string[] | undefined;
|
|
@@ -820,11 +823,11 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
820
823
|
registries?: string[] | undefined;
|
|
821
824
|
'target-branch'?: string | undefined;
|
|
822
825
|
vendor?: boolean | undefined;
|
|
823
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
826
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
824
827
|
patterns?: string[] | undefined;
|
|
825
828
|
'multi-ecosystem-group'?: string | undefined;
|
|
826
829
|
}, {
|
|
827
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "conda" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
830
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "conda" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pre-commit" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
828
831
|
schedule: {
|
|
829
832
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
830
833
|
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
@@ -837,7 +840,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
837
840
|
'exclude-paths'?: string[] | undefined;
|
|
838
841
|
allow?: {
|
|
839
842
|
'dependency-name'?: string | undefined;
|
|
840
|
-
'dependency-type'?: "production" | "
|
|
843
|
+
'dependency-type'?: "production" | "all" | "development" | "direct" | "indirect" | undefined;
|
|
841
844
|
'update-type'?: "all" | "security" | undefined;
|
|
842
845
|
}[] | undefined;
|
|
843
846
|
assignees?: string[] | undefined;
|
|
@@ -878,7 +881,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
878
881
|
registries?: string[] | undefined;
|
|
879
882
|
'target-branch'?: string | undefined;
|
|
880
883
|
vendor?: boolean | undefined;
|
|
881
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
884
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
882
885
|
patterns?: string[] | undefined;
|
|
883
886
|
'multi-ecosystem-group'?: string | undefined;
|
|
884
887
|
}>>>;
|
|
@@ -954,7 +957,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
954
957
|
}, z.core.$strip>, z.ZodTransform<{
|
|
955
958
|
version: 2;
|
|
956
959
|
updates: {
|
|
957
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "conda" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
960
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "conda" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pre-commit" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
958
961
|
schedule: {
|
|
959
962
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
960
963
|
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
@@ -967,7 +970,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
967
970
|
'exclude-paths'?: string[] | undefined;
|
|
968
971
|
allow?: {
|
|
969
972
|
'dependency-name'?: string | undefined;
|
|
970
|
-
'dependency-type'?: "production" | "
|
|
973
|
+
'dependency-type'?: "production" | "all" | "development" | "direct" | "indirect" | undefined;
|
|
971
974
|
'update-type'?: "all" | "security" | undefined;
|
|
972
975
|
}[] | undefined;
|
|
973
976
|
assignees?: string[] | undefined;
|
|
@@ -1008,7 +1011,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1008
1011
|
registries?: string[] | undefined;
|
|
1009
1012
|
'target-branch'?: string | undefined;
|
|
1010
1013
|
vendor?: boolean | undefined;
|
|
1011
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
1014
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
1012
1015
|
patterns?: string[] | undefined;
|
|
1013
1016
|
'multi-ecosystem-group'?: string | undefined;
|
|
1014
1017
|
}[];
|
|
@@ -1055,7 +1058,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1055
1058
|
}, {
|
|
1056
1059
|
version: 2;
|
|
1057
1060
|
updates: {
|
|
1058
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "conda" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
1061
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "conda" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "bazel" | "opentofu" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pre-commit" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
1059
1062
|
schedule: {
|
|
1060
1063
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
1061
1064
|
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
@@ -1068,7 +1071,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1068
1071
|
'exclude-paths'?: string[] | undefined;
|
|
1069
1072
|
allow?: {
|
|
1070
1073
|
'dependency-name'?: string | undefined;
|
|
1071
|
-
'dependency-type'?: "production" | "
|
|
1074
|
+
'dependency-type'?: "production" | "all" | "development" | "direct" | "indirect" | undefined;
|
|
1072
1075
|
'update-type'?: "all" | "security" | undefined;
|
|
1073
1076
|
}[] | undefined;
|
|
1074
1077
|
assignees?: string[] | undefined;
|
|
@@ -1109,7 +1112,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1109
1112
|
registries?: string[] | undefined;
|
|
1110
1113
|
'target-branch'?: string | undefined;
|
|
1111
1114
|
vendor?: boolean | undefined;
|
|
1112
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
1115
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
1113
1116
|
patterns?: string[] | undefined;
|
|
1114
1117
|
'multi-ecosystem-group'?: string | undefined;
|
|
1115
1118
|
}[];
|
|
@@ -1214,14 +1217,25 @@ declare const DependabotSourceSchema: z.ZodObject<{
|
|
|
1214
1217
|
'api-endpoint': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1215
1218
|
}, z.core.$strip>;
|
|
1216
1219
|
type DependabotSource = z.infer<typeof DependabotSourceSchema>;
|
|
1217
|
-
declare const
|
|
1220
|
+
declare const DependabotExistingPrDependencySchema: z.ZodObject<{
|
|
1218
1221
|
'dependency-name': z.ZodString;
|
|
1219
1222
|
'dependency-version': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1220
1223
|
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1221
1224
|
removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1222
1225
|
}, z.core.$strip>;
|
|
1223
|
-
type
|
|
1224
|
-
declare const
|
|
1226
|
+
type DependabotExistingPrDependency = z.infer<typeof DependabotExistingPrDependencySchema>;
|
|
1227
|
+
declare const DependabotExistingPrSchema: z.ZodObject<{
|
|
1228
|
+
'pr-number': z.ZodNumber;
|
|
1229
|
+
dependencies: z.ZodArray<z.ZodObject<{
|
|
1230
|
+
'dependency-name': z.ZodString;
|
|
1231
|
+
'dependency-version': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1232
|
+
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1233
|
+
removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1234
|
+
}, z.core.$strip>>;
|
|
1235
|
+
}, z.core.$strip>;
|
|
1236
|
+
type DependabotExistingPr = z.infer<typeof DependabotExistingPrSchema>;
|
|
1237
|
+
declare const DependabotExistingGroupPrSchema: z.ZodObject<{
|
|
1238
|
+
'pr-number': z.ZodNumber;
|
|
1225
1239
|
'dependency-group-name': z.ZodString;
|
|
1226
1240
|
dependencies: z.ZodArray<z.ZodObject<{
|
|
1227
1241
|
'dependency-name': z.ZodString;
|
|
@@ -1230,7 +1244,7 @@ declare const DependabotExistingGroupPRSchema: z.ZodObject<{
|
|
|
1230
1244
|
removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1231
1245
|
}, z.core.$strip>>;
|
|
1232
1246
|
}, z.core.$strip>;
|
|
1233
|
-
type
|
|
1247
|
+
type DependabotExistingGroupPr = z.infer<typeof DependabotExistingGroupPrSchema>;
|
|
1234
1248
|
declare const DependabotAllowedSchema: z.ZodObject<{
|
|
1235
1249
|
'dependency-name': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1236
1250
|
'dependency-type': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1349,21 +1363,24 @@ declare const DependabotPackageManagerSchema: z.ZodEnum<{
|
|
|
1349
1363
|
julia: "julia";
|
|
1350
1364
|
bazel: "bazel";
|
|
1351
1365
|
opentofu: "opentofu";
|
|
1366
|
+
pre_commit: "pre_commit";
|
|
1352
1367
|
}>;
|
|
1353
1368
|
type DependabotPackageManager = z.infer<typeof DependabotPackageManagerSchema>;
|
|
1354
|
-
declare const DEPENDABOT_COMMANDS: readonly ["
|
|
1369
|
+
declare const DEPENDABOT_COMMANDS: readonly ["update", "version", "recreate", "graph"];
|
|
1355
1370
|
declare const DependabotCommandSchema: z.ZodEnum<{
|
|
1356
1371
|
version: "version";
|
|
1357
|
-
|
|
1372
|
+
update: "update";
|
|
1358
1373
|
recreate: "recreate";
|
|
1374
|
+
graph: "graph";
|
|
1359
1375
|
}>;
|
|
1360
1376
|
type DependabotCommand = z.infer<typeof DependabotCommandSchema>;
|
|
1361
1377
|
declare const DependabotJobConfigSchema: z.ZodObject<{
|
|
1362
1378
|
id: z.ZodString;
|
|
1363
1379
|
command: z.ZodOptional<z.ZodEnum<{
|
|
1364
1380
|
version: "version";
|
|
1365
|
-
|
|
1381
|
+
update: "update";
|
|
1366
1382
|
recreate: "recreate";
|
|
1383
|
+
graph: "graph";
|
|
1367
1384
|
}>>;
|
|
1368
1385
|
'package-manager': z.ZodEnum<{
|
|
1369
1386
|
hex: "hex";
|
|
@@ -1395,6 +1412,7 @@ declare const DependabotJobConfigSchema: z.ZodObject<{
|
|
|
1395
1412
|
julia: "julia";
|
|
1396
1413
|
bazel: "bazel";
|
|
1397
1414
|
opentofu: "opentofu";
|
|
1415
|
+
pre_commit: "pre_commit";
|
|
1398
1416
|
}>;
|
|
1399
1417
|
'allowed-updates': z.ZodArray<z.ZodObject<{
|
|
1400
1418
|
'dependency-name': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1417,13 +1435,17 @@ declare const DependabotJobConfigSchema: z.ZodObject<{
|
|
|
1417
1435
|
}, z.core.$strip>>>>;
|
|
1418
1436
|
dependencies: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1419
1437
|
'dependency-group-to-refresh': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1420
|
-
'existing-pull-requests': z.ZodArray<z.
|
|
1421
|
-
'
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1438
|
+
'existing-pull-requests': z.ZodArray<z.ZodObject<{
|
|
1439
|
+
'pr-number': z.ZodNumber;
|
|
1440
|
+
dependencies: z.ZodArray<z.ZodObject<{
|
|
1441
|
+
'dependency-name': z.ZodString;
|
|
1442
|
+
'dependency-version': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1443
|
+
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1444
|
+
removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1445
|
+
}, z.core.$strip>>;
|
|
1446
|
+
}, z.core.$strip>>;
|
|
1426
1447
|
'existing-group-pull-requests': z.ZodArray<z.ZodObject<{
|
|
1448
|
+
'pr-number': z.ZodNumber;
|
|
1427
1449
|
'dependency-group-name': z.ZodString;
|
|
1428
1450
|
dependencies: z.ZodArray<z.ZodObject<{
|
|
1429
1451
|
'dependency-name': z.ZodString;
|
|
@@ -1494,8 +1516,9 @@ declare const DependabotJobFileSchema: z.ZodObject<{
|
|
|
1494
1516
|
id: z.ZodString;
|
|
1495
1517
|
command: z.ZodOptional<z.ZodEnum<{
|
|
1496
1518
|
version: "version";
|
|
1497
|
-
|
|
1519
|
+
update: "update";
|
|
1498
1520
|
recreate: "recreate";
|
|
1521
|
+
graph: "graph";
|
|
1499
1522
|
}>>;
|
|
1500
1523
|
'package-manager': z.ZodEnum<{
|
|
1501
1524
|
hex: "hex";
|
|
@@ -1527,6 +1550,7 @@ declare const DependabotJobFileSchema: z.ZodObject<{
|
|
|
1527
1550
|
julia: "julia";
|
|
1528
1551
|
bazel: "bazel";
|
|
1529
1552
|
opentofu: "opentofu";
|
|
1553
|
+
pre_commit: "pre_commit";
|
|
1530
1554
|
}>;
|
|
1531
1555
|
'allowed-updates': z.ZodArray<z.ZodObject<{
|
|
1532
1556
|
'dependency-name': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1549,13 +1573,17 @@ declare const DependabotJobFileSchema: z.ZodObject<{
|
|
|
1549
1573
|
}, z.core.$strip>>>>;
|
|
1550
1574
|
dependencies: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1551
1575
|
'dependency-group-to-refresh': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1552
|
-
'existing-pull-requests': z.ZodArray<z.
|
|
1553
|
-
'
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1576
|
+
'existing-pull-requests': z.ZodArray<z.ZodObject<{
|
|
1577
|
+
'pr-number': z.ZodNumber;
|
|
1578
|
+
dependencies: z.ZodArray<z.ZodObject<{
|
|
1579
|
+
'dependency-name': z.ZodString;
|
|
1580
|
+
'dependency-version': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1581
|
+
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1582
|
+
removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1583
|
+
}, z.core.$strip>>;
|
|
1584
|
+
}, z.core.$strip>>;
|
|
1558
1585
|
'existing-group-pull-requests': z.ZodArray<z.ZodObject<{
|
|
1586
|
+
'pr-number': z.ZodNumber;
|
|
1559
1587
|
'dependency-group-name': z.ZodString;
|
|
1560
1588
|
dependencies: z.ZodArray<z.ZodObject<{
|
|
1561
1589
|
'dependency-name': z.ZodString;
|
|
@@ -1633,20 +1661,15 @@ type FileFetcherInput = {
|
|
|
1633
1661
|
type FileUpdaterInput = FetchedFiles & {
|
|
1634
1662
|
job: DependabotJobConfig;
|
|
1635
1663
|
};
|
|
1636
|
-
declare const DependabotPersistedPrSchema: z.
|
|
1637
|
-
'dependency-name': z.ZodString;
|
|
1638
|
-
'dependency-version': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1639
|
-
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1640
|
-
removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1641
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
1642
|
-
'dependency-group-name': z.ZodString;
|
|
1664
|
+
declare const DependabotPersistedPrSchema: z.ZodObject<{
|
|
1643
1665
|
dependencies: z.ZodArray<z.ZodObject<{
|
|
1644
1666
|
'dependency-name': z.ZodString;
|
|
1645
1667
|
'dependency-version': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1646
1668
|
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1647
1669
|
removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1648
1670
|
}, z.core.$strip>>;
|
|
1649
|
-
|
|
1671
|
+
'dependency-group-name': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1672
|
+
}, z.core.$strip>;
|
|
1650
1673
|
type DependabotPersistedPr = z.infer<typeof DependabotPersistedPrSchema>;
|
|
1651
1674
|
//#endregion
|
|
1652
1675
|
//#region src/dependabot/branch-name.d.ts
|
|
@@ -1661,8 +1684,8 @@ declare function getBranchNameForUpdate({
|
|
|
1661
1684
|
packageEcosystem: PackageEcosystem;
|
|
1662
1685
|
targetBranchName?: string;
|
|
1663
1686
|
directory?: string;
|
|
1664
|
-
dependencyGroupName?: string;
|
|
1665
|
-
dependencies:
|
|
1687
|
+
dependencyGroupName?: string | null;
|
|
1688
|
+
dependencies: DependabotExistingPrDependency[];
|
|
1666
1689
|
separator?: string;
|
|
1667
1690
|
}): string;
|
|
1668
1691
|
declare function sanitizeRef(refParts: (string | undefined)[], separator: string): string;
|
|
@@ -1676,18 +1699,12 @@ declare function sanitizeRef(refParts: (string | undefined)[], separator: string
|
|
|
1676
1699
|
* Either a single `directory` or multiple `directories` can be specified.
|
|
1677
1700
|
*/
|
|
1678
1701
|
type MakeDirectoryKeyOptions = {
|
|
1679
|
-
/** The package ecosystem (e.g., 'npm', 'pip', 'bundler') */
|
|
1680
|
-
|
|
1681
|
-
/** Single directory path (optional if directories is provided) */
|
|
1682
|
-
directory?: string | null;
|
|
1683
|
-
/** Multiple directory paths (optional if directory is provided) */
|
|
1702
|
+
/** The package ecosystem (e.g., 'npm', 'pip', 'bundler') */ecosystem: string; /** Single directory path (optional if directories is provided) */
|
|
1703
|
+
directory?: string | null; /** Multiple directory paths (optional if directory is provided) */
|
|
1684
1704
|
directories?: string[];
|
|
1685
1705
|
} | {
|
|
1686
|
-
/** The package ecosystem using alternative naming convention */
|
|
1687
|
-
|
|
1688
|
-
/** Single directory path (optional if directories is provided) */
|
|
1689
|
-
directory?: string | null;
|
|
1690
|
-
/** Multiple directory paths (optional if directory is provided) */
|
|
1706
|
+
/** The package ecosystem using alternative naming convention */'package-ecosystem': string; /** Single directory path (optional if directories is provided) */
|
|
1707
|
+
directory?: string | null; /** Multiple directory paths (optional if directory is provided) */
|
|
1691
1708
|
directories?: string[];
|
|
1692
1709
|
};
|
|
1693
1710
|
/**
|
|
@@ -1779,19 +1796,16 @@ declare class DependabotJobBuilder {
|
|
|
1779
1796
|
experiments: DependabotExperiments;
|
|
1780
1797
|
systemAccessUser?: string;
|
|
1781
1798
|
systemAccessToken?: string;
|
|
1782
|
-
githubToken?: string;
|
|
1783
|
-
/** Determines if verbose log messages are logged */
|
|
1799
|
+
githubToken?: string; /** Determines if verbose log messages are logged */
|
|
1784
1800
|
debug: boolean;
|
|
1785
1801
|
});
|
|
1786
1802
|
/**
|
|
1787
1803
|
* Create a dependabot update job that updates nothing, but will discover the dependency list for a package ecosystem
|
|
1788
1804
|
*/
|
|
1789
1805
|
forDependenciesList({
|
|
1790
|
-
id
|
|
1791
|
-
command
|
|
1806
|
+
id
|
|
1792
1807
|
}: {
|
|
1793
1808
|
id: string;
|
|
1794
|
-
command: DependabotJobConfig['command'];
|
|
1795
1809
|
}): DependabotJobBuilderOutput;
|
|
1796
1810
|
/**
|
|
1797
1811
|
* Create a dependabot update job that updates all dependencies for a package ecosystem
|
|
@@ -1805,10 +1819,10 @@ declare class DependabotJobBuilder {
|
|
|
1805
1819
|
securityVulnerabilities
|
|
1806
1820
|
}: {
|
|
1807
1821
|
id: string;
|
|
1808
|
-
command:
|
|
1822
|
+
command: DependabotCommand;
|
|
1809
1823
|
dependencyNamesToUpdate?: string[];
|
|
1810
|
-
existingPullRequests:
|
|
1811
|
-
pullRequestToUpdate?:
|
|
1824
|
+
existingPullRequests: (DependabotExistingPr | DependabotExistingGroupPr)[];
|
|
1825
|
+
pullRequestToUpdate?: DependabotExistingPr | DependabotExistingGroupPr;
|
|
1812
1826
|
securityVulnerabilities?: SecurityVulnerability[];
|
|
1813
1827
|
}): DependabotJobBuilderOutput;
|
|
1814
1828
|
}
|
|
@@ -1892,9 +1906,9 @@ declare const DependabotRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1892
1906
|
directory: z.ZodString;
|
|
1893
1907
|
name: z.ZodString;
|
|
1894
1908
|
operation: z.ZodEnum<{
|
|
1909
|
+
delete: "delete";
|
|
1895
1910
|
update: "update";
|
|
1896
1911
|
create: "create";
|
|
1897
|
-
delete: "delete";
|
|
1898
1912
|
}>;
|
|
1899
1913
|
support_file: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1900
1914
|
vendored_file: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1929,9 +1943,9 @@ declare const DependabotRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1929
1943
|
directory: z.ZodString;
|
|
1930
1944
|
name: z.ZodString;
|
|
1931
1945
|
operation: z.ZodEnum<{
|
|
1946
|
+
delete: "delete";
|
|
1932
1947
|
update: "update";
|
|
1933
1948
|
create: "create";
|
|
1934
|
-
delete: "delete";
|
|
1935
1949
|
}>;
|
|
1936
1950
|
support_file: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1937
1951
|
vendored_file: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -2069,6 +2083,7 @@ declare const DependabotRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2069
2083
|
julia: "julia";
|
|
2070
2084
|
bazel: "bazel";
|
|
2071
2085
|
opentofu: "opentofu";
|
|
2086
|
+
pre_commit: "pre_commit";
|
|
2072
2087
|
}>;
|
|
2073
2088
|
}, z.core.$strip>>>;
|
|
2074
2089
|
resolved: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -2108,6 +2123,7 @@ declare const DependabotRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2108
2123
|
}, z.core.$strip>>;
|
|
2109
2124
|
}, z.core.$strip>>>;
|
|
2110
2125
|
}, z.core.$strip>;
|
|
2126
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2111
2127
|
}, z.core.$strip>;
|
|
2112
2128
|
}, z.core.$strip>, z.ZodObject<{
|
|
2113
2129
|
type: z.ZodLiteral<"record_ecosystem_versions">;
|
|
@@ -2173,6 +2189,7 @@ declare const DependabotRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2173
2189
|
julia: "julia";
|
|
2174
2190
|
bazel: "bazel";
|
|
2175
2191
|
opentofu: "opentofu";
|
|
2192
|
+
pre_commit: "pre_commit";
|
|
2176
2193
|
}>;
|
|
2177
2194
|
config: z.ZodObject<{
|
|
2178
2195
|
default_days: z.ZodNumber;
|
|
@@ -2245,19 +2262,15 @@ type CreateApiServerAppOptions = {
|
|
|
2245
2262
|
* Base path for the endpoints.
|
|
2246
2263
|
* @default `/api/update_jobs`
|
|
2247
2264
|
*/
|
|
2248
|
-
basePath?: string;
|
|
2249
|
-
/**
|
|
2250
|
-
|
|
2251
|
-
/** Function for getting a dependabot job by ID. */
|
|
2252
|
-
getJob: GetJobFunc;
|
|
2253
|
-
/** Function for getting dependabot credentials by job ID. */
|
|
2265
|
+
basePath?: string; /** Handler function for authenticating requests. */
|
|
2266
|
+
authenticate: AuthenticatorFunc; /** Function for getting a dependabot job by ID. */
|
|
2267
|
+
getJob: GetJobFunc; /** Function for getting dependabot credentials by job ID. */
|
|
2254
2268
|
getCredentials: GetCredentialsFunc;
|
|
2255
2269
|
/**
|
|
2256
2270
|
* Optional function for inspecting raw dependabot requests.
|
|
2257
2271
|
* Should only be used for troubleshooting.
|
|
2258
2272
|
* */
|
|
2259
|
-
inspect?: InspectRequestFunc;
|
|
2260
|
-
/** Handler function for processing the operations. */
|
|
2273
|
+
inspect?: InspectRequestFunc; /** Handler function for processing the operations. */
|
|
2261
2274
|
handle: HandlerFunc;
|
|
2262
2275
|
};
|
|
2263
2276
|
/**
|
|
@@ -2293,9 +2306,9 @@ declare const DependabotDependencyFileSchema: z.ZodObject<{
|
|
|
2293
2306
|
directory: z.ZodString;
|
|
2294
2307
|
name: z.ZodString;
|
|
2295
2308
|
operation: z.ZodEnum<{
|
|
2309
|
+
delete: "delete";
|
|
2296
2310
|
update: "update";
|
|
2297
2311
|
create: "create";
|
|
2298
|
-
delete: "delete";
|
|
2299
2312
|
}>;
|
|
2300
2313
|
support_file: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2301
2314
|
vendored_file: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -2388,6 +2401,7 @@ declare const DependabotDependencySubmissionSchema: z.ZodObject<{
|
|
|
2388
2401
|
julia: "julia";
|
|
2389
2402
|
bazel: "bazel";
|
|
2390
2403
|
opentofu: "opentofu";
|
|
2404
|
+
pre_commit: "pre_commit";
|
|
2391
2405
|
}>;
|
|
2392
2406
|
}, z.core.$strip>>>;
|
|
2393
2407
|
resolved: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -2427,6 +2441,7 @@ declare const DependabotDependencySubmissionSchema: z.ZodObject<{
|
|
|
2427
2441
|
}, z.core.$strip>>;
|
|
2428
2442
|
}, z.core.$strip>>>;
|
|
2429
2443
|
}, z.core.$strip>;
|
|
2444
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2430
2445
|
}, z.core.$strip>;
|
|
2431
2446
|
type DependabotDependencySubmission = z.infer<typeof DependabotDependencySubmissionSchema>;
|
|
2432
2447
|
declare const DependabotCreatePullRequestSchema: z.ZodObject<{
|
|
@@ -2467,9 +2482,9 @@ declare const DependabotCreatePullRequestSchema: z.ZodObject<{
|
|
|
2467
2482
|
directory: z.ZodString;
|
|
2468
2483
|
name: z.ZodString;
|
|
2469
2484
|
operation: z.ZodEnum<{
|
|
2485
|
+
delete: "delete";
|
|
2470
2486
|
update: "update";
|
|
2471
2487
|
create: "create";
|
|
2472
|
-
delete: "delete";
|
|
2473
2488
|
}>;
|
|
2474
2489
|
support_file: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2475
2490
|
vendored_file: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -2503,9 +2518,9 @@ declare const DependabotUpdatePullRequestSchema: z.ZodObject<{
|
|
|
2503
2518
|
directory: z.ZodString;
|
|
2504
2519
|
name: z.ZodString;
|
|
2505
2520
|
operation: z.ZodEnum<{
|
|
2521
|
+
delete: "delete";
|
|
2506
2522
|
update: "update";
|
|
2507
2523
|
create: "create";
|
|
2508
|
-
delete: "delete";
|
|
2509
2524
|
}>;
|
|
2510
2525
|
support_file: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2511
2526
|
vendored_file: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -2661,6 +2676,7 @@ declare const DependabotRecordCooldownMetaSchema: z.ZodObject<{
|
|
|
2661
2676
|
julia: "julia";
|
|
2662
2677
|
bazel: "bazel";
|
|
2663
2678
|
opentofu: "opentofu";
|
|
2679
|
+
pre_commit: "pre_commit";
|
|
2664
2680
|
}>;
|
|
2665
2681
|
config: z.ZodObject<{
|
|
2666
2682
|
default_days: z.ZodNumber;
|
|
@@ -2694,10 +2710,10 @@ type DependabotMetric = z.infer<typeof DependabotMetricSchema>;
|
|
|
2694
2710
|
declare function normalizeFilePath(path: string): string;
|
|
2695
2711
|
declare function normalizeBranchName(branch: string): string;
|
|
2696
2712
|
declare function normalizeBranchName(branch?: string): string | undefined;
|
|
2697
|
-
declare function getDependencyNames(
|
|
2713
|
+
declare function getDependencyNames(pr: DependabotPersistedPr): string[];
|
|
2698
2714
|
declare function areEqual(a: string[], b: string[]): boolean;
|
|
2699
2715
|
declare function getPullRequestCloseReason(data: DependabotClosePullRequest): string | undefined;
|
|
2700
|
-
declare function
|
|
2716
|
+
declare function getPersistedPr(data: DependabotCreatePullRequest): DependabotPersistedPr;
|
|
2701
2717
|
declare function getPullRequestDescription({
|
|
2702
2718
|
packageManager,
|
|
2703
2719
|
body,
|
|
@@ -2709,6 +2725,74 @@ declare function getPullRequestDescription({
|
|
|
2709
2725
|
dependencies: DependabotDependency[];
|
|
2710
2726
|
maxDescriptionLength?: number;
|
|
2711
2727
|
}): string;
|
|
2728
|
+
/**
|
|
2729
|
+
* Determines if a new pull request should supersede an existing pull request.
|
|
2730
|
+
*
|
|
2731
|
+
* Follows GitHub Dependabot's superseding logic:
|
|
2732
|
+
* - **Grouped PRs**: Supersede if same group name AND any dependency version changed
|
|
2733
|
+
* - **Single dependency PRs**: Supersede if updating the exact same dependency with a different version
|
|
2734
|
+
* - **Different scopes**: PRs with different dependency sets don't supersede each other
|
|
2735
|
+
*
|
|
2736
|
+
* A new PR supersedes an old PR when:
|
|
2737
|
+
* 1. Both are for the same group (same `dependency-group-name`), OR
|
|
2738
|
+
* Both update the exact same set of dependencies (same dependency names)
|
|
2739
|
+
* 2. AND at least one dependency has a different version
|
|
2740
|
+
*
|
|
2741
|
+
* This prevents incorrect superseding when PRs update overlapping but different dependency sets.
|
|
2742
|
+
*
|
|
2743
|
+
* @param oldPr - The existing pull request's dependency data
|
|
2744
|
+
* @param newPr - The new pull request's dependency data
|
|
2745
|
+
* @returns `true` if the new PR should supersede the old PR, `false` otherwise
|
|
2746
|
+
*
|
|
2747
|
+
* @example
|
|
2748
|
+
* ```ts
|
|
2749
|
+
* // Single dependency - same dependency, different version: SUPERSEDE
|
|
2750
|
+
* const oldPr = {
|
|
2751
|
+
* 'dependency-group-name': null,
|
|
2752
|
+
* dependencies: [{ 'dependency-name': 'lodash', 'dependency-version': '4.17.20' }]
|
|
2753
|
+
* };
|
|
2754
|
+
* const newPr = {
|
|
2755
|
+
* 'dependency-group-name': null,
|
|
2756
|
+
* dependencies: [{ 'dependency-name': 'lodash', 'dependency-version': '4.17.21' }]
|
|
2757
|
+
* };
|
|
2758
|
+
* shouldSupersede(oldPr, newPr); // returns true
|
|
2759
|
+
* ```
|
|
2760
|
+
*
|
|
2761
|
+
* @example
|
|
2762
|
+
* ```ts
|
|
2763
|
+
* // Different dependency sets - overlap but different scope: DON'T SUPERSEDE
|
|
2764
|
+
* const oldPr = {
|
|
2765
|
+
* 'dependency-group-name': null,
|
|
2766
|
+
* dependencies: [
|
|
2767
|
+
* { 'dependency-name': 'lodash', 'dependency-version': '4.17.20' },
|
|
2768
|
+
* { 'dependency-name': 'express', 'dependency-version': '4.18.0' }
|
|
2769
|
+
* ]
|
|
2770
|
+
* };
|
|
2771
|
+
* const newPr = {
|
|
2772
|
+
* 'dependency-group-name': null,
|
|
2773
|
+
* dependencies: [
|
|
2774
|
+
* { 'dependency-name': 'lodash', 'dependency-version': '4.17.21' },
|
|
2775
|
+
* { 'dependency-name': 'react', 'dependency-version': '18.0.0' }
|
|
2776
|
+
* ]
|
|
2777
|
+
* };
|
|
2778
|
+
* shouldSupersede(oldPr, newPr); // returns false - different dependency sets
|
|
2779
|
+
* ```
|
|
2780
|
+
*
|
|
2781
|
+
* @example
|
|
2782
|
+
* ```ts
|
|
2783
|
+
* // Same group - version changed: SUPERSEDE
|
|
2784
|
+
* const oldPr = {
|
|
2785
|
+
* 'dependency-group-name': 'production',
|
|
2786
|
+
* dependencies: [{ 'dependency-name': 'lodash', 'dependency-version': '4.17.20' }]
|
|
2787
|
+
* };
|
|
2788
|
+
* const newPr = {
|
|
2789
|
+
* 'dependency-group-name': 'production',
|
|
2790
|
+
* dependencies: [{ 'dependency-name': 'lodash', 'dependency-version': '4.17.21' }]
|
|
2791
|
+
* };
|
|
2792
|
+
* shouldSupersede(oldPr, newPr); // returns true - same group, version changed
|
|
2793
|
+
* ```
|
|
2794
|
+
*/
|
|
2795
|
+
declare function shouldSupersede(oldPr: DependabotPersistedPr, newPr: DependabotPersistedPr): boolean;
|
|
2712
2796
|
//#endregion
|
|
2713
|
-
export {
|
|
2714
|
-
//# sourceMappingURL=
|
|
2797
|
+
export { createApiServerApp as $, DependabotProxyConfig as $t, DependabotMetricSchema as A, DependabotMultiEcosystemGroup as An, DependabotCredentialSchema as At, DependabotRecordUpdateJobUnknownErrorSchema as B, PackageEcosystemSchema as Bn, DependabotExperimentsSchema as Bt, DependabotIncrementMetric as C, DependabotConfigSchema as Cn, DependabotCommand as Ct, DependabotMarkAsProcessed as D, DependabotGroupSchema as Dn, DependabotCondition as Dt, DependabotJobErrorSchema as E, DependabotGroup as En, DependabotCommitOptionsSchema as Et, DependabotRecordEcosystemVersions as F, DependabotSchedule as Fn, DependabotExistingPr as Ft, DependabotUpdatePullRequest as G, parseUpdates as Gn, DependabotJobConfig as Gt, DependabotRecordUpdateJobWarningSchema as H, VersioningStrategySchema as Hn, DependabotGroupJobSchema as Ht, DependabotRecordEcosystemVersionsSchema as I, DependabotScheduleSchema as In, DependabotExistingPrDependency as It, DependabotRequest as J, convertPlaceholder as Jn, DependabotJobFileSchema as Jt, DependabotUpdatePullRequestSchema as K, validateConfiguration as Kn, DependabotJobConfigSchema as Kt, DependabotRecordUpdateJobError as L, DependabotUpdate as Ln, DependabotExistingPrDependencySchema as Lt, DependabotRecordCooldownMetaSchema as M, DependabotPullRequestBranchName as Mn, DependabotDependencySchema as Mt, DependabotRecordEcosystemMeta as N, DependabotRegistry as Nn, DependabotExistingGroupPr as Nt, DependabotMarkAsProcessedSchema as O, DependabotIgnoreCondition as On, DependabotConditionSchema as Ot, DependabotRecordEcosystemMetaSchema as P, DependabotRegistrySchema as Pn, DependabotExistingGroupPrSchema as Pt, DependabotTokenType as Q, GitAuthor as Qn, DependabotPersistedPrSchema as Qt, DependabotRecordUpdateJobErrorSchema as R, DependabotUpdateSchema as Rn, DependabotExistingPrSchema as Rt, DependabotEcosystemVersionManagerSchema as S, DependabotConfig as Sn, DependabotAllowedSchema as St, DependabotJobError as T, DependabotCooldownSchema as Tn, DependabotCommitOptions as Tt, DependabotUpdateDependencyList as U, parseDependabotConfig as Un, DependabotGroupRuleJob as Ut, DependabotRecordUpdateJobWarning as V, VersioningStrategy as Vn, DependabotGroupJob as Vt, DependabotUpdateDependencyListSchema as W, parseRegistries as Wn, DependabotGroupRuleJobSchema as Wt, DependabotRequestType as X, DEPENDABOT_DEFAULT_AUTHOR_EMAIL as Xn, DependabotPackageManagerSchema as Xt, DependabotRequestSchema as Y, extractPlaceholder as Yn, DependabotPackageManager as Yt, DependabotRequestTypeSchema as Z, DEPENDABOT_DEFAULT_AUTHOR_NAME as Zn, DependabotPersistedPr as Zt, DependabotDependencySubmission as _, CONFIG_FILE_PATHS_GITHUB as _n, sanitizeRef as _t, getPullRequestDescription as a, DependabotSecurityAdvisory as an, mapExperiments as at, DependabotEcosystemMetaSchema as b, DependabotCommitMessage as bn, DEPENDABOT_COMMANDS as bt, shouldSupersede as c, DependabotSourceProvider as cn, mapPackageEcosystemToPackageManager as ct, DependabotClosePullRequestReasonEnum as d, FetchedFiles as dn, mapVersionStrategyToRequirementsUpdateStrategy as dt, DependabotProxyConfigSchema as en, DependabotJobBuilder as et, DependabotClosePullRequestSchema as f, FileFetcherInput as fn, DEFAULT_EXPERIMENTS as ft, DependabotDependencyFileSchema as g, CONFIG_FILE_PATHS_AZURE as gn, getBranchNameForUpdate as gt, DependabotDependencyFile as h, CONFIG_FILE_NAMES as hn, makeDirectoryKey as ht, getPullRequestCloseReason as i, DependabotRequirementSourceSchema as in, mapCredentials as it, DependabotRecordCooldownMeta as j, DependabotMultiEcosystemGroupSchema as jn, DependabotDependency as jt, DependabotMetric as k, DependabotIgnoreConditionSchema as kn, DependabotCredential as kt, DependabotClosePullRequest as l, DependabotSourceProviderSchema as ln, mapSecurityAdvisories as lt, DependabotCreatePullRequestSchema as m, BETA_ECOSYSTEMS as mn, setExperiment as mt, getDependencyNames as n, DependabotRequirementSchema as nn, DependabotSourceInfo as nt, normalizeBranchName as o, DependabotSecurityAdvisorySchema as on, mapGroupsFromDependabotConfigToJobConfig as ot, DependabotCreatePullRequest as p, FileUpdaterInput as pn, parseExperiments as pt, CreateApiServerAppOptions as q, VariableFinderFn as qn, DependabotJobFile as qt, getPersistedPr as r, DependabotRequirementSource as rn, mapAllowedUpdatesFromDependabotConfigToJobConfig as rt, normalizeFilePath as s, DependabotSource as sn, mapIgnoreConditionsFromDependabotConfigToJobConfig as st, areEqual as t, DependabotRequirement as tn, DependabotJobBuilderOutput as tt, DependabotClosePullRequestReason as u, DependabotSourceSchema as un, mapSourceFromDependabotConfigToJobConfig as ut, DependabotDependencySubmissionSchema as v, DependabotAllowCondition as vn, CertificateAuthority as vt, DependabotIncrementMetricSchema as w, DependabotCooldown as wn, DependabotCommandSchema as wt, DependabotEcosystemVersionManager as x, DependabotCommitMessageSchema as xn, DependabotAllowed as xt, DependabotEcosystemMeta as y, DependabotAllowConditionSchema as yn, CertificateAuthoritySchema as yt, DependabotRecordUpdateJobUnknownError as z, PackageEcosystem as zn, DependabotExperiments as zt };
|
|
2798
|
+
//# sourceMappingURL=utils-CFTIkIwf.d.mts.map
|