@kilnci/shared 0.25.0 → 0.43.1
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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pipeline/index.d.ts +307 -66
- package/dist/pipeline/index.d.ts.map +1 -1
- package/dist/pipeline/index.js +46 -0
- package/dist/pipeline/index.js.map +1 -1
- package/dist/providers/types.d.ts +55 -0
- package/dist/providers/types.d.ts.map +1 -1
- package/dist/providers/types.js.map +1 -1
- package/dist/triggers/index.d.ts +33 -3
- package/dist/triggers/index.d.ts.map +1 -1
- package/dist/triggers/index.js +52 -5
- package/dist/triggers/index.js.map +1 -1
- package/dist/types/index.d.ts +1032 -307
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +104 -21
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -45,11 +45,11 @@ export declare const OverrideConditionSchema: z.ZodObject<{
|
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
46
|
branch?: string | undefined;
|
|
47
47
|
tag?: string | undefined;
|
|
48
|
-
ref_type?: "branch" | "
|
|
48
|
+
ref_type?: "branch" | "tag" | "pull_request" | undefined;
|
|
49
49
|
}, {
|
|
50
50
|
branch?: string | undefined;
|
|
51
51
|
tag?: string | undefined;
|
|
52
|
-
ref_type?: "branch" | "
|
|
52
|
+
ref_type?: "branch" | "tag" | "pull_request" | undefined;
|
|
53
53
|
}>;
|
|
54
54
|
export type OverrideCondition = z.infer<typeof OverrideConditionSchema>;
|
|
55
55
|
export declare const OverrideSchema: z.ZodObject<{
|
|
@@ -60,25 +60,25 @@ export declare const OverrideSchema: z.ZodObject<{
|
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
61
|
branch?: string | undefined;
|
|
62
62
|
tag?: string | undefined;
|
|
63
|
-
ref_type?: "branch" | "
|
|
63
|
+
ref_type?: "branch" | "tag" | "pull_request" | undefined;
|
|
64
64
|
}, {
|
|
65
65
|
branch?: string | undefined;
|
|
66
66
|
tag?: string | undefined;
|
|
67
|
-
ref_type?: "branch" | "
|
|
67
|
+
ref_type?: "branch" | "tag" | "pull_request" | undefined;
|
|
68
68
|
}>;
|
|
69
69
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, string, string | number | boolean>>>;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
71
|
when: {
|
|
72
72
|
branch?: string | undefined;
|
|
73
73
|
tag?: string | undefined;
|
|
74
|
-
ref_type?: "branch" | "
|
|
74
|
+
ref_type?: "branch" | "tag" | "pull_request" | undefined;
|
|
75
75
|
};
|
|
76
76
|
env?: Record<string, string> | undefined;
|
|
77
77
|
}, {
|
|
78
78
|
when: {
|
|
79
79
|
branch?: string | undefined;
|
|
80
80
|
tag?: string | undefined;
|
|
81
|
-
ref_type?: "branch" | "
|
|
81
|
+
ref_type?: "branch" | "tag" | "pull_request" | undefined;
|
|
82
82
|
};
|
|
83
83
|
env?: Record<string, string | number | boolean> | undefined;
|
|
84
84
|
}>;
|
|
@@ -256,6 +256,47 @@ export declare const TagTriggerSchema: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<tr
|
|
|
256
256
|
'tags-ignore'?: string[] | undefined;
|
|
257
257
|
}>]>>;
|
|
258
258
|
export type TagTrigger = z.infer<typeof TagTriggerSchema>;
|
|
259
|
+
/**
|
|
260
|
+
* Schedule trigger entry (a single cron expression)
|
|
261
|
+
*/
|
|
262
|
+
export declare const ConcurrencyPolicySchema: z.ZodEnum<["replace", "skip", "queue"]>;
|
|
263
|
+
export type ConcurrencyPolicy = z.infer<typeof ConcurrencyPolicySchema>;
|
|
264
|
+
export declare const ScheduleEntrySchema: z.ZodObject<{
|
|
265
|
+
cron: z.ZodString;
|
|
266
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
267
|
+
concurrency: z.ZodOptional<z.ZodEnum<["replace", "skip", "queue"]>>;
|
|
268
|
+
}, "strip", z.ZodTypeAny, {
|
|
269
|
+
cron: string;
|
|
270
|
+
branch?: string | undefined;
|
|
271
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
272
|
+
}, {
|
|
273
|
+
cron: string;
|
|
274
|
+
branch?: string | undefined;
|
|
275
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
276
|
+
}>;
|
|
277
|
+
export type ScheduleEntry = z.infer<typeof ScheduleEntrySchema>;
|
|
278
|
+
/**
|
|
279
|
+
* Schedule trigger schema - array of cron entries
|
|
280
|
+
*
|
|
281
|
+
* Example:
|
|
282
|
+
* schedule:
|
|
283
|
+
* - cron: "0 2 * * *" # Every night at 2am UTC
|
|
284
|
+
* - cron: "0 12 * * 1" # Every Monday at noon UTC
|
|
285
|
+
*/
|
|
286
|
+
export declare const ScheduleTriggerSchema: z.ZodArray<z.ZodObject<{
|
|
287
|
+
cron: z.ZodString;
|
|
288
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
289
|
+
concurrency: z.ZodOptional<z.ZodEnum<["replace", "skip", "queue"]>>;
|
|
290
|
+
}, "strip", z.ZodTypeAny, {
|
|
291
|
+
cron: string;
|
|
292
|
+
branch?: string | undefined;
|
|
293
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
294
|
+
}, {
|
|
295
|
+
cron: string;
|
|
296
|
+
branch?: string | undefined;
|
|
297
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
298
|
+
}>, "many">;
|
|
299
|
+
export type ScheduleTrigger = z.infer<typeof ScheduleTriggerSchema>;
|
|
259
300
|
/**
|
|
260
301
|
* Single pipeline trigger configuration object
|
|
261
302
|
*
|
|
@@ -294,32 +335,55 @@ export declare const PipelineTriggerObjectSchema: z.ZodObject<{
|
|
|
294
335
|
tags?: string[] | undefined;
|
|
295
336
|
'tags-ignore'?: string[] | undefined;
|
|
296
337
|
}>]>>>;
|
|
338
|
+
schedule: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
339
|
+
cron: z.ZodString;
|
|
340
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
341
|
+
concurrency: z.ZodOptional<z.ZodEnum<["replace", "skip", "queue"]>>;
|
|
342
|
+
}, "strip", z.ZodTypeAny, {
|
|
343
|
+
cron: string;
|
|
344
|
+
branch?: string | undefined;
|
|
345
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
346
|
+
}, {
|
|
347
|
+
cron: string;
|
|
348
|
+
branch?: string | undefined;
|
|
349
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
350
|
+
}>, "many">>>;
|
|
297
351
|
}, "strip", z.ZodTypeAny, {
|
|
298
352
|
push?: true | {
|
|
299
353
|
branches?: string[] | undefined;
|
|
300
354
|
'branches-ignore'?: string[] | undefined;
|
|
301
355
|
} | null | undefined;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
356
|
+
schedule?: {
|
|
357
|
+
cron: string;
|
|
358
|
+
branch?: string | undefined;
|
|
359
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
360
|
+
}[] | undefined;
|
|
306
361
|
tag?: true | {
|
|
307
362
|
tags?: string[] | undefined;
|
|
308
363
|
'tags-ignore'?: string[] | undefined;
|
|
309
364
|
} | null | undefined;
|
|
310
|
-
|
|
311
|
-
push?: true | {
|
|
365
|
+
pull_request?: true | {
|
|
312
366
|
branches?: string[] | undefined;
|
|
313
367
|
'branches-ignore'?: string[] | undefined;
|
|
314
368
|
} | null | undefined;
|
|
315
|
-
|
|
369
|
+
}, {
|
|
370
|
+
push?: true | {
|
|
316
371
|
branches?: string[] | undefined;
|
|
317
372
|
'branches-ignore'?: string[] | undefined;
|
|
318
373
|
} | null | undefined;
|
|
374
|
+
schedule?: {
|
|
375
|
+
cron: string;
|
|
376
|
+
branch?: string | undefined;
|
|
377
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
378
|
+
}[] | undefined;
|
|
319
379
|
tag?: true | {
|
|
320
380
|
tags?: string[] | undefined;
|
|
321
381
|
'tags-ignore'?: string[] | undefined;
|
|
322
382
|
} | null | undefined;
|
|
383
|
+
pull_request?: true | {
|
|
384
|
+
branches?: string[] | undefined;
|
|
385
|
+
'branches-ignore'?: string[] | undefined;
|
|
386
|
+
} | null | undefined;
|
|
323
387
|
}>;
|
|
324
388
|
export type PipelineTriggerObject = z.infer<typeof PipelineTriggerObjectSchema>;
|
|
325
389
|
/**
|
|
@@ -362,32 +426,55 @@ export declare const PipelineOnSchema: z.ZodOptional<z.ZodObject<{
|
|
|
362
426
|
tags?: string[] | undefined;
|
|
363
427
|
'tags-ignore'?: string[] | undefined;
|
|
364
428
|
}>]>>>;
|
|
429
|
+
schedule: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
430
|
+
cron: z.ZodString;
|
|
431
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
432
|
+
concurrency: z.ZodOptional<z.ZodEnum<["replace", "skip", "queue"]>>;
|
|
433
|
+
}, "strip", z.ZodTypeAny, {
|
|
434
|
+
cron: string;
|
|
435
|
+
branch?: string | undefined;
|
|
436
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
437
|
+
}, {
|
|
438
|
+
cron: string;
|
|
439
|
+
branch?: string | undefined;
|
|
440
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
441
|
+
}>, "many">>>;
|
|
365
442
|
}, "strip", z.ZodTypeAny, {
|
|
366
443
|
push?: true | {
|
|
367
444
|
branches?: string[] | undefined;
|
|
368
445
|
'branches-ignore'?: string[] | undefined;
|
|
369
446
|
} | null | undefined;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
447
|
+
schedule?: {
|
|
448
|
+
cron: string;
|
|
449
|
+
branch?: string | undefined;
|
|
450
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
451
|
+
}[] | undefined;
|
|
374
452
|
tag?: true | {
|
|
375
453
|
tags?: string[] | undefined;
|
|
376
454
|
'tags-ignore'?: string[] | undefined;
|
|
377
455
|
} | null | undefined;
|
|
378
|
-
|
|
379
|
-
push?: true | {
|
|
456
|
+
pull_request?: true | {
|
|
380
457
|
branches?: string[] | undefined;
|
|
381
458
|
'branches-ignore'?: string[] | undefined;
|
|
382
459
|
} | null | undefined;
|
|
383
|
-
|
|
460
|
+
}, {
|
|
461
|
+
push?: true | {
|
|
384
462
|
branches?: string[] | undefined;
|
|
385
463
|
'branches-ignore'?: string[] | undefined;
|
|
386
464
|
} | null | undefined;
|
|
465
|
+
schedule?: {
|
|
466
|
+
cron: string;
|
|
467
|
+
branch?: string | undefined;
|
|
468
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
469
|
+
}[] | undefined;
|
|
387
470
|
tag?: true | {
|
|
388
471
|
tags?: string[] | undefined;
|
|
389
472
|
'tags-ignore'?: string[] | undefined;
|
|
390
473
|
} | null | undefined;
|
|
474
|
+
pull_request?: true | {
|
|
475
|
+
branches?: string[] | undefined;
|
|
476
|
+
'branches-ignore'?: string[] | undefined;
|
|
477
|
+
} | null | undefined;
|
|
391
478
|
}>>;
|
|
392
479
|
export type PipelineOn = z.infer<typeof PipelineOnSchema>;
|
|
393
480
|
/**
|
|
@@ -399,6 +486,32 @@ export type PipelineOn = z.infer<typeof PipelineOnSchema>;
|
|
|
399
486
|
* - stages: ordered list of stages to execute
|
|
400
487
|
* - finally: stages that always run (even on failure)
|
|
401
488
|
*/
|
|
489
|
+
/**
|
|
490
|
+
* Label constraints attached to a pipeline in `.kiln.yml`.
|
|
491
|
+
*
|
|
492
|
+
* labels:
|
|
493
|
+
* requires: { opcli: "true", arch: arm64 } # hard: build only runs
|
|
494
|
+
* # on workers whose
|
|
495
|
+
* # `labels` contain every
|
|
496
|
+
* # key/value here.
|
|
497
|
+
* prefers: { region: eu-west-1 } # soft: ranking boost
|
|
498
|
+
* # when a worker matches.
|
|
499
|
+
* # Never gates eligibility.
|
|
500
|
+
*
|
|
501
|
+
* Values are plain strings — Kubernetes-style matchExpressions are not
|
|
502
|
+
* supported.
|
|
503
|
+
*/
|
|
504
|
+
export declare const PipelineLabelsSchema: z.ZodObject<{
|
|
505
|
+
requires: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
506
|
+
prefers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
507
|
+
}, "strip", z.ZodTypeAny, {
|
|
508
|
+
requires?: Record<string, string> | undefined;
|
|
509
|
+
prefers?: Record<string, string> | undefined;
|
|
510
|
+
}, {
|
|
511
|
+
requires?: Record<string, string> | undefined;
|
|
512
|
+
prefers?: Record<string, string> | undefined;
|
|
513
|
+
}>;
|
|
514
|
+
export type PipelineLabels = z.infer<typeof PipelineLabelsSchema>;
|
|
402
515
|
export declare const PipelineSchema: z.ZodObject<{
|
|
403
516
|
name: z.ZodString;
|
|
404
517
|
on: z.ZodOptional<z.ZodObject<{
|
|
@@ -432,32 +545,55 @@ export declare const PipelineSchema: z.ZodObject<{
|
|
|
432
545
|
tags?: string[] | undefined;
|
|
433
546
|
'tags-ignore'?: string[] | undefined;
|
|
434
547
|
}>]>>>;
|
|
548
|
+
schedule: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
549
|
+
cron: z.ZodString;
|
|
550
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
551
|
+
concurrency: z.ZodOptional<z.ZodEnum<["replace", "skip", "queue"]>>;
|
|
552
|
+
}, "strip", z.ZodTypeAny, {
|
|
553
|
+
cron: string;
|
|
554
|
+
branch?: string | undefined;
|
|
555
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
556
|
+
}, {
|
|
557
|
+
cron: string;
|
|
558
|
+
branch?: string | undefined;
|
|
559
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
560
|
+
}>, "many">>>;
|
|
435
561
|
}, "strip", z.ZodTypeAny, {
|
|
436
562
|
push?: true | {
|
|
437
563
|
branches?: string[] | undefined;
|
|
438
564
|
'branches-ignore'?: string[] | undefined;
|
|
439
565
|
} | null | undefined;
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
566
|
+
schedule?: {
|
|
567
|
+
cron: string;
|
|
568
|
+
branch?: string | undefined;
|
|
569
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
570
|
+
}[] | undefined;
|
|
444
571
|
tag?: true | {
|
|
445
572
|
tags?: string[] | undefined;
|
|
446
573
|
'tags-ignore'?: string[] | undefined;
|
|
447
574
|
} | null | undefined;
|
|
448
|
-
|
|
449
|
-
push?: true | {
|
|
575
|
+
pull_request?: true | {
|
|
450
576
|
branches?: string[] | undefined;
|
|
451
577
|
'branches-ignore'?: string[] | undefined;
|
|
452
578
|
} | null | undefined;
|
|
453
|
-
|
|
579
|
+
}, {
|
|
580
|
+
push?: true | {
|
|
454
581
|
branches?: string[] | undefined;
|
|
455
582
|
'branches-ignore'?: string[] | undefined;
|
|
456
583
|
} | null | undefined;
|
|
584
|
+
schedule?: {
|
|
585
|
+
cron: string;
|
|
586
|
+
branch?: string | undefined;
|
|
587
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
588
|
+
}[] | undefined;
|
|
457
589
|
tag?: true | {
|
|
458
590
|
tags?: string[] | undefined;
|
|
459
591
|
'tags-ignore'?: string[] | undefined;
|
|
460
592
|
} | null | undefined;
|
|
593
|
+
pull_request?: true | {
|
|
594
|
+
branches?: string[] | undefined;
|
|
595
|
+
'branches-ignore'?: string[] | undefined;
|
|
596
|
+
} | null | undefined;
|
|
461
597
|
}>>;
|
|
462
598
|
stages: z.ZodArray<z.ZodObject<{
|
|
463
599
|
name: z.ZodString;
|
|
@@ -591,6 +727,17 @@ export declare const PipelineSchema: z.ZodObject<{
|
|
|
591
727
|
tag?: boolean | undefined;
|
|
592
728
|
}[] | undefined;
|
|
593
729
|
}>, "many">>;
|
|
730
|
+
image: z.ZodOptional<z.ZodString>;
|
|
731
|
+
labels: z.ZodOptional<z.ZodObject<{
|
|
732
|
+
requires: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
733
|
+
prefers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
734
|
+
}, "strip", z.ZodTypeAny, {
|
|
735
|
+
requires?: Record<string, string> | undefined;
|
|
736
|
+
prefers?: Record<string, string> | undefined;
|
|
737
|
+
}, {
|
|
738
|
+
requires?: Record<string, string> | undefined;
|
|
739
|
+
prefers?: Record<string, string> | undefined;
|
|
740
|
+
}>>;
|
|
594
741
|
}, "strip", z.ZodTypeAny, {
|
|
595
742
|
name: string;
|
|
596
743
|
stages: {
|
|
@@ -609,19 +756,29 @@ export declare const PipelineSchema: z.ZodObject<{
|
|
|
609
756
|
tag?: boolean | undefined;
|
|
610
757
|
}[] | undefined;
|
|
611
758
|
}[];
|
|
759
|
+
labels?: {
|
|
760
|
+
requires?: Record<string, string> | undefined;
|
|
761
|
+
prefers?: Record<string, string> | undefined;
|
|
762
|
+
} | undefined;
|
|
763
|
+
image?: string | undefined;
|
|
612
764
|
on?: {
|
|
613
765
|
push?: true | {
|
|
614
766
|
branches?: string[] | undefined;
|
|
615
767
|
'branches-ignore'?: string[] | undefined;
|
|
616
768
|
} | null | undefined;
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
769
|
+
schedule?: {
|
|
770
|
+
cron: string;
|
|
771
|
+
branch?: string | undefined;
|
|
772
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
773
|
+
}[] | undefined;
|
|
621
774
|
tag?: true | {
|
|
622
775
|
tags?: string[] | undefined;
|
|
623
776
|
'tags-ignore'?: string[] | undefined;
|
|
624
777
|
} | null | undefined;
|
|
778
|
+
pull_request?: true | {
|
|
779
|
+
branches?: string[] | undefined;
|
|
780
|
+
'branches-ignore'?: string[] | undefined;
|
|
781
|
+
} | null | undefined;
|
|
625
782
|
} | undefined;
|
|
626
783
|
finally?: {
|
|
627
784
|
name: string;
|
|
@@ -657,19 +814,29 @@ export declare const PipelineSchema: z.ZodObject<{
|
|
|
657
814
|
tag?: boolean | undefined;
|
|
658
815
|
}[] | undefined;
|
|
659
816
|
}[];
|
|
817
|
+
labels?: {
|
|
818
|
+
requires?: Record<string, string> | undefined;
|
|
819
|
+
prefers?: Record<string, string> | undefined;
|
|
820
|
+
} | undefined;
|
|
821
|
+
image?: string | undefined;
|
|
660
822
|
on?: {
|
|
661
823
|
push?: true | {
|
|
662
824
|
branches?: string[] | undefined;
|
|
663
825
|
'branches-ignore'?: string[] | undefined;
|
|
664
826
|
} | null | undefined;
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
827
|
+
schedule?: {
|
|
828
|
+
cron: string;
|
|
829
|
+
branch?: string | undefined;
|
|
830
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
831
|
+
}[] | undefined;
|
|
669
832
|
tag?: true | {
|
|
670
833
|
tags?: string[] | undefined;
|
|
671
834
|
'tags-ignore'?: string[] | undefined;
|
|
672
835
|
} | null | undefined;
|
|
836
|
+
pull_request?: true | {
|
|
837
|
+
branches?: string[] | undefined;
|
|
838
|
+
'branches-ignore'?: string[] | undefined;
|
|
839
|
+
} | null | undefined;
|
|
673
840
|
} | undefined;
|
|
674
841
|
finally?: {
|
|
675
842
|
name: string;
|
|
@@ -703,25 +870,25 @@ export declare const PipelineConfigSchema: z.ZodObject<{
|
|
|
703
870
|
}, "strip", z.ZodTypeAny, {
|
|
704
871
|
branch?: string | undefined;
|
|
705
872
|
tag?: string | undefined;
|
|
706
|
-
ref_type?: "branch" | "
|
|
873
|
+
ref_type?: "branch" | "tag" | "pull_request" | undefined;
|
|
707
874
|
}, {
|
|
708
875
|
branch?: string | undefined;
|
|
709
876
|
tag?: string | undefined;
|
|
710
|
-
ref_type?: "branch" | "
|
|
877
|
+
ref_type?: "branch" | "tag" | "pull_request" | undefined;
|
|
711
878
|
}>;
|
|
712
879
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, string, string | number | boolean>>>;
|
|
713
880
|
}, "strip", z.ZodTypeAny, {
|
|
714
881
|
when: {
|
|
715
882
|
branch?: string | undefined;
|
|
716
883
|
tag?: string | undefined;
|
|
717
|
-
ref_type?: "branch" | "
|
|
884
|
+
ref_type?: "branch" | "tag" | "pull_request" | undefined;
|
|
718
885
|
};
|
|
719
886
|
env?: Record<string, string> | undefined;
|
|
720
887
|
}, {
|
|
721
888
|
when: {
|
|
722
889
|
branch?: string | undefined;
|
|
723
890
|
tag?: string | undefined;
|
|
724
|
-
ref_type?: "branch" | "
|
|
891
|
+
ref_type?: "branch" | "tag" | "pull_request" | undefined;
|
|
725
892
|
};
|
|
726
893
|
env?: Record<string, string | number | boolean> | undefined;
|
|
727
894
|
}>, "many">>;
|
|
@@ -758,32 +925,55 @@ export declare const PipelineConfigSchema: z.ZodObject<{
|
|
|
758
925
|
tags?: string[] | undefined;
|
|
759
926
|
'tags-ignore'?: string[] | undefined;
|
|
760
927
|
}>]>>>;
|
|
928
|
+
schedule: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
929
|
+
cron: z.ZodString;
|
|
930
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
931
|
+
concurrency: z.ZodOptional<z.ZodEnum<["replace", "skip", "queue"]>>;
|
|
932
|
+
}, "strip", z.ZodTypeAny, {
|
|
933
|
+
cron: string;
|
|
934
|
+
branch?: string | undefined;
|
|
935
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
936
|
+
}, {
|
|
937
|
+
cron: string;
|
|
938
|
+
branch?: string | undefined;
|
|
939
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
940
|
+
}>, "many">>>;
|
|
761
941
|
}, "strip", z.ZodTypeAny, {
|
|
762
942
|
push?: true | {
|
|
763
943
|
branches?: string[] | undefined;
|
|
764
944
|
'branches-ignore'?: string[] | undefined;
|
|
765
945
|
} | null | undefined;
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
946
|
+
schedule?: {
|
|
947
|
+
cron: string;
|
|
948
|
+
branch?: string | undefined;
|
|
949
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
950
|
+
}[] | undefined;
|
|
770
951
|
tag?: true | {
|
|
771
952
|
tags?: string[] | undefined;
|
|
772
953
|
'tags-ignore'?: string[] | undefined;
|
|
773
954
|
} | null | undefined;
|
|
774
|
-
|
|
775
|
-
push?: true | {
|
|
955
|
+
pull_request?: true | {
|
|
776
956
|
branches?: string[] | undefined;
|
|
777
957
|
'branches-ignore'?: string[] | undefined;
|
|
778
958
|
} | null | undefined;
|
|
779
|
-
|
|
959
|
+
}, {
|
|
960
|
+
push?: true | {
|
|
780
961
|
branches?: string[] | undefined;
|
|
781
962
|
'branches-ignore'?: string[] | undefined;
|
|
782
963
|
} | null | undefined;
|
|
964
|
+
schedule?: {
|
|
965
|
+
cron: string;
|
|
966
|
+
branch?: string | undefined;
|
|
967
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
968
|
+
}[] | undefined;
|
|
783
969
|
tag?: true | {
|
|
784
970
|
tags?: string[] | undefined;
|
|
785
971
|
'tags-ignore'?: string[] | undefined;
|
|
786
972
|
} | null | undefined;
|
|
973
|
+
pull_request?: true | {
|
|
974
|
+
branches?: string[] | undefined;
|
|
975
|
+
'branches-ignore'?: string[] | undefined;
|
|
976
|
+
} | null | undefined;
|
|
787
977
|
}>>;
|
|
788
978
|
stages: z.ZodArray<z.ZodObject<{
|
|
789
979
|
name: z.ZodString;
|
|
@@ -917,6 +1107,17 @@ export declare const PipelineConfigSchema: z.ZodObject<{
|
|
|
917
1107
|
tag?: boolean | undefined;
|
|
918
1108
|
}[] | undefined;
|
|
919
1109
|
}>, "many">>;
|
|
1110
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1111
|
+
labels: z.ZodOptional<z.ZodObject<{
|
|
1112
|
+
requires: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1113
|
+
prefers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1114
|
+
}, "strip", z.ZodTypeAny, {
|
|
1115
|
+
requires?: Record<string, string> | undefined;
|
|
1116
|
+
prefers?: Record<string, string> | undefined;
|
|
1117
|
+
}, {
|
|
1118
|
+
requires?: Record<string, string> | undefined;
|
|
1119
|
+
prefers?: Record<string, string> | undefined;
|
|
1120
|
+
}>>;
|
|
920
1121
|
}, "strip", z.ZodTypeAny, {
|
|
921
1122
|
name: string;
|
|
922
1123
|
stages: {
|
|
@@ -935,19 +1136,29 @@ export declare const PipelineConfigSchema: z.ZodObject<{
|
|
|
935
1136
|
tag?: boolean | undefined;
|
|
936
1137
|
}[] | undefined;
|
|
937
1138
|
}[];
|
|
1139
|
+
labels?: {
|
|
1140
|
+
requires?: Record<string, string> | undefined;
|
|
1141
|
+
prefers?: Record<string, string> | undefined;
|
|
1142
|
+
} | undefined;
|
|
1143
|
+
image?: string | undefined;
|
|
938
1144
|
on?: {
|
|
939
1145
|
push?: true | {
|
|
940
1146
|
branches?: string[] | undefined;
|
|
941
1147
|
'branches-ignore'?: string[] | undefined;
|
|
942
1148
|
} | null | undefined;
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1149
|
+
schedule?: {
|
|
1150
|
+
cron: string;
|
|
1151
|
+
branch?: string | undefined;
|
|
1152
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
1153
|
+
}[] | undefined;
|
|
947
1154
|
tag?: true | {
|
|
948
1155
|
tags?: string[] | undefined;
|
|
949
1156
|
'tags-ignore'?: string[] | undefined;
|
|
950
1157
|
} | null | undefined;
|
|
1158
|
+
pull_request?: true | {
|
|
1159
|
+
branches?: string[] | undefined;
|
|
1160
|
+
'branches-ignore'?: string[] | undefined;
|
|
1161
|
+
} | null | undefined;
|
|
951
1162
|
} | undefined;
|
|
952
1163
|
finally?: {
|
|
953
1164
|
name: string;
|
|
@@ -983,19 +1194,29 @@ export declare const PipelineConfigSchema: z.ZodObject<{
|
|
|
983
1194
|
tag?: boolean | undefined;
|
|
984
1195
|
}[] | undefined;
|
|
985
1196
|
}[];
|
|
1197
|
+
labels?: {
|
|
1198
|
+
requires?: Record<string, string> | undefined;
|
|
1199
|
+
prefers?: Record<string, string> | undefined;
|
|
1200
|
+
} | undefined;
|
|
1201
|
+
image?: string | undefined;
|
|
986
1202
|
on?: {
|
|
987
1203
|
push?: true | {
|
|
988
1204
|
branches?: string[] | undefined;
|
|
989
1205
|
'branches-ignore'?: string[] | undefined;
|
|
990
1206
|
} | null | undefined;
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1207
|
+
schedule?: {
|
|
1208
|
+
cron: string;
|
|
1209
|
+
branch?: string | undefined;
|
|
1210
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
1211
|
+
}[] | undefined;
|
|
995
1212
|
tag?: true | {
|
|
996
1213
|
tags?: string[] | undefined;
|
|
997
1214
|
'tags-ignore'?: string[] | undefined;
|
|
998
1215
|
} | null | undefined;
|
|
1216
|
+
pull_request?: true | {
|
|
1217
|
+
branches?: string[] | undefined;
|
|
1218
|
+
'branches-ignore'?: string[] | undefined;
|
|
1219
|
+
} | null | undefined;
|
|
999
1220
|
} | undefined;
|
|
1000
1221
|
finally?: {
|
|
1001
1222
|
name: string;
|
|
@@ -1015,6 +1236,7 @@ export declare const PipelineConfigSchema: z.ZodObject<{
|
|
|
1015
1236
|
}[] | undefined;
|
|
1016
1237
|
}>, "many">;
|
|
1017
1238
|
}, "strip", z.ZodTypeAny, {
|
|
1239
|
+
version: 1;
|
|
1018
1240
|
pipelines: {
|
|
1019
1241
|
name: string;
|
|
1020
1242
|
stages: {
|
|
@@ -1033,19 +1255,29 @@ export declare const PipelineConfigSchema: z.ZodObject<{
|
|
|
1033
1255
|
tag?: boolean | undefined;
|
|
1034
1256
|
}[] | undefined;
|
|
1035
1257
|
}[];
|
|
1258
|
+
labels?: {
|
|
1259
|
+
requires?: Record<string, string> | undefined;
|
|
1260
|
+
prefers?: Record<string, string> | undefined;
|
|
1261
|
+
} | undefined;
|
|
1262
|
+
image?: string | undefined;
|
|
1036
1263
|
on?: {
|
|
1037
1264
|
push?: true | {
|
|
1038
1265
|
branches?: string[] | undefined;
|
|
1039
1266
|
'branches-ignore'?: string[] | undefined;
|
|
1040
1267
|
} | null | undefined;
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1268
|
+
schedule?: {
|
|
1269
|
+
cron: string;
|
|
1270
|
+
branch?: string | undefined;
|
|
1271
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
1272
|
+
}[] | undefined;
|
|
1045
1273
|
tag?: true | {
|
|
1046
1274
|
tags?: string[] | undefined;
|
|
1047
1275
|
'tags-ignore'?: string[] | undefined;
|
|
1048
1276
|
} | null | undefined;
|
|
1277
|
+
pull_request?: true | {
|
|
1278
|
+
branches?: string[] | undefined;
|
|
1279
|
+
'branches-ignore'?: string[] | undefined;
|
|
1280
|
+
} | null | undefined;
|
|
1049
1281
|
} | undefined;
|
|
1050
1282
|
finally?: {
|
|
1051
1283
|
name: string;
|
|
@@ -1064,17 +1296,17 @@ export declare const PipelineConfigSchema: z.ZodObject<{
|
|
|
1064
1296
|
}[] | undefined;
|
|
1065
1297
|
}[] | undefined;
|
|
1066
1298
|
}[];
|
|
1067
|
-
version: 1;
|
|
1068
1299
|
env?: Record<string, string> | undefined;
|
|
1069
1300
|
overrides?: {
|
|
1070
1301
|
when: {
|
|
1071
1302
|
branch?: string | undefined;
|
|
1072
1303
|
tag?: string | undefined;
|
|
1073
|
-
ref_type?: "branch" | "
|
|
1304
|
+
ref_type?: "branch" | "tag" | "pull_request" | undefined;
|
|
1074
1305
|
};
|
|
1075
1306
|
env?: Record<string, string> | undefined;
|
|
1076
1307
|
}[] | undefined;
|
|
1077
1308
|
}, {
|
|
1309
|
+
version: 1;
|
|
1078
1310
|
pipelines: {
|
|
1079
1311
|
name: string;
|
|
1080
1312
|
stages: {
|
|
@@ -1093,19 +1325,29 @@ export declare const PipelineConfigSchema: z.ZodObject<{
|
|
|
1093
1325
|
tag?: boolean | undefined;
|
|
1094
1326
|
}[] | undefined;
|
|
1095
1327
|
}[];
|
|
1328
|
+
labels?: {
|
|
1329
|
+
requires?: Record<string, string> | undefined;
|
|
1330
|
+
prefers?: Record<string, string> | undefined;
|
|
1331
|
+
} | undefined;
|
|
1332
|
+
image?: string | undefined;
|
|
1096
1333
|
on?: {
|
|
1097
1334
|
push?: true | {
|
|
1098
1335
|
branches?: string[] | undefined;
|
|
1099
1336
|
'branches-ignore'?: string[] | undefined;
|
|
1100
1337
|
} | null | undefined;
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1338
|
+
schedule?: {
|
|
1339
|
+
cron: string;
|
|
1340
|
+
branch?: string | undefined;
|
|
1341
|
+
concurrency?: "replace" | "skip" | "queue" | undefined;
|
|
1342
|
+
}[] | undefined;
|
|
1105
1343
|
tag?: true | {
|
|
1106
1344
|
tags?: string[] | undefined;
|
|
1107
1345
|
'tags-ignore'?: string[] | undefined;
|
|
1108
1346
|
} | null | undefined;
|
|
1347
|
+
pull_request?: true | {
|
|
1348
|
+
branches?: string[] | undefined;
|
|
1349
|
+
'branches-ignore'?: string[] | undefined;
|
|
1350
|
+
} | null | undefined;
|
|
1109
1351
|
} | undefined;
|
|
1110
1352
|
finally?: {
|
|
1111
1353
|
name: string;
|
|
@@ -1124,13 +1366,12 @@ export declare const PipelineConfigSchema: z.ZodObject<{
|
|
|
1124
1366
|
}[] | undefined;
|
|
1125
1367
|
}[] | undefined;
|
|
1126
1368
|
}[];
|
|
1127
|
-
version: 1;
|
|
1128
1369
|
env?: Record<string, string | number | boolean> | undefined;
|
|
1129
1370
|
overrides?: {
|
|
1130
1371
|
when: {
|
|
1131
1372
|
branch?: string | undefined;
|
|
1132
1373
|
tag?: string | undefined;
|
|
1133
|
-
ref_type?: "branch" | "
|
|
1374
|
+
ref_type?: "branch" | "tag" | "pull_request" | undefined;
|
|
1134
1375
|
};
|
|
1135
1376
|
env?: Record<string, string | number | boolean> | undefined;
|
|
1136
1377
|
}[] | undefined;
|