@paklo/core 0.4.0 → 0.6.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/LICENSE +664 -21
- package/dist/azure/{index.d.ts → index.d.mts} +69 -37
- package/dist/azure/{index.js → index.mjs} +66 -10
- package/dist/azure/index.mjs.map +1 -0
- package/dist/dependabot/index.d.mts +3 -0
- package/dist/dependabot/index.mjs +6 -0
- package/dist/{dependabot-B5pw4XDa.js → dependabot-B3kgBX3l.mjs} +9 -16
- package/dist/dependabot-B3kgBX3l.mjs.map +1 -0
- package/dist/environment/{index.d.ts → index.d.mts} +1 -1
- package/dist/environment/{index.js → index.mjs} +1 -1
- package/dist/{environment-DX5CD-dD.js → environment-Bym4B757.mjs} +1 -1
- package/dist/environment-Bym4B757.mjs.map +1 -0
- package/dist/github/{index.d.ts → index.d.mts} +1 -1
- package/dist/github/{index.js → index.mjs} +4 -4
- package/dist/github/index.mjs.map +1 -0
- package/dist/http/{index.d.ts → index.d.mts} +2 -2
- package/dist/http/{index.js → index.mjs} +2 -2
- package/dist/{http-Be3uWaqn.js → http-CVZgS8c2.mjs} +2 -2
- package/dist/http-CVZgS8c2.mjs.map +1 -0
- package/dist/{index-VTX2ArLa.d.ts → index-CcnWCDDV.d.mts} +195 -49
- package/dist/{index-CYzMyUeu.d.ts → index-Z81896Ma.d.mts} +2 -2
- package/dist/{job-CxYcRj_D.js → job-N2pOBjBO.mjs} +64 -6
- package/dist/job-N2pOBjBO.mjs.map +1 -0
- package/dist/keygen.d.mts +38 -0
- package/dist/keygen.mjs +51 -0
- package/dist/keygen.mjs.map +1 -0
- package/dist/logger-SYCv5hwZ.mjs +14 -0
- package/dist/logger-SYCv5hwZ.mjs.map +1 -0
- package/dist/logger.d.mts +7 -0
- package/dist/logger.mjs +4 -0
- package/dist/shared-data/{index.d.ts → index.d.mts} +1 -1
- package/dist/shared-data/{index.js → index.mjs} +1 -1
- package/dist/shared-data/index.mjs.map +1 -0
- package/dist/{usage.d.ts → usage.d.mts} +7 -3
- package/dist/{usage.js → usage.mjs} +4 -4
- package/dist/usage.mjs.map +1 -0
- package/package.json +25 -21
- package/dist/azure/index.js.map +0 -1
- package/dist/dependabot/index.d.ts +0 -3
- package/dist/dependabot/index.js +0 -6
- package/dist/dependabot-B5pw4XDa.js.map +0 -1
- package/dist/environment-DX5CD-dD.js.map +0 -1
- package/dist/github/index.js.map +0 -1
- package/dist/http-Be3uWaqn.js.map +0 -1
- package/dist/job-CxYcRj_D.js.map +0 -1
- package/dist/logger-bWnHxtAf.js +0 -31
- package/dist/logger-bWnHxtAf.js.map +0 -1
- package/dist/logger.d.ts +0 -23
- package/dist/logger.js +0 -4
- package/dist/shared-data/index.js.map +0 -1
- package/dist/usage.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as SecurityVulnerability } from "./index-
|
|
2
|
-
import { z } from "zod
|
|
1
|
+
import { p as SecurityVulnerability } from "./index-Z81896Ma.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import { Hono } from "hono";
|
|
4
4
|
|
|
5
5
|
//#region src/dependabot/author.d.ts
|
|
@@ -113,11 +113,11 @@ type DependabotGroup = z.infer<typeof DependabotGroupSchema>;
|
|
|
113
113
|
declare const DependabotAllowConditionSchema: z.ZodObject<{
|
|
114
114
|
'dependency-name': z.ZodOptional<z.ZodString>;
|
|
115
115
|
'dependency-type': z.ZodOptional<z.ZodEnum<{
|
|
116
|
+
all: "all";
|
|
116
117
|
development: "development";
|
|
117
118
|
production: "production";
|
|
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";
|
|
@@ -135,7 +135,7 @@ declare const DependabotIgnoreConditionSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
135
135
|
}>>>;
|
|
136
136
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
137
137
|
type DependabotIgnoreCondition = z.infer<typeof DependabotIgnoreConditionSchema>;
|
|
138
|
-
declare const DependabotScheduleSchema: z.ZodObject<{
|
|
138
|
+
declare const DependabotScheduleSchema: z.ZodPipe<z.ZodObject<{
|
|
139
139
|
interval: z.ZodEnum<{
|
|
140
140
|
daily: "daily";
|
|
141
141
|
weekly: "weekly";
|
|
@@ -157,7 +157,19 @@ declare const DependabotScheduleSchema: z.ZodObject<{
|
|
|
157
157
|
time: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
158
158
|
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
159
159
|
cronjob: z.ZodOptional<z.ZodString>;
|
|
160
|
-
}, z.core.$strip
|
|
160
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
161
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
162
|
+
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
163
|
+
timezone: string;
|
|
164
|
+
time?: string | undefined;
|
|
165
|
+
cronjob?: string | undefined;
|
|
166
|
+
}, {
|
|
167
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
168
|
+
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
169
|
+
timezone: string;
|
|
170
|
+
time?: string | undefined;
|
|
171
|
+
cronjob?: string | undefined;
|
|
172
|
+
}>>;
|
|
161
173
|
type DependabotSchedule = z.infer<typeof DependabotScheduleSchema>;
|
|
162
174
|
declare const DependabotCommitMessageSchema: z.ZodObject<{
|
|
163
175
|
prefix: z.ZodOptional<z.ZodString>;
|
|
@@ -197,6 +209,8 @@ declare const PackageEcosystemSchema: z.ZodEnum<{
|
|
|
197
209
|
vcpkg: "vcpkg";
|
|
198
210
|
helm: "helm";
|
|
199
211
|
julia: "julia";
|
|
212
|
+
bazel: "bazel";
|
|
213
|
+
opentofu: "opentofu";
|
|
200
214
|
"docker-compose": "docker-compose";
|
|
201
215
|
"dotnet-sdk": "dotnet-sdk";
|
|
202
216
|
mix: "mix";
|
|
@@ -213,10 +227,10 @@ declare const PackageEcosystemSchema: z.ZodEnum<{
|
|
|
213
227
|
}>;
|
|
214
228
|
type PackageEcosystem = z.infer<typeof PackageEcosystemSchema>;
|
|
215
229
|
declare const VersioningStrategySchema: z.ZodEnum<{
|
|
230
|
+
"lockfile-only": "lockfile-only";
|
|
216
231
|
auto: "auto";
|
|
217
232
|
increase: "increase";
|
|
218
233
|
"increase-if-necessary": "increase-if-necessary";
|
|
219
|
-
"lockfile-only": "lockfile-only";
|
|
220
234
|
widen: "widen";
|
|
221
235
|
}>;
|
|
222
236
|
type VersioningStrategy = z.infer<typeof VersioningStrategySchema>;
|
|
@@ -240,6 +254,8 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
240
254
|
vcpkg: "vcpkg";
|
|
241
255
|
helm: "helm";
|
|
242
256
|
julia: "julia";
|
|
257
|
+
bazel: "bazel";
|
|
258
|
+
opentofu: "opentofu";
|
|
243
259
|
"docker-compose": "docker-compose";
|
|
244
260
|
"dotnet-sdk": "dotnet-sdk";
|
|
245
261
|
mix: "mix";
|
|
@@ -260,11 +276,11 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
260
276
|
allow: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
261
277
|
'dependency-name': z.ZodOptional<z.ZodString>;
|
|
262
278
|
'dependency-type': z.ZodOptional<z.ZodEnum<{
|
|
279
|
+
all: "all";
|
|
263
280
|
development: "development";
|
|
264
281
|
production: "production";
|
|
265
282
|
direct: "direct";
|
|
266
283
|
indirect: "indirect";
|
|
267
|
-
all: "all";
|
|
268
284
|
}>>;
|
|
269
285
|
'update-type': z.ZodOptional<z.ZodEnum<{
|
|
270
286
|
all: "all";
|
|
@@ -324,7 +340,7 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
324
340
|
}, z.core.$strip>>;
|
|
325
341
|
'rebase-strategy': z.ZodOptional<z.ZodString>;
|
|
326
342
|
registries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
327
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
343
|
+
schedule: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
328
344
|
interval: z.ZodEnum<{
|
|
329
345
|
daily: "daily";
|
|
330
346
|
weekly: "weekly";
|
|
@@ -346,26 +362,38 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
346
362
|
time: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
347
363
|
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
348
364
|
cronjob: z.ZodOptional<z.ZodString>;
|
|
349
|
-
}, z.core.$strip
|
|
365
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
366
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
367
|
+
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
368
|
+
timezone: string;
|
|
369
|
+
time?: string | undefined;
|
|
370
|
+
cronjob?: string | undefined;
|
|
371
|
+
}, {
|
|
372
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
373
|
+
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
374
|
+
timezone: string;
|
|
375
|
+
time?: string | undefined;
|
|
376
|
+
cronjob?: string | undefined;
|
|
377
|
+
}>>>;
|
|
350
378
|
'target-branch': z.ZodOptional<z.ZodString>;
|
|
351
379
|
vendor: z.ZodOptional<z.ZodBoolean>;
|
|
352
380
|
'versioning-strategy': z.ZodOptional<z.ZodEnum<{
|
|
381
|
+
"lockfile-only": "lockfile-only";
|
|
353
382
|
auto: "auto";
|
|
354
383
|
increase: "increase";
|
|
355
384
|
"increase-if-necessary": "increase-if-necessary";
|
|
356
|
-
"lockfile-only": "lockfile-only";
|
|
357
385
|
widen: "widen";
|
|
358
386
|
}>>;
|
|
359
387
|
patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
360
388
|
'multi-ecosystem-group': z.ZodOptional<z.ZodString>;
|
|
361
389
|
}, z.core.$strip>, z.ZodTransform<{
|
|
362
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
390
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "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";
|
|
363
391
|
directory?: string | undefined;
|
|
364
392
|
directories?: string[] | undefined;
|
|
365
393
|
'exclude-paths'?: string[] | undefined;
|
|
366
394
|
allow?: {
|
|
367
395
|
'dependency-name'?: string | undefined;
|
|
368
|
-
'dependency-type'?: "
|
|
396
|
+
'dependency-type'?: "all" | "development" | "production" | "direct" | "indirect" | undefined;
|
|
369
397
|
'update-type'?: "all" | "security" | undefined;
|
|
370
398
|
}[] | undefined;
|
|
371
399
|
assignees?: string[] | undefined;
|
|
@@ -413,17 +441,17 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
413
441
|
} | undefined;
|
|
414
442
|
'target-branch'?: string | undefined;
|
|
415
443
|
vendor?: boolean | undefined;
|
|
416
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
444
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
417
445
|
patterns?: string[] | undefined;
|
|
418
446
|
'multi-ecosystem-group'?: string | undefined;
|
|
419
447
|
}, {
|
|
420
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
448
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "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";
|
|
421
449
|
directory?: string | undefined;
|
|
422
450
|
directories?: string[] | undefined;
|
|
423
451
|
'exclude-paths'?: string[] | undefined;
|
|
424
452
|
allow?: {
|
|
425
453
|
'dependency-name'?: string | undefined;
|
|
426
|
-
'dependency-type'?: "
|
|
454
|
+
'dependency-type'?: "all" | "development" | "production" | "direct" | "indirect" | undefined;
|
|
427
455
|
'update-type'?: "all" | "security" | undefined;
|
|
428
456
|
}[] | undefined;
|
|
429
457
|
assignees?: string[] | undefined;
|
|
@@ -471,13 +499,13 @@ declare const DependabotUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
471
499
|
} | undefined;
|
|
472
500
|
'target-branch'?: string | undefined;
|
|
473
501
|
vendor?: boolean | undefined;
|
|
474
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
502
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
475
503
|
patterns?: string[] | undefined;
|
|
476
504
|
'multi-ecosystem-group'?: string | undefined;
|
|
477
505
|
}>>;
|
|
478
506
|
type DependabotUpdate = z.infer<typeof DependabotUpdateSchema>;
|
|
479
507
|
declare const DependabotMultiEcosystemGroupSchema: z.ZodObject<{
|
|
480
|
-
schedule: z.ZodObject<{
|
|
508
|
+
schedule: z.ZodPipe<z.ZodObject<{
|
|
481
509
|
interval: z.ZodEnum<{
|
|
482
510
|
daily: "daily";
|
|
483
511
|
weekly: "weekly";
|
|
@@ -499,7 +527,19 @@ declare const DependabotMultiEcosystemGroupSchema: z.ZodObject<{
|
|
|
499
527
|
time: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
500
528
|
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
501
529
|
cronjob: z.ZodOptional<z.ZodString>;
|
|
502
|
-
}, z.core.$strip
|
|
530
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
531
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
532
|
+
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
533
|
+
timezone: string;
|
|
534
|
+
time?: string | undefined;
|
|
535
|
+
cronjob?: string | undefined;
|
|
536
|
+
}, {
|
|
537
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
538
|
+
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
539
|
+
timezone: string;
|
|
540
|
+
time?: string | undefined;
|
|
541
|
+
cronjob?: string | undefined;
|
|
542
|
+
}>>;
|
|
503
543
|
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
504
544
|
milestone: z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
505
545
|
assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -521,7 +561,7 @@ type DependabotMultiEcosystemGroup = z.infer<typeof DependabotMultiEcosystemGrou
|
|
|
521
561
|
declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
522
562
|
version: z.ZodNumber;
|
|
523
563
|
'multi-ecosystem-groups': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
524
|
-
schedule: z.ZodObject<{
|
|
564
|
+
schedule: z.ZodPipe<z.ZodObject<{
|
|
525
565
|
interval: z.ZodEnum<{
|
|
526
566
|
daily: "daily";
|
|
527
567
|
weekly: "weekly";
|
|
@@ -543,7 +583,19 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
543
583
|
time: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
544
584
|
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
545
585
|
cronjob: z.ZodOptional<z.ZodString>;
|
|
546
|
-
}, z.core.$strip
|
|
586
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
587
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
588
|
+
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
589
|
+
timezone: string;
|
|
590
|
+
time?: string | undefined;
|
|
591
|
+
cronjob?: string | undefined;
|
|
592
|
+
}, {
|
|
593
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
594
|
+
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
595
|
+
timezone: string;
|
|
596
|
+
time?: string | undefined;
|
|
597
|
+
cronjob?: string | undefined;
|
|
598
|
+
}>>;
|
|
547
599
|
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
548
600
|
milestone: z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
549
601
|
assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -577,6 +629,8 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
577
629
|
vcpkg: "vcpkg";
|
|
578
630
|
helm: "helm";
|
|
579
631
|
julia: "julia";
|
|
632
|
+
bazel: "bazel";
|
|
633
|
+
opentofu: "opentofu";
|
|
580
634
|
"docker-compose": "docker-compose";
|
|
581
635
|
"dotnet-sdk": "dotnet-sdk";
|
|
582
636
|
mix: "mix";
|
|
@@ -597,11 +651,11 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
597
651
|
allow: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
598
652
|
'dependency-name': z.ZodOptional<z.ZodString>;
|
|
599
653
|
'dependency-type': z.ZodOptional<z.ZodEnum<{
|
|
654
|
+
all: "all";
|
|
600
655
|
development: "development";
|
|
601
656
|
production: "production";
|
|
602
657
|
direct: "direct";
|
|
603
658
|
indirect: "indirect";
|
|
604
|
-
all: "all";
|
|
605
659
|
}>>;
|
|
606
660
|
'update-type': z.ZodOptional<z.ZodEnum<{
|
|
607
661
|
all: "all";
|
|
@@ -661,7 +715,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
661
715
|
}, z.core.$strip>>;
|
|
662
716
|
'rebase-strategy': z.ZodOptional<z.ZodString>;
|
|
663
717
|
registries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
664
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
718
|
+
schedule: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
665
719
|
interval: z.ZodEnum<{
|
|
666
720
|
daily: "daily";
|
|
667
721
|
weekly: "weekly";
|
|
@@ -683,26 +737,38 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
683
737
|
time: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
684
738
|
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
685
739
|
cronjob: z.ZodOptional<z.ZodString>;
|
|
686
|
-
}, z.core.$strip
|
|
740
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
741
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
742
|
+
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
743
|
+
timezone: string;
|
|
744
|
+
time?: string | undefined;
|
|
745
|
+
cronjob?: string | undefined;
|
|
746
|
+
}, {
|
|
747
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "semiannually" | "yearly" | "cron";
|
|
748
|
+
day: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
749
|
+
timezone: string;
|
|
750
|
+
time?: string | undefined;
|
|
751
|
+
cronjob?: string | undefined;
|
|
752
|
+
}>>>;
|
|
687
753
|
'target-branch': z.ZodOptional<z.ZodString>;
|
|
688
754
|
vendor: z.ZodOptional<z.ZodBoolean>;
|
|
689
755
|
'versioning-strategy': z.ZodOptional<z.ZodEnum<{
|
|
756
|
+
"lockfile-only": "lockfile-only";
|
|
690
757
|
auto: "auto";
|
|
691
758
|
increase: "increase";
|
|
692
759
|
"increase-if-necessary": "increase-if-necessary";
|
|
693
|
-
"lockfile-only": "lockfile-only";
|
|
694
760
|
widen: "widen";
|
|
695
761
|
}>>;
|
|
696
762
|
patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
697
763
|
'multi-ecosystem-group': z.ZodOptional<z.ZodString>;
|
|
698
764
|
}, z.core.$strip>, z.ZodTransform<{
|
|
699
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
765
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "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";
|
|
700
766
|
directory?: string | undefined;
|
|
701
767
|
directories?: string[] | undefined;
|
|
702
768
|
'exclude-paths'?: string[] | undefined;
|
|
703
769
|
allow?: {
|
|
704
770
|
'dependency-name'?: string | undefined;
|
|
705
|
-
'dependency-type'?: "
|
|
771
|
+
'dependency-type'?: "all" | "development" | "production" | "direct" | "indirect" | undefined;
|
|
706
772
|
'update-type'?: "all" | "security" | undefined;
|
|
707
773
|
}[] | undefined;
|
|
708
774
|
assignees?: string[] | undefined;
|
|
@@ -750,17 +816,17 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
750
816
|
} | undefined;
|
|
751
817
|
'target-branch'?: string | undefined;
|
|
752
818
|
vendor?: boolean | undefined;
|
|
753
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
819
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
754
820
|
patterns?: string[] | undefined;
|
|
755
821
|
'multi-ecosystem-group'?: string | undefined;
|
|
756
822
|
}, {
|
|
757
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
823
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "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";
|
|
758
824
|
directory?: string | undefined;
|
|
759
825
|
directories?: string[] | undefined;
|
|
760
826
|
'exclude-paths'?: string[] | undefined;
|
|
761
827
|
allow?: {
|
|
762
828
|
'dependency-name'?: string | undefined;
|
|
763
|
-
'dependency-type'?: "
|
|
829
|
+
'dependency-type'?: "all" | "development" | "production" | "direct" | "indirect" | undefined;
|
|
764
830
|
'update-type'?: "all" | "security" | undefined;
|
|
765
831
|
}[] | undefined;
|
|
766
832
|
assignees?: string[] | undefined;
|
|
@@ -808,7 +874,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
808
874
|
} | undefined;
|
|
809
875
|
'target-branch'?: string | undefined;
|
|
810
876
|
vendor?: boolean | undefined;
|
|
811
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
877
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
812
878
|
patterns?: string[] | undefined;
|
|
813
879
|
'multi-ecosystem-group'?: string | undefined;
|
|
814
880
|
}>>>;
|
|
@@ -884,13 +950,13 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
884
950
|
}, z.core.$strip>, z.ZodTransform<{
|
|
885
951
|
version: number;
|
|
886
952
|
updates: {
|
|
887
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
953
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "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";
|
|
888
954
|
directory?: string | undefined;
|
|
889
955
|
directories?: string[] | undefined;
|
|
890
956
|
'exclude-paths'?: string[] | undefined;
|
|
891
957
|
allow?: {
|
|
892
958
|
'dependency-name'?: string | undefined;
|
|
893
|
-
'dependency-type'?: "
|
|
959
|
+
'dependency-type'?: "all" | "development" | "production" | "direct" | "indirect" | undefined;
|
|
894
960
|
'update-type'?: "all" | "security" | undefined;
|
|
895
961
|
}[] | undefined;
|
|
896
962
|
assignees?: string[] | undefined;
|
|
@@ -938,7 +1004,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
938
1004
|
} | undefined;
|
|
939
1005
|
'target-branch'?: string | undefined;
|
|
940
1006
|
vendor?: boolean | undefined;
|
|
941
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
1007
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
942
1008
|
patterns?: string[] | undefined;
|
|
943
1009
|
'multi-ecosystem-group'?: string | undefined;
|
|
944
1010
|
}[];
|
|
@@ -985,13 +1051,13 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
985
1051
|
}, {
|
|
986
1052
|
version: number;
|
|
987
1053
|
updates: {
|
|
988
|
-
'package-ecosystem': "bundler" | "cargo" | "composer" | "pub" | "docker" | "elm" | "gradle" | "maven" | "nuget" | "pip" | "swift" | "terraform" | "devcontainers" | "bun" | "uv" | "vcpkg" | "helm" | "julia" | "docker-compose" | "dotnet-sdk" | "mix" | "gitsubmodule" | "github-actions" | "gomod" | "npm" | "pip-compile" | "pipenv" | "pnpm" | "poetry" | "rust-toolchain" | "yarn";
|
|
1054
|
+
'package-ecosystem': "bundler" | "cargo" | "composer" | "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";
|
|
989
1055
|
directory?: string | undefined;
|
|
990
1056
|
directories?: string[] | undefined;
|
|
991
1057
|
'exclude-paths'?: string[] | undefined;
|
|
992
1058
|
allow?: {
|
|
993
1059
|
'dependency-name'?: string | undefined;
|
|
994
|
-
'dependency-type'?: "
|
|
1060
|
+
'dependency-type'?: "all" | "development" | "production" | "direct" | "indirect" | undefined;
|
|
995
1061
|
'update-type'?: "all" | "security" | undefined;
|
|
996
1062
|
}[] | undefined;
|
|
997
1063
|
assignees?: string[] | undefined;
|
|
@@ -1039,7 +1105,7 @@ declare const DependabotConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1039
1105
|
} | undefined;
|
|
1040
1106
|
'target-branch'?: string | undefined;
|
|
1041
1107
|
vendor?: boolean | undefined;
|
|
1042
|
-
'versioning-strategy'?: "auto" | "increase" | "increase-if-necessary" | "
|
|
1108
|
+
'versioning-strategy'?: "lockfile-only" | "auto" | "increase" | "increase-if-necessary" | "widen" | undefined;
|
|
1043
1109
|
patterns?: string[] | undefined;
|
|
1044
1110
|
'multi-ecosystem-group'?: string | undefined;
|
|
1045
1111
|
}[];
|
|
@@ -1125,11 +1191,15 @@ declare const DependabotProxyConfigSchema: z.ZodObject<{
|
|
|
1125
1191
|
type DependabotProxyConfig = z.infer<typeof DependabotProxyConfigSchema>;
|
|
1126
1192
|
declare const DependabotSourceProviderSchema: z.ZodEnum<{
|
|
1127
1193
|
azure: "azure";
|
|
1194
|
+
gitlab: "gitlab";
|
|
1195
|
+
bitbucket: "bitbucket";
|
|
1128
1196
|
}>;
|
|
1129
1197
|
type DependabotSourceProvider = z.infer<typeof DependabotSourceProviderSchema>;
|
|
1130
1198
|
declare const DependabotSourceSchema: z.ZodObject<{
|
|
1131
1199
|
provider: z.ZodEnum<{
|
|
1132
1200
|
azure: "azure";
|
|
1201
|
+
gitlab: "gitlab";
|
|
1202
|
+
bitbucket: "bitbucket";
|
|
1133
1203
|
}>;
|
|
1134
1204
|
repo: z.ZodString;
|
|
1135
1205
|
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1272,6 +1342,8 @@ declare const DependabotPackageManagerSchema: z.ZodEnum<{
|
|
|
1272
1342
|
vcpkg: "vcpkg";
|
|
1273
1343
|
helm: "helm";
|
|
1274
1344
|
julia: "julia";
|
|
1345
|
+
bazel: "bazel";
|
|
1346
|
+
opentofu: "opentofu";
|
|
1275
1347
|
}>;
|
|
1276
1348
|
type DependabotPackageManager = z.infer<typeof DependabotPackageManagerSchema>;
|
|
1277
1349
|
declare const DependabotCommandSchema: z.ZodEnum<{
|
|
@@ -1281,7 +1353,7 @@ declare const DependabotCommandSchema: z.ZodEnum<{
|
|
|
1281
1353
|
}>;
|
|
1282
1354
|
type DependabotCommand = z.infer<typeof DependabotCommandSchema>;
|
|
1283
1355
|
declare const DependabotJobConfigSchema: z.ZodObject<{
|
|
1284
|
-
id: z.
|
|
1356
|
+
id: z.ZodString;
|
|
1285
1357
|
command: z.ZodOptional<z.ZodEnum<{
|
|
1286
1358
|
version: "version";
|
|
1287
1359
|
graph: "graph";
|
|
@@ -1314,6 +1386,8 @@ declare const DependabotJobConfigSchema: z.ZodObject<{
|
|
|
1314
1386
|
vcpkg: "vcpkg";
|
|
1315
1387
|
helm: "helm";
|
|
1316
1388
|
julia: "julia";
|
|
1389
|
+
bazel: "bazel";
|
|
1390
|
+
opentofu: "opentofu";
|
|
1317
1391
|
}>;
|
|
1318
1392
|
'allowed-updates': z.ZodArray<z.ZodObject<{
|
|
1319
1393
|
'dependency-name': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1371,6 +1445,8 @@ declare const DependabotJobConfigSchema: z.ZodObject<{
|
|
|
1371
1445
|
source: z.ZodObject<{
|
|
1372
1446
|
provider: z.ZodEnum<{
|
|
1373
1447
|
azure: "azure";
|
|
1448
|
+
gitlab: "gitlab";
|
|
1449
|
+
bitbucket: "bitbucket";
|
|
1374
1450
|
}>;
|
|
1375
1451
|
repo: z.ZodString;
|
|
1376
1452
|
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1408,7 +1484,7 @@ declare const DependabotJobConfigSchema: z.ZodObject<{
|
|
|
1408
1484
|
type DependabotJobConfig = z.infer<typeof DependabotJobConfigSchema>;
|
|
1409
1485
|
declare const DependabotJobFileSchema: z.ZodObject<{
|
|
1410
1486
|
job: z.ZodObject<{
|
|
1411
|
-
id: z.
|
|
1487
|
+
id: z.ZodString;
|
|
1412
1488
|
command: z.ZodOptional<z.ZodEnum<{
|
|
1413
1489
|
version: "version";
|
|
1414
1490
|
graph: "graph";
|
|
@@ -1441,6 +1517,8 @@ declare const DependabotJobFileSchema: z.ZodObject<{
|
|
|
1441
1517
|
vcpkg: "vcpkg";
|
|
1442
1518
|
helm: "helm";
|
|
1443
1519
|
julia: "julia";
|
|
1520
|
+
bazel: "bazel";
|
|
1521
|
+
opentofu: "opentofu";
|
|
1444
1522
|
}>;
|
|
1445
1523
|
'allowed-updates': z.ZodArray<z.ZodObject<{
|
|
1446
1524
|
'dependency-name': z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1498,6 +1576,8 @@ declare const DependabotJobFileSchema: z.ZodObject<{
|
|
|
1498
1576
|
source: z.ZodObject<{
|
|
1499
1577
|
provider: z.ZodEnum<{
|
|
1500
1578
|
azure: "azure";
|
|
1579
|
+
gitlab: "gitlab";
|
|
1580
|
+
bitbucket: "bitbucket";
|
|
1501
1581
|
}>;
|
|
1502
1582
|
repo: z.ZodString;
|
|
1503
1583
|
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1550,6 +1630,62 @@ type FileUpdaterInput = FetchedFiles & {
|
|
|
1550
1630
|
declare function getBranchNameForUpdate(packageEcosystem: PackageEcosystem, targetBranchName: string | undefined, directory: string | undefined, dependencyGroupName: string | undefined, dependencies: DependabotExistingPR[], separator?: string): string;
|
|
1551
1631
|
declare function sanitizeRef(refParts: (string | undefined)[], separator: string): string;
|
|
1552
1632
|
//#endregion
|
|
1633
|
+
//#region src/dependabot/directory-key.d.ts
|
|
1634
|
+
/**
|
|
1635
|
+
* Options for creating a directory key that supports both naming conventions:
|
|
1636
|
+
* - `ecosystem` (standard format)
|
|
1637
|
+
* - `package-ecosystem` (alternative format for compatibility)
|
|
1638
|
+
*
|
|
1639
|
+
* Either a single `directory` or multiple `directories` can be specified.
|
|
1640
|
+
*/
|
|
1641
|
+
type MakeDirectoryKeyOptions = {
|
|
1642
|
+
/** The package ecosystem (e.g., 'npm', 'pip', 'bundler') */
|
|
1643
|
+
ecosystem: string;
|
|
1644
|
+
/** Single directory path (optional if directories is provided) */
|
|
1645
|
+
directory?: string | null;
|
|
1646
|
+
/** Multiple directory paths (optional if directory is provided) */
|
|
1647
|
+
directories?: string[];
|
|
1648
|
+
} | {
|
|
1649
|
+
/** The package ecosystem using alternative naming convention */
|
|
1650
|
+
'package-ecosystem': string;
|
|
1651
|
+
/** Single directory path (optional if directories is provided) */
|
|
1652
|
+
directory?: string | null;
|
|
1653
|
+
/** Multiple directory paths (optional if directory is provided) */
|
|
1654
|
+
directories?: string[];
|
|
1655
|
+
};
|
|
1656
|
+
/**
|
|
1657
|
+
* Creates a unique directory key by combining the ecosystem and directory information.
|
|
1658
|
+
*
|
|
1659
|
+
* The key format is: `{ecosystem}::{directory_info}`
|
|
1660
|
+
* - For single directory: `npm::/src/frontend`
|
|
1661
|
+
* - For multiple directories: `npm::/src/frontend,/src/backend`
|
|
1662
|
+
*
|
|
1663
|
+
* @param options - Configuration object containing ecosystem and directory information
|
|
1664
|
+
* @returns A unique string key in the format `{ecosystem}::{directories}`
|
|
1665
|
+
*
|
|
1666
|
+
* @example
|
|
1667
|
+
* ```typescript
|
|
1668
|
+
* // Single directory
|
|
1669
|
+
* const key1 = makeDirectoryKey({ ecosystem: 'npm', directory: '/src' });
|
|
1670
|
+
* // Returns: "npm::/src"
|
|
1671
|
+
*
|
|
1672
|
+
* // Multiple directories
|
|
1673
|
+
* const key2 = makeDirectoryKey({
|
|
1674
|
+
* ecosystem: 'pip',
|
|
1675
|
+
* directories: ['/backend', '/scripts']
|
|
1676
|
+
* });
|
|
1677
|
+
* // Returns: "pip::/backend,/scripts"
|
|
1678
|
+
*
|
|
1679
|
+
* // Using alternative naming convention
|
|
1680
|
+
* const key3 = makeDirectoryKey({
|
|
1681
|
+
* 'package-ecosystem': 'bundler',
|
|
1682
|
+
* directory: '/app'
|
|
1683
|
+
* });
|
|
1684
|
+
* // Returns: "bundler::/app"
|
|
1685
|
+
* ```
|
|
1686
|
+
*/
|
|
1687
|
+
declare function makeDirectoryKey(options: MakeDirectoryKeyOptions): string;
|
|
1688
|
+
//#endregion
|
|
1553
1689
|
//#region src/dependabot/experiments.d.ts
|
|
1554
1690
|
declare const DEFAULT_EXPERIMENTS: DependabotExperiments;
|
|
1555
1691
|
/**
|
|
@@ -1567,7 +1703,6 @@ type DependabotSourceInfo = {
|
|
|
1567
1703
|
'repository-slug': string;
|
|
1568
1704
|
};
|
|
1569
1705
|
type DependabotJobBuilderOutput = {
|
|
1570
|
-
jobId: number;
|
|
1571
1706
|
job: DependabotJobConfig;
|
|
1572
1707
|
credentials: DependabotCredential[];
|
|
1573
1708
|
};
|
|
@@ -1609,7 +1744,7 @@ declare class DependabotJobBuilder {
|
|
|
1609
1744
|
id,
|
|
1610
1745
|
command
|
|
1611
1746
|
}: {
|
|
1612
|
-
id?:
|
|
1747
|
+
id?: string;
|
|
1613
1748
|
command: DependabotJobConfig['command'];
|
|
1614
1749
|
}): DependabotJobBuilderOutput;
|
|
1615
1750
|
/**
|
|
@@ -1623,7 +1758,7 @@ declare class DependabotJobBuilder {
|
|
|
1623
1758
|
pullRequestToUpdate,
|
|
1624
1759
|
securityVulnerabilities
|
|
1625
1760
|
}: {
|
|
1626
|
-
id?:
|
|
1761
|
+
id?: string;
|
|
1627
1762
|
command: DependabotJobConfig['command'];
|
|
1628
1763
|
dependencyNamesToUpdate?: string[];
|
|
1629
1764
|
existingPullRequests: (DependabotExistingPR[] | DependabotExistingGroupPR)[];
|
|
@@ -1652,8 +1787,7 @@ declare function mapCredentials({
|
|
|
1652
1787
|
githubToken?: string;
|
|
1653
1788
|
registries?: Record<string, DependabotRegistry>;
|
|
1654
1789
|
}): DependabotCredential[];
|
|
1655
|
-
declare function makeRandomJobId():
|
|
1656
|
-
declare function makeRandomJobToken(): string;
|
|
1790
|
+
declare function makeRandomJobId(): string;
|
|
1657
1791
|
//#endregion
|
|
1658
1792
|
//#region src/dependabot/server.d.ts
|
|
1659
1793
|
declare const DependabotRequestTypeSchema: z.ZodEnum<{
|
|
@@ -1845,14 +1979,26 @@ type DependabotTokenType = 'job' | 'credentials';
|
|
|
1845
1979
|
* @param value - The authentication value (e.g., API key).
|
|
1846
1980
|
* @returns A promise that resolves to a boolean indicating whether the authentication was successful.
|
|
1847
1981
|
*/
|
|
1848
|
-
type AuthenticatorFunc = (type: DependabotTokenType, id:
|
|
1982
|
+
type AuthenticatorFunc = (type: DependabotTokenType, id: string, value: string) => Promise<boolean>;
|
|
1849
1983
|
/**
|
|
1850
1984
|
* Handler function for processing dependabot requests.
|
|
1851
1985
|
* @param id - The ID of the dependabot job.
|
|
1852
1986
|
* @param request - The dependabot request to handle.
|
|
1853
1987
|
* @returns A promise that resolves to the result of handling the request.
|
|
1854
1988
|
*/
|
|
1855
|
-
type HandlerFunc = (id:
|
|
1989
|
+
type HandlerFunc = (id: string, request: DependabotRequest) => Promise<boolean>;
|
|
1990
|
+
/**
|
|
1991
|
+
* Function for getting a dependabot job config by ID.
|
|
1992
|
+
* @param id - The ID of the dependabot job.
|
|
1993
|
+
* @returns A promise that resolves to the dependabot job config, or undefined if not found.
|
|
1994
|
+
*/
|
|
1995
|
+
type GetJobFunc = (id: string) => Promise<DependabotJobConfig | undefined>;
|
|
1996
|
+
/**
|
|
1997
|
+
* Function for getting dependabot credentials by job ID.
|
|
1998
|
+
* @param id - The ID of the dependabot job.
|
|
1999
|
+
* @returns A promise that resolves to an array of dependabot credentials, or undefined if not found.
|
|
2000
|
+
*/
|
|
2001
|
+
type GetCredentialsFunc = (id: string) => Promise<DependabotCredential[] | undefined>;
|
|
1856
2002
|
type CreateApiServerAppOptions = {
|
|
1857
2003
|
/**
|
|
1858
2004
|
* Base path for the endpoints.
|
|
@@ -1862,9 +2008,9 @@ type CreateApiServerAppOptions = {
|
|
|
1862
2008
|
/** Handler function for authenticating requests. */
|
|
1863
2009
|
authenticate: AuthenticatorFunc;
|
|
1864
2010
|
/** Function for getting a dependabot job by ID. */
|
|
1865
|
-
getJob:
|
|
2011
|
+
getJob: GetJobFunc;
|
|
1866
2012
|
/** Function for getting dependabot credentials by job ID. */
|
|
1867
|
-
getCredentials:
|
|
2013
|
+
getCredentials: GetCredentialsFunc;
|
|
1868
2014
|
/** Handler function for processing the operations. */
|
|
1869
2015
|
handle: HandlerFunc;
|
|
1870
2016
|
};
|
|
@@ -2080,5 +2226,5 @@ declare const DependabotMetricSchema: z.ZodObject<{
|
|
|
2080
2226
|
}, z.core.$strip>;
|
|
2081
2227
|
type DependabotMetric = z.infer<typeof DependabotMetricSchema>;
|
|
2082
2228
|
//#endregion
|
|
2083
|
-
export { sanitizeRef as $, DependabotGroup as $t, DependabotRequest as A, DependabotProxyConfig as At,
|
|
2084
|
-
//# sourceMappingURL=index-
|
|
2229
|
+
export { sanitizeRef as $, DependabotGroup as $t, DependabotRequest as A, DependabotProxyConfig as At, mapAllowedUpdatesFromDependabotConfigToJobConfig as B, DependabotSourceProviderSchema as Bt, DependabotRecordUpdateJobUnknownError as C, extractPlaceholder as Cn, DependabotGroupRuleJobSchema as Ct, DependabotUpdatePullRequest as D, DependabotJobFileSchema as Dt, DependabotUpdateDependencyListSchema as E, GitAuthor as En, DependabotJobFile as Et, createApiServerApp as F, DependabotRequirementSourceSchema as Ft, mapPackageEcosystemToPackageManager as G, DependabotAllowCondition as Gt, mapExperiments as H, FetchedFiles as Ht, DependabotJobBuilder as I, DependabotSecurityAdvisory as It, mapVersionStrategyToRequirementsUpdateStrategy as J, DependabotCommitMessageSchema as Jt, mapSecurityAdvisories as K, DependabotAllowConditionSchema as Kt, DependabotJobBuilderOutput as L, DependabotSecurityAdvisorySchema as Lt, DependabotRequestType as M, DependabotRequirement as Mt, DependabotRequestTypeSchema as N, DependabotRequirementSchema as Nt, DependabotUpdatePullRequestSchema as O, DependabotPackageManager as Ot, DependabotTokenType as P, DependabotRequirementSource as Pt, getBranchNameForUpdate as Q, DependabotCooldownSchema as Qt, DependabotSourceInfo as R, DependabotSource as Rt, DependabotRecordUpdateJobErrorSchema as S, convertPlaceholder as Sn, DependabotGroupRuleJob as St, DependabotUpdateDependencyList as T, DEPENDABOT_DEFAULT_AUTHOR_NAME as Tn, DependabotJobConfigSchema as Tt, mapGroupsFromDependabotConfigToJobConfig as U, FileFetcherInput as Ut, mapCredentials as V, DependabotSourceSchema as Vt, mapIgnoreConditionsFromDependabotConfigToJobConfig as W, FileUpdaterInput as Wt, parseExperiments as X, DependabotConfigSchema as Xt, DEFAULT_EXPERIMENTS as Y, DependabotConfig as Yt, makeDirectoryKey as Z, DependabotCooldown as Zt, DependabotRecordEcosystemMeta as _, parseDependabotConfig as _n, DependabotExistingPRSchema as _t, DependabotDependencyFile as a, DependabotPullRequestBranchName as an, DependabotCommandSchema as at, DependabotRecordEcosystemVersionsSchema as b, validateConfiguration as bn, DependabotGroupJob as bt, DependabotEcosystemMetaSchema as c, DependabotSchedule as cn, DependabotCondition as ct, DependabotIncrementMetric as d, DependabotUpdateSchema as dn, DependabotCredentialSchema as dt, DependabotGroupSchema as en, CertificateAuthority as et, DependabotIncrementMetricSchema as f, POSSIBLE_CONFIG_FILE_PATHS as fn, DependabotDependency as ft, DependabotMetricSchema as g, VersioningStrategySchema as gn, DependabotExistingPR as gt, DependabotMetric as h, VersioningStrategy as hn, DependabotExistingGroupPRSchema as ht, DependabotCreatePullRequestSchema as i, DependabotMultiEcosystemGroupSchema as in, DependabotCommand as it, DependabotRequestSchema as j, DependabotProxyConfigSchema as jt, CreateApiServerAppOptions as k, DependabotPackageManagerSchema as kt, DependabotEcosystemVersionManager as l, DependabotScheduleSchema as ln, DependabotConditionSchema as lt, DependabotMarkAsProcessedSchema as m, PackageEcosystemSchema as mn, DependabotExistingGroupPR as mt, DependabotClosePullRequestSchema as n, DependabotIgnoreConditionSchema as nn, DependabotAllowed as nt, DependabotDependencyFileSchema as o, DependabotRegistry as on, DependabotCommitOptions as ot, DependabotMarkAsProcessed as p, PackageEcosystem as pn, DependabotDependencySchema as pt, mapSourceFromDependabotConfigToJobConfig as q, DependabotCommitMessage as qt, DependabotCreatePullRequest as r, DependabotMultiEcosystemGroup as rn, DependabotAllowedSchema as rt, DependabotEcosystemMeta as s, DependabotRegistrySchema as sn, DependabotCommitOptionsSchema as st, DependabotClosePullRequest as t, DependabotIgnoreCondition as tn, CertificateAuthoritySchema as tt, DependabotEcosystemVersionManagerSchema as u, DependabotUpdate as un, DependabotCredential as ut, DependabotRecordEcosystemMetaSchema as v, parseRegistries as vn, DependabotExperiments as vt, DependabotRecordUpdateJobUnknownErrorSchema as w, DEPENDABOT_DEFAULT_AUTHOR_EMAIL as wn, DependabotJobConfig as wt, DependabotRecordUpdateJobError as x, VariableFinderFn as xn, DependabotGroupJobSchema as xt, DependabotRecordEcosystemVersions as y, parseUpdates as yn, DependabotExperimentsSchema as yt, makeRandomJobId as z, DependabotSourceProvider as zt };
|
|
2230
|
+
//# sourceMappingURL=index-CcnWCDDV.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
import { Octokit } from "octokit";
|
|
3
3
|
|
|
4
4
|
//#region src/github/client.d.ts
|
|
@@ -166,4 +166,4 @@ declare class GitHubSecurityAdvisoryClient {
|
|
|
166
166
|
declare function filterVulnerabilities(securityVulnerabilities: SecurityVulnerability[]): SecurityVulnerability[];
|
|
167
167
|
//#endregion
|
|
168
168
|
export { createGitHubClient as _, PackageEcosystemSchema as a, SecurityAdvisoryIdentifierSchema as c, SecurityAdvisorySeverity as d, SecurityAdvisorySeveritySchema as f, getGhsaPackageEcosystemFromDependabotPackageManager as g, filterVulnerabilities as h, PackageEcosystem as i, SecurityAdvisoryIdentifierType as l, SecurityVulnerabilitySchema as m, GitHubSecurityAdvisoryClient as n, PackageSchema as o, SecurityVulnerability as p, Package as r, SecurityAdvisory as s, FirstPatchedVersion as t, SecurityAdvisorySchema as u };
|
|
169
|
-
//# sourceMappingURL=index-
|
|
169
|
+
//# sourceMappingURL=index-Z81896Ma.d.mts.map
|